383 lines
994 KiB
JavaScript
383 lines
994 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AIChatView-Bce7qiIa.js","assets/AIChatView-BEcgo_7s.css","assets/AdminView-CZRqrWtV.js","assets/AdminView-XtKggxFZ.css"])))=>i.map(i=>d[i]);
|
||
var N4=Object.defineProperty;var D4=(e,t,A)=>t in e?N4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A;var Nt=(e,t,A)=>D4(e,typeof t!="symbol"?t+"":t,A);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function A(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=A(r);fetch(r.href,i)}})();/**
|
||
* @vue/shared v3.5.30
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function _0(e){const t=Object.create(null);for(const A of e.split(","))t[A]=1;return A=>A in t}const oA={},Pa=[],hi=()=>{},Mv=()=>!1,Mh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),U0=e=>e.startsWith("onUpdate:"),fn=Object.assign,Q0=(e,t)=>{const A=e.indexOf(t);A>-1&&e.splice(A,1)},H4=Object.prototype.hasOwnProperty,$e=(e,t)=>H4.call(e,t),me=Array.isArray,Ra=e=>qc(e)==="[object Map]",il=e=>qc(e)==="[object Set]",im=e=>qc(e)==="[object Date]",Qe=e=>typeof e=="function",KA=e=>typeof e=="string",mi=e=>typeof e=="symbol",tA=e=>e!==null&&typeof e=="object",Tv=e=>(tA(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),Ov=Object.prototype.toString,qc=e=>Ov.call(e),M4=e=>qc(e).slice(8,-1),Pv=e=>qc(e)==="[object Object]",E0=e=>KA(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,oc=_0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Th=e=>{const t=Object.create(null);return A=>t[A]||(t[A]=e(A))},T4=/-\w/g,Kn=Th(e=>e.replace(T4,t=>t.slice(1).toUpperCase())),O4=/\B([A-Z])/g,Ys=Th(e=>e.replace(O4,"-$1").toLowerCase()),Oh=Th(e=>e.charAt(0).toUpperCase()+e.slice(1)),Yd=Th(e=>e?`on${Oh(e)}`:""),ui=(e,t)=>!Object.is(e,t),Df=(e,...t)=>{for(let A=0;A<e.length;A++)e[A](...t)},Rv=(e,t,A,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:A})},Ph=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let sm;const Rh=()=>sm||(sm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qc(e){if(me(e)){const t={};for(let A=0;A<e.length;A++){const n=e[A],r=KA(n)?V4(n):Qc(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(KA(e)||tA(e))return e}const P4=/;(?![^(]*\))/g,R4=/:([^]+)/,K4=/\/\*[^]*?\*\//g;function V4(e){const t={};return e.replace(K4,"").split(P4).forEach(A=>{if(A){const n=A.split(R4);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function aA(e){let t="";if(KA(e))t=e;else if(me(e))for(let A=0;A<e.length;A++){const n=aA(e[A]);n&&(t+=n+" ")}else if(tA(e))for(const A in e)e[A]&&(t+=A+" ");return t.trim()}const j4="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",G4=_0(j4);function Kv(e){return!!e||e===""}function W4(e,t){if(e.length!==t.length)return!1;let A=!0;for(let n=0;A&&n<e.length;n++)A=sl(e[n],t[n]);return A}function sl(e,t){if(e===t)return!0;let A=im(e),n=im(t);if(A||n)return A&&n?e.getTime()===t.getTime():!1;if(A=mi(e),n=mi(t),A||n)return e===t;if(A=me(e),n=me(t),A||n)return A&&n?W4(e,t):!1;if(A=tA(e),n=tA(t),A||n){if(!A||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const s in e){const o=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(o&&!a||!o&&a||!sl(e[s],t[s]))return!1}}return String(e)===String(t)}function I0(e,t){return e.findIndex(A=>sl(A,t))}const Vv=e=>!!(e&&e.__v_isRef===!0),kt=e=>KA(e)?e:e==null?"":me(e)||tA(e)&&(e.toString===Ov||!Qe(e.toString))?Vv(e)?kt(e.value):JSON.stringify(e,jv,2):String(e),jv=(e,t)=>Vv(t)?jv(e,t.value):Ra(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((A,[n,r],i)=>(A[Jd(n,i)+" =>"]=r,A),{})}:il(t)?{[`Set(${t.size})`]:[...t.values()].map(A=>Jd(A))}:mi(t)?Jd(t):tA(t)&&!me(t)&&!Pv(t)?String(t):t,Jd=(e,t="")=>{var A;return mi(e)?`Symbol(${(A=e.description)!=null?A:t})`:e};/**
|
||
* @vue/reactivity v3.5.30
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let $n;class z4{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=$n,!t&&$n&&(this.index=($n.scopes||($n.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,A;if(this.scopes)for(t=0,A=this.scopes.length;t<A;t++)this.scopes[t].pause();for(t=0,A=this.effects.length;t<A;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,A;if(this.scopes)for(t=0,A=this.scopes.length;t<A;t++)this.scopes[t].resume();for(t=0,A=this.effects.length;t<A;t++)this.effects[t].resume()}}run(t){if(this._active){const A=$n;try{return $n=this,t()}finally{$n=A}}}on(){++this._on===1&&(this.prevScope=$n,$n=this)}off(){this._on>0&&--this._on===0&&($n=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let A,n;for(A=0,n=this.effects.length;A<n;A++)this.effects[A].stop();for(this.effects.length=0,A=0,n=this.cleanups.length;A<n;A++)this.cleanups[A]();if(this.cleanups.length=0,this.scopes){for(A=0,n=this.scopes.length;A<n;A++)this.scopes[A].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function $4(){return $n}let fA;const Zd=new WeakSet;class Gv{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$n&&$n.active&&$n.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Zd.has(this)&&(Zd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||zv(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,om(this),$v(this);const t=fA,A=Tr;fA=this,Tr=!0;try{return this.fn()}finally{qv(this),fA=t,Tr=A,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)k0(t);this.deps=this.depsTail=void 0,om(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Zd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){hp(this)&&this.run()}get dirty(){return hp(this)}}let Wv=0,ac,lc;function zv(e,t=!1){if(e.flags|=8,t){e.next=lc,lc=e;return}e.next=ac,ac=e}function S0(){Wv++}function L0(){if(--Wv>0)return;if(lc){let t=lc;for(lc=void 0;t;){const A=t.next;t.next=void 0,t.flags&=-9,t=A}}let e;for(;ac;){let t=ac;for(ac=void 0;t;){const A=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=A}}if(e)throw e}function $v(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function qv(e){let t,A=e.depsTail,n=A;for(;n;){const r=n.prevDep;n.version===-1?(n===A&&(A=r),k0(n),q4(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=A}function hp(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xv(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xv(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ec)||(e.globalVersion=Ec,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!hp(e))))return;e.flags|=2;const t=e.dep,A=fA,n=Tr;fA=e,Tr=!0;try{$v(e);const r=e.fn(e._value);(t.version===0||ui(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{fA=A,Tr=n,qv(e),e.flags&=-3}}function k0(e,t=!1){const{dep:A,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),A.subs===e&&(A.subs=n,!n&&A.computed)){A.computed.flags&=-5;for(let i=A.computed.deps;i;i=i.nextDep)k0(i,!0)}!t&&!--A.sc&&A.map&&A.map.delete(A.key)}function q4(e){const{prevDep:t,nextDep:A}=e;t&&(t.nextDep=A,e.prevDep=void 0),A&&(A.prevDep=t,e.nextDep=void 0)}let Tr=!0;const Yv=[];function ns(){Yv.push(Tr),Tr=!1}function rs(){const e=Yv.pop();Tr=e===void 0?!0:e}function om(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const A=fA;fA=void 0;try{t()}finally{fA=A}}}let Ec=0;class X4{constructor(t,A){this.sub=t,this.dep=A,this.version=A.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class N0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!fA||!Tr||fA===this.computed)return;let A=this.activeLink;if(A===void 0||A.sub!==fA)A=this.activeLink=new X4(fA,this),fA.deps?(A.prevDep=fA.depsTail,fA.depsTail.nextDep=A,fA.depsTail=A):fA.deps=fA.depsTail=A,Jv(A);else if(A.version===-1&&(A.version=this.version,A.nextDep)){const n=A.nextDep;n.prevDep=A.prevDep,A.prevDep&&(A.prevDep.nextDep=n),A.prevDep=fA.depsTail,A.nextDep=void 0,fA.depsTail.nextDep=A,fA.depsTail=A,fA.deps===A&&(fA.deps=n)}return A}trigger(t){this.version++,Ec++,this.notify(t)}notify(t){S0();try{for(let A=this.subs;A;A=A.prevSub)A.sub.notify()&&A.sub.dep.notify()}finally{L0()}}}function Jv(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Jv(n)}const A=e.dep.subs;A!==e&&(e.prevSub=A,A&&(A.nextSub=e)),e.dep.subs=e}}const dp=new WeakMap,Mo=Symbol(""),gp=Symbol(""),Ic=Symbol("");function Un(e,t,A){if(Tr&&fA){let n=dp.get(e);n||dp.set(e,n=new Map);let r=n.get(A);r||(n.set(A,r=new N0),r.map=n,r.key=A),r.track()}}function Xi(e,t,A,n,r,i){const s=dp.get(e);if(!s){Ec++;return}const o=a=>{a&&a.trigger()};if(S0(),t==="clear")s.forEach(o);else{const a=me(e),l=a&&E0(A);if(a&&A==="length"){const c=Number(n);s.forEach((u,d)=>{(d==="length"||d===Ic||!mi(d)&&d>=c)&&o(u)})}else switch((A!==void 0||s.has(void 0))&&o(s.get(A)),l&&o(s.get(Ic)),t){case"add":a?l&&o(s.get("length")):(o(s.get(Mo)),Ra(e)&&o(s.get(gp)));break;case"delete":a||(o(s.get(Mo)),Ra(e)&&o(s.get(gp)));break;case"set":Ra(e)&&o(s.get(Mo));break}}L0()}function va(e){const t=ze(e);return t===e?t:(Un(t,"iterate",Ic),xr(e)?t:t.map(Pr))}function Kh(e){return Un(e=ze(e),"iterate",Ic),e}function li(e,t){return is(e)?Xa(To(e)?Pr(t):t):Pr(t)}const Y4={__proto__:null,[Symbol.iterator](){return tg(this,Symbol.iterator,e=>li(this,e))},concat(...e){return va(this).concat(...e.map(t=>me(t)?va(t):t))},entries(){return tg(this,"entries",e=>(e[1]=li(this,e[1]),e))},every(e,t){return Mi(this,"every",e,t,void 0,arguments)},filter(e,t){return Mi(this,"filter",e,t,A=>A.map(n=>li(this,n)),arguments)},find(e,t){return Mi(this,"find",e,t,A=>li(this,A),arguments)},findIndex(e,t){return Mi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Mi(this,"findLast",e,t,A=>li(this,A),arguments)},findLastIndex(e,t){return Mi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Mi(this,"forEach",e,t,void 0,arguments)},includes(...e){return eg(this,"includes",e)},indexOf(...e){return eg(this,"indexOf",e)},join(e){return va(this).join(e)},lastIndexOf(...e){return eg(this,"lastIndexOf",e)},map(e,t){return Mi(this,"map",e,t,void 0,arguments)},pop(){return Ll(this,"pop")},push(...e){return Ll(this,"push",e)},reduce(e,...t){return am(this,"reduce",e,t)},reduceRight(e,...t){return am(this,"reduceRight",e,t)},shift(){return Ll(this,"shift")},some(e,t){return Mi(this,"some",e,t,void 0,arguments)},splice(...e){return Ll(this,"splice",e)},toReversed(){return va(this).toReversed()},toSorted(e){return va(this).toSorted(e)},toSpliced(...e){return va(this).toSpliced(...e)},unshift(...e){return Ll(this,"unshift",e)},values(){return tg(this,"values",e=>li(this,e))}};function tg(e,t,A){const n=Kh(e),r=n[t]();return n!==e&&!xr(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=A(i.value)),i}),r}const J4=Array.prototype;function Mi(e,t,A,n,r,i){const s=Kh(e),o=s!==e&&!xr(e),a=s[t];if(a!==J4[t]){const u=a.apply(e,i);return o?Pr(u):u}let l=A;s!==e&&(o?l=function(u,d){return A.call(this,li(e,u),d,e)}:A.length>2&&(l=function(u,d){return A.call(this,u,d,e)}));const c=a.call(s,l,n);return o&&r?r(c):c}function am(e,t,A,n){const r=Kh(e),i=r!==e&&!xr(e);let s=A,o=!1;r!==e&&(i?(o=n.length===0,s=function(l,c,u){return o&&(o=!1,l=li(e,l)),A.call(this,l,li(e,c),u,e)}):A.length>3&&(s=function(l,c,u){return A.call(this,l,c,u,e)}));const a=r[t](s,...n);return o?li(e,a):a}function eg(e,t,A){const n=ze(e);Un(n,"iterate",Ic);const r=n[t](...A);return(r===-1||r===!1)&&M0(A[0])?(A[0]=ze(A[0]),n[t](...A)):r}function Ll(e,t,A=[]){ns(),S0();const n=ze(e)[t].apply(e,A);return L0(),rs(),n}const Z4=_0("__proto__,__v_isRef,__isVue"),Zv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mi));function tx(e){mi(e)||(e=String(e));const t=ze(this);return Un(t,"has",e),t.hasOwnProperty(e)}class tb{constructor(t=!1,A=!1){this._isReadonly=t,this._isShallow=A}get(t,A,n){if(A==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(A==="__v_isReactive")return!r;if(A==="__v_isReadonly")return r;if(A==="__v_isShallow")return i;if(A==="__v_raw")return n===(r?i?cx:rb:i?nb:Ab).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=me(t);if(!r){let a;if(s&&(a=Y4[A]))return a;if(A==="hasOwnProperty")return tx}const o=Reflect.get(t,A,In(t)?t:n);if((mi(A)?Zv.has(A):Z4(A))||(r||Un(t,"get",A),i))return o;if(In(o)){const a=s&&E0(A)?o:o.value;return r&&tA(a)?mp(a):a}return tA(o)?r?mp(o):Vh(o):o}}class eb extends tb{constructor(t=!1){super(!1,t)}set(t,A,n,r){let i=t[A];const s=me(t)&&E0(A);if(!this._isShallow){const l=is(i);if(!xr(n)&&!is(n)&&(i=ze(i),n=ze(n)),!s&&In(i)&&!In(n))return l||(i.value=n),!0}const o=s?Number(A)<t.length:$e(t,A),a=Reflect.set(t,A,n,In(t)?t:r);return t===ze(r)&&(o?ui(n,i)&&Xi(t,"set",A,n):Xi(t,"add",A,n)),a}deleteProperty(t,A){const n=$e(t,A);t[A];const r=Reflect.deleteProperty(t,A);return r&&n&&Xi(t,"delete",A,void 0),r}has(t,A){const n=Reflect.has(t,A);return(!mi(A)||!Zv.has(A))&&Un(t,"has",A),n}ownKeys(t){return Un(t,"iterate",me(t)?"length":Mo),Reflect.ownKeys(t)}}class ex extends tb{constructor(t=!1){super(!0,t)}set(t,A){return!0}deleteProperty(t,A){return!0}}const Ax=new eb,nx=new ex,rx=new eb(!0);const pp=e=>e,Mu=e=>Reflect.getPrototypeOf(e);function ix(e,t,A){return function(...n){const r=this.__v_raw,i=ze(r),s=Ra(i),o=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,l=r[e](...n),c=A?pp:t?Xa:Pr;return!t&&Un(i,"iterate",a?gp:Mo),fn(Object.create(l),{next(){const{value:u,done:d}=l.next();return d?{value:u,done:d}:{value:o?[c(u[0]),c(u[1])]:c(u),done:d}}})}}function Tu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function sx(e,t){const A={get(r){const i=this.__v_raw,s=ze(i),o=ze(r);e||(ui(r,o)&&Un(s,"get",r),Un(s,"get",o));const{has:a}=Mu(s),l=t?pp:e?Xa:Pr;if(a.call(s,r))return l(i.get(r));if(a.call(s,o))return l(i.get(o));i!==s&&i.get(r)},get size(){const r=this.__v_raw;return!e&&Un(ze(r),"iterate",Mo),r.size},has(r){const i=this.__v_raw,s=ze(i),o=ze(r);return e||(ui(r,o)&&Un(s,"has",r),Un(s,"has",o)),r===o?i.has(r):i.has(r)||i.has(o)},forEach(r,i){const s=this,o=s.__v_raw,a=ze(o),l=t?pp:e?Xa:Pr;return!e&&Un(a,"iterate",Mo),o.forEach((c,u)=>r.call(i,l(c),l(u),s))}};return fn(A,e?{add:Tu("add"),set:Tu("set"),delete:Tu("delete"),clear:Tu("clear")}:{add(r){const i=ze(this),s=Mu(i),o=ze(r),a=!t&&!xr(r)&&!is(r)?o:r;return s.has.call(i,a)||ui(r,a)&&s.has.call(i,r)||ui(o,a)&&s.has.call(i,o)||(i.add(a),Xi(i,"add",a,a)),this},set(r,i){!t&&!xr(i)&&!is(i)&&(i=ze(i));const s=ze(this),{has:o,get:a}=Mu(s);let l=o.call(s,r);l||(r=ze(r),l=o.call(s,r));const c=a.call(s,r);return s.set(r,i),l?ui(i,c)&&Xi(s,"set",r,i):Xi(s,"add",r,i),this},delete(r){const i=ze(this),{has:s,get:o}=Mu(i);let a=s.call(i,r);a||(r=ze(r),a=s.call(i,r)),o&&o.call(i,r);const l=i.delete(r);return a&&Xi(i,"delete",r,void 0),l},clear(){const r=ze(this),i=r.size!==0,s=r.clear();return i&&Xi(r,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(r=>{A[r]=ix(r,e,t)}),A}function D0(e,t){const A=sx(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get($e(A,r)&&r in n?A:n,r,i)}const ox={get:D0(!1,!1)},ax={get:D0(!1,!0)},lx={get:D0(!0,!1)};const Ab=new WeakMap,nb=new WeakMap,rb=new WeakMap,cx=new WeakMap;function ux(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fx(e){return e.__v_skip||!Object.isExtensible(e)?0:ux(M4(e))}function Vh(e){return is(e)?e:H0(e,!1,Ax,ox,Ab)}function ib(e){return H0(e,!1,rx,ax,nb)}function mp(e){return H0(e,!0,nx,lx,rb)}function H0(e,t,A,n,r){if(!tA(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=fx(e);if(i===0)return e;const s=r.get(e);if(s)return s;const o=new Proxy(e,i===2?n:A);return r.set(e,o),o}function To(e){return is(e)?To(e.__v_raw):!!(e&&e.__v_isReactive)}function is(e){return!!(e&&e.__v_isReadonly)}function xr(e){return!!(e&&e.__v_isShallow)}function M0(e){return e?!!e.__v_raw:!1}function ze(e){const t=e&&e.__v_raw;return t?ze(t):e}function hx(e){return!$e(e,"__v_skip")&&Object.isExtensible(e)&&Rv(e,"__v_skip",!0),e}const Pr=e=>tA(e)?Vh(e):e,Xa=e=>tA(e)?mp(e):e;function In(e){return e?e.__v_isRef===!0:!1}function ge(e){return sb(e,!1)}function dx(e){return sb(e,!0)}function sb(e,t){return In(e)?e:new gx(e,t)}class gx{constructor(t,A){this.dep=new N0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=A?t:ze(t),this._value=A?t:Pr(t),this.__v_isShallow=A}get value(){return this.dep.track(),this._value}set value(t){const A=this._rawValue,n=this.__v_isShallow||xr(t)||is(t);t=n?t:ze(t),ui(t,A)&&(this._rawValue=t,this._value=n?t:Pr(t),this.dep.trigger())}}function qt(e){return In(e)?e.value:e}const px={get:(e,t,A)=>t==="__v_raw"?e:qt(Reflect.get(e,t,A)),set:(e,t,A,n)=>{const r=e[t];return In(r)&&!In(A)?(r.value=A,!0):Reflect.set(e,t,A,n)}};function ob(e){return To(e)?e:new Proxy(e,px)}class mx{constructor(t,A,n){this.fn=t,this.setter=A,this._value=void 0,this.dep=new N0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ec-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!A,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&fA!==this)return zv(this,!0),!0}get value(){const t=this.dep.track();return Xv(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Bx(e,t,A=!1){let n,r;return Qe(e)?n=e:(n=e.get,r=e.set),new mx(n,r,A)}const Ou={},rh=new WeakMap;let _o;function wx(e,t=!1,A=_o){if(A){let n=rh.get(A);n||rh.set(A,n=[]),n.push(e)}}function vx(e,t,A=oA){const{immediate:n,deep:r,once:i,scheduler:s,augmentJob:o,call:a}=A,l=_=>r?_:xr(_)||r===!1||r===0?Yi(_,1):Yi(_);let c,u,d,f,m=!1,B=!1;if(In(e)?(u=()=>e.value,m=xr(e)):To(e)?(u=()=>l(e),m=!0):me(e)?(B=!0,m=e.some(_=>To(_)||xr(_)),u=()=>e.map(_=>{if(In(_))return _.value;if(To(_))return l(_);if(Qe(_))return a?a(_,2):_()})):Qe(e)?t?u=a?()=>a(e,2):e:u=()=>{if(d){ns();try{d()}finally{rs()}}const _=_o;_o=c;try{return a?a(e,3,[f]):e(f)}finally{_o=_}}:u=hi,t&&r){const _=u,H=r===!0?1/0:r;u=()=>Yi(_(),H)}const v=$4(),b=()=>{c.stop(),v&&v.active&&Q0(v.effects,c)};if(i&&t){const _=t;t=(...H)=>{_(...H),b()}}let C=B?new Array(e.length).fill(Ou):Ou;const Q=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const H=c.run();if(r||m||(B?H.some((W,R)=>ui(W,C[R])):ui(H,C))){d&&d();const W=_o;_o=c;try{const R=[H,C===Ou?void 0:B&&C[0]===Ou?[]:C,f];C=H,a?a(t,3,R):t(...R)}finally{_o=W}}}else c.run()};return o&&o(Q),c=new Gv(u),c.scheduler=s?()=>s(Q,!1):Q,f=_=>wx(_,!1,c),d=c.onStop=()=>{const _=rh.get(c);if(_){if(a)a(_,4);else for(const H of _)H();rh.delete(c)}},t?n?Q(!0):C=c.run():s?s(Q.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function Yi(e,t=1/0,A){if(t<=0||!tA(e)||e.__v_skip||(A=A||new Map,(A.get(e)||0)>=t))return e;if(A.set(e,t),t--,In(e))Yi(e.value,t,A);else if(me(e))for(let n=0;n<e.length;n++)Yi(e[n],t,A);else if(il(e)||Ra(e))e.forEach(n=>{Yi(n,t,A)});else if(Pv(e)){for(const n in e)Yi(e[n],t,A);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Yi(e[n],t,A)}return e}/**
|
||
* @vue/runtime-core v3.5.30
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Xc(e,t,A,n){try{return n?e(...n):e()}catch(r){jh(r,t,A)}}function Bi(e,t,A,n){if(Qe(e)){const r=Xc(e,t,A,n);return r&&Tv(r)&&r.catch(i=>{jh(i,t,A)}),r}if(me(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Bi(e[i],t,A,n));return r}}function jh(e,t,A,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||oA;if(t){let o=t.parent;const a=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${A}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,a,l)===!1)return}o=o.parent}if(i){ns(),Xc(i,null,10,[e,a,l]),rs();return}}bx(e,A,r,n,s)}function bx(e,t,A,n=!0,r=!1){if(r)throw e;console.error(e)}const Pn=[];let oi=-1;const Ka=[];let Es=null,La=0;const ab=Promise.resolve();let ih=null;function T0(e){const t=ih||ab;return e?t.then(this?e.bind(this):e):t}function yx(e){let t=oi+1,A=Pn.length;for(;t<A;){const n=t+A>>>1,r=Pn[n],i=Sc(r);i<e||i===e&&r.flags&2?t=n+1:A=n}return t}function O0(e){if(!(e.flags&1)){const t=Sc(e),A=Pn[Pn.length-1];!A||!(e.flags&2)&&t>=Sc(A)?Pn.push(e):Pn.splice(yx(t),0,e),e.flags|=1,lb()}}function lb(){ih||(ih=ab.then(ub))}function Cx(e){me(e)?Ka.push(...e):Es&&e.id===-1?Es.splice(La+1,0,e):e.flags&1||(Ka.push(e),e.flags|=1),lb()}function lm(e,t,A=oi+1){for(;A<Pn.length;A++){const n=Pn[A];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Pn.splice(A,1),A--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function cb(e){if(Ka.length){const t=[...new Set(Ka)].sort((A,n)=>Sc(A)-Sc(n));if(Ka.length=0,Es){Es.push(...t);return}for(Es=t,La=0;La<Es.length;La++){const A=Es[La];A.flags&4&&(A.flags&=-2),A.flags&8||A(),A.flags&=-2}Es=null,La=0}}const Sc=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ub(e){try{for(oi=0;oi<Pn.length;oi++){const t=Pn[oi];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xc(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;oi<Pn.length;oi++){const t=Pn[oi];t&&(t.flags&=-2)}oi=-1,Pn.length=0,cb(),ih=null,(Pn.length||Ka.length)&&ub()}}let lr=null,fb=null;function sh(e){const t=lr;return lr=e,fb=e&&e.type.__scopeId||null,t}function xx(e,t=lr,A){if(!t||e._n)return e;const n=(...r)=>{n._d&&lh(-1);const i=sh(t);let s;try{s=e(...r)}finally{sh(i),n._d&&lh(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function Tt(e,t){if(lr===null)return e;const A=$h(lr),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,o,a=oA]=t[r];i&&(Qe(i)&&(i={mounted:i,updated:i}),i.deep&&Yi(s),n.push({dir:i,instance:A,value:s,oldValue:void 0,arg:o,modifiers:a}))}return e}function wo(e,t,A,n){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const o=r[s];i&&(o.oldValue=i[s].value);let a=o.dir[n];a&&(ns(),Bi(a,A,8,[e.el,o,e,t]),rs())}}function Hf(e,t){if(Qn){let A=Qn.provides;const n=Qn.parent&&Qn.parent.provides;n===A&&(A=Qn.provides=Object.create(n)),A[e]=t}}function di(e,t,A=!1){const n=CF();if(n||Va){let r=Va?Va._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return A&&Qe(t)?t.call(n&&n.proxy):t}}const Fx=Symbol.for("v-scx"),_x=()=>di(Fx);function Fr(e,t,A){return hb(e,t,A)}function hb(e,t,A=oA){const{immediate:n,deep:r,flush:i,once:s}=A,o=fn({},A),a=t&&n||!t&&i!=="post";let l;if(kc){if(i==="sync"){const f=_x();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!a){const f=()=>{};return f.stop=hi,f.resume=hi,f.pause=hi,f}}const c=Qn;o.call=(f,m,B)=>Bi(f,c,m,B);let u=!1;i==="post"?o.scheduler=f=>{zn(f,c&&c.suspense)}:i!=="sync"&&(u=!0,o.scheduler=(f,m)=>{m?f():O0(f)}),o.augmentJob=f=>{t&&(f.flags|=4),u&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const d=vx(e,t,o);return kc&&(l?l.push(d):a&&d()),d}function Ux(e,t,A){const n=this.proxy,r=KA(e)?e.includes(".")?db(n,e):()=>n[e]:e.bind(n,n);let i;Qe(t)?i=t:(i=t.handler,A=t);const s=Yc(this),o=hb(r,i.bind(n),A);return s(),o}function db(e,t){const A=t.split(".");return()=>{let n=e;for(let r=0;r<A.length&&n;r++)n=n[A[r]];return n}}const Qx=Symbol("_vte"),Ex=e=>e.__isTeleport,Ix=Symbol("_leaveCb");function P0(e,t){e.shapeFlag&6&&e.component?(e.transition=t,P0(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gb(e,t){return Qe(e)?fn({name:e.name},t,{setup:e}):e}function pb(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cm(e,t){let A;return!!((A=Object.getOwnPropertyDescriptor(e,t))&&!A.configurable)}const oh=new WeakMap;function cc(e,t,A,n,r=!1){if(me(e)){e.forEach((B,v)=>cc(B,t&&(me(t)?t[v]:t),A,n,r));return}if(uc(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&cc(e,t,A,n.component.subTree);return}const i=n.shapeFlag&4?$h(n.component):n.el,s=r?null:i,{i:o,r:a}=e,l=t&&t.r,c=o.refs===oA?o.refs={}:o.refs,u=o.setupState,d=ze(u),f=u===oA?Mv:B=>cm(c,B)?!1:$e(d,B),m=(B,v)=>!(v&&cm(c,v));if(l!=null&&l!==a){if(um(t),KA(l))c[l]=null,f(l)&&(u[l]=null);else if(In(l)){const B=t;m(l,B.k)&&(l.value=null),B.k&&(c[B.k]=null)}}if(Qe(a))Xc(a,o,12,[s,c]);else{const B=KA(a),v=In(a);if(B||v){const b=()=>{if(e.f){const C=B?f(a)?u[a]:c[a]:m()||!e.k?a.value:c[e.k];if(r)me(C)&&Q0(C,i);else if(me(C))C.includes(i)||C.push(i);else if(B)c[a]=[i],f(a)&&(u[a]=c[a]);else{const Q=[i];m(a,e.k)&&(a.value=Q),e.k&&(c[e.k]=Q)}}else B?(c[a]=s,f(a)&&(u[a]=s)):v&&(m(a,e.k)&&(a.value=s),e.k&&(c[e.k]=s))};if(s){const C=()=>{b(),oh.delete(e)};C.id=-1,oh.set(e,C),zn(C,A)}else um(e),b()}}}function um(e){const t=oh.get(e);t&&(t.flags|=8,oh.delete(e))}Rh().requestIdleCallback;Rh().cancelIdleCallback;const uc=e=>!!e.type.__asyncLoader,mb=e=>e.type.__isKeepAlive;function Sx(e,t){Bb(e,"a",t)}function Lx(e,t){Bb(e,"da",t)}function Bb(e,t,A=Qn){const n=e.__wdc||(e.__wdc=()=>{let r=A;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Gh(t,n,A),A){let r=A.parent;for(;r&&r.parent;)mb(r.parent.vnode)&&kx(n,t,A,r),r=r.parent}}function kx(e,t,A,n){const r=Gh(t,e,n,!0);R0(()=>{Q0(n[t],r)},A)}function Gh(e,t,A=Qn,n=!1){if(A){const r=A[e]||(A[e]=[]),i=t.__weh||(t.__weh=(...s)=>{ns();const o=Yc(A),a=Bi(t,A,e,s);return o(),rs(),a});return n?r.unshift(i):r.push(i),i}}const os=e=>(t,A=Qn)=>{(!kc||e==="sp")&&Gh(e,(...n)=>t(...n),A)},Nx=os("bm"),wi=os("m"),Dx=os("bu"),Hx=os("u"),Mx=os("bum"),R0=os("um"),Tx=os("sp"),Ox=os("rtg"),Px=os("rtc");function Rx(e,t=Qn){Gh("ec",e,t)}const Kx="components",wb=Symbol.for("v-ndc");function Pu(e){return KA(e)?Vx(Kx,e,!1)||e:e||wb}function Vx(e,t,A=!0,n=!1){const r=lr||Qn;if(r){const i=r.type;{const o=QF(i,!1);if(o&&(o===t||o===Kn(t)||o===Oh(Kn(t))))return i}const s=fm(r[e]||i[e],t)||fm(r.appContext[e],t);return!s&&n?i:s}}function fm(e,t){return e&&(e[t]||e[Kn(t)]||e[Oh(Kn(t))])}function Ue(e,t,A,n){let r;const i=A,s=me(e);if(s||KA(e)){const o=s&&To(e);let a=!1,l=!1;o&&(a=!xr(e),l=is(e),e=Kh(e)),r=new Array(e.length);for(let c=0,u=e.length;c<u;c++)r[c]=t(a?l?Xa(Pr(e[c])):Pr(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,i)}else if(tA(e))if(e[Symbol.iterator])r=Array.from(e,(o,a)=>t(o,a,void 0,i));else{const o=Object.keys(e);r=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];r[a]=t(e[c],c,a,i)}}else r=[];return r}const Bp=e=>e?Ob(e)?$h(e):Bp(e.parent):null,fc=fn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bp(e.parent),$root:e=>Bp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bb(e),$forceUpdate:e=>e.f||(e.f=()=>{O0(e.update)}),$nextTick:e=>e.n||(e.n=T0.bind(e.proxy)),$watch:e=>Ux.bind(e)}),Ag=(e,t)=>e!==oA&&!e.__isScriptSetup&&$e(e,t),jx={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:A,setupState:n,data:r,props:i,accessCache:s,type:o,appContext:a}=e;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return r[t];case 4:return A[t];case 3:return i[t]}else{if(Ag(n,t))return s[t]=1,n[t];if(r!==oA&&$e(r,t))return s[t]=2,r[t];if($e(i,t))return s[t]=3,i[t];if(A!==oA&&$e(A,t))return s[t]=4,A[t];wp&&(s[t]=0)}}const l=fc[t];let c,u;if(l)return t==="$attrs"&&Un(e.attrs,"get",""),l(e);if((c=o.__cssModules)&&(c=c[t]))return c;if(A!==oA&&$e(A,t))return s[t]=4,A[t];if(u=a.config.globalProperties,$e(u,t))return u[t]},set({_:e},t,A){const{data:n,setupState:r,ctx:i}=e;return Ag(r,t)?(r[t]=A,!0):n!==oA&&$e(n,t)?(n[t]=A,!0):$e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=A,!0)},has({_:{data:e,setupState:t,accessCache:A,ctx:n,appContext:r,props:i,type:s}},o){let a;return!!(A[o]||e!==oA&&o[0]!=="$"&&$e(e,o)||Ag(t,o)||$e(i,o)||$e(n,o)||$e(fc,o)||$e(r.config.globalProperties,o)||(a=s.__cssModules)&&a[o])},defineProperty(e,t,A){return A.get!=null?e._.accessCache[t]=0:$e(A,"value")&&this.set(e,t,A.value,null),Reflect.defineProperty(e,t,A)}};function hm(e){return me(e)?e.reduce((t,A)=>(t[A]=null,t),{}):e}let wp=!0;function Gx(e){const t=bb(e),A=e.proxy,n=e.ctx;wp=!1,t.beforeCreate&&dm(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:o,provide:a,inject:l,created:c,beforeMount:u,mounted:d,beforeUpdate:f,updated:m,activated:B,deactivated:v,beforeDestroy:b,beforeUnmount:C,destroyed:Q,unmounted:_,render:H,renderTracked:W,renderTriggered:R,errorCaptured:O,serverPrefetch:k,expose:V,inheritAttrs:F,components:L,directives:G,filters:q}=t;if(l&&Wx(l,n,null),s)for(const ct in s){const at=s[ct];Qe(at)&&(n[ct]=at.bind(A))}if(r){const ct=r.call(A,A);tA(ct)&&(e.data=Vh(ct))}if(wp=!0,i)for(const ct in i){const at=i[ct],st=Qe(at)?at.bind(A,A):Qe(at.get)?at.get.bind(A,A):hi,Z=!Qe(at)&&Qe(at.set)?at.set.bind(A):hi,j=ye({get:st,set:Z});Object.defineProperty(n,ct,{enumerable:!0,configurable:!0,get:()=>j.value,set:U=>j.value=U})}if(o)for(const ct in o)vb(o[ct],n,A,ct);if(a){const ct=Qe(a)?a.call(A):a;Reflect.ownKeys(ct).forEach(at=>{Hf(at,ct[at])})}c&&dm(c,e,"c");function lt(ct,at){me(at)?at.forEach(st=>ct(st.bind(A))):at&&ct(at.bind(A))}if(lt(Nx,u),lt(wi,d),lt(Dx,f),lt(Hx,m),lt(Sx,B),lt(Lx,v),lt(Rx,O),lt(Px,W),lt(Ox,R),lt(Mx,C),lt(R0,_),lt(Tx,k),me(V))if(V.length){const ct=e.exposed||(e.exposed={});V.forEach(at=>{Object.defineProperty(ct,at,{get:()=>A[at],set:st=>A[at]=st,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===hi&&(e.render=H),F!=null&&(e.inheritAttrs=F),L&&(e.components=L),G&&(e.directives=G),k&&pb(e)}function Wx(e,t,A=hi){me(e)&&(e=vp(e));for(const n in e){const r=e[n];let i;tA(r)?"default"in r?i=di(r.from||n,r.default,!0):i=di(r.from||n):i=di(r),In(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[n]=i}}function dm(e,t,A){Bi(me(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,A)}function vb(e,t,A,n){let r=n.includes(".")?db(A,n):()=>A[n];if(KA(e)){const i=t[e];Qe(i)&&Fr(r,i)}else if(Qe(e))Fr(r,e.bind(A));else if(tA(e))if(me(e))e.forEach(i=>vb(i,t,A,n));else{const i=Qe(e.handler)?e.handler.bind(A):t[e.handler];Qe(i)&&Fr(r,i,e)}}function bb(e){const t=e.type,{mixins:A,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,o=i.get(t);let a;return o?a=o:!r.length&&!A&&!n?a=t:(a={},r.length&&r.forEach(l=>ah(a,l,s,!0)),ah(a,t,s)),tA(t)&&i.set(t,a),a}function ah(e,t,A,n=!1){const{mixins:r,extends:i}=t;i&&ah(e,i,A,!0),r&&r.forEach(s=>ah(e,s,A,!0));for(const s in t)if(!(n&&s==="expose")){const o=zx[s]||A&&A[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const zx={data:gm,props:pm,emits:pm,methods:zl,computed:zl,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:zl,directives:zl,watch:qx,provide:gm,inject:$x};function gm(e,t){return t?e?function(){return fn(Qe(e)?e.call(this,this):e,Qe(t)?t.call(this,this):t)}:t:e}function $x(e,t){return zl(vp(e),vp(t))}function vp(e){if(me(e)){const t={};for(let A=0;A<e.length;A++)t[e[A]]=e[A];return t}return e}function Mn(e,t){return e?[...new Set([].concat(e,t))]:t}function zl(e,t){return e?fn(Object.create(null),e,t):t}function pm(e,t){return e?me(e)&&me(t)?[...new Set([...e,...t])]:fn(Object.create(null),hm(e),hm(t??{})):t}function qx(e,t){if(!e)return t;if(!t)return e;const A=fn(Object.create(null),e);for(const n in t)A[n]=Mn(e[n],t[n]);return A}function yb(){return{app:null,config:{isNativeTag:Mv,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 Xx=0;function Yx(e,t){return function(n,r=null){Qe(n)||(n=fn({},n)),r!=null&&!tA(r)&&(r=null);const i=yb(),s=new WeakSet,o=[];let a=!1;const l=i.app={_uid:Xx++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:IF,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&Qe(c.install)?(s.add(c),c.install(l,...u)):Qe(c)&&(s.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,d){if(!a){const f=l._ceVNode||Vt(n,r);return f.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(f,c,d),a=!0,l._container=c,c.__vue_app__=l,$h(f.component)}},onUnmount(c){o.push(c)},unmount(){a&&(Bi(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l},runWithContext(c){const u=Va;Va=l;try{return c()}finally{Va=u}}};return l}}let Va=null;const Jx=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Kn(t)}Modifiers`]||e[`${Ys(t)}Modifiers`];function Zx(e,t,...A){if(e.isUnmounted)return;const n=e.vnode.props||oA;let r=A;const i=t.startsWith("update:"),s=i&&Jx(n,t.slice(7));s&&(s.trim&&(r=A.map(c=>KA(c)?c.trim():c)),s.number&&(r=A.map(Ph)));let o,a=n[o=Yd(t)]||n[o=Yd(Kn(t))];!a&&i&&(a=n[o=Yd(Ys(t))]),a&&Bi(a,e,6,r);const l=n[o+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Bi(l,e,6,r)}}const tF=new WeakMap;function Cb(e,t,A=!1){const n=A?tF:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let s={},o=!1;if(!Qe(e)){const a=l=>{const c=Cb(l,t,!0);c&&(o=!0,fn(s,c))};!A&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!o?(tA(e)&&n.set(e,null),null):(me(i)?i.forEach(a=>s[a]=null):fn(s,i),tA(e)&&n.set(e,s),s)}function Wh(e,t){return!e||!Mh(t)?!1:(t=t.slice(2).replace(/Once$/,""),$e(e,t[0].toLowerCase()+t.slice(1))||$e(e,Ys(t))||$e(e,t))}function mm(e){const{type:t,vnode:A,proxy:n,withProxy:r,propsOptions:[i],slots:s,attrs:o,emit:a,render:l,renderCache:c,props:u,data:d,setupState:f,ctx:m,inheritAttrs:B}=e,v=sh(e);let b,C;try{if(A.shapeFlag&4){const _=r||n,H=_;b=ci(l.call(H,_,c,u,f,d,m)),C=o}else{const _=t;b=ci(_.length>1?_(u,{attrs:o,slots:s,emit:a}):_(u,null)),C=t.props?o:eF(o)}}catch(_){hc.length=0,jh(_,e,1),b=Vt(Ws)}let Q=b;if(C&&B!==!1){const _=Object.keys(C),{shapeFlag:H}=Q;_.length&&H&7&&(i&&_.some(U0)&&(C=AF(C,i)),Q=Ya(Q,C,!1,!0))}return A.dirs&&(Q=Ya(Q,null,!1,!0),Q.dirs=Q.dirs?Q.dirs.concat(A.dirs):A.dirs),A.transition&&P0(Q,A.transition),b=Q,sh(v),b}const eF=e=>{let t;for(const A in e)(A==="class"||A==="style"||Mh(A))&&((t||(t={}))[A]=e[A]);return t},AF=(e,t)=>{const A={};for(const n in e)(!U0(n)||!(n.slice(9)in t))&&(A[n]=e[n]);return A};function nF(e,t,A){const{props:n,children:r,component:i}=e,{props:s,children:o,patchFlag:a}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(A&&a>=0){if(a&1024)return!0;if(a&16)return n?Bm(n,s,l):!!s;if(a&8){const c=t.dynamicProps;for(let u=0;u<c.length;u++){const d=c[u];if(xb(s,n,d)&&!Wh(l,d))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:n===s?!1:n?s?Bm(n,s,l):!0:!!s;return!1}function Bm(e,t,A){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(xb(t,e,i)&&!Wh(A,i))return!0}return!1}function xb(e,t,A){const n=e[A],r=t[A];return A==="style"&&tA(n)&&tA(r)?!sl(n,r):n!==r}function rF({vnode:e,parent:t},A){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=A,t=t.parent;else break}}const Fb={},_b=()=>Object.create(Fb),Ub=e=>Object.getPrototypeOf(e)===Fb;function iF(e,t,A,n=!1){const r={},i=_b();e.propsDefaults=Object.create(null),Qb(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);A?e.props=n?r:ib(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function sF(e,t,A,n){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,o=ze(r),[a]=e.propsOptions;let l=!1;if((n||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let u=0;u<c.length;u++){let d=c[u];if(Wh(e.emitsOptions,d))continue;const f=t[d];if(a)if($e(i,d))f!==i[d]&&(i[d]=f,l=!0);else{const m=Kn(d);r[m]=bp(a,o,m,f,e,!1)}else f!==i[d]&&(i[d]=f,l=!0)}}}else{Qb(e,t,r,i)&&(l=!0);let c;for(const u in o)(!t||!$e(t,u)&&((c=Ys(u))===u||!$e(t,c)))&&(a?A&&(A[u]!==void 0||A[c]!==void 0)&&(r[u]=bp(a,o,u,void 0,e,!0)):delete r[u]);if(i!==o)for(const u in i)(!t||!$e(t,u))&&(delete i[u],l=!0)}l&&Xi(e.attrs,"set","")}function Qb(e,t,A,n){const[r,i]=e.propsOptions;let s=!1,o;if(t)for(let a in t){if(oc(a))continue;const l=t[a];let c;r&&$e(r,c=Kn(a))?!i||!i.includes(c)?A[c]=l:(o||(o={}))[c]=l:Wh(e.emitsOptions,a)||(!(a in n)||l!==n[a])&&(n[a]=l,s=!0)}if(i){const a=ze(A),l=o||oA;for(let c=0;c<i.length;c++){const u=i[c];A[u]=bp(r,a,u,l[u],e,!$e(l,u))}}return s}function bp(e,t,A,n,r,i){const s=e[A];if(s!=null){const o=$e(s,"default");if(o&&n===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&Qe(a)){const{propsDefaults:l}=r;if(A in l)n=l[A];else{const c=Yc(r);n=l[A]=a.call(null,t),c()}}else n=a;r.ce&&r.ce._setProp(A,n)}s[0]&&(i&&!o?n=!1:s[1]&&(n===""||n===Ys(A))&&(n=!0))}return n}const oF=new WeakMap;function Eb(e,t,A=!1){const n=A?oF:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,s={},o=[];let a=!1;if(!Qe(e)){const c=u=>{a=!0;const[d,f]=Eb(u,t,!0);fn(s,d),f&&o.push(...f)};!A&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return tA(e)&&n.set(e,Pa),Pa;if(me(i))for(let c=0;c<i.length;c++){const u=Kn(i[c]);wm(u)&&(s[u]=oA)}else if(i)for(const c in i){const u=Kn(c);if(wm(u)){const d=i[c],f=s[u]=me(d)||Qe(d)?{type:d}:fn({},d),m=f.type;let B=!1,v=!0;if(me(m))for(let b=0;b<m.length;++b){const C=m[b],Q=Qe(C)&&C.name;if(Q==="Boolean"){B=!0;break}else Q==="String"&&(v=!1)}else B=Qe(m)&&m.name==="Boolean";f[0]=B,f[1]=v,(B||$e(f,"default"))&&o.push(u)}}const l=[s,o];return tA(e)&&n.set(e,l),l}function wm(e){return e[0]!=="$"&&!oc(e)}const K0=e=>e==="_"||e==="_ctx"||e==="$stable",V0=e=>me(e)?e.map(ci):[ci(e)],aF=(e,t,A)=>{if(t._n)return t;const n=xx((...r)=>V0(t(...r)),A);return n._c=!1,n},Ib=(e,t,A)=>{const n=e._ctx;for(const r in e){if(K0(r))continue;const i=e[r];if(Qe(i))t[r]=aF(r,i,n);else if(i!=null){const s=V0(i);t[r]=()=>s}}},Sb=(e,t)=>{const A=V0(t);e.slots.default=()=>A},Lb=(e,t,A)=>{for(const n in t)(A||!K0(n))&&(e[n]=t[n])},lF=(e,t,A)=>{const n=e.slots=_b();if(e.vnode.shapeFlag&32){const r=t._;r?(Lb(n,t,A),A&&Rv(n,"_",r,!0)):Ib(t,n)}else t&&Sb(e,t)},cF=(e,t,A)=>{const{vnode:n,slots:r}=e;let i=!0,s=oA;if(n.shapeFlag&32){const o=t._;o?A&&o===1?i=!1:Lb(r,t,A):(i=!t.$stable,Ib(t,r)),s=t}else t&&(Sb(e,t),s={default:1});if(i)for(const o in r)!K0(o)&&s[o]==null&&delete r[o]},zn=gF;function uF(e){return fF(e)}function fF(e,t){const A=Rh();A.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:s,createText:o,createComment:a,setText:l,setElementText:c,parentNode:u,nextSibling:d,setScopeId:f=hi,insertStaticContent:m}=e,B=(P,$,rt,S=null,pt=null,xt=null,Et=void 0,mt=null,Ft=!!$.dynamicChildren)=>{if(P===$)return;P&&!kl(P,$)&&(S=z(P),U(P,pt,xt,!0),P=null),$.patchFlag===-2&&(Ft=!1,$.dynamicChildren=null);const{type:bt,ref:Mt,shapeFlag:It}=$;switch(bt){case zh:v(P,$,rt,S);break;case Ws:b(P,$,rt,S);break;case rg:P==null&&C($,rt,S,Et);break;case ce:L(P,$,rt,S,pt,xt,Et,mt,Ft);break;default:It&1?H(P,$,rt,S,pt,xt,Et,mt,Ft):It&6?G(P,$,rt,S,pt,xt,Et,mt,Ft):(It&64||It&128)&&bt.process(P,$,rt,S,pt,xt,Et,mt,Ft,wt)}Mt!=null&&pt?cc(Mt,P&&P.ref,xt,$||P,!$):Mt==null&&P&&P.ref!=null&&cc(P.ref,null,xt,P,!0)},v=(P,$,rt,S)=>{if(P==null)n($.el=o($.children),rt,S);else{const pt=$.el=P.el;$.children!==P.children&&l(pt,$.children)}},b=(P,$,rt,S)=>{P==null?n($.el=a($.children||""),rt,S):$.el=P.el},C=(P,$,rt,S)=>{[P.el,P.anchor]=m(P.children,$,rt,S,P.el,P.anchor)},Q=({el:P,anchor:$},rt,S)=>{let pt;for(;P&&P!==$;)pt=d(P),n(P,rt,S),P=pt;n($,rt,S)},_=({el:P,anchor:$})=>{let rt;for(;P&&P!==$;)rt=d(P),r(P),P=rt;r($)},H=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{if($.type==="svg"?Et="svg":$.type==="math"&&(Et="mathml"),P==null)W($,rt,S,pt,xt,Et,mt,Ft);else{const bt=P.el&&P.el._isVueCE?P.el:null;try{bt&&bt._beginPatch(),k(P,$,pt,xt,Et,mt,Ft)}finally{bt&&bt._endPatch()}}},W=(P,$,rt,S,pt,xt,Et,mt)=>{let Ft,bt;const{props:Mt,shapeFlag:It,transition:Pt,dirs:Kt}=P;if(Ft=P.el=s(P.type,xt,Mt&&Mt.is,Mt),It&8?c(Ft,P.children):It&16&&O(P.children,Ft,null,S,pt,ng(P,xt),Et,mt),Kt&&wo(P,null,S,"created"),R(Ft,P,P.scopeId,Et,S),Mt){for(const ee in Mt)ee!=="value"&&!oc(ee)&&i(Ft,ee,null,Mt[ee],xt,S);"value"in Mt&&i(Ft,"value",null,Mt.value,xt),(bt=Mt.onVnodeBeforeMount)&&Ai(bt,S,P)}Kt&&wo(P,null,S,"beforeMount");const Gt=hF(pt,Pt);Gt&&Pt.beforeEnter(Ft),n(Ft,$,rt),((bt=Mt&&Mt.onVnodeMounted)||Gt||Kt)&&zn(()=>{bt&&Ai(bt,S,P),Gt&&Pt.enter(Ft),Kt&&wo(P,null,S,"mounted")},pt)},R=(P,$,rt,S,pt)=>{if(rt&&f(P,rt),S)for(let xt=0;xt<S.length;xt++)f(P,S[xt]);if(pt){let xt=pt.subTree;if($===xt||Hb(xt.type)&&(xt.ssContent===$||xt.ssFallback===$)){const Et=pt.vnode;R(P,Et,Et.scopeId,Et.slotScopeIds,pt.parent)}}},O=(P,$,rt,S,pt,xt,Et,mt,Ft=0)=>{for(let bt=Ft;bt<P.length;bt++){const Mt=P[bt]=mt?zi(P[bt]):ci(P[bt]);B(null,Mt,$,rt,S,pt,xt,Et,mt)}},k=(P,$,rt,S,pt,xt,Et)=>{const mt=$.el=P.el;let{patchFlag:Ft,dynamicChildren:bt,dirs:Mt}=$;Ft|=P.patchFlag&16;const It=P.props||oA,Pt=$.props||oA;let Kt;if(rt&&vo(rt,!1),(Kt=Pt.onVnodeBeforeUpdate)&&Ai(Kt,rt,$,P),Mt&&wo($,P,rt,"beforeUpdate"),rt&&vo(rt,!0),(It.innerHTML&&Pt.innerHTML==null||It.textContent&&Pt.textContent==null)&&c(mt,""),bt?V(P.dynamicChildren,bt,mt,rt,S,ng($,pt),xt):Et||at(P,$,mt,null,rt,S,ng($,pt),xt,!1),Ft>0){if(Ft&16)F(mt,It,Pt,rt,pt);else if(Ft&2&&It.class!==Pt.class&&i(mt,"class",null,Pt.class,pt),Ft&4&&i(mt,"style",It.style,Pt.style,pt),Ft&8){const Gt=$.dynamicProps;for(let ee=0;ee<Gt.length;ee++){const Yt=Gt[ee],Wt=It[Yt],oe=Pt[Yt];(oe!==Wt||Yt==="value")&&i(mt,Yt,Wt,oe,pt,rt)}}Ft&1&&P.children!==$.children&&c(mt,$.children)}else!Et&&bt==null&&F(mt,It,Pt,rt,pt);((Kt=Pt.onVnodeUpdated)||Mt)&&zn(()=>{Kt&&Ai(Kt,rt,$,P),Mt&&wo($,P,rt,"updated")},S)},V=(P,$,rt,S,pt,xt,Et)=>{for(let mt=0;mt<$.length;mt++){const Ft=P[mt],bt=$[mt],Mt=Ft.el&&(Ft.type===ce||!kl(Ft,bt)||Ft.shapeFlag&198)?u(Ft.el):rt;B(Ft,bt,Mt,null,S,pt,xt,Et,!0)}},F=(P,$,rt,S,pt)=>{if($!==rt){if($!==oA)for(const xt in $)!oc(xt)&&!(xt in rt)&&i(P,xt,$[xt],null,pt,S);for(const xt in rt){if(oc(xt))continue;const Et=rt[xt],mt=$[xt];Et!==mt&&xt!=="value"&&i(P,xt,mt,Et,pt,S)}"value"in rt&&i(P,"value",$.value,rt.value,pt)}},L=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{const bt=$.el=P?P.el:o(""),Mt=$.anchor=P?P.anchor:o("");let{patchFlag:It,dynamicChildren:Pt,slotScopeIds:Kt}=$;Kt&&(mt=mt?mt.concat(Kt):Kt),P==null?(n(bt,rt,S),n(Mt,rt,S),O($.children||[],rt,Mt,pt,xt,Et,mt,Ft)):It>0&&It&64&&Pt&&P.dynamicChildren&&P.dynamicChildren.length===Pt.length?(V(P.dynamicChildren,Pt,rt,pt,xt,Et,mt),($.key!=null||pt&&$===pt.subTree)&&kb(P,$,!0)):at(P,$,rt,Mt,pt,xt,Et,mt,Ft)},G=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{$.slotScopeIds=mt,P==null?$.shapeFlag&512?pt.ctx.activate($,rt,S,Et,Ft):q($,rt,S,pt,xt,Et,Ft):ft(P,$,Ft)},q=(P,$,rt,S,pt,xt,Et)=>{const mt=P.component=yF(P,S,pt);if(mb(P)&&(mt.ctx.renderer=wt),xF(mt,!1,Et),mt.asyncDep){if(pt&&pt.registerDep(mt,lt,Et),!P.el){const Ft=mt.subTree=Vt(Ws);b(null,Ft,$,rt),P.placeholder=Ft.el}}else lt(mt,P,$,rt,pt,xt,Et)},ft=(P,$,rt)=>{const S=$.component=P.component;if(nF(P,$,rt))if(S.asyncDep&&!S.asyncResolved){ct(S,$,rt);return}else S.next=$,S.update();else $.el=P.el,S.vnode=$},lt=(P,$,rt,S,pt,xt,Et)=>{const mt=()=>{if(P.isMounted){let{next:It,bu:Pt,u:Kt,parent:Gt,vnode:ee}=P;{const Ke=Nb(P);if(Ke){It&&(It.el=ee.el,ct(P,It,Et)),Ke.asyncDep.then(()=>{zn(()=>{P.isUnmounted||bt()},pt)});return}}let Yt=It,Wt;vo(P,!1),It?(It.el=ee.el,ct(P,It,Et)):It=ee,Pt&&Df(Pt),(Wt=It.props&&It.props.onVnodeBeforeUpdate)&&Ai(Wt,Gt,It,ee),vo(P,!0);const oe=mm(P),Xt=P.subTree;P.subTree=oe,B(Xt,oe,u(Xt.el),z(Xt),P,pt,xt),It.el=oe.el,Yt===null&&rF(P,oe.el),Kt&&zn(Kt,pt),(Wt=It.props&&It.props.onVnodeUpdated)&&zn(()=>Ai(Wt,Gt,It,ee),pt)}else{let It;const{el:Pt,props:Kt}=$,{bm:Gt,m:ee,parent:Yt,root:Wt,type:oe}=P,Xt=uc($);vo(P,!1),Gt&&Df(Gt),!Xt&&(It=Kt&&Kt.onVnodeBeforeMount)&&Ai(It,Yt,$),vo(P,!0);{Wt.ce&&Wt.ce._hasShadowRoot()&&Wt.ce._injectChildStyle(oe,P.parent?P.parent.type:void 0);const Ke=P.subTree=mm(P);B(null,Ke,rt,S,P,pt,xt),$.el=Ke.el}if(ee&&zn(ee,pt),!Xt&&(It=Kt&&Kt.onVnodeMounted)){const Ke=$;zn(()=>Ai(It,Yt,Ke),pt)}($.shapeFlag&256||Yt&&uc(Yt.vnode)&&Yt.vnode.shapeFlag&256)&&P.a&&zn(P.a,pt),P.isMounted=!0,$=rt=S=null}};P.scope.on();const Ft=P.effect=new Gv(mt);P.scope.off();const bt=P.update=Ft.run.bind(Ft),Mt=P.job=Ft.runIfDirty.bind(Ft);Mt.i=P,Mt.id=P.uid,Ft.scheduler=()=>O0(Mt),vo(P,!0),bt()},ct=(P,$,rt)=>{$.component=P;const S=P.vnode.props;P.vnode=$,P.next=null,sF(P,$.props,S,rt),cF(P,$.children,rt),ns(),lm(P),rs()},at=(P,$,rt,S,pt,xt,Et,mt,Ft=!1)=>{const bt=P&&P.children,Mt=P?P.shapeFlag:0,It=$.children,{patchFlag:Pt,shapeFlag:Kt}=$;if(Pt>0){if(Pt&128){Z(bt,It,rt,S,pt,xt,Et,mt,Ft);return}else if(Pt&256){st(bt,It,rt,S,pt,xt,Et,mt,Ft);return}}Kt&8?(Mt&16&&At(bt,pt,xt),It!==bt&&c(rt,It)):Mt&16?Kt&16?Z(bt,It,rt,S,pt,xt,Et,mt,Ft):At(bt,pt,xt,!0):(Mt&8&&c(rt,""),Kt&16&&O(It,rt,S,pt,xt,Et,mt,Ft))},st=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{P=P||Pa,$=$||Pa;const bt=P.length,Mt=$.length,It=Math.min(bt,Mt);let Pt;for(Pt=0;Pt<It;Pt++){const Kt=$[Pt]=Ft?zi($[Pt]):ci($[Pt]);B(P[Pt],Kt,rt,null,pt,xt,Et,mt,Ft)}bt>Mt?At(P,pt,xt,!0,!1,It):O($,rt,S,pt,xt,Et,mt,Ft,It)},Z=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{let bt=0;const Mt=$.length;let It=P.length-1,Pt=Mt-1;for(;bt<=It&&bt<=Pt;){const Kt=P[bt],Gt=$[bt]=Ft?zi($[bt]):ci($[bt]);if(kl(Kt,Gt))B(Kt,Gt,rt,null,pt,xt,Et,mt,Ft);else break;bt++}for(;bt<=It&&bt<=Pt;){const Kt=P[It],Gt=$[Pt]=Ft?zi($[Pt]):ci($[Pt]);if(kl(Kt,Gt))B(Kt,Gt,rt,null,pt,xt,Et,mt,Ft);else break;It--,Pt--}if(bt>It){if(bt<=Pt){const Kt=Pt+1,Gt=Kt<Mt?$[Kt].el:S;for(;bt<=Pt;)B(null,$[bt]=Ft?zi($[bt]):ci($[bt]),rt,Gt,pt,xt,Et,mt,Ft),bt++}}else if(bt>Pt)for(;bt<=It;)U(P[bt],pt,xt,!0),bt++;else{const Kt=bt,Gt=bt,ee=new Map;for(bt=Gt;bt<=Pt;bt++){const fe=$[bt]=Ft?zi($[bt]):ci($[bt]);fe.key!=null&&ee.set(fe.key,bt)}let Yt,Wt=0;const oe=Pt-Gt+1;let Xt=!1,Ke=0;const Le=new Array(oe);for(bt=0;bt<oe;bt++)Le[bt]=0;for(bt=Kt;bt<=It;bt++){const fe=P[bt];if(Wt>=oe){U(fe,pt,xt,!0);continue}let Me;if(fe.key!=null)Me=ee.get(fe.key);else for(Yt=Gt;Yt<=Pt;Yt++)if(Le[Yt-Gt]===0&&kl(fe,$[Yt])){Me=Yt;break}Me===void 0?U(fe,pt,xt,!0):(Le[Me-Gt]=bt+1,Me>=Ke?Ke=Me:Xt=!0,B(fe,$[Me],rt,null,pt,xt,Et,mt,Ft),Wt++)}const Ee=Xt?dF(Le):Pa;for(Yt=Ee.length-1,bt=oe-1;bt>=0;bt--){const fe=Gt+bt,Me=$[fe],le=$[fe+1],qe=fe+1<Mt?le.el||Db(le):S;Le[bt]===0?B(null,Me,rt,qe,pt,xt,Et,mt,Ft):Xt&&(Yt<0||bt!==Ee[Yt]?j(Me,rt,qe,2):Yt--)}}},j=(P,$,rt,S,pt=null)=>{const{el:xt,type:Et,transition:mt,children:Ft,shapeFlag:bt}=P;if(bt&6){j(P.component.subTree,$,rt,S);return}if(bt&128){P.suspense.move($,rt,S);return}if(bt&64){Et.move(P,$,rt,wt);return}if(Et===ce){n(xt,$,rt);for(let It=0;It<Ft.length;It++)j(Ft[It],$,rt,S);n(P.anchor,$,rt);return}if(Et===rg){Q(P,$,rt);return}if(S!==2&&bt&1&&mt)if(S===0)mt.beforeEnter(xt),n(xt,$,rt),zn(()=>mt.enter(xt),pt);else{const{leave:It,delayLeave:Pt,afterLeave:Kt}=mt,Gt=()=>{P.ctx.isUnmounted?r(xt):n(xt,$,rt)},ee=()=>{xt._isLeaving&&xt[Ix](!0),It(xt,()=>{Gt(),Kt&&Kt()})};Pt?Pt(xt,Gt,ee):ee()}else n(xt,$,rt)},U=(P,$,rt,S=!1,pt=!1)=>{const{type:xt,props:Et,ref:mt,children:Ft,dynamicChildren:bt,shapeFlag:Mt,patchFlag:It,dirs:Pt,cacheIndex:Kt}=P;if(It===-2&&(pt=!1),mt!=null&&(ns(),cc(mt,null,rt,P,!0),rs()),Kt!=null&&($.renderCache[Kt]=void 0),Mt&256){$.ctx.deactivate(P);return}const Gt=Mt&1&&Pt,ee=!uc(P);let Yt;if(ee&&(Yt=Et&&Et.onVnodeBeforeUnmount)&&Ai(Yt,$,P),Mt&6)et(P.component,rt,S);else{if(Mt&128){P.suspense.unmount(rt,S);return}Gt&&wo(P,null,$,"beforeUnmount"),Mt&64?P.type.remove(P,$,rt,wt,S):bt&&!bt.hasOnce&&(xt!==ce||It>0&&It&64)?At(bt,$,rt,!1,!0):(xt===ce&&It&384||!pt&&Mt&16)&&At(Ft,$,rt),S&&N(P)}(ee&&(Yt=Et&&Et.onVnodeUnmounted)||Gt)&&zn(()=>{Yt&&Ai(Yt,$,P),Gt&&wo(P,null,$,"unmounted")},rt)},N=P=>{const{type:$,el:rt,anchor:S,transition:pt}=P;if($===ce){tt(rt,S);return}if($===rg){_(P);return}const xt=()=>{r(rt),pt&&!pt.persisted&&pt.afterLeave&&pt.afterLeave()};if(P.shapeFlag&1&&pt&&!pt.persisted){const{leave:Et,delayLeave:mt}=pt,Ft=()=>Et(rt,xt);mt?mt(P.el,xt,Ft):Ft()}else xt()},tt=(P,$)=>{let rt;for(;P!==$;)rt=d(P),r(P),P=rt;r($)},et=(P,$,rt)=>{const{bum:S,scope:pt,job:xt,subTree:Et,um:mt,m:Ft,a:bt}=P;vm(Ft),vm(bt),S&&Df(S),pt.stop(),xt&&(xt.flags|=8,U(Et,P,$,rt)),mt&&zn(mt,$),zn(()=>{P.isUnmounted=!0},$)},At=(P,$,rt,S=!1,pt=!1,xt=0)=>{for(let Et=xt;Et<P.length;Et++)U(P[Et],$,rt,S,pt)},z=P=>{if(P.shapeFlag&6)return z(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const $=d(P.anchor||P.el),rt=$&&$[Qx];return rt?d(rt):$};let nt=!1;const ot=(P,$,rt)=>{let S;P==null?$._vnode&&(U($._vnode,null,null,!0),S=$._vnode.component):B($._vnode||null,P,$,null,null,null,rt),$._vnode=P,nt||(nt=!0,lm(S),cb(),nt=!1)},wt={p:B,um:U,m:j,r:N,mt:q,mc:O,pc:at,pbc:V,n:z,o:e};return{render:ot,hydrate:void 0,createApp:Yx(ot)}}function ng({type:e,props:t},A){return A==="svg"&&e==="foreignObject"||A==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:A}function vo({effect:e,job:t},A){A?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function hF(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function kb(e,t,A=!1){const n=e.children,r=t.children;if(me(n)&&me(r))for(let i=0;i<n.length;i++){const s=n[i];let o=r[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[i]=zi(r[i]),o.el=s.el),!A&&o.patchFlag!==-2&&kb(s,o)),o.type===zh&&(o.patchFlag===-1&&(o=r[i]=zi(o)),o.el=s.el),o.type===Ws&&!o.el&&(o.el=s.el)}}function dF(e){const t=e.slice(),A=[0];let n,r,i,s,o;const a=e.length;for(n=0;n<a;n++){const l=e[n];if(l!==0){if(r=A[A.length-1],e[r]<l){t[n]=r,A.push(n);continue}for(i=0,s=A.length-1;i<s;)o=i+s>>1,e[A[o]]<l?i=o+1:s=o;l<e[A[i]]&&(i>0&&(t[n]=A[i-1]),A[i]=n)}}for(i=A.length,s=A[i-1];i-- >0;)A[i]=s,s=t[s];return A}function Nb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Nb(t)}function vm(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Db(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Db(t.subTree):null}const Hb=e=>e.__isSuspense;function gF(e,t){t&&t.pendingBranch?me(e)?t.effects.push(...e):t.effects.push(e):Cx(e)}const ce=Symbol.for("v-fgt"),zh=Symbol.for("v-txt"),Ws=Symbol.for("v-cmt"),rg=Symbol.for("v-stc"),hc=[];let cr=null;function ht(e=!1){hc.push(cr=e?null:[])}function pF(){hc.pop(),cr=hc[hc.length-1]||null}let Lc=1;function lh(e,t=!1){Lc+=e,e<0&&cr&&t&&(cr.hasOnce=!0)}function Mb(e){return e.dynamicChildren=Lc>0?cr||Pa:null,pF(),Lc>0&&cr&&cr.push(e),e}function Bt(e,t,A,n,r,i){return Mb(p(e,t,A,n,r,i,!0))}function Xn(e,t,A,n,r){return Mb(Vt(e,t,A,n,r,!0))}function ch(e){return e?e.__v_isVNode===!0:!1}function kl(e,t){return e.type===t.type&&e.key===t.key}const Tb=({key:e})=>e??null,Mf=({ref:e,ref_key:t,ref_for:A})=>(typeof e=="number"&&(e=""+e),e!=null?KA(e)||In(e)||Qe(e)?{i:lr,r:e,k:t,f:!!A}:e:null);function p(e,t=null,A=null,n=0,r=null,i=e===ce?0:1,s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tb(t),ref:t&&Mf(t),scopeId:fb,slotScopeIds:null,children:A,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:lr};return o?(j0(a,A),i&128&&e.normalize(a)):A&&(a.shapeFlag|=KA(A)?8:16),Lc>0&&!s&&cr&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&cr.push(a),a}const Vt=mF;function mF(e,t=null,A=null,n=0,r=null,i=!1){if((!e||e===wb)&&(e=Ws),ch(e)){const o=Ya(e,t,!0);return A&&j0(o,A),Lc>0&&!i&&cr&&(o.shapeFlag&6?cr[cr.indexOf(e)]=o:cr.push(o)),o.patchFlag=-2,o}if(EF(e)&&(e=e.__vccOpts),t){t=BF(t);let{class:o,style:a}=t;o&&!KA(o)&&(t.class=aA(o)),tA(a)&&(M0(a)&&!me(a)&&(a=fn({},a)),t.style=Qc(a))}const s=KA(e)?1:Hb(e)?128:Ex(e)?64:tA(e)?4:Qe(e)?2:0;return p(e,t,A,n,r,s,i,!0)}function BF(e){return e?M0(e)||Ub(e)?fn({},e):e:null}function Ya(e,t,A=!1,n=!1){const{props:r,ref:i,patchFlag:s,children:o,transition:a}=e,l=t?wF(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Tb(l),ref:t&&t.ref?A&&i?me(i)?i.concat(Mf(t)):[i,Mf(t)]:Mf(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ya(e.ssContent),ssFallback:e.ssFallback&&Ya(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&P0(c,a.clone(c)),c}function ie(e=" ",t=0){return Vt(zh,null,e,t)}function ue(e="",t=!1){return t?(ht(),Xn(Ws,null,e)):Vt(Ws,null,e)}function ci(e){return e==null||typeof e=="boolean"?Vt(Ws):me(e)?Vt(ce,null,e.slice()):ch(e)?zi(e):Vt(zh,null,String(e))}function zi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ya(e)}function j0(e,t){let A=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(me(t))A=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),j0(e,r()),r._c&&(r._d=!0));return}else{A=32;const r=t._;!r&&!Ub(t)?t._ctx=lr:r===3&&lr&&(lr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qe(t)?(t={default:t,_ctx:lr},A=32):(t=String(t),n&64?(A=16,t=[ie(t)]):A=8);e.children=t,e.shapeFlag|=A}function wF(...e){const t={};for(let A=0;A<e.length;A++){const n=e[A];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=aA([t.class,n.class]));else if(r==="style")t.style=Qc([t.style,n.style]);else if(Mh(r)){const i=t[r],s=n[r];s&&i!==s&&!(me(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=n[r])}return t}function Ai(e,t,A,n=null){Bi(e,t,7,[A,n])}const vF=yb();let bF=0;function yF(e,t,A){const n=e.type,r=(t?t.appContext:e.appContext)||vF,i={uid:bF++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new z4(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Eb(n,r),emitsOptions:Cb(n,r),emit:null,emitted:null,propsDefaults:oA,inheritAttrs:n.inheritAttrs,ctx:oA,data:oA,props:oA,attrs:oA,slots:oA,refs:oA,setupState:oA,setupContext:null,suspense:A,suspenseId:A?A.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=Zx.bind(null,i),e.ce&&e.ce(i),i}let Qn=null;const CF=()=>Qn||lr;let uh,yp;{const e=Rh(),t=(A,n)=>{let r;return(r=e[A])||(r=e[A]=[]),r.push(n),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};uh=t("__VUE_INSTANCE_SETTERS__",A=>Qn=A),yp=t("__VUE_SSR_SETTERS__",A=>kc=A)}const Yc=e=>{const t=Qn;return uh(e),e.scope.on(),()=>{e.scope.off(),uh(t)}},bm=()=>{Qn&&Qn.scope.off(),uh(null)};function Ob(e){return e.vnode.shapeFlag&4}let kc=!1;function xF(e,t=!1,A=!1){t&&yp(t);const{props:n,children:r}=e.vnode,i=Ob(e);iF(e,n,i,t),lF(e,r,A||t);const s=i?FF(e,t):void 0;return t&&yp(!1),s}function FF(e,t){const A=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jx);const{setup:n}=A;if(n){ns();const r=e.setupContext=n.length>1?UF(e):null,i=Yc(e),s=Xc(n,e,0,[e.props,r]),o=Tv(s);if(rs(),i(),(o||e.sp)&&!uc(e)&&pb(e),o){if(s.then(bm,bm),t)return s.then(a=>{ym(e,a)}).catch(a=>{jh(a,e,0)});e.asyncDep=s}else ym(e,s)}else Pb(e)}function ym(e,t,A){Qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:tA(t)&&(e.setupState=ob(t)),Pb(e)}function Pb(e,t,A){const n=e.type;e.render||(e.render=n.render||hi);{const r=Yc(e);ns();try{Gx(e)}finally{rs(),r()}}}const _F={get(e,t){return Un(e,"get",""),e[t]}};function UF(e){const t=A=>{e.exposed=A||{}};return{attrs:new Proxy(e.attrs,_F),slots:e.slots,emit:e.emit,expose:t}}function $h(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ob(hx(e.exposed)),{get(t,A){if(A in t)return t[A];if(A in fc)return fc[A](e)},has(t,A){return A in t||A in fc}})):e.proxy}function QF(e,t=!0){return Qe(e)?e.displayName||e.name:e.name||t&&e.__name}function EF(e){return Qe(e)&&"__vccOpts"in e}const ye=(e,t)=>Bx(e,t,kc);function fh(e,t,A){try{lh(-1);const n=arguments.length;return n===2?tA(t)&&!me(t)?ch(t)?Vt(e,null,[t]):Vt(e,t):Vt(e,null,t):(n>3?A=Array.prototype.slice.call(arguments,2):n===3&&ch(A)&&(A=[A]),Vt(e,t,A))}finally{lh(1)}}const IF="3.5.30";/**
|
||
* @vue/runtime-dom v3.5.30
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Cp;const Cm=typeof window<"u"&&window.trustedTypes;if(Cm)try{Cp=Cm.createPolicy("vue",{createHTML:e=>e})}catch{}const Rb=Cp?e=>Cp.createHTML(e):e=>e,SF="http://www.w3.org/2000/svg",LF="http://www.w3.org/1998/Math/MathML",Wi=typeof document<"u"?document:null,xm=Wi&&Wi.createElement("template"),kF={insert:(e,t,A)=>{t.insertBefore(e,A||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,A,n)=>{const r=t==="svg"?Wi.createElementNS(SF,e):t==="mathml"?Wi.createElementNS(LF,e):A?Wi.createElement(e,{is:A}):Wi.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Wi.createTextNode(e),createComment:e=>Wi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,A,n,r,i){const s=A?A.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),A),!(r===i||!(r=r.nextSibling)););else{xm.innerHTML=Rb(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const o=xm.content;if(n==="svg"||n==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,A)}return[s?s.nextSibling:t.firstChild,A?A.previousSibling:t.lastChild]}},NF=Symbol("_vtc");function DF(e,t,A){const n=e[NF];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):A?e.setAttribute("class",t):e.className=t}const hh=Symbol("_vod"),Kb=Symbol("_vsh"),ko={name:"show",beforeMount(e,{value:t},{transition:A}){e[hh]=e.style.display==="none"?"":e.style.display,A&&t?A.beforeEnter(e):Nl(e,t)},mounted(e,{value:t},{transition:A}){A&&t&&A.enter(e)},updated(e,{value:t,oldValue:A},{transition:n}){!t!=!A&&(n?t?(n.beforeEnter(e),Nl(e,!0),n.enter(e)):n.leave(e,()=>{Nl(e,!1)}):Nl(e,t))},beforeUnmount(e,{value:t}){Nl(e,t)}};function Nl(e,t){e.style.display=t?e[hh]:"none",e[Kb]=!t}const HF=Symbol(""),MF=/(?:^|;)\s*display\s*:/;function TF(e,t,A){const n=e.style,r=KA(A);let i=!1;if(A&&!r){if(t)if(KA(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();A[o]==null&&Tf(n,o,"")}else for(const s in t)A[s]==null&&Tf(n,s,"");for(const s in A)s==="display"&&(i=!0),Tf(n,s,A[s])}else if(r){if(t!==A){const s=n[HF];s&&(A+=";"+s),n.cssText=A,i=MF.test(A)}}else t&&e.removeAttribute("style");hh in e&&(e[hh]=i?n.display:"",e[Kb]&&(n.display="none"))}const Fm=/\s*!important$/;function Tf(e,t,A){if(me(A))A.forEach(n=>Tf(e,t,n));else if(A==null&&(A=""),t.startsWith("--"))e.setProperty(t,A);else{const n=OF(e,t);Fm.test(A)?e.setProperty(Ys(n),A.replace(Fm,""),"important"):e[n]=A}}const _m=["Webkit","Moz","ms"],ig={};function OF(e,t){const A=ig[t];if(A)return A;let n=Kn(t);if(n!=="filter"&&n in e)return ig[t]=n;n=Oh(n);for(let r=0;r<_m.length;r++){const i=_m[r]+n;if(i in e)return ig[t]=i}return t}const Um="http://www.w3.org/1999/xlink";function Qm(e,t,A,n,r,i=G4(t)){n&&t.startsWith("xlink:")?A==null?e.removeAttributeNS(Um,t.slice(6,t.length)):e.setAttributeNS(Um,t,A):A==null||i&&!Kv(A)?e.removeAttribute(t):e.setAttribute(t,i?"":mi(A)?String(A):A)}function Em(e,t,A,n,r){if(t==="innerHTML"||t==="textContent"){A!=null&&(e[t]=t==="innerHTML"?Rb(A):A);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,a=A==null?e.type==="checkbox"?"on":"":String(A);(o!==a||!("_value"in e))&&(e.value=a),A==null&&e.removeAttribute(t),e._value=A;return}let s=!1;if(A===""||A==null){const o=typeof e[t];o==="boolean"?A=Kv(A):A==null&&o==="string"?(A="",s=!0):o==="number"&&(A=0,s=!0)}try{e[t]=A}catch{}s&&e.removeAttribute(r||t)}function ks(e,t,A,n){e.addEventListener(t,A,n)}function PF(e,t,A,n){e.removeEventListener(t,A,n)}const Im=Symbol("_vei");function RF(e,t,A,n,r=null){const i=e[Im]||(e[Im]={}),s=i[t];if(n&&s)s.value=n;else{const[o,a]=KF(t);if(n){const l=i[t]=GF(n,r);ks(e,o,l,a)}else s&&(PF(e,o,s,a),i[t]=void 0)}}const Sm=/(?:Once|Passive|Capture)$/;function KF(e){let t;if(Sm.test(e)){t={};let n;for(;n=e.match(Sm);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ys(e.slice(2)),t]}let sg=0;const VF=Promise.resolve(),jF=()=>sg||(VF.then(()=>sg=0),sg=Date.now());function GF(e,t){const A=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=A.attached)return;Bi(WF(n,A.value),t,5,[n])};return A.value=e,A.attached=jF(),A}function WF(e,t){if(me(t)){const A=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{A.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Lm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,zF=(e,t,A,n,r,i)=>{const s=r==="svg";t==="class"?DF(e,n,s):t==="style"?TF(e,A,n):Mh(t)?U0(t)||RF(e,t,A,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$F(e,t,n,s))?(Em(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qm(e,t,n,s,i,t!=="value")):e._isVueCE&&(qF(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!KA(n)))?Em(e,Kn(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Qm(e,t,n,s))};function $F(e,t,A,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Lm(t)&&Qe(A));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Lm(t)&&KA(A)?!1:t in e}function qF(e,t){const A=e._def.props;if(!A)return!1;const n=Kn(t);return Array.isArray(A)?A.some(r=>Kn(r)===n):Object.keys(A).some(r=>Kn(r)===n)}const Ja=e=>{const t=e.props["onUpdate:modelValue"]||!1;return me(t)?A=>Df(t,A):t};function XF(e){e.target.composing=!0}function km(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const es=Symbol("_assign");function Nm(e,t,A){return t&&(e=e.trim()),A&&(e=Ph(e)),e}const Rt={created(e,{modifiers:{lazy:t,trim:A,number:n}},r){e[es]=Ja(r);const i=n||r.props&&r.props.type==="number";ks(e,t?"change":"input",s=>{s.target.composing||e[es](Nm(e.value,A,i))}),(A||i)&&ks(e,"change",()=>{e.value=Nm(e.value,A,i)}),t||(ks(e,"compositionstart",XF),ks(e,"compositionend",km),ks(e,"change",km))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:A,modifiers:{lazy:n,trim:r,number:i}},s){if(e[es]=Ja(s),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Ph(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(n&&t===A||r&&e.value.trim()===a)||(e.value=a))}},Vb={deep:!0,created(e,t,A){e[es]=Ja(A),ks(e,"change",()=>{const n=e._modelValue,r=Nc(e),i=e.checked,s=e[es];if(me(n)){const o=I0(n,r),a=o!==-1;if(i&&!a)s(n.concat(r));else if(!i&&a){const l=[...n];l.splice(o,1),s(l)}}else if(il(n)){const o=new Set(n);i?o.add(r):o.delete(r),s(o)}else s(jb(e,i))})},mounted:Dm,beforeUpdate(e,t,A){e[es]=Ja(A),Dm(e,t,A)}};function Dm(e,{value:t,oldValue:A},n){e._modelValue=t;let r;if(me(t))r=I0(t,n.props.value)>-1;else if(il(t))r=t.has(n.props.value);else{if(t===A)return;r=sl(t,jb(e,!0))}e.checked!==r&&(e.checked=r)}const gi={deep:!0,created(e,{value:t,modifiers:{number:A}},n){const r=il(t);ks(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>A?Ph(Nc(s)):Nc(s));e[es](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,T0(()=>{e._assigning=!1})}),e[es]=Ja(n)},mounted(e,{value:t}){Hm(e,t)},beforeUpdate(e,t,A){e[es]=Ja(A)},updated(e,{value:t}){e._assigning||Hm(e,t)}};function Hm(e,t){const A=e.multiple,n=me(t);if(!(A&&!n&&!il(t))){for(let r=0,i=e.options.length;r<i;r++){const s=e.options[r],o=Nc(s);if(A)if(n){const a=typeof o;a==="string"||a==="number"?s.selected=t.some(l=>String(l)===String(o)):s.selected=I0(t,o)>-1}else s.selected=t.has(o);else if(sl(Nc(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!A&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nc(e){return"_value"in e?e._value:e.value}function jb(e,t){const A=t?"_trueValue":"_falseValue";return A in e?e[A]:t}const YF=["ctrl","shift","alt","meta"],JF={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>YF.some(A=>e[`${A}Key`]&&!t.includes(A))},G0=(e,t)=>{if(!e)return e;const A=e._withMods||(e._withMods={}),n=t.join(".");return A[n]||(A[n]=(r,...i)=>{for(let s=0;s<t.length;s++){const o=JF[t[s]];if(o&&o(r,t))return}return e(r,...i)})},ZF={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Is=(e,t)=>{const A=e._withKeys||(e._withKeys={}),n=t.join(".");return A[n]||(A[n]=r=>{if(!("key"in r))return;const i=Ys(r.key);if(t.some(s=>s===i||ZF[s]===i))return e(r)})},t_=fn({patchProp:zF},kF);let Mm;function e_(){return Mm||(Mm=uF(t_))}const A_=(...e)=>{const t=e_().createApp(...e),{mount:A}=t;return t.mount=n=>{const r=r_(n);if(!r)return;const i=t._component;!Qe(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const s=A(r,!1,n_(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function n_(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function r_(e){return KA(e)?document.querySelector(e):e}/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const ka=typeof document<"u";function Gb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function i_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Gb(e.default)}const We=Object.assign;function og(e,t){const A={};for(const n in t){const r=t[n];A[n]=Rr(r)?r.map(e):e(r)}return A}const dc=()=>{},Rr=Array.isArray;function Tm(e,t){const A={};for(const n in e)A[n]=n in t?t[n]:e[n];return A}const Wb=/#/g,s_=/&/g,o_=/\//g,a_=/=/g,l_=/\?/g,zb=/\+/g,c_=/%5B/g,u_=/%5D/g,$b=/%5E/g,f_=/%60/g,qb=/%7B/g,h_=/%7C/g,Xb=/%7D/g,d_=/%20/g;function W0(e){return e==null?"":encodeURI(""+e).replace(h_,"|").replace(c_,"[").replace(u_,"]")}function g_(e){return W0(e).replace(qb,"{").replace(Xb,"}").replace($b,"^")}function xp(e){return W0(e).replace(zb,"%2B").replace(d_,"+").replace(Wb,"%23").replace(s_,"%26").replace(f_,"`").replace(qb,"{").replace(Xb,"}").replace($b,"^")}function p_(e){return xp(e).replace(a_,"%3D")}function m_(e){return W0(e).replace(Wb,"%23").replace(l_,"%3F")}function B_(e){return m_(e).replace(o_,"%2F")}function Dc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const w_=/\/$/,v_=e=>e.replace(w_,"");function ag(e,t,A="/"){let n,r={},i="",s="";const o=t.indexOf("#");let a=t.indexOf("?");return a=o>=0&&a>o?-1:a,a>=0&&(n=t.slice(0,a),i=t.slice(a,o>0?o:t.length),r=e(i.slice(1))),o>=0&&(n=n||t.slice(0,o),s=t.slice(o,t.length)),n=x_(n??t,A),{fullPath:n+i+s,path:n,query:r,hash:Dc(s)}}function b_(e,t){const A=t.query?e(t.query):"";return t.path+(A&&"?")+A+(t.hash||"")}function Om(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function y_(e,t,A){const n=t.matched.length-1,r=A.matched.length-1;return n>-1&&n===r&&Za(t.matched[n],A.matched[r])&&Yb(t.params,A.params)&&e(t.query)===e(A.query)&&t.hash===A.hash}function Za(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Yb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var A in e)if(!C_(e[A],t[A]))return!1;return!0}function C_(e,t){return Rr(e)?Pm(e,t):Rr(t)?Pm(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Pm(e,t){return Rr(t)?e.length===t.length&&e.every((A,n)=>A===t[n]):e.length===1&&e[0]===t}function x_(e,t){if(e.startsWith("/"))return e;if(!e)return t;const A=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=A.length-1,s,o;for(s=0;s<n.length;s++)if(o=n[s],o!==".")if(o==="..")i>1&&i--;else break;return A.slice(0,i).join("/")+"/"+n.slice(s).join("/")}const xs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Fp=function(e){return e.pop="pop",e.push="push",e}({}),lg=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function F_(e){if(!e)if(ka){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),v_(e)}const __=/^[^#]+#/;function U_(e,t){return e.replace(__,"#")+t}function Q_(e,t){const A=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-A.left-(t.left||0),top:n.top-A.top-(t.top||0)}}const qh=()=>({left:window.scrollX,top:window.scrollY});function E_(e){let t;if("el"in e){const A=e.el,n=typeof A=="string"&&A.startsWith("#"),r=typeof A=="string"?n?document.getElementById(A.slice(1)):document.querySelector(A):A;if(!r)return;t=Q_(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Rm(e,t){return(history.state?history.state.position-t:-1)+e}const _p=new Map;function I_(e,t){_p.set(e,t)}function S_(e){const t=_p.get(e);return _p.delete(e),t}function L_(e){return typeof e=="string"||e&&typeof e=="object"}function Jb(e){return typeof e=="string"||typeof e=="symbol"}let EA=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Zb=Symbol("");EA.MATCHER_NOT_FOUND+"",EA.NAVIGATION_GUARD_REDIRECT+"",EA.NAVIGATION_ABORTED+"",EA.NAVIGATION_CANCELLED+"",EA.NAVIGATION_DUPLICATED+"";function tl(e,t){return We(new Error,{type:e,[Zb]:!0},t)}function Ti(e,t){return e instanceof Error&&Zb in e&&(t==null||!!(e.type&t))}const k_=["params","query","hash"];function N_(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const A of k_)A in e&&(t[A]=e[A]);return JSON.stringify(t,null,2)}function D_(e){const t={};if(e===""||e==="?")return t;const A=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<A.length;++n){const r=A[n].replace(zb," "),i=r.indexOf("="),s=Dc(i<0?r:r.slice(0,i)),o=i<0?null:Dc(r.slice(i+1));if(s in t){let a=t[s];Rr(a)||(a=t[s]=[a]),a.push(o)}else t[s]=o}return t}function Km(e){let t="";for(let A in e){const n=e[A];if(A=p_(A),n==null){n!==void 0&&(t+=(t.length?"&":"")+A);continue}(Rr(n)?n.map(r=>r&&xp(r)):[n&&xp(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+A,r!=null&&(t+="="+r))})}return t}function H_(e){const t={};for(const A in e){const n=e[A];n!==void 0&&(t[A]=Rr(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const M_=Symbol(""),Vm=Symbol(""),Xh=Symbol(""),t5=Symbol(""),Up=Symbol("");function Dl(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function A(){e=[]}return{add:t,list:()=>e.slice(),reset:A}}function Ss(e,t,A,n,r,i=s=>s()){const s=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((o,a)=>{const l=d=>{d===!1?a(tl(EA.NAVIGATION_ABORTED,{from:A,to:t})):d instanceof Error?a(d):L_(d)?a(tl(EA.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(s&&n.enterCallbacks[r]===s&&typeof d=="function"&&s.push(d),o())},c=i(()=>e.call(n&&n.instances[r],t,A,l));let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function cg(e,t,A,n,r=i=>i()){const i=[];for(const s of e)for(const o in s.components){let a=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(Gb(a)){const l=(a.__vccOpts||a)[t];l&&i.push(Ss(l,A,n,s,o,r))}else{let l=a();i.push(()=>l.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${o}" at "${s.path}"`);const u=i_(c)?c.default:c;s.mods[o]=c,s.components[o]=u;const d=(u.__vccOpts||u)[t];return d&&Ss(d,A,n,s,o,r)()}))}}return i}function T_(e,t){const A=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const o=t.matched[s];o&&(e.matched.find(l=>Za(l,o))?n.push(o):A.push(o));const a=e.matched[s];a&&(t.matched.find(l=>Za(l,a))||r.push(a))}return[A,n,r]}/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let O_=()=>location.protocol+"//"+location.host;function e5(e,t){const{pathname:A,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let s=r.includes(e.slice(i))?e.slice(i).length:1,o=r.slice(s);return o[0]!=="/"&&(o="/"+o),Om(o,"")}return Om(A,e)+n+r}function P_(e,t,A,n){let r=[],i=[],s=null;const o=({state:d})=>{const f=e5(e,location),m=A.value,B=t.value;let v=0;if(d){if(A.value=f,t.value=d,s&&s===m){s=null;return}v=B?d.position-B.position:0}else n(f);r.forEach(b=>{b(A.value,m,{delta:v,type:Fp.pop,direction:v?v>0?lg.forward:lg.back:lg.unknown})})};function a(){s=A.value}function l(d){r.push(d);const f=()=>{const m=r.indexOf(d);m>-1&&r.splice(m,1)};return i.push(f),f}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(We({},d.state,{scroll:qh()}),"")}}function u(){for(const d of i)d();i=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:l,destroy:u}}function jm(e,t,A,n=!1,r=!1){return{back:e,current:t,forward:A,replaced:n,position:window.history.length,scroll:r?qh():null}}function R_(e){const{history:t,location:A}=window,n={value:e5(e,A)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,l,c){const u=e.indexOf("#"),d=u>-1?(A.host&&document.querySelector("base")?e:e.slice(u))+a:O_()+e+a;try{t[c?"replaceState":"pushState"](l,"",d),r.value=l}catch(f){console.error(f),A[c?"replace":"assign"](d)}}function s(a,l){i(a,We({},t.state,jm(r.value.back,a,r.value.forward,!0),l,{position:r.value.position}),!0),n.value=a}function o(a,l){const c=We({},r.value,t.state,{forward:a,scroll:qh()});i(c.current,c,!0),i(a,We({},jm(n.value,a,null),{position:c.position+1},l),!1),n.value=a}return{location:n,state:r,push:o,replace:s}}function K_(e){e=F_(e);const t=R_(e),A=P_(e,t.state,t.location,t.replace);function n(i,s=!0){s||A.pauseListeners(),history.go(i)}const r=We({location:"",base:e,go:n,createHref:U_.bind(null,e)},t,A);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let No=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var YA=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(YA||{});const V_={type:No.Static,value:""},j_=/[a-zA-Z0-9_]/;function G_(e){if(!e)return[[]];if(e==="/")return[[V_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${A})/"${l}": ${f}`)}let A=YA.Static,n=A;const r=[];let i;function s(){i&&r.push(i),i=[]}let o=0,a,l="",c="";function u(){l&&(A===YA.Static?i.push({type:No.Static,value:l}):A===YA.Param||A===YA.ParamRegExp||A===YA.ParamRegExpEnd?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:No.Param,value:l,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),l="")}function d(){l+=a}for(;o<e.length;){if(a=e[o++],a==="\\"&&A!==YA.ParamRegExp){n=A,A=YA.EscapeNext;continue}switch(A){case YA.Static:a==="/"?(l&&u(),s()):a===":"?(u(),A=YA.Param):d();break;case YA.EscapeNext:d(),A=n;break;case YA.Param:a==="("?A=YA.ParamRegExp:j_.test(a)?d():(u(),A=YA.Static,a!=="*"&&a!=="?"&&a!=="+"&&o--);break;case YA.ParamRegExp:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:A=YA.ParamRegExpEnd:c+=a;break;case YA.ParamRegExpEnd:u(),A=YA.Static,a!=="*"&&a!=="?"&&a!=="+"&&o--,c="";break;default:t("Unknown state");break}}return A===YA.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),u(),s(),r}const Gm="[^/]+?",W_={sensitive:!1,strict:!1,start:!0,end:!0};var On=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(On||{});const z_=/[.+*?^${}()[\]/\\]/g;function $_(e,t){const A=We({},W_,t),n=[];let r=A.start?"^":"";const i=[];for(const l of e){const c=l.length?[]:[On.Root];A.strict&&!l.length&&(r+="/");for(let u=0;u<l.length;u++){const d=l[u];let f=On.Segment+(A.sensitive?On.BonusCaseSensitive:0);if(d.type===No.Static)u||(r+="/"),r+=d.value.replace(z_,"\\$&"),f+=On.Static;else if(d.type===No.Param){const{value:m,repeatable:B,optional:v,regexp:b}=d;i.push({name:m,repeatable:B,optional:v});const C=b||Gm;if(C!==Gm){f+=On.BonusCustomRegExp;try{`${C}`}catch(_){throw new Error(`Invalid custom RegExp for param "${m}" (${C}): `+_.message)}}let Q=B?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;u||(Q=v&&l.length<2?`(?:/${Q})`:"/"+Q),v&&(Q+="?"),r+=Q,f+=On.Dynamic,v&&(f+=On.BonusOptional),B&&(f+=On.BonusRepeatable),C===".*"&&(f+=On.BonusWildcard)}c.push(f)}n.push(c)}if(A.strict&&A.end){const l=n.length-1;n[l][n[l].length-1]+=On.BonusStrict}A.strict||(r+="/?"),A.end?r+="$":A.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const s=new RegExp(r,A.sensitive?"":"i");function o(l){const c=l.match(s),u={};if(!c)return null;for(let d=1;d<c.length;d++){const f=c[d]||"",m=i[d-1];u[m.name]=f&&m.repeatable?f.split("/"):f}return u}function a(l){let c="",u=!1;for(const d of e){(!u||!c.endsWith("/"))&&(c+="/"),u=!1;for(const f of d)if(f.type===No.Static)c+=f.value;else if(f.type===No.Param){const{value:m,repeatable:B,optional:v}=f,b=m in l?l[m]:"";if(Rr(b)&&!B)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const C=Rr(b)?b.join("/"):b;if(!C)if(v)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):u=!0);else throw new Error(`Missing required param "${m}"`);c+=C}}return c||"/"}return{re:s,score:n,keys:i,parse:o,stringify:a}}function q_(e,t){let A=0;for(;A<e.length&&A<t.length;){const n=t[A]-e[A];if(n)return n;A++}return e.length<t.length?e.length===1&&e[0]===On.Static+On.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===On.Static+On.Segment?1:-1:0}function A5(e,t){let A=0;const n=e.score,r=t.score;for(;A<n.length&&A<r.length;){const i=q_(n[A],r[A]);if(i)return i;A++}if(Math.abs(r.length-n.length)===1){if(Wm(n))return 1;if(Wm(r))return-1}return r.length-n.length}function Wm(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const X_={strict:!1,end:!0,sensitive:!1};function Y_(e,t,A){const n=$_(G_(e.path),A),r=We(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function J_(e,t){const A=[],n=new Map;t=Tm(X_,t);function r(u){return n.get(u)}function i(u,d,f){const m=!f,B=$m(u);B.aliasOf=f&&f.record;const v=Tm(t,u),b=[B];if("alias"in u){const _=typeof u.alias=="string"?[u.alias]:u.alias;for(const H of _)b.push($m(We({},B,{components:f?f.record.components:B.components,path:H,aliasOf:f?f.record:B})))}let C,Q;for(const _ of b){const{path:H}=_;if(d&&H[0]!=="/"){const W=d.record.path,R=W[W.length-1]==="/"?"":"/";_.path=d.record.path+(H&&R+H)}if(C=Y_(_,d,v),f?f.alias.push(C):(Q=Q||C,Q!==C&&Q.alias.push(C),m&&u.name&&!qm(C)&&s(u.name)),n5(C)&&a(C),B.children){const W=B.children;for(let R=0;R<W.length;R++)i(W[R],C,f&&f.children[R])}f=f||C}return Q?()=>{s(Q)}:dc}function s(u){if(Jb(u)){const d=n.get(u);d&&(n.delete(u),A.splice(A.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=A.indexOf(u);d>-1&&(A.splice(d,1),u.record.name&&n.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function o(){return A}function a(u){const d=eU(u,A);A.splice(d,0,u),u.record.name&&!qm(u)&&n.set(u.record.name,u)}function l(u,d){let f,m={},B,v;if("name"in u&&u.name){if(f=n.get(u.name),!f)throw tl(EA.MATCHER_NOT_FOUND,{location:u});v=f.record.name,m=We(zm(d.params,f.keys.filter(Q=>!Q.optional).concat(f.parent?f.parent.keys.filter(Q=>Q.optional):[]).map(Q=>Q.name)),u.params&&zm(u.params,f.keys.map(Q=>Q.name))),B=f.stringify(m)}else if(u.path!=null)B=u.path,f=A.find(Q=>Q.re.test(B)),f&&(m=f.parse(B),v=f.record.name);else{if(f=d.name?n.get(d.name):A.find(Q=>Q.re.test(d.path)),!f)throw tl(EA.MATCHER_NOT_FOUND,{location:u,currentLocation:d});v=f.record.name,m=We({},d.params,u.params),B=f.stringify(m)}const b=[];let C=f;for(;C;)b.unshift(C.record),C=C.parent;return{name:v,path:B,params:m,matched:b,meta:tU(b)}}e.forEach(u=>i(u));function c(){A.length=0,n.clear()}return{addRoute:i,resolve:l,removeRoute:s,clearRoutes:c,getRoutes:o,getRecordMatcher:r}}function zm(e,t){const A={};for(const n of t)n in e&&(A[n]=e[n]);return A}function $m(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Z_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Z_(e){const t={},A=e.props||!1;if("component"in e)t.default=A;else for(const n in e.components)t[n]=typeof A=="object"?A[n]:A;return t}function qm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tU(e){return e.reduce((t,A)=>We(t,A.meta),{})}function eU(e,t){let A=0,n=t.length;for(;A!==n;){const i=A+n>>1;A5(e,t[i])<0?n=i:A=i+1}const r=AU(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function AU(e){let t=e;for(;t=t.parent;)if(n5(t)&&A5(e,t)===0)return t}function n5({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Xm(e){const t=di(Xh),A=di(t5),n=ye(()=>{const a=qt(e.to);return t.resolve(a)}),r=ye(()=>{const{matched:a}=n.value,{length:l}=a,c=a[l-1],u=A.matched;if(!c||!u.length)return-1;const d=u.findIndex(Za.bind(null,c));if(d>-1)return d;const f=Ym(a[l-2]);return l>1&&Ym(c)===f&&u[u.length-1].path!==f?u.findIndex(Za.bind(null,a[l-2])):d}),i=ye(()=>r.value>-1&&oU(A.params,n.value.params)),s=ye(()=>r.value>-1&&r.value===A.matched.length-1&&Yb(A.params,n.value.params));function o(a={}){if(sU(a)){const l=t[qt(e.replace)?"replace":"push"](qt(e.to)).catch(dc);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:n,href:ye(()=>n.value.href),isActive:i,isExactActive:s,navigate:o}}function nU(e){return e.length===1?e[0]:e}const rU=gb({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Xm,setup(e,{slots:t}){const A=Vh(Xm(e)),{options:n}=di(Xh),r=ye(()=>({[Jm(e.activeClass,n.linkActiveClass,"router-link-active")]:A.isActive,[Jm(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:A.isExactActive}));return()=>{const i=t.default&&nU(t.default(A));return e.custom?i:fh("a",{"aria-current":A.isExactActive?e.ariaCurrentValue:null,href:A.href,onClick:A.navigate,class:r.value},i)}}}),iU=rU;function sU(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function oU(e,t){for(const A in t){const n=t[A],r=e[A];if(typeof n=="string"){if(n!==r)return!1}else if(!Rr(r)||r.length!==n.length||n.some((i,s)=>i.valueOf()!==r[s].valueOf()))return!1}return!0}function Ym(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jm=(e,t,A)=>e??t??A,aU=gb({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:A}){const n=di(Up),r=ye(()=>e.route||n.value),i=di(Vm,0),s=ye(()=>{let l=qt(i);const{matched:c}=r.value;let u;for(;(u=c[l])&&!u.components;)l++;return l}),o=ye(()=>r.value.matched[s.value]);Hf(Vm,ye(()=>s.value+1)),Hf(M_,o),Hf(Up,r);const a=ge();return Fr(()=>[a.value,o.value,e.name],([l,c,u],[d,f,m])=>{c&&(c.instances[u]=l,f&&f!==c&&l&&l===d&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),l&&c&&(!f||!Za(c,f)||!d)&&(c.enterCallbacks[u]||[]).forEach(B=>B(l))},{flush:"post"}),()=>{const l=r.value,c=e.name,u=o.value,d=u&&u.components[c];if(!d)return Zm(A.default,{Component:d,route:l});const f=u.props[c],m=f?f===!0?l.params:typeof f=="function"?f(l):f:null,v=fh(d,We({},m,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(u.instances[c]=null)},ref:a}));return Zm(A.default,{Component:v,route:l})||v}}});function Zm(e,t){if(!e)return null;const A=e(t);return A.length===1?A[0]:A}const r5=aU;function lU(e){const t=J_(e.routes,e),A=e.parseQuery||D_,n=e.stringifyQuery||Km,r=e.history,i=Dl(),s=Dl(),o=Dl(),a=dx(xs);let l=xs;ka&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=og.bind(null,z=>""+z),u=og.bind(null,B_),d=og.bind(null,Dc);function f(z,nt){let ot,wt;return Jb(z)?(ot=t.getRecordMatcher(z),wt=nt):wt=z,t.addRoute(wt,ot)}function m(z){const nt=t.getRecordMatcher(z);nt&&t.removeRoute(nt)}function B(){return t.getRoutes().map(z=>z.record)}function v(z){return!!t.getRecordMatcher(z)}function b(z,nt){if(nt=We({},nt||a.value),typeof z=="string"){const rt=ag(A,z,nt.path),S=t.resolve({path:rt.path},nt),pt=r.createHref(rt.fullPath);return We(rt,S,{params:d(S.params),hash:Dc(rt.hash),redirectedFrom:void 0,href:pt})}let ot;if(z.path!=null)ot=We({},z,{path:ag(A,z.path,nt.path).path});else{const rt=We({},z.params);for(const S in rt)rt[S]==null&&delete rt[S];ot=We({},z,{params:u(rt)}),nt.params=u(nt.params)}const wt=t.resolve(ot,nt),_t=z.hash||"";wt.params=c(d(wt.params));const P=b_(n,We({},z,{hash:g_(_t),path:wt.path})),$=r.createHref(P);return We({fullPath:P,hash:_t,query:n===Km?H_(z.query):z.query||{}},wt,{redirectedFrom:void 0,href:$})}function C(z){return typeof z=="string"?ag(A,z,a.value.path):We({},z)}function Q(z,nt){if(l!==z)return tl(EA.NAVIGATION_CANCELLED,{from:nt,to:z})}function _(z){return R(z)}function H(z){return _(We(C(z),{replace:!0}))}function W(z,nt){const ot=z.matched[z.matched.length-1];if(ot&&ot.redirect){const{redirect:wt}=ot;let _t=typeof wt=="function"?wt(z,nt):wt;return typeof _t=="string"&&(_t=_t.includes("?")||_t.includes("#")?_t=C(_t):{path:_t},_t.params={}),We({query:z.query,hash:z.hash,params:_t.path!=null?{}:z.params},_t)}}function R(z,nt){const ot=l=b(z),wt=a.value,_t=z.state,P=z.force,$=z.replace===!0,rt=W(ot,wt);if(rt)return R(We(C(rt),{state:typeof rt=="object"?We({},_t,rt.state):_t,force:P,replace:$}),nt||ot);const S=ot;S.redirectedFrom=nt;let pt;return!P&&y_(n,wt,ot)&&(pt=tl(EA.NAVIGATION_DUPLICATED,{to:S,from:wt}),j(wt,wt,!0,!1)),(pt?Promise.resolve(pt):V(S,wt)).catch(xt=>Ti(xt)?Ti(xt,EA.NAVIGATION_GUARD_REDIRECT)?xt:Z(xt):at(xt,S,wt)).then(xt=>{if(xt){if(Ti(xt,EA.NAVIGATION_GUARD_REDIRECT))return R(We({replace:$},C(xt.to),{state:typeof xt.to=="object"?We({},_t,xt.to.state):_t,force:P}),nt||S)}else xt=L(S,wt,!0,$,_t);return F(S,wt,xt),xt})}function O(z,nt){const ot=Q(z,nt);return ot?Promise.reject(ot):Promise.resolve()}function k(z){const nt=tt.values().next().value;return nt&&typeof nt.runWithContext=="function"?nt.runWithContext(z):z()}function V(z,nt){let ot;const[wt,_t,P]=T_(z,nt);ot=cg(wt.reverse(),"beforeRouteLeave",z,nt);for(const rt of wt)rt.leaveGuards.forEach(S=>{ot.push(Ss(S,z,nt))});const $=O.bind(null,z,nt);return ot.push($),At(ot).then(()=>{ot=[];for(const rt of i.list())ot.push(Ss(rt,z,nt));return ot.push($),At(ot)}).then(()=>{ot=cg(_t,"beforeRouteUpdate",z,nt);for(const rt of _t)rt.updateGuards.forEach(S=>{ot.push(Ss(S,z,nt))});return ot.push($),At(ot)}).then(()=>{ot=[];for(const rt of P)if(rt.beforeEnter)if(Rr(rt.beforeEnter))for(const S of rt.beforeEnter)ot.push(Ss(S,z,nt));else ot.push(Ss(rt.beforeEnter,z,nt));return ot.push($),At(ot)}).then(()=>(z.matched.forEach(rt=>rt.enterCallbacks={}),ot=cg(P,"beforeRouteEnter",z,nt,k),ot.push($),At(ot))).then(()=>{ot=[];for(const rt of s.list())ot.push(Ss(rt,z,nt));return ot.push($),At(ot)}).catch(rt=>Ti(rt,EA.NAVIGATION_CANCELLED)?rt:Promise.reject(rt))}function F(z,nt,ot){o.list().forEach(wt=>k(()=>wt(z,nt,ot)))}function L(z,nt,ot,wt,_t){const P=Q(z,nt);if(P)return P;const $=nt===xs,rt=ka?history.state:{};ot&&(wt||$?r.replace(z.fullPath,We({scroll:$&&rt&&rt.scroll},_t)):r.push(z.fullPath,_t)),a.value=z,j(z,nt,ot,$),Z()}let G;function q(){G||(G=r.listen((z,nt,ot)=>{if(!et.listening)return;const wt=b(z),_t=W(wt,et.currentRoute.value);if(_t){R(We(_t,{replace:!0,force:!0}),wt).catch(dc);return}l=wt;const P=a.value;ka&&I_(Rm(P.fullPath,ot.delta),qh()),V(wt,P).catch($=>Ti($,EA.NAVIGATION_ABORTED|EA.NAVIGATION_CANCELLED)?$:Ti($,EA.NAVIGATION_GUARD_REDIRECT)?(R(We(C($.to),{force:!0}),wt).then(rt=>{Ti(rt,EA.NAVIGATION_ABORTED|EA.NAVIGATION_DUPLICATED)&&!ot.delta&&ot.type===Fp.pop&&r.go(-1,!1)}).catch(dc),Promise.reject()):(ot.delta&&r.go(-ot.delta,!1),at($,wt,P))).then($=>{$=$||L(wt,P,!1),$&&(ot.delta&&!Ti($,EA.NAVIGATION_CANCELLED)?r.go(-ot.delta,!1):ot.type===Fp.pop&&Ti($,EA.NAVIGATION_ABORTED|EA.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),F(wt,P,$)}).catch(dc)}))}let ft=Dl(),lt=Dl(),ct;function at(z,nt,ot){Z(z);const wt=lt.list();return wt.length?wt.forEach(_t=>_t(z,nt,ot)):console.error(z),Promise.reject(z)}function st(){return ct&&a.value!==xs?Promise.resolve():new Promise((z,nt)=>{ft.add([z,nt])})}function Z(z){return ct||(ct=!z,q(),ft.list().forEach(([nt,ot])=>z?ot(z):nt()),ft.reset()),z}function j(z,nt,ot,wt){const{scrollBehavior:_t}=e;if(!ka||!_t)return Promise.resolve();const P=!ot&&S_(Rm(z.fullPath,0))||(wt||!ot)&&history.state&&history.state.scroll||null;return T0().then(()=>_t(z,nt,P)).then($=>$&&E_($)).catch($=>at($,z,nt))}const U=z=>r.go(z);let N;const tt=new Set,et={currentRoute:a,listening:!0,addRoute:f,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:B,resolve:b,options:e,push:_,replace:H,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:i.add,beforeResolve:s.add,afterEach:o.add,onError:lt.add,isReady:st,install(z){z.component("RouterLink",iU),z.component("RouterView",r5),z.config.globalProperties.$router=et,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>qt(a)}),ka&&!N&&a.value===xs&&(N=!0,_(r.location).catch(wt=>{}));const nt={};for(const wt in xs)Object.defineProperty(nt,wt,{get:()=>a.value[wt],enumerable:!0});z.provide(Xh,et),z.provide(t5,ib(nt)),z.provide(Up,a);const ot=z.unmount;tt.add(z),z.unmount=function(){tt.delete(z),tt.size<1&&(l=xs,G&&G(),G=null,a.value=xs,N=!1,ct=!1),ot()}}};function At(z){return z.reduce((nt,ot)=>nt.then(()=>k(ot)),Promise.resolve())}return et}function z0(){return di(Xh)}const cU={__name:"App",setup(e){return(t,A)=>(ht(),Xn(qt(r5)))}},uU="modulepreload",fU=function(e){return"/"+e},t2={},gc=function(t,A,n){let r=Promise.resolve();if(A&&A.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.allSettled(A.map(a=>{if(a=fU(a),a in t2)return;t2[a]=!0;const l=a.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":uU,l||(u.as="script"),u.crossOrigin="",u.href=a,o&&u.setAttribute("nonce",o),document.head.appendChild(u),l)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}function i(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return r.then(s=>{for(const o of s||[])o.status==="rejected"&&i(o.reason);return t().catch(i)})};/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var Ru={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hU=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nA=(e,t)=>({size:A,strokeWidth:n=2,absoluteStrokeWidth:r,color:i,class:s,...o},{attrs:a,slots:l})=>fh("svg",{...Ru,width:A||Ru.width,height:A||Ru.height,stroke:i||Ru.stroke,"stroke-width":r?Number(n)*24/Number(A):n,...a,class:["lucide",`lucide-${hU(e)}`],...o},[...t.map(c=>fh(...c)),...l.default?[l.default()]:[]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dU=nA("ActivityIcon",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gU=nA("AwardIcon",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pU=nA("BanknoteIcon",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dh=nA("Building2Icon",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Uo=nA("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ku=nA("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mU=nA("ClipboardListIcon",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qp=nA("CreditCardIcon",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const BU=nA("EyeIcon",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wU=nA("FileDownIcon",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vU=nA("FileTextIcon",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $0=nA("InfoIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bU=nA("LayoutDashboardIcon",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yU=nA("LogOutIcon",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const CU=nA("MessageSquareIcon",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xU=nA("PanelsTopLeftIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const FU=nA("PenLineIcon",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z",key:"ymcmye"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Rn=nA("PlusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _U=nA("PrinterIcon",[["polyline",{points:"6 9 6 2 18 2 18 9",key:"1306q4"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["rect",{width:"12",height:"8",x:"6",y:"14",key:"5ipwut"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const e2=nA("RefreshCwIcon",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const i5=nA("SaveIcon",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ep=nA("SearchIcon",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const UU=nA("SettingsIcon",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const QU=nA("ShieldIcon",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const EU=nA("TrendingUpIcon",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const IU=nA("UsersIcon",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const SU=nA("WalletIcon",[["path",{d:"M21 12V7H5a2 2 0 0 1 0-4h14v4",key:"195gfw"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h16v-5",key:"195n9w"}],["path",{d:"M18 12a2 2 0 0 0 0 4h4v-4Z",key:"vllfpd"}]]);/**
|
||
* @license lucide-vue-next v0.322.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const LU=nA("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/*!
|
||
* 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 Ip=function(e,t){return Ip=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,n){A.__proto__=n}||function(A,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(A[r]=n[r])},Ip(e,t)};function Vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ip(e,t);function A(){this.constructor=e}e.prototype=t===null?Object.create(t):(A.prototype=t.prototype,new A)}var Sp=function(){return Sp=Object.assign||function(t){for(var A,n=1,r=arguments.length;n<r;n++){A=arguments[n];for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&(t[i]=A[i])}return t},Sp.apply(this,arguments)};function Tn(e,t,A,n){function r(i){return i instanceof A?i:new A(function(s){s(i)})}return new(A||(A=Promise))(function(i,s){function o(c){try{l(n.next(c))}catch(u){s(u)}}function a(c){try{l(n.throw(c))}catch(u){s(u)}}function l(c){c.done?i(c.value):r(c.value).then(o,a)}l((n=n.apply(e,[])).next())})}function yn(e,t){var A={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(c){return a([l,c])}}function a(l){if(n)throw new TypeError("Generator is already executing.");for(;A;)try{if(n=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return A.label++,{value:l[1],done:!1};case 5:A.label++,r=l[1],l=[0];continue;case 7:l=A.ops.pop(),A.trys.pop();continue;default:if(i=A.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){A=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){A.label=l[1];break}if(l[0]===6&&A.label<i[1]){A.label=i[1],i=l;break}if(i&&A.label<i[2]){A.label=i[2],A.ops.push(l);break}i[2]&&A.ops.pop(),A.trys.pop();continue}l=t.call(e,A)}catch(c){l=[6,c],r=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Vu(e,t,A){if(arguments.length===2)for(var n=0,r=t.length,i;n<r;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||t)}var ss=function(){function e(t,A,n,r){this.left=t,this.top=A,this.width=n,this.height=r}return e.prototype.add=function(t,A,n,r){return new e(this.left+t,this.top+A,this.width+n,this.height+r)},e.fromClientRect=function(t,A){return new e(A.left+t.windowBounds.left,A.top+t.windowBounds.top,A.width,A.height)},e.fromDOMRectList=function(t,A){var n=Array.from(A).find(function(r){return r.width!==0});return n?new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),Yh=function(e,t){return ss.fromClientRect(e,t.getBoundingClientRect())},kU=function(e){var t=e.body,A=e.documentElement;if(!t||!A)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,A.scrollWidth),Math.max(t.offsetWidth,A.offsetWidth),Math.max(t.clientWidth,A.clientWidth)),r=Math.max(Math.max(t.scrollHeight,A.scrollHeight),Math.max(t.offsetHeight,A.offsetHeight),Math.max(t.clientHeight,A.clientHeight));return new ss(0,0,n,r)},Jh=function(e){for(var t=[],A=0,n=e.length;A<n;){var r=e.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=e.charCodeAt(A++);(i&64512)===56320?t.push(((r&1023)<<10)+(i&1023)+65536):(t.push(r),A--)}else t.push(r)}return t},MA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var A=e.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var s=e[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},A2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",NU=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ju=0;ju<A2.length;ju++)NU[A2.charCodeAt(ju)]=ju;var n2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$l=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Gu=0;Gu<n2.length;Gu++)$l[n2.charCodeAt(Gu)]=Gu;var DU=function(e){var t=e.length*.75,A=e.length,n,r=0,i,s,o,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),c=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<A;n+=4)i=$l[e.charCodeAt(n)],s=$l[e.charCodeAt(n+1)],o=$l[e.charCodeAt(n+2)],a=$l[e.charCodeAt(n+3)],c[r++]=i<<2|s>>4,c[r++]=(s&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},HU=function(e){for(var t=e.length,A=[],n=0;n<t;n+=2)A.push(e[n+1]<<8|e[n]);return A},MU=function(e){for(var t=e.length,A=[],n=0;n<t;n+=4)A.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return A},Oo=5,q0=11,ug=2,TU=q0-Oo,s5=65536>>Oo,OU=1<<Oo,fg=OU-1,PU=1024>>Oo,RU=s5+PU,KU=RU,VU=32,jU=KU+VU,GU=65536>>q0,WU=1<<TU,zU=WU-1,r2=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},$U=function(e,t,A){return e.slice?e.slice(t,A):new Uint32Array(Array.prototype.slice.call(e,t,A))},qU=function(e,t){var A=DU(e),n=Array.isArray(A)?MU(A):new Uint32Array(A),r=Array.isArray(A)?HU(A):new Uint16Array(A),i=24,s=r2(r,i/2,n[4]/2),o=n[5]===2?r2(r,(i+n[4])/2):$U(n,Math.ceil((i+n[4])/4));return new XU(n[0],n[1],n[2],n[3],s,o)},XU=function(){function e(t,A,n,r,i,s){this.initialValue=t,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return e.prototype.get=function(t){var A;if(t>=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>Oo],A=(A<<ug)+(t&fg),this.data[A];if(t<=65535)return A=this.index[s5+(t-55296>>Oo)],A=(A<<ug)+(t&fg),this.data[A];if(t<this.highStart)return A=jU-GU+(t>>q0),A=this.index[A],A+=t>>Oo&zU,A=this.index[A],A=(A<<ug)+(t&fg),this.data[A];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),i2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",YU=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Wu=0;Wu<i2.length;Wu++)YU[i2.charCodeAt(Wu)]=Wu;var JU="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==",s2=50,ZU=1,o5=2,a5=3,t3=4,e3=5,o2=7,l5=8,a2=9,Ns=10,Lp=11,l2=12,kp=13,A3=14,ql=15,Np=16,zu=17,Hl=18,n3=19,c2=20,Dp=21,Ml=22,hg=23,ba=24,or=25,Xl=26,Yl=27,ya=28,r3=29,So=30,i3=31,$u=32,qu=33,Hp=34,Mp=35,Tp=36,Hc=37,Op=38,Of=39,Pf=40,dg=41,c5=42,s3=43,o3=[9001,65288],u5="!",De="×",Xu="÷",Pp=qU(JU),Oi=[So,Tp],Rp=[ZU,o5,a5,e3],f5=[Ns,l5],u2=[Yl,Xl],a3=Rp.concat(f5),f2=[Op,Of,Pf,Hp,Mp],l3=[ql,kp],c3=function(e,t){t===void 0&&(t="strict");var A=[],n=[],r=[];return e.forEach(function(i,s){var o=Pp.get(i);if(o>s2?(r.push(!0),o-=s2):r.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),A.push(Np);if(o===t3||o===Lp){if(s===0)return n.push(s),A.push(So);var a=A[s-1];return a3.indexOf(a)===-1?(n.push(n[s-1]),A.push(a)):(n.push(s),A.push(So))}if(n.push(s),o===i3)return A.push(t==="strict"?Dp:Hc);if(o===c5||o===r3)return A.push(So);if(o===s3)return i>=131072&&i<=196605||i>=196608&&i<=262141?A.push(Hc):A.push(So);A.push(o)}),[n,A,r]},gg=function(e,t,A,n){var r=n[A];if(Array.isArray(e)?e.indexOf(r)!==-1:e===r)for(var i=A;i<=n.length;){i++;var s=n[i];if(s===t)return!0;if(s!==Ns)break}if(r===Ns)for(var i=A;i>0;){i--;var o=n[i];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var a=A;a<=n.length;){a++;var s=n[a];if(s===t)return!0;if(s!==Ns)break}if(o!==Ns)break}return!1},h2=function(e,t){for(var A=e;A>=0;){var n=t[A];if(n===Ns)A--;else return n}return 0},u3=function(e,t,A,n,r){if(A[n]===0)return De;var i=n-1;if(Array.isArray(r)&&r[i]===!0)return De;var s=i-1,o=i+1,a=t[i],l=s>=0?t[s]:0,c=t[o];if(a===o5&&c===a5)return De;if(Rp.indexOf(a)!==-1)return u5;if(Rp.indexOf(c)!==-1||f5.indexOf(c)!==-1)return De;if(h2(i,t)===l5)return Xu;if(Pp.get(e[i])===Lp||(a===$u||a===qu)&&Pp.get(e[o])===Lp||a===o2||c===o2||a===a2||[Ns,kp,ql].indexOf(a)===-1&&c===a2||[zu,Hl,n3,ba,ya].indexOf(c)!==-1||h2(i,t)===Ml||gg(hg,Ml,i,t)||gg([zu,Hl],Dp,i,t)||gg(l2,l2,i,t))return De;if(a===Ns)return Xu;if(a===hg||c===hg)return De;if(c===Np||a===Np)return Xu;if([kp,ql,Dp].indexOf(c)!==-1||a===A3||l===Tp&&l3.indexOf(a)!==-1||a===ya&&c===Tp||c===c2||Oi.indexOf(c)!==-1&&a===or||Oi.indexOf(a)!==-1&&c===or||a===Yl&&[Hc,$u,qu].indexOf(c)!==-1||[Hc,$u,qu].indexOf(a)!==-1&&c===Xl||Oi.indexOf(a)!==-1&&u2.indexOf(c)!==-1||u2.indexOf(a)!==-1&&Oi.indexOf(c)!==-1||[Yl,Xl].indexOf(a)!==-1&&(c===or||[Ml,ql].indexOf(c)!==-1&&t[o+1]===or)||[Ml,ql].indexOf(a)!==-1&&c===or||a===or&&[or,ya,ba].indexOf(c)!==-1)return De;if([or,ya,ba,zu,Hl].indexOf(c)!==-1)for(var u=i;u>=0;){var d=t[u];if(d===or)return De;if([ya,ba].indexOf(d)!==-1)u--;else break}if([Yl,Xl].indexOf(c)!==-1)for(var u=[zu,Hl].indexOf(a)!==-1?s:i;u>=0;){var d=t[u];if(d===or)return De;if([ya,ba].indexOf(d)!==-1)u--;else break}if(Op===a&&[Op,Of,Hp,Mp].indexOf(c)!==-1||[Of,Hp].indexOf(a)!==-1&&[Of,Pf].indexOf(c)!==-1||[Pf,Mp].indexOf(a)!==-1&&c===Pf||f2.indexOf(a)!==-1&&[c2,Xl].indexOf(c)!==-1||f2.indexOf(c)!==-1&&a===Yl||Oi.indexOf(a)!==-1&&Oi.indexOf(c)!==-1||a===ba&&Oi.indexOf(c)!==-1||Oi.concat(or).indexOf(a)!==-1&&c===Ml&&o3.indexOf(e[o])===-1||Oi.concat(or).indexOf(c)!==-1&&a===Hl)return De;if(a===dg&&c===dg){for(var f=A[i],m=1;f>0&&(f--,t[f]===dg);)m++;if(m%2!==0)return De}return a===$u&&c===qu?De:Xu},f3=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=c3(e,t.lineBreak),n=A[0],r=A[1],i=A[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(r=r.map(function(o){return[or,So,c5].indexOf(o)!==-1?Hc:o}));var s=t.wordBreak==="keep-all"?i.map(function(o,a){return o&&e[a]>=19968&&e[a]<=40959}):void 0;return[n,r,s]},h3=function(){function e(t,A,n,r){this.codePoints=t,this.required=A===u5,this.start=n,this.end=r}return e.prototype.slice=function(){return MA.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),d3=function(e,t){var A=Jh(e),n=f3(A,t),r=n[0],i=n[1],s=n[2],o=A.length,a=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var c=De;l<o&&(c=u3(A,i,r,++l,s))===De;);if(c!==De||l===o){var u=new h3(A,c,a,l);return a=l,{value:u,done:!1}}return{done:!0,value:null}}}},g3=1,p3=2,Jc=4,d2=8,gh=10,g2=47,pc=92,m3=9,B3=32,Yu=34,Tl=61,w3=35,v3=36,b3=37,Ju=39,Zu=40,Ol=41,y3=95,qn=45,C3=33,x3=60,F3=62,_3=64,U3=91,Q3=93,E3=61,I3=123,tf=63,S3=125,p2=124,L3=126,k3=128,m2=65533,pg=42,Do=43,N3=44,D3=58,H3=59,Mc=46,M3=0,T3=8,O3=11,P3=14,R3=31,K3=127,ni=-1,h5=48,d5=97,g5=101,V3=102,j3=117,G3=122,p5=65,m5=69,B5=70,W3=85,z3=90,Fn=function(e){return e>=h5&&e<=57},$3=function(e){return e>=55296&&e<=57343},Ca=function(e){return Fn(e)||e>=p5&&e<=B5||e>=d5&&e<=V3},q3=function(e){return e>=d5&&e<=G3},X3=function(e){return e>=p5&&e<=z3},Y3=function(e){return q3(e)||X3(e)},J3=function(e){return e>=k3},ef=function(e){return e===gh||e===m3||e===B3},ph=function(e){return Y3(e)||J3(e)||e===y3},B2=function(e){return ph(e)||Fn(e)||e===qn},Z3=function(e){return e>=M3&&e<=T3||e===O3||e>=P3&&e<=R3||e===K3},Ls=function(e,t){return e!==pc?!1:t!==gh},Af=function(e,t,A){return e===qn?ph(t)||Ls(t,A):ph(e)?!0:!!(e===pc&&Ls(e,t))},mg=function(e,t,A){return e===Do||e===qn?Fn(t)?!0:t===Mc&&Fn(A):Fn(e===Mc?t:e)},tQ=function(e){var t=0,A=1;(e[t]===Do||e[t]===qn)&&(e[t]===qn&&(A=-1),t++);for(var n=[];Fn(e[t]);)n.push(e[t++]);var r=n.length?parseInt(MA.apply(void 0,n),10):0;e[t]===Mc&&t++;for(var i=[];Fn(e[t]);)i.push(e[t++]);var s=i.length,o=s?parseInt(MA.apply(void 0,i),10):0;(e[t]===m5||e[t]===g5)&&t++;var a=1;(e[t]===Do||e[t]===qn)&&(e[t]===qn&&(a=-1),t++);for(var l=[];Fn(e[t]);)l.push(e[t++]);var c=l.length?parseInt(MA.apply(void 0,l),10):0;return A*(r+o*Math.pow(10,-s))*Math.pow(10,a*c)},eQ={type:2},AQ={type:3},nQ={type:4},rQ={type:13},iQ={type:8},sQ={type:21},oQ={type:9},aQ={type:10},lQ={type:11},cQ={type:12},uQ={type:14},nf={type:23},fQ={type:1},hQ={type:25},dQ={type:24},gQ={type:26},pQ={type:27},mQ={type:28},BQ={type:29},wQ={type:31},Kp={type:32},w5=function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(Jh(t))},e.prototype.read=function(){for(var t=[],A=this.consumeToken();A!==Kp;)t.push(A),A=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Yu:return this.consumeStringToken(Yu);case w3:var A=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(B2(A)||Ls(n,r)){var i=Af(A,n,r)?p3:g3,s=this.consumeName();return{type:5,value:s,flags:i}}break;case v3:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),rQ;break;case Ju:return this.consumeStringToken(Ju);case Zu:return eQ;case Ol:return AQ;case pg:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),uQ;break;case Do:if(mg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case N3:return nQ;case qn:var o=t,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(mg(o,a,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Af(o,a,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(a===qn&&l===F3)return this.consumeCodePoint(),this.consumeCodePoint(),dQ;break;case Mc:if(mg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case g2:if(this.peekCodePoint(0)===pg)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===pg&&(c=this.consumeCodePoint(),c===g2))return this.consumeToken();if(c===ni)return this.consumeToken()}break;case D3:return gQ;case H3:return pQ;case x3:if(this.peekCodePoint(0)===C3&&this.peekCodePoint(1)===qn&&this.peekCodePoint(2)===qn)return this.consumeCodePoint(),this.consumeCodePoint(),hQ;break;case _3:var u=this.peekCodePoint(0),d=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Af(u,d,f)){var s=this.consumeName();return{type:7,value:s}}break;case U3:return mQ;case pc:if(Ls(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Q3:return BQ;case E3:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),iQ;break;case I3:return lQ;case S3:return cQ;case j3:case W3:var m=this.peekCodePoint(0),B=this.peekCodePoint(1);return m===Do&&(Ca(B)||B===tf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case p2:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),oQ;if(this.peekCodePoint(0)===p2)return this.consumeCodePoint(),sQ;break;case L3:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),aQ;break;case ni:return Kp}return ef(t)?(this.consumeWhiteSpace(),wQ):Fn(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):ph(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:MA(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],A=this.consumeCodePoint();Ca(A)&&t.length<6;)t.push(A),A=this.consumeCodePoint();for(var n=!1;A===tf&&t.length<6;)t.push(A),A=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(MA.apply(void 0,t.map(function(a){return a===tf?h5:a})),16),i=parseInt(MA.apply(void 0,t.map(function(a){return a===tf?B5:a})),16);return{type:30,start:r,end:i}}var s=parseInt(MA.apply(void 0,t),16);if(this.peekCodePoint(0)===qn&&Ca(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var o=[];Ca(A)&&o.length<6;)o.push(A),A=this.consumeCodePoint();var i=parseInt(MA.apply(void 0,o),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Zu?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Zu?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ni)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===Ju||A===Yu){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ni||this.peekCodePoint(0)===Ol)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),nf)}for(;;){var r=this.consumeCodePoint();if(r===ni||r===Ol)return{type:22,value:MA.apply(void 0,t)};if(ef(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ni||this.peekCodePoint(0)===Ol?(this.consumeCodePoint(),{type:22,value:MA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),nf);if(r===Yu||r===Ju||r===Zu||Z3(r))return this.consumeBadUrlRemnants(),nf;if(r===pc)if(Ls(r,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),nf;else t.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;ef(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Ol||t===ni)return;Ls(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var A=5e4,n="";t>0;){var r=Math.min(A,t);n+=MA.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(t){var A="",n=0;do{var r=this._value[n];if(r===ni||r===void 0||r===t)return A+=this.consumeStringSlice(n),{type:0,value:A};if(r===gh)return this._value.splice(0,n),fQ;if(r===pc){var i=this._value[n+1];i!==ni&&i!==void 0&&(i===gh?(A+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ls(r,i)&&(A+=this.consumeStringSlice(n),A+=MA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var t=[],A=Jc,n=this.peekCodePoint(0);for((n===Do||n===qn)&&t.push(this.consumeCodePoint());Fn(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Mc&&Fn(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=d2;Fn(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===m5||n===g5)&&((r===Do||r===qn)&&Fn(i)||Fn(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=d2;Fn(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[tQ(t),A]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),A=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Af(r,i,s)){var o=this.consumeName();return{type:15,number:A,flags:n,unit:o}}return r===b3?(this.consumeCodePoint(),{type:16,number:A,flags:n}):{type:17,number:A,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Ca(t)){for(var A=MA(t);Ca(this.peekCodePoint(0))&&A.length<6;)A+=MA(this.consumeCodePoint());ef(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(A,16);return n===0||$3(n)||n>1114111?m2:n}return t===ni?m2:t},e.prototype.consumeName=function(){for(var t="";;){var A=this.consumeCodePoint();if(B2(A))t+=MA(A);else if(Ls(A,this.peekCodePoint(0)))t+=MA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),t}},e}(),v5=function(){function e(t){this._tokens=t}return e.create=function(t){var A=new w5;return A.write(t),new e(A.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var A=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var A=this.consumeComponentValue();if(A.type===32)return t;t.push(A),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var A={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||bQ(n,t))return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var A={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?Kp:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e}(),Zc=function(e){return e.type===15},ol=function(e){return e.type===17},AA=function(e){return e.type===20},vQ=function(e){return e.type===0},Vp=function(e,t){return AA(e)&&e.value===t},b5=function(e){return e.type!==31},el=function(e){return e.type!==31&&e.type!==4},vi=function(e){var t=[],A=[];return e.forEach(function(n){if(n.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(A),A=[];return}n.type!==31&&A.push(n)}),A.length&&t.push(A),t},bQ=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},zs=function(e){return e.type===17||e.type===15},WA=function(e){return e.type===16||zs(e)},y5=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},un={type:17,number:0,flags:Jc},X0={type:16,number:50,flags:Jc},Ds={type:16,number:100,flags:Jc},Jl=function(e,t,A){var n=e[0],r=e[1];return[dA(n,t),dA(typeof r<"u"?r:n,A)]},dA=function(e,t){if(e.type===16)return e.number/100*t;if(Zc(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},C5="deg",x5="grad",F5="rad",_5="turn",Zh={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case C5:return Math.PI*t.number/180;case x5:return Math.PI/200*t.number;case F5:return t.number;case _5:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},U5=function(e){return e.type===15&&(e.unit===C5||e.unit===x5||e.unit===F5||e.unit===_5)},Q5=function(e){var t=e.filter(AA).map(function(A){return A.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[un,un];case"to top":case"bottom":return yr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[un,Ds];case"to right":case"left":return yr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ds,Ds];case"to bottom":case"top":return yr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ds,un];case"to left":case"right":return yr(270)}return 0},yr=function(e){return Math.PI*e/180},Vs={name:"color",parse:function(e,t){if(t.type===18){var A=yQ[t.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return A(e,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),r=t.value.substring(1,2),i=t.value.substring(2,3);return Hs(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),r=t.value.substring(1,2),i=t.value.substring(2,3),s=t.value.substring(3,4);return Hs(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),r=t.value.substring(2,4),i=t.value.substring(4,6);return Hs(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),r=t.value.substring(2,4),i=t.value.substring(4,6),s=t.value.substring(6,8);return Hs(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(t.type===20){var o=As[t.value.toUpperCase()];if(typeof o<"u")return o}return As.TRANSPARENT}},js=function(e){return(255&e)===0},en=function(e){var t=255&e,A=255&e>>8,n=255&e>>16,r=255&e>>24;return t<255?"rgba("+r+","+n+","+A+","+t/255+")":"rgb("+r+","+n+","+A+")"},Hs=function(e,t,A,n){return(e<<24|t<<16|A<<8|Math.round(n*255)<<0)>>>0},w2=function(e,t){if(e.type===17)return e.number;if(e.type===16){var A=t===3?1:255;return t===3?e.number/100*A:Math.round(e.number/100*A)}return 0},v2=function(e,t){var A=t.filter(el);if(A.length===3){var n=A.map(w2),r=n[0],i=n[1],s=n[2];return Hs(r,i,s,1)}if(A.length===4){var o=A.map(w2),r=o[0],i=o[1],s=o[2],a=o[3];return Hs(r,i,s,a)}return 0};function Bg(e,t,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(t-e)*A*6+e:A<1/2?t:A<2/3?(t-e)*6*(2/3-A)+e:e}var b2=function(e,t){var A=t.filter(el),n=A[0],r=A[1],i=A[2],s=A[3],o=(n.type===17?yr(n.number):Zh.parse(e,n))/(Math.PI*2),a=WA(r)?r.number/100:0,l=WA(i)?i.number/100:0,c=typeof s<"u"&&WA(s)?dA(s,1):1;if(a===0)return Hs(l*255,l*255,l*255,1);var u=l<=.5?l*(a+1):l+a-l*a,d=l*2-u,f=Bg(d,u,o+1/3),m=Bg(d,u,o),B=Bg(d,u,o-1/3);return Hs(f*255,m*255,B*255,c)},yQ={hsl:b2,hsla:b2,rgb:v2,rgba:v2},mc=function(e,t){return Vs.parse(e,v5.create(t).parseComponentValue())},As={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},CQ={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(AA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},xQ={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},td=function(e,t){var A=Vs.parse(e,t[0]),n=t[1];return n&&WA(n)?{color:A,stop:n}:{color:A,stop:null}},y2=function(e,t){var A=e[0],n=e[e.length-1];A.stop===null&&(A.stop=un),n.stop===null&&(n.stop=Ds);for(var r=[],i=0,s=0;s<e.length;s++){var o=e[s].stop;if(o!==null){var a=dA(o,t);a>i?r.push(a):r.push(i),i=a}else r.push(null)}for(var l=null,s=0;s<r.length;s++){var c=r[s];if(c===null)l===null&&(l=s);else if(l!==null){for(var u=s-l,d=r[l-1],f=(c-d)/(u+1),m=1;m<=u;m++)r[l+m-1]=f*m;l=null}}return e.map(function(B,v){var b=B.color;return{color:b,stop:Math.max(Math.min(1,r[v]/t),0)}})},FQ=function(e,t,A){var n=t/2,r=A/2,i=dA(e[0],t)-n,s=r-dA(e[1],A);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},_Q=function(e,t,A){var n=typeof e=="number"?e:FQ(e,t,A),r=Math.abs(t*Math.sin(n))+Math.abs(A*Math.cos(n)),i=t/2,s=A/2,o=r/2,a=Math.sin(n-Math.PI/2)*o,l=Math.cos(n-Math.PI/2)*o;return[r,i-l,i+l,s-a,s+a]},Dr=function(e,t){return Math.sqrt(e*e+t*t)},C2=function(e,t,A,n,r){var i=[[0,0],[0,t],[e,0],[e,t]];return i.reduce(function(s,o){var a=o[0],l=o[1],c=Dr(A-a,n-l);return(r?c<s.optimumDistance:c>s.optimumDistance)?{optimumCorner:o,optimumDistance:c}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},UQ=function(e,t,A,n,r){var i=0,s=0;switch(e.size){case 0:e.shape===0?i=s=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(A),Math.abs(A-r)):e.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-n)),s=Math.min(Math.abs(A),Math.abs(A-r)));break;case 2:if(e.shape===0)i=s=Math.min(Dr(t,A),Dr(t,A-r),Dr(t-n,A),Dr(t-n,A-r));else if(e.shape===1){var o=Math.min(Math.abs(A),Math.abs(A-r))/Math.min(Math.abs(t),Math.abs(t-n)),a=C2(n,r,t,A,!0),l=a[0],c=a[1];i=Dr(l-t,(c-A)/o),s=o*i}break;case 1:e.shape===0?i=s=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(A),Math.abs(A-r)):e.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-n)),s=Math.max(Math.abs(A),Math.abs(A-r)));break;case 3:if(e.shape===0)i=s=Math.max(Dr(t,A),Dr(t,A-r),Dr(t-n,A),Dr(t-n,A-r));else if(e.shape===1){var o=Math.max(Math.abs(A),Math.abs(A-r))/Math.max(Math.abs(t),Math.abs(t-n)),u=C2(n,r,t,A,!1),l=u[0],c=u[1];i=Dr(l-t,(c-A)/o),s=o*i}break}return Array.isArray(e.size)&&(i=dA(e.size[0],n),s=e.size.length===2?dA(e.size[1],r):i),[i,s]},QQ=function(e,t){var A=yr(180),n=[];return vi(t).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){A=Q5(r);return}else if(U5(s)){A=Zh.parse(e,s);return}}var o=td(e,r);n.push(o)}),{angle:A,stops:n,type:1}},rf=function(e,t){var A=yr(180),n=[];return vi(t).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){A=Q5(r);return}else if(U5(s)){A=(Zh.parse(e,s)+yr(270))%yr(360);return}}var o=td(e,r);n.push(o)}),{angle:A,stops:n,type:1}},EQ=function(e,t){var A=yr(180),n=[],r=1,i=0,s=3,o=[];return vi(t).forEach(function(a,l){var c=a[0];if(l===0){if(AA(c)&&c.value==="linear"){r=1;return}else if(AA(c)&&c.value==="radial"){r=2;return}}if(c.type===18){if(c.name==="from"){var u=Vs.parse(e,c.values[0]);n.push({stop:un,color:u})}else if(c.name==="to"){var u=Vs.parse(e,c.values[0]);n.push({stop:Ds,color:u})}else if(c.name==="color-stop"){var d=c.values.filter(el);if(d.length===2){var u=Vs.parse(e,d[1]),f=d[0];ol(f)&&n.push({stop:{type:16,number:f.number*100,flags:f.flags},color:u})}}}}),r===1?{angle:(A+yr(180))%yr(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:o,type:r}},E5="closest-side",I5="farthest-side",S5="closest-corner",L5="farthest-corner",k5="circle",N5="ellipse",D5="cover",H5="contain",IQ=function(e,t){var A=0,n=3,r=[],i=[];return vi(t).forEach(function(s,o){var a=!0;if(o===0){var l=!1;a=s.reduce(function(u,d){if(l)if(AA(d))switch(d.value){case"center":return i.push(X0),u;case"top":case"left":return i.push(un),u;case"right":case"bottom":return i.push(Ds),u}else(WA(d)||zs(d))&&i.push(d);else if(AA(d))switch(d.value){case k5:return A=0,!1;case N5:return A=1,!1;case"at":return l=!0,!1;case E5:return n=0,!1;case D5:case I5:return n=1,!1;case H5:case S5:return n=2,!1;case L5:return n=3,!1}else if(zs(d)||WA(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return u},a)}if(a){var c=td(e,s);r.push(c)}}),{size:n,shape:A,stops:r,position:i,type:2}},sf=function(e,t){var A=0,n=3,r=[],i=[];return vi(t).forEach(function(s,o){var a=!0;if(o===0?a=s.reduce(function(c,u){if(AA(u))switch(u.value){case"center":return i.push(X0),!1;case"top":case"left":return i.push(un),!1;case"right":case"bottom":return i.push(Ds),!1}else if(WA(u)||zs(u))return i.push(u),!1;return c},a):o===1&&(a=s.reduce(function(c,u){if(AA(u))switch(u.value){case k5:return A=0,!1;case N5:return A=1,!1;case H5:case E5:return n=0,!1;case I5:return n=1,!1;case S5:return n=2,!1;case D5:case L5:return n=3,!1}else if(zs(u)||WA(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return c},a)),a){var l=td(e,s);r.push(l)}}),{size:n,shape:A,stops:r,position:i,type:2}},SQ=function(e){return e.type===1},LQ=function(e){return e.type===2},Y0={name:"image",parse:function(e,t){if(t.type===22){var A={url:t.value,type:0};return e.cache.addImage(t.value),A}if(t.type===18){var n=M5[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function kQ(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!M5[e.name])}var M5={"linear-gradient":QQ,"-moz-linear-gradient":rf,"-ms-linear-gradient":rf,"-o-linear-gradient":rf,"-webkit-linear-gradient":rf,"radial-gradient":IQ,"-moz-radial-gradient":sf,"-ms-radial-gradient":sf,"-o-radial-gradient":sf,"-webkit-radial-gradient":sf,"-webkit-gradient":EQ},NQ={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t.filter(function(n){return el(n)&&kQ(n)}).map(function(n){return Y0.parse(e,n)})}},DQ={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(AA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},HQ={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return vi(t).map(function(A){return A.filter(WA)}).map(y5)}},MQ={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return vi(t).map(function(A){return A.filter(AA).map(function(n){return n.value}).join(" ")}).map(TQ)}},TQ=function(e){switch(e){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}},ja;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(ja||(ja={}));var OQ={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return vi(t).map(function(A){return A.filter(PQ)})}},PQ=function(e){return AA(e)||WA(e)},ed=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},RQ=ed("top"),KQ=ed("right"),VQ=ed("bottom"),jQ=ed("left"),Ad=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,A){return y5(A.filter(WA))}}},GQ=Ad("top-left"),WQ=Ad("top-right"),zQ=Ad("bottom-right"),$Q=Ad("bottom-left"),nd=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},qQ=nd("top"),XQ=nd("right"),YQ=nd("bottom"),JQ=nd("left"),rd=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return Zc(A)?A.number:0}}},ZQ=rd("top"),tE=rd("right"),eE=rd("bottom"),AE=rd("left"),nE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rE={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},iE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(AA).reduce(function(A,n){return A|sE(n.value)},0)}},sE=function(e){switch(e){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},oE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},aE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},mh;(function(e){e.NORMAL="normal",e.STRICT="strict"})(mh||(mh={}));var lE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return mh.STRICT;case"normal":default:return mh.NORMAL}}},cE={name:"line-height",initialValue:"normal",prefix:!1,type:4},x2=function(e,t){return AA(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:WA(e)?dA(e,t):t},uE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:Y0.parse(e,t)}},fE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},jp={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){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}}},id=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},hE=id("top"),dE=id("right"),gE=id("bottom"),pE=id("left"),mE={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(AA).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},BE={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},sd=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},wE=sd("top"),vE=sd("right"),bE=sd("bottom"),yE=sd("left"),CE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},xE={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},FE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&Vp(t[0],"none")?[]:vi(t).map(function(A){for(var n={color:As.TRANSPARENT,offsetX:un,offsetY:un,blur:un},r=0,i=0;i<A.length;i++){var s=A[i];zs(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:n.blur=s,r++):n.color=Vs.parse(e,s)}return n})}},_E={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},UE={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var A=IE[t.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return A(t.values)}return null}},QE=function(e){var t=e.filter(function(A){return A.type===17}).map(function(A){return A.number});return t.length===6?t:null},EE=function(e){var t=e.filter(function(a){return a.type===17}).map(function(a){return a.number}),A=t[0],n=t[1];t[2],t[3];var r=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],o=t[13];return t[14],t[15],t.length===16?[A,n,r,i,s,o]:null},IE={matrix:QE,matrix3d:EE},F2={type:16,number:50,flags:Jc},SE=[F2,F2],LE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var A=t.filter(WA);return A.length!==2?SE:[A[0],A[1]]}},kE={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Bc;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Bc||(Bc={}));var NE={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Bc.BREAK_ALL;case"keep-all":return Bc.KEEP_ALL;case"normal":default:return Bc.NORMAL}}},DE={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(ol(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},T5={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},HE={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return ol(t)?t.number:1}},ME={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},TE={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(AA).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},OE={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var A=[],n=[];return t.forEach(function(r){switch(r.type){case 20:case 0:A.push(r.value);break;case 17:A.push(r.number.toString());break;case 4:n.push(A.join(" ")),A.length=0;break}}),A.length&&n.push(A.join(" ")),n.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},PE={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},RE={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(ol(t))return t.number;if(AA(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},KE={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(AA).map(function(A){return A.value})}},VE={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},JA=function(e,t){return(e&t)!==0},jE={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t}},GE={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var A=t[0];if(A.type===20&&A.value==="none")return null;for(var n=[],r=t.filter(b5),i=0;i<r.length;i++){var s=r[i],o=r[i+1];if(s.type===20){var a=o&&ol(o)?o.number:1;n.push({counter:s.value,increment:a})}}return n}},WE={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var A=[],n=t.filter(b5),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(AA(i)&&i.value!=="none"){var o=s&&ol(s)?s.number:0;A.push({counter:i.value,reset:o})}}return A}},zE={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Zc).map(function(A){return T5.parse(e,A)})}},$E={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var A=t[0];if(A.type===20&&A.value==="none")return null;var n=[],r=t.filter(vQ);if(r.length%2!==0)return null;for(var i=0;i<r.length;i+=2){var s=r[i].value,o=r[i+1].value;n.push({open:s,close:o})}return n}},_2=function(e,t,A){if(!e)return"";var n=e[Math.min(t,e.length-1)];return n?A?n.open:n.close:""},qE={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&Vp(t[0],"none")?[]:vi(t).map(function(A){for(var n={color:255,offsetX:un,offsetY:un,blur:un,spread:un,inset:!1},r=0,i=0;i<A.length;i++){var s=A[i];Vp(s,"inset")?n.inset=!0:zs(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:r===2?n.blur=s:n.spread=s,r++):n.color=Vs.parse(e,s)}return n})}},XE={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var A=[0,1,2],n=[];return t.filter(AA).forEach(function(r){switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),A.forEach(function(r){n.indexOf(r)===-1&&n.push(r)}),n}},YE={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},JE={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Zc(t)?t.number:0}},ZE=function(){function e(t,A){var n,r;this.animationDuration=$t(t,zE,A.animationDuration),this.backgroundClip=$t(t,CQ,A.backgroundClip),this.backgroundColor=$t(t,xQ,A.backgroundColor),this.backgroundImage=$t(t,NQ,A.backgroundImage),this.backgroundOrigin=$t(t,DQ,A.backgroundOrigin),this.backgroundPosition=$t(t,HQ,A.backgroundPosition),this.backgroundRepeat=$t(t,MQ,A.backgroundRepeat),this.backgroundSize=$t(t,OQ,A.backgroundSize),this.borderTopColor=$t(t,RQ,A.borderTopColor),this.borderRightColor=$t(t,KQ,A.borderRightColor),this.borderBottomColor=$t(t,VQ,A.borderBottomColor),this.borderLeftColor=$t(t,jQ,A.borderLeftColor),this.borderTopLeftRadius=$t(t,GQ,A.borderTopLeftRadius),this.borderTopRightRadius=$t(t,WQ,A.borderTopRightRadius),this.borderBottomRightRadius=$t(t,zQ,A.borderBottomRightRadius),this.borderBottomLeftRadius=$t(t,$Q,A.borderBottomLeftRadius),this.borderTopStyle=$t(t,qQ,A.borderTopStyle),this.borderRightStyle=$t(t,XQ,A.borderRightStyle),this.borderBottomStyle=$t(t,YQ,A.borderBottomStyle),this.borderLeftStyle=$t(t,JQ,A.borderLeftStyle),this.borderTopWidth=$t(t,ZQ,A.borderTopWidth),this.borderRightWidth=$t(t,tE,A.borderRightWidth),this.borderBottomWidth=$t(t,eE,A.borderBottomWidth),this.borderLeftWidth=$t(t,AE,A.borderLeftWidth),this.boxShadow=$t(t,qE,A.boxShadow),this.color=$t(t,nE,A.color),this.direction=$t(t,rE,A.direction),this.display=$t(t,iE,A.display),this.float=$t(t,oE,A.cssFloat),this.fontFamily=$t(t,OE,A.fontFamily),this.fontSize=$t(t,PE,A.fontSize),this.fontStyle=$t(t,VE,A.fontStyle),this.fontVariant=$t(t,KE,A.fontVariant),this.fontWeight=$t(t,RE,A.fontWeight),this.letterSpacing=$t(t,aE,A.letterSpacing),this.lineBreak=$t(t,lE,A.lineBreak),this.lineHeight=$t(t,cE,A.lineHeight),this.listStyleImage=$t(t,uE,A.listStyleImage),this.listStylePosition=$t(t,fE,A.listStylePosition),this.listStyleType=$t(t,jp,A.listStyleType),this.marginTop=$t(t,hE,A.marginTop),this.marginRight=$t(t,dE,A.marginRight),this.marginBottom=$t(t,gE,A.marginBottom),this.marginLeft=$t(t,pE,A.marginLeft),this.opacity=$t(t,HE,A.opacity);var i=$t(t,mE,A.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=$t(t,BE,A.overflowWrap),this.paddingTop=$t(t,wE,A.paddingTop),this.paddingRight=$t(t,vE,A.paddingRight),this.paddingBottom=$t(t,bE,A.paddingBottom),this.paddingLeft=$t(t,yE,A.paddingLeft),this.paintOrder=$t(t,XE,A.paintOrder),this.position=$t(t,xE,A.position),this.textAlign=$t(t,CE,A.textAlign),this.textDecorationColor=$t(t,ME,(n=A.textDecorationColor)!==null&&n!==void 0?n:A.color),this.textDecorationLine=$t(t,TE,(r=A.textDecorationLine)!==null&&r!==void 0?r:A.textDecoration),this.textShadow=$t(t,FE,A.textShadow),this.textTransform=$t(t,_E,A.textTransform),this.transform=$t(t,UE,A.transform),this.transformOrigin=$t(t,LE,A.transformOrigin),this.visibility=$t(t,kE,A.visibility),this.webkitTextStrokeColor=$t(t,YE,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=$t(t,JE,A.webkitTextStrokeWidth),this.wordBreak=$t(t,NE,A.wordBreak),this.zIndex=$t(t,DE,A.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return js(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return JA(this.display,4)||JA(this.display,33554432)||JA(this.display,268435456)||JA(this.display,536870912)||JA(this.display,67108864)||JA(this.display,134217728)},e}(),tI=function(){function e(t,A){this.content=$t(t,jE,A.content),this.quotes=$t(t,$E,A.quotes)}return e}(),U2=function(){function e(t,A){this.counterIncrement=$t(t,GE,A.counterIncrement),this.counterReset=$t(t,WE,A.counterReset)}return e}(),$t=function(e,t,A){var n=new w5,r=A!==null&&typeof A<"u"?A.toString():t.initialValue;n.write(r);var i=new v5(n.read());switch(t.type){case 2:var s=i.parseComponentValue();return t.parse(e,AA(s)?s.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Zh.parse(e,i.parseComponentValue());case"color":return Vs.parse(e,i.parseComponentValue());case"image":return Y0.parse(e,i.parseComponentValue());case"length":var o=i.parseComponentValue();return zs(o)?o:un;case"length-percentage":var a=i.parseComponentValue();return WA(a)?a:un;case"time":return T5.parse(e,i.parseComponentValue())}break}},eI="data-html2canvas-debug",AI=function(e){var t=e.getAttribute(eI);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Gp=function(e,t){var A=AI(e);return A===1||t===A},bi=function(){function e(t,A){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Gp(A,3))debugger;this.styles=new ZE(t,window.getComputedStyle(A,null)),$p(A)&&(this.styles.animationDuration.some(function(n){return n>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=Yh(this.context,A),Gp(A,4)&&(this.flags|=16)}return e}(),nI="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Q2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var of=0;of<Q2.length;of++)Zl[Q2.charCodeAt(of)]=of;var rI=function(e){var t=e.length*.75,A=e.length,n,r=0,i,s,o,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),c=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<A;n+=4)i=Zl[e.charCodeAt(n)],s=Zl[e.charCodeAt(n+1)],o=Zl[e.charCodeAt(n+2)],a=Zl[e.charCodeAt(n+3)],c[r++]=i<<2|s>>4,c[r++]=(s&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},iI=function(e){for(var t=e.length,A=[],n=0;n<t;n+=2)A.push(e[n+1]<<8|e[n]);return A},sI=function(e){for(var t=e.length,A=[],n=0;n<t;n+=4)A.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return A},Po=5,J0=11,wg=2,oI=J0-Po,O5=65536>>Po,aI=1<<Po,vg=aI-1,lI=1024>>Po,cI=O5+lI,uI=cI,fI=32,hI=uI+fI,dI=65536>>J0,gI=1<<oI,pI=gI-1,E2=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},mI=function(e,t,A){return e.slice?e.slice(t,A):new Uint32Array(Array.prototype.slice.call(e,t,A))},BI=function(e,t){var A=rI(e),n=Array.isArray(A)?sI(A):new Uint32Array(A),r=Array.isArray(A)?iI(A):new Uint16Array(A),i=24,s=E2(r,i/2,n[4]/2),o=n[5]===2?E2(r,(i+n[4])/2):mI(n,Math.ceil((i+n[4])/4));return new wI(n[0],n[1],n[2],n[3],s,o)},wI=function(){function e(t,A,n,r,i,s){this.initialValue=t,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return e.prototype.get=function(t){var A;if(t>=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>Po],A=(A<<wg)+(t&vg),this.data[A];if(t<=65535)return A=this.index[O5+(t-55296>>Po)],A=(A<<wg)+(t&vg),this.data[A];if(t<this.highStart)return A=hI-dI+(t>>J0),A=this.index[A],A+=t>>Po&pI,A=this.index[A],A=(A<<wg)+(t&vg),this.data[A];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),I2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vI=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var af=0;af<I2.length;af++)vI[I2.charCodeAt(af)]=af;var bI=1,bg=2,yg=3,S2=4,L2=5,yI=7,k2=8,Cg=9,xg=10,N2=11,D2=12,H2=13,M2=14,Fg=15,CI=function(e){for(var t=[],A=0,n=e.length;A<n;){var r=e.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=e.charCodeAt(A++);(i&64512)===56320?t.push(((r&1023)<<10)+(i&1023)+65536):(t.push(r),A--)}else t.push(r)}return t},xI=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var A=e.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var s=e[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},FI=BI(nI),vr="×",_g="÷",_I=function(e){return FI.get(e)},UI=function(e,t,A){var n=A-2,r=t[n],i=t[A-1],s=t[A];if(i===bg&&s===yg)return vr;if(i===bg||i===yg||i===S2||s===bg||s===yg||s===S2)return _g;if(i===k2&&[k2,Cg,N2,D2].indexOf(s)!==-1||(i===N2||i===Cg)&&(s===Cg||s===xg)||(i===D2||i===xg)&&s===xg||s===H2||s===L2||s===yI||i===bI)return vr;if(i===H2&&s===M2){for(;r===L2;)r=t[--n];if(r===M2)return vr}if(i===Fg&&s===Fg){for(var o=0;r===Fg;)o++,r=t[--n];if(o%2===0)return vr}return _g},QI=function(e){var t=CI(e),A=t.length,n=0,r=0,i=t.map(_I);return{next:function(){if(n>=A)return{done:!0,value:null};for(var s=vr;n<A&&(s=UI(t,i,++n))===vr;);if(s!==vr||n===A){var o=xI.apply(null,t.slice(r,n));return r=n,{value:o,done:!1}}return{done:!0,value:null}}}},EI=function(e){for(var t=QI(e),A=[],n;!(n=t.next()).done;)n.value&&A.push(n.value.slice());return A},II=function(e){var t=123;if(e.createRange){var A=e.createRange();if(A.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height=t+"px",n.style.display="block",e.body.appendChild(n),A.selectNode(n);var r=A.getBoundingClientRect(),i=Math.round(r.height);if(e.body.removeChild(n),i===t)return!0}}return!1},SI=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var A=e.createRange();t.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var n=t.firstChild,r=Jh(n.data).map(function(a){return MA(a)}),i=0,s={},o=r.every(function(a,l){A.setStart(n,i),A.setEnd(n,i+a.length);var c=A.getBoundingClientRect();i+=a.length;var u=c.x>s.x||c.y>s.y;return s=c,l===0?!0:u});return e.body.removeChild(t),o},LI=function(){return typeof new Image().crossOrigin<"u"},kI=function(){return typeof new XMLHttpRequest().responseType=="string"},NI=function(e){var t=new Image,A=e.createElement("canvas"),n=A.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),A.toDataURL()}catch{return!1}return!0},T2=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},DI=function(e){var t=e.createElement("canvas"),A=100;t.width=A,t.height=A;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,A,A);var r=new Image,i=t.toDataURL();r.src=i;var s=Wp(A,A,0,0,r);return n.fillStyle="red",n.fillRect(0,0,A,A),O2(s).then(function(o){n.drawImage(o,0,0);var a=n.getImageData(0,0,A,A).data;n.fillStyle="red",n.fillRect(0,0,A,A);var l=e.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=A+"px",T2(a)?O2(Wp(A,A,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),T2(n.getImageData(0,0,A,A).data)}).catch(function(){return!1})},Wp=function(e,t,A,n,r){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",A.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(r),s},O2=function(e){return new Promise(function(t,A){var n=new Image;n.onload=function(){return t(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},cn={get SUPPORT_RANGE_BOUNDS(){var e=II(document);return Object.defineProperty(cn,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=cn.SUPPORT_RANGE_BOUNDS&&SI(document);return Object.defineProperty(cn,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=NI(document);return Object.defineProperty(cn,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?DI(document):Promise.resolve(!1);return Object.defineProperty(cn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=LI();return Object.defineProperty(cn,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=kI();return Object.defineProperty(cn,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(cn,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(cn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},wc=function(){function e(t,A){this.text=t,this.bounds=A}return e}(),HI=function(e,t,A,n){var r=OI(t,A),i=[],s=0;return r.forEach(function(o){if(A.textDecorationLine.length||o.trim().length>0)if(cn.SUPPORT_RANGE_BOUNDS){var a=P2(n,s,o.length).getClientRects();if(a.length>1){var l=Z0(o),c=0;l.forEach(function(d){i.push(new wc(d,ss.fromDOMRectList(e,P2(n,c+s,d.length).getClientRects()))),c+=d.length})}else i.push(new wc(o,ss.fromDOMRectList(e,a)))}else{var u=n.splitText(o.length);i.push(new wc(o,MI(e,n))),n=u}else cn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));s+=o.length}),i},MI=function(e,t){var A=t.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var r=t.parentNode;if(r){r.replaceChild(n,t);var i=Yh(e,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return ss.EMPTY},P2=function(e,t,A){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(e,t),r.setEnd(e,t+A),r},Z0=function(e){if(cn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(A){return A.segment})}return EI(e)},TI=function(e,t){if(cn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(e)).map(function(n){return n.segment})}return RI(e,t)},OI=function(e,t){return t.letterSpacing!==0?Z0(e):TI(e,t)},PI=[32,160,4961,65792,65793,4153,4241],RI=function(e,t){for(var A=d3(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],r,i=function(){if(r.value){var s=r.value.slice(),o=Jh(s),a="";o.forEach(function(l){PI.indexOf(l)===-1?a+=MA(l):(a.length&&n.push(a),n.push(MA(l)),a="")}),a.length&&n.push(a)}};!(r=A.next()).done;)i();return n},KI=function(){function e(t,A,n){this.text=VI(A.data,n.textTransform),this.textBounds=HI(t,this.text,n,A)}return e}(),VI=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(jI,GI);case 2:return e.toUpperCase();default:return e}},jI=/(^|\s|:|-|\(|\))([a-z])/g,GI=function(e,t,A){return e.length>0?t+A.toUpperCase():e},P5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t}(bi),R5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t}(bi),K5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this,i=new XMLSerializer,s=Yh(A,n);return n.setAttribute("width",s.width+"px"),n.setAttribute("height",s.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t}(bi),V5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.value=n.value,r}return t}(bi),zp=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.start=n.start,r.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,r}return t}(bi),WI=[{type:15,flags:0,unit:"px",number:3}],zI=[{type:16,flags:0,number:50}],$I=function(e){return e.width>e.height?new ss(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new ss(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},qI=function(e){var t=e.type===XI?new Array(e.value.length+1).join("•"):e.value;return t.length===0?e.placeholder||"":t},Bh="checkbox",wh="radio",XI="password",R2=707406591,t1=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=qI(n),(r.type===Bh||r.type===wh)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=$I(r.bounds)),r.type){case Bh:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=WI;break;case wh:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=zI;break}return r}return t}(bi),j5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return t}(bi),G5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.value=n.value,r}return t}(bi),W5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=$5(A,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?mc(A,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):As.TRANSPARENT,s=n.contentWindow.document.body?mc(A,getComputedStyle(n.contentWindow.document.body).backgroundColor):As.TRANSPARENT;r.backgroundColor=js(i)?js(s)?r.styles.backgroundColor:s:i}}catch{}return r}return t}(bi),YI=["OL","UL","MENU"],Rf=function(e,t,A,n){for(var r=t.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,q5(r)&&r.data.trim().length>0)A.textNodes.push(new KI(e,r,A.styles));else if(Ta(r))if(Z5(r)&&r.assignedNodes)r.assignedNodes().forEach(function(o){return Rf(e,o,A,n)});else{var s=z5(e,r);s.styles.isVisible()&&(JI(r,s,n)?s.flags|=4:ZI(s.styles)&&(s.flags|=2),YI.indexOf(r.tagName)!==-1&&(s.flags|=8),A.elements.push(s),r.slot,r.shadowRoot?Rf(e,r.shadowRoot,s,n):!vh(r)&&!X5(r)&&!bh(r)&&Rf(e,r,s,n))}},z5=function(e,t){return qp(t)?new P5(e,t):Y5(t)?new R5(e,t):X5(t)?new K5(e,t):tS(t)?new V5(e,t):eS(t)?new zp(e,t):AS(t)?new t1(e,t):bh(t)?new j5(e,t):vh(t)?new G5(e,t):J5(t)?new W5(e,t):new bi(e,t)},$5=function(e,t){var A=z5(e,t);return A.flags|=4,Rf(e,t,A,A),A},JI=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||e1(e)&&A.styles.isTransparent()},ZI=function(e){return e.isPositioned()||e.isFloating()},q5=function(e){return e.nodeType===Node.TEXT_NODE},Ta=function(e){return e.nodeType===Node.ELEMENT_NODE},$p=function(e){return Ta(e)&&typeof e.style<"u"&&!Kf(e)},Kf=function(e){return typeof e.className=="object"},tS=function(e){return e.tagName==="LI"},eS=function(e){return e.tagName==="OL"},AS=function(e){return e.tagName==="INPUT"},nS=function(e){return e.tagName==="HTML"},X5=function(e){return e.tagName==="svg"},e1=function(e){return e.tagName==="BODY"},Y5=function(e){return e.tagName==="CANVAS"},K2=function(e){return e.tagName==="VIDEO"},qp=function(e){return e.tagName==="IMG"},J5=function(e){return e.tagName==="IFRAME"},V2=function(e){return e.tagName==="STYLE"},rS=function(e){return e.tagName==="SCRIPT"},vh=function(e){return e.tagName==="TEXTAREA"},bh=function(e){return e.tagName==="SELECT"},Z5=function(e){return e.tagName==="SLOT"},j2=function(e){return e.tagName.indexOf("-")>0},iS=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var A=this.counters[t];return A&&A.length?A[A.length-1]:1},e.prototype.getCounterValues=function(t){var A=this.counters[t];return A||[]},e.prototype.pop=function(t){var A=this;t.forEach(function(n){return A.counters[n].pop()})},e.prototype.parse=function(t){var A=this,n=t.counterIncrement,r=t.counterReset,i=!0;n!==null&&n.forEach(function(o){var a=A.counters[o.counter];a&&o.increment!==0&&(i=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});var s=[];return i&&r.forEach(function(o){var a=A.counters[o.counter];s.push(o.counter),a||(a=A.counters[o.counter]=[]),a.push(o.reset)}),s},e}(),G2={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"]},W2={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},sS={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},oS={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},xa=function(e,t,A,n,r,i){return e<t||e>A?Tc(e,r,i.length>0):n.integers.reduce(function(s,o,a){for(;e>=o;)e-=o,s+=n.values[a];return s},"")+i},ty=function(e,t,A,n){var r="";do A||e--,r=n(e)+r,e/=t;while(e*t>=t);return r},HA=function(e,t,A,n,r){var i=A-t+1;return(e<0?"-":"")+(ty(Math.abs(e),i,n,function(s){return MA(Math.floor(s%i)+t)})+r)},bo=function(e,t,A){A===void 0&&(A=". ");var n=t.length;return ty(Math.abs(e),n,!1,function(r){return t[Math.floor(r%n)]})+A},Na=1,Us=2,Qs=4,tc=8,Pi=function(e,t,A,n,r,i){if(e<-9999||e>9999)return Tc(e,4,r.length>0);var s=Math.abs(e),o=r;if(s===0)return t[0]+o;for(var a=0;s>0&&a<=4;a++){var l=s%10;l===0&&JA(i,Na)&&o!==""?o=t[l]+o:l>1||l===1&&a===0||l===1&&a===1&&JA(i,Us)||l===1&&a===1&&JA(i,Qs)&&e>100||l===1&&a>1&&JA(i,tc)?o=t[l]+(a>0?A[a-1]:"")+o:l===1&&a>0&&(o=A[a-1]+o),s=Math.floor(s/10)}return(e<0?n:"")+o},z2="十百千萬",$2="拾佰仟萬",q2="マイナス",Ug="마이너스",Tc=function(e,t,A){var n=A?". ":"",r=A?"、":"",i=A?", ":"",s=A?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=HA(e,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return bo(e,"〇一二三四五六七八九",r);case 6:return xa(e,1,3999,G2,3,n).toLowerCase();case 7:return xa(e,1,3999,G2,3,n);case 8:return HA(e,945,969,!1,n);case 9:return HA(e,97,122,!1,n);case 10:return HA(e,65,90,!1,n);case 11:return HA(e,1632,1641,!0,n);case 12:case 49:return xa(e,1,9999,W2,3,n);case 35:return xa(e,1,9999,W2,3,n).toLowerCase();case 13:return HA(e,2534,2543,!0,n);case 14:case 30:return HA(e,6112,6121,!0,n);case 15:return bo(e,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return bo(e,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Pi(e,"零一二三四五六七八九",z2,"負",r,Us|Qs|tc);case 47:return Pi(e,"零壹貳參肆伍陸柒捌玖",$2,"負",r,Na|Us|Qs|tc);case 42:return Pi(e,"零一二三四五六七八九",z2,"负",r,Us|Qs|tc);case 41:return Pi(e,"零壹贰叁肆伍陆柒捌玖",$2,"负",r,Na|Us|Qs|tc);case 26:return Pi(e,"〇一二三四五六七八九","十百千万",q2,r,0);case 25:return Pi(e,"零壱弐参四伍六七八九","拾百千万",q2,r,Na|Us|Qs);case 31:return Pi(e,"영일이삼사오육칠팔구","십백천만",Ug,i,Na|Us|Qs);case 33:return Pi(e,"零一二三四五六七八九","十百千萬",Ug,i,0);case 32:return Pi(e,"零壹貳參四五六七八九","拾百千",Ug,i,Na|Us|Qs);case 18:return HA(e,2406,2415,!0,n);case 20:return xa(e,1,19999,oS,3,n);case 21:return HA(e,2790,2799,!0,n);case 22:return HA(e,2662,2671,!0,n);case 22:return xa(e,1,10999,sS,3,n);case 23:return bo(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return bo(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return HA(e,3302,3311,!0,n);case 28:return bo(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return bo(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return HA(e,3792,3801,!0,n);case 37:return HA(e,6160,6169,!0,n);case 38:return HA(e,4160,4169,!0,n);case 39:return HA(e,2918,2927,!0,n);case 40:return HA(e,1776,1785,!0,n);case 43:return HA(e,3046,3055,!0,n);case 44:return HA(e,3174,3183,!0,n);case 45:return HA(e,3664,3673,!0,n);case 46:return HA(e,3872,3881,!0,n);case 3:default:return HA(e,48,57,!0,n)}},ey="data-html2canvas-ignore",X2=function(){function e(t,A,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=A,this.counters=new iS,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,A){var n=this,r=aS(t,A);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,o=r.contentWindow,a=o.document,l=uS(r).then(function(){return Tn(n,void 0,void 0,function(){var c,u;return yn(this,function(d){switch(d.label){case 0:return this.scrolledElements.forEach(gS),o&&(o.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==A.top||o.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-A.left,o.scrollY-A.top,0,0))),c=this.options.onclone,u=this.clonedReferenceElement,typeof u>"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:d.sent(),d.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,cS(a)]:[3,4];case 3:d.sent(),d.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(a,u)}).then(function(){return r})]:[2,r]}})})});return a.open(),a.write(hS(document.doctype)+"<html></html>"),dS(this.referenceElement.ownerDocument,i,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),l},e.prototype.createElementClone=function(t){if(Gp(t,2))debugger;if(Y5(t))return this.createCanvasClone(t);if(K2(t))return this.createVideoClone(t);if(V2(t))return this.createStyleClone(t);var A=t.cloneNode(!1);return qp(A)&&(qp(t)&&t.currentSrc&&t.currentSrc!==t.src&&(A.src=t.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),j2(A)?this.createCustomElementClone(A):A},e.prototype.createCustomElementClone=function(t){var A=document.createElement("html2canvascustomelement");return Qg(t.style,A),A},e.prototype.createStyleClone=function(t){try{var A=t.sheet;if(A&&A.cssRules){var n=[].slice.call(A.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var A;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=(A=t.getContext("webgl2"))!==null&&A!==void 0?A:t.getContext("webgl");if(o){var a=o.getContextAttributes();(a==null?void 0:a.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}s.drawImage(t,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},e.prototype.createVideoClone=function(t){var A=t.ownerDocument.createElement("canvas");A.width=t.offsetWidth,A.height=t.offsetHeight;var n=A.getContext("2d");try{return n&&(n.drawImage(t,0,0,A.width,A.height),this.options.allowTaint||n.getImageData(0,0,A.width,A.height)),A}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},e.prototype.appendChildNode=function(t,A,n){(!Ta(A)||!rS(A)&&!A.hasAttribute(ey)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!Ta(A)||!V2(A))&&t.appendChild(this.cloneNode(A,n))},e.prototype.cloneChildNodes=function(t,A,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(Ta(i)&&Z5(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(o){return r.appendChildNode(A,o,n)})}else this.appendChildNode(A,i,n)},e.prototype.cloneNode=function(t,A){if(q5(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&Ta(t)&&($p(t)||Kf(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),s=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&$p(r)&&(this.clonedReferenceElement=r),e1(r)&&BS(r);var a=this.counters.parse(new U2(this.context,i)),l=this.resolvePseudoContent(t,r,s,vc.BEFORE);j2(t)&&(A=!0),K2(t)||this.cloneChildNodes(t,r,A),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(t,r,o,vc.AFTER);return c&&r.appendChild(c),this.counters.pop(a),(i&&(this.options.copyStyles||Kf(t))&&!J5(t)||A)&&Qg(i,r),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(vh(t)||bh(t))&&(vh(r)||bh(r))&&(r.value=t.value),r}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,A,n,r){var i=this;if(n){var s=n.content,o=A.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||n.display==="none")){this.counters.parse(new U2(this.context,n));var a=new tI(this.context,n),l=o.createElement("html2canvaspseudoelement");Qg(n,l),a.content.forEach(function(u){if(u.type===0)l.appendChild(o.createTextNode(u.value));else if(u.type===22){var d=o.createElement("img");d.src=u.value,d.style.opacity="1",l.appendChild(d)}else if(u.type===18){if(u.name==="attr"){var f=u.values.filter(AA);f.length&&l.appendChild(o.createTextNode(t.getAttribute(f[0].value)||""))}else if(u.name==="counter"){var m=u.values.filter(el),B=m[0],v=m[1];if(B&&AA(B)){var b=i.counters.getCounterValue(B.value),C=v&&AA(v)?jp.parse(i.context,v.value):3;l.appendChild(o.createTextNode(Tc(b,C,!1)))}}else if(u.name==="counters"){var Q=u.values.filter(el),B=Q[0],_=Q[1],v=Q[2];if(B&&AA(B)){var H=i.counters.getCounterValues(B.value),W=v&&AA(v)?jp.parse(i.context,v.value):3,R=_&&_.type===0?_.value:"",O=H.map(function(F){return Tc(F,W,!1)}).join(R);l.appendChild(o.createTextNode(O))}}}else if(u.type===20)switch(u.value){case"open-quote":l.appendChild(o.createTextNode(_2(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(_2(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(u.value))}}),l.className=Xp+" "+Yp;var c=r===vc.BEFORE?" "+Xp:" "+Yp;return Kf(A)?A.className.baseValue+=c:A.className+=c,l}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e}(),vc;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(vc||(vc={}));var aS=function(e,t){var A=e.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=t.width.toString(),A.height=t.height.toString(),A.scrolling="no",A.setAttribute(ey,"true"),e.body.appendChild(A),A},lS=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},cS=function(e){return Promise.all([].slice.call(e.images,0).map(lS))},uS=function(e){return new Promise(function(t,A){var n=e.contentWindow;if(!n)return A("No window assigned for iframe");var r=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var i=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(i),t(e))},50)}})},fS=["all","d","content"],Qg=function(e,t){for(var A=e.length-1;A>=0;A--){var n=e.item(A);fS.indexOf(n)===-1&&t.style.setProperty(n,e.getPropertyValue(n))}return t},hS=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},dS=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},gS=function(e){var t=e[0],A=e[1],n=e[2];t.scrollLeft=A,t.scrollTop=n},pS=":before",mS=":after",Xp="___html2canvas___pseudoelement_before",Yp="___html2canvas___pseudoelement_after",Y2=`{
|
||
content: "" !important;
|
||
display: none !important;
|
||
}`,BS=function(e){wS(e,"."+Xp+pS+Y2+`
|
||
.`+Yp+mS+Y2)},wS=function(e,t){var A=e.ownerDocument;if(A){var n=A.createElement("style");n.textContent=t,e.appendChild(n)}},Ay=function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),vS=function(){function e(t,A){this.context=t,this._options=A,this._cache={}}return e.prototype.addImage=function(t){var A=Promise.resolve();return this.has(t)||(Ig(t)||xS(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),A},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return Tn(this,void 0,void 0,function(){var A,n,r,i,s=this;return yn(this,function(o){switch(o.label){case 0:return A=Ay.isSameOrigin(t),n=!Eg(t)&&this._options.useCORS===!0&&cn.SUPPORT_CORS_IMAGES&&!A,r=!Eg(t)&&!A&&!Ig(t)&&typeof this._options.proxy=="string"&&cn.SUPPORT_CORS_XHR&&!n,!A&&this._options.allowTaint===!1&&!Eg(t)&&!Ig(t)&&!r&&!n?[2]:(i=t,r?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(a,l){var c=new Image;c.onload=function(){return a(c)},c.onerror=l,(FS(i)||n)&&(c.crossOrigin="anonymous"),c.src=i,c.complete===!0&&setTimeout(function(){return a(c)},500),s._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var A=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise(function(i,s){var o=cn.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(o==="text")i(a.response);else{var u=new FileReader;u.addEventListener("load",function(){return i(u.result)},!1),u.addEventListener("error",function(d){return s(d)},!1),u.readAsDataURL(a.response)}else s("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=s;var l=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+l+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),A._options.imageTimeout){var c=A._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return s("Timed out ("+c+"ms) proxying "+r)}}a.send()})},e}(),bS=/^data:image\/svg\+xml/i,yS=/^data:image\/.*;base64,/i,CS=/^data:image\/.*/i,xS=function(e){return cn.SUPPORT_SVG_DRAWING||!_S(e)},Eg=function(e){return CS.test(e)},FS=function(e){return yS.test(e)},Ig=function(e){return e.substr(0,4)==="blob"},_S=function(e){return e.substr(-3).toLowerCase()==="svg"||bS.test(e)},zt=function(){function e(t,A){this.type=0,this.x=t,this.y=A}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e}(),Fa=function(e,t,A){return new zt(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},lf=function(){function e(t,A,n,r){this.type=1,this.start=t,this.startControl=A,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,A){var n=Fa(this.start,this.startControl,t),r=Fa(this.startControl,this.endControl,t),i=Fa(this.endControl,this.end,t),s=Fa(n,r,t),o=Fa(r,i,t),a=Fa(s,o,t);return A?new e(this.start,n,s,a):new e(a,o,i,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),br=function(e){return e.type===1},US=function(){function e(t){var A=t.styles,n=t.bounds,r=Jl(A.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],o=Jl(A.borderTopRightRadius,n.width,n.height),a=o[0],l=o[1],c=Jl(A.borderBottomRightRadius,n.width,n.height),u=c[0],d=c[1],f=Jl(A.borderBottomLeftRadius,n.width,n.height),m=f[0],B=f[1],v=[];v.push((i+a)/n.width),v.push((m+u)/n.width),v.push((s+B)/n.height),v.push((l+d)/n.height);var b=Math.max.apply(Math,v);b>1&&(i/=b,s/=b,a/=b,l/=b,u/=b,d/=b,m/=b,B/=b);var C=n.width-a,Q=n.height-d,_=n.width-u,H=n.height-B,W=A.borderTopWidth,R=A.borderRightWidth,O=A.borderBottomWidth,k=A.borderLeftWidth,V=dA(A.paddingTop,t.bounds.width),F=dA(A.paddingRight,t.bounds.width),L=dA(A.paddingBottom,t.bounds.width),G=dA(A.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?vA(n.left+k/3,n.top+W/3,i-k/3,s-W/3,Ge.TOP_LEFT):new zt(n.left+k/3,n.top+W/3),this.topRightBorderDoubleOuterBox=i>0||s>0?vA(n.left+C,n.top+W/3,a-R/3,l-W/3,Ge.TOP_RIGHT):new zt(n.left+n.width-R/3,n.top+W/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?vA(n.left+_,n.top+Q,u-R/3,d-O/3,Ge.BOTTOM_RIGHT):new zt(n.left+n.width-R/3,n.top+n.height-O/3),this.bottomLeftBorderDoubleOuterBox=m>0||B>0?vA(n.left+k/3,n.top+H,m-k/3,B-O/3,Ge.BOTTOM_LEFT):new zt(n.left+k/3,n.top+n.height-O/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?vA(n.left+k*2/3,n.top+W*2/3,i-k*2/3,s-W*2/3,Ge.TOP_LEFT):new zt(n.left+k*2/3,n.top+W*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?vA(n.left+C,n.top+W*2/3,a-R*2/3,l-W*2/3,Ge.TOP_RIGHT):new zt(n.left+n.width-R*2/3,n.top+W*2/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?vA(n.left+_,n.top+Q,u-R*2/3,d-O*2/3,Ge.BOTTOM_RIGHT):new zt(n.left+n.width-R*2/3,n.top+n.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||B>0?vA(n.left+k*2/3,n.top+H,m-k*2/3,B-O*2/3,Ge.BOTTOM_LEFT):new zt(n.left+k*2/3,n.top+n.height-O*2/3),this.topLeftBorderStroke=i>0||s>0?vA(n.left+k/2,n.top+W/2,i-k/2,s-W/2,Ge.TOP_LEFT):new zt(n.left+k/2,n.top+W/2),this.topRightBorderStroke=i>0||s>0?vA(n.left+C,n.top+W/2,a-R/2,l-W/2,Ge.TOP_RIGHT):new zt(n.left+n.width-R/2,n.top+W/2),this.bottomRightBorderStroke=u>0||d>0?vA(n.left+_,n.top+Q,u-R/2,d-O/2,Ge.BOTTOM_RIGHT):new zt(n.left+n.width-R/2,n.top+n.height-O/2),this.bottomLeftBorderStroke=m>0||B>0?vA(n.left+k/2,n.top+H,m-k/2,B-O/2,Ge.BOTTOM_LEFT):new zt(n.left+k/2,n.top+n.height-O/2),this.topLeftBorderBox=i>0||s>0?vA(n.left,n.top,i,s,Ge.TOP_LEFT):new zt(n.left,n.top),this.topRightBorderBox=a>0||l>0?vA(n.left+C,n.top,a,l,Ge.TOP_RIGHT):new zt(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?vA(n.left+_,n.top+Q,u,d,Ge.BOTTOM_RIGHT):new zt(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=m>0||B>0?vA(n.left,n.top+H,m,B,Ge.BOTTOM_LEFT):new zt(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?vA(n.left+k,n.top+W,Math.max(0,i-k),Math.max(0,s-W),Ge.TOP_LEFT):new zt(n.left+k,n.top+W),this.topRightPaddingBox=a>0||l>0?vA(n.left+Math.min(C,n.width-R),n.top+W,C>n.width+R?0:Math.max(0,a-R),Math.max(0,l-W),Ge.TOP_RIGHT):new zt(n.left+n.width-R,n.top+W),this.bottomRightPaddingBox=u>0||d>0?vA(n.left+Math.min(_,n.width-k),n.top+Math.min(Q,n.height-O),Math.max(0,u-R),Math.max(0,d-O),Ge.BOTTOM_RIGHT):new zt(n.left+n.width-R,n.top+n.height-O),this.bottomLeftPaddingBox=m>0||B>0?vA(n.left+k,n.top+Math.min(H,n.height-O),Math.max(0,m-k),Math.max(0,B-O),Ge.BOTTOM_LEFT):new zt(n.left+k,n.top+n.height-O),this.topLeftContentBox=i>0||s>0?vA(n.left+k+G,n.top+W+V,Math.max(0,i-(k+G)),Math.max(0,s-(W+V)),Ge.TOP_LEFT):new zt(n.left+k+G,n.top+W+V),this.topRightContentBox=a>0||l>0?vA(n.left+Math.min(C,n.width+k+G),n.top+W+V,C>n.width+k+G?0:a-k+G,l-(W+V),Ge.TOP_RIGHT):new zt(n.left+n.width-(R+F),n.top+W+V),this.bottomRightContentBox=u>0||d>0?vA(n.left+Math.min(_,n.width-(k+G)),n.top+Math.min(Q,n.height+W+V),Math.max(0,u-(R+F)),d-(O+L),Ge.BOTTOM_RIGHT):new zt(n.left+n.width-(R+F),n.top+n.height-(O+L)),this.bottomLeftContentBox=m>0||B>0?vA(n.left+k+G,n.top+H,Math.max(0,m-(k+G)),B-(O+L),Ge.BOTTOM_LEFT):new zt(n.left+k+G,n.top+n.height-(O+L))}return e}(),Ge;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ge||(Ge={}));var vA=function(e,t,A,n,r){var i=4*((Math.sqrt(2)-1)/3),s=A*i,o=n*i,a=e+A,l=t+n;switch(r){case Ge.TOP_LEFT:return new lf(new zt(e,l),new zt(e,l-o),new zt(a-s,t),new zt(a,t));case Ge.TOP_RIGHT:return new lf(new zt(e,t),new zt(e+s,t),new zt(a,l-o),new zt(a,l));case Ge.BOTTOM_RIGHT:return new lf(new zt(a,t),new zt(a,t+o),new zt(e+s,l),new zt(e,l));case Ge.BOTTOM_LEFT:default:return new lf(new zt(a,l),new zt(a-s,l),new zt(e,t+o),new zt(e,t))}},yh=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},QS=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Ch=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},ES=function(){function e(t,A,n){this.offsetX=t,this.offsetY=A,this.matrix=n,this.type=0,this.target=6}return e}(),cf=function(){function e(t,A){this.path=t,this.target=A,this.type=1}return e}(),IS=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),SS=function(e){return e.type===0},ny=function(e){return e.type===1},LS=function(e){return e.type===2},J2=function(e,t){return e.length===t.length?e.some(function(A,n){return A===t[n]}):!1},kS=function(e,t,A,n,r){return e.map(function(i,s){switch(s){case 0:return i.add(t,A);case 1:return i.add(t+n,A);case 2:return i.add(t+n,A+r);case 3:return i.add(t,A+r)}return i})},ry=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),iy=function(){function e(t,A){if(this.container=t,this.parent=A,this.effects=[],this.curves=new US(this.container),this.container.styles.opacity<1&&this.effects.push(new IS(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new ES(n,r,i))}if(this.container.styles.overflowX!==0){var s=yh(this.curves),o=Ch(this.curves);J2(s,o)?this.effects.push(new cf(s,6)):(this.effects.push(new cf(s,2)),this.effects.push(new cf(o,4)))}}return e.prototype.getEffects=function(t){for(var A=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(a){return!ny(a)});if(A||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),A=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yh(n.curves),o=Ch(n.curves);J2(s,o)||r.unshift(new cf(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(a){return JA(a.target,t)})},e}(),Jp=function(e,t,A,n){e.container.elements.forEach(function(r){var i=JA(r.flags,4),s=JA(r.flags,2),o=new iy(r,e);JA(r.styles.display,2048)&&n.push(o);var a=JA(r.flags,8)?[]:n;if(i||s){var l=i||r.styles.isPositioned()?A:t,c=new ry(o);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var d=0;l.negativeZIndex.some(function(m,B){return u>m.element.container.styles.zIndex.order?(d=B,!1):d>0}),l.negativeZIndex.splice(d,0,c)}else if(u>0){var f=0;l.positiveZIndex.some(function(m,B){return u>=m.element.container.styles.zIndex.order?(f=B+1,!1):f>0}),l.positiveZIndex.splice(f,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Jp(o,c,i?c:A,a)}else r.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),Jp(o,t,A,a);JA(r.flags,8)&&sy(r,a)})},sy=function(e,t){for(var A=e instanceof zp?e.start:1,n=e instanceof zp?e.reversed:!1,r=0;r<t.length;r++){var i=t[r];i.container instanceof V5&&typeof i.container.value=="number"&&i.container.value!==0&&(A=i.container.value),i.listValue=Tc(A,i.container.styles.listStyleType,!0),A+=n?-1:1}},NS=function(e){var t=new iy(e,null),A=new ry(t),n=[];return Jp(t,A,A,n),sy(t.container,n),A},Z2=function(e,t){switch(t){case 0:return Cr(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Cr(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Cr(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Cr(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},DS=function(e,t){switch(t){case 0:return Cr(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Cr(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Cr(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Cr(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},HS=function(e,t){switch(t){case 0:return Cr(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Cr(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Cr(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Cr(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},MS=function(e,t){switch(t){case 0:return uf(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return uf(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return uf(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return uf(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},uf=function(e,t){var A=[];return br(e)?A.push(e.subdivide(.5,!1)):A.push(e),br(t)?A.push(t.subdivide(.5,!0)):A.push(t),A},Cr=function(e,t,A,n){var r=[];return br(e)?r.push(e.subdivide(.5,!1)):r.push(e),br(A)?r.push(A.subdivide(.5,!0)):r.push(A),br(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),br(t)?r.push(t.subdivide(.5,!1).reverse()):r.push(t),r},oy=function(e){var t=e.bounds,A=e.styles;return t.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},xh=function(e){var t=e.styles,A=e.bounds,n=dA(t.paddingLeft,A.width),r=dA(t.paddingRight,A.width),i=dA(t.paddingTop,A.width),s=dA(t.paddingBottom,A.width);return A.add(n+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+r),-(t.borderTopWidth+t.borderBottomWidth+i+s))},TS=function(e,t){return e===0?t.bounds:e===2?xh(t):oy(t)},OS=function(e,t){return e===0?t.bounds:e===2?xh(t):oy(t)},Sg=function(e,t,A){var n=TS(Da(e.styles.backgroundOrigin,t),e),r=OS(Da(e.styles.backgroundClip,t),e),i=PS(Da(e.styles.backgroundSize,t),A,n),s=i[0],o=i[1],a=Jl(Da(e.styles.backgroundPosition,t),n.width-s,n.height-o),l=RS(Da(e.styles.backgroundRepeat,t),a,i,n,r),c=Math.round(n.left+a[0]),u=Math.round(n.top+a[1]);return[l,c,u,s,o]},_a=function(e){return AA(e)&&e.value===ja.AUTO},ff=function(e){return typeof e=="number"},PS=function(e,t,A){var n=t[0],r=t[1],i=t[2],s=e[0],o=e[1];if(!s)return[0,0];if(WA(s)&&o&&WA(o))return[dA(s,A.width),dA(o,A.height)];var a=ff(i);if(AA(s)&&(s.value===ja.CONTAIN||s.value===ja.COVER)){if(ff(i)){var l=A.width/A.height;return l<i!=(s.value===ja.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var c=ff(n),u=ff(r),d=c||u;if(_a(s)&&(!o||_a(o))){if(c&&u)return[n,r];if(!a&&!d)return[A.width,A.height];if(d&&a){var f=c?n:r*i,m=u?r:n/i;return[f,m]}var B=c?n:A.width,v=u?r:A.height;return[B,v]}if(a){var b=0,C=0;return WA(s)?b=dA(s,A.width):WA(o)&&(C=dA(o,A.height)),_a(s)?b=C*i:(!o||_a(o))&&(C=b/i),[b,C]}var Q=null,_=null;if(WA(s)?Q=dA(s,A.width):o&&WA(o)&&(_=dA(o,A.height)),Q!==null&&(!o||_a(o))&&(_=c&&u?Q/n*r:A.height),_!==null&&_a(s)&&(Q=c&&u?_/r*n:A.width),Q!==null&&_!==null)return[Q,_];throw new Error("Unable to calculate background-size for element")},Da=function(e,t){var A=e[t];return typeof A>"u"?e[0]:A},RS=function(e,t,A,n,r){var i=t[0],s=t[1],o=A[0],a=A[1];switch(e){case 2:return[new zt(Math.round(n.left),Math.round(n.top+s)),new zt(Math.round(n.left+n.width),Math.round(n.top+s)),new zt(Math.round(n.left+n.width),Math.round(a+n.top+s)),new zt(Math.round(n.left),Math.round(a+n.top+s))];case 3:return[new zt(Math.round(n.left+i),Math.round(n.top)),new zt(Math.round(n.left+i+o),Math.round(n.top)),new zt(Math.round(n.left+i+o),Math.round(n.height+n.top)),new zt(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new zt(Math.round(n.left+i),Math.round(n.top+s)),new zt(Math.round(n.left+i+o),Math.round(n.top+s)),new zt(Math.round(n.left+i+o),Math.round(n.top+s+a)),new zt(Math.round(n.left+i),Math.round(n.top+s+a))];default:return[new zt(Math.round(r.left),Math.round(r.top)),new zt(Math.round(r.left+r.width),Math.round(r.top)),new zt(Math.round(r.left+r.width),Math.round(r.height+r.top)),new zt(Math.round(r.left),Math.round(r.height+r.top))]}},KS="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",tB="Hidden Text",VS=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,A){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=KS,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(tB)),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(tB)),n.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:o,middle:a}},e.prototype.getMetrics=function(t,A){var n=t+" "+A;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,A)),this._data[n]},e}(),ay=function(){function e(t,A){this.context=t,this.options=A}return e}(),jS=1e4,GS=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new VS(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t.prototype.applyEffects=function(A){for(var n=this;this._activeEffects.length;)this.popEffect();A.forEach(function(r){return n.applyEffect(r)})},t.prototype.applyEffect=function(A){this.ctx.save(),LS(A)&&(this.ctx.globalAlpha=A.opacity),SS(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),ny(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return Tn(this,void 0,void 0,function(){var n;return yn(this,function(r){switch(r.label){case 0:return n=A.element.container.styles,n.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(A){return Tn(this,void 0,void 0,function(){return yn(this,function(n){switch(n.label){case 0:if(JA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(A)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(A,n,r){var i=this;if(n===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r);else{var s=Z0(A.text);s.reduce(function(o,a){return i.ctx.fillText(a,o,A.bounds.top+r),o+i.ctx.measureText(a).width},A.bounds.left)}},t.prototype.createFontStyle=function(A){var n=A.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=XS(A.fontFamily).join(", "),i=Zc(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,n,A.fontWeight,i,r].join(" "),r,i]},t.prototype.renderTextNode=function(A,n){return Tn(this,void 0,void 0,function(){var r,i,s,o,a,l,c,u,d=this;return yn(this,function(f){return r=this.createFontStyle(n),i=r[0],s=r[1],o=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(s,o),l=a.baseline,c=a.middle,u=n.paintOrder,A.textBounds.forEach(function(m){u.forEach(function(B){switch(B){case 0:d.ctx.fillStyle=en(n.color),d.renderTextWithLetterSpacing(m,n.letterSpacing,l);var v=n.textShadow;v.length&&m.text.trim().length&&(v.slice(0).reverse().forEach(function(b){d.ctx.shadowColor=en(b.color),d.ctx.shadowOffsetX=b.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=b.offsetY.number*d.options.scale,d.ctx.shadowBlur=b.blur.number,d.renderTextWithLetterSpacing(m,n.letterSpacing,l)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),n.textDecorationLine.length&&(d.ctx.fillStyle=en(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(b){switch(b){case 1:d.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+l),m.bounds.width,1);break;case 2:d.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:d.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+c),m.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&m.text.trim().length&&(d.ctx.strokeStyle=en(n.webkitTextStrokeColor),d.ctx.lineWidth=n.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(A,n,r){if(r&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=xh(A),s=Ch(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return Tn(this,void 0,void 0,function(){var n,r,i,s,o,a,C,C,l,c,u,d,_,f,m,H,B,v,b,C,Q,_,H;return yn(this,function(W){switch(W.label){case 0:this.applyEffects(A.getEffects(4)),n=A.container,r=A.curves,i=n.styles,s=0,o=n.textNodes,W.label=1;case 1:return s<o.length?(a=o[s],[4,this.renderTextNode(a,i)]):[3,4];case 2:W.sent(),W.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof P5))return[3,8];W.label=5;case 5:return W.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return C=W.sent(),this.renderReplacedElement(n,r,C),[3,8];case 7:return W.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof R5&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof K5))return[3,12];W.label=9;case 9:return W.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return C=W.sent(),this.renderReplacedElement(n,r,C),[3,12];case 11:return W.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof W5&&n.tree?(l=new t(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:c=W.sent(),n.width&&n.height&&this.ctx.drawImage(c,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),W.label=14;case 14:if(n instanceof t1&&(u=Math.min(n.bounds.width,n.bounds.height),n.type===Bh?n.checked&&(this.ctx.save(),this.path([new zt(n.bounds.left+u*.39363,n.bounds.top+u*.79),new zt(n.bounds.left+u*.16,n.bounds.top+u*.5549),new zt(n.bounds.left+u*.27347,n.bounds.top+u*.44071),new zt(n.bounds.left+u*.39694,n.bounds.top+u*.5649),new zt(n.bounds.left+u*.72983,n.bounds.top+u*.23),new zt(n.bounds.left+u*.84,n.bounds.top+u*.34085),new zt(n.bounds.left+u*.39363,n.bounds.top+u*.79)]),this.ctx.fillStyle=en(R2),this.ctx.fill(),this.ctx.restore()):n.type===wh&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+u/2,n.bounds.top+u/2,u/4,0,Math.PI*2,!0),this.ctx.fillStyle=en(R2),this.ctx.fill(),this.ctx.restore())),WS(n)&&n.value.length){switch(d=this.createFontStyle(i),_=d[0],f=d[1],m=this.fontMetrics.getMetrics(_,f).baseline,this.ctx.font=_,this.ctx.fillStyle=en(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=$S(n.styles.textAlign),H=xh(n),B=0,n.styles.textAlign){case 1:B+=H.width/2;break;case 2:B+=H.width;break}v=H.add(B,0,0,-H.height/2+1),this.ctx.save(),this.path([new zt(H.left,H.top),new zt(H.left+H.width,H.top),new zt(H.left+H.width,H.top+H.height),new zt(H.left,H.top+H.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new wc(n.value,v),i.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!JA(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(b=n.styles.listStyleImage,b.type!==0)return[3,18];C=void 0,Q=b.url,W.label=15;case 15:return W.trys.push([15,17,,18]),[4,this.context.cache.match(Q)];case 16:return C=W.sent(),this.ctx.drawImage(C,n.bounds.left-(C.width+10),n.bounds.top),[3,18];case 17:return W.sent(),this.context.logger.error("Error loading list-style-image "+Q),[3,18];case 18:return[3,20];case 19:A.listValue&&n.styles.listStyleType!==-1&&(_=this.createFontStyle(i)[0],this.ctx.font=_,this.ctx.fillStyle=en(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",H=new ss(n.bounds.left,n.bounds.top+dA(n.styles.paddingTop,n.bounds.width),n.bounds.width,x2(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new wc(A.listValue,H),i.letterSpacing,x2(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),W.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(A){return Tn(this,void 0,void 0,function(){var n,r,b,i,s,b,o,a,b,l,c,b,u,d,b,f,m,b,B,v,b;return yn(this,function(C){switch(C.label){case 0:if(JA(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:C.sent(),n=0,r=A.negativeZIndex,C.label=2;case 2:return n<r.length?(b=r[n],[4,this.renderStack(b)]):[3,5];case 3:C.sent(),C.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:C.sent(),i=0,s=A.nonInlineLevel,C.label=7;case 7:return i<s.length?(b=s[i],[4,this.renderNode(b)]):[3,10];case 8:C.sent(),C.label=9;case 9:return i++,[3,7];case 10:o=0,a=A.nonPositionedFloats,C.label=11;case 11:return o<a.length?(b=a[o],[4,this.renderStack(b)]):[3,14];case 12:C.sent(),C.label=13;case 13:return o++,[3,11];case 14:l=0,c=A.nonPositionedInlineLevel,C.label=15;case 15:return l<c.length?(b=c[l],[4,this.renderStack(b)]):[3,18];case 16:C.sent(),C.label=17;case 17:return l++,[3,15];case 18:u=0,d=A.inlineLevel,C.label=19;case 19:return u<d.length?(b=d[u],[4,this.renderNode(b)]):[3,22];case 20:C.sent(),C.label=21;case 21:return u++,[3,19];case 22:f=0,m=A.zeroOrAutoZIndexOrTransformedOrOpacity,C.label=23;case 23:return f<m.length?(b=m[f],[4,this.renderStack(b)]):[3,26];case 24:C.sent(),C.label=25;case 25:return f++,[3,23];case 26:B=0,v=A.positiveZIndex,C.label=27;case 27:return B<v.length?(b=v[B],[4,this.renderStack(b)]):[3,30];case 28:C.sent(),C.label=29;case 29:return B++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(A){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(A.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},t.prototype.formatPath=function(A){var n=this;A.forEach(function(r,i){var s=br(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),br(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},t.prototype.renderRepeat=function(A,n,r,i){this.path(A),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},t.prototype.resizeImage=function(A,n,r){var i;if(A.width===n&&A.height===r)return A;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,o=s.createElement("canvas");o.width=Math.max(1,n),o.height=Math.max(1,r);var a=o.getContext("2d");return a.drawImage(A,0,0,A.width,A.height,0,0,n,r),o},t.prototype.renderBackgroundImage=function(A){return Tn(this,void 0,void 0,function(){var n,r,i,s,o,a;return yn(this,function(l){switch(l.label){case 0:n=A.styles.backgroundImage.length-1,r=function(c){var u,d,f,V,lt,ct,G,q,O,m,V,lt,ct,G,q,B,v,b,C,Q,_,H,W,R,O,k,V,F,L,G,q,ft,lt,ct,at,st,Z,j,U,N,tt,et;return yn(this,function(At){switch(At.label){case 0:if(c.type!==0)return[3,5];u=void 0,d=c.url,At.label=1;case 1:return At.trys.push([1,3,,4]),[4,i.context.cache.match(d)];case 2:return u=At.sent(),[3,4];case 3:return At.sent(),i.context.logger.error("Error loading background-image "+d),[3,4];case 4:return u&&(f=Sg(A,n,[u.width,u.height,u.width/u.height]),V=f[0],lt=f[1],ct=f[2],G=f[3],q=f[4],O=i.ctx.createPattern(i.resizeImage(u,G,q),"repeat"),i.renderRepeat(V,O,lt,ct)),[3,6];case 5:SQ(c)?(m=Sg(A,n,[null,null,null]),V=m[0],lt=m[1],ct=m[2],G=m[3],q=m[4],B=_Q(c.angle,G,q),v=B[0],b=B[1],C=B[2],Q=B[3],_=B[4],H=document.createElement("canvas"),H.width=G,H.height=q,W=H.getContext("2d"),R=W.createLinearGradient(b,Q,C,_),y2(c.stops,v).forEach(function(z){return R.addColorStop(z.stop,en(z.color))}),W.fillStyle=R,W.fillRect(0,0,G,q),G>0&&q>0&&(O=i.ctx.createPattern(H,"repeat"),i.renderRepeat(V,O,lt,ct))):LQ(c)&&(k=Sg(A,n,[null,null,null]),V=k[0],F=k[1],L=k[2],G=k[3],q=k[4],ft=c.position.length===0?[X0]:c.position,lt=dA(ft[0],G),ct=dA(ft[ft.length-1],q),at=UQ(c,lt,ct,G,q),st=at[0],Z=at[1],st>0&&Z>0&&(j=i.ctx.createRadialGradient(F+lt,L+ct,0,F+lt,L+ct,st),y2(c.stops,st*2).forEach(function(z){return j.addColorStop(z.stop,en(z.color))}),i.path(V),i.ctx.fillStyle=j,st!==Z?(U=A.bounds.left+.5*A.bounds.width,N=A.bounds.top+.5*A.bounds.height,tt=Z/st,et=1/tt,i.ctx.save(),i.ctx.translate(U,N),i.ctx.transform(1,0,0,tt,0,0),i.ctx.translate(-U,-N),i.ctx.fillRect(F,et*(L-N)+N,G,q*et),i.ctx.restore()):i.ctx.fill())),At.label=6;case 6:return n--,[2]}})},i=this,s=0,o=A.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return s<o.length?(a=o[s],[5,r(a)]):[3,4];case 2:l.sent(),l.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(A,n,r){return Tn(this,void 0,void 0,function(){return yn(this,function(i){return this.path(Z2(r,n)),this.ctx.fillStyle=en(A),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(A,n,r,i){return Tn(this,void 0,void 0,function(){var s,o;return yn(this,function(a){switch(a.label){case 0:return n<3?[4,this.renderSolidBorder(A,r,i)]:[3,2];case 1:return a.sent(),[2];case 2:return s=DS(i,r),this.path(s),this.ctx.fillStyle=en(A),this.ctx.fill(),o=HS(i,r),this.path(o),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(A){return Tn(this,void 0,void 0,function(){var n,r,i,s,o,a,l,c,u=this;return yn(this,function(d){switch(d.label){case 0:return this.applyEffects(A.getEffects(2)),n=A.container.styles,r=!js(n.backgroundColor)||n.backgroundImage.length,i=[{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}],s=zS(Da(n.backgroundClip,0),A.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),js(n.backgroundColor)||(this.ctx.fillStyle=en(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:d.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(f){u.ctx.save();var m=yh(A.curves),B=f.inset?0:jS,v=kS(m,-B+(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?(u.path(m),u.ctx.clip(),u.mask(v)):(u.mask(m),u.ctx.clip(),u.path(v)),u.ctx.shadowOffsetX=f.offsetX.number+B,u.ctx.shadowOffsetY=f.offsetY.number,u.ctx.shadowColor=en(f.color),u.ctx.shadowBlur=f.blur.number,u.ctx.fillStyle=f.inset?en(f.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),d.label=2;case 2:o=0,a=0,l=i,d.label=3;case 3:return a<l.length?(c=l[a],c.style!==0&&!js(c.color)&&c.width>0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,2)]:[3,11]):[3,13];case 4:return d.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,3)];case 6:return d.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,A.curves)];case 8:return d.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,A.curves)];case 10:d.sent(),d.label=11;case 11:o++,d.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(A,n,r,i,s){return Tn(this,void 0,void 0,function(){var o,a,l,c,u,d,f,m,B,v,b,C,Q,_,H,W,H,W;return yn(this,function(R){return this.ctx.save(),o=MS(i,r),a=Z2(i,r),s===2&&(this.path(a),this.ctx.clip()),br(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),br(a[1])?(u=a[1].end.x,d=a[1].end.y):(u=a[1].x,d=a[1].y),r===0||r===2?f=Math.abs(l-u):f=Math.abs(c-d),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(a.slice(0,2)),m=n<3?n*3:n*2,B=n<3?n*2:n,s===3&&(m=n,B=n),v=!0,f<=m*2?v=!1:f<=m*2+B?(b=f/(2*m+B),m*=b,B*=b):(C=Math.floor((f+B)/(m+B)),Q=(f-C*m)/(C-1),_=(f-(C+1)*m)/C,B=_<=0||Math.abs(B-Q)<Math.abs(B-_)?Q:_),v&&(s===3?this.ctx.setLineDash([0,m+B]):this.ctx.setLineDash([m,B])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=en(A),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(br(a[0])&&(H=a[3],W=a[0],this.ctx.beginPath(),this.formatPath([new zt(H.end.x,H.end.y),new zt(W.start.x,W.start.y)]),this.ctx.stroke()),br(a[1])&&(H=a[1],W=a[2],this.ctx.beginPath(),this.formatPath([new zt(H.end.x,H.end.y),new zt(W.start.x,W.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(A){return Tn(this,void 0,void 0,function(){var n;return yn(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=en(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=NS(A),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(ay),WS=function(e){return e instanceof G5||e instanceof j5?!0:e instanceof t1&&e.type!==wh&&e.type!==Bh},zS=function(e,t){switch(e){case 0:return yh(t);case 2:return QS(t);case 1:default:return Ch(t)}},$S=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},qS=["-apple-system","system-ui"],XS=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return qS.indexOf(t)===-1}):e},YS=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t.prototype.render=function(A){return Tn(this,void 0,void 0,function(){var n,r;return yn(this,function(i){switch(i.label){case 0:return n=Wp(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,JS(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=en(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(ay),JS=function(e){return new Promise(function(t,A){var n=new Image;n.onload=function(){t(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},ZS=function(){function e(t){var A=t.id,n=t.enabled;this.id=A,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Vu([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Vu([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Vu([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Vu([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),tL=function(){function e(t,A){var n;this.windowBounds=A,this.instanceName="#"+e.instanceCount++,this.logger=new ZS({id:this.instanceName,enabled:t.logging}),this.cache=(n=t.cache)!==null&&n!==void 0?n:new vS(this,t)}return e.instanceCount=1,e}(),eL=function(e,t){return t===void 0&&(t={}),AL(e,t)};typeof window<"u"&&Ay.setContext(window);var AL=function(e,t){return Tn(void 0,void 0,void 0,function(){var A,n,r,i,s,o,a,l,c,u,d,f,m,B,v,b,C,Q,_,H,R,W,R,O,k,V,F,L,G,q,ft,lt,ct,at,st,Z,j,U,N,tt;return yn(this,function(et){switch(et.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=e.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(n=A.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(O=t.allowTaint)!==null&&O!==void 0?O:!1,imageTimeout:(k=t.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:t.proxy,useCORS:(V=t.useCORS)!==null&&V!==void 0?V:!1},i=Sp({logging:(F=t.logging)!==null&&F!==void 0?F:!0,cache:t.cache},r),s={windowWidth:(L=t.windowWidth)!==null&&L!==void 0?L:n.innerWidth,windowHeight:(G=t.windowHeight)!==null&&G!==void 0?G:n.innerHeight,scrollX:(q=t.scrollX)!==null&&q!==void 0?q:n.pageXOffset,scrollY:(ft=t.scrollY)!==null&&ft!==void 0?ft:n.pageYOffset},o=new ss(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),a=new tL(i,o),l=(lt=t.foreignObjectRendering)!==null&<!==void 0?lt:!1,c={allowTaint:(ct=t.allowTaint)!==null&&ct!==void 0?ct:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:l,copyStyles:l},a.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),u=new X2(a,e,c),d=u.clonedReferenceElement,d?[4,u.toIFrame(A,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=et.sent(),m=e1(d)||nS(d)?kU(d.ownerDocument):Yh(a,d),B=m.width,v=m.height,b=m.left,C=m.top,Q=nL(a,d,t.backgroundColor),_={canvas:t.canvas,backgroundColor:Q,scale:(st=(at=t.scale)!==null&&at!==void 0?at:n.devicePixelRatio)!==null&&st!==void 0?st:1,x:((Z=t.x)!==null&&Z!==void 0?Z:0)+b,y:((j=t.y)!==null&&j!==void 0?j:0)+C,width:(U=t.width)!==null&&U!==void 0?U:Math.ceil(B),height:(N=t.height)!==null&&N!==void 0?N:Math.ceil(v)},l?(a.logger.debug("Document cloned, using foreign object rendering"),R=new YS(a,_),[4,R.render(d)]):[3,3];case 2:return H=et.sent(),[3,5];case 3:return a.logger.debug("Document cloned, element located at "+b+","+C+" with size "+B+"x"+v+" using computed rendering"),a.logger.debug("Starting DOM parsing"),W=$5(a,d),Q===W.styles.backgroundColor&&(W.styles.backgroundColor=As.TRANSPARENT),a.logger.debug("Starting renderer for element at "+_.x+","+_.y+" with size "+_.width+"x"+_.height),R=new GS(a,_),[4,R.render(W)];case 4:H=et.sent(),et.label=5;case 5:return(!((tt=t.removeContainer)!==null&&tt!==void 0)||tt)&&(X2.destroy(f)||a.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),a.logger.debug("Finished rendering"),[2,H]}})})},nL=function(e,t,A){var n=t.ownerDocument,r=n.documentElement?mc(e,getComputedStyle(n.documentElement).backgroundColor):As.TRANSPARENT,i=n.body?mc(e,getComputedStyle(n.body).backgroundColor):As.TRANSPARENT,s=typeof A=="string"?mc(e,A):A===null?As.TRANSPARENT:4294967295;return t===n.documentElement?js(r)?js(i)?s:i:r:s};const rL=Object.freeze(Object.defineProperty({__proto__:null,default:eL},Symbol.toStringTag,{value:"Module"}));function Ze(e){"@babel/helpers - typeof";return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ze(e)}var Kr=Uint8Array,ur=Uint16Array,A1=Int32Array,n1=new Kr([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]),r1=new Kr([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]),eB=new Kr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ly=function(e,t){for(var A=new ur(31),n=0;n<31;++n)A[n]=t+=1<<e[n-1];for(var r=new A1(A[30]),n=1;n<30;++n)for(var i=A[n];i<A[n+1];++i)r[i]=i-A[n]<<5|n;return{b:A,r}},cy=ly(n1,2),iL=cy.b,Zp=cy.r;iL[28]=258,Zp[258]=28;var sL=ly(r1,0),AB=sL.r,t0=new ur(32768);for(var mA=0;mA<32768;++mA){var Fs=(mA&43690)>>1|(mA&21845)<<1;Fs=(Fs&52428)>>2|(Fs&13107)<<2,Fs=(Fs&61680)>>4|(Fs&3855)<<4,t0[mA]=((Fs&65280)>>8|(Fs&255)<<8)>>1}var bc=function(e,t,A){for(var n=e.length,r=0,i=new ur(t);r<n;++r)e[r]&&++i[e[r]-1];var s=new ur(t);for(r=1;r<t;++r)s[r]=s[r-1]+i[r-1]<<1;var o;if(A){o=new ur(1<<t);var a=15-t;for(r=0;r<n;++r)if(e[r])for(var l=r<<4|e[r],c=t-e[r],u=s[e[r]-1]++<<c,d=u|(1<<c)-1;u<=d;++u)o[t0[u]>>a]=l}else for(o=new ur(n),r=0;r<n;++r)e[r]&&(o[r]=t0[s[e[r]-1]++]>>15-e[r]);return o},jo=new Kr(288);for(var mA=0;mA<144;++mA)jo[mA]=8;for(var mA=144;mA<256;++mA)jo[mA]=9;for(var mA=256;mA<280;++mA)jo[mA]=7;for(var mA=280;mA<288;++mA)jo[mA]=8;var Fh=new Kr(32);for(var mA=0;mA<32;++mA)Fh[mA]=5;var oL=bc(jo,9,0),aL=bc(Fh,5,0),uy=function(e){return(e+7)/8|0},lL=function(e,t,A){return(A==null||A>e.length)&&(A=e.length),new Kr(e.subarray(t,A))},Ri=function(e,t,A){A<<=t&7;var n=t/8|0;e[n]|=A,e[n+1]|=A>>8},Pl=function(e,t,A){A<<=t&7;var n=t/8|0;e[n]|=A,e[n+1]|=A>>8,e[n+2]|=A>>16},Lg=function(e,t){for(var A=[],n=0;n<e.length;++n)e[n]&&A.push({s:n,f:e[n]});var r=A.length,i=A.slice();if(!r)return{t:hy,l:0};if(r==1){var s=new Kr(A[0].s+1);return s[A[0].s]=1,{t:s,l:1}}A.sort(function(H,W){return H.f-W.f}),A.push({s:-1,f:25001});var o=A[0],a=A[1],l=0,c=1,u=2;for(A[0]={s:-1,f:o.f+a.f,l:o,r:a};c!=r-1;)o=A[A[l].f<A[u].f?l++:u++],a=A[l!=c&&A[l].f<A[u].f?l++:u++],A[c++]={s:-1,f:o.f+a.f,l:o,r:a};for(var d=i[0].s,n=1;n<r;++n)i[n].s>d&&(d=i[n].s);var f=new ur(d+1),m=e0(A[c-1],f,0);if(m>t){var n=0,B=0,v=m-t,b=1<<v;for(i.sort(function(W,R){return f[R.s]-f[W.s]||W.f-R.f});n<r;++n){var C=i[n].s;if(f[C]>t)B+=b-(1<<m-f[C]),f[C]=t;else break}for(B>>=v;B>0;){var Q=i[n].s;f[Q]<t?B-=1<<t-f[Q]++-1:++n}for(;n>=0&&B;--n){var _=i[n].s;f[_]==t&&(--f[_],++B)}m=t}return{t:new Kr(f),l:m}},e0=function(e,t,A){return e.s==-1?Math.max(e0(e.l,t,A+1),e0(e.r,t,A+1)):t[e.s]=A},nB=function(e){for(var t=e.length;t&&!e[--t];);for(var A=new ur(++t),n=0,r=e[0],i=1,s=function(a){A[n++]=a},o=1;o<=t;++o)if(e[o]==r&&o!=t)++i;else{if(!r&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(r),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(r);i=1,r=e[o]}return{c:A.subarray(0,n),n:t}},Rl=function(e,t){for(var A=0,n=0;n<t.length;++n)A+=e[n]*t[n];return A},fy=function(e,t,A){var n=A.length,r=uy(t+2);e[r]=n&255,e[r+1]=n>>8,e[r+2]=e[r]^255,e[r+3]=e[r+1]^255;for(var i=0;i<n;++i)e[r+i+4]=A[i];return(r+4+n)*8},rB=function(e,t,A,n,r,i,s,o,a,l,c){Ri(t,c++,A),++r[256];for(var u=Lg(r,15),d=u.t,f=u.l,m=Lg(i,15),B=m.t,v=m.l,b=nB(d),C=b.c,Q=b.n,_=nB(B),H=_.c,W=_.n,R=new ur(19),O=0;O<C.length;++O)++R[C[O]&31];for(var O=0;O<H.length;++O)++R[H[O]&31];for(var k=Lg(R,7),V=k.t,F=k.l,L=19;L>4&&!V[eB[L-1]];--L);var G=l+5<<3,q=Rl(r,jo)+Rl(i,Fh)+s,ft=Rl(r,d)+Rl(i,B)+s+14+3*L+Rl(R,V)+2*R[16]+3*R[17]+7*R[18];if(a>=0&&G<=q&&G<=ft)return fy(t,c,e.subarray(a,a+l));var lt,ct,at,st;if(Ri(t,c,1+(ft<q)),c+=2,ft<q){lt=bc(d,f,0),ct=d,at=bc(B,v,0),st=B;var Z=bc(V,F,0);Ri(t,c,Q-257),Ri(t,c+5,W-1),Ri(t,c+10,L-4),c+=14;for(var O=0;O<L;++O)Ri(t,c+3*O,V[eB[O]]);c+=3*L;for(var j=[C,H],U=0;U<2;++U)for(var N=j[U],O=0;O<N.length;++O){var tt=N[O]&31;Ri(t,c,Z[tt]),c+=V[tt],tt>15&&(Ri(t,c,N[O]>>5&127),c+=N[O]>>12)}}else lt=oL,ct=jo,at=aL,st=Fh;for(var O=0;O<o;++O){var et=n[O];if(et>255){var tt=et>>18&31;Pl(t,c,lt[tt+257]),c+=ct[tt+257],tt>7&&(Ri(t,c,et>>23&31),c+=n1[tt]);var At=et&31;Pl(t,c,at[At]),c+=st[At],At>3&&(Pl(t,c,et>>5&8191),c+=r1[At])}else Pl(t,c,lt[et]),c+=ct[et]}return Pl(t,c,lt[256]),c+ct[256]},cL=new A1([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),hy=new Kr(0),uL=function(e,t,A,n,r,i){var s=i.z||e.length,o=new Kr(n+s+5*(1+Math.ceil(s/7e3))+r),a=o.subarray(n,o.length-r),l=i.l,c=(i.r||0)&7;if(t){c&&(a[0]=i.r>>3);for(var u=cL[t-1],d=u>>13,f=u&8191,m=(1<<A)-1,B=i.p||new ur(32768),v=i.h||new ur(m+1),b=Math.ceil(A/3),C=2*b,Q=function(rt){return(e[rt]^e[rt+1]<<b^e[rt+2]<<C)&m},_=new A1(25e3),H=new ur(288),W=new ur(32),R=0,O=0,k=i.i||0,V=0,F=i.w||0,L=0;k+2<s;++k){var G=Q(k),q=k&32767,ft=v[G];if(B[q]=ft,v[G]=q,F<=k){var lt=s-k;if((R>7e3||V>24576)&&(lt>423||!l)){c=rB(e,a,0,_,H,W,O,V,L,k-L,c),V=R=O=0,L=k;for(var ct=0;ct<286;++ct)H[ct]=0;for(var ct=0;ct<30;++ct)W[ct]=0}var at=2,st=0,Z=f,j=q-ft&32767;if(lt>2&&G==Q(k-j))for(var U=Math.min(d,lt)-1,N=Math.min(32767,k),tt=Math.min(258,lt);j<=N&&--Z&&q!=ft;){if(e[k+at]==e[k+at-j]){for(var et=0;et<tt&&e[k+et]==e[k+et-j];++et);if(et>at){if(at=et,st=j,et>U)break;for(var At=Math.min(j,et-2),z=0,ct=0;ct<At;++ct){var nt=k-j+ct&32767,ot=B[nt],wt=nt-ot&32767;wt>z&&(z=wt,ft=nt)}}}q=ft,ft=B[q],j+=q-ft&32767}if(st){_[V++]=268435456|Zp[at]<<18|AB[st];var _t=Zp[at]&31,P=AB[st]&31;O+=n1[_t]+r1[P],++H[257+_t],++W[P],F=k+at,++R}else _[V++]=e[k],++H[e[k]]}}for(k=Math.max(k,F);k<s;++k)_[V++]=e[k],++H[e[k]];c=rB(e,a,l,_,H,W,O,V,L,k-L,c),l||(i.r=c&7|a[c/8|0]<<3,c-=7,i.h=v,i.p=B,i.i=k,i.w=F)}else{for(var k=i.w||0;k<s+l;k+=65535){var $=k+65535;$>=s&&(a[c/8|0]=l,$=s),c=fy(a,c+1,e.subarray(k,$))}i.i=s}return lL(o,0,n+uy(c)+r)},dy=function(){var e=1,t=0;return{p:function(A){for(var n=e,r=t,i=A.length|0,s=0;s!=i;){for(var o=Math.min(s+2655,i);s<o;++s)r+=n+=A[s];n=(n&65535)+15*(n>>16),r=(r&65535)+15*(r>>16)}e=n,t=r},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},fL=function(e,t,A,n,r){if(!r&&(r={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),s=new Kr(i.length+e.length);s.set(i),s.set(e,i.length),e=s,r.w=i.length}return uL(e,t.level==null?6:t.level,t.mem==null?r.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,A,n,r)},gy=function(e,t,A){for(;A;++t)e[t]=A,A>>>=8},hL=function(e,t){var A=t.level,n=A==0?0:A<6?1:A==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var r=dy();r.p(t.dictionary),gy(e,2,r.d())}};function A0(e,t){t||(t={});var A=dy();A.p(e);var n=fL(e,t,t.dictionary?6:2,4);return hL(n,t),gy(n,n.length-4,A.d()),n}var dL=typeof TextDecoder<"u"&&new TextDecoder,gL=0;try{dL.decode(hy,{stream:!0}),gL=1}catch{}function pL(e){if(Array.isArray(e))return e}function mL(e,t){var A=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(A!=null){var n,r,i,s,o=[],a=!0,l=!1;try{if(i=(A=A.call(e)).next,t!==0)for(;!(a=(n=i.call(A)).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(c){l=!0,r=c}finally{try{if(!a&&A.return!=null&&(s=A.return(),Object(s)!==s))return}finally{if(l)throw r}}return o}}function iB(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,n=Array(t);A<t;A++)n[A]=e[A];return n}function BL(e,t){if(e){if(typeof e=="string")return iB(e,t);var A={}.toString.call(e).slice(8,-1);return A==="Object"&&e.constructor&&(A=e.constructor.name),A==="Map"||A==="Set"?Array.from(e):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?iB(e,t):void 0}}function wL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sB(e,t){return pL(e)||mL(e,t)||BL(e,t)||wL()}function oB(e,t="utf8"){return new TextDecoder(t).decode(e)}const vL=new TextEncoder;function bL(e){return vL.encode(e)}const yL=1024*8,CL=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),kg={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class i1{constructor(t=yL,A={}){Nt(this,"buffer");Nt(this,"byteLength");Nt(this,"byteOffset");Nt(this,"length");Nt(this,"offset");Nt(this,"lastWrittenByte");Nt(this,"littleEndian");Nt(this,"_data");Nt(this,"_mark");Nt(this,"_marks");let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const r=A.offset?A.offset>>>0:0,i=t.byteLength-r;let s=r;(ArrayBuffer.isView(t)||t instanceof i1)&&(t.byteLength!==t.buffer.byteLength&&(s=t.byteOffset+r),t=t.buffer),n?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,i),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const n=(this.offset+t)*2,r=new Uint8Array(n);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,A){const n=kg[A].BYTES_PER_ELEMENT*t,r=this.byteOffset+this.offset,i=this.buffer.slice(r,r+n);if(this.littleEndian===CL&&A!=="uint8"&&A!=="int8"){const o=new Uint8Array(this.buffer.slice(r,r+n));o.reverse();const a=new kg[A](o.buffer);return this.offset+=n,a.reverse(),a}const s=new kg[A](i);return this.offset+=n,s}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let A="";for(let n=0;n<t;n++)A+=this.readChar();return A}readUtf8(t=1){return oB(this.readBytes(t))}decodeText(t=1,A="utf8"){return oB(this.readBytes(t),A)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let A=0;A<t.length;A++)this._data.setUint8(this.offset++,t[A]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let A=0;A<t.length;A++)this.writeUint8(t.charCodeAt(A));return this}writeUtf8(t){return this.writeBytes(bL(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function al(e){let t=e.length;for(;--t>=0;)e[t]=0}const xL=3,FL=258,py=29,_L=256,UL=_L+1+py,my=30,QL=512,EL=new Array((UL+2)*2);al(EL);const IL=new Array(my*2);al(IL);const SL=new Array(QL);al(SL);const LL=new Array(FL-xL+1);al(LL);const kL=new Array(py);al(kL);const NL=new Array(my);al(NL);const DL=(e,t,A,n)=>{let r=e&65535|0,i=e>>>16&65535|0,s=0;for(;A!==0;){s=A>2e3?2e3:A,A-=s;do r=r+t[n++]|0,i=i+r|0;while(--s);r%=65521,i%=65521}return r|i<<16|0};var n0=DL;const HL=()=>{let e,t=[];for(var A=0;A<256;A++){e=A;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[A]=e}return t},ML=new Uint32Array(HL()),TL=(e,t,A,n)=>{const r=ML,i=n+A;e^=-1;for(let s=n;s<i;s++)e=e>>>8^r[(e^t[s])&255];return e^-1};var ri=TL,r0={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},By={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const OL=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var PL=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const A=t.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(const n in A)OL(A,n)&&(e[n]=A[n])}}return e},RL=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;const A=new Uint8Array(t);for(let n=0,r=0,i=e.length;n<i;n++){let s=e[n];A.set(s,r),r+=s.length}return A},wy={assign:PL,flattenChunks:RL};let vy=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{vy=!1}const Oc=new Uint8Array(256);for(let e=0;e<256;e++)Oc[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Oc[254]=Oc[254]=1;var KL=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,A,n,r,i,s=e.length,o=0;for(r=0;r<s;r++)A=e.charCodeAt(r),(A&64512)===55296&&r+1<s&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(A=65536+(A-55296<<10)+(n-56320),r++)),o+=A<128?1:A<2048?2:A<65536?3:4;for(t=new Uint8Array(o),i=0,r=0;i<o;r++)A=e.charCodeAt(r),(A&64512)===55296&&r+1<s&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(A=65536+(A-55296<<10)+(n-56320),r++)),A<128?t[i++]=A:A<2048?(t[i++]=192|A>>>6,t[i++]=128|A&63):A<65536?(t[i++]=224|A>>>12,t[i++]=128|A>>>6&63,t[i++]=128|A&63):(t[i++]=240|A>>>18,t[i++]=128|A>>>12&63,t[i++]=128|A>>>6&63,t[i++]=128|A&63);return t};const VL=(e,t)=>{if(t<65534&&e.subarray&&vy)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let A="";for(let n=0;n<t;n++)A+=String.fromCharCode(e[n]);return A};var jL=(e,t)=>{const A=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,r;const i=new Array(A*2);for(r=0,n=0;n<A;){let s=e[n++];if(s<128){i[r++]=s;continue}let o=Oc[s];if(o>4){i[r++]=65533,n+=o-1;continue}for(s&=o===2?31:o===3?15:7;o>1&&n<A;)s=s<<6|e[n++]&63,o--;if(o>1){i[r++]=65533;continue}s<65536?i[r++]=s:(s-=65536,i[r++]=55296|s>>10&1023,i[r++]=56320|s&1023)}return VL(i,r)},GL=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let A=t-1;for(;A>=0&&(e[A]&192)===128;)A--;return A<0||A===0?t:A+Oc[e[A]]>t?A:t},i0={string2buf:KL,buf2string:jL,utf8border:GL};function WL(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zL=WL;const hf=16209,$L=16191;var qL=function(t,A){let n,r,i,s,o,a,l,c,u,d,f,m,B,v,b,C,Q,_,H,W,R,O,k,V;const F=t.state;n=t.next_in,k=t.input,r=n+(t.avail_in-5),i=t.next_out,V=t.output,s=i-(A-t.avail_out),o=i+(t.avail_out-257),a=F.dmax,l=F.wsize,c=F.whave,u=F.wnext,d=F.window,f=F.hold,m=F.bits,B=F.lencode,v=F.distcode,b=(1<<F.lenbits)-1,C=(1<<F.distbits)-1;t:do{m<15&&(f+=k[n++]<<m,m+=8,f+=k[n++]<<m,m+=8),Q=B[f&b];e:for(;;){if(_=Q>>>24,f>>>=_,m-=_,_=Q>>>16&255,_===0)V[i++]=Q&65535;else if(_&16){H=Q&65535,_&=15,_&&(m<_&&(f+=k[n++]<<m,m+=8),H+=f&(1<<_)-1,f>>>=_,m-=_),m<15&&(f+=k[n++]<<m,m+=8,f+=k[n++]<<m,m+=8),Q=v[f&C];A:for(;;){if(_=Q>>>24,f>>>=_,m-=_,_=Q>>>16&255,_&16){if(W=Q&65535,_&=15,m<_&&(f+=k[n++]<<m,m+=8,m<_&&(f+=k[n++]<<m,m+=8)),W+=f&(1<<_)-1,W>a){t.msg="invalid distance too far back",F.mode=hf;break t}if(f>>>=_,m-=_,_=i-s,W>_){if(_=W-_,_>c&&F.sane){t.msg="invalid distance too far back",F.mode=hf;break t}if(R=0,O=d,u===0){if(R+=l-_,_<H){H-=_;do V[i++]=d[R++];while(--_);R=i-W,O=V}}else if(u<_){if(R+=l+u-_,_-=u,_<H){H-=_;do V[i++]=d[R++];while(--_);if(R=0,u<H){_=u,H-=_;do V[i++]=d[R++];while(--_);R=i-W,O=V}}}else if(R+=u-_,_<H){H-=_;do V[i++]=d[R++];while(--_);R=i-W,O=V}for(;H>2;)V[i++]=O[R++],V[i++]=O[R++],V[i++]=O[R++],H-=3;H&&(V[i++]=O[R++],H>1&&(V[i++]=O[R++]))}else{R=i-W;do V[i++]=V[R++],V[i++]=V[R++],V[i++]=V[R++],H-=3;while(H>2);H&&(V[i++]=V[R++],H>1&&(V[i++]=V[R++]))}}else if(_&64){t.msg="invalid distance code",F.mode=hf;break t}else{Q=v[(Q&65535)+(f&(1<<_)-1)];continue A}break}}else if(_&64)if(_&32){F.mode=$L;break t}else{t.msg="invalid literal/length code",F.mode=hf;break t}else{Q=B[(Q&65535)+(f&(1<<_)-1)];continue e}break}}while(n<r&&i<o);H=m>>3,n-=H,m-=H<<3,f&=(1<<m)-1,t.next_in=n,t.next_out=i,t.avail_in=n<r?5+(r-n):5-(n-r),t.avail_out=i<o?257+(o-i):257-(i-o),F.hold=f,F.bits=m};const Ua=15,aB=852,lB=592,cB=0,Ng=1,uB=2,XL=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),YL=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),JL=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ZL=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),t6=(e,t,A,n,r,i,s,o)=>{const a=o.bits;let l=0,c=0,u=0,d=0,f=0,m=0,B=0,v=0,b=0,C=0,Q,_,H,W,R,O=null,k;const V=new Uint16Array(Ua+1),F=new Uint16Array(Ua+1);let L=null,G,q,ft;for(l=0;l<=Ua;l++)V[l]=0;for(c=0;c<n;c++)V[t[A+c]]++;for(f=a,d=Ua;d>=1&&V[d]===0;d--);if(f>d&&(f=d),d===0)return r[i++]=1<<24|64<<16|0,r[i++]=1<<24|64<<16|0,o.bits=1,0;for(u=1;u<d&&V[u]===0;u++);for(f<u&&(f=u),v=1,l=1;l<=Ua;l++)if(v<<=1,v-=V[l],v<0)return-1;if(v>0&&(e===cB||d!==1))return-1;for(F[1]=0,l=1;l<Ua;l++)F[l+1]=F[l]+V[l];for(c=0;c<n;c++)t[A+c]!==0&&(s[F[t[A+c]]++]=c);if(e===cB?(O=L=s,k=20):e===Ng?(O=XL,L=YL,k=257):(O=JL,L=ZL,k=0),C=0,c=0,l=u,R=i,m=f,B=0,H=-1,b=1<<f,W=b-1,e===Ng&&b>aB||e===uB&&b>lB)return 1;for(;;){G=l-B,s[c]+1<k?(q=0,ft=s[c]):s[c]>=k?(q=L[s[c]-k],ft=O[s[c]-k]):(q=96,ft=0),Q=1<<l-B,_=1<<m,u=_;do _-=Q,r[R+(C>>B)+_]=G<<24|q<<16|ft|0;while(_!==0);for(Q=1<<l-1;C&Q;)Q>>=1;if(Q!==0?(C&=Q-1,C+=Q):C=0,c++,--V[l]===0){if(l===d)break;l=t[A+s[c]]}if(l>f&&(C&W)!==H){for(B===0&&(B=f),R+=u,m=l-B,v=1<<m;m+B<d&&(v-=V[m+B],!(v<=0));)m++,v<<=1;if(b+=1<<m,e===Ng&&b>aB||e===uB&&b>lB)return 1;H=C&W,r[H]=f<<24|m<<16|R-i|0}}return C!==0&&(r[R+C]=l-B<<24|64<<16|0),o.bits=f,0};var yc=t6;const e6=0,by=1,yy=2,{Z_FINISH:fB,Z_BLOCK:A6,Z_TREES:df,Z_OK:Go,Z_STREAM_END:n6,Z_NEED_DICT:r6,Z_STREAM_ERROR:_r,Z_DATA_ERROR:Cy,Z_MEM_ERROR:xy,Z_BUF_ERROR:i6,Z_DEFLATED:hB}=By,od=16180,dB=16181,gB=16182,pB=16183,mB=16184,BB=16185,wB=16186,vB=16187,bB=16188,yB=16189,_h=16190,Ki=16191,Dg=16192,CB=16193,Hg=16194,xB=16195,FB=16196,_B=16197,UB=16198,gf=16199,pf=16200,QB=16201,EB=16202,IB=16203,SB=16204,LB=16205,Mg=16206,kB=16207,NB=16208,bA=16209,Fy=16210,_y=16211,s6=852,o6=592,a6=15,l6=a6,DB=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function c6(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const qo=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<od||t.mode>_y?1:0},Uy=e=>{if(qo(e))return _r;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=od,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(s6),t.distcode=t.distdyn=new Int32Array(o6),t.sane=1,t.back=-1,Go},Qy=e=>{if(qo(e))return _r;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Uy(e)},Ey=(e,t)=>{let A;if(qo(e))return _r;const n=e.state;return t<0?(A=0,t=-t):(A=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?_r:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=A,n.wbits=t,Qy(e))},Iy=(e,t)=>{if(!e)return _r;const A=new c6;e.state=A,A.strm=e,A.window=null,A.mode=od;const n=Ey(e,t);return n!==Go&&(e.state=null),n},u6=e=>Iy(e,l6);let HB=!0,Tg,Og;const f6=e=>{if(HB){Tg=new Int32Array(512),Og=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(yc(by,e.lens,0,288,Tg,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;yc(yy,e.lens,0,32,Og,0,e.work,{bits:5}),HB=!1}e.lencode=Tg,e.lenbits=9,e.distcode=Og,e.distbits=5},Sy=(e,t,A,n)=>{let r;const i=e.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),n>=i.wsize?(i.window.set(t.subarray(A-i.wsize,A),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>n&&(r=n),i.window.set(t.subarray(A-n,A-n+r),i.wnext),n-=r,n?(i.window.set(t.subarray(A-n,A),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=r))),0},h6=(e,t)=>{let A,n,r,i,s,o,a,l,c,u,d,f,m,B,v=0,b,C,Q,_,H,W,R,O;const k=new Uint8Array(4);let V,F;const L=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(qo(e)||!e.output||!e.input&&e.avail_in!==0)return _r;A=e.state,A.mode===Ki&&(A.mode=Dg),s=e.next_out,r=e.output,a=e.avail_out,i=e.next_in,n=e.input,o=e.avail_in,l=A.hold,c=A.bits,u=o,d=a,O=Go;t:for(;;)switch(A.mode){case od:if(A.wrap===0){A.mode=Dg;break}for(;c<16;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if(A.wrap&2&&l===35615){A.wbits===0&&(A.wbits=15),A.check=0,k[0]=l&255,k[1]=l>>>8&255,A.check=ri(A.check,k,2,0),l=0,c=0,A.mode=dB;break}if(A.head&&(A.head.done=!1),!(A.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",A.mode=bA;break}if((l&15)!==hB){e.msg="unknown compression method",A.mode=bA;break}if(l>>>=4,c-=4,R=(l&15)+8,A.wbits===0&&(A.wbits=R),R>15||R>A.wbits){e.msg="invalid window size",A.mode=bA;break}A.dmax=1<<A.wbits,A.flags=0,e.adler=A.check=1,A.mode=l&512?yB:Ki,l=0,c=0;break;case dB:for(;c<16;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if(A.flags=l,(A.flags&255)!==hB){e.msg="unknown compression method",A.mode=bA;break}if(A.flags&57344){e.msg="unknown header flags set",A.mode=bA;break}A.head&&(A.head.text=l>>8&1),A.flags&512&&A.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,A.check=ri(A.check,k,2,0)),l=0,c=0,A.mode=gB;case gB:for(;c<32;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}A.head&&(A.head.time=l),A.flags&512&&A.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,k[2]=l>>>16&255,k[3]=l>>>24&255,A.check=ri(A.check,k,4,0)),l=0,c=0,A.mode=pB;case pB:for(;c<16;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}A.head&&(A.head.xflags=l&255,A.head.os=l>>8),A.flags&512&&A.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,A.check=ri(A.check,k,2,0)),l=0,c=0,A.mode=mB;case mB:if(A.flags&1024){for(;c<16;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}A.length=l,A.head&&(A.head.extra_len=l),A.flags&512&&A.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,A.check=ri(A.check,k,2,0)),l=0,c=0}else A.head&&(A.head.extra=null);A.mode=BB;case BB:if(A.flags&1024&&(f=A.length,f>o&&(f=o),f&&(A.head&&(R=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Uint8Array(A.head.extra_len)),A.head.extra.set(n.subarray(i,i+f),R)),A.flags&512&&A.wrap&4&&(A.check=ri(A.check,n,f,i)),o-=f,i+=f,A.length-=f),A.length))break t;A.length=0,A.mode=wB;case wB:if(A.flags&2048){if(o===0)break t;f=0;do R=n[i+f++],A.head&&R&&A.length<65536&&(A.head.name+=String.fromCharCode(R));while(R&&f<o);if(A.flags&512&&A.wrap&4&&(A.check=ri(A.check,n,f,i)),o-=f,i+=f,R)break t}else A.head&&(A.head.name=null);A.length=0,A.mode=vB;case vB:if(A.flags&4096){if(o===0)break t;f=0;do R=n[i+f++],A.head&&R&&A.length<65536&&(A.head.comment+=String.fromCharCode(R));while(R&&f<o);if(A.flags&512&&A.wrap&4&&(A.check=ri(A.check,n,f,i)),o-=f,i+=f,R)break t}else A.head&&(A.head.comment=null);A.mode=bB;case bB:if(A.flags&512){for(;c<16;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if(A.wrap&4&&l!==(A.check&65535)){e.msg="header crc mismatch",A.mode=bA;break}l=0,c=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),e.adler=A.check=0,A.mode=Ki;break;case yB:for(;c<32;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}e.adler=A.check=DB(l),l=0,c=0,A.mode=_h;case _h:if(A.havedict===0)return e.next_out=s,e.avail_out=a,e.next_in=i,e.avail_in=o,A.hold=l,A.bits=c,r6;e.adler=A.check=1,A.mode=Ki;case Ki:if(t===A6||t===df)break t;case Dg:if(A.last){l>>>=c&7,c-=c&7,A.mode=Mg;break}for(;c<3;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}switch(A.last=l&1,l>>>=1,c-=1,l&3){case 0:A.mode=CB;break;case 1:if(f6(A),A.mode=gf,t===df){l>>>=2,c-=2;break t}break;case 2:A.mode=FB;break;case 3:e.msg="invalid block type",A.mode=bA}l>>>=2,c-=2;break;case CB:for(l>>>=c&7,c-=c&7;c<32;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",A.mode=bA;break}if(A.length=l&65535,l=0,c=0,A.mode=Hg,t===df)break t;case Hg:A.mode=xB;case xB:if(f=A.length,f){if(f>o&&(f=o),f>a&&(f=a),f===0)break t;r.set(n.subarray(i,i+f),s),o-=f,i+=f,a-=f,s+=f,A.length-=f;break}A.mode=Ki;break;case FB:for(;c<14;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if(A.nlen=(l&31)+257,l>>>=5,c-=5,A.ndist=(l&31)+1,l>>>=5,c-=5,A.ncode=(l&15)+4,l>>>=4,c-=4,A.nlen>286||A.ndist>30){e.msg="too many length or distance symbols",A.mode=bA;break}A.have=0,A.mode=_B;case _B:for(;A.have<A.ncode;){for(;c<3;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}A.lens[L[A.have++]]=l&7,l>>>=3,c-=3}for(;A.have<19;)A.lens[L[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,V={bits:A.lenbits},O=yc(e6,A.lens,0,19,A.lencode,0,A.work,V),A.lenbits=V.bits,O){e.msg="invalid code lengths set",A.mode=bA;break}A.have=0,A.mode=UB;case UB:for(;A.have<A.nlen+A.ndist;){for(;v=A.lencode[l&(1<<A.lenbits)-1],b=v>>>24,C=v>>>16&255,Q=v&65535,!(b<=c);){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if(Q<16)l>>>=b,c-=b,A.lens[A.have++]=Q;else{if(Q===16){for(F=b+2;c<F;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if(l>>>=b,c-=b,A.have===0){e.msg="invalid bit length repeat",A.mode=bA;break}R=A.lens[A.have-1],f=3+(l&3),l>>>=2,c-=2}else if(Q===17){for(F=b+3;c<F;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}l>>>=b,c-=b,R=0,f=3+(l&7),l>>>=3,c-=3}else{for(F=b+7;c<F;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}l>>>=b,c-=b,R=0,f=11+(l&127),l>>>=7,c-=7}if(A.have+f>A.nlen+A.ndist){e.msg="invalid bit length repeat",A.mode=bA;break}for(;f--;)A.lens[A.have++]=R}}if(A.mode===bA)break;if(A.lens[256]===0){e.msg="invalid code -- missing end-of-block",A.mode=bA;break}if(A.lenbits=9,V={bits:A.lenbits},O=yc(by,A.lens,0,A.nlen,A.lencode,0,A.work,V),A.lenbits=V.bits,O){e.msg="invalid literal/lengths set",A.mode=bA;break}if(A.distbits=6,A.distcode=A.distdyn,V={bits:A.distbits},O=yc(yy,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,V),A.distbits=V.bits,O){e.msg="invalid distances set",A.mode=bA;break}if(A.mode=gf,t===df)break t;case gf:A.mode=pf;case pf:if(o>=6&&a>=258){e.next_out=s,e.avail_out=a,e.next_in=i,e.avail_in=o,A.hold=l,A.bits=c,qL(e,d),s=e.next_out,r=e.output,a=e.avail_out,i=e.next_in,n=e.input,o=e.avail_in,l=A.hold,c=A.bits,A.mode===Ki&&(A.back=-1);break}for(A.back=0;v=A.lencode[l&(1<<A.lenbits)-1],b=v>>>24,C=v>>>16&255,Q=v&65535,!(b<=c);){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if(C&&!(C&240)){for(_=b,H=C,W=Q;v=A.lencode[W+((l&(1<<_+H)-1)>>_)],b=v>>>24,C=v>>>16&255,Q=v&65535,!(_+b<=c);){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}l>>>=_,c-=_,A.back+=_}if(l>>>=b,c-=b,A.back+=b,A.length=Q,C===0){A.mode=LB;break}if(C&32){A.back=-1,A.mode=Ki;break}if(C&64){e.msg="invalid literal/length code",A.mode=bA;break}A.extra=C&15,A.mode=QB;case QB:if(A.extra){for(F=A.extra;c<F;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}A.length+=l&(1<<A.extra)-1,l>>>=A.extra,c-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=EB;case EB:for(;v=A.distcode[l&(1<<A.distbits)-1],b=v>>>24,C=v>>>16&255,Q=v&65535,!(b<=c);){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if(!(C&240)){for(_=b,H=C,W=Q;v=A.distcode[W+((l&(1<<_+H)-1)>>_)],b=v>>>24,C=v>>>16&255,Q=v&65535,!(_+b<=c);){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}l>>>=_,c-=_,A.back+=_}if(l>>>=b,c-=b,A.back+=b,C&64){e.msg="invalid distance code",A.mode=bA;break}A.offset=Q,A.extra=C&15,A.mode=IB;case IB:if(A.extra){for(F=A.extra;c<F;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}A.offset+=l&(1<<A.extra)-1,l>>>=A.extra,c-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){e.msg="invalid distance too far back",A.mode=bA;break}A.mode=SB;case SB:if(a===0)break t;if(f=d-a,A.offset>f){if(f=A.offset-f,f>A.whave&&A.sane){e.msg="invalid distance too far back",A.mode=bA;break}f>A.wnext?(f-=A.wnext,m=A.wsize-f):m=A.wnext-f,f>A.length&&(f=A.length),B=A.window}else B=r,m=s-A.offset,f=A.length;f>a&&(f=a),a-=f,A.length-=f;do r[s++]=B[m++];while(--f);A.length===0&&(A.mode=pf);break;case LB:if(a===0)break t;r[s++]=A.length,a--,A.mode=pf;break;case Mg:if(A.wrap){for(;c<32;){if(o===0)break t;o--,l|=n[i++]<<c,c+=8}if(d-=a,e.total_out+=d,A.total+=d,A.wrap&4&&d&&(e.adler=A.check=A.flags?ri(A.check,r,d,s-d):n0(A.check,r,d,s-d)),d=a,A.wrap&4&&(A.flags?l:DB(l))!==A.check){e.msg="incorrect data check",A.mode=bA;break}l=0,c=0}A.mode=kB;case kB:if(A.wrap&&A.flags){for(;c<32;){if(o===0)break t;o--,l+=n[i++]<<c,c+=8}if(A.wrap&4&&l!==(A.total&4294967295)){e.msg="incorrect length check",A.mode=bA;break}l=0,c=0}A.mode=NB;case NB:O=n6;break t;case bA:O=Cy;break t;case Fy:return xy;case _y:default:return _r}return e.next_out=s,e.avail_out=a,e.next_in=i,e.avail_in=o,A.hold=l,A.bits=c,(A.wsize||d!==e.avail_out&&A.mode<bA&&(A.mode<Mg||t!==fB))&&Sy(e,e.output,e.next_out,d-e.avail_out),u-=e.avail_in,d-=e.avail_out,e.total_in+=u,e.total_out+=d,A.total+=d,A.wrap&4&&d&&(e.adler=A.check=A.flags?ri(A.check,r,d,e.next_out-d):n0(A.check,r,d,e.next_out-d)),e.data_type=A.bits+(A.last?64:0)+(A.mode===Ki?128:0)+(A.mode===gf||A.mode===Hg?256:0),(u===0&&d===0||t===fB)&&O===Go&&(O=i6),O},d6=e=>{if(qo(e))return _r;let t=e.state;return t.window&&(t.window=null),e.state=null,Go},g6=(e,t)=>{if(qo(e))return _r;const A=e.state;return A.wrap&2?(A.head=t,t.done=!1,Go):_r},p6=(e,t)=>{const A=t.length;let n,r,i;return qo(e)||(n=e.state,n.wrap!==0&&n.mode!==_h)?_r:n.mode===_h&&(r=1,r=n0(r,t,A,0),r!==n.check)?Cy:(i=Sy(e,t,A,A),i?(n.mode=Fy,xy):(n.havedict=1,Go))};var m6=Qy,B6=Ey,w6=Uy,v6=u6,b6=Iy,y6=h6,C6=d6,x6=g6,F6=p6,_6="pako inflate (from Nodeca project)",$i={inflateReset:m6,inflateReset2:B6,inflateResetKeep:w6,inflateInit:v6,inflateInit2:b6,inflate:y6,inflateEnd:C6,inflateGetHeader:x6,inflateSetDictionary:F6,inflateInfo:_6};function U6(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Q6=U6;const Ly=Object.prototype.toString,{Z_NO_FLUSH:E6,Z_FINISH:I6,Z_OK:Pc,Z_STREAM_END:Pg,Z_NEED_DICT:Rg,Z_STREAM_ERROR:S6,Z_DATA_ERROR:MB,Z_MEM_ERROR:L6}=By;function tu(e){this.options=wy.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zL,this.strm.avail_out=0;let A=$i.inflateInit2(this.strm,t.windowBits);if(A!==Pc)throw new Error(r0[A]);if(this.header=new Q6,$i.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=i0.string2buf(t.dictionary):Ly.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(A=$i.inflateSetDictionary(this.strm,t.dictionary),A!==Pc)))throw new Error(r0[A])}tu.prototype.push=function(e,t){const A=this.strm,n=this.options.chunkSize,r=this.options.dictionary;let i,s,o;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?I6:E6,Ly.call(e)==="[object ArrayBuffer]"?A.input=new Uint8Array(e):A.input=e,A.next_in=0,A.avail_in=A.input.length;;){for(A.avail_out===0&&(A.output=new Uint8Array(n),A.next_out=0,A.avail_out=n),i=$i.inflate(A,s),i===Rg&&r&&(i=$i.inflateSetDictionary(A,r),i===Pc?i=$i.inflate(A,s):i===MB&&(i=Rg));A.avail_in>0&&i===Pg&&A.state.wrap>0&&e[A.next_in]!==0;)$i.inflateReset(A),i=$i.inflate(A,s);switch(i){case S6:case MB:case Rg:case L6:return this.onEnd(i),this.ended=!0,!1}if(o=A.avail_out,A.next_out&&(A.avail_out===0||i===Pg))if(this.options.to==="string"){let a=i0.utf8border(A.output,A.next_out),l=A.next_out-a,c=i0.buf2string(A.output,a);A.next_out=l,A.avail_out=n-l,l&&A.output.set(A.output.subarray(a,a+l),0),this.onData(c)}else this.onData(A.output.length===A.next_out?A.output:A.output.subarray(0,A.next_out));if(!(i===Pc&&o===0)){if(i===Pg)return i=$i.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(A.avail_in===0)break}}return!0};tu.prototype.onData=function(e){this.chunks.push(e)};tu.prototype.onEnd=function(e){e===Pc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=wy.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function k6(e,t){const A=new tu(t);if(A.push(e),A.err)throw A.msg||r0[A.err];return A.result}var N6=tu,D6=k6,H6={Inflate:N6,inflate:D6};const{Inflate:M6,inflate:T6}=H6;var TB=M6,O6=T6;const ky=[];for(let e=0;e<256;e++){let t=e;for(let A=0;A<8;A++)t&1?t=3988292384^t>>>1:t=t>>>1;ky[e]=t}const OB=4294967295;function P6(e,t,A){let n=e;for(let r=0;r<A;r++)n=ky[(n^t[r])&255]^n>>>8;return n}function R6(e,t){return(P6(OB,e,t)^OB)>>>0}function PB(e,t,A){const n=e.readUint32(),r=R6(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(r!==n)throw new Error(`CRC mismatch for chunk ${A}. Expected ${n}, found ${r}`)}function Ny(e,t,A){for(let n=0;n<A;n++)t[n]=e[n]}function Dy(e,t,A,n){let r=0;for(;r<n;r++)t[r]=e[r];for(;r<A;r++)t[r]=e[r]+t[r-n]&255}function Hy(e,t,A,n){let r=0;if(A.length===0)for(;r<n;r++)t[r]=e[r];else for(;r<n;r++)t[r]=e[r]+A[r]&255}function My(e,t,A,n,r){let i=0;if(A.length===0){for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+(t[i-r]>>1)&255}else{for(;i<r;i++)t[i]=e[i]+(A[i]>>1)&255;for(;i<n;i++)t[i]=e[i]+(t[i-r]+A[i]>>1)&255}}function Ty(e,t,A,n,r){let i=0;if(A.length===0){for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}else{for(;i<r;i++)t[i]=e[i]+A[i]&255;for(;i<n;i++)t[i]=e[i]+K6(t[i-r],A[i],A[i-r])&255}}function K6(e,t,A){const n=e+t-A,r=Math.abs(n-e),i=Math.abs(n-t),s=Math.abs(n-A);return r<=i&&r<=s?e:i<=s?t:A}function V6(e,t,A,n,r,i){switch(e){case 0:Ny(t,A,r);break;case 1:Dy(t,A,r,i);break;case 2:Hy(t,A,n,r);break;case 3:My(t,A,n,r,i);break;case 4:Ty(t,A,n,r,i);break;default:throw new Error(`Unsupported filter: ${e}`)}}const j6=new Uint16Array([255]),G6=new Uint8Array(j6.buffer),W6=G6[0]===255;function z6(e){const{data:t,width:A,height:n,channels:r,depth:i}=e,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],o=Math.ceil(i/8)*r,a=new Uint8Array(n*A*o);let l=0;for(let c=0;c<7;c++){const u=s[c],d=Math.ceil((A-u.x)/u.xStep),f=Math.ceil((n-u.y)/u.yStep);if(d<=0||f<=0)continue;const m=d*o,B=new Uint8Array(m);for(let v=0;v<f;v++){const b=t[l++],C=t.subarray(l,l+m);l+=m;const Q=new Uint8Array(m);V6(b,C,Q,B,m,o),B.set(Q);for(let _=0;_<d;_++){const H=u.x+_*u.xStep,W=u.y+v*u.yStep;if(!(H>=A||W>=n))for(let R=0;R<o;R++)a[(W*A+H)*o+R]=Q[_*o+R]}}}if(i===16){const c=new Uint16Array(a.buffer);if(W6)for(let u=0;u<c.length;u++)c[u]=$6(c[u]);return c}else return a}function $6(e){return(e&255)<<8|e>>8&255}const q6=new Uint16Array([255]),X6=new Uint8Array(q6.buffer),Y6=X6[0]===255,J6=new Uint8Array(0);function RB(e){const{data:t,width:A,height:n,channels:r,depth:i}=e,s=Math.ceil(i/8)*r,o=Math.ceil(i/8*r*A),a=new Uint8Array(n*o);let l=J6,c=0,u,d;for(let f=0;f<n;f++){switch(u=t.subarray(c+1,c+1+o),d=a.subarray(f*o,(f+1)*o),t[c]){case 0:Ny(u,d,o);break;case 1:Dy(u,d,o,s);break;case 2:Hy(u,d,l,o);break;case 3:My(u,d,l,o,s);break;case 4:Ty(u,d,l,o,s);break;default:throw new Error(`Unsupported filter: ${t[c]}`)}l=d,c+=o+1}if(i===16){const f=new Uint16Array(a.buffer);if(Y6)for(let m=0;m<f.length;m++)f[m]=Z6(f[m]);return f}else return a}function Z6(e){return(e&255)<<8|e>>8&255}const Vf=Uint8Array.of(137,80,78,71,13,10,26,10);function KB(e){if(!t8(e.readBytes(Vf.length)))throw new Error("wrong PNG signature")}function t8(e){if(e.length<Vf.length)return!1;for(let t=0;t<Vf.length;t++)if(e[t]!==Vf[t])return!1;return!0}const e8="tEXt",A8=0,Oy=new TextDecoder("latin1");function n8(e){if(i8(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const r8=/^[\u0000-\u00FF]*$/;function i8(e){if(!r8.test(e))throw new Error("invalid latin1 text")}function s8(e,t,A){const n=Py(t);e[n]=o8(t,A-n.length-1)}function Py(e){for(e.mark();e.readByte()!==A8;);const t=e.offset;e.reset();const A=Oy.decode(e.readBytes(t-e.offset-1));return e.skip(1),n8(A),A}function o8(e,t){return Oy.decode(e.readBytes(t))}const sr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Kg={UNKNOWN:-1,DEFLATE:0},VB={UNKNOWN:-1,ADAPTIVE:0},Vg={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},mf={NONE:0,BACKGROUND:1,PREVIOUS:2},jg={SOURCE:0,OVER:1};class a8 extends i1{constructor(A,n={}){super(A);Nt(this,"_checkCrc");Nt(this,"_inflator");Nt(this,"_png");Nt(this,"_apng");Nt(this,"_end");Nt(this,"_hasPalette");Nt(this,"_palette");Nt(this,"_hasTransparency");Nt(this,"_transparency");Nt(this,"_compressionMethod");Nt(this,"_filterMethod");Nt(this,"_interlaceMethod");Nt(this,"_colorType");Nt(this,"_isAnimated");Nt(this,"_numberOfFrames");Nt(this,"_numberOfPlays");Nt(this,"_frames");Nt(this,"_writingDataChunks");const{checkCrc:r=!1}=n;this._checkCrc=r,this._inflator=new TB,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Kg.UNKNOWN,this._filterMethod=VB.UNKNOWN,this._interlaceMethod=Vg.UNKNOWN,this._colorType=sr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(KB(this);!this._end;){const A=this.readUint32(),n=this.readChars(4);this.decodeChunk(A,n)}return this.decodeImage(),this._png}decodeApng(){for(KB(this);!this._end;){const A=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(A,n)}return this.decodeApngImage(),this._apng}decodeChunk(A,n){const r=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(A);break;case"IDAT":this.decodeIDAT(A);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(A);break;case"iCCP":this.decodeiCCP(A);break;case e8:s8(this._png.text,this,A);break;case"pHYs":this.decodepHYs();break;default:this.skip(A);break}if(this.offset-r!==A)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?PB(this,A+4,n):this.skip(4)}decodeApngChunk(A,n){const r=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(A);break;default:this.decodeChunk(A,n),this.offset=r+A;break}if(this.offset-r!==A)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?PB(this,A+4,n):this.skip(4)}decodeIHDR(){const A=this._png;A.width=this.readUint32(),A.height=this.readUint32(),A.depth=l8(this.readUint8());const n=this.readUint8();this._colorType=n;let r;switch(n){case sr.GREYSCALE:r=1;break;case sr.TRUECOLOUR:r=3;break;case sr.INDEXED_COLOUR:r=1;break;case sr.GREYSCALE_ALPHA:r=2;break;case sr.TRUECOLOUR_ALPHA:r=4;break;case sr.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==Kg.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const A={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(A)}decodePLTE(A){if(A%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${A}`);const n=A/3;this._hasPalette=!0;const r=[];this._palette=r;for(let i=0;i<n;i++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(A){this._writingDataChunks=!0;const n=A,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(A)}decodeFDAT(A){this._writingDataChunks=!0;let n=A,r=this.offset+this.byteOffset;if(r+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,r,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(A)}decodetRNS(A){switch(this._colorType){case sr.GREYSCALE:case sr.TRUECOLOUR:{if(A%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${A}`);if(A/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${A/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(A/2);for(let n=0;n<A/2;n++)this._transparency[n]=this.readUint16();break}case sr.INDEXED_COLOUR:{if(A>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${A} vs ${this._palette.length})`);let n=0;for(;n<A;n++){const r=this.readByte();this._palette[n].push(r)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case sr.UNKNOWN:case sr.GREYSCALE_ALPHA:case sr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(A){const n=Py(this),r=this.readUint8();if(r!==Kg.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);const i=this.readBytes(A-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:O6(i)}}decodepHYs(){const A=this.readUint32(),n=this.readUint32(),r=this.readByte();this._png.resolution={x:A,y:n,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let A=0;A<this._numberOfFrames;A++){const n={sequenceNumber:this._frames[A].sequenceNumber,delayNumber:this._frames[A].delayNumber,delayDenominator:this._frames[A].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(A);if(r){if(r.data=RB({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),A===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)n.data=r.data;else{const i=this._apng.frames.at(A-1);this.disposeFrame(r,i,n),this.addFrameDataToCanvas(n,r)}this._apng.frames.push(n)}}return this._apng}disposeFrame(A,n,r){switch(A.disposeOp){case mf.NONE:break;case mf.BACKGROUND:for(let i=0;i<this._png.height;i++)for(let s=0;s<this._png.width;s++){const o=(i*A.width+s)*this._png.channels;for(let a=0;a<this._png.channels;a++)r.data[o+a]=0}break;case mf.PREVIOUS:r.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(A,n){const r=1<<this._png.depth,i=(s,o)=>{const a=((s+n.yOffset)*this._png.width+n.xOffset+o)*this._png.channels,l=(s*n.width+o)*this._png.channels;return{index:a,frameIndex:l}};switch(n.blendOp){case jg.SOURCE:for(let s=0;s<n.height;s++)for(let o=0;o<n.width;o++){const{index:a,frameIndex:l}=i(s,o);for(let c=0;c<this._png.channels;c++)A.data[a+c]=n.data[l+c]}break;case jg.OVER:for(let s=0;s<n.height;s++)for(let o=0;o<n.width;o++){const{index:a,frameIndex:l}=i(s,o);for(let c=0;c<this._png.channels;c++){const u=n.data[l+this._png.channels-1]/r,d=c%(this._png.channels-1)===0?1:n.data[l+c],f=Math.floor(u*d+(1-u)*A.data[a+c]);A.data[a+c]+=f}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var n;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const A=this._isAnimated?((n=this._frames)==null?void 0:n.at(0)).data:this._inflator.result;if(this._filterMethod!==VB.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Vg.NO_INTERLACE)this._png.data=RB({data:A,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Vg.ADAM7)this._png.data=z6({data:A,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const A=this._inflator.result,n=this._frames.at(-1);n?n.data=A:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:mf.NONE,blendOp:jg.SOURCE,data:A}),this._inflator=new TB,this._writingDataChunks=!1}}function l8(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var jB;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(jB||(jB={}));function c8(e,t){return new a8(e,t).decode()}var we=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Gg(){we.console&&typeof we.console.log=="function"&&we.console.log.apply(we.console,arguments)}var sA={log:Gg,warn:function(e){we.console&&(typeof we.console.warn=="function"?we.console.warn.apply(we.console,arguments):Gg.call(null,arguments))},error:function(e){we.console&&(typeof we.console.error=="function"?we.console.error.apply(we.console,arguments):Gg(e))}};function Wg(e,t,A){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Qo(n.response,t,A)},n.onerror=function(){sA.error("could not download file")},n.send()}function GB(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Bf(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Qo=we.saveAs||((typeof window>"u"?"undefined":Ze(window))!=="object"||window!==we?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,A){var n=we.URL||we.webkitURL,r=document.createElement("a");t=t||e.name||"download",r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?GB(r.href)?Wg(e,t,A):Bf(r,r.target="_blank"):Bf(r)):(r.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(r.href)},4e4),setTimeout(function(){Bf(r)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,A){if(t=t||e.name||"download",typeof e=="string")if(GB(e))Wg(e,t,A);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){Bf(n)})}else navigator.msSaveOrOpenBlob(function(r,i){return i===void 0?i={autoBom:!1}:Ze(i)!=="object"&&(sA.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}(e,A),t)}:function(e,t,A,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return Wg(e,t,A);var r=e.type==="application/octet-stream",i=/constructor/i.test(we.HTMLElement)||we.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||r&&i)&&(typeof FileReader>"u"?"undefined":Ze(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var c=o.result;c=s?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=c:location=c,n=null},o.readAsDataURL(e)}else{var a=we.URL||we.webkitURL,l=a.createObjectURL(e);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 Ry(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),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",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"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],n=0;n<A.length;n++){var r=A[n].re,i=A[n].process,s=r.exec(e);s&&(t=i(s),this.r=t[0],this.g=t[1],this.b=t[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 o=this.r.toString(16),a=this.g.toString(16),l=this.b.toString(16);return o.length==1&&(o="0"+o),a.length==1&&(a="0"+a),l.length==1&&(l="0"+l),"#"+o+a+l}}var jf=we.atob.bind(we),WB=we.btoa.bind(we);/**
|
||
* @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 zg(e,t){var A=e[0],n=e[1],r=e[2],i=e[3];A=Bn(A,n,r,i,t[0],7,-680876936),i=Bn(i,A,n,r,t[1],12,-389564586),r=Bn(r,i,A,n,t[2],17,606105819),n=Bn(n,r,i,A,t[3],22,-1044525330),A=Bn(A,n,r,i,t[4],7,-176418897),i=Bn(i,A,n,r,t[5],12,1200080426),r=Bn(r,i,A,n,t[6],17,-1473231341),n=Bn(n,r,i,A,t[7],22,-45705983),A=Bn(A,n,r,i,t[8],7,1770035416),i=Bn(i,A,n,r,t[9],12,-1958414417),r=Bn(r,i,A,n,t[10],17,-42063),n=Bn(n,r,i,A,t[11],22,-1990404162),A=Bn(A,n,r,i,t[12],7,1804603682),i=Bn(i,A,n,r,t[13],12,-40341101),r=Bn(r,i,A,n,t[14],17,-1502002290),A=wn(A,n=Bn(n,r,i,A,t[15],22,1236535329),r,i,t[1],5,-165796510),i=wn(i,A,n,r,t[6],9,-1069501632),r=wn(r,i,A,n,t[11],14,643717713),n=wn(n,r,i,A,t[0],20,-373897302),A=wn(A,n,r,i,t[5],5,-701558691),i=wn(i,A,n,r,t[10],9,38016083),r=wn(r,i,A,n,t[15],14,-660478335),n=wn(n,r,i,A,t[4],20,-405537848),A=wn(A,n,r,i,t[9],5,568446438),i=wn(i,A,n,r,t[14],9,-1019803690),r=wn(r,i,A,n,t[3],14,-187363961),n=wn(n,r,i,A,t[8],20,1163531501),A=wn(A,n,r,i,t[13],5,-1444681467),i=wn(i,A,n,r,t[2],9,-51403784),r=wn(r,i,A,n,t[7],14,1735328473),A=vn(A,n=wn(n,r,i,A,t[12],20,-1926607734),r,i,t[5],4,-378558),i=vn(i,A,n,r,t[8],11,-2022574463),r=vn(r,i,A,n,t[11],16,1839030562),n=vn(n,r,i,A,t[14],23,-35309556),A=vn(A,n,r,i,t[1],4,-1530992060),i=vn(i,A,n,r,t[4],11,1272893353),r=vn(r,i,A,n,t[7],16,-155497632),n=vn(n,r,i,A,t[10],23,-1094730640),A=vn(A,n,r,i,t[13],4,681279174),i=vn(i,A,n,r,t[0],11,-358537222),r=vn(r,i,A,n,t[3],16,-722521979),n=vn(n,r,i,A,t[6],23,76029189),A=vn(A,n,r,i,t[9],4,-640364487),i=vn(i,A,n,r,t[12],11,-421815835),r=vn(r,i,A,n,t[15],16,530742520),A=bn(A,n=vn(n,r,i,A,t[2],23,-995338651),r,i,t[0],6,-198630844),i=bn(i,A,n,r,t[7],10,1126891415),r=bn(r,i,A,n,t[14],15,-1416354905),n=bn(n,r,i,A,t[5],21,-57434055),A=bn(A,n,r,i,t[12],6,1700485571),i=bn(i,A,n,r,t[3],10,-1894986606),r=bn(r,i,A,n,t[10],15,-1051523),n=bn(n,r,i,A,t[1],21,-2054922799),A=bn(A,n,r,i,t[8],6,1873313359),i=bn(i,A,n,r,t[15],10,-30611744),r=bn(r,i,A,n,t[6],15,-1560198380),n=bn(n,r,i,A,t[13],21,1309151649),A=bn(A,n,r,i,t[4],6,-145523070),i=bn(i,A,n,r,t[11],10,-1120210379),r=bn(r,i,A,n,t[2],15,718787259),n=bn(n,r,i,A,t[9],21,-343485551),e[0]=Ms(A,e[0]),e[1]=Ms(n,e[1]),e[2]=Ms(r,e[2]),e[3]=Ms(i,e[3])}function ad(e,t,A,n,r,i){return t=Ms(Ms(t,e),Ms(n,i)),Ms(t<<r|t>>>32-r,A)}function Bn(e,t,A,n,r,i,s){return ad(t&A|~t&n,e,t,r,i,s)}function wn(e,t,A,n,r,i,s){return ad(t&n|A&~n,e,t,r,i,s)}function vn(e,t,A,n,r,i,s){return ad(t^A^n,e,t,r,i,s)}function bn(e,t,A,n,r,i,s){return ad(A^(t|~n),e,t,r,i,s)}function Ky(e){var t,A=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)zg(n,u8(e.substring(t-64,t)));e=e.substring(t-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(zg(n,r),t=0;t<16;t++)r[t]=0;return r[14]=8*A,zg(n,r),n}function u8(e){var t,A=[];for(t=0;t<64;t+=4)A[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return A}var zB="0123456789abcdef".split("");function f8(e){for(var t="",A=0;A<4;A++)t+=zB[e>>8*A+4&15]+zB[e>>8*A&15];return t}function h8(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function s0(e){return Ky(e).map(h8).join("")}var d8=function(e){for(var t=0;t<e.length;t++)e[t]=f8(e[t]);return e.join("")}(Ky("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ms(e,t){if(d8){var A=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(A>>16)<<16|65535&A}return e+t&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 o0(e,t){var A,n,r,i;if(e!==A){for(var s=(r=e,i=1+(256/e.length|0),new Array(i+1).join(r)),o=[],a=0;a<256;a++)o[a]=a;var l=0;for(a=0;a<256;a++){var c=o[a];l=(l+c+s.charCodeAt(a))%256,o[a]=o[l],o[l]=c}A=e,n=o}else o=n;var u=t.length,d=0,f=0,m="";for(a=0;a<u;a++)f=(f+(c=o[d=(d+1)%256]))%256,o[d]=o[f],o[f]=c,s=o[(o[d]+o[f])%256],m+=String.fromCharCode(t.charCodeAt(a)^s);return m}/**
|
||
* @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 $B={print:4,modify:8,copy:16,"annot-forms":32};function Ha(e,t,A,n){this.v=1,this.r=2;var r=192;e.forEach(function(o){if($B.perm!==void 0)throw new Error("Invalid permission: "+o);r+=$B[o]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),s=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^r)),this.encryptionKey=s0(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=o0(this.encryptionKey,this.padding)}function Ma(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",A=e.length,n=0;n<A;n++){var r=e.charCodeAt(n);t+=r<33||r===35||r===37||r===40||r===41||r===47||r===60||r===62||r===91||r===93||r===123||r===125||r>126?"#"+("0"+r.toString(16)).slice(-2):e[n]}return t}function qB(e){if(Ze(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,n,r){if(r=r||!1,typeof A!="string"||typeof n!="function"||typeof r!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var i=Math.random().toString(35);return t[A][i]=[n,!!r],i},this.unsubscribe=function(A){for(var n in t)if(t[n][A])return delete t[n][A],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(A){if(t.hasOwnProperty(A)){var n=Array.prototype.slice.call(arguments,1),r=[];for(var i in t[A]){var s=t[A][i];try{s[0].apply(e,n)}catch(o){we.console&&sA.error("jsPDF PubSub Error",o.message,o)}s[1]&&r.push(i)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Uh(e){if(!(this instanceof Uh))return new Uh(e);var t="opacity,stroke-opacity".split(",");for(var A in e)e.hasOwnProperty(A)&&t.indexOf(A)>=0&&(this[A]=e[A]);this.id="",this.objectNumber=-1}function Vy(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Lo(e,t,A,n,r){if(!(this instanceof Lo))return new Lo(e,t,A,n,r);this.type=e==="axial"?2:3,this.coords=t,this.colors=A,Vy.call(this,n,r)}function Oa(e,t,A,n,r){if(!(this instanceof Oa))return new Oa(e,t,A,n,r);this.boundingBox=e,this.xStep=t,this.yStep=A,this.stream="",this.cloneIndex=0,Vy.call(this,n,r)}function ae(e){var t,A=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],r=arguments[2],i=arguments[3],s=[],o=1,a=16,l="S",c=null;Ze(e=e||{})==="object"&&(A=e.orientation,n=e.unit||n,r=e.format||r,i=e.compress||e.compressPdf||i,(c=e.encryption||null)!==null&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),o=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(a=e.floatPrecision),l=e.defaultPathOperation||"S"),s=e.filters||(i===!0?["FlateEncode"]:s),n=n||"mm",A=(""+(A||"P")).toLowerCase();var u=e.putOnlyUsedFonts||!1,d={},f={internal:{},__private__:{}};f.__private__.PubSub=qB;var m="1.3",B=f.__private__.getPdfVersion=function(){return m};f.__private__.setPdfVersion=function(w){m=w};var v={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 v};var b=f.__private__.getPageFormat=function(w){return v[w]};r=r||"a4";var C="compat",Q="advanced",_=C;function H(){this.saveGraphicsState(),S(new de(oe,0,0,-oe,0,io()*oe).toString()+" cm"),this.setFontSize(this.getFontSize()/oe),l="n",_=Q}function W(){this.restoreGraphicsState(),l="S",_=C}var R=f.__private__.combineFontStyleAndFontWeight=function(w,E){if(w=="bold"&&E=="normal"||w=="bold"&&E==400||w=="normal"&&E=="italic"||w=="bold"&&E=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return E&&(w=E==400||E==="normal"?w==="italic"?"italic":"normal":E!=700&&E!=="bold"||w!=="normal"?(E==700?"bold":E)+""+w:"bold"),w};f.advancedAPI=function(w){var E=_===C;return E&&H.call(this),typeof w!="function"||(w(this),E&&W.call(this)),this},f.compatAPI=function(w){var E=_===Q;return E&&W.call(this),typeof w!="function"||(w(this),E&&H.call(this)),this},f.isAdvancedAPI=function(){return _===Q};var O,k=function(w){if(_!==Q)throw new Error(w+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},V=f.roundToPrecision=f.__private__.roundToPrecision=function(w,E){var X=t||E;if(isNaN(w)||isNaN(X))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return w.toFixed(X).replace(/0+$/,"")};O=f.hpf=f.__private__.hpf=typeof a=="number"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return V(w,a)}:a==="smart"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return V(w,w>-1&&w<1?16:5)}:function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return V(w,16)};var F=f.f2=f.__private__.f2=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f2");return V(w,2)},L=f.__private__.f3=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f3");return V(w,3)},G=f.scale=f.__private__.scale=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.scale");return _===C?w*oe:_===Q?w:void 0},q=function(w){return G(function(E){return _===C?io()-E:_===Q?E:void 0}(w))};f.__private__.setPrecision=f.setPrecision=function(w){typeof parseInt(w,10)=="number"&&(t=parseInt(w,10))};var ft,lt="00000000000000000000000000000000",ct=f.__private__.getFileId=function(){return lt},at=f.__private__.setFileId=function(w){return lt=w!==void 0&&/^[a-fA-F0-9]{32}$/.test(w)?w.toUpperCase():lt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),c!==null&&(sn=new Ha(c.userPermissions,c.userPassword,c.ownerPassword,lt)),lt};f.setFileId=function(w){return at(w),this},f.getFileId=function(){return ct()};var st=f.__private__.convertDateToPDFDate=function(w){var E=w.getTimezoneOffset(),X=E<0?"+":"-",it=Math.floor(Math.abs(E/60)),gt=Math.abs(E%60),Ut=[X,tt(it),"'",tt(gt),"'"].join("");return["D:",w.getFullYear(),tt(w.getMonth()+1),tt(w.getDate()),tt(w.getHours()),tt(w.getMinutes()),tt(w.getSeconds()),Ut].join("")},Z=f.__private__.convertPDFDateToDate=function(w){var E=parseInt(w.substr(2,4),10),X=parseInt(w.substr(6,2),10)-1,it=parseInt(w.substr(8,2),10),gt=parseInt(w.substr(10,2),10),Ut=parseInt(w.substr(12,2),10),Dt=parseInt(w.substr(14,2),10);return new Date(E,X,it,gt,Ut,Dt,0)},j=f.__private__.setCreationDate=function(w){var E;if(w===void 0&&(w=new Date),w instanceof Date)E=st(w);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(w))throw new Error("Invalid argument passed to jsPDF.setCreationDate");E=w}return ft=E},U=f.__private__.getCreationDate=function(w){var E=ft;return w==="jsDate"&&(E=Z(ft)),E};f.setCreationDate=function(w){return j(w),this},f.getCreationDate=function(w){return U(w)};var N,tt=f.__private__.padd2=function(w){return("0"+parseInt(w)).slice(-2)},et=f.__private__.padd2Hex=function(w){return("00"+(w=w.toString())).substr(w.length)},At=0,z=[],nt=[],ot=0,wt=[],_t=[],P=!1,$=nt;f.__private__.setCustomOutputDestination=function(w){P=!0,$=w};var rt=function(w){P||($=w)};f.__private__.resetCustomOutputDestination=function(){P=!1,$=nt};var S=f.__private__.out=function(w){return w=w.toString(),ot+=w.length+1,$.push(w),$},pt=f.__private__.write=function(w){return S(arguments.length===1?w.toString():Array.prototype.join.call(arguments," "))},xt=f.__private__.getArrayBuffer=function(w){for(var E=w.length,X=new ArrayBuffer(E),it=new Uint8Array(X);E--;)it[E]=w.charCodeAt(E);return X},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 mt=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(w){return mt=_===Q?w/oe:w,this};var Ft,bt=f.__private__.getFontSize=f.getFontSize=function(){return _===C?mt:mt*oe},Mt=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(w){return Mt=w,this},f.__private__.getR2L=f.getR2L=function(){return Mt};var It,Pt=f.__private__.setZoomMode=function(w){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(w))Ft=w;else if(isNaN(w)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(w)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+w+'" is not recognized.');Ft=w}else Ft=parseInt(w,10)};f.__private__.getZoomMode=function(){return Ft};var Kt,Gt=f.__private__.setPageMode=function(w){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(w)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+w+'" is not recognized.');It=w};f.__private__.getPageMode=function(){return It};var ee=f.__private__.setLayoutMode=function(w){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(w)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+w+'" is not recognized.');Kt=w};f.__private__.getLayoutMode=function(){return Kt},f.__private__.setDisplayMode=f.setDisplayMode=function(w,E,X){return Pt(w),ee(E),Gt(X),this};var Yt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(w){if(Object.keys(Yt).indexOf(w)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Yt[w]},f.__private__.getDocumentProperties=function(){return Yt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(w){for(var E in Yt)Yt.hasOwnProperty(E)&&w[E]&&(Yt[E]=w[E]);return this},f.__private__.setDocumentProperty=function(w,E){if(Object.keys(Yt).indexOf(w)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Yt[w]=E};var Wt,oe,Xt,Ke,Le,Ee={},fe={},Me=[],le={},qe={},pe={},xe={},wA=null,ke=0,he=[],je=new qB(f),Zs=e.hotfixes||[],hn={},Ci={},Wr=[],de=function w(E,X,it,gt,Ut,Dt){if(!(this instanceof w))return new w(E,X,it,gt,Ut,Dt);isNaN(E)&&(E=1),isNaN(X)&&(X=0),isNaN(it)&&(it=0),isNaN(gt)&&(gt=1),isNaN(Ut)&&(Ut=0),isNaN(Dt)&&(Dt=0),this._matrix=[E,X,it,gt,Ut,Dt]};Object.defineProperty(de.prototype,"sx",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(de.prototype,"shy",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(de.prototype,"shx",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(de.prototype,"sy",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(de.prototype,"tx",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(de.prototype,"ty",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(de.prototype,"a",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(de.prototype,"b",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(de.prototype,"c",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(de.prototype,"d",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(de.prototype,"e",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(de.prototype,"f",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(de.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(de.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(de.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(de.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),de.prototype.join=function(w){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(w)},de.prototype.multiply=function(w){var E=w.sx*this.sx+w.shy*this.shx,X=w.sx*this.shy+w.shy*this.sy,it=w.shx*this.sx+w.sy*this.shx,gt=w.shx*this.shy+w.sy*this.sy,Ut=w.tx*this.sx+w.ty*this.shx+this.tx,Dt=w.tx*this.shy+w.ty*this.sy+this.ty;return new de(E,X,it,gt,Ut,Dt)},de.prototype.decompose=function(){var w=this.sx,E=this.shy,X=this.shx,it=this.sy,gt=this.tx,Ut=this.ty,Dt=Math.sqrt(w*w+E*E),Ae=(w/=Dt)*X+(E/=Dt)*it;X-=w*Ae,it-=E*Ae;var te=Math.sqrt(X*X+it*it);return Ae/=te,w*(it/=te)<E*(X/=te)&&(w=-w,E=-E,Ae=-Ae,Dt=-Dt),{scale:new de(Dt,0,0,te,0,0),translate:new de(1,0,0,1,gt,Ut),rotate:new de(w,E,-E,w,0,0),skew:new de(1,0,Ae,1,0,0)}},de.prototype.toString=function(w){return this.join(" ")},de.prototype.inversed=function(){var w=this.sx,E=this.shy,X=this.shx,it=this.sy,gt=this.tx,Ut=this.ty,Dt=1/(w*it-E*X),Ae=it*Dt,te=-E*Dt,ve=-X*Dt,Fe=w*Dt;return new de(Ae,te,ve,Fe,-Ae*gt-ve*Ut,-te*gt-Fe*Ut)},de.prototype.applyToPoint=function(w){var E=w.x*this.sx+w.y*this.shx+this.tx,X=w.x*this.shy+w.y*this.sy+this.ty;return new ro(E,X)},de.prototype.applyToRectangle=function(w){var E=this.applyToPoint(w),X=this.applyToPoint(new ro(w.x+w.w,w.y+w.h));return new ml(E.x,E.y,X.x-E.x,X.y-E.y)},de.prototype.clone=function(){var w=this.sx,E=this.shy,X=this.shx,it=this.sy,gt=this.tx,Ut=this.ty;return new de(w,E,X,it,gt,Ut)},f.Matrix=de;var xi=f.matrixMult=function(w,E){return E.multiply(w)},Fi=new de(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=Fi;var fr=function(w,E){if(!qe[w]){var X=(E instanceof Lo?"Sh":"P")+(Object.keys(le).length+1).toString(10);E.id=X,qe[w]=X,le[X]=E,je.publish("addPattern",E)}};f.ShadingPattern=Lo,f.TilingPattern=Oa,f.addShadingPattern=function(w,E){return k("addShadingPattern()"),fr(w,E),this},f.beginTilingPattern=function(w){k("beginTilingPattern()"),Bl(w.boundingBox[0],w.boundingBox[1],w.boundingBox[2]-w.boundingBox[0],w.boundingBox[3]-w.boundingBox[1],w.matrix)},f.endTilingPattern=function(w,E){k("endTilingPattern()"),E.stream=_t[N].join(`
|
||
`),fr(w,E),je.publish("endTilingPattern",E),Wr.pop().restore()};var hr,_A=f.__private__.newObject=function(){var w=tn();return rn(w,!0),w},tn=f.__private__.newObjectDeferred=function(){return At++,z[At]=function(){return ot},At},rn=function(w,E){return E=typeof E=="boolean"&&E,z[w]=ot,E&&S(w+" 0 obj"),w},to=f.__private__.newAdditionalObject=function(){var w={objId:tn(),content:""};return wt.push(w),w},ls=tn(),Ur=tn(),zr=f.__private__.decodeColorString=function(w){var E=w.split(" ");if(E.length!==2||E[1]!=="g"&&E[1]!=="G")E.length!==5||E[4]!=="k"&&E[4]!=="K"||(E=[(1-E[0])*(1-E[3]),(1-E[1])*(1-E[3]),(1-E[2])*(1-E[3]),"r"]);else{var X=parseFloat(E[0]);E=[X,X,X,"r"]}for(var it="#",gt=0;gt<3;gt++)it+=("0"+Math.floor(255*parseFloat(E[gt])).toString(16)).slice(-2);return it},Qr=f.__private__.encodeColorString=function(w){var E;typeof w=="string"&&(w={ch1:w});var X=w.ch1,it=w.ch2,gt=w.ch3,Ut=w.ch4,Dt=w.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof X=="string"&&X.charAt(0)!=="#"){var Ae=new Ry(X);if(Ae.ok)X=Ae.toHex();else if(!/^\d*\.?\d*$/.test(X))throw new Error('Invalid color "'+X+'" passed to jsPDF.encodeColorString.')}if(typeof X=="string"&&/^#[0-9A-Fa-f]{3}$/.test(X)&&(X="#"+X[1]+X[1]+X[2]+X[2]+X[3]+X[3]),typeof X=="string"&&/^#[0-9A-Fa-f]{6}$/.test(X)){var te=parseInt(X.substr(1),16);X=te>>16&255,it=te>>8&255,gt=255&te}if(it===void 0||Ut===void 0&&X===it&&it===gt)E=typeof X=="string"?X+" "+Dt[0]:w.precision===2?F(X/255)+" "+Dt[0]:L(X/255)+" "+Dt[0];else if(Ut===void 0||Ze(Ut)==="object"){if(Ut&&!isNaN(Ut.a)&&Ut.a===0)return["1.","1.","1.",Dt[1]].join(" ");E=typeof X=="string"?[X,it,gt,Dt[1]].join(" "):w.precision===2?[F(X/255),F(it/255),F(gt/255),Dt[1]].join(" "):[L(X/255),L(it/255),L(gt/255),Dt[1]].join(" ")}else E=typeof X=="string"?[X,it,gt,Ut,Dt[2]].join(" "):w.precision===2?[F(X),F(it),F(gt),F(Ut),Dt[2]].join(" "):[L(X),L(it),L(gt),L(Ut),Dt[2]].join(" ");return E},Er=f.__private__.getFilters=function(){return s},dr=f.__private__.putStream=function(w){var E=(w=w||{}).data||"",X=w.filters||Er(),it=w.alreadyAppliedFilters||[],gt=w.addLength1||!1,Ut=E.length,Dt=w.objectId,Ae=function(gA){return gA};if(c!==null&&Dt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");c!==null&&(Ae=sn.encryptor(Dt,0));var te={};X===!0&&(X=["FlateEncode"]);var ve=w.additionalKeyValues||[],Fe=(te=ae.API.processDataByFilters!==void 0?ae.API.processDataByFilters(E,X):{data:E,reverseChain:[]}).reverseChain+(Array.isArray(it)?it.join(" "):it.toString());if(te.data.length!==0&&(ve.push({key:"Length",value:te.data.length}),gt===!0&&ve.push({key:"Length1",value:Ut})),Fe.length!=0)if(Fe.split("/").length-1==1)ve.push({key:"Filter",value:Fe});else{ve.push({key:"Filter",value:"["+Fe+"]"});for(var Oe=0;Oe<ve.length;Oe+=1)if(ve[Oe].key==="DecodeParms"){for(var jA=[],rA=0;rA<te.reverseChain.split("/").length-1;rA+=1)jA.push("null");jA.push(ve[Oe].value),ve[Oe].value="["+jA.join(" ")+"]"}}S("<<");for(var eA=0;eA<ve.length;eA++)S("/"+ve[eA].key+" "+ve[eA].value);S(">>"),te.data.length!==0&&(S("stream"),S(Ae(te.data)),S("endstream"))},eo=f.__private__.putPage=function(w){var E=w.number,X=w.data,it=w.objId,gt=w.contentsObjId;rn(it,!0),S("<</Type /Page"),S("/Parent "+w.rootDictionaryObjId+" 0 R"),S("/Resources "+w.resourceDictionaryObjId+" 0 R"),S("/MediaBox ["+parseFloat(O(w.mediaBox.bottomLeftX))+" "+parseFloat(O(w.mediaBox.bottomLeftY))+" "+O(w.mediaBox.topRightX)+" "+O(w.mediaBox.topRightY)+"]"),w.cropBox!==null&&S("/CropBox ["+O(w.cropBox.bottomLeftX)+" "+O(w.cropBox.bottomLeftY)+" "+O(w.cropBox.topRightX)+" "+O(w.cropBox.topRightY)+"]"),w.bleedBox!==null&&S("/BleedBox ["+O(w.bleedBox.bottomLeftX)+" "+O(w.bleedBox.bottomLeftY)+" "+O(w.bleedBox.topRightX)+" "+O(w.bleedBox.topRightY)+"]"),w.trimBox!==null&&S("/TrimBox ["+O(w.trimBox.bottomLeftX)+" "+O(w.trimBox.bottomLeftY)+" "+O(w.trimBox.topRightX)+" "+O(w.trimBox.topRightY)+"]"),w.artBox!==null&&S("/ArtBox ["+O(w.artBox.bottomLeftX)+" "+O(w.artBox.bottomLeftY)+" "+O(w.artBox.topRightX)+" "+O(w.artBox.topRightY)+"]"),typeof w.userUnit=="number"&&w.userUnit!==1&&S("/UserUnit "+w.userUnit),je.publish("putPage",{objId:it,pageContext:he[E],pageNumber:E,page:X}),S("/Contents "+gt+" 0 R"),S(">>"),S("endobj");var Ut=X.join(`
|
||
`);return _===Q&&(Ut+=`
|
||
Q`),rn(gt,!0),dr({data:Ut,filters:Er(),objectId:gt}),S("endobj"),it},$r=f.__private__.putPages=function(){var w,E,X=[];for(w=1;w<=ke;w++)he[w].objId=tn(),he[w].contentsObjId=tn();for(w=1;w<=ke;w++)X.push(eo({number:w,data:_t[w],objId:he[w].objId,contentsObjId:he[w].contentsObjId,mediaBox:he[w].mediaBox,cropBox:he[w].cropBox,bleedBox:he[w].bleedBox,trimBox:he[w].trimBox,artBox:he[w].artBox,userUnit:he[w].userUnit,rootDictionaryObjId:ls,resourceDictionaryObjId:Ur}));rn(ls,!0),S("<</Type /Pages");var it="/Kids [";for(E=0;E<ke;E++)it+=X[E]+" 0 R ";S(it+"]"),S("/Count "+ke),S(">>"),S("endobj"),je.publish("postPutPages")},Ao=function(w){je.publish("putFont",{font:w,out:S,newObject:_A,putStream:dr}),w.isAlreadyPutted!==!0&&(w.objectNumber=_A(),S("<<"),S("/Type /Font"),S("/BaseFont /"+Ma(w.postScriptName)),S("/Subtype /Type1"),typeof w.encoding=="string"&&S("/Encoding /"+w.encoding),S("/FirstChar 32"),S("/LastChar 255"),S(">>"),S("endobj"))},Jo=function(w){w.objectNumber=_A();var E=[];E.push({key:"Type",value:"/XObject"}),E.push({key:"Subtype",value:"/Form"}),E.push({key:"BBox",value:"["+[O(w.x),O(w.y),O(w.x+w.width),O(w.y+w.height)].join(" ")+"]"}),E.push({key:"Matrix",value:"["+w.matrix.toString()+"]"});var X=w.pages[1].join(`
|
||
`);dr({data:X,additionalKeyValues:E,objectId:w.objectNumber}),S("endobj")},Zo=function(w,E){E||(E=21);var X=_A(),it=function(Dt,Ae){var te,ve=[],Fe=1/(Ae-1);for(te=0;te<1;te+=Fe)ve.push(te);if(ve.push(1),Dt[0].offset!=0){var Oe={offset:0,color:Dt[0].color};Dt.unshift(Oe)}if(Dt[Dt.length-1].offset!=1){var jA={offset:1,color:Dt[Dt.length-1].color};Dt.push(jA)}for(var rA="",eA=0,gA=0;gA<ve.length;gA++){for(te=ve[gA];te>Dt[eA+1].offset;)eA++;var xA=Dt[eA].offset,FA=(te-xA)/(Dt[eA+1].offset-xA),dn=Dt[eA].color,Si=Dt[eA+1].color;rA+=et(Math.round((1-FA)*dn[0]+FA*Si[0]).toString(16))+et(Math.round((1-FA)*dn[1]+FA*Si[1]).toString(16))+et(Math.round((1-FA)*dn[2]+FA*Si[2]).toString(16))}return rA.trim()}(w.colors,E),gt=[];gt.push({key:"FunctionType",value:"0"}),gt.push({key:"Domain",value:"[0.0 1.0]"}),gt.push({key:"Size",value:"["+E+"]"}),gt.push({key:"BitsPerSample",value:"8"}),gt.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),gt.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),dr({data:it,additionalKeyValues:gt,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:X}),S("endobj"),w.objectNumber=_A(),S("<< /ShadingType "+w.type),S("/ColorSpace /DeviceRGB");var Ut="/Coords ["+O(parseFloat(w.coords[0]))+" "+O(parseFloat(w.coords[1]))+" ";w.type===2?Ut+=O(parseFloat(w.coords[2]))+" "+O(parseFloat(w.coords[3])):Ut+=O(parseFloat(w.coords[2]))+" "+O(parseFloat(w.coords[3]))+" "+O(parseFloat(w.coords[4]))+" "+O(parseFloat(w.coords[5])),S(Ut+="]"),w.matrix&&S("/Matrix ["+w.matrix.toString()+"]"),S("/Function "+X+" 0 R"),S("/Extend [true true]"),S(">>"),S("endobj")},ta=function(w,E){var X=tn(),it=_A();E.push({resourcesOid:X,objectOid:it}),w.objectNumber=it;var gt=[];gt.push({key:"Type",value:"/Pattern"}),gt.push({key:"PatternType",value:"1"}),gt.push({key:"PaintType",value:"1"}),gt.push({key:"TilingType",value:"1"}),gt.push({key:"BBox",value:"["+w.boundingBox.map(O).join(" ")+"]"}),gt.push({key:"XStep",value:O(w.xStep)}),gt.push({key:"YStep",value:O(w.yStep)}),gt.push({key:"Resources",value:X+" 0 R"}),w.matrix&>.push({key:"Matrix",value:"["+w.matrix.toString()+"]"}),dr({data:w.stream,additionalKeyValues:gt,objectId:w.objectNumber}),S("endobj")},pd=function(w){for(var E in w.objectNumber=_A(),S("<<"),w)switch(E){case"opacity":S("/ca "+F(w[E]));break;case"stroke-opacity":S("/CA "+F(w[E]))}S(">>"),S("endobj")},ll=function(w){rn(w.resourcesOid,!0),S("<<"),S("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var E in S("/Font <<"),Ee)Ee.hasOwnProperty(E)&&(u===!1||u===!0&&d.hasOwnProperty(E))&&S("/"+E+" "+Ee[E].objectNumber+" 0 R");S(">>")}(),function(){if(Object.keys(le).length>0){for(var E in S("/Shading <<"),le)le.hasOwnProperty(E)&&le[E]instanceof Lo&&le[E].objectNumber>=0&&S("/"+E+" "+le[E].objectNumber+" 0 R");je.publish("putShadingPatternDict"),S(">>")}}(),function(E){if(Object.keys(le).length>0){for(var X in S("/Pattern <<"),le)le.hasOwnProperty(X)&&le[X]instanceof f.TilingPattern&&le[X].objectNumber>=0&&le[X].objectNumber<E&&S("/"+X+" "+le[X].objectNumber+" 0 R");je.publish("putTilingPatternDict"),S(">>")}}(w.objectOid),function(){if(Object.keys(pe).length>0){var E;for(E in S("/ExtGState <<"),pe)pe.hasOwnProperty(E)&&pe[E].objectNumber>=0&&S("/"+E+" "+pe[E].objectNumber+" 0 R");je.publish("putGStateDict"),S(">>")}}(),function(){for(var E in S("/XObject <<"),hn)hn.hasOwnProperty(E)&&hn[E].objectNumber>=0&&S("/"+E+" "+hn[E].objectNumber+" 0 R");je.publish("putXobjectDict"),S(">>")}(),S(">>"),S("endobj")},nu=function(w){fe[w.fontName]=fe[w.fontName]||{},fe[w.fontName][w.fontStyle]=w.id},ru=function(w,E,X,it,gt){var Ut={id:"F"+(Object.keys(Ee).length+1).toString(10),postScriptName:w,fontName:E,fontStyle:X,encoding:it,isStandardFont:gt||!1,metadata:{}};return je.publish("addFont",{font:Ut,instance:this}),Ee[Ut.id]=Ut,nu(Ut),Ut.id},gr=f.__private__.pdfEscape=f.pdfEscape=function(w,E){return function(X,it){var gt,Ut,Dt,Ae,te,ve,Fe,Oe,jA;if(Dt=(it=it||{}).sourceEncoding||"Unicode",te=it.outputEncoding,(it.autoencode||te)&&Ee[Wt].metadata&&Ee[Wt].metadata[Dt]&&Ee[Wt].metadata[Dt].encoding&&(Ae=Ee[Wt].metadata[Dt].encoding,!te&&Ee[Wt].encoding&&(te=Ee[Wt].encoding),!te&&Ae.codePages&&(te=Ae.codePages[0]),typeof te=="string"&&(te=Ae[te]),te)){for(Fe=!1,ve=[],gt=0,Ut=X.length;gt<Ut;gt++)(Oe=te[X.charCodeAt(gt)])?ve.push(String.fromCharCode(Oe)):ve.push(X[gt]),ve[gt].charCodeAt(0)>>8&&(Fe=!0);X=ve.join("")}for(gt=X.length;Fe===void 0&>!==0;)X.charCodeAt(gt-1)>>8&&(Fe=!0),gt--;if(!Fe)return X;for(ve=it.noBOM?[]:[254,255],gt=0,Ut=X.length;gt<Ut;gt++){if((jA=(Oe=X.charCodeAt(gt))>>8)>>8)throw new Error("Character at position "+gt+" of string '"+X+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ve.push(jA),ve.push(Oe-(jA<<8))}return String.fromCharCode.apply(void 0,ve)}(w,E).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},cl=f.__private__.beginPage=function(w){_t[++ke]=[],he[ke]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(w[0]),topRightY:Number(w[1])}},su(ke),rt(_t[N])},iu=function(w,E){var X,it,gt;switch(A=E||A,typeof w=="string"&&(X=b(w.toLowerCase()),Array.isArray(X)&&(it=X[0],gt=X[1])),Array.isArray(w)&&(it=w[0]*oe,gt=w[1]*oe),isNaN(it)&&(it=r[0],gt=r[1]),(it>14400||gt>14400)&&(sA.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),it=Math.min(14400,it),gt=Math.min(14400,gt)),r=[it,gt],A.substr(0,1)){case"l":gt>it&&(r=[gt,it]);break;case"p":it>gt&&(r=[gt,it])}cl(r),_d(Be),S(sa),gl!==0&&S(gl+" J"),fs!==0&&S(fs+" j"),je.publish("addPage",{pageNumber:ke})},ul=function(w){w>0&&w<=ke&&(_t.splice(w,1),he.splice(w,1),ke--,N>ke&&(N=ke),this.setPage(N))},su=function(w){w>0&&w<=ke&&(N=w)},ou=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return _t.length-1},au=function(w,E,X){var it,gt=void 0;return X=X||{},w=w!==void 0?w:Ee[Wt].fontName,E=E!==void 0?E:Ee[Wt].fontStyle,it=w.toLowerCase(),fe[it]!==void 0&&fe[it][E]!==void 0?gt=fe[it][E]:fe[w]!==void 0&&fe[w][E]!==void 0?gt=fe[w][E]:X.disableWarning===!1&&sA.warn("Unable to look up font label for font '"+w+"', '"+E+"'. Refer to getFontList() for available fonts."),gt||X.noFallback||(gt=fe.times[E])==null&&(gt=fe.times.normal),gt},qr=f.__private__.putInfo=function(){var w=_A(),E=function(it){return it};for(var X in c!==null&&(E=sn.encryptor(w,0)),S("<<"),S("/Producer ("+gr(E("jsPDF "+ae.version))+")"),Yt)Yt.hasOwnProperty(X)&&Yt[X]&&S("/"+X.substr(0,1).toUpperCase()+X.substr(1)+" ("+gr(E(Yt[X]))+")");S("/CreationDate ("+gr(E(ft))+")"),S(">>"),S("endobj")},ea=f.__private__.putCatalog=function(w){var E=(w=w||{}).rootDictionaryObjId||ls;switch(_A(),S("<<"),S("/Type /Catalog"),S("/Pages "+E+" 0 R"),Ft||(Ft="fullwidth"),Ft){case"fullwidth":S("/OpenAction [3 0 R /FitH null]");break;case"fullheight":S("/OpenAction [3 0 R /FitV null]");break;case"fullpage":S("/OpenAction [3 0 R /Fit]");break;case"original":S("/OpenAction [3 0 R /XYZ null null 1]");break;default:var X=""+Ft;X.substr(X.length-1)==="%"&&(Ft=parseInt(Ft)/100),typeof Ft=="number"&&S("/OpenAction [3 0 R /XYZ null null "+F(Ft)+"]")}switch(Kt||(Kt="continuous"),Kt){case"continuous":S("/PageLayout /OneColumn");break;case"single":S("/PageLayout /SinglePage");break;case"two":case"twoleft":S("/PageLayout /TwoColumnLeft");break;case"tworight":S("/PageLayout /TwoColumnRight")}It&&S("/PageMode /"+It),je.publish("putCatalog"),S(">>"),S("endobj")},md=f.__private__.putTrailer=function(){S("trailer"),S("<<"),S("/Size "+(At+1)),S("/Root "+At+" 0 R"),S("/Info "+(At-1)+" 0 R"),c!==null&&S("/Encrypt "+sn.oid+" 0 R"),S("/ID [ <"+lt+"> <"+lt+"> ]"),S(">>")},VA=f.__private__.putHeader=function(){S("%PDF-"+m),S("%ºß¬à")},lu=f.__private__.putXRef=function(){var w="0000000000";S("xref"),S("0 "+(At+1)),S("0000000000 65535 f ");for(var E=1;E<=At;E++)typeof z[E]=="function"?S((w+z[E]()).slice(-10)+" 00000 n "):z[E]!==void 0?S((w+z[E]).slice(-10)+" 00000 n "):S("0000000000 00000 n ")},Xr=f.__private__.buildDocument=function(){var w;At=0,ot=0,nt=[],z=[],wt=[],ls=tn(),Ur=tn(),rt(nt),je.publish("buildDocument"),VA(),$r(),function(){je.publish("putAdditionalObjects");for(var X=0;X<wt.length;X++){var it=wt[X];rn(it.objId,!0),S(it.content),S("endobj")}je.publish("postPutAdditionalObjects")}(),w=[],function(){for(var X in Ee)Ee.hasOwnProperty(X)&&(u===!1||u===!0&&d.hasOwnProperty(X))&&Ao(Ee[X])}(),function(){var X;for(X in pe)pe.hasOwnProperty(X)&&pd(pe[X])}(),function(){for(var X in hn)hn.hasOwnProperty(X)&&Jo(hn[X])}(),function(X){var it;for(it in le)le.hasOwnProperty(it)&&(le[it]instanceof Lo?Zo(le[it]):le[it]instanceof Oa&&ta(le[it],X))}(w),je.publish("putResources"),w.forEach(ll),ll({resourcesOid:Ur,objectOid:Number.MAX_SAFE_INTEGER}),je.publish("postPutResources"),c!==null&&(sn.oid=_A(),S("<<"),S("/Filter /Standard"),S("/V "+sn.v),S("/R "+sn.r),S("/U <"+sn.toHexString(sn.U)+">"),S("/O <"+sn.toHexString(sn.O)+">"),S("/P "+sn.P),S(">>"),S("endobj")),qr(),ea();var E=ot;return lu(),md(),S("startxref"),S(""+E),S("%%EOF"),rt(_t[N]),nt.join(`
|
||
`)},Aa=f.__private__.getBlob=function(w){return new Blob([xt(w)],{type:"application/pdf"})},fl=function(w){for(;w.firstChild;)w.removeChild(w.firstChild)},Zn=function(w){var E,X=w.document,it=X.documentElement,gt=X.head,Ut=X.body;return gt||(gt=X.createElement("head"),it.appendChild(gt)),Ut||(Ut=X.createElement("body"),it.appendChild(Ut)),fl(gt),fl(Ut),(E=X.createElement("style")).appendChild(X.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),gt.appendChild(E),{document:X,body:Ut}},na=f.output=f.__private__.output=(hr=function(w,E){switch(typeof(E=E||{})=="string"?E={filename:E}:E.filename=E.filename||"generated.pdf",w){case void 0:return Xr();case"save":f.save(E.filename);break;case"arraybuffer":return xt(Xr());case"blob":return Aa(Xr());case"bloburi":case"bloburl":if(we.URL!==void 0&&typeof we.URL.createObjectURL=="function")return we.URL&&we.URL.createObjectURL(Aa(Xr()))||void 0;sA.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var X="",it=Xr();try{X=WB(it)}catch{X=WB(unescape(encodeURIComponent(it)))}return"data:application/pdf;filename="+encodeURIComponent(E.filename)+";base64,"+X;case"pdfobjectnewwindow":if(Object.prototype.toString.call(we)==="[object Window]"){var gt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ut=!E.pdfObjectUrl;Ut||(gt=E.pdfObjectUrl);var Dt=we.open();if(Dt!==null){var Ae=Zn(Dt),te=Ae.document.createElement("script"),ve=this;te.src=gt,Ut&&(te.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",te.crossOrigin="anonymous"),te.onload=function(){Dt.PDFObject.embed(ve.output("dataurlstring"),E)},Ae.body.appendChild(te)}return Dt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(we)==="[object Window]"){var Fe=E.pdfJsUrl||"examples/PDF.js/web/viewer.html",Oe=we.open();if(Oe!==null){var jA=Zn(Oe),rA=jA.document.createElement("iframe"),eA=Fe.indexOf("?")===-1?"?":"&";ve=this,rA.id="pdfViewer",rA.width="500px",rA.height="400px",rA.src=Fe+eA+"file=&downloadName="+encodeURIComponent(E.filename),rA.onload=function(){Oe.document.title=E.filename,rA.contentWindow.PDFViewerApplication.open(ve.output("bloburl"))},jA.body.appendChild(rA)}return Oe}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(we)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var gA=we.open();if(gA!==null){var xA=Zn(gA),FA=xA.document.createElement("iframe");FA.src=this.output("datauristring",E),xA.body.appendChild(FA),gA.document.title=E.filename}if(gA||typeof safari>"u")return gA;break;case"datauri":case"dataurl":return we.document.location.href=this.output("datauristring",E);default:return null}},hr.foo=function(){try{return hr.apply(this,arguments)}catch(X){var w=X.stack||"";~w.indexOf(" at ")&&(w=w.split(" at ")[1]);var E="Error in function "+w.split(`
|
||
`)[0].split("<")[0]+": "+X.message;if(!we.console)throw new Error(E);we.console.error(E,X),we.alert&&alert(E)}},hr.foo.bar=hr,hr.foo),_i=function(w){return Array.isArray(Zs)===!0&&Zs.indexOf(w)>-1};switch(n){case"pt":oe=1;break;case"mm":oe=72/25.4;break;case"cm":oe=72/2.54;break;case"in":oe=72;break;case"px":oe=_i("px_scaling")==1?.75:96/72;break;case"pc":case"em":oe=12;break;case"ex":oe=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);oe=n}var sn=null;j(),at();var cu=f.__private__.getPageInfo=f.getPageInfo=function(w){if(isNaN(w)||w%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:he[w].objId,pageNumber:w,pageContext:he[w]}},Bd=f.__private__.getPageInfoByObjId=function(w){if(isNaN(w)||w%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var E in he)if(he[E].objId===w)break;return cu(E)},wd=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:he[N].objId,pageNumber:N,pageContext:he[N]}};f.addPage=function(){return iu.apply(this,arguments),this},f.setPage=function(){return su.apply(this,arguments),rt.call(this,_t[N]),this},f.insertPage=function(w){return this.addPage(),this.movePage(N,w),this},f.movePage=function(w,E){var X,it;if(w>E){X=_t[w],it=he[w];for(var gt=w;gt>E;gt--)_t[gt]=_t[gt-1],he[gt]=he[gt-1];_t[E]=X,he[E]=it,this.setPage(E)}else if(w<E){X=_t[w],it=he[w];for(var Ut=w;Ut<E;Ut++)_t[Ut]=_t[Ut+1],he[Ut]=he[Ut+1];_t[E]=X,he[E]=it,this.setPage(E)}return this},f.deletePage=function(){return ul.apply(this,arguments),this},f.__private__.text=f.text=function(w,E,X,it,gt){var Ut,Dt,Ae,te,ve,Fe,Oe,jA,rA,eA=(it=it||{}).scope||this;if(typeof w=="number"&&typeof E=="number"&&(typeof X=="string"||Array.isArray(X))){var gA=X;X=E,E=w,w=gA}if(arguments[3]instanceof de==0?(Ae=arguments[4],te=arguments[5],Ze(Oe=arguments[3])==="object"&&Oe!==null||(typeof Ae=="string"&&(te=Ae,Ae=null),typeof Oe=="string"&&(te=Oe,Oe=null),typeof Oe=="number"&&(Ae=Oe,Oe=null),it={flags:Oe,angle:Ae,align:te})):(k("The transform parameter of text() with a Matrix value"),rA=gt),isNaN(E)||isNaN(X)||w==null)throw new Error("Invalid arguments passed to jsPDF.text");if(w.length===0)return eA;var xA,FA="",dn=typeof it.lineHeightFactor=="number"?it.lineHeightFactor:no,Si=eA.internal.scaleFactor;function wl(lA){return lA=lA.split(" ").join(Array(it.TabLen||9).join(" ")),gr(lA,Oe)}function so(lA){for(var cA,kA=lA.concat(),zA=[],ki=kA.length;ki--;)typeof(cA=kA.shift())=="string"?zA.push(cA):Array.isArray(lA)&&(cA.length===1||cA[1]===void 0&&cA[2]===void 0)?zA.push(cA[0]):zA.push([cA[0],cA[1],cA[2]]);return zA}function oo(lA,cA){var kA;if(typeof lA=="string")kA=cA(lA)[0];else if(Array.isArray(lA)){for(var zA,ki,Fl=lA.concat(),Ba=[],vu=Fl.length;vu--;)typeof(zA=Fl.shift())=="string"?Ba.push(cA(zA)[0]):Array.isArray(zA)&&typeof zA[0]=="string"&&(ki=cA(zA[0],zA[1],zA[2]),Ba.push([ki[0],ki[1],ki[2]]));kA=Ba}return kA}var hs=!1,ao=!0;if(typeof w=="string")hs=!0;else if(Array.isArray(w)){var ca=w.concat();Dt=[];for(var ua,gn=ca.length;gn--;)(typeof(ua=ca.shift())!="string"||Array.isArray(ua)&&typeof ua[0]!="string")&&(ao=!1);hs=ao}if(hs===!1)throw new Error('Type of text must be string or Array. "'+w+'" is not recognized.');typeof w=="string"&&(w=w.match(/[\r?\n]/)?w.split(/\r\n|\r|\n/g):[w]);var lo=mt/eA.internal.scaleFactor,co=lo*(dn-1);switch(it.baseline){case"bottom":X-=co;break;case"top":X+=lo-co;break;case"hanging":X+=lo-2*co;break;case"middle":X+=lo/2-co}if((Fe=it.maxWidth||0)>0&&(typeof w=="string"?w=eA.splitTextToSize(w,Fe):Object.prototype.toString.call(w)==="[object Array]"&&(w=w.reduce(function(lA,cA){return lA.concat(eA.splitTextToSize(cA,Fe))},[]))),Ut={text:w,x:E,y:X,options:it,mutex:{pdfEscape:gr,activeFontKey:Wt,fonts:Ee,activeFontSize:mt}},je.publish("preProcessText",Ut),w=Ut.text,Ae=(it=Ut.options).angle,rA instanceof de==0&&Ae&&typeof Ae=="number"){Ae*=Math.PI/180,it.rotationDirection===0&&(Ae=-Ae),_===Q&&(Ae=-Ae);var vl=Math.cos(Ae),Zr=Math.sin(Ae);rA=new de(vl,Zr,-Zr,vl,0,0)}else Ae&&Ae instanceof de&&(rA=Ae);_!==Q||rA||(rA=Fi),(ve=it.charSpace||oa)!==void 0&&(FA+=O(G(ve))+` Tc
|
||
`,this.setCharSpace(this.getCharSpace()||0)),(jA=it.horizontalScale)!==void 0&&(FA+=O(100*jA)+` Tz
|
||
`),it.lang;var Ln=-1,Bu=it.renderingMode!==void 0?it.renderingMode:it.stroke,fa=eA.internal.getCurrentPageInfo().pageContext;switch(Bu){case 0:case!1:case"fill":Ln=0;break;case 1:case!0:case"stroke":Ln=1;break;case 2:case"fillThenStroke":Ln=2;break;case 3:case"invisible":Ln=3;break;case 4:case"fillAndAddForClipping":Ln=4;break;case 5:case"strokeAndAddPathForClipping":Ln=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ln=6;break;case 7:case"addToPathForClipping":Ln=7}var wu=fa.usedRenderingMode!==void 0?fa.usedRenderingMode:-1;Ln!==-1?FA+=Ln+` Tr
|
||
`:wu!==-1&&(FA+=`0 Tr
|
||
`),Ln!==-1&&(fa.usedRenderingMode=Ln),te=it.align||"left";var pr,uo=mt*dn,bl=eA.internal.pageSize.getWidth(),ha=Ee[Wt];ve=it.charSpace||oa,Fe=it.maxWidth||0,Oe=Object.assign({autoencode:!0,noBOM:!0},it.flags);var fo=[],yl=function(lA){return eA.getStringUnitWidth(lA,{font:ha,charSpace:ve,fontSize:mt,doKerning:!1})*mt/Si};if(Object.prototype.toString.call(w)==="[object Array]"){var kn;Dt=so(w),te!=="left"&&(pr=Dt.map(yl));var Vn,da=0;if(te==="right"){E-=pr[0],w=[],gn=Dt.length;for(var ds=0;ds<gn;ds++)ds===0?(Vn=Ui(E),kn=Qi(X)):(Vn=G(da-pr[ds]),kn=-uo),w.push([Dt[ds],Vn,kn]),da=pr[ds]}else if(te==="center"){E-=pr[0]/2,w=[],gn=Dt.length;for(var gs=0;gs<gn;gs++)gs===0?(Vn=Ui(E),kn=Qi(X)):(Vn=G((da-pr[gs])/2),kn=-uo),w.push([Dt[gs],Vn,kn]),da=pr[gs]}else if(te==="left"){w=[],gn=Dt.length;for(var ga=0;ga<gn;ga++)w.push(Dt[ga])}else if(te==="justify"&&ha.encoding==="Identity-H"){w=[],gn=Dt.length,Fe=Fe!==0?Fe:bl;for(var ho=0,GA=0;GA<gn;GA++)if(kn=GA===0?Qi(X):-uo,Vn=GA===0?Ui(E):ho,GA<gn-1){var Nd=G((Fe-pr[GA])/(Dt[GA].split(" ").length-1)),ti=Dt[GA].split(" ");w.push([ti[0]+" ",Vn,kn]),ho=0;for(var Ir=1;Ir<ti.length;Ir++){var go=(yl(ti[Ir-1]+" "+ti[Ir])-yl(ti[Ir]))*Si+Nd;Ir==ti.length-1?w.push([ti[Ir],go,0]):w.push([ti[Ir]+" ",go,0]),ho-=go}}else w.push([Dt[GA],Vn,kn]);w.push(["",ho,0])}else{if(te!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(w=[],gn=Dt.length,Fe=Fe!==0?Fe:bl,GA=0;GA<gn;GA++){kn=GA===0?Qi(X):-uo,Vn=GA===0?Ui(E):0;var Cl=Dt[GA].split(" ").length-1,xl=Cl>0?(Fe-pr[GA])/Cl:0;GA<gn-1?fo.push(O(G(xl))):fo.push(0),w.push([Dt[GA],Vn,kn])}}}(typeof it.R2L=="boolean"?it.R2L:Mt)===!0&&(w=oo(w,function(lA,cA,kA){return[lA.split("").reverse().join(""),cA,kA]})),Ut={text:w,x:E,y:X,options:it,mutex:{pdfEscape:gr,activeFontKey:Wt,fonts:Ee,activeFontSize:mt}},je.publish("postProcessText",Ut),w=Ut.text,xA=Ut.mutex.isHex||!1;var pa=Ee[Wt].encoding;pa!=="WinAnsiEncoding"&&pa!=="StandardEncoding"||(w=oo(w,function(lA,cA,kA){return[wl(lA),cA,kA]})),Dt=so(w),w=[];for(var po,mo,ps,Li=Array.isArray(Dt[0])?1:0,ms="",ma=function(lA,cA,kA){var zA="";return kA instanceof de?(kA=typeof it.angle=="number"?xi(kA,new de(1,0,0,1,lA,cA)):xi(new de(1,0,0,1,lA,cA),kA),_===Q&&(kA=xi(new de(1,0,0,-1,0,0),kA)),zA=kA.join(" ")+` Tm
|
||
`):zA=O(lA)+" "+O(cA)+` Td
|
||
`,zA},pn=0;pn<Dt.length;pn++){switch(ms="",Li){case 1:ps=(xA?"<":"(")+Dt[pn][0]+(xA?">":")"),po=parseFloat(Dt[pn][1]),mo=parseFloat(Dt[pn][2]);break;case 0:ps=(xA?"<":"(")+Dt[pn]+(xA?">":")"),po=Ui(E),mo=Qi(X)}fo!==void 0&&fo[pn]!==void 0&&(ms=fo[pn]+` Tw
|
||
`),pn===0?w.push(ms+ma(po,mo,rA)+ps):Li===0?w.push(ms+ps):Li===1&&w.push(ms+ma(po,mo,rA)+ps)}w=Li===0?w.join(` Tj
|
||
T* `):w.join(` Tj
|
||
`),w+=` Tj
|
||
`;var ei=`BT
|
||
/`;return ei+=Wt+" "+mt+` Tf
|
||
`,ei+=O(mt*dn)+` TL
|
||
`,ei+=Jr+`
|
||
`,ei+=FA,ei+=w,S(ei+="ET"),d[Wt]=!0,eA};var vd=f.__private__.clip=f.clip=function(w){return S(w==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return vd("evenodd")},f.__private__.discardPath=f.discardPath=function(){return S("n"),this};var Yr=f.__private__.isValidStyle=function(w){var E=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(w)!==-1&&(E=!0),E};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(w){return Yr(w)&&(l=w),this};var uu=f.__private__.getStyle=f.getStyle=function(w){var E=l;switch(w){case"D":case"S":E="S";break;case"F":E="f";break;case"FD":case"DF":E="B";break;case"f":case"f*":case"B":case"B*":E=w}return E},ra=f.close=function(){return S("h"),this};f.stroke=function(){return S("S"),this},f.fill=function(w){return ia("f",w),this},f.fillEvenOdd=function(w){return ia("f*",w),this},f.fillStroke=function(w){return ia("B",w),this},f.fillStrokeEvenOdd=function(w){return ia("B*",w),this};var ia=function(w,E){Ze(E)==="object"?yd(E,w):S(w)},hl=function(w){w===null||_===Q&&w===void 0||(w=uu(w),S(w))};function bd(w,E,X,it,gt){var Ut=new Oa(E||this.boundingBox,X||this.xStep,it||this.yStep,this.gState,gt||this.matrix);Ut.stream=this.stream;var Dt=w+"$$"+this.cloneIndex+++"$$";return fr(Dt,Ut),Ut}var yd=function(w,E){var X=qe[w.key],it=le[X];if(it instanceof Lo)S("q"),S(Cd(E)),it.gState&&f.setGState(it.gState),S(w.matrix.toString()+" cm"),S("/"+X+" sh"),S("Q");else if(it instanceof Oa){var gt=new de(1,0,0,-1,0,io());w.matrix&&(gt=gt.multiply(w.matrix||Fi),X=bd.call(it,w.key,w.boundingBox,w.xStep,w.yStep,gt).id),S("q"),S("/Pattern cs"),S("/"+X+" scn"),it.gState&&f.setGState(it.gState),S(E),S("Q")}},Cd=function(w){switch(w){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},cs=f.moveTo=function(w,E){return S(O(G(w))+" "+O(q(E))+" m"),this},fu=f.lineTo=function(w,E){return S(O(G(w))+" "+O(q(E))+" l"),this},us=f.curveTo=function(w,E,X,it,gt,Ut){return S([O(G(w)),O(q(E)),O(G(X)),O(q(it)),O(G(gt)),O(q(Ut)),"c"].join(" ")),this};f.__private__.line=f.line=function(w,E,X,it,gt){if(isNaN(w)||isNaN(E)||isNaN(X)||isNaN(it)||!Yr(gt))throw new Error("Invalid arguments passed to jsPDF.line");return _===C?this.lines([[X-w,it-E]],w,E,[1,1],gt||"S"):this.lines([[X-w,it-E]],w,E,[1,1]).stroke()},f.__private__.lines=f.lines=function(w,E,X,it,gt,Ut){var Dt,Ae,te,ve,Fe,Oe,jA,rA,eA,gA,xA,FA;if(typeof w=="number"&&(FA=X,X=E,E=w,w=FA),it=it||[1,1],Ut=Ut||!1,isNaN(E)||isNaN(X)||!Array.isArray(w)||!Array.isArray(it)||!Yr(gt)||typeof Ut!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(E,X),Dt=it[0],Ae=it[1],ve=w.length,gA=E,xA=X,te=0;te<ve;te++)(Fe=w[te]).length===2?(gA=Fe[0]*Dt+gA,xA=Fe[1]*Ae+xA,fu(gA,xA)):(Oe=Fe[0]*Dt+gA,jA=Fe[1]*Ae+xA,rA=Fe[2]*Dt+gA,eA=Fe[3]*Ae+xA,gA=Fe[4]*Dt+gA,xA=Fe[5]*Ae+xA,us(Oe,jA,rA,eA,gA,xA));return Ut&&ra(),hl(gt),this},f.path=function(w){for(var E=0;E<w.length;E++){var X=w[E],it=X.c;switch(X.op){case"m":cs(it[0],it[1]);break;case"l":fu(it[0],it[1]);break;case"c":us.apply(this,it);break;case"h":ra()}}return this},f.__private__.rect=f.rect=function(w,E,X,it,gt){if(isNaN(w)||isNaN(E)||isNaN(X)||isNaN(it)||!Yr(gt))throw new Error("Invalid arguments passed to jsPDF.rect");return _===C&&(it=-it),S([O(G(w)),O(q(E)),O(G(X)),O(G(it)),"re"].join(" ")),hl(gt),this},f.__private__.triangle=f.triangle=function(w,E,X,it,gt,Ut,Dt){if(isNaN(w)||isNaN(E)||isNaN(X)||isNaN(it)||isNaN(gt)||isNaN(Ut)||!Yr(Dt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[X-w,it-E],[gt-X,Ut-it],[w-gt,E-Ut]],w,E,[1,1],Dt,!0),this},f.__private__.roundedRect=f.roundedRect=function(w,E,X,it,gt,Ut,Dt){if(isNaN(w)||isNaN(E)||isNaN(X)||isNaN(it)||isNaN(gt)||isNaN(Ut)||!Yr(Dt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ae=4/3*(Math.SQRT2-1);return gt=Math.min(gt,.5*X),Ut=Math.min(Ut,.5*it),this.lines([[X-2*gt,0],[gt*Ae,0,gt,Ut-Ut*Ae,gt,Ut],[0,it-2*Ut],[0,Ut*Ae,-gt*Ae,Ut,-gt,Ut],[2*gt-X,0],[-gt*Ae,0,-gt,-Ut*Ae,-gt,-Ut],[0,2*Ut-it],[0,-Ut*Ae,gt*Ae,-Ut,gt,-Ut]],w+gt,E,[1,1],Dt,!0),this},f.__private__.ellipse=f.ellipse=function(w,E,X,it,gt){if(isNaN(w)||isNaN(E)||isNaN(X)||isNaN(it)||!Yr(gt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ut=4/3*(Math.SQRT2-1)*X,Dt=4/3*(Math.SQRT2-1)*it;return cs(w+X,E),us(w+X,E-Dt,w+Ut,E-it,w,E-it),us(w-Ut,E-it,w-X,E-Dt,w-X,E),us(w-X,E+Dt,w-Ut,E+it,w,E+it),us(w+Ut,E+it,w+X,E+Dt,w+X,E),hl(gt),this},f.__private__.circle=f.circle=function(w,E,X,it){if(isNaN(w)||isNaN(E)||isNaN(X)||!Yr(it))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(w,E,X,X,it)},f.setFont=function(w,E,X){return X&&(E=R(E,X)),Wt=au(w,E,{disableWarning:!1}),this};var xd=f.__private__.getFont=f.getFont=function(){return Ee[au.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var w,E,X={};for(w in fe)if(fe.hasOwnProperty(w))for(E in X[w]=[],fe[w])fe[w].hasOwnProperty(E)&&X[w].push(E);return X},f.addFont=function(w,E,X,it,gt){var Ut=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ut.indexOf(arguments[3])!==-1?gt=arguments[3]:arguments[3]&&Ut.indexOf(arguments[3])==-1&&(X=R(X,it)),ru.call(this,w,E,X,gt=gt||"Identity-H")};var no,Be=e.lineWidth||.200025,Fd=f.__private__.getLineWidth=f.getLineWidth=function(){return Be},_d=f.__private__.setLineWidth=f.setLineWidth=function(w){return Be=w,S(O(G(w))+" w"),this};f.__private__.setLineDash=ae.API.setLineDash=ae.API.setLineDashPattern=function(w,E){if(w=w||[],E=E||0,isNaN(E)||!Array.isArray(w))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return w=w.map(function(X){return O(G(X))}).join(" "),E=O(G(E)),S("["+w+"] "+E+" d"),this};var Ud=f.__private__.getLineHeight=f.getLineHeight=function(){return mt*no};f.__private__.getLineHeight=f.getLineHeight=function(){return mt*no};var Qd=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(w){return typeof(w=w||1.15)=="number"&&(no=w),this},Ed=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return no};Qd(e.lineHeight);var Ui=f.__private__.getHorizontalCoordinate=function(w){return G(w)},Qi=f.__private__.getVerticalCoordinate=function(w){return _===Q?w:he[N].mediaBox.topRightY-he[N].mediaBox.bottomLeftY-G(w)},Id=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(w){return O(Ui(w))},Sd=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(w){return O(Qi(w))},sa=e.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return zr(sa)},f.__private__.setStrokeColor=f.setDrawColor=function(w,E,X,it){return sa=Qr({ch1:w,ch2:E,ch3:X,ch4:it,pdfColorType:"draw",precision:2}),S(sa),this};var dl=e.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return zr(dl)},f.__private__.setFillColor=f.setFillColor=function(w,E,X,it){return dl=Qr({ch1:w,ch2:E,ch3:X,ch4:it,pdfColorType:"fill",precision:2}),S(dl),this};var Jr=e.textColor||"0 g",Ld=f.__private__.getTextColor=f.getTextColor=function(){return zr(Jr)};f.__private__.setTextColor=f.setTextColor=function(w,E,X,it){return Jr=Qr({ch1:w,ch2:E,ch3:X,ch4:it,pdfColorType:"text",precision:3}),this};var oa=e.charSpace,kd=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(oa||0)};f.__private__.setCharSpace=f.setCharSpace=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return oa=w,this};var gl=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(w){var E=f.CapJoinStyles[w];if(E===void 0)throw new Error("Line cap style of '"+w+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return gl=E,S(E+" J"),this};var fs=0;f.__private__.setLineJoin=f.setLineJoin=function(w){var E=f.CapJoinStyles[w];if(E===void 0)throw new Error("Line join style of '"+w+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fs=E,S(E+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(w){if(w=w||0,isNaN(w))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return S(O(G(w))+" M"),this},f.GState=Uh,f.setGState=function(w){(w=typeof w=="string"?pe[xe[w]]:pl(null,w)).equals(wA)||(S("/"+w.id+" gs"),wA=w)};var pl=function(w,E){if(!w||!xe[w]){var X=!1;for(var it in pe)if(pe.hasOwnProperty(it)&&pe[it].equals(E)){X=!0;break}if(X)E=pe[it];else{var gt="GS"+(Object.keys(pe).length+1).toString(10);pe[gt]=E,E.id=gt}return w&&(xe[w]=E.id),je.publish("addGState",E),E}};f.addGState=function(w,E){return pl(w,E),this},f.saveGraphicsState=function(){return S("q"),Me.push({key:Wt,size:mt,color:Jr}),this},f.restoreGraphicsState=function(){S("Q");var w=Me.pop();return Wt=w.key,mt=w.size,Jr=w.color,wA=null,this},f.setCurrentTransformationMatrix=function(w){return S(w.toString()+" cm"),this},f.comment=function(w){return S("#"+w),this};var ro=function(w,E){var X=w||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return X},set:function(Ut){isNaN(Ut)||(X=parseFloat(Ut))}});var it=E||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return it},set:function(Ut){isNaN(Ut)||(it=parseFloat(Ut))}});var gt="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return gt},set:function(Ut){gt=Ut.toString()}}),this},ml=function(w,E,X,it){ro.call(this,w,E),this.type="rect";var gt=X||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return gt},set:function(Dt){isNaN(Dt)||(gt=parseFloat(Dt))}});var Ut=it||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ut},set:function(Dt){isNaN(Dt)||(Ut=parseFloat(Dt))}}),this},aa=function(){this.page=ke,this.currentPage=N,this.pages=_t.slice(0),this.pagesContext=he.slice(0),this.x=Xt,this.y=Ke,this.matrix=Le,this.width=hu(N),this.height=Ii(N),this.outputDestination=$,this.id="",this.objectNumber=-1};aa.prototype.restore=function(){ke=this.page,N=this.currentPage,he=this.pagesContext,_t=this.pages,Xt=this.x,Ke=this.y,Le=this.matrix,Ei(N,this.width),du(N,this.height),$=this.outputDestination};var Bl=function(w,E,X,it,gt){Wr.push(new aa),ke=N=0,_t=[],Xt=w,Ke=E,Le=gt,cl([X,it])};for(var la in f.beginFormObject=function(w,E,X,it,gt){return Bl(w,E,X,it,gt),this},f.endFormObject=function(w){return function(E){if(Ci[E])Wr.pop().restore();else{var X=new aa,it="Xo"+(Object.keys(hn).length+1).toString(10);X.id=it,Ci[E]=it,hn[it]=X,je.publish("addFormObject",X),Wr.pop().restore()}}(w),this},f.doFormObject=function(w,E){var X=hn[Ci[w]];return S("q"),S(E.toString()+" cm"),S("/"+X.id+" Do"),S("Q"),this},f.getFormObject=function(w){var E=hn[Ci[w]];return{x:E.x,y:E.y,width:E.width,height:E.height,matrix:E.matrix}},f.save=function(w,E){return w=w||"generated.pdf",(E=E||{}).returnPromise=E.returnPromise||!1,E.returnPromise===!1?(Qo(Aa(Xr()),w),typeof Qo.unload=="function"&&we.setTimeout&&setTimeout(Qo.unload,911),this):new Promise(function(X,it){try{var gt=Qo(Aa(Xr()),w);typeof Qo.unload=="function"&&we.setTimeout&&setTimeout(Qo.unload,911),X(gt)}catch(Ut){it(Ut.message)}})},ae.API)ae.API.hasOwnProperty(la)&&(la==="events"&&ae.API.events.length?function(w,E){var X,it,gt;for(gt=E.length-1;gt!==-1;gt--)X=E[gt][0],it=E[gt][1],w.subscribe.apply(w,[X].concat(typeof it=="function"?[it]:it))}(je,ae.API.events):f[la]=ae.API[la]);function hu(w){return he[w].mediaBox.topRightX-he[w].mediaBox.bottomLeftX}function Ei(w,E){he[w].mediaBox.topRightX=E+he[w].mediaBox.bottomLeftX}function Ii(w){return he[w].mediaBox.topRightY-he[w].mediaBox.bottomLeftY}function du(w,E){he[w].mediaBox.topRightY=E+he[w].mediaBox.bottomLeftY}var gu=f.getPageWidth=function(w){return hu(w=w||N)/oe},pu=f.setPageWidth=function(w,E){Ei(w,E*oe)},io=f.getPageHeight=function(w){return Ii(w=w||N)/oe},mu=f.setPageHeight=function(w,E){du(w,E*oe)};return f.internal={pdfEscape:gr,getStyle:uu,getFont:xd,getFontSize:bt,getCharSpace:kd,getTextColor:Ld,getLineHeight:Ud,getLineHeightFactor:Ed,getLineWidth:Fd,write:pt,getHorizontalCoordinate:Ui,getVerticalCoordinate:Qi,getCoordinateString:Id,getVerticalCoordinateString:Sd,collections:{},newObject:_A,newAdditionalObject:to,newObjectDeferred:tn,newObjectDeferredBegin:rn,getFilters:Er,putStream:dr,events:je,scaleFactor:oe,pageSize:{getWidth:function(){return gu(N)},setWidth:function(w){pu(N,w)},getHeight:function(){return io(N)},setHeight:function(w){mu(N,w)}},encryptionOptions:c,encryption:sn,getEncryptor:function(w){return c!==null?sn.encryptor(w,0):function(E){return E}},output:na,getNumberOfPages:ou,get pages(){return _t},out:S,f2:F,f3:L,getPageInfo:cu,getPageInfoByObjId:Bd,getCurrentPageInfo:wd,getPDFVersion:B,Point:ro,Rectangle:ml,Matrix:de,hasHotfix:_i},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return gu(N)},set:function(w){pu(N,w)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return io(N)},set:function(w){mu(N,w)},enumerable:!0,configurable:!0}),(function(w){for(var E=0,X=Et.length;E<X;E++){var it=ru.call(this,w[E][0],w[E][1],w[E][2],Et[E][3],!0);u===!1&&(d[it]=!0);var gt=w[E][0].split("-");nu({id:it,fontName:gt[0],fontStyle:gt[1]||""})}je.publish("addFonts",{fonts:Ee,dictionary:fe})}).call(f,Et),Wt="F1",iu(r,A),je.publish("initialized"),f}Ha.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Ha.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ha.prototype.hexToBytes=function(e){for(var t=[],A=0;A<e.length;A+=2)t.push(String.fromCharCode(parseInt(e.substr(A,2),16)));return t.join("")},Ha.prototype.processOwnerPassword=function(e,t){return o0(s0(t).substr(0,5),e)},Ha.prototype.encryptor=function(e,t){var A=s0(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return o0(A,n)}},Uh.prototype.equals=function(e){var t,A="id,objectNumber,equals";if(!e||Ze(e)!==Ze(this))return!1;var n=0;for(t in this)if(!(A.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&A.indexOf(t)<0&&n--;return n===0},ae.API={events:[]},ae.version="4.2.1";var IA=ae.API,s1=1,Xo=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Qa=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Wo=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var A=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(A.length===1?"0"+A:A)})},be=function(e){return e.toFixed(2)},_s=function(e){return e.toFixed(5)};IA.__acroform__={};var Jn=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},XB=function(e){return e*s1},ii=function(e){var t=new Gy,A=Zt.internal.getHeight(e)||0,n=Zt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(be(n)),Number(be(A))],t},g8=IA.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},p8=IA.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},m8=IA.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},TA=IA.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return m8(e,t-1)},OA=IA.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return g8(e,t-1)},PA=IA.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return p8(e,t-1)},B8=IA.__acroform__.calculateCoordinates=function(e,t){var A=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,r=e[0],i=e[1],s=e[2],o=e[3],a={};return a.lowerLeft_X=A(r)||0,a.lowerLeft_Y=n(i+o)||0,a.upperRight_X=A(r+s)||0,a.upperRight_Y=n(i)||0,[Number(be(a.lowerLeft_X)),Number(be(a.lowerLeft_Y)),Number(be(a.upperRight_X)),Number(be(a.upperRight_Y))]},w8=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],A=e._V||e.DV,n=a0(e,A),r=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+r+" "+be(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=ii(e);return i.scope=e.scope,i.stream=t.join(`
|
||
`),i}},a0=function(e,t){var A=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},r=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");r=e.multiline?r.map(function(F){return F.split(`
|
||
`)}):r.map(function(F){return[F]});var i=A,s=Zt.internal.getHeight(e)||0;s=s<0?-s:s;var o=Zt.internal.getWidth(e)||0;o=o<0?-o:o;var a=function(F,L,G){if(F+1<r.length){var q=L+" "+r[F+1][0];return wf(q,e,G).width<=o-4}return!1};i++;t:for(;i>0;){t="",i--;var l,c,u=wf("3",e,i).height,d=e.multiline?s-i:(s-u)/2,f=d+=2,m=0,B=0,v=0;if(i<=0){t=`(...) Tj
|
||
`,t+="% Width of Text: "+wf(t,e,i=12).width+", FieldWidth:"+o+`
|
||
`;break}for(var b="",C=0,Q=0;Q<r.length;Q++)if(r.hasOwnProperty(Q)){var _=!1;if(r[Q].length!==1&&v!==r[Q].length-1){if((u+2)*(C+2)+2>s)continue t;b+=r[Q][v],_=!0,B=Q,Q--}else{b=(b+=r[Q][v]+" ").substr(b.length-1)==" "?b.substr(0,b.length-1):b;var H=parseInt(Q),W=a(H,b,i),R=Q>=r.length-1;if(W&&!R){b+=" ",v=0;continue}if(W||R){if(R)B=H;else if(e.multiline&&(u+2)*(C+2)+2>s)continue t}else{if(!e.multiline||(u+2)*(C+2)+2>s)continue t;B=H}}for(var O="",k=m;k<=B;k++){var V=r[k];if(e.multiline){if(k===B){O+=V[v]+" ",v=(v+1)%V.length;continue}if(k===m){O+=V[V.length-1]+" ";continue}}O+=V[0]+" "}switch(O=O.substr(O.length-1)==" "?O.substr(0,O.length-1):O,c=wf(O,e,i).width,e.textAlign){case"right":l=o-c-2;break;case"center":l=(o-c)/2;break;default:l=2}t+=be(l)+" "+be(f)+` Td
|
||
`,t+="("+Xo(O)+`) Tj
|
||
`,t+=-be(l)+` 0 Td
|
||
`,f=-(i+2),c=0,m=_?B:B+1,C++,b=""}break}return n.text=t,n.fontSize=i,n},wf=function(e,t,A){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),r=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(A),charSpace:0})*parseFloat(A);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(A),charSpace:0})*parseFloat(A)*1.5,width:r}},v8={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},b8=function(e,t){var A={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===A.type&&n.object===A.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(A)},y8=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(jr.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(v8)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");s1=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Wy,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(A){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];i.objId=void 0,i.hasAnnotation&&b8(i,A)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(A){if(A.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(A){(function(n,r){var i=!n;for(var s in n||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(s)){var o=n[s],a=[],l=o.Rect;if(o.Rect&&(o.Rect=B8(o.Rect,r)),r.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Zt.createDefaultAppearanceStream(o),Ze(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(a=o.getKeyValueListForStream()),o.Rect=l,o.hasAppearanceStream&&!o.appearanceStreamContent){var c=w8(o);a.push({key:"AP",value:"<</N "+c+">>"}),r.internal.acroformPlugin.xForms.push(c)}if(o.appearanceStreamContent){var u="";for(var d in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(d)){var f=o.appearanceStreamContent[d];if(u+="/"+d+" ",u+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var s in f)if(f.hasOwnProperty(s)){var m=f[s];typeof m=="function"&&(m=m.call(r,o)),u+="/"+s+" "+m+" ",r.internal.acroformPlugin.xForms.indexOf(m)>=0||r.internal.acroformPlugin.xForms.push(m)}}else typeof(m=f)=="function"&&(m=m.call(r,o)),u+="/"+s+" "+m,r.internal.acroformPlugin.xForms.indexOf(m)>=0||r.internal.acroformPlugin.xForms.push(m);u+=">>"}a.push({key:"AP",value:`<<
|
||
`+u+">>"})}r.internal.putStream({additionalKeyValues:a,objectId:o.objId}),r.internal.out("endobj")}i&&function(B,v){for(var b in B)if(B.hasOwnProperty(b)){var C=b,Q=B[b];v.internal.newObjectDeferredBegin(Q.objId,!0),Ze(Q)==="object"&&typeof Q.putStream=="function"&&Q.putStream(),delete B[C]}}(r.internal.acroformPlugin.xForms,r)})(A,e)}),e.internal.acroformPlugin.isInitialized=!0}},jy=IA.__acroform__.arrayToPdfArray=function(e,t,A){var n=function(s){return s};if(Array.isArray(e)){for(var r="[",i=0;i<e.length;i++)switch(i!==0&&(r+=" "),Ze(e[i])){case"boolean":case"number":case"object":r+=e[i].toString();break;case"string":e[i].substr(0,1)==="/"?r+="/"+Wo(e[i].substr(1)):(t!==void 0&&A&&(n=A.internal.getEncryptor(t)),r+="("+Xo(n(e[i].toString()))+")")}return r+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},$g=function(e,t,A){var n=function(r){return r};return t!==void 0&&A&&(n=A.internal.getEncryptor(t)),(e=e||"").toString(),"("+Xo(n(e))+")"},fi=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(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};fi.prototype.toString=function(){return this.objId+" 0 R"},fi.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},fi.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var A in t)if(Object.getOwnPropertyDescriptor(this,t[A]).configurable===!1){var n=t[A],r=this[n];r&&(Array.isArray(r)?e.push({key:n,value:jy(r,this.objId,this.scope)}):r instanceof fi?(r.scope=this.scope,e.push({key:n,value:r.objId+" 0 R"})):typeof r!="function"&&e.push({key:n,value:r}))}return e};var Gy=function(){fi.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 e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(A){e=A.trim()},get:function(){return e||null}})};Jn(Gy,fi);var Wy=function(){fi.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var A=function(n){return n};return this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),"("+Xo(A(e))+")"}},set:function(A){e=A}})};Jn(Wy,fi);var jr=function e(){fi.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(b){if(isNaN(b))throw new Error('Invalid value "'+b+'" for attribute F supplied.');t=b}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!TA(t,3)},set:function(b){b?this.F=OA(t,3):this.F=PA(t,3)}});var A=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return A},set:function(b){if(isNaN(b))throw new Error('Invalid value "'+b+'" for attribute Ff supplied.');A=b}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(b){n=b!==void 0?b:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(b){n[0]=b}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(b){n[1]=b}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(b){n[2]=b}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(b){n[3]=b}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(b){switch(b){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=b;break;default:throw new Error('Invalid value "'+b+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Qh)return;i="FieldObject"+e.FieldNum++}var b=function(C){return C};return this.scope&&(b=this.scope.internal.getEncryptor(this.objId)),"("+Xo(b(i))+")"},set:function(b){i=b.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(b){i=b}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(b){s=b}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(b){o=b}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(b){a=b}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/s1:l},set:function(b){l=b}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(b){c=b}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof Qh||this instanceof Ro))return $g(u,this.objId,this.scope)},set:function(b){b=b.toString(),u=b}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof An==0?$g(d,this.objId,this.scope):d},set:function(b){b=b.toString(),d=this instanceof An==0?b.substr(0,1)==="("?Qa(b.substr(1,b.length-2)):Qa(b):b}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof An==1?Qa(d.substr(1,d.length-1)):d},set:function(b){b=b.toString(),d=this instanceof An==1?"/"+Wo(b):b}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(b){this.V=b}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof An==0?$g(f,this.objId,this.scope):f},set:function(b){b=b.toString(),f=this instanceof An==0?b.substr(0,1)==="("?Qa(b.substr(1,b.length-2)):Qa(b):b}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof An==1?Qa(f.substr(1,f.length-1)):f},set:function(b){b=b.toString(),f=this instanceof An==1?"/"+Wo(b):b}}),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 m,B=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return B},set:function(b){b=!!b,B=b}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(b){m=b}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,1)},set:function(b){b?this.Ff=OA(this.Ff,1):this.Ff=PA(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,2)},set:function(b){b?this.Ff=OA(this.Ff,2):this.Ff=PA(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,3)},set:function(b){b?this.Ff=OA(this.Ff,3):this.Ff=PA(this.Ff,3)}});var v=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(v!==null)return v},set:function(b){if([0,1,2].indexOf(b)===-1)throw new Error('Invalid value "'+b+'" for attribute Q supplied.');v=b}}),Object.defineProperty(this,"textAlign",{get:function(){var b;switch(v){case 0:default:b="left";break;case 1:b="center";break;case 2:b="right"}return b},configurable:!0,enumerable:!0,set:function(b){switch(b){case"right":case 2:v=2;break;case"center":case 1:v=1;break;default:v=0}}})};Jn(jr,fi);var Ga=function(){jr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(A){e=A}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return jy(t,this.objId,this.scope)},set:function(A){var n,r;r=[],typeof(n=A)=="string"&&(r=function(i,s,o){o||(o=1);for(var a,l=[];a=s.exec(i);)l.push(a[o]);return l}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(A){t=A,this.sort&&t.sort()},this.addOption=function(A){A=(A=A||"").toString(),t.push(A),this.sort&&t.sort()},this.removeOption=function(A,n){for(n=n||!1,A=(A=A||"").toString();t.indexOf(A)!==-1&&(t.splice(t.indexOf(A),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,18)},set:function(A){A?this.Ff=OA(this.Ff,18):this.Ff=PA(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,19)},set:function(A){this.combo===!0&&(A?this.Ff=OA(this.Ff,19):this.Ff=PA(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,20)},set:function(A){A?(this.Ff=OA(this.Ff,20),t.sort()):this.Ff=PA(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,22)},set:function(A){A?this.Ff=OA(this.Ff,22):this.Ff=PA(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,23)},set:function(A){A?this.Ff=OA(this.Ff,23):this.Ff=PA(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,27)},set:function(A){A?this.Ff=OA(this.Ff,27):this.Ff=PA(this.Ff,27)}}),this.hasAppearanceStream=!1};Jn(Ga,jr);var Wa=function(){Ga.call(this),this.fontName="helvetica",this.combo=!1};Jn(Wa,Ga);var za=function(){Wa.call(this),this.combo=!0};Jn(za,Wa);var Gf=function(){za.call(this),this.edit=!0};Jn(Gf,za);var An=function(){jr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,15)},set:function(A){A?this.Ff=OA(this.Ff,15):this.Ff=PA(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,16)},set:function(A){A?this.Ff=OA(this.Ff,16):this.Ff=PA(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,17)},set:function(A){A?this.Ff=OA(this.Ff,17):this.Ff=PA(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,26)},set:function(A){A?this.Ff=OA(this.Ff,26):this.Ff=PA(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(i){return i};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+Xo(A(t[n]))+")");return r.push(">>"),r.join(`
|
||
`)}},set:function(A){Ze(A)==="object"&&(t=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(A){typeof A=="string"&&(t.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){var n=A==null?"":A.toString();n.substr(0,1)==="/"&&(n=n.substr(1)),e="/"+Wo(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(A){e="/"+Wo(A)}})};Jn(An,jr);var Wf=function(){An.call(this),this.pushButton=!0};Jn(Wf,An);var $a=function(){An.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Jn($a,An);var Qh=function(){var e,t;jr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r}});var A,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(o){return o};this.scope&&(r=this.scope.internal.getEncryptor(this.objId));var i,s=[];for(i in s.push("<<"),n)s.push("/"+i+" ("+Xo(r(n[i]))+")");return s.push(">>"),s.join(`
|
||
`)},set:function(r){Ze(r)==="object"&&(n=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(r){typeof r=="string"&&(n.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(r){var i=r==null?"":r.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),A="/"+Wo(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(r){var i=r==null?"":r.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),A="/"+Wo(i)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Zt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Jn(Qh,jr),$a.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var A=this.Kids[t];A.appearanceStreamContent=e.createAppearanceStream(A.optionName),A.caption=e.getCA()}},$a.prototype.createOption=function(e){var t=new Qh;return t.Parent=this,t.optionName=e,this.Kids.push(t),C8.call(this.scope,t),t};var zf=function(){An.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Zt.CheckBox.createAppearanceStream()};Jn(zf,An);var Ro=function(){jr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,13)},set:function(t){t?this.Ff=OA(this.Ff,13):this.Ff=PA(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,21)},set:function(t){t?this.Ff=OA(this.Ff,21):this.Ff=PA(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,23)},set:function(t){t?this.Ff=OA(this.Ff,23):this.Ff=PA(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,24)},set:function(t){t?this.Ff=OA(this.Ff,24):this.Ff=PA(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,25)},set:function(t){t?this.Ff=OA(this.Ff,25):this.Ff=PA(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,26)},set:function(t){t?this.Ff=OA(this.Ff,26):this.Ff=PA(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Jn(Ro,jr);var $f=function(){Ro.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,14)},set:function(e){e?this.Ff=OA(this.Ff,14):this.Ff=PA(this.Ff,14)}}),this.password=!0};Jn($f,Ro);var Zt={CheckBox:{createAppearanceStream:function(){return{N:{On:Zt.CheckBox.YesNormal},D:{On:Zt.CheckBox.YesPushDown,Off:Zt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=a0(e,e.caption);return A.push("0.749023 g"),A.push("0 0 "+be(Zt.internal.getWidth(e))+" "+be(Zt.internal.getHeight(e))+" re"),A.push("f"),A.push("BMC"),A.push("q"),A.push("0 0 1 rg"),A.push("/"+n+" "+be(i.fontSize)+" Tf "+r),A.push("BT"),A.push(i.text),A.push("ET"),A.push("Q"),A.push("EMC"),t.stream=A.join(`
|
||
`),t},YesNormal:function(e){var t=ii(e);t.scope=e.scope;var A=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),r=[],i=Zt.internal.getHeight(e),s=Zt.internal.getWidth(e),o=a0(e,e.caption);return r.push("1 g"),r.push("0 0 "+be(s)+" "+be(i)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+be(s-1)+" "+be(i-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+A+" "+be(o.fontSize)+" Tf "+n),r.push(o.text),r.push("ET"),r.push("Q"),t.stream=r.join(`
|
||
`),t},OffPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+be(Zt.internal.getWidth(e))+" "+be(Zt.internal.getHeight(e))+" re"),A.push("f"),t.stream=A.join(`
|
||
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Zt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Zt.RadioButton.Circle.YesNormal,t.D[e]=Zt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=Zt.internal.getWidth(e)<=Zt.internal.getHeight(e)?Zt.internal.getWidth(e)/4:Zt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Zt.internal.Bezier_C,i=Number((n*r).toFixed(5));return A.push("q"),A.push("1 0 0 1 "+_s(Zt.internal.getWidth(e)/2)+" "+_s(Zt.internal.getHeight(e)/2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),A.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),A.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),A.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),A.push("f"),A.push("Q"),t.stream=A.join(`
|
||
`),t},YesPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=Zt.internal.getWidth(e)<=Zt.internal.getHeight(e)?Zt.internal.getWidth(e)/4:Zt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Number((2*n).toFixed(5)),i=Number((r*Zt.internal.Bezier_C).toFixed(5)),s=Number((n*Zt.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+_s(Zt.internal.getWidth(e)/2)+" "+_s(Zt.internal.getHeight(e)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),A.push("0 g"),A.push("q"),A.push("1 0 0 1 "+_s(Zt.internal.getWidth(e)/2)+" "+_s(Zt.internal.getHeight(e)/2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),A.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),A.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),A.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),A.push("f"),A.push("Q"),t.stream=A.join(`
|
||
`),t},OffPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=Zt.internal.getWidth(e)<=Zt.internal.getHeight(e)?Zt.internal.getWidth(e)/4:Zt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Number((2*n).toFixed(5)),i=Number((r*Zt.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+_s(Zt.internal.getWidth(e)/2)+" "+_s(Zt.internal.getHeight(e)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),t.stream=A.join(`
|
||
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Zt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Zt.RadioButton.Cross.YesNormal,t.D[e]=Zt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=Zt.internal.calculateCross(e);return A.push("q"),A.push("1 1 "+be(Zt.internal.getWidth(e)-2)+" "+be(Zt.internal.getHeight(e)-2)+" re"),A.push("W"),A.push("n"),A.push(be(n.x1.x)+" "+be(n.x1.y)+" m"),A.push(be(n.x2.x)+" "+be(n.x2.y)+" l"),A.push(be(n.x4.x)+" "+be(n.x4.y)+" m"),A.push(be(n.x3.x)+" "+be(n.x3.y)+" l"),A.push("s"),A.push("Q"),t.stream=A.join(`
|
||
`),t},YesPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=Zt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+be(Zt.internal.getWidth(e))+" "+be(Zt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+be(Zt.internal.getWidth(e)-2)+" "+be(Zt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(be(A.x1.x)+" "+be(A.x1.y)+" m"),n.push(be(A.x2.x)+" "+be(A.x2.y)+" l"),n.push(be(A.x4.x)+" "+be(A.x4.y)+" m"),n.push(be(A.x3.x)+" "+be(A.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
|
||
`),t},OffPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+be(Zt.internal.getWidth(e))+" "+be(Zt.internal.getHeight(e))+" re"),A.push("f"),t.stream=A.join(`
|
||
`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,A=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+A}};Zt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Zt.internal.getWidth(e),A=Zt.internal.getHeight(e),n=Math.min(t,A);return{x1:{x:(t-n)/2,y:(A-n)/2+n},x2:{x:(t-n)/2+n,y:(A-n)/2},x3:{x:(t-n)/2,y:(A-n)/2},x4:{x:(t-n)/2+n,y:(A-n)/2+n}}}},Zt.internal.getWidth=function(e){var t=0;return Ze(e)==="object"&&(t=XB(e.Rect[2])),t},Zt.internal.getHeight=function(e){var t=0;return Ze(e)==="object"&&(t=XB(e.Rect[3])),t};var C8=IA.addField=function(e){if(y8(this,e),!(e instanceof jr))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};IA.AcroFormChoiceField=Ga,IA.AcroFormListBox=Wa,IA.AcroFormComboBox=za,IA.AcroFormEditBox=Gf,IA.AcroFormButton=An,IA.AcroFormPushButton=Wf,IA.AcroFormRadioButton=$a,IA.AcroFormCheckBox=zf,IA.AcroFormTextField=Ro,IA.AcroFormPasswordField=$f,IA.AcroFormAppearance=Zt,IA.AcroForm={ChoiceField:Ga,ListBox:Wa,ComboBox:za,EditBox:Gf,Button:An,PushButton:Wf,RadioButton:$a,CheckBox:zf,TextField:Ro,PasswordField:$f,Appearance:Zt},ae.AcroForm={ChoiceField:Ga,ListBox:Wa,ComboBox:za,EditBox:Gf,Button:An,PushButton:Wf,RadioButton:$a,CheckBox:zf,TextField:Ro,PasswordField:$f,Appearance:Zt};ae.AcroForm;function zy(e){return e.reduce(function(t,A,n){return t[A]=n,t},{})}(function(e){var t="addImage_";e.__addimage__={};var A="UNKNOWN",n={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]]},r=e.__addimage__.getImageFileTypeByImageData=function(F,L){var G,q,ft,lt,ct,at=A;if((L=L||A)==="RGBA"||F.data!==void 0&&F.data instanceof Uint8ClampedArray&&"height"in F&&"width"in F)return"RGBA";if(W(F))for(ct in n)for(ft=n[ct],G=0;G<ft.length;G+=1){for(lt=!0,q=0;q<ft[G].length;q+=1)if(ft[G][q]!==void 0&&ft[G][q]!==F[q]){lt=!1;break}if(lt===!0){at=ct;break}}else for(ct in n)for(ft=n[ct],G=0;G<ft.length;G+=1){for(lt=!0,q=0;q<ft[G].length;q+=1)if(ft[G][q]!==void 0&&ft[G][q]!==F.charCodeAt(q)){lt=!1;break}if(lt===!0){at=ct;break}}return at===A&&L!==A&&(at=L),at},i=function F(L){for(var G=this.internal.write,q=this.internal.putStream,ft=(0,this.internal.getFilters)();ft.indexOf("FlateEncode")!==-1;)ft.splice(ft.indexOf("FlateEncode"),1);L.objectId=this.internal.newObject();var lt=[];if(lt.push({key:"Type",value:"/XObject"}),lt.push({key:"Subtype",value:"/Image"}),lt.push({key:"Width",value:L.width}),lt.push({key:"Height",value:L.height}),L.colorSpace===b.INDEXED?lt.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(L.palette.length/3-1)+" "+("sMask"in L&&L.sMask!==void 0?L.objectId+2:L.objectId+1)+" 0 R]"}):(lt.push({key:"ColorSpace",value:"/"+L.colorSpace}),L.colorSpace===b.DEVICE_CMYK&<.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),lt.push({key:"BitsPerComponent",value:L.bitsPerComponent}),"decodeParameters"in L&&L.decodeParameters!==void 0&<.push({key:"DecodeParms",value:"<<"+L.decodeParameters+">>"}),"transparency"in L&&Array.isArray(L.transparency)&&L.transparency.length>0){for(var ct="",at=0,st=L.transparency.length;at<st;at++)ct+=L.transparency[at]+" "+L.transparency[at]+" ";lt.push({key:"Mask",value:"["+ct+"]"})}L.sMask!==void 0&<.push({key:"SMask",value:L.objectId+1+" 0 R"});var Z=L.filter!==void 0?["/"+L.filter]:void 0;if(q({data:L.data,additionalKeyValues:lt,alreadyAppliedFilters:Z,objectId:L.objectId}),G("endobj"),"sMask"in L&&L.sMask!==void 0){var j,U=(j=L.sMaskBitsPerComponent)!==null&&j!==void 0?j:L.bitsPerComponent,N={width:L.width,height:L.height,colorSpace:"DeviceGray",bitsPerComponent:U,data:L.sMask};"filter"in L&&(N.decodeParameters="/Predictor ".concat(L.predictor," /Colors 1 /BitsPerComponent ").concat(U," /Columns ").concat(L.width),N.filter=L.filter),F.call(this,N)}if(L.colorSpace===b.INDEXED){var tt=this.internal.newObject();q({data:O(new Uint8Array(L.palette)),objectId:tt}),G("endobj")}},s=function(){var F=this.internal.collections[t+"images"];for(var L in F)i.call(this,F[L])},o=function(){var F,L=this.internal.collections[t+"images"],G=this.internal.write;for(var q in L)G("/I"+(F=L[q]).index,F.objectId,"0","R")},a=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var F=this.internal.collections[t+"images"];return a.call(this),F},c=function(){return Object.keys(this.internal.collections[t+"images"]).length},u=function(F){return typeof e["process"+F.toUpperCase()]=="function"},d=function(F){return Ze(F)==="object"&&F.nodeType===1},f=function(F,L){if(F.nodeName==="IMG"&&F.hasAttribute("src")){var G=""+F.getAttribute("src");if(G.indexOf("data:image/")===0)return jf(unescape(G).split("base64,").pop());var q=e.loadFile(G,!0);if(q!==void 0)return q}if(F.nodeName==="CANVAS"){if(F.width===0||F.height===0)throw new Error("Given canvas must have data. Canvas width: "+F.width+", height: "+F.height);var ft;switch(L){case"PNG":ft="image/png";break;case"WEBP":ft="image/webp";break;default:ft="image/jpeg"}return jf(F.toDataURL(ft,1).split("base64,").pop())}},m=function(F){var L=this.internal.collections[t+"images"];if(L){for(var G in L)if(F===L[G].alias)return L[G]}},B=function(F,L,G){return F||L||(F=-96,L=-96),F<0&&(F=-1*G.width*72/F/this.internal.scaleFactor),L<0&&(L=-1*G.height*72/L/this.internal.scaleFactor),F===0&&(F=L*G.width/G.height),L===0&&(L=F*G.height/G.width),[F,L]},v=function(F,L,G,q,ft,lt){var ct=B.call(this,G,q,ft),at=this.internal.getCoordinateString,st=this.internal.getVerticalCoordinateString,Z=l.call(this);if(G=ct[0],q=ct[1],Z[ft.index]=ft,lt){lt*=Math.PI/180;var j=Math.cos(lt),U=Math.sin(lt),N=function(et){return et.toFixed(4)},tt=[N(j),N(U),N(-1*U),N(j),0,0,"cm"]}this.internal.write("q"),lt?(this.internal.write([1,"0","0",1,at(F),st(L+q),"cm"].join(" ")),this.internal.write(tt.join(" ")),this.internal.write([at(G),"0","0",at(q),"0","0","cm"].join(" "))):this.internal.write([at(G),"0","0",at(q),at(F),st(L+q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ft.index+" Do"),this.internal.write("Q")},b=e.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"};e.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 C=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Q=e.__addimage__.sHashCode=function(F){var L,G,q=0;if(typeof F=="string")for(G=F.length,L=0;L<G;L++)q=(q<<5)-q+F.charCodeAt(L),q|=0;else if(W(F))for(G=F.byteLength/2,L=0;L<G;L++)q=(q<<5)-q+F[L],q|=0;return q},_=e.__addimage__.validateStringAsBase64=function(F){(F=F||"").toString().trim();var L=!0;return F.length===0&&(L=!1),F.length%4!=0&&(L=!1),/^[A-Za-z0-9+/]+$/.test(F.substr(0,F.length-2))===!1&&(L=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(F.substr(-2))===!1&&(L=!1),L},H=e.__addimage__.extractImageFromDataUrl=function(F){if(F==null||!(F=F.trim()).startsWith("data:"))return null;var L=F.indexOf(",");return L<0?null:F.substring(0,L).trim().endsWith("base64")?F.substring(L+1):null};e.__addimage__.isArrayBuffer=function(F){return F instanceof ArrayBuffer};var W=e.__addimage__.isArrayBufferView=function(F){return F instanceof Int8Array||F instanceof Uint8Array||F instanceof Uint8ClampedArray||F instanceof Int16Array||F instanceof Uint16Array||F instanceof Int32Array||F instanceof Uint32Array||F instanceof Float32Array||F instanceof Float64Array},R=e.__addimage__.binaryStringToUint8Array=function(F){for(var L=F.length,G=new Uint8Array(L),q=0;q<L;q++)G[q]=F.charCodeAt(q);return G},O=e.__addimage__.arrayBufferToBinaryString=function(F){for(var L="",G=W(F)?F:new Uint8Array(F),q=0;q<G.length;q+=8192)L+=String.fromCharCode.apply(null,G.subarray(q,q+8192));return L};e.addImage=function(){var F,L,G,q,ft,lt,ct,at,st;if(typeof arguments[1]=="number"?(L=A,G=arguments[1],q=arguments[2],ft=arguments[3],lt=arguments[4],ct=arguments[5],at=arguments[6],st=arguments[7]):(L=arguments[1],G=arguments[2],q=arguments[3],ft=arguments[4],lt=arguments[5],ct=arguments[6],at=arguments[7],st=arguments[8]),Ze(F=arguments[0])==="object"&&!d(F)&&"imageData"in F){var Z=F;F=Z.imageData,L=Z.format||L||A,G=Z.x||G||0,q=Z.y||q||0,ft=Z.w||Z.width||ft,lt=Z.h||Z.height||lt,ct=Z.alias||ct,at=Z.compression||at,st=Z.rotation||Z.angle||st}var j=this.internal.getFilters();if(at===void 0&&j.indexOf("FlateEncode")!==-1&&(at="SLOW"),isNaN(G)||isNaN(q))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var U=k.call(this,F,L,ct,at);return v.call(this,G,q,ft,lt,U,st),this};var k=function(F,L,G,q){var ft,lt,ct;if(typeof F=="string"&&r(F)===A){F=unescape(F);var at=V(F,!1);(at!==""||(at=e.loadFile(F,!0))!==void 0)&&(F=at)}if(d(F)&&(F=f(F,L)),L=r(F,L),!u(L))throw new Error("addImage does not support files of type '"+L+"', please ensure that a plugin for '"+L+"' support is added.");if(((ct=G)==null||ct.length===0)&&(G=function(st){return typeof st=="string"||W(st)?Q(st):W(st.data)?Q(st.data):null}(F)),(ft=m.call(this,G))||(F instanceof Uint8Array||L==="RGBA"||(lt=F,F=R(F)),ft=this["process"+L.toUpperCase()](F,c.call(this),G,function(st){return st&&typeof st=="string"&&(st=st.toUpperCase()),st in e.image_compression?st:C.NONE}(q),lt)),!ft)throw new Error("An unknown error occurred whilst processing the image.");return ft},V=e.__addimage__.convertBase64ToBinaryString=function(F,L){L=typeof L!="boolean"||L;var G,q="";if(typeof F=="string"){var ft;G=(ft=H(F))!==null&&ft!==void 0?ft:F;try{q=jf(G)}catch(lt){if(L)throw _(G)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+lt.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return q};e.getImageProperties=function(F){var L,G,q="";if(d(F)&&(F=f(F)),typeof F=="string"&&r(F)===A&&((q=V(F,!1))===""&&(q=e.loadFile(F)||""),F=q),G=r(F),!u(G))throw new Error("addImage does not support files of type '"+G+"', please ensure that a plugin for '"+G+"' support is added.");if(F instanceof Uint8Array||(F=R(F)),!(L=this["process"+G.toUpperCase()](F)))throw new Error("An unknown error occurred whilst processing the image");return L.fileType=G,L}})(ae.API),function(e){var t=function(A){if(A!==void 0&&A!="")return!0};ae.API.events.push(["addPage",function(A){this.internal.getPageInfo(A.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(A){for(var n,r,i,s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(A.objId),l=A.pageContext.annotations,c=!1,u=0;u<l.length&&!c;u++)switch((n=l[u]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(c!=0){this.internal.write("/Annots [");for(var d=0;d<l.length;d++){n=l[d];var f=this.internal.pdfEscape,m=this.internal.getEncryptor(A.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var B=this.internal.newAdditionalObject(),v=this.internal.newAdditionalObject(),b=this.internal.getEncryptor(B.objId),C=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(r="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y)+"] ")+"/Contents ("+f(b(n.contents))+")",i+=" /Popup "+v.objId+" 0 R",i+=" /P "+a.objId+" 0 R",i+=" /T ("+f(b(C))+") >>",B.content=i;var Q=B.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+s(n.bounds.x+30)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w+30)+" "+o(n.bounds.y)+"] ")+" /Parent "+Q,n.open&&(i+=" /Open true"),i+=" >>",v.content=i,this.internal.write(B.objId,"0 R",v.objId,"0 R");break;case"freetext":r="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y+n.bounds.h)+"] ";var _="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(n.color||"#000000");i="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+f(m(n.contents))+")",i+=" /DS("+f(m(_))+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var H=this.annotations._nameMap[n.options.name];n.options.pageNumber=H.page,n.options.top=H.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+f(m(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+r+"/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":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;default:var W=o(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+W+" "+n.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(A){var n=this.internal.getCurrentPageInfo();switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":n.pageContext.annotations.push(A)}},e.link=function(A,n,r,i,s){var o=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:a(A),y:l(n),w:a(A+r),h:l(n+i)},options:s,type:"link"})},e.textWithLink=function(A,n,r,i){var s,o,a=this.getTextWidth(A),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){o=i.maxWidth;var c=this.splitTextToSize(A,o).length;s=Math.ceil(l*c)}else o=a,s=l;return this.text(A,n,r,i),r+=.2*l,i.align==="center"&&(n-=a/2),i.align==="right"&&(n-=a),this.link(n,r-l,o,s,i),a},e.getTextWidth=function(A){var n=this.internal.getFontSize();return this.getStringUnitWidth(A)*n/this.internal.scaleFactor}}(ae.API),function(e){var t={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]},A={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},r=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(B){return t[B.charCodeAt(0)]!==void 0},s=e.__arabicParser__.isArabicLetter=function(B){return typeof B=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(B)},o=e.__arabicParser__.isArabicEndLetter=function(B){return s(B)&&i(B)&&t[B.charCodeAt(0)].length<=2},a=e.__arabicParser__.isArabicAlfLetter=function(B){return s(B)&&r.indexOf(B.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(B){return s(B)&&i(B)&&t[B.charCodeAt(0)].length>=1};var l=e.__arabicParser__.arabicLetterHasFinalForm=function(B){return s(B)&&i(B)&&t[B.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(B){return s(B)&&i(B)&&t[B.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(B){return s(B)&&i(B)&&t[B.charCodeAt(0)].length==4},u=e.__arabicParser__.resolveLigatures=function(B){var v=0,b=A,C="",Q=0;for(v=0;v<B.length;v+=1)b[B.charCodeAt(v)]!==void 0?(Q++,typeof(b=b[B.charCodeAt(v)])=="number"&&(C+=String.fromCharCode(b),b=A,Q=0),v===B.length-1&&(b=A,C+=B.charAt(v-(Q-1)),v-=Q-1,Q=0)):(b=A,C+=B.charAt(v-Q),v-=Q,Q=0);return C};e.__arabicParser__.isArabicDiacritic=function(B){return B!==void 0&&n[B.charCodeAt(0)]!==void 0};var d=e.__arabicParser__.getCorrectForm=function(B,v,b){return s(B)?i(B)===!1?-1:!l(B)||!s(v)&&!s(b)||!s(b)&&o(v)||o(B)&&!s(v)||o(B)&&a(v)||o(B)&&o(v)?0:c(B)&&s(v)&&!o(v)&&s(b)&&l(b)?3:o(B)||!s(b)?1:2:-1},f=function(B){var v=0,b=0,C=0,Q="",_="",H="",W=(B=B||"").split("\\s+"),R=[];for(v=0;v<W.length;v+=1){for(R.push(""),b=0;b<W[v].length;b+=1)Q=W[v][b],_=W[v][b-1],H=W[v][b+1],s(Q)?(C=d(Q,_,H),R[v]+=C!==-1?String.fromCharCode(t[Q.charCodeAt(0)][C]):Q):R[v]+=Q;R[v]=u(R[v])}return R.join(" ")},m=e.__arabicParser__.processArabic=e.processArabic=function(){var B,v=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,b=[];if(Array.isArray(v)){var C=0;for(b=[],C=0;C<v.length;C+=1)Array.isArray(v[C])?b.push([f(v[C][0]),v[C][1],v[C][2]]):b.push([f(v[C])]);B=b}else B=f(v);return typeof arguments[0]=="string"?B:(arguments[0].text=B,arguments[0])};e.events.push(["preProcessText",m])}(ae.API),ae.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=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 "+t+" 0 R")})),this},function(e){var t=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(o){A=o}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(o){r=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(o){i=o}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(o){s=o}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(A,n){var r;if((A=A||"2d")!=="2d")return null;for(r in n)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=n[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(ae.API),function(e){var t={left:0,top:0,bottom:0,right:0},A=!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({},t),this.internal.__cell__.margins.width=this.getPageWidth(),r.call(this))},r=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var a=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return a},set:function(B){a=B}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(B){l=B}});var c=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return c},set:function(B){c=B}});var u=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return u},set:function(B){u=B}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(B){d=B}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(B){f=B}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(B){m=B}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(a){return n.call(this),this.internal.__cell__.headerFunction=typeof a=="function"?a:void 0,this},e.getTextDimensions=function(a,l){n.call(this);var c=(l=l||{}).fontSize||this.getFontSize(),u=l.font||this.getFont(),d=l.scaleFactor||this.internal.scaleFactor,f=0,m=0,B=0,v=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 b=l.maxWidth;b>0?typeof a=="string"?a=this.splitTextToSize(a,b):Object.prototype.toString.call(a)==="[object Array]"&&(a=a.reduce(function(Q,_){return Q.concat(v.splitTextToSize(_,b))},[])):a=Array.isArray(a)?a:[a];for(var C=0;C<a.length;C++)f<(B=this.getStringUnitWidth(a[C],{font:u})*c)&&(f=B);return f!==0&&(m=a.length),{w:f/=d,h:Math.max((m*c*this.getLineHeightFactor()-c*(this.getLineHeightFactor()-1))/d,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var a=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(a.left,a.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var a;a=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var l=this.internal.__cell__.lastCell,c=this.internal.__cell__.padding,u=this.internal.__cell__.margins||t,d=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+u.bottom>this.getPageHeight()?(this.cellAddPage(),a.y=u.top,f&&d&&(this.printHeaderRow(a.lineNumber,!0),a.y+=d[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,A===!0?"FD":void 0),a.align==="right"?this.text(a.text,a.x+a.width-c,a.y+c,{align:"right",baseline:"top"}):a.align==="center"?this.text(a.text,a.x+a.width/2,a.y+c,{align:"center",baseline:"top",maxWidth:a.width-c-c}):this.text(a.text,a.x+c,a.y+c,{align:"left",baseline:"top",maxWidth:a.width-c-c})),this.internal.__cell__.lastCell=a,this};e.table=function(a,l,c,u,d){if(n.call(this),!c)throw new Error("No data for PDF table.");var f,m,B,v,b=[],C=[],Q=[],_={},H={},W=[],R=[],O=(d=d||{}).autoSize||!1,k=d.printHeaders!==!1,V=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,F=d.margins||Object.assign({width:this.getPageWidth()},t),L=typeof d.padding=="number"?d.padding:3,G=d.headerBackgroundColor||"#c8c8c8",q=d.headerTextColor||"#000";if(r.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=F,this.internal.__cell__.table_font_size=V,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=G,this.internal.__cell__.headerTextColor=q,this.setFontSize(V),u==null)C=b=Object.keys(c[0]),Q=b.map(function(){return"left"});else if(Array.isArray(u)&&Ze(u[0])==="object")for(b=u.map(function(Z){return Z.name}),C=u.map(function(Z){return Z.prompt||Z.name||""}),Q=u.map(function(Z){return Z.align||"left"}),f=0;f<u.length;f+=1)H[u[f].name]=.7499990551181103*u[f].width;else Array.isArray(u)&&typeof u[0]=="string"&&(C=b=u,Q=b.map(function(){return"left"}));if(O||Array.isArray(u)&&typeof u[0]=="string")for(f=0;f<b.length;f+=1){for(_[v=b[f]]=c.map(function(Z){return Z[v]}),this.setFont(void 0,"bold"),W.push(this.getTextDimensions(C[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),m=_[v],this.setFont(void 0,"normal"),B=0;B<m.length;B+=1)W.push(this.getTextDimensions(m[B],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);H[v]=Math.max.apply(null,W)+L+L,W=[]}if(k){var ft={};for(f=0;f<b.length;f+=1)ft[b[f]]={},ft[b[f]].text=C[f],ft[b[f]].align=Q[f];var lt=o.call(this,ft,H);R=b.map(function(Z){return new i(a,l,H[Z],lt,ft[Z].text,void 0,ft[Z].align)}),this.setTableHeaderRow(R),this.printHeaderRow(1,!1)}var ct=u.reduce(function(Z,j){return Z[j.name]=j.align,Z},{});for(f=0;f<c.length;f+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:f,data:c[f]},this);var at=o.call(this,c[f],H);for(B=0;B<b.length;B+=1){var st=c[f][b[B]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:f,col:B,data:st},this),s.call(this,new i(a,l,H[b[B]],at,st,f+2,ct[b[B]]))}}return this.internal.__cell__.table_x=a,this.internal.__cell__.table_y=l,this};var o=function(a,l){var c=this.internal.__cell__.padding,u=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(a).map(function(f){var m=a[f];return this.splitTextToSize(m.hasOwnProperty("text")?m.text:m,l[f]-c-c)},this).map(function(f){return this.getLineHeightFactor()*f.length*u/d+c+c},this).reduce(function(f,m){return Math.max(f,m)},0)};e.setTableHeaderRow=function(a){n.call(this),this.internal.__cell__.tableHeaderRow=a},e.printHeaderRow=function(a,l){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var c;if(A=!0,typeof this.internal.__cell__.headerFunction=="function"){var u=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(u[0],u[1],u[2],u[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){c=this.internal.__cell__.tableHeaderRow[f].clone(),l&&(c.y=this.internal.__cell__.margins.top||0,d.push(c)),c.lineNumber=a;var m=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,c),this.setTextColor(m)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),A=!1}}(ae.API);var $y={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},qy=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],l0=zy(qy),Xy=[100,200,300,400,500,600,700,800,900],x8=zy(Xy);function qg(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),A=function(i){return $y[i=i||"normal"]?i:"normal"}(e.style),n=function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400}(e.weight),r=function(i){return typeof l0[i=i||"normal"]=="number"?i:"normal"}(e.stretch);return{family:t,style:A,weight:n,stretch:r,src:e.src||[],ref:e.ref||{name:t,style:[r,A,n].join(" ")}}}function YB(e,t,A,n){var r;for(r=A;r>=0&&r<t.length;r+=n)if(e[t[r]])return e[t[r]];for(r=A;r>=0&&r<t.length;r-=n)if(e[t[r]])return e[t[r]]}var F8={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},JB={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ZB(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function tw(e){return e.trimLeft()}function _8(e,t){for(var A=0;A<e.length;){if(e.charAt(A)===t)return[e.substring(0,A),e.substring(A+1)];A+=1}return null}function U8(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Ea,vf,ew,Aw,nw,Xg=["times"];function rw(e,t,A,n,r){var i=4,s=sw;switch(r){case ae.API.image_compression.FAST:i=1,s=iw;break;case ae.API.image_compression.MEDIUM:i=6,s=ow;break;case ae.API.image_compression.SLOW:i=9,s=aw}e=function(a,l,c,u){for(var d,f=a.length/l,m=new Uint8Array(a.length+f),B=[Q8,iw,sw,ow,aw],v=0;v<f;v+=1){var b=v*l,C=a.subarray(b,b+l);if(u)m.set(u(C,c,d),b+v);else{for(var Q=B.length,_=[],H=0;H<Q;H+=1)_[H]=B[H](C,c,d);var W=I8(_.concat());m.set(_[W],b+v)}d=C}return m}(e,t,Math.ceil(A*n/8),s);var o=A0(e,{level:i});return ae.API.__addimage__.arrayBufferToBinaryString(o)}function Q8(e){var t=Array.apply([],e);return t.unshift(0),t}function iw(e,t){var A=e.length,n=[];n[0]=1;for(var r=0;r<A;r+=1){var i=e[r-t]||0;n[r+1]=e[r]-i+256&255}return n}function sw(e,t,A){var n=e.length,r=[];r[0]=2;for(var i=0;i<n;i+=1){var s=A&&A[i]||0;r[i+1]=e[i]-s+256&255}return r}function ow(e,t,A){var n=e.length,r=[];r[0]=3;for(var i=0;i<n;i+=1){var s=e[i-t]||0,o=A&&A[i]||0;r[i+1]=e[i]+256-(s+o>>>1)&255}return r}function aw(e,t,A){var n=e.length,r=[];r[0]=4;for(var i=0;i<n;i+=1){var s=E8(e[i-t]||0,A&&A[i]||0,A&&A[i-t]||0);r[i+1]=e[i]-s+256&255}return r}function E8(e,t,A){if(e===t&&t===A)return e;var n=Math.abs(t-A),r=Math.abs(e-A),i=Math.abs(e+t-A-A);return n<=r&&n<=i?e:r<=i?t:A}function I8(e){var t=e.map(function(A){return A.reduce(function(n,r){return n+Math.abs(r)},0)});return t.indexOf(Math.min.apply(null,t))}function Yg(e,t,A){var n=t*A,r=Math.floor(n/8),i=16-(n-8*r+A),s=(1<<A)-1;return Yy(e,r)>>i&s}function lw(e,t,A,n){var r=A*n,i=Math.floor(r/8),s=16-(r-8*i+n),o=(1<<n)-1,a=(t&o)<<s;(function(l,c,u){if(c+1<l.byteLength)l.setUint16(c,u,!1);else{var d=u>>8&255;l.setUint8(c,d)}})(e,i,Yy(e,i)&~(o<<s)&65535|a)}function Yy(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function S8(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var A=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,r=e[t++],i=r>>7,s=1<<1+(7&r);e[t++],e[t++];var o=null,a=null;i&&(o=t,a=s,t+=3*s);var l=!0,c=[],u=0,d=null,f=0,m=null;for(this.width=A,this.height=n;l&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,m=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((F=e[t++])>=0))throw Error("Invalid block size");if(F===0)break;t+=F}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var B=e[t++];u=e[t++]|e[t++]<<8,d=e[t++],1&B||(d=null),f=B>>2&7,t++;break;case 254:for(;;){if(!((F=e[t++])>=0))throw Error("Invalid block size");if(F===0)break;t+=F}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var v=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,Q=e[t++]|e[t++]<<8,_=e[t++],H=_>>6&1,W=1<<1+(7&_),R=o,O=a,k=!1;_>>7&&(k=!0,R=t,O=W,t+=3*W);var V=t;for(t++;;){var F;if(!((F=e[t++])>=0))throw Error("Invalid block size");if(F===0)break;t+=F}c.push({x:v,y:b,width:C,height:Q,has_local_palette:k,palette_offset:R,palette_size:O,data_offset:V,data_length:t-V,transparent_index:d,interlaced:!!H,delay:u,disposal:f});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return m},this.frameInfo=function(L){if(L<0||L>=c.length)throw new Error("Frame index out of range.");return c[L]},this.decodeAndBlitFrameBGRA=function(L,G){var q=this.frameInfo(L),ft=q.width*q.height;if(ft>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var lt=new Uint8Array(ft);cw(e,q.data_offset,lt,ft);var ct=q.palette_offset,at=q.transparent_index;at===null&&(at=256);var st=q.width,Z=A-st,j=st,U=4*(q.y*A+q.x),N=4*((q.y+q.height)*A+q.x),tt=U,et=4*Z;q.interlaced===!0&&(et+=4*A*7);for(var At=8,z=0,nt=lt.length;z<nt;++z){var ot=lt[z];if(j===0&&(j=st,(tt+=et)>=N&&(et=4*Z+4*A*(At-1),tt=U+(st+Z)*(At<<1),At>>=1)),ot===at)tt+=4;else{var wt=e[ct+3*ot],_t=e[ct+3*ot+1],P=e[ct+3*ot+2];G[tt++]=P,G[tt++]=_t,G[tt++]=wt,G[tt++]=255}--j}},this.decodeAndBlitFrameRGBA=function(L,G){var q=this.frameInfo(L),ft=q.width*q.height;if(ft>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var lt=new Uint8Array(ft);cw(e,q.data_offset,lt,ft);var ct=q.palette_offset,at=q.transparent_index;at===null&&(at=256);var st=q.width,Z=A-st,j=st,U=4*(q.y*A+q.x),N=4*((q.y+q.height)*A+q.x),tt=U,et=4*Z;q.interlaced===!0&&(et+=4*A*7);for(var At=8,z=0,nt=lt.length;z<nt;++z){var ot=lt[z];if(j===0&&(j=st,(tt+=et)>=N&&(et=4*Z+4*A*(At-1),tt=U+(st+Z)*(At<<1),At>>=1)),ot===at)tt+=4;else{var wt=e[ct+3*ot],_t=e[ct+3*ot+1],P=e[ct+3*ot+2];G[tt++]=wt,G[tt++]=_t,G[tt++]=P,G[tt++]=255}--j}}}function cw(e,t,A,n){for(var r=e[t++],i=1<<r,s=i+1,o=s+1,a=r+1,l=(1<<a)-1,c=0,u=0,d=0,f=e[t++],m=new Int32Array(4096),B=null;;){for(;c<16&&f!==0;)u|=e[t++]<<c,c+=8,f===1?f=e[t++]:--f;if(c<a)break;var v=u&l;if(u>>=a,c-=a,v!==i){if(v===s)break;for(var b=v<o?v:B,C=0,Q=b;Q>i;)Q=m[Q]>>8,++C;var _=Q;if(d+C+(b!==v?1:0)>n)return void sA.log("Warning, gif stream longer than expected.");A[d++]=_;var H=d+=C;for(b!==v&&(A[d++]=_),Q=b;C--;)Q=m[Q],A[--H]=255&Q,Q>>=8;B!==null&&o<4096&&(m[o++]=B<<8|_,o>=l+1&&a<12&&(++a,l=l<<1|1)),B=v}else o=s+1,l=(1<<(a=r+1))-1,B=null}return d!==n&&sA.log("Warning, gif stream shorter than expected."),A}/**
|
||
* @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 Jg(e){var t,A,n,r,i,s=Math.floor,o=new Array(64),a=new Array(64),l=new Array(64),c=new Array(64),u=new Array(65535),d=new Array(65535),f=new Array(64),m=new Array(64),B=[],v=0,b=7,C=new Array(64),Q=new Array(64),_=new Array(64),H=new Array(256),W=new Array(2048),R=[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],O=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[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],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],G=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ft=[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 lt(U,N){for(var tt=0,et=0,At=new Array,z=1;z<=16;z++){for(var nt=1;nt<=U[z];nt++)At[N[et]]=[],At[N[et]][0]=tt,At[N[et]][1]=z,et++,tt++;tt*=2}return At}function ct(U){for(var N=U[0],tt=U[1]-1;tt>=0;)N&1<<tt&&(v|=1<<b),tt--,--b<0&&(v==255?(at(255),at(0)):at(v),b=7,v=0)}function at(U){B.push(U)}function st(U){at(U>>8&255),at(255&U)}function Z(U,N,tt,et,At){for(var z,nt=At[0],ot=At[240],wt=function(mt,Ft){var bt,Mt,It,Pt,Kt,Gt,ee,Yt,Wt,oe,Xt=0;for(Wt=0;Wt<8;++Wt){bt=mt[Xt],Mt=mt[Xt+1],It=mt[Xt+2],Pt=mt[Xt+3],Kt=mt[Xt+4],Gt=mt[Xt+5],ee=mt[Xt+6];var Ke=bt+(Yt=mt[Xt+7]),Le=bt-Yt,Ee=Mt+ee,fe=Mt-ee,Me=It+Gt,le=It-Gt,qe=Pt+Kt,pe=Pt-Kt,xe=Ke+qe,wA=Ke-qe,ke=Ee+Me,he=Ee-Me;mt[Xt]=xe+ke,mt[Xt+4]=xe-ke;var je=.707106781*(he+wA);mt[Xt+2]=wA+je,mt[Xt+6]=wA-je;var Zs=.382683433*((xe=pe+le)-(he=fe+Le)),hn=.5411961*xe+Zs,Ci=1.306562965*he+Zs,Wr=.707106781*(ke=le+fe),de=Le+Wr,xi=Le-Wr;mt[Xt+5]=xi+hn,mt[Xt+3]=xi-hn,mt[Xt+1]=de+Ci,mt[Xt+7]=de-Ci,Xt+=8}for(Xt=0,Wt=0;Wt<8;++Wt){bt=mt[Xt],Mt=mt[Xt+8],It=mt[Xt+16],Pt=mt[Xt+24],Kt=mt[Xt+32],Gt=mt[Xt+40],ee=mt[Xt+48];var Fi=bt+(Yt=mt[Xt+56]),fr=bt-Yt,hr=Mt+ee,_A=Mt-ee,tn=It+Gt,rn=It-Gt,to=Pt+Kt,ls=Pt-Kt,Ur=Fi+to,zr=Fi-to,Qr=hr+tn,Er=hr-tn;mt[Xt]=Ur+Qr,mt[Xt+32]=Ur-Qr;var dr=.707106781*(Er+zr);mt[Xt+16]=zr+dr,mt[Xt+48]=zr-dr;var eo=.382683433*((Ur=ls+rn)-(Er=_A+fr)),$r=.5411961*Ur+eo,Ao=1.306562965*Er+eo,Jo=.707106781*(Qr=rn+_A),Zo=fr+Jo,ta=fr-Jo;mt[Xt+40]=ta+$r,mt[Xt+24]=ta-$r,mt[Xt+8]=Zo+Ao,mt[Xt+56]=Zo-Ao,Xt++}for(Wt=0;Wt<64;++Wt)oe=mt[Wt]*Ft[Wt],f[Wt]=oe>0?oe+.5|0:oe-.5|0;return f}(U,N),_t=0;_t<64;++_t)m[R[_t]]=wt[_t];var P=m[0]-tt;tt=m[0],P==0?ct(et[0]):(ct(et[d[z=32767+P]]),ct(u[z]));for(var $=63;$>0&&m[$]==0;)$--;if($==0)return ct(nt),tt;for(var rt,S=1;S<=$;){for(var pt=S;m[S]==0&&S<=$;)++S;var xt=S-pt;if(xt>=16){rt=xt>>4;for(var Et=1;Et<=rt;++Et)ct(ot);xt&=15}z=32767+m[S],ct(At[(xt<<4)+d[z]]),ct(u[z]),S++}return $!=63&&ct(nt),tt}function j(U){U=Math.min(Math.max(U,1),100),i!=U&&(function(N){for(var tt=[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],et=0;et<64;et++){var At=s((tt[et]*N+50)/100);At=Math.min(Math.max(At,1),255),o[R[et]]=At}for(var z=[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],nt=0;nt<64;nt++){var ot=s((z[nt]*N+50)/100);ot=Math.min(Math.max(ot,1),255),a[R[nt]]=ot}for(var wt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_t=0,P=0;P<8;P++)for(var $=0;$<8;$++)l[_t]=1/(o[R[_t]]*wt[P]*wt[$]*8),c[_t]=1/(a[R[_t]]*wt[P]*wt[$]*8),_t++}(U<50?Math.floor(5e3/U):Math.floor(200-2*U)),i=U)}this.encode=function(U,N){N&&j(N),B=new Array,v=0,b=7,st(65496),st(65504),st(16),at(74),at(70),at(73),at(70),at(0),at(1),at(1),at(0),st(1),st(1),at(0),at(0),function(){st(65499),st(132),at(0);for(var Mt=0;Mt<64;Mt++)at(o[Mt]);at(1);for(var It=0;It<64;It++)at(a[It])}(),function(Mt,It){st(65472),st(17),at(8),st(It),st(Mt),at(3),at(1),at(17),at(0),at(2),at(17),at(1),at(3),at(17),at(1)}(U.width,U.height),function(){st(65476),st(418),at(0);for(var Mt=0;Mt<16;Mt++)at(O[Mt+1]);for(var It=0;It<=11;It++)at(k[It]);at(16);for(var Pt=0;Pt<16;Pt++)at(V[Pt+1]);for(var Kt=0;Kt<=161;Kt++)at(F[Kt]);at(1);for(var Gt=0;Gt<16;Gt++)at(L[Gt+1]);for(var ee=0;ee<=11;ee++)at(G[ee]);at(17);for(var Yt=0;Yt<16;Yt++)at(q[Yt+1]);for(var Wt=0;Wt<=161;Wt++)at(ft[Wt])}(),st(65498),st(12),at(3),at(1),at(0),at(2),at(17),at(3),at(17),at(0),at(63),at(0);var tt=0,et=0,At=0;v=0,b=7,this.encode.displayName="_encode_";for(var z,nt,ot,wt,_t,P,$,rt,S,pt=U.data,xt=U.width,Et=U.height,mt=4*xt,Ft=0;Ft<Et;){for(z=0;z<mt;){for(_t=mt*Ft+z,$=-1,rt=0,S=0;S<64;S++)P=_t+(rt=S>>3)*mt+($=4*(7&S)),Ft+rt>=Et&&(P-=mt*(Ft+1+rt-Et)),z+$>=mt&&(P-=z+$-mt+4),nt=pt[P++],ot=pt[P++],wt=pt[P++],C[S]=(W[nt]+W[ot+256|0]+W[wt+512|0]>>16)-128,Q[S]=(W[nt+768|0]+W[ot+1024|0]+W[wt+1280|0]>>16)-128,_[S]=(W[nt+1280|0]+W[ot+1536|0]+W[wt+1792|0]>>16)-128;tt=Z(C,l,tt,t,n),et=Z(Q,c,et,A,r),At=Z(_,c,At,A,r),z+=32}Ft+=8}if(b>=0){var bt=[];bt[1]=b+1,bt[0]=(1<<b+1)-1,ct(bt)}return st(65497),new Uint8Array(B)},e=e||50,function(){for(var U=String.fromCharCode,N=0;N<256;N++)H[N]=U(N)}(),t=lt(O,k),A=lt(L,G),n=lt(V,F),r=lt(q,ft),function(){for(var U=1,N=2,tt=1;tt<=15;tt++){for(var et=U;et<N;et++)d[32767+et]=tt,u[32767+et]=[],u[32767+et][1]=tt,u[32767+et][0]=et;for(var At=-(N-1);At<=-U;At++)d[32767+At]=tt,u[32767+At]=[],u[32767+At][1]=tt,u[32767+At][0]=N-1+At;U<<=1,N<<=1}}(),function(){for(var U=0;U<256;U++)W[U]=19595*U,W[U+256|0]=38470*U,W[U+512|0]=7471*U+32768,W[U+768|0]=-11059*U,W[U+1024|0]=-21709*U,W[U+1280|0]=32768*U+8421375,W[U+1536|0]=-27439*U,W[U+1792|0]=-5329*U}(),j(e)}/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function Nr(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,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 uw(e){function t(k){if(!k)throw Error("assert :P")}function A(k,V,F){for(var L=0;4>L;L++)if(k[V+L]!=F.charCodeAt(L))return!0;return!1}function n(k,V,F,L,G){for(var q=0;q<G;q++)k[V+q]=F[L+q]}function r(k,V,F,L){for(var G=0;G<L;G++)k[V+G]=F}function i(k){return new Int32Array(k)}function s(k,V){for(var F=[],L=0;L<k;L++)F.push(new V);return F}function o(k,V){var F=[];return function L(G,q,ft){for(var lt=ft[q],ct=0;ct<lt&&(G.push(ft.length>q+1?[]:new V),!(ft.length<q+1));ct++)L(G[ct],q+1,ft)}(F,0,k),F}var a=function(){var k=this;function V(h,g){for(var y=1<<g-1>>>0;h&y;)y>>>=1;return y?(h&y-1)+y:h}function F(h,g,y,x,I){t(!(x%y));do h[g+(x-=y)]=I;while(0<x)}function L(h,g,y,x,I){if(t(2328>=I),512>=I)var D=i(512);else if((D=i(I))==null)return 0;return function(M,T,K,Y,ut,Ct){var J,dt,vt=T,Qt=1<<K,yt=i(16),St=i(16);for(t(ut!=0),t(Y!=null),t(M!=null),t(0<K),dt=0;dt<ut;++dt){if(15<Y[dt])return 0;++yt[Y[dt]]}if(yt[0]==ut)return 0;for(St[1]=0,J=1;15>J;++J){if(yt[J]>1<<J)return 0;St[J+1]=St[J]+yt[J]}for(dt=0;dt<ut;++dt)J=Y[dt],0<Y[dt]&&(Ct[St[J]++]=dt);if(St[15]==1)return(Y=new G).g=0,Y.value=Ct[0],F(M,vt,1,Qt,Y),Qt;var Lt,Ot=-1,Ht=Qt-1,se=0,Jt=1,Ie=1,ne=1<<K;for(dt=0,J=1,ut=2;J<=K;++J,ut<<=1){if(Jt+=Ie<<=1,0>(Ie-=yt[J]))return 0;for(;0<yt[J];--yt[J])(Y=new G).g=J,Y.value=Ct[dt++],F(M,vt+se,ut,ne,Y),se=V(se,J)}for(J=K+1,ut=2;15>=J;++J,ut<<=1){if(Jt+=Ie<<=1,0>(Ie-=yt[J]))return 0;for(;0<yt[J];--yt[J]){if(Y=new G,(se&Ht)!=Ot){for(vt+=ne,Lt=1<<(Ot=J)-K;15>Ot&&!(0>=(Lt-=yt[Ot]));)++Ot,Lt<<=1;Qt+=ne=1<<(Lt=Ot-K),M[T+(Ot=se&Ht)].g=Lt+K,M[T+Ot].value=vt-T-Ot}Y.g=J-K,Y.value=Ct[dt++],F(M,vt+(se>>K),ut,ne,Y),se=V(se,J)}}return Jt!=2*St[15]-1?0:Qt}(h,g,y,x,I,D)}function G(){this.value=this.g=0}function q(){this.value=this.g=0}function ft(){this.G=s(5,G),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(ha,q)}function lt(h,g,y,x){t(h!=null),t(g!=null),t(2147483648>x),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=g,h.pa=y,h.Jd=g,h.Yc=y+x,h.Zc=4<=x?y+x-4+1:y,nt(h)}function ct(h,g){for(var y=0;0<g--;)y|=wt(h,128)<<g;return y}function at(h,g){var y=ct(h,g);return ot(h)?-y:y}function st(h,g,y,x){var I,D=0;for(t(h!=null),t(g!=null),t(4294967288>x),h.Sb=x,h.Ra=0,h.u=0,h.h=0,4<x&&(x=4),I=0;I<x;++I)D+=g[y+I]<<8*I;h.Ra=D,h.bb=x,h.oa=g,h.pa=y}function Z(h){for(;8<=h.u&&h.bb<h.Sb;)h.Ra>>>=8,h.Ra+=h.oa[h.pa+h.bb]<<kn-8>>>0,++h.bb,h.u-=8;et(h)&&(h.h=1,h.u=0)}function j(h,g){if(t(0<=g),!h.h&&g<=yl){var y=tt(h)&fo[g];return h.u+=g,Z(h),y}return h.h=1,h.u=0}function U(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function tt(h){return h.Ra>>>(h.u&kn-1)>>>0}function et(h){return t(h.bb<=h.Sb),h.h||h.bb==h.Sb&&h.u>kn}function At(h,g){h.u=g,h.h=et(h)}function z(h){h.u>=Vn&&(t(h.u>=Vn),Z(h))}function nt(h){t(h!=null&&h.oa!=null),h.pa<h.Zc?(h.I=(h.oa[h.pa++]|h.I<<8)>>>0,h.b+=8):(t(h!=null&&h.oa!=null),h.pa<h.Yc?(h.b+=8,h.I=h.oa[h.pa++]|h.I<<8):h.Ka?h.b=0:(h.I<<=8,h.b+=8,h.Ka=1))}function ot(h){return ct(h,1)}function wt(h,g){var y=h.Ca;0>h.b&&nt(h);var x=h.b,I=y*g>>>8,D=(h.I>>>x>I)+0;for(D?(y-=I,h.I-=I+1<<x>>>0):y=I+1,x=y,I=0;256<=x;)I+=8,x>>=8;return x=7^I+da[x],h.b-=x,h.Ca=(y<<x)-1,D}function _t(h,g,y){h[g+0]=y>>24&255,h[g+1]=y>>16&255,h[g+2]=y>>8&255,h[g+3]=255&y}function P(h,g){return h[g+0]|h[g+1]<<8}function $(h,g){return P(h,g)|h[g+2]<<16}function rt(h,g){return P(h,g)|P(h,g+2)<<16}function S(h,g){var y=1<<g;return t(h!=null),t(0<g),h.X=i(y),h.X==null?0:(h.Mb=32-g,h.Xa=g,1)}function pt(h,g){t(h!=null),t(g!=null),t(h.Xa==g.Xa),n(g.X,0,h.X,0,1<<g.Xa)}function xt(){this.X=[],this.Xa=this.Mb=0}function Et(h,g,y,x){t(y!=null),t(x!=null);var I=y[0],D=x[0];return I==0&&(I=(h*D+g/2)/g),D==0&&(D=(g*I+h/2)/h),0>=I||0>=D?0:(y[0]=I,x[0]=D,1)}function mt(h,g){return h+(1<<g)-1>>>g}function Ft(h,g){return((4278255360&h)+(4278255360&g)>>>0&4278255360)+((16711935&h)+(16711935&g)>>>0&16711935)>>>0}function bt(h,g){k[g]=function(y,x,I,D,M,T,K){var Y;for(Y=0;Y<M;++Y){var ut=k[h](T[K+Y-1],I,D+Y);T[K+Y]=Ft(y[x+Y],ut)}}}function Mt(){this.ud=this.hd=this.jd=0}function It(h,g){return((4278124286&(h^g))>>>1)+(h&g)>>>0}function Pt(h){return 0<=h&&256>h?h:0>h?0:255<h?255:void 0}function Kt(h,g){return Pt(h+(h-g+.5>>1))}function Gt(h,g,y){return Math.abs(g-y)-Math.abs(h-y)}function ee(h,g,y,x,I,D,M){for(x=D[M-1],y=0;y<I;++y)D[M+y]=x=Ft(h[g+y],x)}function Yt(h,g,y,x,I){var D;for(D=0;D<y;++D){var M=h[g+D],T=M>>8&255,K=16711935&(K=(K=16711935&M)+((T<<16)+T));x[I+D]=(4278255360&M)+K>>>0}}function Wt(h,g){g.jd=255&h,g.hd=h>>8&255,g.ud=h>>16&255}function oe(h,g,y,x,I,D){var M;for(M=0;M<x;++M){var T=g[y+M],K=T>>>8,Y=T,ut=255&(ut=(ut=T>>>16)+((h.jd<<24>>24)*(K<<24>>24)>>>5));Y=255&(Y=(Y+=(h.hd<<24>>24)*(K<<24>>24)>>>5)+((h.ud<<24>>24)*(ut<<24>>24)>>>5)),I[D+M]=(4278255360&T)+(ut<<16)+Y}}function Xt(h,g,y,x,I){k[g]=function(D,M,T,K,Y,ut,Ct,J,dt){for(K=Ct;K<J;++K)for(Ct=0;Ct<dt;++Ct)Y[ut++]=I(T[x(D[M++])])},k[h]=function(D,M,T,K,Y,ut,Ct){var J=8>>D.b,dt=D.Ea,vt=D.K[0],Qt=D.w;if(8>J)for(D=(1<<D.b)-1,Qt=(1<<J)-1;M<T;++M){var yt,St=0;for(yt=0;yt<dt;++yt)yt&D||(St=x(K[Y++])),ut[Ct++]=I(vt[St&Qt]),St>>=J}else k["VP8LMapColor"+y](K,Y,vt,Qt,ut,Ct,M,T,dt)}}function Ke(h,g,y,x,I){for(y=g+y;g<y;){var D=h[g++];x[I++]=D>>16&255,x[I++]=D>>8&255,x[I++]=255&D}}function Le(h,g,y,x,I){for(y=g+y;g<y;){var D=h[g++];x[I++]=D>>16&255,x[I++]=D>>8&255,x[I++]=255&D,x[I++]=D>>24&255}}function Ee(h,g,y,x,I){for(y=g+y;g<y;){var D=(M=h[g++])>>16&240|M>>12&15,M=240&M|M>>28&15;x[I++]=D,x[I++]=M}}function fe(h,g,y,x,I){for(y=g+y;g<y;){var D=(M=h[g++])>>16&248|M>>13&7,M=M>>5&224|M>>3&31;x[I++]=D,x[I++]=M}}function Me(h,g,y,x,I){for(y=g+y;g<y;){var D=h[g++];x[I++]=255&D,x[I++]=D>>8&255,x[I++]=D>>16&255}}function le(h,g,y,x,I,D){if(D==0)for(y=g+y;g<y;)_t(x,((D=h[g++])[0]>>24|D[1]>>8&65280|D[2]<<8&16711680|D[3]<<24)>>>0),I+=32;else n(x,I,h,g,y)}function qe(h,g){k[g][0]=k[h+"0"],k[g][1]=k[h+"1"],k[g][2]=k[h+"2"],k[g][3]=k[h+"3"],k[g][4]=k[h+"4"],k[g][5]=k[h+"5"],k[g][6]=k[h+"6"],k[g][7]=k[h+"7"],k[g][8]=k[h+"8"],k[g][9]=k[h+"9"],k[g][10]=k[h+"10"],k[g][11]=k[h+"11"],k[g][12]=k[h+"12"],k[g][13]=k[h+"13"],k[g][14]=k[h+"0"],k[g][15]=k[h+"0"]}function pe(h){return h==Md||h==Td||h==_u||h==Od}function xe(){this.eb=[],this.size=this.A=this.fb=0}function wA(){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 ke(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new xe,this.f.kb=new wA,this.sd=null}function he(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function je(){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 Zs(h){return alert("todo:WebPSamplerProcessPlane"),h.T}function hn(h,g){var y=h.T,x=g.ba.f.RGBA,I=x.eb,D=x.fb+h.ka*x.A,M=Br[g.ba.S],T=h.y,K=h.O,Y=h.f,ut=h.N,Ct=h.ea,J=h.W,dt=g.cc,vt=g.dc,Qt=g.Mc,yt=g.Nc,St=h.ka,Lt=h.ka+h.T,Ot=h.U,Ht=Ot+1>>1;for(St==0?M(T,K,null,null,Y,ut,Ct,J,Y,ut,Ct,J,I,D,null,null,Ot):(M(g.ec,g.fc,T,K,dt,vt,Qt,yt,Y,ut,Ct,J,I,D-x.A,I,D,Ot),++y);St+2<Lt;St+=2)dt=Y,vt=ut,Qt=Ct,yt=J,ut+=h.Rc,J+=h.Rc,D+=2*x.A,M(T,(K+=2*h.fa)-h.fa,T,K,dt,vt,Qt,yt,Y,ut,Ct,J,I,D-x.A,I,D,Ot);return K+=h.fa,h.j+Lt<h.o?(n(g.ec,g.fc,T,K,Ot),n(g.cc,g.dc,Y,ut,Ht),n(g.Mc,g.Nc,Ct,J,Ht),y--):1&Lt||M(T,K,null,null,Y,ut,Ct,J,Y,ut,Ct,J,I,D+x.A,null,null,Ot),y}function Ci(h,g,y){var x=h.F,I=[h.J];if(x!=null){var D=h.U,M=g.ba.S,T=M==Fu||M==_u;g=g.ba.f.RGBA;var K=[0],Y=h.ka;K[0]=h.T,h.Kb&&(Y==0?--K[0]:(--Y,I[0]-=h.width),h.j+h.ka+h.T==h.o&&(K[0]=h.o-h.j-Y));var ut=g.eb;Y=g.fb+Y*g.A,h=E1(x,I[0],h.width,D,K,ut,Y+(T?0:3),g.A),t(y==K),h&&pe(M)&&_l(ut,Y,T,D,K,g.A)}return 0}function Wr(h){var g=h.ma,y=g.ba.S,x=11>y,I=y==Cu||y==xu||y==Fu||y==Hd||y==12||pe(y);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!pr(g.Oa,h,I?11:12))return 0;if(I&&pe(y)&&Si(),h.da)alert("todo:use_scaling");else{if(x){if(g.Ib=Zs,h.Kb){if(y=h.U+1>>1,g.memory=i(h.U+2*y),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+h.U,g.Mc=g.cc,g.Nc=g.dc+y,g.Ib=hn,Si()}}else alert("todo:EmitYUV");I&&(g.Jb=Ci,x&&FA())}if(x&&!G1){for(h=0;256>h;++h)g4[h]=89858*(h-128)+Qu>>Uu,B4[h]=-22014*(h-128)+Qu,m4[h]=-45773*(h-128),p4[h]=113618*(h-128)+Qu>>Uu;for(h=Ql;h<Kd;++h)g=76283*(h-16)+Qu>>Uu,w4[h-Ql]=qr(g,255),v4[h-Ql]=qr(g+8>>4,15);G1=1}return 1}function de(h){var g=h.ma,y=h.U,x=h.T;return t(!(1&h.ka)),0>=y||0>=x?0:(y=g.Ib(h,g),g.Jb!=null&&g.Jb(h,g,y),g.Dc+=y,1)}function xi(h){h.ma.memory=null}function Fi(h,g,y,x){return j(h,8)!=47?0:(g[0]=j(h,14)+1,y[0]=j(h,14)+1,x[0]=j(h,1),j(h,3)!=0?0:!h.h)}function fr(h,g){if(4>h)return h+1;var y=h-2>>1;return(2+(1&h)<<y)+j(g,y)+1}function hr(h,g){return 120<g?g-120:1<=(y=((y=e4[g-1])>>4)*h+(8-(15&y)))?y:1;var y}function _A(h,g,y){var x=tt(y),I=h[g+=255&x].g-8;return 0<I&&(At(y,y.u+8),x=tt(y),g+=h[g].value,g+=x&(1<<I)-1),At(y,y.u+h[g].g),h[g].value}function tn(h,g,y){return y.g+=h.g,y.value+=h.value<<g>>>0,t(8>=y.g),h.g}function rn(h,g,y){var x=h.xc;return t((g=x==0?0:h.vc[h.md*(y>>x)+(g>>x)])<h.Wb),h.Ya[g]}function to(h,g,y,x){var I=h.ab,D=h.c*g,M=h.C;g=M+g;var T=y,K=x;for(x=h.Ta,y=h.Ua;0<I--;){var Y=h.gc[I],ut=M,Ct=g,J=T,dt=K,vt=(K=x,T=y,Y.Ea);switch(t(ut<Ct),t(Ct<=Y.nc),Y.hc){case 2:ga(J,dt,(Ct-ut)*vt,K,T);break;case 0:var Qt=ut,yt=Ct,St=K,Lt=T,Ot=(ne=Y).Ea;Qt==0&&(ds(J,dt,null,null,1,St,Lt),ee(J,dt+1,0,0,Ot-1,St,Lt+1),dt+=Ot,Lt+=Ot,++Qt);for(var Ht=1<<ne.b,se=Ht-1,Jt=mt(Ot,ne.b),Ie=ne.K,ne=ne.w+(Qt>>ne.b)*Jt;Qt<yt;){var Te=Ie,$A=ne,Se=1;for(gs(J,dt,St,Lt-Ot,1,St,Lt);Se<Ot;){var re=(Se&~se)+Ht;re>Ot&&(re=Ot),(0,Ir[Te[$A++]>>8&15])(J,dt+ +Se,St,Lt+Se-Ot,re-Se,St,Lt+Se),Se=re}dt+=Ot,Lt+=Ot,++Qt&se||(ne+=Jt)}Ct!=Y.nc&&n(K,T-vt,K,T+(Ct-ut-1)*vt,vt);break;case 1:for(vt=J,yt=dt,Ot=(J=Y.Ea)-(Lt=J&~(St=(dt=1<<Y.b)-1)),Qt=mt(J,Y.b),Ht=Y.K,Y=Y.w+(ut>>Y.b)*Qt;ut<Ct;){for(se=Ht,Jt=Y,Ie=new Mt,ne=yt+Lt,Te=yt+J;yt<ne;)Wt(se[Jt++],Ie),go(Ie,vt,yt,dt,K,T),yt+=dt,T+=dt;yt<Te&&(Wt(se[Jt++],Ie),go(Ie,vt,yt,Ot,K,T),yt+=Ot,T+=Ot),++ut&St||(Y+=Qt)}break;case 3:if(J==K&&dt==T&&0<Y.b){for(yt=K,J=vt=T+(Ct-ut)*vt-(Lt=(Ct-ut)*mt(Y.Ea,Y.b)),dt=K,St=T,Qt=[],Lt=(Ot=Lt)-1;0<=Lt;--Lt)Qt[Lt]=dt[St+Lt];for(Lt=Ot-1;0<=Lt;--Lt)yt[J+Lt]=Qt[Lt];ho(Y,ut,Ct,K,vt,K,T)}else ho(Y,ut,Ct,J,dt,K,T)}T=x,K=y}K!=y&&n(x,y,T,K,D)}function ls(h,g){var y=h.V,x=h.Ba+h.c*h.C,I=g-h.C;if(t(g<=h.l.o),t(16>=I),0<I){var D=h.l,M=h.Ta,T=h.Ua,K=D.width;if(to(h,I,y,x),I=T=[T],t((y=h.C)<(x=g)),t(D.v<D.va),x>D.o&&(x=D.o),y<D.j){var Y=D.j-y;y=D.j,I[0]+=Y*K}if(y>=x?y=0:(I[0]+=4*D.v,D.ka=y-D.j,D.U=D.va-D.v,D.T=x-y,y=1),y){if(T=T[0],11>(y=h.ca).S){var ut=y.f.RGBA,Ct=(x=y.S,I=D.U,D=D.T,Y=ut.eb,ut.A),J=D;for(ut=ut.fb+h.Ma*ut.A;0<J--;){var dt=M,vt=T,Qt=I,yt=Y,St=ut;switch(x){case yu:Cl(dt,vt,Qt,yt,St);break;case Cu:xl(dt,vt,Qt,yt,St);break;case Md:xl(dt,vt,Qt,yt,St),_l(yt,St,0,Qt,1,0);break;case H1:mo(dt,vt,Qt,yt,St);break;case xu:le(dt,vt,Qt,yt,St,1);break;case Td:le(dt,vt,Qt,yt,St,1),_l(yt,St,0,Qt,1,0);break;case Fu:le(dt,vt,Qt,yt,St,0);break;case _u:le(dt,vt,Qt,yt,St,0),_l(yt,St,1,Qt,1,0);break;case Hd:pa(dt,vt,Qt,yt,St);break;case Od:pa(dt,vt,Qt,yt,St),Q1(yt,St,Qt,1,0);break;case M1:po(dt,vt,Qt,yt,St);break;default:t(0)}T+=K,ut+=Ct}h.Ma+=D}else alert("todo:EmitRescaledRowsYUVA");t(h.Ma<=y.height)}}h.C=g,t(h.C<=h.i)}function Ur(h){var g;if(0<h.ua)return 0;for(g=0;g<h.Wb;++g){var y=h.Ya[g].G,x=h.Ya[g].H;if(0<y[1][x[1]+0].g||0<y[2][x[2]+0].g||0<y[3][x[3]+0].g)return 0}return 1}function zr(h,g,y,x,I,D){if(h.Z!=0){var M=h.qd,T=h.rd;for(t(ws[h.Z]!=null);g<y;++g)ws[h.Z](M,T,x,I,x,I,D),M=x,T=I,I+=D;h.qd=M,h.rd=T}}function Qr(h,g){var y=h.l.ma,x=y.Z==0||y.Z==1?h.l.j:h.C;if(x=h.C<x?x:h.C,t(g<=h.l.o),g>x){var I=h.l.width,D=y.ca,M=y.tb+I*x,T=h.V,K=h.Ba+h.c*x,Y=h.gc;t(h.ab==1),t(Y[0].hc==3),Nd(Y[0],x,g,T,K,D,M),zr(y,x,g,D,M,I)}h.C=h.Ma=g}function Er(h,g,y,x,I,D,M){var T=h.$/x,K=h.$%x,Y=h.m,ut=h.s,Ct=y+h.$,J=Ct;I=y+x*I;var dt=y+x*D,vt=280+ut.ua,Qt=h.Pb?T:16777216,yt=0<ut.ua?ut.Wa:null,St=ut.wc,Lt=Ct<dt?rn(ut,K,T):null;t(h.C<D),t(dt<=I);var Ot=!1;t:for(;;){for(;Ot||Ct<dt;){var Ht=0;if(T>=Qt){var se=Ct-y;t((Qt=h).Pb),Qt.wd=Qt.m,Qt.xd=se,0<Qt.s.ua&&pt(Qt.s.Wa,Qt.s.vb),Qt=T+n4}if(K&St||(Lt=rn(ut,K,T)),t(Lt!=null),Lt.Qb&&(g[Ct]=Lt.qb,Ot=!0),!Ot)if(z(Y),Lt.jc){Ht=Y,se=g;var Jt=Ct,Ie=Lt.pd[tt(Ht)&ha-1];t(Lt.jc),256>Ie.g?(At(Ht,Ht.u+Ie.g),se[Jt]=Ie.value,Ht=0):(At(Ht,Ht.u+Ie.g-256),t(256<=Ie.value),Ht=Ie.value),Ht==0&&(Ot=!0)}else Ht=_A(Lt.G[0],Lt.H[0],Y);if(Y.h)break;if(Ot||256>Ht){if(!Ot)if(Lt.nd)g[Ct]=(Lt.qb|Ht<<8)>>>0;else{if(z(Y),Ot=_A(Lt.G[1],Lt.H[1],Y),z(Y),se=_A(Lt.G[2],Lt.H[2],Y),Jt=_A(Lt.G[3],Lt.H[3],Y),Y.h)break;g[Ct]=(Jt<<24|Ot<<16|Ht<<8|se)>>>0}if(Ot=!1,++Ct,++K>=x&&(K=0,++T,M!=null&&T<=D&&!(T%16)&&M(h,T),yt!=null))for(;J<Ct;)Ht=g[J++],yt.X[(506832829*Ht&4294967295)>>>yt.Mb]=Ht}else if(280>Ht){if(Ht=fr(Ht-256,Y),se=_A(Lt.G[4],Lt.H[4],Y),z(Y),se=hr(x,se=fr(se,Y)),Y.h)break;if(Ct-y<se||I-Ct<Ht)break t;for(Jt=0;Jt<Ht;++Jt)g[Ct+Jt]=g[Ct+Jt-se];for(Ct+=Ht,K+=Ht;K>=x;)K-=x,++T,M!=null&&T<=D&&!(T%16)&&M(h,T);if(t(Ct<=I),K&St&&(Lt=rn(ut,K,T)),yt!=null)for(;J<Ct;)Ht=g[J++],yt.X[(506832829*Ht&4294967295)>>>yt.Mb]=Ht}else{if(!(Ht<vt))break t;for(Ot=Ht-280,t(yt!=null);J<Ct;)Ht=g[J++],yt.X[(506832829*Ht&4294967295)>>>yt.Mb]=Ht;Ht=Ct,t(!(Ot>>>(se=yt).Xa)),g[Ht]=se.X[Ot],Ot=!0}Ot||t(Y.h==et(Y))}if(h.Pb&&Y.h&&Ct<I)t(h.m.h),h.a=5,h.m=h.wd,h.$=h.xd,0<h.s.ua&&pt(h.s.vb,h.s.Wa);else{if(Y.h)break t;M!=null&&M(h,T>D?D:T),h.a=0,h.$=Ct-y}return 1}return h.a=3,0}function dr(h){t(h!=null),h.vc=null,h.yc=null,h.Ya=null;var g=h.Wa;g!=null&&(g.X=null),h.vb=null,t(h!=null)}function eo(){var h=new Ae;return h==null?null:(h.a=0,h.xb=P1,qe("Predictor","VP8LPredictors"),qe("Predictor","VP8LPredictors_C"),qe("PredictorAdd","VP8LPredictorsAdd"),qe("PredictorAdd","VP8LPredictorsAdd_C"),ga=Yt,go=oe,Cl=Ke,xl=Le,pa=Ee,po=fe,mo=Me,k.VP8LMapColor32b=GA,k.VP8LMapColor8b=ti,h)}function $r(h,g,y,x,I){var D=1,M=[h],T=[g],K=x.m,Y=x.s,ut=null,Ct=0;t:for(;;){if(y)for(;D&&j(K,1);){var J=M,dt=T,vt=x,Qt=1,yt=vt.m,St=vt.gc[vt.ab],Lt=j(yt,2);if(vt.Oc&1<<Lt)D=0;else{switch(vt.Oc|=1<<Lt,St.hc=Lt,St.Ea=J[0],St.nc=dt[0],St.K=[null],++vt.ab,t(4>=vt.ab),Lt){case 0:case 1:St.b=j(yt,3)+2,Qt=$r(mt(St.Ea,St.b),mt(St.nc,St.b),0,vt,St.K),St.K=St.K[0];break;case 3:var Ot,Ht=j(yt,8)+1,se=16<Ht?0:4<Ht?1:2<Ht?2:3;if(J[0]=mt(St.Ea,se),St.b=se,Ot=Qt=$r(Ht,1,0,vt,St.K)){var Jt,Ie=Ht,ne=St,Te=1<<(8>>ne.b),$A=i(Te);if($A==null)Ot=0;else{var Se=ne.K[0],re=ne.w;for($A[0]=ne.K[0][0],Jt=1;Jt<1*Ie;++Jt)$A[Jt]=Ft(Se[re+Jt],$A[Jt-1]);for(;Jt<4*Te;++Jt)$A[Jt]=0;ne.K[0]=null,ne.K[0]=$A,Ot=1}}Qt=Ot;break;case 2:break;default:t(0)}D=Qt}}if(M=M[0],T=T[0],D&&j(K,1)&&!(D=1<=(Ct=j(K,4))&&11>=Ct)){x.a=3;break t}var jt;if(jt=D)e:{var NA,_e,Pe,pA=x,on=M,Nn=T,UA=Ct,mn=y,Dn=pA.m,qA=pA.s,Re=[null],Xe=1,QA=0,Ye=A4[UA];A:for(;;){if(mn&&j(Dn,1)){var an=j(Dn,3)+2,Lr=mt(on,an),DA=mt(Nn,an),jn=Lr*DA;if(!$r(Lr,DA,0,pA,Re))break A;for(Re=Re[0],qA.xc=an,NA=0;NA<jn;++NA){var iA=Re[NA]>>8&65535;Re[NA]=iA,iA>=Xe&&(Xe=iA+1)}}if(Dn.h)break A;for(_e=0;5>_e;++_e){var XA=T1[_e];!_e&&0<UA&&(XA+=1<<UA),QA<XA&&(QA=XA)}var er=s(Xe*Ye,G),Hn=Xe,Ar=s(Hn,ft);if(Ar==null)var nr=null;else t(65536>=Hn),nr=Ar;var Gn=i(QA);if(nr==null||Gn==null||er==null){pA.a=1;break A}var rr=er;for(NA=Pe=0;NA<Xe;++NA){var uA=nr[NA],ir=uA.G,kr=uA.H,Bo=0,Di=1,ln=0;for(_e=0;5>_e;++_e){XA=T1[_e],ir[_e]=rr,kr[_e]=Pe,!_e&&0<UA&&(XA+=1<<UA);r:{var Iu,Vd=XA,Su=pA,El=Gn,C4=rr,x4=Pe,jd=0,vs=Su.m,F4=j(vs,1);if(r(El,0,0,Vd),F4){var _4=j(vs,1)+1,U4=j(vs,1),$1=j(vs,U4==0?1:8);El[$1]=1,_4==2&&(El[$1=j(vs,8)]=1);var Lu=1}else{var q1=i(19),X1=j(vs,4)+4;if(19<X1){Su.a=3;var ku=0;break r}for(Iu=0;Iu<X1;++Iu)q1[t4[Iu]]=j(vs,3);var Gd=void 0,Il=void 0,Y1=Su,Q4=q1,Nu=Vd,J1=El,Wd=0,bs=Y1.m,Z1=8,tm=s(128,G);n:for(;L(tm,0,7,Q4,19);){if(j(bs,1)){var E4=2+2*j(bs,3);if((Gd=2+j(bs,E4))>Nu)break n}else Gd=Nu;for(Il=0;Il<Nu&&Gd--;){z(bs);var em=tm[0+(127&tt(bs))];At(bs,bs.u+em.g);var wa=em.value;if(16>wa)J1[Il++]=wa,wa!=0&&(Z1=wa);else{var I4=wa==16,Am=wa-16,S4=JC[Am],nm=j(bs,YC[Am])+S4;if(Il+nm>Nu)break n;for(var L4=I4?Z1:0;0<nm--;)J1[Il++]=L4}}Wd=1;break n}Wd||(Y1.a=3),Lu=Wd}(Lu=Lu&&!vs.h)&&(jd=L(C4,x4,8,El,Vd)),Lu&&jd!=0?ku=jd:(Su.a=3,ku=0)}if(ku==0)break A;if(Di&&ZC[_e]==1&&(Di=rr[Pe].g==0),Bo+=rr[Pe].g,Pe+=ku,3>=_e){var Sl,zd=Gn[0];for(Sl=1;Sl<XA;++Sl)Gn[Sl]>zd&&(zd=Gn[Sl]);ln+=zd}}if(uA.nd=Di,uA.Qb=0,Di&&(uA.qb=(ir[3][kr[3]+0].value<<24|ir[1][kr[1]+0].value<<16|ir[2][kr[2]+0].value)>>>0,Bo==0&&256>ir[0][kr[0]+0].value&&(uA.Qb=1,uA.qb+=ir[0][kr[0]+0].value<<8)),uA.jc=!uA.Qb&&6>ln,uA.jc){var Du,Hi=uA;for(Du=0;Du<ha;++Du){var ys=Du,Cs=Hi.pd[ys],Hu=Hi.G[0][Hi.H[0]+ys];256<=Hu.value?(Cs.g=Hu.g+256,Cs.value=Hu.value):(Cs.g=0,Cs.value=0,ys>>=tn(Hu,8,Cs),ys>>=tn(Hi.G[1][Hi.H[1]+ys],16,Cs),ys>>=tn(Hi.G[2][Hi.H[2]+ys],0,Cs),tn(Hi.G[3][Hi.H[3]+ys],24,Cs))}}}qA.vc=Re,qA.Wb=Xe,qA.Ya=nr,qA.yc=er,jt=1;break e}jt=0}if(!(D=jt)){x.a=3;break t}if(0<Ct){if(Y.ua=1<<Ct,!S(Y.Wa,Ct)){x.a=1,D=0;break t}}else Y.ua=0;var $d=x,rm=M,k4=T,qd=$d.s,Xd=qd.xc;if($d.c=rm,$d.i=k4,qd.md=mt(rm,Xd),qd.wc=Xd==0?-1:(1<<Xd)-1,y){x.xb=c4;break t}if((ut=i(M*T))==null){x.a=1,D=0;break t}D=(D=Er(x,ut,0,M,T,T,null))&&!K.h;break t}return D?(I!=null?I[0]=ut:(t(ut==null),t(y)),x.$=0,y||dr(Y)):dr(Y),D}function Ao(h,g){var y=h.c*h.i,x=y+g+16*g;return t(h.c<=g),h.V=i(x),h.V==null?(h.Ta=null,h.Ua=0,h.a=1,0):(h.Ta=h.V,h.Ua=h.Ba+y+g,1)}function Jo(h,g){var y=h.C,x=g-y,I=h.V,D=h.Ba+h.c*y;for(t(g<=h.l.o);0<x;){var M=16<x?16:x,T=h.l.ma,K=h.l.width,Y=K*M,ut=T.ca,Ct=T.tb+K*y,J=h.Ta,dt=h.Ua;to(h,M,I,D),I1(J,dt,ut,Ct,Y),zr(T,y,y+M,ut,Ct,K),x-=M,I+=M*h.c,y+=M}t(y==g),h.C=h.Ma=g}function Zo(){this.ub=this.yd=this.td=this.Rb=0}function ta(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function pd(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function ll(){this.Yb=function(){var h=[];return function g(y,x,I){for(var D=I[x],M=0;M<D&&(y.push(I.length>x+1?[]:0),!(I.length<x+1));M++)g(y[M],x+1,I)}(h,0,[3,11]),h}()}function nu(){this.jb=i(3),this.Wc=o([4,8],ll),this.Xc=o([4,17],ll)}function ru(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function gr(){this.ld=this.La=this.dd=this.tc=0}function cl(){this.Na=this.la=0}function iu(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ul(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function su(){this.uc=this.M=this.Nb=0,this.wa=Array(new gr),this.Y=0,this.ya=Array(new ul),this.aa=0,this.l=new ea}function ou(){this.y=i(16),this.f=i(8),this.ea=i(8)}function au(){this.cb=this.a=0,this.sc="",this.m=new U,this.Od=new Zo,this.Kc=new ta,this.ed=new ru,this.Qa=new pd,this.Ic=this.$c=this.Aa=0,this.D=new su,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,U),this.ia=0,this.pb=s(4,iu),this.Pa=new nu,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ou),this.Hd=0,this.rb=Array(new cl),this.sb=0,this.wa=Array(new gr),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 ul),this.L=this.aa=0,this.gd=o([4,2],gr),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 qr(h,g){return 0>h?0:h>g?g:h}function ea(){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 md(){var h=new au;return h!=null&&(h.a=0,h.sc="OK",h.cb=0,h.Xb=0,Ul||(Ul=Aa)),h}function VA(h,g,y){return h.a==0&&(h.a=g,h.sc=y,h.cb=0),0}function lu(h,g,y){return 3<=y&&h[g+0]==157&&h[g+1]==1&&h[g+2]==42}function Xr(h,g){if(h==null)return 0;if(h.a=0,h.sc="OK",g==null)return VA(h,2,"null VP8Io passed to VP8GetHeaders()");var y=g.data,x=g.w,I=g.ha;if(4>I)return VA(h,7,"Truncated header.");var D=y[x+0]|y[x+1]<<8|y[x+2]<<16,M=h.Od;if(M.Rb=!(1&D),M.td=D>>1&7,M.yd=D>>4&1,M.ub=D>>5,3<M.td)return VA(h,3,"Incorrect keyframe parameters.");if(!M.yd)return VA(h,4,"Frame not displayable.");x+=3,I-=3;var T=h.Kc;if(M.Rb){if(7>I)return VA(h,7,"cannot parse picture header");if(!lu(y,x,I))return VA(h,3,"Bad code word");T.c=16383&(y[x+4]<<8|y[x+3]),T.Td=y[x+4]>>6,T.i=16383&(y[x+6]<<8|y[x+5]),T.Ud=y[x+6]>>6,x+=7,I-=7,h.za=T.c+15>>4,h.Ub=T.i+15>>4,g.width=T.c,g.height=T.i,g.Da=0,g.j=0,g.v=0,g.va=g.width,g.o=g.height,g.da=0,g.ib=g.width,g.hb=g.height,g.U=g.width,g.T=g.height,r((D=h.Pa).jb,0,255,D.jb.length),t((D=h.Qa)!=null),D.Cb=0,D.Bb=0,D.Fb=1,r(D.Zb,0,0,D.Zb.length),r(D.Lb,0,0,D.Lb)}if(M.ub>I)return VA(h,7,"bad partition length");lt(D=h.m,y,x,M.ub),x+=M.ub,I-=M.ub,M.Rb&&(T.Ld=ot(D),T.Kd=ot(D)),T=h.Qa;var K,Y=h.Pa;if(t(D!=null),t(T!=null),T.Cb=ot(D),T.Cb){if(T.Bb=ot(D),ot(D)){for(T.Fb=ot(D),K=0;4>K;++K)T.Zb[K]=ot(D)?at(D,7):0;for(K=0;4>K;++K)T.Lb[K]=ot(D)?at(D,6):0}if(T.Bb)for(K=0;3>K;++K)Y.jb[K]=ot(D)?ct(D,8):255}else T.Bb=0;if(D.Ka)return VA(h,3,"cannot parse segment header");if((T=h.ed).zd=ot(D),T.Tb=ct(D,6),T.wb=ct(D,3),T.Pc=ot(D),T.Pc&&ot(D)){for(Y=0;4>Y;++Y)ot(D)&&(T.vd[Y]=at(D,6));for(Y=0;4>Y;++Y)ot(D)&&(T.od[Y]=at(D,6))}if(h.L=T.Tb==0?0:T.zd?1:2,D.Ka)return VA(h,3,"cannot parse filter header");var ut=I;if(I=K=x,x=K+ut,T=ut,h.Xb=(1<<ct(h.m,2))-1,ut<3*(Y=h.Xb))y=7;else{for(K+=3*Y,T-=3*Y,ut=0;ut<Y;++ut){var Ct=y[I+0]|y[I+1]<<8|y[I+2]<<16;Ct>T&&(Ct=T),lt(h.Jc[+ut],y,K,Ct),K+=Ct,T-=Ct,I+=3}lt(h.Jc[+Y],y,K,T),y=K<x?0:5}if(y!=0)return VA(h,y,"cannot parse partitions");for(y=ct(K=h.m,7),I=ot(K)?at(K,4):0,x=ot(K)?at(K,4):0,T=ot(K)?at(K,4):0,Y=ot(K)?at(K,4):0,K=ot(K)?at(K,4):0,ut=h.Qa,Ct=0;4>Ct;++Ct){if(ut.Cb){var J=ut.Zb[Ct];ut.Fb||(J+=y)}else{if(0<Ct){h.pb[Ct]=h.pb[0];continue}J=y}var dt=h.pb[Ct];dt.Sc[0]=Pd[qr(J+I,127)],dt.Sc[1]=Rd[qr(J+0,127)],dt.Eb[0]=2*Pd[qr(J+x,127)],dt.Eb[1]=101581*Rd[qr(J+T,127)]>>16,8>dt.Eb[1]&&(dt.Eb[1]=8),dt.Qc[0]=Pd[qr(J+Y,117)],dt.Qc[1]=Rd[qr(J+K,127)],dt.lc=J+K}if(!M.Rb)return VA(h,4,"Not a key frame.");for(ot(D),M=h.Pa,y=0;4>y;++y){for(I=0;8>I;++I)for(x=0;3>x;++x)for(T=0;11>T;++T)Y=wt(D,a4[y][I][x][T])?ct(D,8):s4[y][I][x][T],M.Wc[y][I].Yb[x][T]=Y;for(I=0;17>I;++I)M.Xc[y][I]=M.Wc[y][l4[I]]}return h.kc=ot(D),h.kc&&(h.Bd=ct(D,8)),h.cb=1}function Aa(h,g,y,x,I,D,M){var T=g[I].Yb[y];for(y=0;16>I;++I){if(!wt(h,T[y+0]))return I;for(;!wt(h,T[y+1]);)if(T=g[++I].Yb[0],y=0,I==16)return 16;var K=g[I+1].Yb;if(wt(h,T[y+2])){var Y=h,ut=0;if(wt(Y,(J=T)[(Ct=y)+3]))if(wt(Y,J[Ct+6])){for(T=0,Ct=2*(ut=wt(Y,J[Ct+8]))+(J=wt(Y,J[Ct+9+ut])),ut=0,J=r4[Ct];J[T];++T)ut+=ut+wt(Y,J[T]);ut+=3+(8<<Ct)}else wt(Y,J[Ct+7])?(ut=7+2*wt(Y,165),ut+=wt(Y,145)):ut=5+wt(Y,159);else ut=wt(Y,J[Ct+4])?3+wt(Y,J[Ct+5]):2;T=K[2]}else ut=1,T=K[1];K=M+i4[I],0>(Y=h).b&&nt(Y);var Ct,J=Y.b,dt=(Ct=Y.Ca>>1)-(Y.I>>J)>>31;--Y.b,Y.Ca+=dt,Y.Ca|=1,Y.I-=(Ct+1&dt)<<J,D[K]=((ut^dt)-dt)*x[(0<I)+0]}return 16}function fl(h){var g=h.rb[h.sb-1];g.la=0,g.Na=0,r(h.zc,0,0,h.zc.length),h.ja=0}function Zn(h,g,y,x,I){I=h[g+y+32*x]+(I>>3),h[g+y+32*x]=-256&I?0>I?0:255:I}function na(h,g,y,x,I,D){Zn(h,g,0,y,x+I),Zn(h,g,1,y,x+D),Zn(h,g,2,y,x-D),Zn(h,g,3,y,x-I)}function _i(h){return(20091*h>>16)+h}function sn(h,g,y,x){var I,D=0,M=i(16);for(I=0;4>I;++I){var T=h[g+0]+h[g+8],K=h[g+0]-h[g+8],Y=(35468*h[g+4]>>16)-_i(h[g+12]),ut=_i(h[g+4])+(35468*h[g+12]>>16);M[D+0]=T+ut,M[D+1]=K+Y,M[D+2]=K-Y,M[D+3]=T-ut,D+=4,g++}for(I=D=0;4>I;++I)T=(h=M[D+0]+4)+M[D+8],K=h-M[D+8],Y=(35468*M[D+4]>>16)-_i(M[D+12]),Zn(y,x,0,0,T+(ut=_i(M[D+4])+(35468*M[D+12]>>16))),Zn(y,x,1,0,K+Y),Zn(y,x,2,0,K-Y),Zn(y,x,3,0,T-ut),D++,x+=32}function cu(h,g,y,x){var I=h[g+0]+4,D=35468*h[g+4]>>16,M=_i(h[g+4]),T=35468*h[g+1]>>16;na(y,x,0,I+M,h=_i(h[g+1]),T),na(y,x,1,I+D,h,T),na(y,x,2,I-D,h,T),na(y,x,3,I-M,h,T)}function Bd(h,g,y,x,I){sn(h,g,y,x),I&&sn(h,g+16,y,x+4)}function wd(h,g,y,x){Li(h,g+0,y,x,1),Li(h,g+32,y,x+128,1)}function vd(h,g,y,x){var I;for(h=h[g+0]+4,I=0;4>I;++I)for(g=0;4>g;++g)Zn(y,x,g,I,h)}function Yr(h,g,y,x){h[g+0]&&pn(h,g+0,y,x),h[g+16]&&pn(h,g+16,y,x+4),h[g+32]&&pn(h,g+32,y,x+128),h[g+48]&&pn(h,g+48,y,x+128+4)}function uu(h,g,y,x){var I,D=i(16);for(I=0;4>I;++I){var M=h[g+0+I]+h[g+12+I],T=h[g+4+I]+h[g+8+I],K=h[g+4+I]-h[g+8+I],Y=h[g+0+I]-h[g+12+I];D[0+I]=M+T,D[8+I]=M-T,D[4+I]=Y+K,D[12+I]=Y-K}for(I=0;4>I;++I)M=(h=D[0+4*I]+3)+D[3+4*I],T=D[1+4*I]+D[2+4*I],K=D[1+4*I]-D[2+4*I],Y=h-D[3+4*I],y[x+0]=M+T>>3,y[x+16]=Y+K>>3,y[x+32]=M-T>>3,y[x+48]=Y-K>>3,x+=64}function ra(h,g,y){var x,I=g-32,D=tr,M=255-h[I-1];for(x=0;x<y;++x){var T,K=D,Y=M+h[g-1];for(T=0;T<y;++T)h[g+T]=K[Y+h[I+T]];g+=32}}function ia(h,g){ra(h,g,4)}function hl(h,g){ra(h,g,8)}function bd(h,g){ra(h,g,16)}function yd(h,g){var y;for(y=0;16>y;++y)n(h,g+32*y,h,g-32,16)}function Cd(h,g){var y;for(y=16;0<y;--y)r(h,g,h[g-1],16),g+=32}function cs(h,g,y){var x;for(x=0;16>x;++x)r(g,y+32*x,h,16)}function fu(h,g){var y,x=16;for(y=0;16>y;++y)x+=h[g-1+32*y]+h[g+y-32];cs(x>>5,h,g)}function us(h,g){var y,x=8;for(y=0;16>y;++y)x+=h[g-1+32*y];cs(x>>4,h,g)}function xd(h,g){var y,x=8;for(y=0;16>y;++y)x+=h[g+y-32];cs(x>>4,h,g)}function no(h,g){cs(128,h,g)}function Be(h,g,y){return h+2*g+y+2>>2}function Fd(h,g){var y,x=g-32;for(x=new Uint8Array([Be(h[x-1],h[x+0],h[x+1]),Be(h[x+0],h[x+1],h[x+2]),Be(h[x+1],h[x+2],h[x+3]),Be(h[x+2],h[x+3],h[x+4])]),y=0;4>y;++y)n(h,g+32*y,x,0,x.length)}function _d(h,g){var y=h[g-1],x=h[g-1+32],I=h[g-1+64],D=h[g-1+96];_t(h,g+0,16843009*Be(h[g-1-32],y,x)),_t(h,g+32,16843009*Be(y,x,I)),_t(h,g+64,16843009*Be(x,I,D)),_t(h,g+96,16843009*Be(I,D,D))}function Ud(h,g){var y,x=4;for(y=0;4>y;++y)x+=h[g+y-32]+h[g-1+32*y];for(x>>=3,y=0;4>y;++y)r(h,g+32*y,x,4)}function Qd(h,g){var y=h[g-1+0],x=h[g-1+32],I=h[g-1+64],D=h[g-1-32],M=h[g+0-32],T=h[g+1-32],K=h[g+2-32],Y=h[g+3-32];h[g+0+96]=Be(x,I,h[g-1+96]),h[g+1+96]=h[g+0+64]=Be(y,x,I),h[g+2+96]=h[g+1+64]=h[g+0+32]=Be(D,y,x),h[g+3+96]=h[g+2+64]=h[g+1+32]=h[g+0+0]=Be(M,D,y),h[g+3+64]=h[g+2+32]=h[g+1+0]=Be(T,M,D),h[g+3+32]=h[g+2+0]=Be(K,T,M),h[g+3+0]=Be(Y,K,T)}function Ed(h,g){var y=h[g+1-32],x=h[g+2-32],I=h[g+3-32],D=h[g+4-32],M=h[g+5-32],T=h[g+6-32],K=h[g+7-32];h[g+0+0]=Be(h[g+0-32],y,x),h[g+1+0]=h[g+0+32]=Be(y,x,I),h[g+2+0]=h[g+1+32]=h[g+0+64]=Be(x,I,D),h[g+3+0]=h[g+2+32]=h[g+1+64]=h[g+0+96]=Be(I,D,M),h[g+3+32]=h[g+2+64]=h[g+1+96]=Be(D,M,T),h[g+3+64]=h[g+2+96]=Be(M,T,K),h[g+3+96]=Be(T,K,K)}function Ui(h,g){var y=h[g-1+0],x=h[g-1+32],I=h[g-1+64],D=h[g-1-32],M=h[g+0-32],T=h[g+1-32],K=h[g+2-32],Y=h[g+3-32];h[g+0+0]=h[g+1+64]=D+M+1>>1,h[g+1+0]=h[g+2+64]=M+T+1>>1,h[g+2+0]=h[g+3+64]=T+K+1>>1,h[g+3+0]=K+Y+1>>1,h[g+0+96]=Be(I,x,y),h[g+0+64]=Be(x,y,D),h[g+0+32]=h[g+1+96]=Be(y,D,M),h[g+1+32]=h[g+2+96]=Be(D,M,T),h[g+2+32]=h[g+3+96]=Be(M,T,K),h[g+3+32]=Be(T,K,Y)}function Qi(h,g){var y=h[g+0-32],x=h[g+1-32],I=h[g+2-32],D=h[g+3-32],M=h[g+4-32],T=h[g+5-32],K=h[g+6-32],Y=h[g+7-32];h[g+0+0]=y+x+1>>1,h[g+1+0]=h[g+0+64]=x+I+1>>1,h[g+2+0]=h[g+1+64]=I+D+1>>1,h[g+3+0]=h[g+2+64]=D+M+1>>1,h[g+0+32]=Be(y,x,I),h[g+1+32]=h[g+0+96]=Be(x,I,D),h[g+2+32]=h[g+1+96]=Be(I,D,M),h[g+3+32]=h[g+2+96]=Be(D,M,T),h[g+3+64]=Be(M,T,K),h[g+3+96]=Be(T,K,Y)}function Id(h,g){var y=h[g-1+0],x=h[g-1+32],I=h[g-1+64],D=h[g-1+96];h[g+0+0]=y+x+1>>1,h[g+2+0]=h[g+0+32]=x+I+1>>1,h[g+2+32]=h[g+0+64]=I+D+1>>1,h[g+1+0]=Be(y,x,I),h[g+3+0]=h[g+1+32]=Be(x,I,D),h[g+3+32]=h[g+1+64]=Be(I,D,D),h[g+3+64]=h[g+2+64]=h[g+0+96]=h[g+1+96]=h[g+2+96]=h[g+3+96]=D}function Sd(h,g){var y=h[g-1+0],x=h[g-1+32],I=h[g-1+64],D=h[g-1+96],M=h[g-1-32],T=h[g+0-32],K=h[g+1-32],Y=h[g+2-32];h[g+0+0]=h[g+2+32]=y+M+1>>1,h[g+0+32]=h[g+2+64]=x+y+1>>1,h[g+0+64]=h[g+2+96]=I+x+1>>1,h[g+0+96]=D+I+1>>1,h[g+3+0]=Be(T,K,Y),h[g+2+0]=Be(M,T,K),h[g+1+0]=h[g+3+32]=Be(y,M,T),h[g+1+32]=h[g+3+64]=Be(x,y,M),h[g+1+64]=h[g+3+96]=Be(I,x,y),h[g+1+96]=Be(D,I,x)}function sa(h,g){var y;for(y=0;8>y;++y)n(h,g+32*y,h,g-32,8)}function dl(h,g){var y;for(y=0;8>y;++y)r(h,g,h[g-1],8),g+=32}function Jr(h,g,y){var x;for(x=0;8>x;++x)r(g,y+32*x,h,8)}function Ld(h,g){var y,x=8;for(y=0;8>y;++y)x+=h[g+y-32]+h[g-1+32*y];Jr(x>>4,h,g)}function oa(h,g){var y,x=4;for(y=0;8>y;++y)x+=h[g+y-32];Jr(x>>3,h,g)}function kd(h,g){var y,x=4;for(y=0;8>y;++y)x+=h[g-1+32*y];Jr(x>>3,h,g)}function gl(h,g){Jr(128,h,g)}function fs(h,g,y){var x=h[g-y],I=h[g+0],D=3*(I-x)+Dd[1020+h[g-2*y]-h[g+y]],M=bu[112+(D+4>>3)];h[g-y]=tr[255+x+bu[112+(D+3>>3)]],h[g+0]=tr[255+I-M]}function pl(h,g,y,x){var I=h[g+0],D=h[g+y];return mr[255+h[g-2*y]-h[g-y]]>x||mr[255+D-I]>x}function ro(h,g,y,x){return 4*mr[255+h[g-y]-h[g+0]]+mr[255+h[g-2*y]-h[g+y]]<=x}function ml(h,g,y,x,I){var D=h[g-3*y],M=h[g-2*y],T=h[g-y],K=h[g+0],Y=h[g+y],ut=h[g+2*y],Ct=h[g+3*y];return 4*mr[255+T-K]+mr[255+M-Y]>x?0:mr[255+h[g-4*y]-D]<=I&&mr[255+D-M]<=I&&mr[255+M-T]<=I&&mr[255+Ct-ut]<=I&&mr[255+ut-Y]<=I&&mr[255+Y-K]<=I}function aa(h,g,y,x){var I=2*x+1;for(x=0;16>x;++x)ro(h,g+x,y,I)&&fs(h,g+x,y)}function Bl(h,g,y,x){var I=2*x+1;for(x=0;16>x;++x)ro(h,g+x*y,1,I)&&fs(h,g+x*y,1)}function la(h,g,y,x){var I;for(I=3;0<I;--I)aa(h,g+=4*y,y,x)}function hu(h,g,y,x){var I;for(I=3;0<I;--I)Bl(h,g+=4,y,x)}function Ei(h,g,y,x,I,D,M,T){for(D=2*D+1;0<I--;){if(ml(h,g,y,D,M))if(pl(h,g,y,T))fs(h,g,y);else{var K=h,Y=g,ut=y,Ct=K[Y-2*ut],J=K[Y-ut],dt=K[Y+0],vt=K[Y+ut],Qt=K[Y+2*ut],yt=27*(Lt=Dd[1020+3*(dt-J)+Dd[1020+Ct-vt]])+63>>7,St=18*Lt+63>>7,Lt=9*Lt+63>>7;K[Y-3*ut]=tr[255+K[Y-3*ut]+Lt],K[Y-2*ut]=tr[255+Ct+St],K[Y-ut]=tr[255+J+yt],K[Y+0]=tr[255+dt-yt],K[Y+ut]=tr[255+vt-St],K[Y+2*ut]=tr[255+Qt-Lt]}g+=x}}function Ii(h,g,y,x,I,D,M,T){for(D=2*D+1;0<I--;){if(ml(h,g,y,D,M))if(pl(h,g,y,T))fs(h,g,y);else{var K=h,Y=g,ut=y,Ct=K[Y-ut],J=K[Y+0],dt=K[Y+ut],vt=bu[112+(4+(Qt=3*(J-Ct))>>3)],Qt=bu[112+(Qt+3>>3)],yt=vt+1>>1;K[Y-2*ut]=tr[255+K[Y-2*ut]+yt],K[Y-ut]=tr[255+Ct+Qt],K[Y+0]=tr[255+J-vt],K[Y+ut]=tr[255+dt-yt]}g+=x}}function du(h,g,y,x,I,D){Ei(h,g,y,1,16,x,I,D)}function gu(h,g,y,x,I,D){Ei(h,g,1,y,16,x,I,D)}function pu(h,g,y,x,I,D){var M;for(M=3;0<M;--M)Ii(h,g+=4*y,y,1,16,x,I,D)}function io(h,g,y,x,I,D){var M;for(M=3;0<M;--M)Ii(h,g+=4,1,y,16,x,I,D)}function mu(h,g,y,x,I,D,M,T){Ei(h,g,I,1,8,D,M,T),Ei(y,x,I,1,8,D,M,T)}function w(h,g,y,x,I,D,M,T){Ei(h,g,1,I,8,D,M,T),Ei(y,x,1,I,8,D,M,T)}function E(h,g,y,x,I,D,M,T){Ii(h,g+4*I,I,1,8,D,M,T),Ii(y,x+4*I,I,1,8,D,M,T)}function X(h,g,y,x,I,D,M,T){Ii(h,g+4,1,I,8,D,M,T),Ii(y,x+4,1,I,8,D,M,T)}function it(){this.ba=new ke,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new je,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function gt(){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 Ut(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Dt(){this.ua=0,this.Wa=new xt,this.vb=new xt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ft,this.yc=new G}function Ae(){this.xb=this.a=0,this.l=new ea,this.ca=new ke,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Dt,this.ab=0,this.gc=s(4,Ut),this.Oc=0}function te(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ea,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ve(h,g,y,x,I,D,M){for(h=h==null?0:h[g+0],g=0;g<M;++g)I[D+g]=h+y[x+g]&255,h=I[D+g]}function Fe(h,g,y,x,I,D,M){var T;if(h==null)ve(null,null,y,x,I,D,M);else for(T=0;T<M;++T)I[D+T]=h[g+T]+y[x+T]&255}function Oe(h,g,y,x,I,D,M){if(h==null)ve(null,null,y,x,I,D,M);else{var T,K=h[g+0],Y=K,ut=K;for(T=0;T<M;++T)Y=ut+(K=h[g+T])-Y,ut=y[x+T]+(-256&Y?0>Y?0:255:Y)&255,Y=K,I[D+T]=ut}}function jA(h,g,y,x){var I=g.width,D=g.o;if(t(h!=null&&g!=null),0>y||0>=x||y+x>D)return null;if(!h.Cc){if(h.ga==null){var M;if(h.ga=new te,(M=h.ga==null)||(M=g.width*g.o,t(h.Gb.length==0),h.Gb=i(M),h.Uc=0,h.Gb==null?M=0:(h.mb=h.Gb,h.nb=h.Uc,h.rc=null,M=1),M=!M),!M){M=h.ga;var T=h.Fa,K=h.P,Y=h.qc,ut=h.mb,Ct=h.nb,J=K+1,dt=Y-1,vt=M.l;if(t(T!=null&&ut!=null&&g!=null),ws[0]=null,ws[1]=ve,ws[2]=Fe,ws[3]=Oe,M.ca=ut,M.tb=Ct,M.c=g.width,M.i=g.height,t(0<M.c&&0<M.i),1>=Y)g=0;else if(M.$a=3&T[K+0],M.Z=T[K+0]>>2&3,M.Lc=T[K+0]>>4&3,K=T[K+0]>>6&3,0>M.$a||1<M.$a||4<=M.Z||1<M.Lc||K)g=0;else if(vt.put=de,vt.ac=Wr,vt.bc=xi,vt.ma=M,vt.width=g.width,vt.height=g.height,vt.Da=g.Da,vt.v=g.v,vt.va=g.va,vt.j=g.j,vt.o=g.o,M.$a)t:{t(M.$a==1),g=eo();e:for(;;){if(g==null){g=0;break t}if(t(M!=null),M.mc=g,g.c=M.c,g.i=M.i,g.l=M.l,g.l.ma=M,g.l.width=M.c,g.l.height=M.i,g.a=0,st(g.m,T,J,dt),!$r(M.c,M.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&Ur(g.s)?(M.ic=1,T=g.c*g.i,g.Ta=null,g.Ua=0,g.V=i(T),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(M.ic=0,g=Ao(g,M.c)),!g))break e;g=1;break t}M.mc=null,g=0}else g=dt>=M.c*M.i;M=!g}if(M)return null;h.ga.Lc!=1?h.Ga=0:x=D-y}t(h.ga!=null),t(y+x<=D);t:{if(g=(T=h.ga).c,D=T.l.o,T.$a==0){if(J=h.rc,dt=h.Vc,vt=h.Fa,K=h.P+1+y*g,Y=h.mb,ut=h.nb+y*g,t(K<=h.P+h.qc),T.Z!=0)for(t(ws[T.Z]!=null),M=0;M<x;++M)ws[T.Z](J,dt,vt,K,Y,ut,g),J=Y,dt=ut,ut+=g,K+=g;else for(M=0;M<x;++M)n(Y,ut,vt,K,g),J=Y,dt=ut,ut+=g,K+=g;h.rc=J,h.Vc=dt}else{if(t(T.mc!=null),g=y+x,t((M=T.mc)!=null),t(g<=M.i),M.C>=g)g=1;else if(T.ic||FA(),T.ic){T=M.V,J=M.Ba,dt=M.c;var Qt=M.i,yt=(vt=1,K=M.$/dt,Y=M.$%dt,ut=M.m,Ct=M.s,M.$),St=dt*Qt,Lt=dt*g,Ot=Ct.wc,Ht=yt<Lt?rn(Ct,Y,K):null;t(yt<=St),t(g<=Qt),t(Ur(Ct));e:for(;;){for(;!ut.h&&yt<Lt;){if(Y&Ot||(Ht=rn(Ct,Y,K)),t(Ht!=null),z(ut),256>(Qt=_A(Ht.G[0],Ht.H[0],ut)))T[J+yt]=Qt,++yt,++Y>=dt&&(Y=0,++K<=g&&!(K%16)&&Qr(M,K));else{if(!(280>Qt)){vt=0;break e}Qt=fr(Qt-256,ut);var se,Jt=_A(Ht.G[4],Ht.H[4],ut);if(z(ut),!(yt>=(Jt=hr(dt,Jt=fr(Jt,ut)))&&St-yt>=Qt)){vt=0;break e}for(se=0;se<Qt;++se)T[J+yt+se]=T[J+yt+se-Jt];for(yt+=Qt,Y+=Qt;Y>=dt;)Y-=dt,++K<=g&&!(K%16)&&Qr(M,K);yt<Lt&&Y&Ot&&(Ht=rn(Ct,Y,K))}t(ut.h==et(ut))}Qr(M,K>g?g:K);break e}!vt||ut.h&&yt<St?(vt=0,M.a=ut.h?5:3):M.$=yt,g=vt}else g=Er(M,M.V,M.Ba,M.c,M.i,g,Jo);if(!g){x=0;break t}}y+x>=D&&(h.Cc=1),x=1}if(!x)return null;if(h.Cc&&((x=h.ga)!=null&&(x.mc=null),h.ga=null,0<h.Ga))return alert("todo:WebPDequantizeLevels"),null}return h.nb+y*I}function rA(h,g,y,x,I,D){for(;0<I--;){var M,T=h,K=g+(y?1:0),Y=h,ut=g+(y?0:3);for(M=0;M<x;++M){var Ct=Y[ut+4*M];Ct!=255&&(Ct*=32897,T[K+4*M+0]=T[K+4*M+0]*Ct>>23,T[K+4*M+1]=T[K+4*M+1]*Ct>>23,T[K+4*M+2]=T[K+4*M+2]*Ct>>23)}g+=D}}function eA(h,g,y,x,I){for(;0<x--;){var D;for(D=0;D<y;++D){var M=h[g+2*D+0],T=15&(Y=h[g+2*D+1]),K=4369*T,Y=(240&Y|Y>>4)*K>>16;h[g+2*D+0]=(240&M|M>>4)*K>>16&240|(15&M|M<<4)*K>>16>>4&15,h[g+2*D+1]=240&Y|T}g+=I}}function gA(h,g,y,x,I,D,M,T){var K,Y,ut=255;for(Y=0;Y<I;++Y){for(K=0;K<x;++K){var Ct=h[g+K];D[M+4*K]=Ct,ut&=Ct}g+=y,M+=T}return ut!=255}function xA(h,g,y,x,I){var D;for(D=0;D<I;++D)y[x+D]=h[g+D]>>8}function FA(){_l=rA,Q1=eA,E1=gA,I1=xA}function dn(h,g,y){k[h]=function(x,I,D,M,T,K,Y,ut,Ct,J,dt,vt,Qt,yt,St,Lt,Ot){var Ht,se=Ot-1>>1,Jt=T[K+0]|Y[ut+0]<<16,Ie=Ct[J+0]|dt[vt+0]<<16;t(x!=null);var ne=3*Jt+Ie+131074>>2;for(g(x[I+0],255&ne,ne>>16,Qt,yt),D!=null&&(ne=3*Ie+Jt+131074>>2,g(D[M+0],255&ne,ne>>16,St,Lt)),Ht=1;Ht<=se;++Ht){var Te=T[K+Ht]|Y[ut+Ht]<<16,$A=Ct[J+Ht]|dt[vt+Ht]<<16,Se=Jt+Te+Ie+$A+524296,re=Se+2*(Te+Ie)>>3;ne=re+Jt>>1,Jt=(Se=Se+2*(Jt+$A)>>3)+Te>>1,g(x[I+2*Ht-1],255&ne,ne>>16,Qt,yt+(2*Ht-1)*y),g(x[I+2*Ht-0],255&Jt,Jt>>16,Qt,yt+(2*Ht-0)*y),D!=null&&(ne=Se+Ie>>1,Jt=re+$A>>1,g(D[M+2*Ht-1],255&ne,ne>>16,St,Lt+(2*Ht-1)*y),g(D[M+2*Ht+0],255&Jt,Jt>>16,St,Lt+(2*Ht+0)*y)),Jt=Te,Ie=$A}1&Ot||(ne=3*Jt+Ie+131074>>2,g(x[I+Ot-1],255&ne,ne>>16,Qt,yt+(Ot-1)*y),D!=null&&(ne=3*Ie+Jt+131074>>2,g(D[M+Ot-1],255&ne,ne>>16,St,Lt+(Ot-1)*y)))}}function Si(){Br[yu]=u4,Br[Cu]=R1,Br[H1]=f4,Br[xu]=K1,Br[Fu]=V1,Br[Hd]=j1,Br[M1]=h4,Br[Md]=R1,Br[Td]=K1,Br[_u]=V1,Br[Od]=j1}function wl(h){return h&-16384?0>h?0:255:h>>d4}function so(h,g){return wl((19077*h>>8)+(26149*g>>8)-14234)}function oo(h,g,y){return wl((19077*h>>8)-(6419*g>>8)-(13320*y>>8)+8708)}function hs(h,g){return wl((19077*h>>8)+(33050*g>>8)-17685)}function ao(h,g,y,x,I){x[I+0]=so(h,y),x[I+1]=oo(h,g,y),x[I+2]=hs(h,g)}function ca(h,g,y,x,I){x[I+0]=hs(h,g),x[I+1]=oo(h,g,y),x[I+2]=so(h,y)}function ua(h,g,y,x,I){var D=oo(h,g,y);g=D<<3&224|hs(h,g)>>3,x[I+0]=248&so(h,y)|D>>5,x[I+1]=g}function gn(h,g,y,x,I){var D=240&hs(h,g)|15;x[I+0]=240&so(h,y)|oo(h,g,y)>>4,x[I+1]=D}function lo(h,g,y,x,I){x[I+0]=255,ao(h,g,y,x,I+1)}function co(h,g,y,x,I){ca(h,g,y,x,I),x[I+3]=255}function vl(h,g,y,x,I){ao(h,g,y,x,I),x[I+3]=255}function Zr(h,g,y){k[h]=function(x,I,D,M,T,K,Y,ut,Ct){for(var J=ut+(-2&Ct)*y;ut!=J;)g(x[I+0],D[M+0],T[K+0],Y,ut),g(x[I+1],D[M+0],T[K+0],Y,ut+y),I+=2,++M,++K,ut+=2*y;1&Ct&&g(x[I+0],D[M+0],T[K+0],Y,ut)}}function Ln(h,g,y){return y==0?h==0?g==0?6:5:g==0?4:0:y}function Bu(h,g,y,x,I){switch(h>>>30){case 3:Li(g,y,x,I,0);break;case 2:ms(g,y,x,I);break;case 1:pn(g,y,x,I)}}function fa(h,g){var y,x,I=g.M,D=g.Nb,M=h.oc,T=h.pc+40,K=h.oc,Y=h.pc+584,ut=h.oc,Ct=h.pc+600;for(y=0;16>y;++y)M[T+32*y-1]=129;for(y=0;8>y;++y)K[Y+32*y-1]=129,ut[Ct+32*y-1]=129;for(0<I?M[T-1-32]=K[Y-1-32]=ut[Ct-1-32]=129:(r(M,T-32-1,127,21),r(K,Y-32-1,127,9),r(ut,Ct-32-1,127,9)),x=0;x<h.za;++x){var J=g.ya[g.aa+x];if(0<x){for(y=-1;16>y;++y)n(M,T+32*y-4,M,T+32*y+12,4);for(y=-1;8>y;++y)n(K,Y+32*y-4,K,Y+32*y+4,4),n(ut,Ct+32*y-4,ut,Ct+32*y+4,4)}var dt=h.Gd,vt=h.Hd+x,Qt=J.ad,yt=J.Hc;if(0<I&&(n(M,T-32,dt[vt].y,0,16),n(K,Y-32,dt[vt].f,0,8),n(ut,Ct-32,dt[vt].ea,0,8)),J.Za){var St=M,Lt=T-32+16;for(0<I&&(x>=h.za-1?r(St,Lt,dt[vt].y[15],4):n(St,Lt,dt[vt+1].y,0,4)),y=0;4>y;y++)St[Lt+128+y]=St[Lt+256+y]=St[Lt+384+y]=St[Lt+0+y];for(y=0;16>y;++y,yt<<=2)St=M,Lt=T+W1[y],Sr[J.Ob[y]](St,Lt),Bu(yt,Qt,16*+y,St,Lt)}else if(St=Ln(x,I,J.Ob[0]),Bs[St](M,T),yt!=0)for(y=0;16>y;++y,yt<<=2)Bu(yt,Qt,16*+y,M,T+W1[y]);for(y=J.Gc,St=Ln(x,I,J.Dd),Ni[St](K,Y),Ni[St](ut,Ct),yt=Qt,St=K,Lt=Y,255&(J=0|y)&&(170&J?ma(yt,256,St,Lt):ei(yt,256,St,Lt)),J=ut,yt=Ct,255&(y>>=8)&&(170&y?ma(Qt,320,J,yt):ei(Qt,320,J,yt)),I<h.Ub-1&&(n(dt[vt].y,0,M,T+480,16),n(dt[vt].f,0,K,Y+224,8),n(dt[vt].ea,0,ut,Ct+224,8)),y=8*D*h.B,dt=h.sa,vt=h.ta+16*x+16*D*h.R,Qt=h.qa,J=h.ra+8*x+y,yt=h.Ha,St=h.Ia+8*x+y,y=0;16>y;++y)n(dt,vt+y*h.R,M,T+32*y,16);for(y=0;8>y;++y)n(Qt,J+y*h.B,K,Y+32*y,8),n(yt,St+y*h.B,ut,Ct+32*y,8)}}function wu(h,g,y,x,I,D,M,T,K){var Y=[0],ut=[0],Ct=0,J=K!=null?K.kd:0,dt=K??new gt;if(h==null||12>y)return 7;dt.data=h,dt.w=g,dt.ha=y,g=[g],y=[y],dt.gb=[dt.gb];t:{var vt=g,Qt=y,yt=dt.gb;if(t(h!=null),t(Qt!=null),t(yt!=null),yt[0]=0,12<=Qt[0]&&!A(h,vt[0],"RIFF")){if(A(h,vt[0]+8,"WEBP")){yt=3;break t}var St=rt(h,vt[0]+4);if(12>St||4294967286<St){yt=3;break t}if(J&&St>Qt[0]-8){yt=7;break t}yt[0]=St,vt[0]+=12,Qt[0]-=12}yt=0}if(yt!=0)return yt;for(St=0<dt.gb[0],y=y[0];;){t:{var Lt=h;Qt=g,yt=y;var Ot=Y,Ht=ut,se=vt=[0];if((ne=Ct=[Ct])[0]=0,8>yt[0])yt=7;else{if(!A(Lt,Qt[0],"VP8X")){if(rt(Lt,Qt[0]+4)!=10){yt=3;break t}if(18>yt[0]){yt=7;break t}var Jt=rt(Lt,Qt[0]+8),Ie=1+$(Lt,Qt[0]+12);if(2147483648<=Ie*(Lt=1+$(Lt,Qt[0]+15))){yt=3;break t}se!=null&&(se[0]=Jt),Ot!=null&&(Ot[0]=Ie),Ht!=null&&(Ht[0]=Lt),Qt[0]+=18,yt[0]-=18,ne[0]=1}yt=0}}if(Ct=Ct[0],vt=vt[0],yt!=0)return yt;if(Qt=!!(2&vt),!St&&Ct)return 3;if(D!=null&&(D[0]=!!(16&vt)),M!=null&&(M[0]=Qt),T!=null&&(T[0]=0),M=Y[0],vt=ut[0],Ct&&Qt&&K==null){yt=0;break}if(4>y){yt=7;break}if(St&&Ct||!St&&!Ct&&!A(h,g[0],"ALPH")){y=[y],dt.na=[dt.na],dt.P=[dt.P],dt.Sa=[dt.Sa];t:{Jt=h,yt=g,St=y;var ne=dt.gb;Ot=dt.na,Ht=dt.P,se=dt.Sa,Ie=22,t(Jt!=null),t(St!=null),Lt=yt[0];var Te=St[0];for(t(Ot!=null),t(se!=null),Ot[0]=null,Ht[0]=null,se[0]=0;;){if(yt[0]=Lt,St[0]=Te,8>Te){yt=7;break t}var $A=rt(Jt,Lt+4);if(4294967286<$A){yt=3;break t}var Se=8+$A+1&-2;if(Ie+=Se,0<ne&&Ie>ne){yt=3;break t}if(!A(Jt,Lt,"VP8 ")||!A(Jt,Lt,"VP8L")){yt=0;break t}if(Te[0]<Se){yt=7;break t}A(Jt,Lt,"ALPH")||(Ot[0]=Jt,Ht[0]=Lt+8,se[0]=$A),Lt+=Se,Te-=Se}}if(y=y[0],dt.na=dt.na[0],dt.P=dt.P[0],dt.Sa=dt.Sa[0],yt!=0)break}y=[y],dt.Ja=[dt.Ja],dt.xa=[dt.xa];t:if(ne=h,yt=g,St=y,Ot=dt.gb[0],Ht=dt.Ja,se=dt.xa,Jt=yt[0],Lt=!A(ne,Jt,"VP8 "),Ie=!A(ne,Jt,"VP8L"),t(ne!=null),t(St!=null),t(Ht!=null),t(se!=null),8>St[0])yt=7;else{if(Lt||Ie){if(ne=rt(ne,Jt+4),12<=Ot&&ne>Ot-12){yt=3;break t}if(J&&ne>St[0]-8){yt=7;break t}Ht[0]=ne,yt[0]+=8,St[0]-=8,se[0]=Ie}else se[0]=5<=St[0]&&ne[Jt+0]==47&&!(ne[Jt+4]>>5),Ht[0]=St[0];yt=0}if(y=y[0],dt.Ja=dt.Ja[0],dt.xa=dt.xa[0],g=g[0],yt!=0)break;if(4294967286<dt.Ja)return 3;if(T==null||Qt||(T[0]=dt.xa?2:1),M=[M],vt=[vt],dt.xa){if(5>y){yt=7;break}T=M,J=vt,Qt=D,h==null||5>y?h=0:5<=y&&h[g+0]==47&&!(h[g+4]>>5)?(St=[0],ne=[0],Ot=[0],st(Ht=new N,h,g,y),Fi(Ht,St,ne,Ot)?(T!=null&&(T[0]=St[0]),J!=null&&(J[0]=ne[0]),Qt!=null&&(Qt[0]=Ot[0]),h=1):h=0):h=0}else{if(10>y){yt=7;break}T=vt,h==null||10>y||!lu(h,g+3,y-3)?h=0:(J=h[g+0]|h[g+1]<<8|h[g+2]<<16,Qt=16383&(h[g+7]<<8|h[g+6]),h=16383&(h[g+9]<<8|h[g+8]),1&J||3<(J>>1&7)||!(J>>4&1)||J>>5>=dt.Ja||!Qt||!h?h=0:(M&&(M[0]=Qt),T&&(T[0]=h),h=1))}if(!h||(M=M[0],vt=vt[0],Ct&&(Y[0]!=M||ut[0]!=vt)))return 3;K!=null&&(K[0]=dt,K.offset=g-K.w,t(4294967286>g-K.w),t(K.offset==K.ha-y));break}return yt==0||yt==7&&Ct&&K==null?(D!=null&&(D[0]|=dt.na!=null&&0<dt.na.length),x!=null&&(x[0]=M),I!=null&&(I[0]=vt),0):yt}function pr(h,g,y){var x=g.width,I=g.height,D=0,M=0,T=x,K=I;if(g.Da=h!=null&&0<h.Da,g.Da&&(T=h.cd,K=h.bd,D=h.v,M=h.j,11>y||(D&=-2,M&=-2),0>D||0>M||0>=T||0>=K||D+T>x||M+K>I))return 0;if(g.v=D,g.j=M,g.va=D+T,g.o=M+K,g.U=T,g.T=K,g.da=h!=null&&0<h.da,g.da){if(!Et(T,K,y=[h.ib],D=[h.hb]))return 0;g.ib=y[0],g.hb=D[0]}return g.ob=h!=null&&h.ob,g.Kb=h==null||!h.Sd,g.da&&(g.ob=g.ib<3*x/4&&g.hb<3*I/4,g.Kb=0),1}function uo(h){if(h==null)return 2;if(11>h.S){var g=h.f.RGBA;g.fb+=(h.height-1)*g.A,g.A=-g.A}else g=h.f.kb,h=h.height,g.O+=(h-1)*g.fa,g.fa=-g.fa,g.N+=(h-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(h-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(h-1)*g.lb,g.lb=-g.lb);return 0}function bl(h,g,y,x){if(x==null||0>=h||0>=g)return 2;if(y!=null){if(y.Da){var I=y.cd,D=y.bd,M=-2&y.v,T=-2&y.j;if(0>M||0>T||0>=I||0>=D||M+I>h||T+D>g)return 2;h=I,g=D}if(y.da){if(!Et(h,g,I=[y.ib],D=[y.hb]))return 2;h=I[0],g=D[0]}}x.width=h,x.height=g;t:{var K=x.width,Y=x.height;if(h=x.S,0>=K||0>=Y||!(h>=yu&&13>h))h=2;else{if(0>=x.Rd&&x.sd==null){M=D=I=g=0;var ut=(T=K*z1[h])*Y;if(11>h||(D=(Y+1)/2*(g=(K+1)/2),h==12&&(M=(I=K)*Y)),(Y=i(ut+2*D+M))==null){h=1;break t}x.sd=Y,11>h?((K=x.f.RGBA).eb=Y,K.fb=0,K.A=T,K.size=ut):((K=x.f.kb).y=Y,K.O=0,K.fa=T,K.Fd=ut,K.f=Y,K.N=0+ut,K.Ab=g,K.Cd=D,K.ea=Y,K.W=0+ut+D,K.Db=g,K.Ed=D,h==12&&(K.F=Y,K.J=0+ut+2*D),K.Tc=M,K.lb=I)}if(g=1,I=x.S,D=x.width,M=x.height,I>=yu&&13>I)if(11>I)h=x.f.RGBA,g&=(T=Math.abs(h.A))*(M-1)+D<=h.size,g&=T>=D*z1[I],g&=h.eb!=null;else{h=x.f.kb,T=(D+1)/2,ut=(M+1)/2,K=Math.abs(h.fa),Y=Math.abs(h.Ab);var Ct=Math.abs(h.Db),J=Math.abs(h.lb),dt=J*(M-1)+D;g&=K*(M-1)+D<=h.Fd,g&=Y*(ut-1)+T<=h.Cd,g=(g&=Ct*(ut-1)+T<=h.Ed)&K>=D&Y>=T&Ct>=T,g&=h.y!=null,g&=h.f!=null,g&=h.ea!=null,I==12&&(g&=J>=D,g&=dt<=h.Tc,g&=h.F!=null)}else g=0;h=g?0:2}}return h!=0||y!=null&&y.fd&&(h=uo(x)),h}var ha=64,fo=[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],yl=24,kn=32,Vn=8,da=[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"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(h){return h},k.Predictor2=function(h,g,y){return g[y+0]},k.Predictor3=function(h,g,y){return g[y+1]},k.Predictor4=function(h,g,y){return g[y-1]},k.Predictor5=function(h,g,y){return It(It(h,g[y+1]),g[y+0])},k.Predictor6=function(h,g,y){return It(h,g[y-1])},k.Predictor7=function(h,g,y){return It(h,g[y+0])},k.Predictor8=function(h,g,y){return It(g[y-1],g[y+0])},k.Predictor9=function(h,g,y){return It(g[y+0],g[y+1])},k.Predictor10=function(h,g,y){return It(It(h,g[y-1]),It(g[y+0],g[y+1]))},k.Predictor11=function(h,g,y){var x=g[y+0];return 0>=Gt(x>>24&255,h>>24&255,(g=g[y-1])>>24&255)+Gt(x>>16&255,h>>16&255,g>>16&255)+Gt(x>>8&255,h>>8&255,g>>8&255)+Gt(255&x,255&h,255&g)?x:h},k.Predictor12=function(h,g,y){var x=g[y+0];return(Pt((h>>24&255)+(x>>24&255)-((g=g[y-1])>>24&255))<<24|Pt((h>>16&255)+(x>>16&255)-(g>>16&255))<<16|Pt((h>>8&255)+(x>>8&255)-(g>>8&255))<<8|Pt((255&h)+(255&x)-(255&g)))>>>0},k.Predictor13=function(h,g,y){var x=g[y-1];return(Kt((h=It(h,g[y+0]))>>24&255,x>>24&255)<<24|Kt(h>>16&255,x>>16&255)<<16|Kt(h>>8&255,x>>8&255)<<8|Kt(255&h,255&x))>>>0};var ds=k.PredictorAdd0;k.PredictorAdd1=ee,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 gs=k.PredictorAdd2;Xt("ColorIndexInverseTransform","MapARGB","32b",function(h){return h>>8&255},function(h){return h}),Xt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(h){return h},function(h){return h>>8&255});var ga,ho=k.ColorIndexInverseTransform,GA=k.MapARGB,Nd=k.VP8LColorIndexInverseTransformAlpha,ti=k.MapAlpha,Ir=k.VP8LPredictorsAdd=[];Ir.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var go,Cl,xl,pa,po,mo,ps,Li,ms,ma,pn,ei,lA,cA,kA,zA,ki,Fl,Ba,vu,x1,F1,_1,U1,_l,Q1,E1,I1,S1=i(511),L1=i(2041),k1=i(225),N1=i(767),D1=0,Dd=L1,bu=k1,tr=N1,mr=S1,yu=0,Cu=1,H1=2,xu=3,Fu=4,Hd=5,M1=6,Md=7,Td=8,_u=9,Od=10,YC=[2,3,7],JC=[3,3,11],T1=[280,256,256,256,40],ZC=[0,1,1,1,0],t4=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],e4=[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],A4=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],n4=8,Pd=[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],Rd=[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],Ul=null,r4=[[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]],i4=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],O1=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],s4=[[[[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]]]],o4=[[[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]]],a4=[[[[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]]]],l4=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Bs=[],Sr=[],Ni=[],c4=1,P1=2,ws=[],Br=[];dn("UpsampleRgbLinePair",ao,3),dn("UpsampleBgrLinePair",ca,3),dn("UpsampleRgbaLinePair",vl,4),dn("UpsampleBgraLinePair",co,4),dn("UpsampleArgbLinePair",lo,4),dn("UpsampleRgba4444LinePair",gn,2),dn("UpsampleRgb565LinePair",ua,2);var u4=k.UpsampleRgbLinePair,f4=k.UpsampleBgrLinePair,R1=k.UpsampleRgbaLinePair,K1=k.UpsampleBgraLinePair,V1=k.UpsampleArgbLinePair,j1=k.UpsampleRgba4444LinePair,h4=k.UpsampleRgb565LinePair,Uu=16,Qu=1<<Uu-1,Ql=-227,Kd=482,d4=6,G1=0,g4=i(256),p4=i(256),m4=i(256),B4=i(256),w4=i(Kd-Ql),v4=i(Kd-Ql);Zr("YuvToRgbRow",ao,3),Zr("YuvToBgrRow",ca,3),Zr("YuvToRgbaRow",vl,4),Zr("YuvToBgraRow",co,4),Zr("YuvToArgbRow",lo,4),Zr("YuvToRgba4444Row",gn,2),Zr("YuvToRgb565Row",ua,2);var W1=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Eu=[0,2,8],b4=[8,7,6,4,4,2,2,2,1,1,1,1],y4=1;this.WebPDecodeRGBA=function(h,g,y,x,I){var D=Cu,M=new it,T=new ke;M.ba=T,T.S=D,T.width=[T.width],T.height=[T.height];var K=T.width,Y=T.height,ut=new he;if(ut==null||h==null)var Ct=2;else t(ut!=null),Ct=wu(h,g,y,ut.width,ut.height,ut.Pd,ut.Qd,ut.format,null);if(Ct!=0?K=0:(K!=null&&(K[0]=ut.width[0]),Y!=null&&(Y[0]=ut.height[0]),K=1),K){T.width=T.width[0],T.height=T.height[0],x!=null&&(x[0]=T.width),I!=null&&(I[0]=T.height);t:{if(x=new ea,(I=new gt).data=h,I.w=g,I.ha=y,I.kd=1,g=[0],t(I!=null),((h=wu(I.data,I.w,I.ha,null,null,null,g,null,I))==0||h==7)&&g[0]&&(h=4),(g=h)==0){if(t(M!=null),x.data=I.data,x.w=I.w+I.offset,x.ha=I.ha-I.offset,x.put=de,x.ac=Wr,x.bc=xi,x.ma=M,I.xa){if((h=eo())==null){M=1;break t}if(function(J,dt){var vt=[0],Qt=[0],yt=[0];e:for(;;){if(J==null)return 0;if(dt==null)return J.a=2,0;if(J.l=dt,J.a=0,st(J.m,dt.data,dt.w,dt.ha),!Fi(J.m,vt,Qt,yt)){J.a=3;break e}if(J.xb=P1,dt.width=vt[0],dt.height=Qt[0],!$r(vt[0],Qt[0],1,J,null))break e;return 1}return t(J.a!=0),0}(h,x)){if(x=(g=bl(x.width,x.height,M.Oa,M.ba))==0){e:{x=h;A:for(;;){if(x==null){x=0;break e}if(t(x.s.yc!=null),t(x.s.Ya!=null),t(0<x.s.Wb),t((y=x.l)!=null),t((I=y.ma)!=null),x.xb!=0){if(x.ca=I.ba,x.tb=I.tb,t(x.ca!=null),!pr(I.Oa,y,xu)){x.a=2;break A}if(!Ao(x,y.width)||y.da)break A;if((y.da||pe(x.ca.S))&&FA(),11>x.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),x.ca.f.kb.F!=null&&FA()),x.Pb&&0<x.s.ua&&x.s.vb.X==null&&!S(x.s.vb,x.s.Wa.Xa)){x.a=1;break A}x.xb=0}if(!Er(x,x.V,x.Ba,x.c,x.i,y.o,ls))break A;I.Dc=x.Ma,x=1;break e}t(x.a!=0),x=0}x=!x}x&&(g=h.a)}else g=h.a}else{if((h=new md)==null){M=1;break t}if(h.Fa=I.na,h.P=I.P,h.qc=I.Sa,Xr(h,x)){if((g=bl(x.width,x.height,M.Oa,M.ba))==0){if(h.Aa=0,y=M.Oa,t((I=h)!=null),y!=null){if(0<(K=0>(K=y.Md)?0:100<K?255:255*K/100)){for(Y=ut=0;4>Y;++Y)12>(Ct=I.pb[Y]).lc&&(Ct.ia=K*b4[0>Ct.lc?0:Ct.lc]>>3),ut|=Ct.ia;ut&&(alert("todo:VP8InitRandom"),I.ia=1)}I.Ga=y.Id,100<I.Ga?I.Ga=100:0>I.Ga&&(I.Ga=0)}(function(J,dt){if(J==null)return 0;if(dt==null)return VA(J,2,"NULL VP8Io parameter in VP8Decode().");if(!J.cb&&!Xr(J,dt))return 0;if(t(J.cb),dt.ac==null||dt.ac(dt)){dt.ob&&(J.L=0);var vt=Eu[J.L];if(J.L==2?(J.yb=0,J.zb=0):(J.yb=dt.v-vt>>4,J.zb=dt.j-vt>>4,0>J.yb&&(J.yb=0),0>J.zb&&(J.zb=0)),J.Va=dt.o+15+vt>>4,J.Hb=dt.va+15+vt>>4,J.Hb>J.za&&(J.Hb=J.za),J.Va>J.Ub&&(J.Va=J.Ub),0<J.L){var Qt=J.ed;for(vt=0;4>vt;++vt){var yt;if(J.Qa.Cb){var St=J.Qa.Lb[vt];J.Qa.Fb||(St+=Qt.Tb)}else St=Qt.Tb;for(yt=0;1>=yt;++yt){var Lt=J.gd[vt][yt],Ot=St;if(Qt.Pc&&(Ot+=Qt.vd[0],yt&&(Ot+=Qt.od[0])),0<(Ot=0>Ot?0:63<Ot?63:Ot)){var Ht=Ot;0<Qt.wb&&(Ht=4<Qt.wb?Ht>>2:Ht>>1)>9-Qt.wb&&(Ht=9-Qt.wb),1>Ht&&(Ht=1),Lt.dd=Ht,Lt.tc=2*Ot+Ht,Lt.ld=40<=Ot?2:15<=Ot?1:0}else Lt.tc=0;Lt.La=yt}}}vt=0}else VA(J,6,"Frame setup failed"),vt=J.a;if(vt=vt==0){if(vt){J.$c=0,0<J.Aa||(J.Ic=y4);e:{vt=J.Ic,Qt=4*(Ht=J.za);var se=32*Ht,Jt=Ht+1,Ie=0<J.L?Ht*(0<J.Aa?2:1):0,ne=(J.Aa==2?2:1)*Ht;if((Lt=Qt+832+(yt=3*(16*vt+Eu[J.L])/2*se)+(St=J.Fa!=null&&0<J.Fa.length?J.Kc.c*J.Kc.i:0))!=Lt)vt=0;else{if(Lt>J.Vb){if(J.Vb=0,J.Ec=i(Lt),J.Fc=0,J.Ec==null){vt=VA(J,1,"no memory during frame initialization.");break e}J.Vb=Lt}Lt=J.Ec,Ot=J.Fc,J.Ac=Lt,J.Bc=Ot,Ot+=Qt,J.Gd=s(se,ou),J.Hd=0,J.rb=s(Jt+1,cl),J.sb=1,J.wa=Ie?s(Ie,gr):null,J.Y=0,J.D.Nb=0,J.D.wa=J.wa,J.D.Y=J.Y,0<J.Aa&&(J.D.Y+=Ht),t(!0),J.oc=Lt,J.pc=Ot,Ot+=832,J.ya=s(ne,ul),J.aa=0,J.D.ya=J.ya,J.D.aa=J.aa,J.Aa==2&&(J.D.aa+=Ht),J.R=16*Ht,J.B=8*Ht,Ht=(se=Eu[J.L])*J.R,se=se/2*J.B,J.sa=Lt,J.ta=Ot+Ht,J.qa=J.sa,J.ra=J.ta+16*vt*J.R+se,J.Ha=J.qa,J.Ia=J.ra+8*vt*J.B+se,J.$c=0,Ot+=yt,J.mb=St?Lt:null,J.nb=St?Ot:null,t(Ot+St<=J.Fc+J.Vb),fl(J),r(J.Ac,J.Bc,0,Qt),vt=1}}if(vt){if(dt.ka=0,dt.y=J.sa,dt.O=J.ta,dt.f=J.qa,dt.N=J.ra,dt.ea=J.Ha,dt.Vd=J.Ia,dt.fa=J.R,dt.Rc=J.B,dt.F=null,dt.J=0,!D1){for(vt=-255;255>=vt;++vt)S1[255+vt]=0>vt?-vt:vt;for(vt=-1020;1020>=vt;++vt)L1[1020+vt]=-128>vt?-128:127<vt?127:vt;for(vt=-112;112>=vt;++vt)k1[112+vt]=-16>vt?-16:15<vt?15:vt;for(vt=-255;510>=vt;++vt)N1[255+vt]=0>vt?0:255<vt?255:vt;D1=1}ps=uu,Li=Bd,ma=wd,pn=vd,ei=Yr,ms=cu,lA=du,cA=gu,kA=mu,zA=w,ki=pu,Fl=io,Ba=E,vu=X,x1=aa,F1=Bl,_1=la,U1=hu,Sr[0]=Ud,Sr[1]=ia,Sr[2]=Fd,Sr[3]=_d,Sr[4]=Qd,Sr[5]=Ui,Sr[6]=Ed,Sr[7]=Qi,Sr[8]=Sd,Sr[9]=Id,Bs[0]=fu,Bs[1]=bd,Bs[2]=yd,Bs[3]=Cd,Bs[4]=us,Bs[5]=xd,Bs[6]=no,Ni[0]=Ld,Ni[1]=hl,Ni[2]=sa,Ni[3]=dl,Ni[4]=kd,Ni[5]=oa,Ni[6]=gl,vt=1}else vt=0}vt&&(vt=function(Te,$A){for(Te.M=0;Te.M<Te.Va;++Te.M){var Se,re=Te.Jc[Te.M&Te.Xb],jt=Te.m,NA=Te;for(Se=0;Se<NA.za;++Se){var _e=jt,Pe=NA,pA=Pe.Ac,on=Pe.Bc+4*Se,Nn=Pe.zc,UA=Pe.ya[Pe.aa+Se];if(Pe.Qa.Bb?UA.$b=wt(_e,Pe.Pa.jb[0])?2+wt(_e,Pe.Pa.jb[2]):wt(_e,Pe.Pa.jb[1]):UA.$b=0,Pe.kc&&(UA.Ad=wt(_e,Pe.Bd)),UA.Za=!wt(_e,145)+0,UA.Za){var mn=UA.Ob,Dn=0;for(Pe=0;4>Pe;++Pe){var qA,Re=Nn[0+Pe];for(qA=0;4>qA;++qA){Re=o4[pA[on+qA]][Re];for(var Xe=O1[wt(_e,Re[0])];0<Xe;)Xe=O1[2*Xe+wt(_e,Re[Xe])];Re=-Xe,pA[on+qA]=Re}n(mn,Dn,pA,on,4),Dn+=4,Nn[0+Pe]=Re}}else Re=wt(_e,156)?wt(_e,128)?1:3:wt(_e,163)?2:0,UA.Ob[0]=Re,r(pA,on,Re,4),r(Nn,0,Re,4);UA.Dd=wt(_e,142)?wt(_e,114)?wt(_e,183)?1:3:2:0}if(NA.m.Ka)return VA(Te,7,"Premature end-of-partition0 encountered.");for(;Te.ja<Te.za;++Te.ja){if(NA=re,_e=(jt=Te).rb[jt.sb-1],pA=jt.rb[jt.sb+jt.ja],Se=jt.ya[jt.aa+jt.ja],on=jt.kc?Se.Ad:0)_e.la=pA.la=0,Se.Za||(_e.Na=pA.Na=0),Se.Hc=0,Se.Gc=0,Se.ia=0;else{var QA,Ye;if(_e=pA,pA=NA,on=jt.Pa.Xc,Nn=jt.ya[jt.aa+jt.ja],UA=jt.pb[Nn.$b],Pe=Nn.ad,mn=0,Dn=jt.rb[jt.sb-1],Re=qA=0,r(Pe,mn,0,384),Nn.Za)var an=0,Lr=on[3];else{Xe=i(16);var DA=_e.Na+Dn.Na;if(DA=Ul(pA,on[1],DA,UA.Eb,0,Xe,0),_e.Na=Dn.Na=(0<DA)+0,1<DA)ps(Xe,0,Pe,mn);else{var jn=Xe[0]+3>>3;for(Xe=0;256>Xe;Xe+=16)Pe[mn+Xe]=jn}an=1,Lr=on[0]}var iA=15&_e.la,XA=15&Dn.la;for(Xe=0;4>Xe;++Xe){var er=1&XA;for(jn=Ye=0;4>jn;++jn)iA=iA>>1|(er=(DA=Ul(pA,Lr,DA=er+(1&iA),UA.Sc,an,Pe,mn))>an)<<7,Ye=Ye<<2|(3<DA?3:1<DA?2:Pe[mn+0]!=0),mn+=16;iA>>=4,XA=XA>>1|er<<7,qA=(qA<<8|Ye)>>>0}for(Lr=iA,an=XA>>4,QA=0;4>QA;QA+=2){for(Ye=0,iA=_e.la>>4+QA,XA=Dn.la>>4+QA,Xe=0;2>Xe;++Xe){for(er=1&XA,jn=0;2>jn;++jn)DA=er+(1&iA),iA=iA>>1|(er=0<(DA=Ul(pA,on[2],DA,UA.Qc,0,Pe,mn)))<<3,Ye=Ye<<2|(3<DA?3:1<DA?2:Pe[mn+0]!=0),mn+=16;iA>>=2,XA=XA>>1|er<<5}Re|=Ye<<4*QA,Lr|=iA<<4<<QA,an|=(240&XA)<<QA}_e.la=Lr,Dn.la=an,Nn.Hc=qA,Nn.Gc=Re,Nn.ia=43690&Re?0:UA.ia,on=!(qA|Re)}if(0<jt.L&&(jt.wa[jt.Y+jt.ja]=jt.gd[Se.$b][Se.Za],jt.wa[jt.Y+jt.ja].La|=!on),NA.Ka)return VA(Te,7,"Premature end-of-file encountered.")}if(fl(Te),jt=$A,NA=1,Se=(re=Te).D,_e=0<re.L&&re.M>=re.zb&&re.M<=re.Va,re.Aa==0)e:{if(Se.M=re.M,Se.uc=_e,fa(re,Se),NA=1,Se=(Ye=re.D).Nb,_e=(Re=Eu[re.L])*re.R,pA=Re/2*re.B,Xe=16*Se*re.R,jn=8*Se*re.B,on=re.sa,Nn=re.ta-_e+Xe,UA=re.qa,Pe=re.ra-pA+jn,mn=re.Ha,Dn=re.Ia-pA+jn,XA=(iA=Ye.M)==0,qA=iA>=re.Va-1,re.Aa==2&&fa(re,Ye),Ye.uc)for(er=(DA=re).D.M,t(DA.D.uc),Ye=DA.yb;Ye<DA.Hb;++Ye){an=Ye,Lr=er;var Hn=(Ar=(ln=DA).D).Nb;QA=ln.R;var Ar=Ar.wa[Ar.Y+an],nr=ln.sa,Gn=ln.ta+16*Hn*QA+16*an,rr=Ar.dd,uA=Ar.tc;if(uA!=0)if(t(3<=uA),ln.L==1)0<an&&F1(nr,Gn,QA,uA+4),Ar.La&&U1(nr,Gn,QA,uA),0<Lr&&x1(nr,Gn,QA,uA+4),Ar.La&&_1(nr,Gn,QA,uA);else{var ir=ln.B,kr=ln.qa,Bo=ln.ra+8*Hn*ir+8*an,Di=ln.Ha,ln=ln.Ia+8*Hn*ir+8*an;Hn=Ar.ld,0<an&&(cA(nr,Gn,QA,uA+4,rr,Hn),zA(kr,Bo,Di,ln,ir,uA+4,rr,Hn)),Ar.La&&(Fl(nr,Gn,QA,uA,rr,Hn),vu(kr,Bo,Di,ln,ir,uA,rr,Hn)),0<Lr&&(lA(nr,Gn,QA,uA+4,rr,Hn),kA(kr,Bo,Di,ln,ir,uA+4,rr,Hn)),Ar.La&&(ki(nr,Gn,QA,uA,rr,Hn),Ba(kr,Bo,Di,ln,ir,uA,rr,Hn))}}if(re.ia&&alert("todo:DitherRow"),jt.put!=null){if(Ye=16*iA,iA=16*(iA+1),XA?(jt.y=re.sa,jt.O=re.ta+Xe,jt.f=re.qa,jt.N=re.ra+jn,jt.ea=re.Ha,jt.W=re.Ia+jn):(Ye-=Re,jt.y=on,jt.O=Nn,jt.f=UA,jt.N=Pe,jt.ea=mn,jt.W=Dn),qA||(iA-=Re),iA>jt.o&&(iA=jt.o),jt.F=null,jt.J=null,re.Fa!=null&&0<re.Fa.length&&Ye<iA&&(jt.J=jA(re,jt,Ye,iA-Ye),jt.F=re.mb,jt.F==null&&jt.F.length==0)){NA=VA(re,3,"Could not decode alpha data.");break e}Ye<jt.j&&(Re=jt.j-Ye,Ye=jt.j,t(!(1&Re)),jt.O+=re.R*Re,jt.N+=re.B*(Re>>1),jt.W+=re.B*(Re>>1),jt.F!=null&&(jt.J+=jt.width*Re)),Ye<iA&&(jt.O+=jt.v,jt.N+=jt.v>>1,jt.W+=jt.v>>1,jt.F!=null&&(jt.J+=jt.v),jt.ka=Ye-jt.j,jt.U=jt.va-jt.v,jt.T=iA-Ye,NA=jt.put(jt))}Se+1!=re.Ic||qA||(n(re.sa,re.ta-_e,on,Nn+16*re.R,_e),n(re.qa,re.ra-pA,UA,Pe+8*re.B,pA),n(re.Ha,re.Ia-pA,mn,Dn+8*re.B,pA))}if(!NA)return VA(Te,6,"Output aborted.")}return 1}(J,dt)),dt.bc!=null&&dt.bc(dt),vt&=1}return vt?(J.cb=0,vt):0})(h,x)||(g=h.a)}}else g=h.a}g==0&&M.Oa!=null&&M.Oa.fd&&(g=uo(M.ba))}M=g}D=M!=0?null:11>D?T.f.RGBA.eb:T.f.kb.y}else D=null;return D};var z1=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(k,V){for(var F="",L=0;L<4;L++)F+=String.fromCharCode(k[V++]);return F}function c(k,V){return k[V+0]|k[V+1]<<8}function u(k,V){return(k[V+0]|k[V+1]<<8|k[V+2]<<16)>>>0}function d(k,V){return(k[V+0]|k[V+1]<<8|k[V+2]<<16|k[V+3]<<24)>>>0}new a;var f=[0],m=[0],B=[],v=new a,b=e,C=function(k,V){var F={},L=0,G=!1,q=0,ft=0;if(F.frames=[],!function(U,N){for(var tt=0;tt<4;tt++)if(U[N+tt]!="RIFF".charCodeAt(tt))return!0;return!1}(k,V)){for(d(k,V+=4),V+=8;V<k.length;){var lt=l(k,V),ct=d(k,V+=4);V+=4;var at=ct+(1&ct);switch(lt){case"VP8 ":case"VP8L":F.frames[L]===void 0&&(F.frames[L]={}),(j=F.frames[L]).src_off=G?ft:V-8,j.src_size=q+ct+8,L++,G&&(G=!1,q=0,ft=0);break;case"VP8X":(j=F.header={}).feature_flags=k[V];var st=V+4;j.canvas_width=1+u(k,st),st+=3,j.canvas_height=1+u(k,st),st+=3;break;case"ALPH":G=!0,q=at+8,ft=V-8;break;case"ANIM":(j=F.header).bgcolor=d(k,V),st=V+4,j.loop_count=c(k,st),st+=2;break;case"ANMF":var Z,j;(j=F.frames[L]={}).offset_x=2*u(k,V),V+=3,j.offset_y=2*u(k,V),V+=3,j.width=1+u(k,V),V+=3,j.height=1+u(k,V),V+=3,j.duration=u(k,V),V+=3,Z=k[V++],j.dispose=1&Z,j.blend=Z>>1&1}lt!="ANMF"&&(V+=at)}return F}}(b,0);C.response=b,C.rgbaoutput=!0,C.dataurl=!1;var Q=C.header?C.header:null,_=C.frames?C.frames:null;if(Q){Q.loop_counter=Q.loop_count,f=[Q.canvas_height],m=[Q.canvas_width];for(var H=0;H<_.length&&_[H].blend!=0;H++);}var W=_[0],R=v.WebPDecodeRGBA(b,W.src_off,W.src_size,m,f);W.rgba=R,W.imgwidth=m[0],W.imgheight=f[0];for(var O=0;O<m[0]*f[0]*4;O++)B[O]=R[O];return this.width=m,this.height=f,this.data=B,this}/** ====================================================================
|
||
* @license
|
||
* jsPDF XMP metadata plugin
|
||
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
||
*
|
||
* 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.
|
||
* ====================================================================
|
||
*/function L8(){var e,t=this.internal.__metadata__.metadata,A=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?A:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function k8(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,A,n,r,i,s,o,a,l,c=function(U){return U=U||{},this.isStrokeTransparent=U.isStrokeTransparent||!1,this.strokeOpacity=U.strokeOpacity||1,this.strokeStyle=U.strokeStyle||"#000000",this.fillStyle=U.fillStyle||"#000000",this.isFillTransparent=U.isFillTransparent||!1,this.fillOpacity=U.fillOpacity||1,this.font=U.font||"10px sans-serif",this.textBaseline=U.textBaseline||"alphabetic",this.textAlign=U.textAlign||"left",this.lineWidth=U.lineWidth||1,this.lineJoin=U.lineJoin||"miter",this.lineCap=U.lineCap||"butt",this.path=U.path||[],this.transform=U.transform!==void 0?U.transform.clone():new a,this.globalCompositeOperation=U.globalCompositeOperation||"normal",this.globalAlpha=U.globalAlpha||1,this.clip_path=U.clip_path||[],this.currentPoint=U.currentPoint||new s,this.miterLimit=U.miterLimit||10,this.lastPoint=U.lastPoint||new s,this.lineDashOffset=U.lineDashOffset||0,this.lineDash=U.lineDash||[],this.margin=U.margin||[0,0,0,0],this.prevPageLastElemOffset=U.prevPageLastElemOffset||0,this.ignoreClearRect=typeof U.ignoreClearRect!="boolean"||U.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new u(this),t=this.internal.f2,A=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,r=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,a=this.internal.Matrix,l=new c}]);var u=function(U){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var N=U;Object.defineProperty(this,"pdf",{get:function(){return N}});var tt=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return tt},set:function(S){tt=!!S}});var et=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return et},set:function(S){et=!!S}});var At=0;Object.defineProperty(this,"posX",{get:function(){return At},set:function(S){isNaN(S)||(At=S)}});var z=0;Object.defineProperty(this,"posY",{get:function(){return z},set:function(S){isNaN(S)||(z=S)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(S){var pt;typeof S=="number"?pt=[S,S,S,S]:((pt=new Array(4))[0]=S[0],pt[1]=S.length>=2?S[1]:pt[0],pt[2]=S.length>=3?S[2]:pt[0],pt[3]=S.length>=4?S[3]:pt[1]),l.margin=pt}});var nt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return nt},set:function(S){nt=S}});var ot=0;Object.defineProperty(this,"lastBreak",{get:function(){return ot},set:function(S){ot=S}});var wt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return wt},set:function(S){wt=S}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(S){S instanceof c&&(l=S)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(S){l.path=S}});var _t=[];Object.defineProperty(this,"ctxStack",{get:function(){return _t},set:function(S){_t=S}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(S){var pt;pt=d(S),this.ctx.fillStyle=pt.style,this.ctx.isFillTransparent=pt.a===0,this.ctx.fillOpacity=pt.a,this.pdf.setFillColor(pt.r,pt.g,pt.b,{a:pt.a}),this.pdf.setTextColor(pt.r,pt.g,pt.b,{a:pt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(S){var pt=d(S);this.ctx.strokeStyle=pt.style,this.ctx.isStrokeTransparent=pt.a===0,this.ctx.strokeOpacity=pt.a,pt.a===0?this.pdf.setDrawColor(255,255,255):(pt.a,this.pdf.setDrawColor(pt.r,pt.g,pt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(S){["butt","round","square"].indexOf(S)!==-1&&(this.ctx.lineCap=S,this.pdf.setLineCap(S))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(S){isNaN(S)||(this.ctx.lineWidth=S,this.pdf.setLineWidth(S))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(S){["bevel","round","miter"].indexOf(S)!==-1&&(this.ctx.lineJoin=S,this.pdf.setLineJoin(S))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(S){isNaN(S)||(this.ctx.miterLimit=S,this.pdf.setMiterLimit(S))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(S){this.ctx.textBaseline=S}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(S){["right","end","center","left","start"].indexOf(S)!==-1&&(this.ctx.textAlign=S)}});var P=null,$=null,rt=null;Object.defineProperty(this,"fontFaces",{get:function(){return rt},set:function(S){P=null,$=null,rt=S}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(S){var pt;if(this.ctx.font=S,(pt=/^\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-z0-9]+?)\s*$/i.exec(S))!==null){var xt=pt[1];pt[2];var Et=pt[3],mt=pt[4];pt[5];var Ft=pt[6],bt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(mt)[2];mt=Math.floor(bt==="px"?parseFloat(mt)*this.pdf.internal.scaleFactor:bt==="em"?parseFloat(mt)*this.pdf.getFontSize():parseFloat(mt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(mt);var Mt=function(Xt){var Ke,Le,Ee=[],fe=Xt.trim();if(fe==="")return Xg;if(fe in JB)return[JB[fe]];for(;fe!=="";){switch(Le=null,Ke=(fe=tw(fe)).charAt(0)){case'"':case"'":Le=_8(fe.substring(1),Ke);break;default:Le=U8(fe)}if(Le===null||(Ee.push(Le[0]),(fe=tw(Le[1]))!==""&&fe.charAt(0)!==","))return Xg;fe=fe.replace(/^,/,"")}return Ee}(Ft);if(this.fontFaces){var It=function(Xt,Ke){var Le=Xt.getFontList(),Ee=JSON.stringify(Le);if(P===null||$!==Ee){var fe=function(Me){var le=[];return Object.keys(Me).forEach(function(qe){Me[qe].forEach(function(pe){var xe=null;switch(pe){case"bold":xe={family:qe,weight:"bold"};break;case"italic":xe={family:qe,style:"italic"};break;case"bolditalic":xe={family:qe,weight:"bold",style:"italic"};break;case"":case"normal":xe={family:qe}}xe!==null&&(xe.ref={name:qe,style:pe},le.push(xe))})}),le}(Le);P=function(Me){for(var le={},qe=0;qe<Me.length;++qe){var pe=qg(Me[qe]),xe=pe.family,wA=pe.stretch,ke=pe.style,he=pe.weight;le[xe]=le[xe]||{},le[xe][wA]=le[xe][wA]||{},le[xe][wA][ke]=le[xe][wA][ke]||{},le[xe][wA][ke][he]=pe}return le}(fe.concat(Ke)),$=Ee}return P}(this.pdf,this.fontFaces),Pt=Mt.map(function(Xt){return{family:Xt,stretch:"normal",weight:Et,style:xt}}),Kt=function(Xt,Ke,Le){for(var Ee=(Le=Le||{}).defaultFontFamily||"times",fe=Object.assign({},F8,Le.genericFontFamilies||{}),Me=null,le=null,qe=0;qe<Ke.length;++qe)if(fe[(Me=qg(Ke[qe])).family]&&(Me.family=fe[Me.family]),Xt.hasOwnProperty(Me.family)){le=Xt[Me.family];break}if(!(le=le||Xt[Ee]))throw new Error("Could not find a font-family for the rule '"+ZB(Me)+"' and default family '"+Ee+"'.");if(le=function(pe,xe){if(xe[pe])return xe[pe];var wA=l0[pe],ke=wA<=l0.normal?-1:1,he=YB(xe,qy,wA,ke);if(!he)throw new Error("Could not find a matching font-stretch value for "+pe);return he}(Me.stretch,le),le=function(pe,xe){if(xe[pe])return xe[pe];for(var wA=$y[pe],ke=0;ke<wA.length;++ke)if(xe[wA[ke]])return xe[wA[ke]];throw new Error("Could not find a matching font-style for "+pe)}(Me.style,le),!(le=function(pe,xe){if(xe[pe])return xe[pe];if(pe===400&&xe[500])return xe[500];if(pe===500&&xe[400])return xe[400];var wA=x8[pe],ke=YB(xe,Xy,wA,pe<400?-1:1);if(!ke)throw new Error("Could not find a matching font-weight for value "+pe);return ke}(Me.weight,le)))throw new Error("Failed to resolve a font for the rule '"+ZB(Me)+"'.");return le}(It,Pt);this.pdf.setFont(Kt.ref.name,Kt.ref.style)}else{var Gt="";(Et==="bold"||parseInt(Et,10)>=700||xt==="bold")&&(Gt="bold"),xt==="italic"&&(Gt+="italic"),Gt.length===0&&(Gt="normal");for(var ee="",Yt={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"},Wt=0;Wt<Mt.length;Wt++){if(this.pdf.internal.getFont(Mt[Wt],Gt,{noFallback:!0,disableWarning:!0})!==void 0){ee=Mt[Wt];break}if(Gt==="bolditalic"&&this.pdf.internal.getFont(Mt[Wt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ee=Mt[Wt],Gt="bold";else if(this.pdf.internal.getFont(Mt[Wt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ee=Mt[Wt],Gt="normal";break}}if(ee===""){for(var oe=0;oe<Mt.length;oe++)if(Yt[Mt[oe]]){ee=Yt[Mt[oe]];break}}ee=ee===""?"Times":ee,this.pdf.setFont(ee,Gt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(S){this.ctx.globalCompositeOperation=S}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(S){this.ctx.globalAlpha=S}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(S){this.ctx.lineDashOffset=S,j.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(S){this.ctx.lineDash=S,j.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(S){this.ctx.ignoreClearRect=!!S}})};u.prototype.setLineDash=function(U){this.lineDash=U},u.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},u.prototype.fill=function(){_.call(this,"fill",!1)},u.prototype.stroke=function(){_.call(this,"stroke",!1)},u.prototype.beginPath=function(){this.path=[{type:"begin"}]},u.prototype.moveTo=function(U,N){if(isNaN(U)||isNaN(N))throw sA.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var tt=this.ctx.transform.applyToPoint(new s(U,N));this.path.push({type:"mt",x:tt.x,y:tt.y}),this.ctx.lastPoint=new s(U,N)},u.prototype.closePath=function(){var U=new s(0,0),N=0;for(N=this.path.length-1;N!==-1;N--)if(this.path[N].type==="begin"&&Ze(this.path[N+1])==="object"&&typeof this.path[N+1].x=="number"){U=new s(this.path[N+1].x,this.path[N+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(U.x,U.y)},u.prototype.lineTo=function(U,N){if(isNaN(U)||isNaN(N))throw sA.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var tt=this.ctx.transform.applyToPoint(new s(U,N));this.path.push({type:"lt",x:tt.x,y:tt.y}),this.ctx.lastPoint=new s(tt.x,tt.y)},u.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),_.call(this,null,!0)},u.prototype.quadraticCurveTo=function(U,N,tt,et){if(isNaN(tt)||isNaN(et)||isNaN(U)||isNaN(N))throw sA.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var At=this.ctx.transform.applyToPoint(new s(tt,et)),z=this.ctx.transform.applyToPoint(new s(U,N));this.path.push({type:"qct",x1:z.x,y1:z.y,x:At.x,y:At.y}),this.ctx.lastPoint=new s(At.x,At.y)},u.prototype.bezierCurveTo=function(U,N,tt,et,At,z){if(isNaN(At)||isNaN(z)||isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et))throw sA.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var nt=this.ctx.transform.applyToPoint(new s(At,z)),ot=this.ctx.transform.applyToPoint(new s(U,N)),wt=this.ctx.transform.applyToPoint(new s(tt,et));this.path.push({type:"bct",x1:ot.x,y1:ot.y,x2:wt.x,y2:wt.y,x:nt.x,y:nt.y}),this.ctx.lastPoint=new s(nt.x,nt.y)},u.prototype.arc=function(U,N,tt,et,At,z){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et)||isNaN(At))throw sA.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(z=!!z,!this.ctx.transform.isIdentity){var nt=this.ctx.transform.applyToPoint(new s(U,N));U=nt.x,N=nt.y;var ot=this.ctx.transform.applyToPoint(new s(0,tt)),wt=this.ctx.transform.applyToPoint(new s(0,0));tt=Math.sqrt(Math.pow(ot.x-wt.x,2)+Math.pow(ot.y-wt.y,2))}Math.abs(At-et)>=2*Math.PI&&(et=0,At=2*Math.PI),this.path.push({type:"arc",x:U,y:N,radius:tt,startAngle:et,endAngle:At,counterclockwise:z})},u.prototype.arcTo=function(U,N,tt,et,At){throw new Error("arcTo not implemented.")},u.prototype.rect=function(U,N,tt,et){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et))throw sA.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(U,N),this.lineTo(U+tt,N),this.lineTo(U+tt,N+et),this.lineTo(U,N+et),this.lineTo(U,N),this.lineTo(U+tt,N),this.lineTo(U,N)},u.prototype.fillRect=function(U,N,tt,et){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et))throw sA.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var At={};this.lineCap!=="butt"&&(At.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(At.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(U,N,tt,et),this.fill(),At.hasOwnProperty("lineCap")&&(this.lineCap=At.lineCap),At.hasOwnProperty("lineJoin")&&(this.lineJoin=At.lineJoin)}},u.prototype.strokeRect=function(U,N,tt,et){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et))throw sA.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(U,N,tt,et),this.stroke())},u.prototype.clearRect=function(U,N,tt,et){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et))throw sA.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(U,N,tt,et))},u.prototype.save=function(U){U=typeof U!="boolean"||U;for(var N=this.pdf.internal.getCurrentPageInfo().pageNumber,tt=0;tt<this.pdf.internal.getNumberOfPages();tt++)this.pdf.setPage(tt+1),this.pdf.internal.out("q");if(this.pdf.setPage(N),U){this.ctx.fontSize=this.pdf.internal.getFontSize();var et=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=et}},u.prototype.restore=function(U){U=typeof U!="boolean"||U;for(var N=this.pdf.internal.getCurrentPageInfo().pageNumber,tt=0;tt<this.pdf.internal.getNumberOfPages();tt++)this.pdf.setPage(tt+1),this.pdf.internal.out("Q");this.pdf.setPage(N),U&&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)},u.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(U){var N,tt,et,At;if(U.isCanvasGradient===!0&&(U=U.getColor()),!U)return{r:0,g:0,b:0,a:0,style:U};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(U))N=0,tt=0,et=0,At=0;else{var z=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(U);if(z!==null)N=parseInt(z[1]),tt=parseInt(z[2]),et=parseInt(z[3]),At=1;else if((z=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(U))!==null)N=parseInt(z[1]),tt=parseInt(z[2]),et=parseInt(z[3]),At=parseFloat(z[4]);else{if(At=1,typeof U=="string"&&U.charAt(0)!=="#"){var nt=new Ry(U);U=nt.ok?nt.toHex():"#000000"}U.length===4?(N=U.substring(1,2),N+=N,tt=U.substring(2,3),tt+=tt,et=U.substring(3,4),et+=et):(N=U.substring(1,3),tt=U.substring(3,5),et=U.substring(5,7)),N=parseInt(N,16),tt=parseInt(tt,16),et=parseInt(et,16)}}return{r:N,g:tt,b:et,a:At,style:U}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},m=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};u.prototype.fillText=function(U,N,tt,et){if(isNaN(N)||isNaN(tt)||typeof U!="string")throw sA.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(et=isNaN(et)?void 0:et,!f.call(this)){var At=at(this.ctx.transform.rotation),z=this.ctx.transform.scaleX;L.call(this,{text:U,x:N,y:tt,scale:z,angle:At,align:this.textAlign,maxWidth:et})}},u.prototype.strokeText=function(U,N,tt,et){if(isNaN(N)||isNaN(tt)||typeof U!="string")throw sA.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){et=isNaN(et)?void 0:et;var At=at(this.ctx.transform.rotation),z=this.ctx.transform.scaleX;L.call(this,{text:U,x:N,y:tt,scale:z,renderingMode:"stroke",angle:At,align:this.textAlign,maxWidth:et})}},u.prototype.measureText=function(U){if(typeof U!="string")throw sA.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var N=this.pdf,tt=this.pdf.internal.scaleFactor,et=N.internal.getFontSize(),At=N.getStringUnitWidth(U)*et/N.internal.scaleFactor;return new function(z){var nt=(z=z||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return nt}}),this}({width:At*=Math.round(96*tt/72*1e4)/1e4})},u.prototype.scale=function(U,N){if(isNaN(U)||isNaN(N))throw sA.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var tt=new a(U,0,0,N,0,0);this.ctx.transform=this.ctx.transform.multiply(tt)},u.prototype.rotate=function(U){if(isNaN(U))throw sA.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var N=new a(Math.cos(U),Math.sin(U),-Math.sin(U),Math.cos(U),0,0);this.ctx.transform=this.ctx.transform.multiply(N)},u.prototype.translate=function(U,N){if(isNaN(U)||isNaN(N))throw sA.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var tt=new a(1,0,0,1,U,N);this.ctx.transform=this.ctx.transform.multiply(tt)},u.prototype.transform=function(U,N,tt,et,At,z){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et)||isNaN(At)||isNaN(z))throw sA.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var nt=new a(U,N,tt,et,At,z);this.ctx.transform=this.ctx.transform.multiply(nt)},u.prototype.setTransform=function(U,N,tt,et,At,z){U=isNaN(U)?1:U,N=isNaN(N)?0:N,tt=isNaN(tt)?0:tt,et=isNaN(et)?1:et,At=isNaN(At)?0:At,z=isNaN(z)?0:z,this.ctx.transform=new a(U,N,tt,et,At,z)};var B=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};u.prototype.drawImage=function(U,N,tt,et,At,z,nt,ot,wt){var _t=this.pdf.getImageProperties(U),P=1,$=1,rt=1,S=1;et!==void 0&&ot!==void 0&&(rt=ot/et,S=wt/At,P=_t.width/et*ot/et,$=_t.height/At*wt/At),z===void 0&&(z=N,nt=tt,N=0,tt=0),et!==void 0&&ot===void 0&&(ot=et,wt=At),et===void 0&&ot===void 0&&(ot=_t.width,wt=_t.height);var pt=this.ctx.transform.decompose(),xt=at(pt.rotate.shx),Et=new a,mt=(Et=(Et=(Et=Et.multiply(pt.translate)).multiply(pt.skew)).multiply(pt.scale)).applyToRectangle(new o(z-N*rt,nt-tt*S,et*P,At*$));if(this.autoPaging){for(var Ft,bt=v.call(this,mt),Mt=[],It=0;It<bt.length;It+=1)Mt.indexOf(bt[It])===-1&&Mt.push(bt[It]);Q(Mt);for(var Pt=Mt[0],Kt=Mt[Mt.length-1],Gt=Pt;Gt<Kt+1;Gt++){this.pdf.setPage(Gt);var ee=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Yt=Gt===1?this.posY+this.margin[0]:this.margin[0],Wt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],oe=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xt=Gt===1?0:Wt+(Gt-2)*oe;if(this.ctx.clip_path.length!==0){var Ke=this.path;Ft=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=C(Ft,this.posX+this.margin[3],-Xt+Yt+this.ctx.prevPageLastElemOffset),H.call(this,"fill",!0),this.path=Ke}var Le=JSON.parse(JSON.stringify(mt));Le=C([Le],this.posX+this.margin[3],-Xt+Yt+this.ctx.prevPageLastElemOffset)[0];var Ee=(Gt>Pt||Gt<Kt)&&B.call(this);Ee&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ee,oe,null).clip().discardPath()),this.pdf.addImage(U,"JPEG",Le.x,Le.y,Le.w,Le.h,null,null,xt),Ee&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(U,"JPEG",mt.x,mt.y,mt.w,mt.h,null,null,xt)};var v=function(U,N,tt){var et=[];N=N||this.pdf.internal.pageSize.width,tt=tt||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var At=this.posY+this.ctx.prevPageLastElemOffset;switch(U.type){default:case"mt":case"lt":et.push(Math.floor((U.y+At)/tt)+1);break;case"arc":et.push(Math.floor((U.y+At-U.radius)/tt)+1),et.push(Math.floor((U.y+At+U.radius)/tt)+1);break;case"qct":var z=st(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x,U.y);et.push(Math.floor((z.y+At)/tt)+1),et.push(Math.floor((z.y+z.h+At)/tt)+1);break;case"bct":var nt=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x2,U.y2,U.x,U.y);et.push(Math.floor((nt.y+At)/tt)+1),et.push(Math.floor((nt.y+nt.h+At)/tt)+1);break;case"rect":et.push(Math.floor((U.y+At)/tt)+1),et.push(Math.floor((U.y+U.h+At)/tt)+1)}for(var ot=0;ot<et.length;ot+=1)for(;this.pdf.internal.getNumberOfPages()<et[ot];)b.call(this);return et},b=function(){var U=this.fillStyle,N=this.strokeStyle,tt=this.font,et=this.lineCap,At=this.lineWidth,z=this.lineJoin;this.pdf.addPage(),this.fillStyle=U,this.strokeStyle=N,this.font=tt,this.lineCap=et,this.lineWidth=At,this.lineJoin=z},C=function(U,N,tt){for(var et=0;et<U.length;et++)switch(U[et].type){case"bct":U[et].x2+=N,U[et].y2+=tt;case"qct":U[et].x1+=N,U[et].y1+=tt;default:U[et].x+=N,U[et].y+=tt}return U},Q=function(U){return U.sort(function(N,tt){return N-tt})},_=function(U,N){var tt=this.fillStyle,et=this.strokeStyle,At=this.lineCap,z=this.lineWidth,nt=Math.abs(z*this.ctx.transform.scaleX),ot=this.lineJoin;if(this.autoPaging){for(var wt,_t,P=JSON.parse(JSON.stringify(this.path)),$=JSON.parse(JSON.stringify(this.path)),rt=[],S=0;S<$.length;S++)if($[S].x!==void 0)for(var pt=v.call(this,$[S]),xt=0;xt<pt.length;xt+=1)rt.indexOf(pt[xt])===-1&&rt.push(pt[xt]);for(var Et=0;Et<rt.length;Et++)for(;this.pdf.internal.getNumberOfPages()<rt[Et];)b.call(this);Q(rt);for(var mt=rt[0],Ft=rt[rt.length-1],bt=mt;bt<Ft+1;bt++){this.pdf.setPage(bt),this.fillStyle=tt,this.strokeStyle=et,this.lineCap=At,this.lineWidth=nt,this.lineJoin=ot;var Mt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],It=bt===1?this.posY+this.margin[0]:this.margin[0],Pt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Kt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Gt=bt===1?0:Pt+(bt-2)*Kt;if(this.ctx.clip_path.length!==0){var ee=this.path;wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=C(wt,this.posX+this.margin[3],-Gt+It+this.ctx.prevPageLastElemOffset),H.call(this,U,!0),this.path=ee}if(_t=JSON.parse(JSON.stringify(P)),this.path=C(_t,this.posX+this.margin[3],-Gt+It+this.ctx.prevPageLastElemOffset),N===!1||bt===0){var Yt=(bt>mt||bt<Ft)&&B.call(this);Yt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Mt,Kt,null).clip().discardPath()),H.call(this,U,N),Yt&&this.pdf.restoreGraphicsState()}this.lineWidth=z}this.path=P}else this.lineWidth=nt,H.call(this,U,N),this.lineWidth=z},H=function(U,N){if((U!=="stroke"||N||!m.call(this))&&(U==="stroke"||N||!f.call(this))){for(var tt,et,At=[],z=this.path,nt=0;nt<z.length;nt++){var ot=z[nt];switch(ot.type){case"begin":At.push({begin:!0});break;case"close":At.push({close:!0});break;case"mt":At.push({start:ot,deltas:[],abs:[]});break;case"lt":var wt=At.length;if(z[nt-1]&&!isNaN(z[nt-1].x)&&(tt=[ot.x-z[nt-1].x,ot.y-z[nt-1].y],wt>0)){for(;wt>=0;wt--)if(At[wt-1].close!==!0&&At[wt-1].begin!==!0){At[wt-1].deltas.push(tt),At[wt-1].abs.push(ot);break}}break;case"bct":tt=[ot.x1-z[nt-1].x,ot.y1-z[nt-1].y,ot.x2-z[nt-1].x,ot.y2-z[nt-1].y,ot.x-z[nt-1].x,ot.y-z[nt-1].y],At[At.length-1].deltas.push(tt);break;case"qct":var _t=z[nt-1].x+2/3*(ot.x1-z[nt-1].x),P=z[nt-1].y+2/3*(ot.y1-z[nt-1].y),$=ot.x+2/3*(ot.x1-ot.x),rt=ot.y+2/3*(ot.y1-ot.y),S=ot.x,pt=ot.y;tt=[_t-z[nt-1].x,P-z[nt-1].y,$-z[nt-1].x,rt-z[nt-1].y,S-z[nt-1].x,pt-z[nt-1].y],At[At.length-1].deltas.push(tt);break;case"arc":At.push({deltas:[],abs:[],arc:!0}),Array.isArray(At[At.length-1].abs)&&At[At.length-1].abs.push(ot)}}et=N?null:U==="stroke"?"stroke":"fill";for(var xt=!1,Et=0;Et<At.length;Et++)if(At[Et].arc)for(var mt=At[Et].abs,Ft=0;Ft<mt.length;Ft++){var bt=mt[Ft];bt.type==="arc"?O.call(this,bt.x,bt.y,bt.radius,bt.startAngle,bt.endAngle,bt.counterclockwise,void 0,N,!xt):G.call(this,bt.x,bt.y),xt=!0}else if(At[Et].close===!0)this.pdf.internal.out("h"),xt=!1;else if(At[Et].begin!==!0){var Mt=At[Et].start.x,It=At[Et].start.y;q.call(this,At[Et].deltas,Mt,It),xt=!0}et&&k.call(this,et),N&&V.call(this)}},W=function(U){var N=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,tt=N*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return U-tt;case"top":return U+N-tt;case"hanging":return U+N-2*tt;case"middle":return U+N/2-tt;default:return U}},R=function(U){return U+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};u.prototype.createLinearGradient=function(){var U=function(){};return U.colorStops=[],U.addColorStop=function(N,tt){this.colorStops.push([N,tt])},U.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},U.isCanvasGradient=!0,U},u.prototype.createPattern=function(){return this.createLinearGradient()},u.prototype.createRadialGradient=function(){return this.createLinearGradient()};var O=function(U,N,tt,et,At,z,nt,ot,wt){for(var _t=lt.call(this,tt,et,At,z),P=0;P<_t.length;P++){var $=_t[P];P===0&&(wt?F.call(this,$.x1+U,$.y1+N):G.call(this,$.x1+U,$.y1+N)),ft.call(this,U,N,$.x2,$.y2,$.x3,$.y3,$.x4,$.y4)}ot?V.call(this):k.call(this,nt)},k=function(U){switch(U){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},V=function(){this.pdf.clip(),this.pdf.discardPath()},F=function(U,N){this.pdf.internal.out(A(U)+" "+n(N)+" m")},L=function(U){var N;switch(U.align){case"right":case"end":N="right";break;case"center":N="center";break;default:N="left"}var tt,et,At,z=this.pdf.getTextDimensions(U.text),nt=W.call(this,U.y),ot=R.call(this,nt)-z.h,wt=this.ctx.transform.applyToPoint(new s(U.x,nt));if(this.autoPaging){var _t=this.ctx.transform.decompose(),P=new a;P=(P=(P=P.multiply(_t.translate)).multiply(_t.skew)).multiply(_t.scale);for(var $=this.ctx.transform.applyToRectangle(new o(U.x,nt,z.w,z.h)),rt=P.applyToRectangle(new o(U.x,ot,z.w,z.h)),S=v.call(this,rt),pt=[],xt=0;xt<S.length;xt+=1)pt.indexOf(S[xt])===-1&&pt.push(S[xt]);Q(pt);for(var Et=pt[0],mt=pt[pt.length-1],Ft=Et;Ft<mt+1;Ft++){this.pdf.setPage(Ft);var bt=Ft===1?this.posY+this.margin[0]:this.margin[0],Mt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],It=this.pdf.internal.pageSize.height-this.margin[2],Pt=It-this.margin[0],Kt=this.pdf.internal.pageSize.width-this.margin[1],Gt=Kt-this.margin[3],ee=Ft===1?0:Mt+(Ft-2)*Pt;if(this.ctx.clip_path.length!==0){var Yt=this.path;tt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=C(tt,this.posX+this.margin[3],-1*ee+bt),H.call(this,"fill",!0),this.path=Yt}var Wt=C([JSON.parse(JSON.stringify(rt))],this.posX+this.margin[3],-ee+bt+this.ctx.prevPageLastElemOffset)[0];U.scale>=.01&&(et=this.pdf.internal.getFontSize(),this.pdf.setFontSize(et*U.scale),At=this.lineWidth,this.lineWidth=At*U.scale);var oe=this.autoPaging!=="text";if(oe||Wt.y+Wt.h<=It){if(oe||Wt.y>=bt&&Wt.x<=Kt){var Xt=oe?U.text:this.pdf.splitTextToSize(U.text,U.maxWidth||Kt-Wt.x)[0],Ke=C([JSON.parse(JSON.stringify($))],this.posX+this.margin[3],-ee+bt+this.ctx.prevPageLastElemOffset)[0],Le=oe&&(Ft>Et||Ft<mt)&&B.call(this);Le&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Gt,Pt,null).clip().discardPath()),this.pdf.text(Xt,Ke.x,Ke.y,{angle:U.angle,align:N,renderingMode:U.renderingMode}),Le&&this.pdf.restoreGraphicsState()}}else Wt.y<It&&(this.ctx.prevPageLastElemOffset+=It-Wt.y);U.scale>=.01&&(this.pdf.setFontSize(et),this.lineWidth=At)}}else U.scale>=.01&&(et=this.pdf.internal.getFontSize(),this.pdf.setFontSize(et*U.scale),At=this.lineWidth,this.lineWidth=At*U.scale),this.pdf.text(U.text,wt.x+this.posX,wt.y+this.posY,{angle:U.angle,align:N,renderingMode:U.renderingMode,maxWidth:U.maxWidth}),U.scale>=.01&&(this.pdf.setFontSize(et),this.lineWidth=At)},G=function(U,N,tt,et){tt=tt||0,et=et||0,this.pdf.internal.out(A(U+tt)+" "+n(N+et)+" l")},q=function(U,N,tt){return this.pdf.lines(U,N,tt,null,null)},ft=function(U,N,tt,et,At,z,nt,ot){this.pdf.internal.out([t(r(tt+U)),t(i(et+N)),t(r(At+U)),t(i(z+N)),t(r(nt+U)),t(i(ot+N)),"c"].join(" "))},lt=function(U,N,tt,et){for(var At=2*Math.PI,z=Math.PI/2;N>tt;)N-=At;var nt=Math.abs(tt-N);nt<At&&et&&(nt=At-nt);for(var ot=[],wt=et?-1:1,_t=N;nt>1e-5;){var P=_t+wt*Math.min(nt,z);ot.push(ct.call(this,U,_t,P)),nt-=Math.abs(P-_t),_t=P}return ot},ct=function(U,N,tt){var et=(tt-N)/2,At=U*Math.cos(et),z=U*Math.sin(et),nt=At,ot=-z,wt=nt*nt+ot*ot,_t=wt+nt*At+ot*z,P=4/3*(Math.sqrt(2*wt*_t)-_t)/(nt*z-ot*At),$=nt-P*ot,rt=ot+P*nt,S=$,pt=-rt,xt=et+N,Et=Math.cos(xt),mt=Math.sin(xt);return{x1:U*Math.cos(N),y1:U*Math.sin(N),x2:$*Et-rt*mt,y2:$*mt+rt*Et,x3:S*Et-pt*mt,y3:S*mt+pt*Et,x4:U*Math.cos(tt),y4:U*Math.sin(tt)}},at=function(U){return 180*U/Math.PI},st=function(U,N,tt,et,At,z){var nt=U+.5*(tt-U),ot=N+.5*(et-N),wt=At+.5*(tt-At),_t=z+.5*(et-z),P=Math.min(U,At,nt,wt),$=Math.max(U,At,nt,wt),rt=Math.min(N,z,ot,_t),S=Math.max(N,z,ot,_t);return new o(P,rt,$-P,S-rt)},Z=function(U,N,tt,et,At,z,nt,ot){var wt,_t,P,$,rt,S,pt,xt,Et,mt,Ft,bt,Mt,It,Pt=tt-U,Kt=et-N,Gt=At-tt,ee=z-et,Yt=nt-At,Wt=ot-z;for(_t=0;_t<41;_t++)Et=(pt=(P=U+(wt=_t/40)*Pt)+wt*((rt=tt+wt*Gt)-P))+wt*(rt+wt*(At+wt*Yt-rt)-pt),mt=(xt=($=N+wt*Kt)+wt*((S=et+wt*ee)-$))+wt*(S+wt*(z+wt*Wt-S)-xt),_t==0?(Ft=Et,bt=mt,Mt=Et,It=mt):(Ft=Math.min(Ft,Et),bt=Math.min(bt,mt),Mt=Math.max(Mt,Et),It=Math.max(It,mt));return new o(Math.round(Ft),Math.round(bt),Math.round(Mt-Ft),Math.round(It-bt))},j=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var U,N,tt=(U=this.ctx.lineDash,N=this.ctx.lineDashOffset,JSON.stringify({lineDash:U,lineDashOffset:N}));this.prevLineDash!==tt&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=tt)}}})(ae.API),function(e){var t=function(s){var o,a,l,c,u,d,f,m,B,v;for(a=[],l=0,c=(s+=o="\0\0\0\0".slice(s.length%4||4)).length;c>l;l+=4)(u=(s.charCodeAt(l)<<24)+(s.charCodeAt(l+1)<<16)+(s.charCodeAt(l+2)<<8)+s.charCodeAt(l+3))!==0?(d=(u=((u=((u=((u=(u-(v=u%85))/85)-(B=u%85))/85)-(m=u%85))/85)-(f=u%85))/85)%85,a.push(d+33,f+33,m+33,B+33,v+33)):a.push(122);return function(b,C){for(var Q=C;Q>0;Q--)b.pop()}(a,o.length),String.fromCharCode.apply(String,a)+"~>"},A=function(s){var o,a,l,c,u,d=String,f="length",m=255,B="charCodeAt",v="slice",b="replace";for(s[v](-2),s=s[v](0,-2)[b](/\s/g,"")[b]("z","!!!!!"),l=[],c=0,u=(s+=o="uuuuu"[v](s[f]%5||5))[f];u>c;c+=5)a=52200625*(s[B](c)-33)+614125*(s[B](c+1)-33)+7225*(s[B](c+2)-33)+85*(s[B](c+3)-33)+(s[B](c+4)-33),l.push(m&a>>24,m&a>>16,m&a>>8,m&a);return function(C,Q){for(var _=Q;_>0;_--)C.pop()}(l,o[f]),d.fromCharCode.apply(d,l)},n=function(s){return s.split("").map(function(o){return("0"+o.charCodeAt().toString(16)).slice(-2)}).join("")+">"},r=function(s){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),o.test(s)===!1)return"";for(var a="",l=0;l<s.length;l+=2)a+=String.fromCharCode("0x"+(s[l]+s[l+1]));return a},i=function(s){for(var o=new Uint8Array(s.length),a=s.length;a--;)o[a]=s.charCodeAt(a);return(o=A0(o)).reduce(function(l,c){return l+String.fromCharCode(c)},"")};e.processDataByFilters=function(s,o){var a=0,l=s||"",c=[];for(typeof(o=o||[])=="string"&&(o=[o]),a=0;a<o.length;a+=1)switch(o[a]){case"ASCII85Decode":case"/ASCII85Decode":l=A(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=r(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=n(l),c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[a]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(ae.API),function(e){e.loadFile=function(t,A,n){return function(r,i,s){i=i!==!1,s=typeof s=="function"?s:function(){};var o=void 0;try{o=function(a,l,c){var u=new XMLHttpRequest,d=0,f=function(m){var B=m.length,v=[],b=String.fromCharCode;for(d=0;d<B;d+=1)v.push(b(255&m.charCodeAt(d)));return v.join("")};if(u.open("GET",a,!l),u.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(u.onload=function(){u.status===200?c(f(this.responseText)):c(void 0)}),u.send(null),l&&u.status===200)return f(u.responseText)}(r,i,s)}catch{}return o}(t,A,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(ae.API),function(e){function t(){return(we.html2canvas?Promise.resolve(we.html2canvas):gc(()=>Promise.resolve().then(()=>rL),void 0)).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function A(){return(we.DOMPurify?Promise.resolve(we.DOMPurify):gc(()=>import("./purify.es-BgtpMKW3.js"),[])).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 a=Ze(o);return a==="undefined"?"undefined":a==="string"||o instanceof String?"string":a==="number"||o instanceof Number?"number":a==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":a==="object"?"object":"unknown"},r=function(o,a){var l=document.createElement(o);for(var c in a.className&&(l.className=a.className),a.innerHTML&&a.dompurify&&(l.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)l.style[c]=a.style[c];return l},i=function o(a,l){for(var c=a.nodeType===3?document.createTextNode(a.nodeValue):a.cloneNode(!1),u=a.firstChild;u;u=u.nextSibling)l!==!0&&u.nodeType===1&&u.nodeName==="SCRIPT"||c.appendChild(o(u,l));return a.nodeType===1&&(a.nodeName==="CANVAS"?(c.width=a.width,c.height=a.height,c.getContext("2d").drawImage(a,0,0)):a.nodeName!=="TEXTAREA"&&a.nodeName!=="SELECT"||(c.value=a.value),c.addEventListener("load",function(){c.scrollTop=a.scrollTop,c.scrollLeft=a.scrollLeft},!0)),c},s=function o(a){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return(c=c.setProgress(1,o,1,[o])).set(a)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(o,a){return o.__proto__=a||s.prototype,o},s.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"}},s.prototype.from=function(o,a){return this.then(function(){switch(a=a||function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o),a){case"string":return this.then(A).then(function(l){return this.set({src:r("div",{innerHTML:o,dompurify:l})})});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.")}})},s.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.")}},s.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},a=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.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=r("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=r("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(r("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"})},s.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(a){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,a(this.prop.container,l)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(a){var l=this.opt.jsPDF,c=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,d=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 d.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var f=0;f<c.length;++f){var m=c[f],B=m.src.find(function(v){return v.format==="truetype"});B&&l.addFont(B.url,m.ref.name,m.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,l.context2d.save(!0),a(this.prop.container,d)}).then(function(a){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},s.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})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(o,a,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,a):this.outputPdf(o,a)},s.prototype.outputPdf=function(o,a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,a)})},s.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.'}})},s.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)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(o){if(n(o)!=="object")return this;var a=Object.keys(o||{}).map(function(l){if(l in s.template.prop)return function(){this.prop[l]=o[l]};switch(l){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[l]=o[l]}}},this);return this.then(function(){return this.thenList(a)})},s.prototype.get=function(o,a){return this.then(function(){var l=o in s.template.prop?this.prop[o]:this.opt[o];return a?a(l):l})},s.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)},s.prototype.setPageSize=function(o){function a(l,c){return Math.floor(l*c/72*96)}return this.then(function(){(o=o||ae.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:a(o.inner.width,o.k),height:a(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},s.prototype.setProgress=function(o,a,l,c){return o!=null&&(this.progress.val=o),a!=null&&(this.progress.state=a),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(o,a,l,c){return this.setProgress(o?this.progress.val+o:null,a||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},s.prototype.then=function(o,a){var l=this;return this.thenCore(o,a,function(c,u){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,function(d){return l.updateProgress(null,c),d}).then(c,u).then(function(d){return l.updateProgress(1),d})})},s.prototype.thenCore=function(o,a,l){l=l||Promise.prototype.then;var c=this;o&&(o=o.bind(c)),a&&(a=a.bind(c));var u=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?c:s.convert(Object.assign({},c),Promise.prototype),d=l.call(u,o,a);return s.convert(d,c.__proto__)},s.prototype.thenExternal=function(o,a){return Promise.prototype.then.call(this,o,a)},s.prototype.thenList=function(o){var a=this;return o.forEach(function(l){a=a.thenCore(l)}),a},s.prototype.catch=function(o){o&&(o=o.bind(this));var a=Promise.prototype.catch.call(this,o);return s.convert(a,this)},s.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},s.prototype.error=function(o){return this.then(function(){throw new Error(o)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,ae.getPageSize=function(o,a,l){if(Ze(o)==="object"){var c=o;o=c.orientation,a=c.unit||a,l=c.format||l}a=a||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var u,d=(""+l).toLowerCase(),f={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(a){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: "+a}var m,B=0,v=0;if(f.hasOwnProperty(d))B=f[d][1]/u,v=f[d][0]/u;else try{B=l[1],v=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",v>B&&(m=v,v=B,B=m);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",B>v&&(m=v,v=B,B=m)}return{width:v,height:B,unit:a,k:u,orientation:o}},e.html=function(o,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(qg):null;var l=new s(a);return a.worker?l:l.from(o).doCallback()}}(ae.API),ae.API.addJS=function(e){var t,A,n=function(r){for(var i="",s=0;s<r.length;s++){var o=r[s];if(o==="("||o===")"){for(var a=0,l=s-1;l>=0&&r[l]==="\\";l--)a++;i+=a%2==0?"\\"+o:o}else i+=o}return i}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&A!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var A=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=A.outline.render().split(/\r\n/),i=0;i<r.length;i++){var s=r[i],o=n.exec(s);if(o!=null){var a=o[1];A.internal.newObjectDeferredBegin(a,!1)}A.internal.write(s)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(i=0;i<l;i++){var u=A.internal.newObject();c.push(u);var d=A.internal.getPageInfo(i+1);A.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var f=A.internal.newObject();for(A.internal.write("<< /Names [ "),i=0;i<c.length;i++)A.internal.write("(page_"+(i+1)+")"+c[i]+" 0 R");A.internal.write(" ] >>","endobj"),t=A.internal.newObject(),A.internal.write("<< /Dests "+f+" 0 R"),A.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var A=this;A.outline.root.children.length>0&&(A.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&A.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(n,r,i){var s={title:r,options:i,children:[]};return n==null&&(n=this.root),n.children.push(s),s},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(n){n.id=A.internal.newObjectDeferred();for(var r=0;r<n.children.length;r++)this.genIds_r(n.children[r])},A.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()},A.outline.renderItems=function(n){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<n.children.length;i++){var s=n.children[i];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(n)),i>0&&this.line("/Prev "+this.makeRef(n.children[i-1])),i<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[i+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var o=this.count=this.count_r({count:0},s);if(o>0&&this.line("/Count "+o),s.options&&s.options.pageNumber){var a=A.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var l=0;l<n.children.length;l++)this.renderItems(n.children[l])},A.outline.line=function(n){this.ctx.val+=n+`\r
|
||
`},A.outline.makeRef=function(n){return n.id+" 0 R"},A.outline.makeString=function(n){return"("+A.internal.pdfEscape(n)+")"},A.outline.objStart=function(n){this.ctx.val+=`\r
|
||
`+n.id+` 0 obj\r
|
||
<<\r
|
||
`},A.outline.objEnd=function(){this.ctx.val+=`>> \r
|
||
endobj\r
|
||
`},A.outline.count_r=function(n,r){for(var i=0;i<r.children.length;i++)n.count++,this.count_r(n,r.children[i]);return n.count}}])}(ae.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(A,n,r,i,s,o){var a,l=this.decode.DCT_DECODE,c=null;if(typeof A=="string"||this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A)){switch(A=s||A,A=this.__addimage__.isArrayBuffer(A)?new Uint8Array(A):A,a=function(u){for(var d,f=256*u.charCodeAt(4)+u.charCodeAt(5),m=u.length,B={width:0,height:0,numcomponents:1},v=4;v<m;v+=2){if(v+=f,t.indexOf(u.charCodeAt(v+1))!==-1){d=256*u.charCodeAt(v+5)+u.charCodeAt(v+6),B={width:256*u.charCodeAt(v+7)+u.charCodeAt(v+8),height:d,numcomponents:u.charCodeAt(v+9)};break}f=256*u.charCodeAt(v+2)+u.charCodeAt(v+3)}return B}(A=this.__addimage__.isArrayBufferView(A)?this.__addimage__.arrayBufferToBinaryString(A):A),a.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}c={data:A,width:a.width,height:a.height,colorSpace:o,bitsPerComponent:8,filter:l,index:n,alias:r}}return c}}(ae.API),ae.API.processPNG=function(e,t,A,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var r,i=c8(e,{checkCrc:!0}),s=i.width,o=i.height,a=i.channels,l=i.palette,c=i.depth;r=l&&a===1?function(O){for(var k=O.width,V=O.height,F=O.data,L=O.palette,G=O.depth,q=!1,ft=[],lt=[],ct=void 0,at=!1,st=0,Z=0;Z<L.length;Z++){var j=sB(L[Z],4),U=j[0],N=j[1],tt=j[2],et=j[3];ft.push(U,N,tt),et!=null&&(et===0?(st++,lt.length<1&<.push(Z)):et<255&&(at=!0))}if(at||st>1){q=!0,lt=void 0;var At=k*V;ct=new Uint8Array(At);for(var z=new DataView(F.buffer),nt=0;nt<At;nt++){var ot=Yg(z,nt,G),wt=sB(L[ot],4)[3];ct[nt]=wt}}else st===0&&(lt=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:q?8:void 0,colorBytes:F,alphaBytes:ct,needSMask:q,palette:ft,mask:lt}}(i):a===2||a===4?function(O){for(var k=O.data,V=O.width,F=O.height,L=O.channels,G=O.depth,q=L===2?"DeviceGray":"DeviceRGB",ft=L-1,lt=V*F,ct=ft,at=lt*ct,st=1*lt,Z=Math.ceil(at*G/8),j=Math.ceil(st*G/8),U=new Uint8Array(Z),N=new Uint8Array(j),tt=new DataView(k.buffer),et=new DataView(U.buffer),At=new DataView(N.buffer),z=!1,nt=0;nt<lt;nt++){for(var ot=nt*L,wt=0;wt<ct;wt++)lw(et,Yg(tt,ot+wt,G),nt*ct+wt,G);var _t=Yg(tt,ot+ct,G);_t<(1<<G)-1&&(z=!0),lw(At,_t,1*nt,G)}return{colorSpace:q,colorsPerPixel:ft,sMaskBitsPerComponent:z?G:void 0,colorBytes:U,alphaBytes:N,needSMask:z}}(i):function(O){var k=O.data,V=O.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:V,colorsPerPixel:V==="DeviceGray"?1:3,colorBytes:k instanceof Uint16Array?function(F){for(var L=F.length,G=new Uint8Array(2*L),q=new DataView(G.buffer,G.byteOffset,G.byteLength),ft=0;ft<L;ft++)q.setUint16(2*ft,F[ft],!1);return G}(k):k,needSMask:!1}}(i);var u,d,f,m=r,B=m.colorSpace,v=m.colorsPerPixel,b=m.sMaskBitsPerComponent,C=m.colorBytes,Q=m.alphaBytes,_=m.needSMask,H=m.palette,W=m.mask,R=null;return n!==ae.API.image_compression.NONE&&typeof A0=="function"?(R=function(O){var k;switch(O){case ae.API.image_compression.FAST:k=11;break;case ae.API.image_compression.MEDIUM:k=13;break;case ae.API.image_compression.SLOW:k=14;break;default:k=12}return k}(n),u=this.decode.FLATE_DECODE,d="/Predictor ".concat(R," /Colors ").concat(v," /BitsPerComponent ").concat(c," /Columns ").concat(s),e=rw(C,Math.ceil(s*v*c/8),v,c,n),_&&(f=rw(Q,Math.ceil(s*b/8),1,b,n))):(u=void 0,d=void 0,e=C,_&&(f=Q)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:A,data:e,index:t,filter:u,decodeParameters:d,transparency:W,palette:H,sMask:f,predictor:R,width:s,height:o,bitsPerComponent:c,sMaskBitsPerComponent:b,colorSpace:B}}},function(e){e.processGIF89A=function(t,A,n,r){var i=new S8(t),s=i.width,o=i.height,a=[];i.decodeAndBlitFrameRGBA(0,a);var l={data:a,width:s,height:o},c=new Jg(100).encode(l,100);return e.processJPEG.call(this,c,A,n,r)},e.processGIF87A=e.processGIF89A}(ae.API),Nr.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 e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var A=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:r,green:n,blue:A,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Nr.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(A){sA.log("bit decode error:"+A)}},Nr.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),A=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<t;r++)for(var i=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*r*4,o=0;o<8&&8*r+o<this.width;o++){var a=this.palette[i>>7-o&1];this.data[s+4*o]=a.blue,this.data[s+4*o+1]=a.green,this.data[s+4*o+2]=a.red,this.data[s+4*o+3]=255}A!==0&&(this.pos+=4-A)}},Nr.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,A=this.height-1;A>=0;A--){for(var n=this.bottom_up?A:this.height-1-A,r=0;r<e;r++){var i=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*r*4,o=i>>4,a=15&i,l=this.palette[o];if(this.data[s]=l.blue,this.data[s+1]=l.green,this.data[s+2]=l.red,this.data[s+3]=255,2*r+1>=this.width)break;l=this.palette[a],this.data[s+4]=l.blue,this.data[s+4+1]=l.green,this.data[s+4+2]=l.red,this.data[s+4+3]=255}t!==0&&(this.pos+=4-t)}},Nr.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var A=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=A*this.width*4+4*n;if(r<this.palette.length){var s=this.palette[r];this.data[i]=s.red,this.data[i+1]=s.green,this.data[i+2]=s.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}e!==0&&(this.pos+=4-e)}},Nr.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),A=this.height-1;A>=0;A--){for(var n=this.bottom_up?A:this.height-1-A,r=0;r<this.width;r++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&t)/t*255|0,o=(i>>5&t)/t*255|0,a=(i>>10&t)/t*255|0,l=i>>15?255:0,c=n*this.width*4+4*r;this.data[c]=a,this.data[c+1]=o,this.data[c+2]=s,this.data[c+3]=l}this.pos+=e}},Nr.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),A=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&t)/t*255|0,a=(s>>5&A)/A*255|0,l=(s>>11)/t*255|0,c=r*this.width*4+4*i;this.data[c]=l,this.data[c+1]=a,this.data[c+2]=o,this.data[c+3]=255}this.pos+=e}},Nr.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,A=0;A<this.width;A++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*A;this.data[s]=i,this.data[s+1]=r,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},Nr.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,A=0;A<this.width;A++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*A;this.data[o]=i,this.data[o+1]=r,this.data[o+2]=n,this.data[o+3]=s}},Nr.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,A,n,r){var i=new Nr(t,!1),s=i.width,o=i.height,a={data:i.getData(),width:s,height:o},l=new Jg(100).encode(a,100);return e.processJPEG.call(this,l,A,n,r)}}(ae.API),uw.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,A,n,r){var i=new uw(t),s=i.width,o=i.height,a={data:i.getData(),width:s,height:o},l=new Jg(100).encode(a,100);return e.processJPEG.call(this,l,A,n,r)}}(ae.API),ae.API.processRGBA=function(e,t,A){for(var n=e.data,r=n.length,i=new Uint8Array(r/4*3),s=new Uint8Array(r/4),o=0,a=0,l=0;l<r;l+=4){var c=n[l],u=n[l+1],d=n[l+2],f=n[l+3];i[o++]=c,i[o++]=u,i[o++]=d,s[a++]=f}var m=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:m,index:t,alias:A,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},ae.API.setLanguage=function(e){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"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,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},Ea=ae.API,vf=Ea.getCharWidthsArray=function(e,t){var A,n,r=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),o=t.widths?t.widths:r.metadata.Unicode.widths,a=o.fof?o.fof:1,l=t.kerning?t.kerning:r.metadata.Unicode.kerning,c=l.fof?l.fof:1,u=t.doKerning!==!1,d=0,f=e.length,m=0,B=o[0]||a,v=[];for(A=0;A<f;A++)n=e.charCodeAt(A),typeof r.metadata.widthOfString=="function"?v.push((r.metadata.widthOfGlyph(r.metadata.characterToGlyph(n))+s*(1e3/i)||0)/1e3):(d=u&&Ze(l[n])==="object"&&!isNaN(parseInt(l[n][m],10))?l[n][m]/c:0,v.push((o[n]||B)/a+d)),m=n;return v},ew=Ea.getStringUnitWidth=function(e,t){var A=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),r=t.charSpace||this.internal.getCharSpace();return Ea.processArabic&&(e=Ea.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,A,r)/A:vf.apply(this,arguments).reduce(function(i,s){return i+s},0)},Aw=function(e,t,A,n){for(var r=[],i=0,s=e.length,o=0;i!==s&&o+t[i]<A;)o+=t[i],i++;r.push(e.slice(0,i));var a=i;for(o=0;i!==s;)o+t[i]>n&&(r.push(e.slice(a,i)),o=0,a=i),o+=t[i],i++;return a!==i&&r.push(e.slice(a,i)),r},nw=function(e,t,A){A||(A={});var n,r,i,s,o,a,l,c=[],u=[c],d=A.textIndent||0,f=0,m=0,B=e.split(" "),v=vf.apply(this,[" ",A])[0];if(a=A.lineIndent===-1?B[0].length+2:A.lineIndent||0){var b=Array(a).join(" "),C=[];B.map(function(_){(_=_.split(/\s*\n/)).length>1?C=C.concat(_.map(function(H,W){return(W&&H.length?`
|
||
`:"")+H})):C.push(_[0])}),B=C,a=ew.apply(this,[b,A])}for(i=0,s=B.length;i<s;i++){var Q=0;if(n=B[i],a&&n[0]==`
|
||
`&&(n=n.substr(1),Q=1),d+f+(m=(r=vf.apply(this,[n,A])).reduce(function(_,H){return _+H},0))>t||Q){if(m>t){for(o=Aw.apply(this,[n,r,t-(d+f),t]),c.push(o.shift()),c=[o.pop()];o.length;)u.push([o.shift()]);m=r.slice(n.length-(c[0]?c[0].length:0)).reduce(function(_,H){return _+H},0)}else c=[n];u.push(c),d=m+a,f=v}else c.push(n),d+=f+m,f=v}return l=a?function(_,H){return(H?b:"")+_.join(" ")}:function(_){return _.join(" ")},u.map(l)},Ea.splitTextToSize=function(e,t,A){var n,r=(A=A||{}).fontSize||this.internal.getFontSize(),i=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var u=this.internal.getFont(c.fontName,c.fontStyle),d="Unicode";return u.metadata[d]?{widths:u.metadata[d].widths||{0:1},kerning:u.metadata[d].kerning||{}}:{font:u.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,A);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/r;i.textIndent=A.textIndent?1*A.textIndent*this.internal.scaleFactor/r:0,i.lineIndent=A.lineIndent;var o,a,l=[];for(o=0,a=n.length;o<a;o++)l=l.concat(nw.apply(this,[n[o],s,i]));return l},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",A="klmnopqrstuvwxyz",n={},r={},i=0;i<16;i++)n[A[i]]=t[i],r[t[i]]=A[i];var s=function(d){return"0x"+parseInt(d,10).toString(16)},o=e.__fontmetrics__.compress=function(d){var f,m,B,v,b=["{"];for(var C in d){if(f=d[C],isNaN(parseInt(C,10))?m="'"+C+"'":(C=parseInt(C,10),m=(m=s(C).slice(2)).slice(0,-1)+r[m.slice(-1)]),typeof f=="number")f<0?(B=s(f).slice(3),v="-"):(B=s(f).slice(2),v=""),B=v+B.slice(0,-1)+r[B.slice(-1)];else{if(Ze(f)!=="object")throw new Error("Don't know what to do with value type "+Ze(f)+".");B=o(f)}b.push(m+B)}return b.push("}"),b.join("")},a=e.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,m,B,v,b={},C=1,Q=b,_=[],H="",W="",R=d.length-1,O=1;O<R;O+=1)(v=d[O])=="'"?f?(B=f.join(""),f=void 0):f=[]:f?f.push(v):v=="{"?(_.push([Q,B]),Q={},B=void 0):v=="}"?((m=_.pop())[0][m[1]]=Q,B=void 0,Q=m[0]):v=="-"?C=-1:B===void 0?n.hasOwnProperty(v)?(H+=n[v],B=parseInt(H,16)*C,C=1,H=""):H+=v:n.hasOwnProperty(v)?(W+=n[v],Q[B]=parseInt(W,16)*C,C=1,B=void 0,W=""):W+=v;return b},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},u={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'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":a("{'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:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'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:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'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":a("{'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:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'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":a("{'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":a("{'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}}}")}};e.events.push(["addFont",function(d){var f=d.font,m=u.Unicode[f.postScriptName];m&&(f.metadata.Unicode={},f.metadata.Unicode.widths=m.widths,f.metadata.Unicode.kerning=m.kerning);var B=c.Unicode[f.postScriptName];B&&(f.metadata.Unicode.encoding=B,f.encoding=B.codePages[0])}])}(ae.API),function(e){var t=function(A){for(var n=A.length,r=new Uint8Array(n),i=0;i<n;i++)r[i]=A.charCodeAt(i);return r};e.API.events.push(["addFont",function(A){var n=void 0,r=A.font,i=A.instance;if(!r.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(n=i.existsFileInVFS(r.postScriptName)===!1?i.loadFile(r.postScriptName):i.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(s,o){o=/^\x00\x01\x00\x00/.test(o)?t(o):t(jf(o)),s.metadata=e.API.TTFFont.open(o),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(r,n)}}])}(ae),ae.API.addSvgAsImage=function(e,t,A,n,r,i,s,o){if(isNaN(t)||isNaN(A))throw sA.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(r))throw sA.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var a=document.createElement("canvas");a.width=n,a.height=r;var l=a.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,a.width,a.height);var c={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return(we.canvg?Promise.resolve(we.canvg):gc(()=>import("./index.es-CvT3YZIj.js"),[])).catch(function(d){return Promise.reject(new Error("Could not load canvg: "+d))}).then(function(d){return d.default?d.default:d}).then(function(d){return d.fromString(l,e,c)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(d){return d.render(c)}).then(function(){u.addImage(a.toDataURL("image/jpeg",1),t,A,n,r,s,o)})},ae.API.putTotalPages=function(e){var t,A=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),A=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),A=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var r=0;r<this.internal.pages[n].length;r++)this.internal.pages[n][r]=this.internal.pages[n][r].replace(t,A);return this},ae.API.viewerPreferences=function(e,t){var A;e=e||{},t=t||!1;var n,r,i,s={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}},o=Object.keys(s),a=[],l=0,c=0,u=0;function d(m,B){var v,b=!1;for(v=0;v<m.length;v+=1)m[v]===B&&(b=!0);return b}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),A=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var f=o.length;for(u=0;u<f;u+=1)A[o[u]].value=A[o[u]].defaultValue,A[o[u]].explicitSet=!1}if(Ze(e)==="object"){for(r in e)if(i=e[r],d(o,r)&&i!==void 0){if(A[r].type==="boolean"&&typeof i=="boolean")A[r].value=i;else if(A[r].type==="name"&&d(A[r].valueSet,i))A[r].value=i;else if(A[r].type==="integer"&&Number.isInteger(i))A[r].value=i;else if(A[r].type==="array"){for(l=0;l<i.length;l+=1)if(n=!0,i[l].length===1&&typeof i[l][0]=="number")a.push(String(i[l]-1));else if(i[l].length>1){for(c=0;c<i[l].length;c+=1)typeof i[l][c]!="number"&&(n=!1);n===!0&&a.push([i[l][0]-1,i[l][1]-1].join(" "))}A[r].value="["+a.join(" ")+"]"}else A[r].value=A[r].defaultValue;A[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var m,B=[];for(m in A)A[m].explicitSet===!0&&(A[m].type==="name"?B.push("/"+m+" /"+A[m].value):B.push("/"+m+" "+A[m].value));B.length!==0&&this.internal.write(`/ViewerPreferences
|
||
<<
|
||
`+B.join(`
|
||
`)+`
|
||
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=A,this},ae.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",k8),this.internal.events.subscribe("postPutResources",L8)),this},function(e){var t=e.API,A=t.pdfEscape16=function(i,s){for(var o,a=s.metadata.Unicode.widths,l=["","0","00","000","0000"],c=[""],u=0,d=i.length;u<d;++u){if(o=s.metadata.characterToGlyph(i.charCodeAt(u)),s.metadata.glyIdsUsed.push(o),s.metadata.toUnicode[o]=i.charCodeAt(u),a.indexOf(o)==-1&&(a.push(o),a.push([parseInt(s.metadata.widthOfGlyph(o),10)])),o=="0")return c.join("");o=o.toString(16),c.push(l[4-o.length],o)}return c.join("")},n=function(i){var s,o,a,l,c,u,d;for(c=`/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=[],u=0,d=(o=Object.keys(i).sort(function(f,m){return f-m})).length;u<d;u++)s=o[u],a.length>=100&&(c+=`
|
||
`+a.length+` beginbfchar
|
||
`+a.join(`
|
||
`)+`
|
||
endbfchar`,a=[]),i[s]!==void 0&&i[s]!==null&&typeof i[s].toString=="function"&&(l=("0000"+i[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),a.push("<"+s+"><"+l+">"));return a.length&&(c+=`
|
||
`+a.length+` beginbfchar
|
||
`+a.join(`
|
||
`)+`
|
||
endbfchar
|
||
`),c+`endcmap
|
||
CMapName currentdict /CMap defineresource pop
|
||
end
|
||
end`};t.events.push(["putFont",function(i){(function(s){var o=s.font,a=s.out,l=s.newObject,c=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="Identity-H"){for(var u=o.metadata.Unicode.widths,d=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),f="",m=0;m<d.length;m++)f+=String.fromCharCode(d[m]);var B=l();c({data:f,addLength1:!0,objectId:B}),a("endobj");var v=l();c({data:n(o.metadata.toUnicode),addLength1:!0,objectId:v}),a("endobj");var b=l();a("<<"),a("/Type /FontDescriptor"),a("/FontName /"+Ma(o.fontName)),a("/FontFile2 "+B+" 0 R"),a("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),a("/Flags "+o.metadata.flags),a("/StemV "+o.metadata.stemV),a("/ItalicAngle "+o.metadata.italicAngle),a("/Ascent "+o.metadata.ascender),a("/Descent "+o.metadata.decender),a("/CapHeight "+o.metadata.capHeight),a(">>"),a("endobj");var C=l();a("<<"),a("/Type /Font"),a("/BaseFont /"+Ma(o.fontName)),a("/FontDescriptor "+b+" 0 R"),a("/W "+e.API.PDFObject.convert(u)),a("/CIDToGIDMap /Identity"),a("/DW 1000"),a("/Subtype /CIDFontType2"),a("/CIDSystemInfo"),a("<<"),a("/Supplement 0"),a("/Registry (Adobe)"),a("/Ordering ("+o.encoding+")"),a(">>"),a(">>"),a("endobj"),o.objectNumber=l(),a("<<"),a("/Type /Font"),a("/Subtype /Type0"),a("/ToUnicode "+v+" 0 R"),a("/BaseFont /"+Ma(o.fontName)),a("/Encoding /"+o.encoding),a("/DescendantFonts ["+C+" 0 R]"),a(">>"),a("endobj"),o.isAlreadyPutted=!0}})(i)}]),t.events.push(["putFont",function(i){(function(s){var o=s.font,a=s.out,l=s.newObject,c=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var u=o.metadata.rawData,d="",f=0;f<u.length;f++)d+=String.fromCharCode(u[f]);var m=l();c({data:d,addLength1:!0,objectId:m}),a("endobj");var B=l();c({data:n(o.metadata.toUnicode),addLength1:!0,objectId:B}),a("endobj");var v=l();a("<<"),a("/Descent "+o.metadata.decender),a("/CapHeight "+o.metadata.capHeight),a("/StemV "+o.metadata.stemV),a("/Type /FontDescriptor"),a("/FontFile2 "+m+" 0 R"),a("/Flags 96"),a("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),a("/FontName /"+Ma(o.fontName)),a("/ItalicAngle "+o.metadata.italicAngle),a("/Ascent "+o.metadata.ascender),a(">>"),a("endobj"),o.objectNumber=l();for(var b=0;b<o.metadata.hmtx.widths.length;b++)o.metadata.hmtx.widths[b]=parseInt(o.metadata.hmtx.widths[b]*(1e3/o.metadata.head.unitsPerEm));a("<</Subtype/TrueType/Type/Font/ToUnicode "+B+" 0 R/BaseFont/"+Ma(o.fontName)+"/FontDescriptor "+v+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),a("endobj"),o.isAlreadyPutted=!0}})(i)}]);var r=function(i){var s,o=i.text||"",a=i.x,l=i.y,c=i.options||{},u=i.mutex||{},d=u.pdfEscape,f=u.activeFontKey,m=u.fonts,B=f,v="",b=0,C="",Q=m[B].encoding;if(m[B].encoding!=="Identity-H")return{text:o,x:a,y:l,options:c,mutex:u};for(C=o,B=f,Array.isArray(o)&&(C=o[0]),b=0;b<C.length;b+=1)m[B].metadata.hasOwnProperty("cmap")&&(s=m[B].metadata.cmap.unicode.codeMap[C[b].charCodeAt(0)]),s||C[b].charCodeAt(0)<256&&m[B].metadata.hasOwnProperty("Unicode")?v+=C[b]:v+="";var _="";return parseInt(B.slice(1))<14||Q==="WinAnsiEncoding"?_=d(v,B).split("").map(function(H){return H.charCodeAt(0).toString(16)}).join(""):Q==="Identity-H"&&(_=A(v,m[B])),u.isHex=!0,{text:_,x:a,y:l,options:c,mutex:u}};t.events.push(["postProcessText",function(i){var s=i.text||"",o=[],a={text:s,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(s)){var l=0;for(l=0;l<s.length;l+=1)Array.isArray(s[l])&&s[l].length===3?o.push([r(Object.assign({},a,{text:s[l][0]})).text,s[l][1],s[l][2]]):o.push(r(Object.assign({},a,{text:s[l]})).text);i.text=o}else i.text=r(Object.assign({},a,{text:s})).text}])}(ae),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(A){return t.call(this),this.internal.vFS[A]!==void 0},e.addFileToVFS=function(A,n){return t.call(this),this.internal.vFS[A]=n,this},e.getFileFromVFS=function(A){return t.call(this),this.internal.vFS[A]!==void 0?this.internal.vFS[A]:null}}(ae.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var r,i,s,o,a,l,c,u=t,d=[[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]],m={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},B={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},v=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],b=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)$/),C=!1,Q=0;this.__bidiEngine__={};var _=function(F){var L=F.charCodeAt(),G=L>>8,q=B[G];return q!==void 0?u[256*q+(255&L)]:G===252||G===253?"AL":b.test(G)?"L":G===8?"R":"N"},H=function(F){for(var L,G=0;G<F.length;G++){if((L=_(F.charAt(G)))==="L")return!1;if(L==="R")return!0}return!1},W=function(F,L,G,q){var ft,lt,ct,at,st=L[q];switch(st){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":C=!1;break;case"N":case"AN":break;case"EN":C&&(st="AN");break;case"AL":C=!0,st="R";break;case"WS":case"BN":st="N";break;case"CS":q<1||q+1>=L.length||(ft=G[q-1])!=="EN"&&ft!=="AN"||(lt=L[q+1])!=="EN"&<!=="AN"?st="N":C&&(lt="AN"),st=lt===ft?lt:"N";break;case"ES":st=(ft=q>0?G[q-1]:"B")==="EN"&&q+1<L.length&&L[q+1]==="EN"?"EN":"N";break;case"ET":if(q>0&&G[q-1]==="EN"){st="EN";break}if(C){st="N";break}for(ct=q+1,at=L.length;ct<at&&L[ct]==="ET";)ct++;st=ct<at&&L[ct]==="EN"?"EN":"N";break;case"NSM":if(s&&!o){for(at=L.length,ct=q+1;ct<at&&L[ct]==="NSM";)ct++;if(ct<at){var Z=F[q],j=Z>=1425&&Z<=2303||Z===64286;if(ft=L[ct],j&&(ft==="R"||ft==="AL")){st="R";break}}}st=q<1||(ft=L[q-1])==="B"?"N":G[q-1];break;case"B":C=!1,r=!0,st=Q;break;case"S":i=!0,st="N"}return st},R=function(F,L,G){var q=F.split("");return G&&O(q,G,{hiLevel:Q}),q.reverse(),L&&L.reverse(),q.join("")},O=function(F,L,G){var q,ft,lt,ct,at,st=-1,Z=F.length,j=0,U=[],N=Q?f:d,tt=[];for(C=!1,r=!1,i=!1,ft=0;ft<Z;ft++)tt[ft]=_(F[ft]);for(lt=0;lt<Z;lt++){if(at=j,U[lt]=W(F,tt,U,lt),q=240&(j=N[at][m[U[lt]]]),j&=15,L[lt]=ct=N[j][5],q>0)if(q===16){for(ft=st;ft<lt;ft++)L[ft]=1;st=-1}else st=-1;if(N[j][6])st===-1&&(st=lt);else if(st>-1){for(ft=st;ft<lt;ft++)L[ft]=ct;st=-1}tt[lt]==="B"&&(L[lt]=0),G.hiLevel|=ct}i&&function(et,At,z){for(var nt=0;nt<z;nt++)if(et[nt]==="S"){At[nt]=Q;for(var ot=nt-1;ot>=0&&et[ot]==="WS";ot--)At[ot]=Q}}(tt,L,Z)},k=function(F,L,G,q,ft){if(!(ft.hiLevel<F)){if(F===1&&Q===1&&!r)return L.reverse(),void(G&&G.reverse());for(var lt,ct,at,st,Z=L.length,j=0;j<Z;){if(q[j]>=F){for(at=j+1;at<Z&&q[at]>=F;)at++;for(st=j,ct=at-1;st<ct;st++,ct--)lt=L[st],L[st]=L[ct],L[ct]=lt,G&&(lt=G[st],G[st]=G[ct],G[ct]=lt);j=at}j++}}},V=function(F,L,G){var q=F.split(""),ft={hiLevel:Q};return G||(G=[]),O(q,G,ft),function(lt,ct,at){if(at.hiLevel!==0&&c)for(var st,Z=0;Z<lt.length;Z++)ct[Z]===1&&(st=v.indexOf(lt[Z]))>=0&&(lt[Z]=v[st+1])}(q,G,ft),k(2,q,L,G,ft),k(1,q,L,G,ft),q.join("")};return this.__bidiEngine__.doBidiReorder=function(F,L,G){if(function(ft,lt){if(lt)for(var ct=0;ct<ft.length;ct++)lt[ct]=ct;o===void 0&&(o=H(ft)),l===void 0&&(l=H(ft))}(F,L),s||!a||l)if(s&&a&&o^l)Q=o?1:0,F=R(F,L,G);else if(!s&&a&&l)Q=o?1:0,F=V(F,L,G),F=R(F,L);else if(!s||o||a||l){if(s&&!a&&o^l)F=R(F,L),o?(Q=0,F=V(F,L,G)):(Q=1,F=V(F,L,G),F=R(F,L));else if(s&&o&&!a&&l)Q=1,F=V(F,L,G),F=R(F,L);else if(!s&&!a&&o^l){var q=c;o?(Q=1,F=V(F,L,G),Q=0,c=!1,F=V(F,L,G),c=q):(Q=0,F=V(F,L,G),F=R(F,L),Q=1,c=!1,F=V(F,L,G),c=q,F=R(F,L))}}else Q=0,F=V(F,L,G);else Q=o?1:0,F=V(F,L,G);return F},this.__bidiEngine__.setOptions=function(F){F&&(s=F.isInputVisual,a=F.isOutputVisual,o=F.isInputRtl,l=F.isOutputRtl,c=F.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["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"],A=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var r=n.text;n.x,n.y;var i=n.options||{};n.mutex,i.lang;var s=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,A.setOptions(i),Object.prototype.toString.call(r)==="[object Array]"){var o=0;for(s=[],o=0;o<r.length;o+=1)Object.prototype.toString.call(r[o])==="[object Array]"?s.push([A.doBidiReorder(r[o][0]),r[o][1],r[o][2]]):s.push([A.doBidiReorder(r[o])]);n.text=s}else n.text=A.doBidiReorder(r);A.setOptions({isInputVisual:!0})}])}(ae),ae.API.TTFFont=function(){function e(t){var A;if(this.rawData=t,A=this.contents=new $s(t),this.contents.pos=4,A.readString(4)==="ttcf")throw new Error("TTCF not supported.");A.pos=0,this.parse(),this.subset=new $8(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new N8(this.contents),this.head=new H8(this),this.name=new R8(this),this.cmap=new Jy(this),this.toUnicode={},this.hhea=new M8(this),this.maxp=new K8(this),this.hmtx=new V8(this),this.post=new O8(this),this.os2=new T8(this),this.loca=new z8(this),this.glyf=new j8(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]},e.prototype.registerTTF=function(){var t,A,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,o,a,l;for(l=[],s=0,o=(a=this.bbox).length;s<o;s++)t=a[s],l.push(Math.round(t*this.scaleFactor));return l}).call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(A=r>>16)&&(A=-(1+(65535^A))),this.italicAngle=+(A+"."+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=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===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")},e.prototype.characterToGlyph=function(t){var A;return((A=this.cmap.unicode)!=null?A.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var A;return A=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*A},e.prototype.widthOfString=function(t,A,n){var r,i,s,o;for(s=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)r=t.charCodeAt(i),s+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/A)||0;return s*(A/1e3)},e.prototype.lineHeight=function(t,A){var n;return A==null&&(A=!1),n=A?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e}();var Gr,$s=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var A,n;for(n=[],A=0;0<=t?A<t:A>t;A=0<=t?++A:--A)n[A]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var A,n,r;for(r=[],A=0,n=t.length;0<=n?A<n:A>n;A=0<=n?++A:--A)r.push(this.writeByte(t.charCodeAt(A)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,A,n,r,i,s,o,a;return t=this.readByte(),A=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),s=this.readByte(),o=this.readByte(),a=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^A)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^s)+256*(255^o)+(255^a)+1):72057594037927940*t+281474976710656*A+1099511627776*n+4294967296*r+16777216*i+65536*s+256*o+a},e.prototype.writeLongLong=function(t){var A,n;return A=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(A>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var A,n;for(A=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)A.push(this.readByte());return A},e.prototype.write=function(t){var A,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)A=t[n],i.push(this.writeByte(A));return i},e}(),N8=function(){var e;function t(A){var n,r,i;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},r=0,i=this.tableCount;0<=i?r<i:r>i;r=0<=i?++r:--r)n={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(A){var n,r,i,s,o,a,l,c,u,d,f,m,B;for(B in f=Object.keys(A).length,a=Math.log(2),u=16*Math.floor(Math.log(f)/a),s=Math.floor(u/a),c=16*f-u,(r=new $s).writeInt(this.scalarType),r.writeShort(f),r.writeShort(u),r.writeShort(s),r.writeShort(c),i=16*f,l=r.pos+i,o=null,m=[],A)for(d=A[B],r.writeString(B),r.writeInt(e(d)),r.writeInt(l),r.writeInt(d.length),m=m.concat(d),B==="head"&&(o=l),l+=d.length;l%4;)m.push(0),l++;return r.write(m),n=2981146554-e(r.data),r.pos=o+8,r.writeUInt32(n),r.data},e=function(A){var n,r,i,s;for(A=Zy.call(A);A.length%4;)A.push(0);for(i=new $s(A),r=0,n=0,s=A.length;n<s;n=n+=4)r+=i.readUInt32();return 4294967295&r},t}(),D8={}.hasOwnProperty,yi=function(e,t){for(var A in t)D8.call(t,A)&&(e[A]=t[A]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};Gr=function(){function e(t){var A;this.file=t,A=this.file.directory.tables[this.tag],this.exists=!!A,A&&(this.offset=A.offset,this.length=A.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var H8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),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 A;return(A=new $s).writeInt(this.version),A.writeInt(this.revision),A.writeInt(this.checkSumAdjustment),A.writeInt(this.magicNumber),A.writeShort(this.flags),A.writeShort(this.unitsPerEm),A.writeLongLong(this.created),A.writeLongLong(this.modified),A.writeShort(this.xMin),A.writeShort(this.yMin),A.writeShort(this.xMax),A.writeShort(this.yMax),A.writeShort(this.macStyle),A.writeShort(this.lowestRecPPEM),A.writeShort(this.fontDirectionHint),A.writeShort(t),A.writeShort(this.glyphDataFormat),A.data},e}(),fw=function(){function e(t,A){var n,r,i,s,o,a,l,c,u,d,f,m,B,v,b,C,Q;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=A+t.readInt(),u=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.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]=t.readByte();break;case 4:for(f=t.readUInt16(),d=f/2,t.pos+=6,i=function(){var _,H;for(H=[],a=_=0;0<=d?_<d:_>d;a=0<=d?++_:--_)H.push(t.readUInt16());return H}(),t.pos+=2,B=function(){var _,H;for(H=[],a=_=0;0<=d?_<d:_>d;a=0<=d?++_:--_)H.push(t.readUInt16());return H}(),l=function(){var _,H;for(H=[],a=_=0;0<=d?_<d:_>d;a=0<=d?++_:--_)H.push(t.readUInt16());return H}(),c=function(){var _,H;for(H=[],a=_=0;0<=d?_<d:_>d;a=0<=d?++_:--_)H.push(t.readUInt16());return H}(),r=(this.length-t.pos+this.offset)/2,o=function(){var _,H;for(H=[],a=_=0;0<=r?_<r:_>r;a=0<=r?++_:--_)H.push(t.readUInt16());return H}(),a=b=0,Q=i.length;b<Q;a=++b)for(v=i[a],n=C=m=B[a];m<=v?C<=v:C>=v;n=m<=v?++C:--C)c[a]===0?s=n+l[a]:(s=o[c[a]/2+(n-m)-(d-a)]||0)!==0&&(s+=l[a]),this.codeMap[n]=65535&s}t.pos=u}return e.encode=function(t,A){var n,r,i,s,o,a,l,c,u,d,f,m,B,v,b,C,Q,_,H,W,R,O,k,V,F,L,G,q,ft,lt,ct,at,st,Z,j,U,N,tt,et,At,z,nt,ot,wt,_t,P;switch(q=new $s,s=Object.keys(t).sort(function($,rt){return $-rt}),A){case"macroman":for(B=0,v=function(){var $=[];for(m=0;m<256;++m)$.push(0);return $}(),C={0:0},i={},ft=0,st=s.length;ft<st;ft++)C[ot=t[r=s[ft]]]==null&&(C[ot]=++B),i[r]={old:t[r],new:C[t[r]]},v[r]=C[t[r]];return q.writeUInt16(1),q.writeUInt16(0),q.writeUInt32(12),q.writeUInt16(0),q.writeUInt16(262),q.writeUInt16(0),q.write(v),{charMap:i,subtable:q.data,maxGlyphID:B+1};case"unicode":for(L=[],u=[],Q=0,C={},n={},b=l=null,lt=0,Z=s.length;lt<Z;lt++)C[H=t[r=s[lt]]]==null&&(C[H]=++Q),n[r]={old:H,new:C[H]},o=C[H]-r,b!=null&&o===l||(b&&u.push(b),L.push(r),l=o),b=r;for(b&&u.push(b),u.push(65535),L.push(65535),V=2*(k=L.length),O=2*Math.pow(Math.log(k)/Math.LN2,2),d=Math.log(O/2)/Math.LN2,R=2*k-O,a=[],W=[],f=[],m=ct=0,j=L.length;ct<j;m=++ct){if(F=L[m],c=u[m],F===65535){a.push(0),W.push(0);break}if(F-(G=n[F].new)>=32768)for(a.push(0),W.push(2*(f.length+k-m)),r=at=F;F<=c?at<=c:at>=c;r=F<=c?++at:--at)f.push(n[r].new);else a.push(G-F),W.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*k+2*f.length),q.writeUInt16(0),q.writeUInt16(V),q.writeUInt16(O),q.writeUInt16(d),q.writeUInt16(R),z=0,U=u.length;z<U;z++)r=u[z],q.writeUInt16(r);for(q.writeUInt16(0),nt=0,N=L.length;nt<N;nt++)r=L[nt],q.writeUInt16(r);for(wt=0,tt=a.length;wt<tt;wt++)o=a[wt],q.writeUInt16(o);for(_t=0,et=W.length;_t<et;_t++)_=W[_t],q.writeUInt16(_);for(P=0,At=f.length;P<At;P++)B=f[P],q.writeUInt16(B);return{charMap:n,subtable:q.data,maxGlyphID:Q+1}}},e}(),Jy=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="cmap",e.prototype.parse=function(t){var A,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)A=new fw(t,this.offset),this.tables.push(A),A.isUnicode&&this.unicode==null&&(this.unicode=A);return!0},e.encode=function(t,A){var n,r;return A==null&&(A="macroman"),n=fw.encode(t,A),(r=new $s).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),M8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),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}(),T8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),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 A,n;for(n=[],A=0;A<10;++A)n.push(t.readByte());return n}(),this.charRange=function(){var A,n;for(n=[],A=0;A<4;++A)n.push(t.readInt());return n}(),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 A,n;for(n=[],A=0;A<2;A=++A)n.push(t.readInt());return n}(),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}(),O8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="post",e.prototype.parse=function(t){var A,n,r;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:case 196608:break;case 131072:var i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)A=t.readByte(),r.push(this.names.push(t.readString(A)));return r;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=(function(){var s,o,a;for(a=[],i=s=0,o=this.file.maxp.numGlyphs;0<=o?s<o:s>o;i=0<=o?++s:--s)a.push(t.readUInt32());return a}).call(this)}},e}(),P8=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},R8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="name",e.prototype.parse=function(t){var A,n,r,i,s,o,a,l,c,u,d;for(t.pos=this.offset,t.readShort(),A=t.readShort(),o=t.readShort(),n=[],i=0;0<=A?i<A:i>A;i=0<=A?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(a={},i=c=0,u=n.length;c<u;i=++c)r=n[i],t.pos=r.offset,l=t.readString(r.length),s=new P8(l,r),a[d=r.nameID]==null&&(a[d]=[]),a[r.nameID].push(s);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},e}(),K8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),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}(),V8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="hmtx",e.prototype.parse=function(t){var A,n,r,i,s,o,a;for(t.pos=this.offset,this.metrics=[],A=0,o=this.file.hhea.numberOfMetrics;0<=o?A<o:A>o;A=0<=o?++A:--A)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var l,c;for(c=[],A=l=0;0<=r?l<r:l>r;A=0<=r?++l:--l)c.push(t.readInt16());return c}(),this.widths=(function(){var l,c,u,d;for(d=[],l=0,c=(u=this.metrics).length;l<c;l++)i=u[l],d.push(i.advance);return d}).call(this),n=this.widths[this.widths.length-1],a=[],A=s=0;0<=r?s<r:s>r;A=0<=r?++s:--s)a.push(this.widths.push(n));return a},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}(),Zy=[].slice,j8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var A,n,r,i,s,o,a,l,c,u;return t in this.cache?this.cache[t]:(i=this.file.loca,A=this.file.contents,n=i.indexOf(t),(r=i.lengthOf(t))===0?this.cache[t]=null:(A.pos=this.offset+n,s=(o=new $s(A.read(r))).readShort(),l=o.readShort(),u=o.readShort(),a=o.readShort(),c=o.readShort(),this.cache[t]=s===-1?new W8(o,l,u,a,c):new G8(o,s,l,u,a,c),this.cache[t]))},e.prototype.encode=function(t,A,n){var r,i,s,o,a;for(s=[],i=[],o=0,a=A.length;o<a;o++)r=t[A[o]],i.push(s.length),r&&(s=s.concat(r.encode(n)));return i.push(s.length),{table:s,offsets:i}},e}(),G8=function(){function e(t,A,n,r,i,s){this.raw=t,this.numberOfContours=A,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=s,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),W8=function(){function e(t,A,n,r,i){var s,o;for(this.raw=t,this.xMin=A,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;o=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&o;)s.pos+=1&o?4:2,128&o?s.pos+=8:64&o?s.pos+=4:8&o&&(s.pos+=2)}return e.prototype.encode=function(){var t,A,n;for(A=new $s(Zy.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)A.pos=this.glyphOffsets[t];return A.data},e}(),z8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="loca",e.prototype.parse=function(t){var A,n;return t.pos=this.offset,A=this.file.head.indexToLocFormat,this.offsets=A===0?(function(){var r,i;for(i=[],n=0,r=this.length;n<r;n+=2)i.push(2*t.readUInt16());return i}).call(this):(function(){var r,i;for(i=[],n=0,r=this.length;n<r;n+=4)i.push(t.readUInt32());return i}).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,A){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,s=0;s<n.length;++s)if(n[s]=r,i<A.length&&A[i]==s){++i,n[s]=r;var o=this.offsets[s],a=this.offsets[s+1]-o;a>0&&(r+=a)}for(var l=new Array(4*n.length),c=0;c<n.length;++c)l[4*c+3]=255&n[c],l[4*c+2]=(65280&n[c])>>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},e}(),$8=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,A,n,r,i;for(A in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[A],t[A]=r[n];return t},e.prototype.glyphsFor=function(t){var A,n,r,i,s,o,a;for(r={},s=0,o=t.length;s<o;s++)r[i=t[s]]=this.font.glyf.glyphFor(i);for(i in A=[],r)(n=r[i])!=null&&n.compound&&A.push.apply(A,n.glyphIDs);if(A.length>0)for(i in a=this.glyphsFor(A))n=a[i],r[i]=n;return r},e.prototype.encode=function(t,A){var n,r,i,s,o,a,l,c,u,d,f,m,B,v,b;for(r in n=Jy.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(t),f={0:0},b=n.charMap)f[(a=b[r]).old]=a.new;for(m in d=n.maxGlyphID,s)m in f||(f[m]=d++);return c=function(C){var Q,_;for(Q in _={},C)_[C[Q]]=Q;return _}(f),u=Object.keys(c).sort(function(C,Q){return C-Q}),B=function(){var C,Q,_;for(_=[],C=0,Q=u.length;C<Q;C++)o=u[C],_.push(c[o]);return _}(),i=this.font.glyf.encode(s,B,f),l=this.font.loca.encode(i.offsets,B),v={cmap:this.font.cmap.raw(),glyf:i.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(A)},this.font.os2.exists&&(v["OS/2"]=this.font.os2.raw()),this.font.directory.encode(v)},e}();ae.API.PDFObject=function(){var e;function t(){}return e=function(A,n){return(Array(n+1).join("0")+A).slice(-n)},t.convert=function(A){var n,r,i,s;if(Array.isArray(A))return"["+function(){var o,a,l;for(l=[],o=0,a=A.length;o<a;o++)n=A[o],l.push(t.convert(n));return l}().join(" ")+"]";if(typeof A=="string")return"/"+A;if(A!=null&&A.isString)return"("+A+")";if(A instanceof Date)return"(D:"+e(A.getUTCFullYear(),4)+e(A.getUTCMonth(),2)+e(A.getUTCDate(),2)+e(A.getUTCHours(),2)+e(A.getUTCMinutes(),2)+e(A.getUTCSeconds(),2)+"Z)";if({}.toString.call(A)==="[object Object]"){for(r in i=["<<"],A)s=A[r],i.push("/"+r+" "+t.convert(s));return i.push(">>"),i.join(`
|
||
`)}return""+A},t}();const LA=(e,t)=>{const A=e.__vccOpts||e;for(const[n,r]of t)A[n]=r;return A},q8={class:"main-header"},X8={class:"header-left"},Y8={class:"breadcrumb"},J8={class:"print-date"},Z8={class:"header-right no-print"},tk={class:"company-selector-container"},ek={class:"selected-name"},Ak={key:0,class:"company-dropdown"},nk={class:"dropdown-header"},rk={class:"input-box"},ik={class:"company-list"},sk=["onClick"],ok={key:0,class:"empty"},ak={class:"custom-date-picker"},lk={__name:"DashboardHeader",props:{companyName:{type:String,default:"업체를 선택하세요"},companyId:{type:String,default:""},companies:{type:Array,default:()=>[]},reportRound:{type:[String,Number],default:""}},emits:["select-company"],setup(e,{emit:t}){const A=e,n=t,r=ge(!1),i=ge(""),s=new Date,o=`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`,a=ge(o),l=ye(()=>i.value.trim()?A.companies.filter(d=>d.name.toLowerCase().includes(i.value.toLowerCase())):A.companies),c=d=>{n("select-company",d),r.value=!1},u=()=>{window.print()};return(d,f)=>(ht(),Bt("header",q8,[p("div",X8,[p("h1",null,kt(e.companyName)+" - "+kt(e.reportRound?`(${String(e.reportRound).replace(/회차/g,"")}회차) 보고서`:"사업분석 보고서"),1),p("div",Y8,[ie("홈 / 보고서 / "+kt(e.companyName)+" ",1),p("span",J8,"| 기준일: "+kt(a.value),1)])]),p("div",Z8,[p("div",tk,[p("div",{class:"company-selector",onClick:f[0]||(f[0]=m=>r.value=!r.value)},[Vt(qt(dh),{size:18,class:"icon-company"}),p("span",ek,kt(e.companyName||"업체 선택"),1),Vt(qt(Uo),{size:18,class:aA({rotate:r.value})},null,8,["class"])]),r.value?(ht(),Bt("div",Ak,[p("div",nk,[p("span",null,"업체 목록 ("+kt(e.companies.length)+")",1)]),p("div",rk,[Tt(p("input",{"onUpdate:modelValue":f[1]||(f[1]=m=>i.value=m),placeholder:"업체 이름 검색",onClick:f[2]||(f[2]=G0(()=>{},["stop"])),focusable:""},null,512),[[Rt,i.value]])]),p("ul",ik,[(ht(!0),Bt(ce,null,Ue(l.value,m=>(ht(),Bt("li",{key:m.companyId,onClick:B=>c(m)},[Vt(qt(dh),{size:16}),p("span",null,kt(m.name),1)],8,sk))),128)),l.value.length===0?(ht(),Bt("li",ok,"업체가 없습니다")):ue("",!0)])])):ue("",!0)]),p("div",ak,[f[4]||(f[4]=p("label",{for:"report-date"},"기준일:",-1)),Tt(p("input",{type:"date",id:"report-date","onUpdate:modelValue":f[3]||(f[3]=m=>a.value=m),class:"date-input"},null,512),[[Rt,a.value]])]),p("button",{class:"btn btn-primary",onClick:u},[Vt(qt(_U),{size:18}),f[5]||(f[5]=ie(" 인쇄 ",-1))])])]))}},ck=LA(lk,[["__scopeId","data-v-f80370cb"]]),hw="https://kyeongmiapi.daoblock.co.kr",xn={async request(e,t={}){const A=localStorage.getItem("accessToken")||sessionStorage.getItem("accessToken"),n={...t.headers};t.body instanceof FormData||(n["Content-Type"]="application/json"),A&&(n.Authorization=`Bearer ${A}`);const r={...t,headers:n,credentials:"include"};try{const i=e.startsWith("/")?`${hw}${e}`:e;let s=await fetch(i,r);if(s.status===401){const o=await fetch(`${hw}/api/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include"});if(o.ok){const{accessToken:a}=await o.json();return localStorage.getItem("accessToken")?localStorage.setItem("accessToken",a):sessionStorage.setItem("accessToken",a),n.Authorization=`Bearer ${a}`,s=await fetch(i,{...r,headers:n}),s}else return this.handleLogout(),s}return s}catch(i){throw console.error("API Request Error:",i),i}},handleLogout(){localStorage.removeItem("accessToken"),sessionStorage.removeItem("accessToken"),C1.push("/login")},get(e,t={}){return this.request(e,{...t,method:"GET"})},post(e,t,A={}){const n=t instanceof FormData;return this.request(e,{...A,method:"POST",body:n?t:JSON.stringify(t)})},put(e,t,A={}){return this.request(e,{...A,method:"PUT",body:JSON.stringify(t)})},delete(e,t={}){return this.request(e,{...t,method:"DELETE"})}},uk={class:"sidebar"},fk={class:"sidebar-nav"},hk={class:"nav-group"},dk={class:"nav-group"},gk={class:"sidebar-footer"},pk={class:"settings-modal"},mk={class:"modal-header"},Bk={class:"modal-body"},wk={class:"input-group"},vk={class:"input-group"},bk={class:"input-group"},yk={__name:"Sidebar",props:{companies:Array},emits:["select","edit","refresh","changeView","logout"],setup(e,{emit:t}){const A=z0(),n=t,r=ge(!1),i=ge({geminiKey:localStorage.getItem("ai_gemini_key")||"",gptKey:localStorage.getItem("ai_gpt_key")||"",preferredProvider:localStorage.getItem("ai_preferred_provider")||"gemini"}),s=()=>{localStorage.setItem("ai_gemini_key",i.value.geminiKey),localStorage.setItem("ai_gpt_key",i.value.gptKey),localStorage.setItem("ai_preferred_provider",i.value.preferredProvider),r.value=!1,alert("AI 설정이 저장되었습니다.")},o=()=>{A.currentRoute.value.path!=="/ai-chat"&&A.push("/ai-chat")},a=()=>{A.currentRoute.value.path!=="/admin"&&A.push("/admin")};return(l,c)=>(ht(),Bt("aside",uk,[c[27]||(c[27]=p("div",{class:"sidebar-header"},[p("h2",null,"관리 Tool")],-1)),p("nav",fk,[p("div",{class:"nav-group clickable-group",onClick:c[0]||(c[0]=u=>n("changeView","dashboard"))},[p("h3",null,[Vt(qt(bU),{size:14}),c[11]||(c[11]=ie(" 보고서 ",-1))])]),c[16]||(c[16]=p("div",{class:"sidebar-divider"},null,-1)),p("div",hk,[p("h3",null,[Vt(qt(SU),{size:14}),c[12]||(c[12]=ie(" 입금액 상세정리 ",-1))]),p("ul",null,[p("li",{onClick:c[1]||(c[1]=u=>n("changeView","deposit-all"))},[...c[13]||(c[13]=[p("span",{class:"dot"},null,-1),ie(" 년도별 전체 (월별) ",-1)])]),p("li",{onClick:c[2]||(c[2]=u=>n("changeView","deposit-kmong"))},[...c[14]||(c[14]=[p("span",{class:"dot"},null,-1),ie(" 크몽 입금액 ",-1)])])])]),p("div",dk,[p("h3",{onClick:c[3]||(c[3]=u=>n("changeView","company-total"))},[Vt(qt($0),{size:14}),c[15]||(c[15]=ie(" 업체정보 ",-1))])])]),p("div",gk,[p("button",{class:"btn-config",onClick:c[4]||(c[4]=u=>r.value=!0)},[Vt(qt(UU),{size:18}),c[17]||(c[17]=ie(" AI 설정 ",-1))]),p("button",{class:"btn-ai",onClick:o},[Vt(qt(CU),{size:18}),c[18]||(c[18]=ie(" AI 모드 ",-1))]),p("button",{class:"btn-admin",onClick:a},[Vt(qt(QU),{size:18}),c[19]||(c[19]=ie(" 관리자 ",-1))]),p("button",{class:"btn-logout",onClick:c[5]||(c[5]=u=>n("logout"))},[Vt(qt(yU),{size:18}),c[20]||(c[20]=ie(" 로그아웃 ",-1))])]),r.value?(ht(),Bt("div",{key:0,class:"settings-modal-overlay",onClick:c[10]||(c[10]=G0(u=>r.value=!1,["self"]))},[p("div",pk,[p("div",mk,[c[21]||(c[21]=p("h3",null,"AI 연동 설정",-1)),p("button",{class:"btn-close",onClick:c[6]||(c[6]=u=>r.value=!1)},[Vt(qt(LU),{size:20})])]),p("div",Bk,[p("div",wk,[c[23]||(c[23]=p("label",null,"주요 사용 AI",-1)),Tt(p("select",{"onUpdate:modelValue":c[7]||(c[7]=u=>i.value.preferredProvider=u),class:"config-select"},[...c[22]||(c[22]=[p("option",{value:"gemini"},"Google Gemini",-1),p("option",{value:"gpt"},"OpenAI GPT-4",-1)])],512),[[gi,i.value.preferredProvider]])]),p("div",vk,[c[24]||(c[24]=p("label",null,"Gemini API Key",-1)),Tt(p("input",{"onUpdate:modelValue":c[8]||(c[8]=u=>i.value.geminiKey=u),type:"password",placeholder:"AIzaSy..."},null,512),[[Rt,i.value.geminiKey]])]),p("div",bk,[c[25]||(c[25]=p("label",null,"GPT API Key",-1)),Tt(p("input",{"onUpdate:modelValue":c[9]||(c[9]=u=>i.value.gptKey=u),type:"password",placeholder:"sk-..."},null,512),[[Rt,i.value.gptKey]])]),c[26]||(c[26]=p("p",{class:"config-hint"},"* 키를 입력하지 않으면 서버의 기본 키를 사용합니다.",-1))]),p("div",{class:"modal-footer"},[p("button",{class:"btn-save-config",onClick:s},"설정 저장")])])])):ue("",!0)]))}},Ck=LA(yk,[["__scopeId","data-v-0db0a781"]]);/*!
|
||
* @kurkle/color v0.3.4
|
||
* https://github.com/kurkle/color#readme
|
||
* (c) 2024 Jukka Kurkela
|
||
* Released under the MIT License
|
||
*/function eu(e){return e+.5|0}const Ts=(e,t,A)=>Math.max(Math.min(e,A),t);function ec(e){return Ts(eu(e*2.55),0,255)}function Gs(e){return Ts(eu(e*255),0,255)}function qi(e){return Ts(eu(e/2.55)/100,0,1)}function dw(e){return Ts(eu(e*100),0,100)}const wr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},c0=[..."0123456789ABCDEF"],xk=e=>c0[e&15],Fk=e=>c0[(e&240)>>4]+c0[e&15],bf=e=>(e&240)>>4===(e&15),_k=e=>bf(e.r)&&bf(e.g)&&bf(e.b)&&bf(e.a);function Uk(e){var t=e.length,A;return e[0]==="#"&&(t===4||t===5?A={r:255&wr[e[1]]*17,g:255&wr[e[2]]*17,b:255&wr[e[3]]*17,a:t===5?wr[e[4]]*17:255}:(t===7||t===9)&&(A={r:wr[e[1]]<<4|wr[e[2]],g:wr[e[3]]<<4|wr[e[4]],b:wr[e[5]]<<4|wr[e[6]],a:t===9?wr[e[7]]<<4|wr[e[8]]:255})),A}const Qk=(e,t)=>e<255?t(e):"";function Ek(e){var t=_k(e)?xk:Fk;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Qk(e.a,t):void 0}const Ik=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tC(e,t,A){const n=t*Math.min(A,1-A),r=(i,s=(i+e/30)%12)=>A-n*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function Sk(e,t,A){const n=(r,i=(r+e/60)%6)=>A-A*t*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function Lk(e,t,A){const n=tC(e,1,.5);let r;for(t+A>1&&(r=1/(t+A),t*=r,A*=r),r=0;r<3;r++)n[r]*=1-t-A,n[r]+=t;return n}function kk(e,t,A,n,r){return e===r?(t-A)/n+(t<A?6:0):t===r?(A-e)/n+2:(e-t)/n+4}function o1(e){const A=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(A,n,r),s=Math.min(A,n,r),o=(i+s)/2;let a,l,c;return i!==s&&(c=i-s,l=o>.5?c/(2-i-s):c/(i+s),a=kk(A,n,r,c,i),a=a*60+.5),[a|0,l||0,o]}function a1(e,t,A,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,A,n)).map(Gs)}function l1(e,t,A){return a1(tC,e,t,A)}function Nk(e,t,A){return a1(Lk,e,t,A)}function Dk(e,t,A){return a1(Sk,e,t,A)}function eC(e){return(e%360+360)%360}function Hk(e){const t=Ik.exec(e);let A=255,n;if(!t)return;t[5]!==n&&(A=t[6]?ec(+t[5]):Gs(+t[5]));const r=eC(+t[2]),i=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?n=Nk(r,i,s):t[1]==="hsv"?n=Dk(r,i,s):n=l1(r,i,s),{r:n[0],g:n[1],b:n[2],a:A}}function Mk(e,t){var A=o1(e);A[0]=eC(A[0]+t),A=l1(A),e.r=A[0],e.g=A[1],e.b=A[2]}function Tk(e){if(!e)return;const t=o1(e),A=t[0],n=dw(t[1]),r=dw(t[2]);return e.a<255?`hsla(${A}, ${n}%, ${r}%, ${qi(e.a)})`:`hsl(${A}, ${n}%, ${r}%)`}const gw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},pw={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ok(){const e={},t=Object.keys(pw),A=Object.keys(gw);let n,r,i,s,o;for(n=0;n<t.length;n++){for(s=o=t[n],r=0;r<A.length;r++)i=A[r],o=o.replace(i,gw[i]);i=parseInt(pw[s],16),e[o]=[i>>16&255,i>>8&255,i&255]}return e}let yf;function Pk(e){yf||(yf=Ok(),yf.transparent=[0,0,0,0]);const t=yf[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Rk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Kk(e){const t=Rk.exec(e);let A=255,n,r,i;if(t){if(t[7]!==n){const s=+t[7];A=t[8]?ec(s):Ts(s*255,0,255)}return n=+t[1],r=+t[3],i=+t[5],n=255&(t[2]?ec(n):Ts(n,0,255)),r=255&(t[4]?ec(r):Ts(r,0,255)),i=255&(t[6]?ec(i):Ts(i,0,255)),{r:n,g:r,b:i,a:A}}}function Vk(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Zg=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ia=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function jk(e,t,A){const n=Ia(qi(e.r)),r=Ia(qi(e.g)),i=Ia(qi(e.b));return{r:Gs(Zg(n+A*(Ia(qi(t.r))-n))),g:Gs(Zg(r+A*(Ia(qi(t.g))-r))),b:Gs(Zg(i+A*(Ia(qi(t.b))-i))),a:e.a+A*(t.a-e.a)}}function Cf(e,t,A){if(e){let n=o1(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*A,t===0?360:1)),n=l1(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function AC(e,t){return e&&Object.assign(t||{},e)}function mw(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Gs(e[3]))):(t=AC(e,{r:0,g:0,b:0,a:1}),t.a=Gs(t.a)),t}function Gk(e){return e.charAt(0)==="r"?Kk(e):Hk(e)}class Rc{constructor(t){if(t instanceof Rc)return t;const A=typeof t;let n;A==="object"?n=mw(t):A==="string"&&(n=Uk(t)||Pk(t)||Gk(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=AC(this._rgb);return t&&(t.a=qi(t.a)),t}set rgb(t){this._rgb=mw(t)}rgbString(){return this._valid?Vk(this._rgb):void 0}hexString(){return this._valid?Ek(this._rgb):void 0}hslString(){return this._valid?Tk(this._rgb):void 0}mix(t,A){if(t){const n=this.rgb,r=t.rgb;let i;const s=A===i?.5:A,o=2*s-1,a=n.a-r.a,l=((o*a===-1?o:(o+a)/(1+o*a))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=s*n.a+(1-s)*r.a,this.rgb=n}return this}interpolate(t,A){return t&&(this._rgb=jk(this._rgb,t._rgb,A)),this}clone(){return new Rc(this.rgb)}alpha(t){return this._rgb.a=Gs(t),this}clearer(t){const A=this._rgb;return A.a*=1-t,this}greyscale(){const t=this._rgb,A=eu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=A,this}opaquer(t){const A=this._rgb;return A.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Cf(this._rgb,2,t),this}darken(t){return Cf(this._rgb,2,-t),this}saturate(t){return Cf(this._rgb,1,t),this}desaturate(t){return Cf(this._rgb,1,-t),this}rotate(t){return Mk(this._rgb,t),this}}/*!
|
||
* Chart.js v4.5.1
|
||
* https://www.chartjs.org
|
||
* (c) 2025 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/function Vi(){}const Wk=(()=>{let e=0;return()=>e++})();function Ne(e){return e==null}function yA(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function He(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function SA(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function ar(e,t){return SA(e)?e:t}function Ce(e,t){return typeof e>"u"?t:e}const zk=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,nC=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function hA(e,t,A){if(e&&typeof e.call=="function")return e.apply(A,t)}function Je(e,t,A,n){let r,i,s;if(yA(e))for(i=e.length,r=0;r<i;r++)t.call(A,e[r],r);else if(He(e))for(s=Object.keys(e),i=s.length,r=0;r<i;r++)t.call(A,e[s[r]],s[r])}function Eh(e,t){let A,n,r,i;if(!e||!t||e.length!==t.length)return!1;for(A=0,n=e.length;A<n;++A)if(r=e[A],i=t[A],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function Ih(e){if(yA(e))return e.map(Ih);if(He(e)){const t=Object.create(null),A=Object.keys(e),n=A.length;let r=0;for(;r<n;++r)t[A[r]]=Ih(e[A[r]]);return t}return e}function rC(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function $k(e,t,A,n){if(!rC(e))return;const r=t[e],i=A[e];He(r)&&He(i)?Kc(r,i,n):t[e]=Ih(i)}function Kc(e,t,A){const n=yA(t)?t:[t],r=n.length;if(!He(e))return e;A=A||{};const i=A.merger||$k;let s;for(let o=0;o<r;++o){if(s=n[o],!He(s))continue;const a=Object.keys(s);for(let l=0,c=a.length;l<c;++l)i(a[l],e,s,A)}return e}function Cc(e,t){return Kc(e,t,{merger:qk})}function qk(e,t,A){if(!rC(e))return;const n=t[e],r=A[e];He(n)&&He(r)?Cc(n,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ih(r))}const Bw={"":e=>e,x:e=>e.x,y:e=>e.y};function Xk(e){const t=e.split("."),A=[];let n="";for(const r of t)n+=r,n.endsWith("\\")?n=n.slice(0,-1)+".":(A.push(n),n="");return A}function Yk(e){const t=Xk(e);return A=>{for(const n of t){if(n==="")break;A=A&&A[n]}return A}}function qs(e,t){return(Bw[t]||(Bw[t]=Yk(t)))(e)}function c1(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Vc=e=>typeof e<"u",Xs=e=>typeof e=="function",ww=(e,t)=>{if(e.size!==t.size)return!1;for(const A of e)if(!t.has(A))return!1;return!0};function Jk(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ve=Math.PI,BA=2*Ve,Zk=BA+Ve,Sh=Number.POSITIVE_INFINITY,tN=Ve/180,RA=Ve/2,yo=Ve/4,vw=Ve*2/3,Os=Math.log10,pi=Math.sign;function xc(e,t,A){return Math.abs(e-t)<A}function bw(e){const t=Math.round(e);e=xc(e,t,e/1e3)?t:e;const A=Math.pow(10,Math.floor(Os(e))),n=e/A;return(n<=1?1:n<=2?2:n<=5?5:10)*A}function eN(e){const t=[],A=Math.sqrt(e);let n;for(n=1;n<A;n++)e%n===0&&(t.push(n),t.push(e/n));return A===(A|0)&&t.push(A),t.sort((r,i)=>r-i).pop(),t}function AN(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Al(e){return!AN(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function nN(e,t){const A=Math.round(e);return A-t<=e&&A+t>=e}function iC(e,t,A){let n,r,i;for(n=0,r=e.length;n<r;n++)i=e[n][A],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function Mr(e){return e*(Ve/180)}function u1(e){return e*(180/Ve)}function yw(e){if(!SA(e))return;let t=1,A=0;for(;Math.round(e*t)/t!==e;)t*=10,A++;return A}function sC(e,t){const A=t.x-e.x,n=t.y-e.y,r=Math.sqrt(A*A+n*n);let i=Math.atan2(n,A);return i<-.5*Ve&&(i+=BA),{angle:i,distance:r}}function u0(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function rN(e,t){return(e-t+Zk)%BA-Ve}function _n(e){return(e%BA+BA)%BA}function jc(e,t,A,n){const r=_n(e),i=_n(t),s=_n(A),o=_n(i-r),a=_n(s-r),l=_n(r-i),c=_n(r-s);return r===i||r===s||n&&i===s||o>a&&l<c}function nn(e,t,A){return Math.max(t,Math.min(A,e))}function iN(e){return nn(e,-32768,32767)}function Ji(e,t,A,n=1e-6){return e>=Math.min(t,A)-n&&e<=Math.max(t,A)+n}function f1(e,t,A){A=A||(s=>e[s]<t);let n=e.length-1,r=0,i;for(;n-r>1;)i=r+n>>1,A(i)?r=i:n=i;return{lo:r,hi:n}}const Zi=(e,t,A,n)=>f1(e,A,n?r=>{const i=e[r][t];return i<A||i===A&&e[r+1][t]===A}:r=>e[r][t]<A),sN=(e,t,A)=>f1(e,A,n=>e[n][t]>=A);function oN(e,t,A){let n=0,r=e.length;for(;n<r&&e[n]<t;)n++;for(;r>n&&e[r-1]>A;)r--;return n>0||r<e.length?e.slice(n,r):e}const oC=["push","pop","shift","splice","unshift"];function aN(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),oC.forEach(A=>{const n="_onData"+c1(A),r=e[A];Object.defineProperty(e,A,{configurable:!0,enumerable:!1,value(...i){const s=r.apply(this,i);return e._chartjs.listeners.forEach(o=>{typeof o[n]=="function"&&o[n](...i)}),s}})})}function Cw(e,t){const A=e._chartjs;if(!A)return;const n=A.listeners,r=n.indexOf(t);r!==-1&&n.splice(r,1),!(n.length>0)&&(oC.forEach(i=>{delete e[i]}),delete e._chartjs)}function aC(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const lC=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function cC(e,t){let A=[],n=!1;return function(...r){A=r,n||(n=!0,lC.call(window,()=>{n=!1,e.apply(t,A)}))}}function lN(e,t){let A;return function(...n){return t?(clearTimeout(A),A=setTimeout(e,t,n)):e.apply(this,n),t}}const h1=e=>e==="start"?"left":e==="end"?"right":"center",Cn=(e,t,A)=>e==="start"?t:e==="end"?A:(t+A)/2,cN=(e,t,A,n)=>e===(n?"left":"right")?A:e==="center"?(t+A)/2:t;function uC(e,t,A){const n=t.length;let r=0,i=n;if(e._sorted){const{iScale:s,vScale:o,_parsed:a}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=s.axis,{min:u,max:d,minDefined:f,maxDefined:m}=s.getUserBounds();if(f){if(r=Math.min(Zi(a,c,u).lo,A?n:Zi(t,c,s.getPixelForValue(u)).lo),l){const B=a.slice(0,r+1).reverse().findIndex(v=>!Ne(v[o.axis]));r-=Math.max(0,B)}r=nn(r,0,n-1)}if(m){let B=Math.max(Zi(a,s.axis,d,!0).hi+1,A?0:Zi(t,c,s.getPixelForValue(d),!0).hi+1);if(l){const v=a.slice(B-1).findIndex(b=>!Ne(b[o.axis]));B+=Math.max(0,v)}i=nn(B,r,n)-r}else i=n-r}return{start:r,count:i}}function fC(e){const{xScale:t,yScale:A,_scaleRanges:n}=e,r={xmin:t.min,xmax:t.max,ymin:A.min,ymax:A.max};if(!n)return e._scaleRanges=r,!0;const i=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==A.min||n.ymax!==A.max;return Object.assign(n,r),i}const xf=e=>e===0||e===1,xw=(e,t,A)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*BA/A)),Fw=(e,t,A)=>Math.pow(2,-10*e)*Math.sin((e-t)*BA/A)+1,Fc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*RA)+1,easeOutSine:e=>Math.sin(e*RA),easeInOutSine:e=>-.5*(Math.cos(Ve*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>xf(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>xf(e)?e:xw(e,.075,.3),easeOutElastic:e=>xf(e)?e:Fw(e,.075,.3),easeInOutElastic(e){return xf(e)?e:e<.5?.5*xw(e*2,.1125,.45):.5+.5*Fw(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Fc.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Fc.easeInBounce(e*2)*.5:Fc.easeOutBounce(e*2-1)*.5+.5};function d1(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function _w(e){return d1(e)?e:new Rc(e)}function tp(e){return d1(e)?e:new Rc(e).saturate(.5).darken(.1).hexString()}const uN=["x","y","borderWidth","radius","tension"],fN=["color","borderColor","backgroundColor"];function hN(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:fN},numbers:{type:"number",properties:uN}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function dN(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Uw=new Map;function gN(e,t){t=t||{};const A=e+JSON.stringify(t);let n=Uw.get(A);return n||(n=new Intl.NumberFormat(e,t),Uw.set(A,n)),n}function Au(e,t,A){return gN(t,A).format(e)}const hC={values(e){return yA(e)?e:""+e},numeric(e,t,A){if(e===0)return"0";const n=this.chart.options.locale;let r,i=e;if(A.length>1){const l=Math.max(Math.abs(A[0].value),Math.abs(A[A.length-1].value));(l<1e-4||l>1e15)&&(r="scientific"),i=pN(e,A)}const s=Os(Math.abs(i)),o=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),a={notation:r,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(a,this.options.ticks.format),Au(e,n,a)},logarithmic(e,t,A){if(e===0)return"0";const n=A[t].significand||e/Math.pow(10,Math.floor(Os(e)));return[1,2,3,5,10,15].includes(n)||t>.8*A.length?hC.numeric.call(this,e,t,A):""}};function pN(e,t){let A=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(A)>=1&&e!==Math.floor(e)&&(A=e-Math.floor(e)),A}var ld={formatters:hC};function mN(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,A)=>A.lineWidth,tickColor:(t,A)=>A.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ld.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const zo=Object.create(null),f0=Object.create(null);function _c(e,t){if(!t)return e;const A=t.split(".");for(let n=0,r=A.length;n<r;++n){const i=A[n];e=e[i]||(e[i]=Object.create(null))}return e}function ep(e,t,A){return typeof t=="string"?Kc(_c(e,t),A):Kc(_c(e,""),t)}class BN{constructor(t,A){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,r)=>tp(r.backgroundColor),this.hoverBorderColor=(n,r)=>tp(r.borderColor),this.hoverColor=(n,r)=>tp(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(A)}set(t,A){return ep(this,t,A)}get(t){return _c(this,t)}describe(t,A){return ep(f0,t,A)}override(t,A){return ep(zo,t,A)}route(t,A,n,r){const i=_c(this,t),s=_c(this,n),o="_"+A;Object.defineProperties(i,{[o]:{value:i[A],writable:!0},[A]:{enumerable:!0,get(){const a=this[o],l=s[r];return He(a)?Object.assign({},l,a):Ce(a,l)},set(a){this[o]=a}}})}apply(t){t.forEach(A=>A(this))}}var CA=new BN({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[hN,dN,mN]);function wN(e){return!e||Ne(e.size)||Ne(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Lh(e,t,A,n,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,A.push(r)),i>n&&(n=i),n}function vN(e,t,A,n){n=n||{};let r=n.data=n.data||{},i=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(r=n.data={},i=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let s=0;const o=A.length;let a,l,c,u,d;for(a=0;a<o;a++)if(u=A[a],u!=null&&!yA(u))s=Lh(e,r,i,s,u);else if(yA(u))for(l=0,c=u.length;l<c;l++)d=u[l],d!=null&&!yA(d)&&(s=Lh(e,r,i,s,d));e.restore();const f=i.length/2;if(f>A.length){for(a=0;a<f;a++)delete r[i[a]];i.splice(0,f)}return s}function Co(e,t,A){const n=e.currentDevicePixelRatio,r=A!==0?Math.max(A/2,.5):0;return Math.round((t-r)*n)/n+r}function Qw(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function h0(e,t,A,n){dC(e,t,A,n,null)}function dC(e,t,A,n,r){let i,s,o,a,l,c,u,d;const f=t.pointStyle,m=t.rotation,B=t.radius;let v=(m||0)*tN;if(f&&typeof f=="object"&&(i=f.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(A,n),e.rotate(v),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(B)||B<=0)){switch(e.beginPath(),f){default:r?e.ellipse(A,n,r/2,B,0,0,BA):e.arc(A,n,B,0,BA),e.closePath();break;case"triangle":c=r?r/2:B,e.moveTo(A+Math.sin(v)*c,n-Math.cos(v)*B),v+=vw,e.lineTo(A+Math.sin(v)*c,n-Math.cos(v)*B),v+=vw,e.lineTo(A+Math.sin(v)*c,n-Math.cos(v)*B),e.closePath();break;case"rectRounded":l=B*.516,a=B-l,s=Math.cos(v+yo)*a,u=Math.cos(v+yo)*(r?r/2-l:a),o=Math.sin(v+yo)*a,d=Math.sin(v+yo)*(r?r/2-l:a),e.arc(A-u,n-o,l,v-Ve,v-RA),e.arc(A+d,n-s,l,v-RA,v),e.arc(A+u,n+o,l,v,v+RA),e.arc(A-d,n+s,l,v+RA,v+Ve),e.closePath();break;case"rect":if(!m){a=Math.SQRT1_2*B,c=r?r/2:a,e.rect(A-c,n-a,2*c,2*a);break}v+=yo;case"rectRot":u=Math.cos(v)*(r?r/2:B),s=Math.cos(v)*B,o=Math.sin(v)*B,d=Math.sin(v)*(r?r/2:B),e.moveTo(A-u,n-o),e.lineTo(A+d,n-s),e.lineTo(A+u,n+o),e.lineTo(A-d,n+s),e.closePath();break;case"crossRot":v+=yo;case"cross":u=Math.cos(v)*(r?r/2:B),s=Math.cos(v)*B,o=Math.sin(v)*B,d=Math.sin(v)*(r?r/2:B),e.moveTo(A-u,n-o),e.lineTo(A+u,n+o),e.moveTo(A+d,n-s),e.lineTo(A-d,n+s);break;case"star":u=Math.cos(v)*(r?r/2:B),s=Math.cos(v)*B,o=Math.sin(v)*B,d=Math.sin(v)*(r?r/2:B),e.moveTo(A-u,n-o),e.lineTo(A+u,n+o),e.moveTo(A+d,n-s),e.lineTo(A-d,n+s),v+=yo,u=Math.cos(v)*(r?r/2:B),s=Math.cos(v)*B,o=Math.sin(v)*B,d=Math.sin(v)*(r?r/2:B),e.moveTo(A-u,n-o),e.lineTo(A+u,n+o),e.moveTo(A+d,n-s),e.lineTo(A-d,n+s);break;case"line":s=r?r/2:Math.cos(v)*B,o=Math.sin(v)*B,e.moveTo(A-s,n-o),e.lineTo(A+s,n+o);break;case"dash":e.moveTo(A,n),e.lineTo(A+Math.cos(v)*(r?r/2:B),n+Math.sin(v)*B);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function ts(e,t,A){return A=A||.5,!t||e&&e.x>t.left-A&&e.x<t.right+A&&e.y>t.top-A&&e.y<t.bottom+A}function cd(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function ud(e){e.restore()}function bN(e,t,A,n,r){if(!t)return e.lineTo(A.x,A.y);if(r==="middle"){const i=(t.x+A.x)/2;e.lineTo(i,t.y),e.lineTo(i,A.y)}else r==="after"!=!!n?e.lineTo(t.x,A.y):e.lineTo(A.x,t.y);e.lineTo(A.x,A.y)}function yN(e,t,A,n){if(!t)return e.lineTo(A.x,A.y);e.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?A.cp2x:A.cp1x,n?A.cp2y:A.cp1y,A.x,A.y)}function CN(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Ne(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function xN(e,t,A,n,r){if(r.strikethrough||r.underline){const i=e.measureText(n),s=t-i.actualBoundingBoxLeft,o=t+i.actualBoundingBoxRight,a=A-i.actualBoundingBoxAscent,l=A+i.actualBoundingBoxDescent,c=r.strikethrough?(a+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(s,c),e.lineTo(o,c),e.stroke()}}function FN(e,t){const A=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=A}function $o(e,t,A,n,r,i={}){const s=yA(t)?t:[t],o=i.strokeWidth>0&&i.strokeColor!=="";let a,l;for(e.save(),e.font=r.string,CN(e,i),a=0;a<s.length;++a)l=s[a],i.backdrop&&FN(e,i.backdrop),o&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),Ne(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(l,A,n,i.maxWidth)),e.fillText(l,A,n,i.maxWidth),xN(e,A,n,l,i),n+=Number(r.lineHeight);e.restore()}function Gc(e,t){const{x:A,y:n,w:r,h:i,radius:s}=t;e.arc(A+s.topLeft,n+s.topLeft,s.topLeft,1.5*Ve,Ve,!0),e.lineTo(A,n+i-s.bottomLeft),e.arc(A+s.bottomLeft,n+i-s.bottomLeft,s.bottomLeft,Ve,RA,!0),e.lineTo(A+r-s.bottomRight,n+i),e.arc(A+r-s.bottomRight,n+i-s.bottomRight,s.bottomRight,RA,0,!0),e.lineTo(A+r,n+s.topRight),e.arc(A+r-s.topRight,n+s.topRight,s.topRight,0,-RA,!0),e.lineTo(A+s.topLeft,n)}const _N=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,UN=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function QN(e,t){const A=(""+e).match(_N);if(!A||A[1]==="normal")return t*1.2;switch(e=+A[2],A[3]){case"px":return e;case"%":e/=100;break}return t*e}const EN=e=>+e||0;function g1(e,t){const A={},n=He(t),r=n?Object.keys(t):t,i=He(e)?n?s=>Ce(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of r)A[s]=EN(i(s));return A}function gC(e){return g1(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ko(e){return g1(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Sn(e){const t=gC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ZA(e,t){e=e||{},t=t||CA.font;let A=Ce(e.size,t.size);typeof A=="string"&&(A=parseInt(A,10));let n=Ce(e.style,t.style);n&&!(""+n).match(UN)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const r={family:Ce(e.family,t.family),lineHeight:QN(Ce(e.lineHeight,t.lineHeight),A),size:A,style:n,weight:Ce(e.weight,t.weight),string:""};return r.string=wN(r),r}function Ac(e,t,A,n){let r,i,s;for(r=0,i=e.length;r<i;++r)if(s=e[r],s!==void 0&&s!==void 0)return s}function IN(e,t,A){const{min:n,max:r}=e,i=nC(t,(r-n)/2),s=(o,a)=>A&&o===0?0:o+a;return{min:s(n,-Math.abs(i)),max:s(r,i)}}function Js(e,t){return Object.assign(Object.create(e),t)}function p1(e,t=[""],A,n,r=()=>e[0]){const i=A||e;typeof n>"u"&&(n=wC("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:n,_getTarget:r,override:o=>p1([o,...e],t,i,n)};return new Proxy(s,{deleteProperty(o,a){return delete o[a],delete o._keys,delete e[0][a],!0},get(o,a){return mC(o,a,()=>TN(a,t,e,o))},getOwnPropertyDescriptor(o,a){return Reflect.getOwnPropertyDescriptor(o._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(o,a){return Iw(o).includes(a)},ownKeys(o){return Iw(o)},set(o,a,l){const c=o._storage||(o._storage=r());return o[a]=c[a]=l,delete o._keys,!0}})}function nl(e,t,A,n){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:A,_stack:new Set,_descriptors:pC(e,n),setContext:i=>nl(e,i,A,n),override:i=>nl(e.override(i),t,A,n)};return new Proxy(r,{deleteProperty(i,s){return delete i[s],delete e[s],!0},get(i,s,o){return mC(i,s,()=>LN(i,s,o))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(i,s,o){return e[s]=o,delete i[s],!0}})}function pC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:A=t.scriptable,_indexable:n=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:A,indexable:n,isScriptable:Xs(A)?A:()=>A,isIndexable:Xs(n)?n:()=>n}}const SN=(e,t)=>e?e+c1(t):t,m1=(e,t)=>He(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function mC(e,t,A){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const n=A();return e[t]=n,n}function LN(e,t,A){const{_proxy:n,_context:r,_subProxy:i,_descriptors:s}=e;let o=n[t];return Xs(o)&&s.isScriptable(t)&&(o=kN(t,o,e,A)),yA(o)&&o.length&&(o=NN(t,o,e,s.isIndexable)),m1(t,o)&&(o=nl(o,r,i&&i[t],s)),o}function kN(e,t,A,n){const{_proxy:r,_context:i,_subProxy:s,_stack:o}=A;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e);let a=t(i,s||n);return o.delete(e),m1(e,a)&&(a=B1(r._scopes,r,e,a)),a}function NN(e,t,A,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=A;if(typeof i.index<"u"&&n(e))return t[i.index%t.length];if(He(t[0])){const a=t,l=r._scopes.filter(c=>c!==a);t=[];for(const c of a){const u=B1(l,r,e,c);t.push(nl(u,i,s&&s[e],o))}}return t}function BC(e,t,A){return Xs(e)?e(t,A):e}const DN=(e,t)=>e===!0?t:typeof e=="string"?qs(t,e):void 0;function HN(e,t,A,n,r){for(const i of t){const s=DN(A,i);if(s){e.add(s);const o=BC(s._fallback,A,r);if(typeof o<"u"&&o!==A&&o!==n)return o}else if(s===!1&&typeof n<"u"&&A!==n)return null}return!1}function B1(e,t,A,n){const r=t._rootScopes,i=BC(t._fallback,A,n),s=[...e,...r],o=new Set;o.add(n);let a=Ew(o,s,A,i||A,n);return a===null||typeof i<"u"&&i!==A&&(a=Ew(o,s,i,a,n),a===null)?!1:p1(Array.from(o),[""],r,i,()=>MN(t,A,n))}function Ew(e,t,A,n,r){for(;A;)A=HN(e,t,A,n,r);return A}function MN(e,t,A){const n=e._getTarget();t in n||(n[t]={});const r=n[t];return yA(r)&&He(A)?A:r||{}}function TN(e,t,A,n){let r;for(const i of t)if(r=wC(SN(i,e),A),typeof r<"u")return m1(e,r)?B1(A,n,e,r):r}function wC(e,t){for(const A of t){if(!A)continue;const n=A[e];if(typeof n<"u")return n}}function Iw(e){let t=e._keys;return t||(t=e._keys=ON(e._scopes)),t}function ON(e){const t=new Set;for(const A of e)for(const n of Object.keys(A).filter(r=>!r.startsWith("_")))t.add(n);return Array.from(t)}function vC(e,t,A,n){const{iScale:r}=e,{key:i="r"}=this._parsing,s=new Array(n);let o,a,l,c;for(o=0,a=n;o<a;++o)l=o+A,c=t[l],s[o]={r:r.parse(qs(c,i),l)};return s}const PN=Number.EPSILON||1e-14,rl=(e,t)=>t<e.length&&!e[t].skip&&e[t],bC=e=>e==="x"?"y":"x";function RN(e,t,A,n){const r=e.skip?t:e,i=t,s=A.skip?t:A,o=u0(i,r),a=u0(s,i);let l=o/(o+a),c=a/(o+a);l=isNaN(l)?0:l,c=isNaN(c)?0:c;const u=n*l,d=n*c;return{previous:{x:i.x-u*(s.x-r.x),y:i.y-u*(s.y-r.y)},next:{x:i.x+d*(s.x-r.x),y:i.y+d*(s.y-r.y)}}}function KN(e,t,A){const n=e.length;let r,i,s,o,a,l=rl(e,0);for(let c=0;c<n-1;++c)if(a=l,l=rl(e,c+1),!(!a||!l)){if(xc(t[c],0,PN)){A[c]=A[c+1]=0;continue}r=A[c]/t[c],i=A[c+1]/t[c],o=Math.pow(r,2)+Math.pow(i,2),!(o<=9)&&(s=3/Math.sqrt(o),A[c]=r*s*t[c],A[c+1]=i*s*t[c])}}function VN(e,t,A="x"){const n=bC(A),r=e.length;let i,s,o,a=rl(e,0);for(let l=0;l<r;++l){if(s=o,o=a,a=rl(e,l+1),!o)continue;const c=o[A],u=o[n];s&&(i=(c-s[A])/3,o[`cp1${A}`]=c-i,o[`cp1${n}`]=u-i*t[l]),a&&(i=(a[A]-c)/3,o[`cp2${A}`]=c+i,o[`cp2${n}`]=u+i*t[l])}}function jN(e,t="x"){const A=bC(t),n=e.length,r=Array(n).fill(0),i=Array(n);let s,o,a,l=rl(e,0);for(s=0;s<n;++s)if(o=a,a=l,l=rl(e,s+1),!!a){if(l){const c=l[t]-a[t];r[s]=c!==0?(l[A]-a[A])/c:0}i[s]=o?l?pi(r[s-1])!==pi(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}KN(e,r,i),VN(e,i,t)}function Ff(e,t,A){return Math.max(Math.min(e,A),t)}function GN(e,t){let A,n,r,i,s,o=ts(e[0],t);for(A=0,n=e.length;A<n;++A)s=i,i=o,o=A<n-1&&ts(e[A+1],t),i&&(r=e[A],s&&(r.cp1x=Ff(r.cp1x,t.left,t.right),r.cp1y=Ff(r.cp1y,t.top,t.bottom)),o&&(r.cp2x=Ff(r.cp2x,t.left,t.right),r.cp2y=Ff(r.cp2y,t.top,t.bottom)))}function WN(e,t,A,n,r){let i,s,o,a;if(t.spanGaps&&(e=e.filter(l=>!l.skip)),t.cubicInterpolationMode==="monotone")jN(e,r);else{let l=n?e[e.length-1]:e[0];for(i=0,s=e.length;i<s;++i)o=e[i],a=RN(l,o,e[Math.min(i+1,s-(n?0:1))%s],t.tension),o.cp1x=a.previous.x,o.cp1y=a.previous.y,o.cp2x=a.next.x,o.cp2y=a.next.y,l=o}t.capBezierPoints&&GN(e,A)}function w1(){return typeof window<"u"&&typeof document<"u"}function v1(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function kh(e,t,A){let n;return typeof e=="string"?(n=parseInt(e,10),e.indexOf("%")!==-1&&(n=n/100*t.parentNode[A])):n=e,n}const fd=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function zN(e,t){return fd(e).getPropertyValue(t)}const $N=["top","right","bottom","left"];function Vo(e,t,A){const n={};A=A?"-"+A:"";for(let r=0;r<4;r++){const i=$N[r];n[i]=parseFloat(e[t+"-"+i+A])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const qN=(e,t,A)=>(e>0||t>0)&&(!A||!A.shadowRoot);function XN(e,t){const A=e.touches,n=A&&A.length?A[0]:e,{offsetX:r,offsetY:i}=n;let s=!1,o,a;if(qN(r,i,e.target))o=r,a=i;else{const l=t.getBoundingClientRect();o=n.clientX-l.left,a=n.clientY-l.top,s=!0}return{x:o,y:a,box:s}}function Eo(e,t){if("native"in e)return e;const{canvas:A,currentDevicePixelRatio:n}=t,r=fd(A),i=r.boxSizing==="border-box",s=Vo(r,"padding"),o=Vo(r,"border","width"),{x:a,y:l,box:c}=XN(e,A),u=s.left+(c&&o.left),d=s.top+(c&&o.top);let{width:f,height:m}=t;return i&&(f-=s.width+o.width,m-=s.height+o.height),{x:Math.round((a-u)/f*A.width/n),y:Math.round((l-d)/m*A.height/n)}}function YN(e,t,A){let n,r;if(t===void 0||A===void 0){const i=e&&v1(e);if(!i)t=e.clientWidth,A=e.clientHeight;else{const s=i.getBoundingClientRect(),o=fd(i),a=Vo(o,"border","width"),l=Vo(o,"padding");t=s.width-l.width-a.width,A=s.height-l.height-a.height,n=kh(o.maxWidth,i,"clientWidth"),r=kh(o.maxHeight,i,"clientHeight")}}return{width:t,height:A,maxWidth:n||Sh,maxHeight:r||Sh}}const Ps=e=>Math.round(e*10)/10;function JN(e,t,A,n){const r=fd(e),i=Vo(r,"margin"),s=kh(r.maxWidth,e,"clientWidth")||Sh,o=kh(r.maxHeight,e,"clientHeight")||Sh,a=YN(e,t,A);let{width:l,height:c}=a;if(r.boxSizing==="content-box"){const d=Vo(r,"border","width"),f=Vo(r,"padding");l-=f.width+d.width,c-=f.height+d.height}return l=Math.max(0,l-i.width),c=Math.max(0,n?l/n:c-i.height),l=Ps(Math.min(l,s,a.maxWidth)),c=Ps(Math.min(c,o,a.maxHeight)),l&&!c&&(c=Ps(l/2)),(t!==void 0||A!==void 0)&&n&&a.height&&c>a.height&&(c=a.height,l=Ps(Math.floor(c*n))),{width:l,height:c}}function Sw(e,t,A){const n=t||1,r=Ps(e.height*n),i=Ps(e.width*n);e.height=Ps(e.height),e.width=Ps(e.width);const s=e.canvas;return s.style&&(A||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||s.height!==r||s.width!==i?(e.currentDevicePixelRatio=n,s.height=r,s.width=i,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const ZN=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};w1()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Lw(e,t){const A=zN(e,t),n=A&&A.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Io(e,t,A,n){return{x:e.x+A*(t.x-e.x),y:e.y+A*(t.y-e.y)}}function tD(e,t,A,n){return{x:e.x+A*(t.x-e.x),y:n==="middle"?A<.5?e.y:t.y:n==="after"?A<1?e.y:t.y:A>0?t.y:e.y}}function eD(e,t,A,n){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},s=Io(e,r,A),o=Io(r,i,A),a=Io(i,t,A),l=Io(s,o,A),c=Io(o,a,A);return Io(l,c,A)}const AD=function(e,t){return{x(A){return e+e+t-A},setWidth(A){t=A},textAlign(A){return A==="center"?A:A==="right"?"left":"right"},xPlus(A,n){return A-n},leftForLtr(A,n){return A-n}}},nD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function qa(e,t,A){return e?AD(t,A):nD()}function yC(e,t){let A,n;(t==="ltr"||t==="rtl")&&(A=e.canvas.style,n=[A.getPropertyValue("direction"),A.getPropertyPriority("direction")],A.setProperty("direction",t,"important"),e.prevTextDirection=n)}function CC(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function xC(e){return e==="angle"?{between:jc,compare:rN,normalize:_n}:{between:Ji,compare:(t,A)=>t-A,normalize:t=>t}}function kw({start:e,end:t,count:A,loop:n,style:r}){return{start:e%A,end:t%A,loop:n&&(t-e+1)%A===0,style:r}}function rD(e,t,A){const{property:n,start:r,end:i}=A,{between:s,normalize:o}=xC(n),a=t.length;let{start:l,end:c,loop:u}=e,d,f;if(u){for(l+=a,c+=a,d=0,f=a;d<f&&s(o(t[l%a][n]),r,i);++d)l--,c--;l%=a,c%=a}return c<l&&(c+=a),{start:l,end:c,loop:u,style:e.style}}function FC(e,t,A){if(!A)return[e];const{property:n,start:r,end:i}=A,s=t.length,{compare:o,between:a,normalize:l}=xC(n),{start:c,end:u,loop:d,style:f}=rD(e,t,A),m=[];let B=!1,v=null,b,C,Q;const _=()=>a(r,Q,b)&&o(r,Q)!==0,H=()=>o(i,b)===0||a(i,Q,b),W=()=>B||_(),R=()=>!B||H();for(let O=c,k=c;O<=u;++O)C=t[O%s],!C.skip&&(b=l(C[n]),b!==Q&&(B=a(b,r,i),v===null&&W()&&(v=o(b,r)===0?O:k),v!==null&&R()&&(m.push(kw({start:v,end:O,loop:d,count:s,style:f})),v=null),k=O,Q=b));return v!==null&&m.push(kw({start:v,end:u,loop:d,count:s,style:f})),m}function _C(e,t){const A=[],n=e.segments;for(let r=0;r<n.length;r++){const i=FC(n[r],e.points,t);i.length&&A.push(...i)}return A}function iD(e,t,A,n){let r=0,i=t-1;if(A&&!n)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,A&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}function sD(e,t,A,n){const r=e.length,i=[];let s=t,o=e[t],a;for(a=t+1;a<=A;++a){const l=e[a%r];l.skip||l.stop?o.skip||(n=!1,i.push({start:t%r,end:(a-1)%r,loop:n}),t=s=l.stop?a:null):(s=a,o.skip&&(t=a)),o=l}return s!==null&&i.push({start:t%r,end:s%r,loop:n}),i}function oD(e,t){const A=e.points,n=e.options.spanGaps,r=A.length;if(!r)return[];const i=!!e._loop,{start:s,end:o}=iD(A,r,i,n);if(n===!0)return Nw(e,[{start:s,end:o,loop:i}],A,t);const a=o<s?o+r:o,l=!!e._fullLoop&&s===0&&o===r-1;return Nw(e,sD(A,s,a,l),A,t)}function Nw(e,t,A,n){return!n||!n.setContext||!A?t:aD(e,t,A,n)}function aD(e,t,A,n){const r=e._chart.getContext(),i=Dw(e.options),{_datasetIndex:s,options:{spanGaps:o}}=e,a=A.length,l=[];let c=i,u=t[0].start,d=u;function f(m,B,v,b){const C=o?-1:1;if(m!==B){for(m+=a;A[m%a].skip;)m-=C;for(;A[B%a].skip;)B+=C;m%a!==B%a&&(l.push({start:m%a,end:B%a,loop:v,style:b}),c=b,u=B%a)}}for(const m of t){u=o?u:m.start;let B=A[u%a],v;for(d=u+1;d<=m.end;d++){const b=A[d%a];v=Dw(n.setContext(Js(r,{type:"segment",p0:B,p1:b,p0DataIndex:(d-1)%a,p1DataIndex:d%a,datasetIndex:s}))),lD(v,c)&&f(u,d-1,m.loop,c),B=b,c=v}u<d-1&&f(u,d-1,m.loop,c)}return l}function Dw(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function lD(e,t){if(!t)return!1;const A=[],n=function(r,i){return d1(i)?(A.includes(i)||A.push(i),A.indexOf(i)):i};return JSON.stringify(e,n)!==JSON.stringify(t,n)}function _f(e,t,A){return e.options.clip?e[A]:t[A]}function cD(e,t){const{xScale:A,yScale:n}=e;return A&&n?{left:_f(A,t,"left"),right:_f(A,t,"right"),top:_f(n,t,"top"),bottom:_f(n,t,"bottom")}:t}function UC(e,t){const A=t._clip;if(A.disabled)return!1;const n=cD(t,e.chartArea);return{left:A.left===!1?0:n.left-(A.left===!0?0:A.left),right:A.right===!1?e.width:n.right+(A.right===!0?0:A.right),top:A.top===!1?0:n.top-(A.top===!0?0:A.top),bottom:A.bottom===!1?e.height:n.bottom+(A.bottom===!0?0:A.bottom)}}/*!
|
||
* Chart.js v4.5.1
|
||
* https://www.chartjs.org
|
||
* (c) 2025 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/class uD{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,A,n,r){const i=A.listeners[r],s=A.duration;i.forEach(o=>o({chart:t,initial:A.initial,numSteps:s,currentStep:Math.min(n-A.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=lC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let A=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let s=i.length-1,o=!1,a;for(;s>=0;--s)a=i[s],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),o=!0):(i[s]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,t,"progress")),i.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),A+=i.length}),this._lastDate=t,A===0&&(this._running=!1)}_getAnims(t){const A=this._charts;let n=A.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},A.set(t,n)),n}listen(t,A,n){this._getAnims(t).listeners[A].push(n)}add(t,A){!A||!A.length||this._getAnims(t).items.push(...A)}has(t){return this._getAnims(t).items.length>0}start(t){const A=this._charts.get(t);A&&(A.running=!0,A.start=Date.now(),A.duration=A.items.reduce((n,r)=>Math.max(n,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const A=this._charts.get(t);return!(!A||!A.running||!A.items.length)}stop(t){const A=this._charts.get(t);if(!A||!A.items.length)return;const n=A.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();A.items=[],this._notify(t,A,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ji=new uD;const Hw="transparent",fD={boolean(e,t,A){return A>.5?t:e},color(e,t,A){const n=_w(e||Hw),r=n.valid&&_w(t||Hw);return r&&r.valid?r.mix(n,A).hexString():t},number(e,t,A){return e+(t-e)*A}};class hD{constructor(t,A,n,r){const i=A[n];r=Ac([t.to,r,i,t.from]);const s=Ac([t.from,i,r]);this._active=!0,this._fn=t.fn||fD[t.type||typeof s],this._easing=Fc[t.easing]||Fc.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=A,this._prop=n,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,A,n){if(this._active){this._notify(!1);const r=this._target[this._prop],i=n-this._start,s=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Ac([t.to,A,r,t.from]),this._from=Ac([t.from,r,A])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const A=t-this._start,n=this._duration,r=this._prop,i=this._from,s=this._loop,o=this._to;let a;if(this._active=i!==o&&(s||A<n),!this._active){this._target[r]=o,this._notify(!0);return}if(A<0){this._target[r]=i;return}a=A/n%2,a=s&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[r]=this._fn(i,o,a)}wait(){const t=this._promises||(this._promises=[]);return new Promise((A,n)=>{t.push({res:A,rej:n})})}_notify(t){const A=t?"res":"rej",n=this._promises||[];for(let r=0;r<n.length;r++)n[r][A]()}}class QC{constructor(t,A){this._chart=t,this._properties=new Map,this.configure(A)}configure(t){if(!He(t))return;const A=Object.keys(CA.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const i=t[r];if(!He(i))return;const s={};for(const o of A)s[o]=i[o];(yA(i.properties)&&i.properties||[r]).forEach(o=>{(o===r||!n.has(o))&&n.set(o,s)})})}_animateOptions(t,A){const n=A.options,r=gD(t,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&dD(t.options.$animations,n).then(()=>{t.options=n},()=>{}),i}_createAnimations(t,A){const n=this._properties,r=[],i=t.$animations||(t.$animations={}),s=Object.keys(A),o=Date.now();let a;for(a=s.length-1;a>=0;--a){const l=s[a];if(l.charAt(0)==="$")continue;if(l==="options"){r.push(...this._animateOptions(t,A));continue}const c=A[l];let u=i[l];const d=n.get(l);if(u)if(d&&u.active()){u.update(d,c,o);continue}else u.cancel();if(!d||!d.duration){t[l]=c;continue}i[l]=u=new hD(d,t,l,c),r.push(u)}return r}update(t,A){if(this._properties.size===0){Object.assign(t,A);return}const n=this._createAnimations(t,A);if(n.length)return ji.add(this._chart,n),!0}}function dD(e,t){const A=[],n=Object.keys(t);for(let r=0;r<n.length;r++){const i=e[n[r]];i&&i.active()&&A.push(i.wait())}return Promise.all(A)}function gD(e,t){if(!t)return;let A=e.options;if(!A){e.options=t;return}return A.$shared&&(e.options=A=Object.assign({},A,{$shared:!1,$animations:{}})),A}function Mw(e,t){const A=e&&e.options||{},n=A.reverse,r=A.min===void 0?t:0,i=A.max===void 0?t:0;return{start:n?i:r,end:n?r:i}}function pD(e,t,A){if(A===!1)return!1;const n=Mw(e,A),r=Mw(t,A);return{top:r.end,right:n.end,bottom:r.start,left:n.start}}function mD(e){let t,A,n,r;return He(e)?(t=e.top,A=e.right,n=e.bottom,r=e.left):t=A=n=r=e,{top:t,right:A,bottom:n,left:r,disabled:e===!1}}function EC(e,t){const A=[],n=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=n.length;r<i;++r)A.push(n[r].index);return A}function Tw(e,t,A,n={}){const r=e.keys,i=n.mode==="single";let s,o,a,l;if(t===null)return;let c=!1;for(s=0,o=r.length;s<o;++s){if(a=+r[s],a===A){if(c=!0,n.all)continue;break}l=e.values[a],SA(l)&&(i||t===0||pi(t)===pi(l))&&(t+=l)}return!c&&!n.all?0:t}function BD(e,t){const{iScale:A,vScale:n}=t,r=A.axis==="x"?"x":"y",i=n.axis==="x"?"x":"y",s=Object.keys(e),o=new Array(s.length);let a,l,c;for(a=0,l=s.length;a<l;++a)c=s[a],o[a]={[r]:c,[i]:e[c]};return o}function Ap(e,t){const A=e&&e.options.stacked;return A||A===void 0&&t.stack!==void 0}function wD(e,t,A){return`${e.id}.${t.id}.${A.stack||A.type}`}function vD(e){const{min:t,max:A,minDefined:n,maxDefined:r}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:r?A:Number.POSITIVE_INFINITY}}function bD(e,t,A){const n=e[t]||(e[t]={});return n[A]||(n[A]={})}function Ow(e,t,A,n){for(const r of t.getMatchingVisibleMetas(n).reverse()){const i=e[r.index];if(A&&i>0||!A&&i<0)return r.index}return null}function Pw(e,t){const{chart:A,_cachedMeta:n}=e,r=A._stacks||(A._stacks={}),{iScale:i,vScale:s,index:o}=n,a=i.axis,l=s.axis,c=wD(i,s,n),u=t.length;let d;for(let f=0;f<u;++f){const m=t[f],{[a]:B,[l]:v}=m,b=m._stacks||(m._stacks={});d=b[l]=bD(r,c,B),d[o]=v,d._top=Ow(d,s,!0,n.type),d._bottom=Ow(d,s,!1,n.type);const C=d._visualValues||(d._visualValues={});C[o]=v}}function np(e,t){const A=e.scales;return Object.keys(A).filter(n=>A[n].axis===t).shift()}function yD(e,t){return Js(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function CD(e,t,A){return Js(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:A,index:t,mode:"default",type:"data"})}function Kl(e,t){const A=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const r of t){const i=r._stacks;if(!i||i[n]===void 0||i[n][A]===void 0)return;delete i[n][A],i[n]._visualValues!==void 0&&i[n]._visualValues[A]!==void 0&&delete i[n]._visualValues[A]}}}const rp=e=>e==="reset"||e==="none",Rw=(e,t)=>t?e:Object.assign({},e),xD=(e,t,A)=>e&&!t.hidden&&t._stacked&&{keys:EC(A,!0),values:null};class Or{constructor(t,A){this.chart=t,this._ctx=t.ctx,this.index=A,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ap(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Kl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,A=this._cachedMeta,n=this.getDataset(),r=(u,d,f,m)=>u==="x"?d:u==="r"?m:f,i=A.xAxisID=Ce(n.xAxisID,np(t,"x")),s=A.yAxisID=Ce(n.yAxisID,np(t,"y")),o=A.rAxisID=Ce(n.rAxisID,np(t,"r")),a=A.indexAxis,l=A.iAxisID=r(a,i,s,o),c=A.vAxisID=r(a,s,i,o);A.xScale=this.getScaleForId(i),A.yScale=this.getScaleForId(s),A.rScale=this.getScaleForId(o),A.iScale=this.getScaleForId(l),A.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const A=this._cachedMeta;return t===A.iScale?A.vScale:A.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Cw(this._data,this),t._stacked&&Kl(t)}_dataCheck(){const t=this.getDataset(),A=t.data||(t.data=[]),n=this._data;if(He(A)){const r=this._cachedMeta;this._data=BD(A,r)}else if(n!==A){if(n){Cw(n,this);const r=this._cachedMeta;Kl(r),r._parsed=[]}A&&Object.isExtensible(A)&&aN(A,this),this._syncList=[],this._data=A}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const A=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const i=A._stacked;A._stacked=Ap(A.vScale,A),A.stack!==n.stack&&(r=!0,Kl(A),A.stack=n.stack),this._resyncElements(t),(r||i!==A._stacked)&&(Pw(this,A._parsed),A._stacked=Ap(A.vScale,A))}configure(){const t=this.chart.config,A=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),A,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,A){const{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:s}=n,o=i.axis;let a=t===0&&A===r.length?!0:n._sorted,l=t>0&&n._parsed[t-1],c,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{yA(r[t])?d=this.parseArrayData(n,r,t,A):He(r[t])?d=this.parseObjectData(n,r,t,A):d=this.parsePrimitiveData(n,r,t,A);const f=()=>u[o]===null||l&&u[o]<l[o];for(c=0;c<A;++c)n._parsed[c+t]=u=d[c],a&&(f()&&(a=!1),l=u);n._sorted=a}s&&Pw(this,d)}parsePrimitiveData(t,A,n,r){const{iScale:i,vScale:s}=t,o=i.axis,a=s.axis,l=i.getLabels(),c=i===s,u=new Array(r);let d,f,m;for(d=0,f=r;d<f;++d)m=d+n,u[d]={[o]:c||i.parse(l[m],m),[a]:s.parse(A[m],m)};return u}parseArrayData(t,A,n,r){const{xScale:i,yScale:s}=t,o=new Array(r);let a,l,c,u;for(a=0,l=r;a<l;++a)c=a+n,u=A[c],o[a]={x:i.parse(u[0],c),y:s.parse(u[1],c)};return o}parseObjectData(t,A,n,r){const{xScale:i,yScale:s}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l=new Array(r);let c,u,d,f;for(c=0,u=r;c<u;++c)d=c+n,f=A[d],l[c]={x:i.parse(qs(f,o),d),y:s.parse(qs(f,a),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,A,n){const r=this.chart,i=this._cachedMeta,s=A[t.axis],o={keys:EC(r,!0),values:A._stacks[t.axis]._visualValues};return Tw(o,s,i.index,{mode:n})}updateRangeFromParsed(t,A,n,r){const i=n[A.axis];let s=i===null?NaN:i;const o=r&&n._stacks[A.axis];r&&o&&(r.values=o,s=Tw(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,A){const n=this._cachedMeta,r=n._parsed,i=n._sorted&&t===n.iScale,s=r.length,o=this._getOtherScale(t),a=xD(A,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=vD(o);let d,f;function m(){f=r[d];const B=f[o.axis];return!SA(f[t.axis])||c>B||u<B}for(d=0;d<s&&!(!m()&&(this.updateRangeFromParsed(l,t,f,a),i));++d);if(i){for(d=s-1;d>=0;--d)if(!m()){this.updateRangeFromParsed(l,t,f,a);break}}return l}getAllParsedValues(t){const A=this._cachedMeta._parsed,n=[];let r,i,s;for(r=0,i=A.length;r<i;++r)s=A[r][t.axis],SA(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const A=this._cachedMeta,n=A.iScale,r=A.vScale,i=this.getParsed(t);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(t){const A=this._cachedMeta;this.update(t||"default"),A._clip=mD(Ce(this.options.clip,pD(A.xScale,A.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,A=this.chart,n=this._cachedMeta,r=n.data||[],i=A.chartArea,s=[],o=this._drawStart||0,a=this._drawCount||r.length-o,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,i,o,a),c=o;c<o+a;++c){const u=r[c];u.hidden||(u.active&&l?s.push(u):u.draw(t,i))}for(c=0;c<s.length;++c)s[c].draw(t,i)}getStyle(t,A){const n=A?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,A,n){const r=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];i=s.$context||(s.$context=CD(this.getContext(),t,s)),i.parsed=this.getParsed(t),i.raw=r.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=yD(this.chart.getContext(),this.index)),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!A,i.mode=n,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,A){return this._resolveElementOptions(this.dataElementType.id,A,t)}_resolveElementOptions(t,A="default",n){const r=A==="active",i=this._cachedDataOpts,s=t+"-"+A,o=i[s],a=this.enableOptionSharing&&Vc(n);if(o)return Rw(o,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=r?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),f=Object.keys(CA.elements[t]),m=()=>this.getContext(n,r,A),B=l.resolveNamedOptions(d,f,m,u);return B.$shared&&(B.$shared=a,i[s]=Object.freeze(Rw(B,a))),B}_resolveAnimations(t,A,n){const r=this.chart,i=this._cachedDataOpts,s=`animation-${A}`,o=i[s];if(o)return o;let a;if(r.options.animation!==!1){const c=this.chart.config,u=c.datasetAnimationScopeKeys(this._type,A),d=c.getOptionScopes(this.getDataset(),u);a=c.createResolver(d,this.getContext(t,n,A))}const l=new QC(r,a&&a.animations);return a&&a._cacheable&&(i[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,A){return!A||rp(t)||this.chart._animationsDisabled}_getSharedOptions(t,A){const n=this.resolveDataElementOptions(t,A),r=this._sharedOptions,i=this.getSharedOptions(n),s=this.includeOptions(A,i)||i!==r;return this.updateSharedOptions(i,A,n),{sharedOptions:i,includeOptions:s}}updateElement(t,A,n,r){rp(r)?Object.assign(t,n):this._resolveAnimations(A,r).update(t,n)}updateSharedOptions(t,A,n){t&&!rp(A)&&this._resolveAnimations(void 0,A).update(t,n)}_setStyle(t,A,n,r){t.active=r;const i=this.getStyle(A,r);this._resolveAnimations(A,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(t,A,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,A,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const A=this._data,n=this._cachedMeta.data;for(const[o,a,l]of this._syncList)this[o](a,l);this._syncList=[];const r=n.length,i=A.length,s=Math.min(i,r);s&&this.parse(0,s),i>r?this._insertElements(r,i-r,t):i<r&&this._removeElements(i,r-i)}_insertElements(t,A,n=!0){const r=this._cachedMeta,i=r.data,s=t+A;let o;const a=l=>{for(l.length+=A,o=l.length-1;o>=s;o--)l[o]=l[o-A]};for(a(i),o=t;o<s;++o)i[o]=new this.dataElementType;this._parsing&&a(r._parsed),this.parse(t,A),n&&this.updateElements(i,t,A,"reset")}updateElements(t,A,n,r){}_removeElements(t,A){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(t,A);n._stacked&&Kl(n,r)}n.data.splice(t,A)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[A,n,r]=t;this[A](n,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,A){A&&this._sync(["_removeElements",t,A]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Nt(Or,"defaults",{}),Nt(Or,"datasetElementType",null),Nt(Or,"dataElementType",null);function FD(e,t){if(!e._cache.$bar){const A=e.getMatchingVisibleMetas(t);let n=[];for(let r=0,i=A.length;r<i;r++)n=n.concat(A[r].controller.getAllParsedValues(e));e._cache.$bar=aC(n.sort((r,i)=>r-i))}return e._cache.$bar}function _D(e){const t=e.iScale,A=FD(t,e.type);let n=t._length,r,i,s,o;const a=()=>{s===32767||s===-32768||(Vc(o)&&(n=Math.min(n,Math.abs(s-o)||n)),o=s)};for(r=0,i=A.length;r<i;++r)s=t.getPixelForValue(A[r]),a();for(o=void 0,r=0,i=t.ticks.length;r<i;++r)s=t.getPixelForTick(r),a();return n}function UD(e,t,A,n){const r=A.barThickness;let i,s;return Ne(r)?(i=t.min*A.categoryPercentage,s=A.barPercentage):(i=r*n,s=1),{chunk:i/n,ratio:s,start:t.pixels[e]-i/2}}function QD(e,t,A,n){const r=t.pixels,i=r[e];let s=e>0?r[e-1]:null,o=e<r.length-1?r[e+1]:null;const a=A.categoryPercentage;s===null&&(s=i-(o===null?t.end-t.start:o-i)),o===null&&(o=i+i-s);const l=i-(i-Math.min(s,o))/2*a;return{chunk:Math.abs(o-s)/2*a/n,ratio:A.barPercentage,start:l}}function ED(e,t,A,n){const r=A.parse(e[0],n),i=A.parse(e[1],n),s=Math.min(r,i),o=Math.max(r,i);let a=s,l=o;Math.abs(s)>Math.abs(o)&&(a=o,l=s),t[A.axis]=l,t._custom={barStart:a,barEnd:l,start:r,end:i,min:s,max:o}}function IC(e,t,A,n){return yA(e)?ED(e,t,A,n):t[A.axis]=A.parse(e,n),t}function Kw(e,t,A,n){const r=e.iScale,i=e.vScale,s=r.getLabels(),o=r===i,a=[];let l,c,u,d;for(l=A,c=A+n;l<c;++l)d=t[l],u={},u[r.axis]=o||r.parse(s[l],l),a.push(IC(d,u,i,l));return a}function ip(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function ID(e,t,A){return e!==0?pi(e):(t.isHorizontal()?1:-1)*(t.min>=A?1:-1)}function SD(e){let t,A,n,r,i;return e.horizontal?(t=e.base>e.x,A="left",n="right"):(t=e.base<e.y,A="bottom",n="top"),t?(r="end",i="start"):(r="start",i="end"),{start:A,end:n,reverse:t,top:r,bottom:i}}function LD(e,t,A,n){let r=t.borderSkipped;const i={};if(!r){e.borderSkipped=i;return}if(r===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:o,reverse:a,top:l,bottom:c}=SD(e);r==="middle"&&A&&(e.enableBorderRadius=!0,(A._top||0)===n?r=l:(A._bottom||0)===n?r=c:(i[Vw(c,s,o,a)]=!0,r=l)),i[Vw(r,s,o,a)]=!0,e.borderSkipped=i}function Vw(e,t,A,n){return n?(e=kD(e,t,A),e=jw(e,A,t)):e=jw(e,t,A),e}function kD(e,t,A){return e===t?A:e===A?t:e}function jw(e,t,A){return e==="start"?t:e==="end"?A:e}function ND(e,{inflateAmount:t},A){e.inflateAmount=t==="auto"?A===1?.33:0:t}class qf extends Or{parsePrimitiveData(t,A,n,r){return Kw(t,A,n,r)}parseArrayData(t,A,n,r){return Kw(t,A,n,r)}parseObjectData(t,A,n,r){const{iScale:i,vScale:s}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l=i.axis==="x"?o:a,c=s.axis==="x"?o:a,u=[];let d,f,m,B;for(d=n,f=n+r;d<f;++d)B=A[d],m={},m[i.axis]=i.parse(qs(B,l),d),u.push(IC(qs(B,c),m,s,d));return u}updateRangeFromParsed(t,A,n,r){super.updateRangeFromParsed(t,A,n,r);const i=n._custom;i&&A===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const A=this._cachedMeta,{iScale:n,vScale:r}=A,i=this.getParsed(t),s=i._custom,o=ip(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const A=this._cachedMeta;this.updateElements(A.data,0,A.data.length,t)}updateElements(t,A,n,r){const i=r==="reset",{index:s,_cachedMeta:{vScale:o}}=this,a=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(A,r);for(let f=A;f<A+n;f++){const m=this.getParsed(f),B=i||Ne(m[o.axis])?{base:a,head:a}:this._calculateBarValuePixels(f),v=this._calculateBarIndexPixels(f,c),b=(m._stacks||{})[o.axis],C={horizontal:l,base:B.base,enableBorderRadius:!b||ip(m._custom)||s===b._top||s===b._bottom,x:l?B.head:v.center,y:l?v.center:B.head,height:l?v.size:Math.abs(B.size),width:l?Math.abs(B.size):v.size};d&&(C.options=u||this.resolveDataElementOptions(f,t[f].active?"active":r));const Q=C.options||t[f].options;LD(C,Q,b,s),ND(C,Q,c.ratio),this.updateElement(t[f],f,C,r)}}_getStacks(t,A){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),i=n.options.stacked,s=[],o=this._cachedMeta.controller.getParsed(A),a=o&&o[n.axis],l=c=>{const u=c._parsed.find(f=>f[n.axis]===a),d=u&&u[c.vScale.axis];if(Ne(d)||isNaN(d))return!0};for(const c of r)if(!(A!==void 0&&l(c))&&((i===!1||s.indexOf(c.stack)===-1||i===void 0&&c.stack===void 0)&&s.push(c.stack),c.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,A=this.chart.options.indexAxis;return Object.keys(t).filter(n=>t[n].axis===A).shift()}_getAxis(){const t={},A=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[Ce(this.chart.options.indexAxis==="x"?n.xAxisID:n.yAxisID,A)]=!0;return Object.keys(t)}_getStackIndex(t,A,n){const r=this._getStacks(t,n),i=A!==void 0?r.indexOf(A):-1;return i===-1?r.length-1:i}_getRuler(){const t=this.options,A=this._cachedMeta,n=A.iScale,r=[];let i,s;for(i=0,s=A.data.length;i<s;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));const o=t.barThickness;return{min:o||_D(A),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:A,_stacked:n,index:r},options:{base:i,minBarLength:s}}=this,o=i||0,a=this.getParsed(t),l=a._custom,c=ip(l);let u=a[A.axis],d=0,f=n?this.applyStack(A,a,n):u,m,B;f!==u&&(d=f-u,f=u),c&&(u=l.barStart,f=l.barEnd-l.barStart,u!==0&&pi(u)!==pi(l.barEnd)&&(d=0),d+=u);const v=!Ne(i)&&!c?i:d;let b=A.getPixelForValue(v);if(this.chart.getDataVisibility(t)?m=A.getPixelForValue(d+f):m=b,B=m-b,Math.abs(B)<s){B=ID(B,A,o)*s,u===o&&(b-=B/2);const C=A.getPixelForDecimal(0),Q=A.getPixelForDecimal(1),_=Math.min(C,Q),H=Math.max(C,Q);b=Math.max(Math.min(b,H),_),m=b+B,n&&!c&&(a._stacks[A.axis]._visualValues[r]=A.getValueForPixel(m)-A.getValueForPixel(b))}if(b===A.getPixelForValue(o)){const C=pi(B)*A.getLineWidthForValue(o)/2;b+=C,B-=C}return{size:B,base:b,head:m,center:m+B/2}}_calculateBarIndexPixels(t,A){const n=A.scale,r=this.options,i=r.skipNull,s=Ce(r.maxBarThickness,1/0);let o,a;const l=this._getAxisCount();if(A.grouped){const c=i?this._getStackCount(t):A.stackCount,u=r.barThickness==="flex"?QD(t,A,r,c*l):UD(t,A,r,c*l),d=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,f=this._getAxis().indexOf(Ce(d,this.getFirstScaleIdForIndexAxis())),m=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0)+f;o=u.start+u.chunk*m+u.chunk/2,a=Math.min(s,u.chunk*u.ratio)}else o=n.getPixelForValue(this.getParsed(t)[n.axis],t),a=Math.min(s,A.min*A.ratio);return{base:o-a/2,head:o+a/2,center:o,size:a}}draw(){const t=this._cachedMeta,A=t.vScale,n=t.data,r=n.length;let i=0;for(;i<r;++i)this.getParsed(i)[A.axis]!==null&&!n[i].hidden&&n[i].draw(this._ctx)}}Nt(qf,"id","bar"),Nt(qf,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Nt(qf,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Xf extends Or{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,A,n,r){const i=super.parsePrimitiveData(t,A,n,r);for(let s=0;s<i.length;s++)i[s]._custom=this.resolveDataElementOptions(s+n).radius;return i}parseArrayData(t,A,n,r){const i=super.parseArrayData(t,A,n,r);for(let s=0;s<i.length;s++){const o=A[n+s];i[s]._custom=Ce(o[2],this.resolveDataElementOptions(s+n).radius)}return i}parseObjectData(t,A,n,r){const i=super.parseObjectData(t,A,n,r);for(let s=0;s<i.length;s++){const o=A[n+s];i[s]._custom=Ce(o&&o.r&&+o.r,this.resolveDataElementOptions(s+n).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let A=0;for(let n=t.length-1;n>=0;--n)A=Math.max(A,t[n].size(this.resolveDataElementOptions(n))/2);return A>0&&A}getLabelAndValue(t){const A=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=A,s=this.getParsed(t),o=r.getLabelForValue(s.x),a=i.getLabelForValue(s.y),l=s._custom;return{label:n[t]||"",value:"("+o+", "+a+(l?", "+l:"")+")"}}update(t){const A=this._cachedMeta.data;this.updateElements(A,0,A.length,t)}updateElements(t,A,n,r){const i=r==="reset",{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(A,r),c=s.axis,u=o.axis;for(let d=A;d<A+n;d++){const f=t[d],m=!i&&this.getParsed(d),B={},v=B[c]=i?s.getPixelForDecimal(.5):s.getPixelForValue(m[c]),b=B[u]=i?o.getBasePixel():o.getPixelForValue(m[u]);B.skip=isNaN(v)||isNaN(b),l&&(B.options=a||this.resolveDataElementOptions(d,f.active?"active":r),i&&(B.options.radius=0)),this.updateElement(f,d,B,r)}}resolveDataElementOptions(t,A){const n=this.getParsed(t);let r=super.resolveDataElementOptions(t,A);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const i=r.radius;return A!=="active"&&(r.radius=0),r.radius+=Ce(n&&n._custom,i),r}}Nt(Xf,"id","bubble"),Nt(Xf,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),Nt(Xf,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function DD(e,t,A){let n=1,r=1,i=0,s=0;if(t<BA){const o=e,a=o+t,l=Math.cos(o),c=Math.sin(o),u=Math.cos(a),d=Math.sin(a),f=(Q,_,H)=>jc(Q,o,a,!0)?1:Math.max(_,_*A,H,H*A),m=(Q,_,H)=>jc(Q,o,a,!0)?-1:Math.min(_,_*A,H,H*A),B=f(0,l,u),v=f(RA,c,d),b=m(Ve,l,u),C=m(Ve+RA,c,d);n=(B-b)/2,r=(v-C)/2,i=-(B+b)/2,s=-(v+C)/2}return{ratioX:n,ratioY:r,offsetX:i,offsetY:s}}class Ho extends Or{constructor(t,A){super(t,A),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,A){const n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=a=>+n[a];if(He(n[t])){const{key:a="value"}=this._parsing;i=l=>+qs(n[l],a)}let s,o;for(s=t,o=t+A;s<o;++s)r._parsed[s]=i(s)}}_getRotation(){return Mr(this.options.rotation-90)}_getCircumference(){return Mr(this.options.circumference)}_getRotationExtents(){let t=BA,A=-BA;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),s=r._getCircumference();t=Math.min(t,i),A=Math.max(A,i+s)}return{rotation:t,circumference:A-t}}update(t){const A=this.chart,{chartArea:n}=A,r=this._cachedMeta,i=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,o=Math.max((Math.min(n.width,n.height)-s)/2,0),a=Math.min(zk(this.options.cutout,o),1),l=this._getRingWeight(this.index),{circumference:c,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:f,offsetX:m,offsetY:B}=DD(u,c,a),v=(n.width-s)/d,b=(n.height-s)/f,C=Math.max(Math.min(v,b)/2,0),Q=nC(this.options.radius,C),_=Math.max(Q*a,0),H=(Q-_)/this._getVisibleDatasetWeightTotal();this.offsetX=m*Q,this.offsetY=B*Q,r.total=this.calculateTotal(),this.outerRadius=Q-H*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-H*l,0),this.updateElements(i,0,i.length,t)}_circumference(t,A){const n=this.options,r=this._cachedMeta,i=this._getCircumference();return A&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*i/BA)}updateElements(t,A,n,r){const i=r==="reset",s=this.chart,o=s.chartArea,l=s.options.animation,c=(o.left+o.right)/2,u=(o.top+o.bottom)/2,d=i&&l.animateScale,f=d?0:this.innerRadius,m=d?0:this.outerRadius,{sharedOptions:B,includeOptions:v}=this._getSharedOptions(A,r);let b=this._getRotation(),C;for(C=0;C<A;++C)b+=this._circumference(C,i);for(C=A;C<A+n;++C){const Q=this._circumference(C,i),_=t[C],H={x:c+this.offsetX,y:u+this.offsetY,startAngle:b,endAngle:b+Q,circumference:Q,outerRadius:m,innerRadius:f};v&&(H.options=B||this.resolveDataElementOptions(C,_.active?"active":r)),b+=Q,this.updateElement(_,C,H,r)}}calculateTotal(){const t=this._cachedMeta,A=t.data;let n=0,r;for(r=0;r<A.length;r++){const i=t._parsed[r];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(r)&&!A[r].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(t){const A=this._cachedMeta.total;return A>0&&!isNaN(t)?BA*(Math.abs(t)/A):0}getLabelAndValue(t){const A=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Au(A._parsed[t],n.options.locale);return{label:r[t]||"",value:i}}getMaxBorderWidth(t){let A=0;const n=this.chart;let r,i,s,o,a;if(!t){for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){s=n.getDatasetMeta(r),t=s.data,o=s.controller;break}}if(!t)return 0;for(r=0,i=t.length;r<i;++r)a=o.resolveDataElementOptions(r),a.borderAlign!=="inner"&&(A=Math.max(A,a.borderWidth||0,a.hoverBorderWidth||0));return A}getMaxOffset(t){let A=0;for(let n=0,r=t.length;n<r;++n){const i=this.resolveDataElementOptions(n);A=Math.max(A,i.offset||0,i.hoverOffset||0)}return A}_getRingWeightOffset(t){let A=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(A+=this._getRingWeight(n));return A}_getRingWeight(t){return Math.max(Ce(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Nt(Ho,"id","doughnut"),Nt(Ho,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),Nt(Ho,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Nt(Ho,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const A=t.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:s,borderRadius:o}}=t.legend.options;return A.labels.length&&A.datasets.length?A.labels.map((a,l)=>{const u=t.getDatasetMeta(0).controller.getStyle(l);return{text:a,fillStyle:u.backgroundColor,fontColor:i,hidden:!t.getDataVisibility(l),lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:u.borderWidth,strokeStyle:u.borderColor,textAlign:r,pointStyle:n,borderRadius:s&&(o||u.borderRadius),index:l}}):[]}},onClick(t,A,n){n.chart.toggleDataVisibility(A.index),n.chart.update()}}}});class Yf extends Or{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const A=this._cachedMeta,{dataset:n,data:r=[],_dataset:i}=A,s=this.chart._animationsDisabled;let{start:o,count:a}=uC(A,r,s);this._drawStart=o,this._drawCount=a,fC(A)&&(o=0,a=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:l},t),this.updateElements(r,o,a,t)}updateElements(t,A,n,r){const i=r==="reset",{iScale:s,vScale:o,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(A,r),d=s.axis,f=o.axis,{spanGaps:m,segment:B}=this.options,v=Al(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||r==="none",C=A+n,Q=t.length;let _=A>0&&this.getParsed(A-1);for(let H=0;H<Q;++H){const W=t[H],R=b?W:{};if(H<A||H>=C){R.skip=!0;continue}const O=this.getParsed(H),k=Ne(O[f]),V=R[d]=s.getPixelForValue(O[d],H),F=R[f]=i||k?o.getBasePixel():o.getPixelForValue(a?this.applyStack(o,O,a):O[f],H);R.skip=isNaN(V)||isNaN(F)||k,R.stop=H>0&&Math.abs(O[d]-_[d])>v,B&&(R.parsed=O,R.raw=l.data[H]),u&&(R.options=c||this.resolveDataElementOptions(H,W.active?"active":r)),b||this.updateElement(W,H,R,r),_=O}}getMaxOverflow(){const t=this._cachedMeta,A=t.dataset,n=A.options&&A.options.borderWidth||0,r=t.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Nt(Yf,"id","line"),Nt(Yf,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Nt(Yf,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Uc extends Or{constructor(t,A){super(t,A),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const A=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Au(A._parsed[t].r,n.options.locale);return{label:r[t]||"",value:i}}parseObjectData(t,A,n,r){return vC.bind(this)(t,A,n,r)}update(t){const A=this._cachedMeta.data;this._updateRadius(),this.updateElements(A,0,A.length,t)}getMinMax(){const t=this._cachedMeta,A={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,r)=>{const i=this.getParsed(r).r;!isNaN(i)&&this.chart.getDataVisibility(r)&&(i<A.min&&(A.min=i),i>A.max&&(A.max=i))}),A}_updateRadius(){const t=this.chart,A=t.chartArea,n=t.options,r=Math.min(A.right-A.left,A.bottom-A.top),i=Math.max(r/2,0),s=Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0),o=(i-s)/t.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,A,n,r){const i=r==="reset",s=this.chart,a=s.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*Ve;let f=d,m;const B=360/this.countVisibleElements();for(m=0;m<A;++m)f+=this._computeAngle(m,r,B);for(m=A;m<A+n;m++){const v=t[m];let b=f,C=f+this._computeAngle(m,r,B),Q=s.getDataVisibility(m)?l.getDistanceFromCenterForValue(this.getParsed(m).r):0;f=C,i&&(a.animateScale&&(Q=0),a.animateRotate&&(b=C=d));const _={x:c,y:u,innerRadius:0,outerRadius:Q,startAngle:b,endAngle:C,options:this.resolveDataElementOptions(m,v.active?"active":r)};this.updateElement(v,m,_,r)}}countVisibleElements(){const t=this._cachedMeta;let A=0;return t.data.forEach((n,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&A++}),A}_computeAngle(t,A,n){return this.chart.getDataVisibility(t)?Mr(this.resolveDataElementOptions(t,A).angle||n):0}}Nt(Uc,"id","polarArea"),Nt(Uc,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Nt(Uc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const A=t.data;if(A.labels.length&&A.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return A.labels.map((i,s)=>{const a=t.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,A,n){n.chart.toggleDataVisibility(A.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class d0 extends Ho{}Nt(d0,"id","pie"),Nt(d0,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Jf extends Or{getLabelAndValue(t){const A=this._cachedMeta.vScale,n=this.getParsed(t);return{label:A.getLabels()[t],value:""+A.getLabelForValue(n[A.axis])}}parseObjectData(t,A,n,r){return vC.bind(this)(t,A,n,r)}update(t){const A=this._cachedMeta,n=A.dataset,r=A.data||[],i=A.iScale.getLabels();if(n.points=r,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===r.length,options:s};this.updateElement(n,void 0,o,t)}this.updateElements(r,0,r.length,t)}updateElements(t,A,n,r){const i=this._cachedMeta.rScale,s=r==="reset";for(let o=A;o<A+n;o++){const a=t[o],l=this.resolveDataElementOptions(o,a.active?"active":r),c=i.getPointPositionForValue(o,this.getParsed(o).r),u=s?i.xCenter:c.x,d=s?i.yCenter:c.y,f={x:u,y:d,angle:c.angle,skip:isNaN(u)||isNaN(d),options:l};this.updateElement(a,o,f,r)}}}Nt(Jf,"id","radar"),Nt(Jf,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),Nt(Jf,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Zf extends Or{getLabelAndValue(t){const A=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=A,s=this.getParsed(t),o=r.getLabelForValue(s.x),a=i.getLabelForValue(s.y);return{label:n[t]||"",value:"("+o+", "+a+")"}}update(t){const A=this._cachedMeta,{data:n=[]}=A,r=this.chart._animationsDisabled;let{start:i,count:s}=uC(A,n,r);if(this._drawStart=i,this._drawCount=s,fC(A)&&(i=0,s=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:a}=A;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=n;const l=this.resolveDatasetElementOptions(t);l.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:l},t)}else this.datasetElementType&&(delete A.dataset,this.datasetElementType=!1);this.updateElements(n,i,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,A,n,r){const i=r==="reset",{iScale:s,vScale:o,_stacked:a,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(A,r),u=this.getSharedOptions(c),d=this.includeOptions(r,u),f=s.axis,m=o.axis,{spanGaps:B,segment:v}=this.options,b=Al(B)?B:Number.POSITIVE_INFINITY,C=this.chart._animationsDisabled||i||r==="none";let Q=A>0&&this.getParsed(A-1);for(let _=A;_<A+n;++_){const H=t[_],W=this.getParsed(_),R=C?H:{},O=Ne(W[m]),k=R[f]=s.getPixelForValue(W[f],_),V=R[m]=i||O?o.getBasePixel():o.getPixelForValue(a?this.applyStack(o,W,a):W[m],_);R.skip=isNaN(k)||isNaN(V)||O,R.stop=_>0&&Math.abs(W[f]-Q[f])>b,v&&(R.parsed=W,R.raw=l.data[_]),d&&(R.options=u||this.resolveDataElementOptions(_,H.active?"active":r)),C||this.updateElement(H,_,R,r),Q=W}this.updateSharedOptions(u,r,c)}getMaxOverflow(){const t=this._cachedMeta,A=t.data||[];if(!this.options.showLine){let o=0;for(let a=A.length-1;a>=0;--a)o=Math.max(o,A[a].size(this.resolveDataElementOptions(a))/2);return o>0&&o}const n=t.dataset,r=n.options&&n.options.borderWidth||0;if(!A.length)return r;const i=A[0].size(this.resolveDataElementOptions(0)),s=A[A.length-1].size(this.resolveDataElementOptions(A.length-1));return Math.max(r,i,s)/2}}Nt(Zf,"id","scatter"),Nt(Zf,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Nt(Zf,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var HD=Object.freeze({__proto__:null,BarController:qf,BubbleController:Xf,DoughnutController:Ho,LineController:Yf,PieController:d0,PolarAreaController:Uc,RadarController:Jf,ScatterController:Zf});function xo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class b1{constructor(t){Nt(this,"options");this.options=t||{}}static override(t){Object.assign(b1.prototype,t)}init(){}formats(){return xo()}parse(){return xo()}format(){return xo()}add(){return xo()}diff(){return xo()}startOf(){return xo()}endOf(){return xo()}}var MD={_date:b1};function TD(e,t,A,n){const{controller:r,data:i,_sorted:s}=e,o=r._cachedMeta.iScale,a=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(o&&t===o.axis&&t!=="r"&&s&&i.length){const l=o._reversePixels?sN:Zi;if(n){if(r._sharedOptions){const c=i[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(i,t,A-u),f=l(i,t,A+u);return{lo:d.lo,hi:f.hi}}}}else{const c=l(i,t,A);if(a){const{vScale:u}=r._cachedMeta,{_parsed:d}=e,f=d.slice(0,c.lo+1).reverse().findIndex(B=>!Ne(B[u.axis]));c.lo-=Math.max(0,f);const m=d.slice(c.hi).findIndex(B=>!Ne(B[u.axis]));c.hi+=Math.max(0,m)}return c}}return{lo:0,hi:i.length-1}}function hd(e,t,A,n,r){const i=e.getSortedVisibleDatasetMetas(),s=A[t];for(let o=0,a=i.length;o<a;++o){const{index:l,data:c}=i[o],{lo:u,hi:d}=TD(i[o],t,s,r);for(let f=u;f<=d;++f){const m=c[f];m.skip||n(m,l,f)}}}function OD(e){const t=e.indexOf("x")!==-1,A=e.indexOf("y")!==-1;return function(n,r){const i=t?Math.abs(n.x-r.x):0,s=A?Math.abs(n.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function sp(e,t,A,n,r){const i=[];return!r&&!e.isPointInArea(t)||hd(e,A,t,function(o,a,l){!r&&!ts(o,e.chartArea,0)||o.inRange(t.x,t.y,n)&&i.push({element:o,datasetIndex:a,index:l})},!0),i}function PD(e,t,A,n){let r=[];function i(s,o,a){const{startAngle:l,endAngle:c}=s.getProps(["startAngle","endAngle"],n),{angle:u}=sC(s,{x:t.x,y:t.y});jc(u,l,c)&&r.push({element:s,datasetIndex:o,index:a})}return hd(e,A,t,i),r}function RD(e,t,A,n,r,i){let s=[];const o=OD(A);let a=Number.POSITIVE_INFINITY;function l(c,u,d){const f=c.inRange(t.x,t.y,r);if(n&&!f)return;const m=c.getCenterPoint(r);if(!(!!i||e.isPointInArea(m))&&!f)return;const v=o(t,m);v<a?(s=[{element:c,datasetIndex:u,index:d}],a=v):v===a&&s.push({element:c,datasetIndex:u,index:d})}return hd(e,A,t,l),s}function op(e,t,A,n,r,i){return!i&&!e.isPointInArea(t)?[]:A==="r"&&!n?PD(e,t,A,r):RD(e,t,A,n,r,i)}function Gw(e,t,A,n,r){const i=[],s=A==="x"?"inXRange":"inYRange";let o=!1;return hd(e,A,t,(a,l,c)=>{a[s]&&a[s](t[A],r)&&(i.push({element:a,datasetIndex:l,index:c}),o=o||a.inRange(t.x,t.y,r))}),n&&!o?[]:i}var KD={modes:{index(e,t,A,n){const r=Eo(t,e),i=A.axis||"x",s=A.includeInvisible||!1,o=A.intersect?sp(e,r,i,n,s):op(e,r,i,!1,n,s),a=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(l=>{const c=o[0].index,u=l.data[c];u&&!u.skip&&a.push({element:u,datasetIndex:l.index,index:c})}),a):[]},dataset(e,t,A,n){const r=Eo(t,e),i=A.axis||"xy",s=A.includeInvisible||!1;let o=A.intersect?sp(e,r,i,n,s):op(e,r,i,!1,n,s);if(o.length>0){const a=o[0].datasetIndex,l=e.getDatasetMeta(a).data;o=[];for(let c=0;c<l.length;++c)o.push({element:l[c],datasetIndex:a,index:c})}return o},point(e,t,A,n){const r=Eo(t,e),i=A.axis||"xy",s=A.includeInvisible||!1;return sp(e,r,i,n,s)},nearest(e,t,A,n){const r=Eo(t,e),i=A.axis||"xy",s=A.includeInvisible||!1;return op(e,r,i,A.intersect,n,s)},x(e,t,A,n){const r=Eo(t,e);return Gw(e,r,"x",A.intersect,n)},y(e,t,A,n){const r=Eo(t,e);return Gw(e,r,"y",A.intersect,n)}}};const SC=["left","top","right","bottom"];function Vl(e,t){return e.filter(A=>A.pos===t)}function Ww(e,t){return e.filter(A=>SC.indexOf(A.pos)===-1&&A.box.axis===t)}function jl(e,t){return e.sort((A,n)=>{const r=t?n:A,i=t?A:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function VD(e){const t=[];let A,n,r,i,s,o;for(A=0,n=(e||[]).length;A<n;++A)r=e[A],{position:i,options:{stack:s,stackWeight:o=1}}=r,t.push({index:A,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&i+s,stackWeight:o});return t}function jD(e){const t={};for(const A of e){const{stack:n,pos:r,stackWeight:i}=A;if(!n||!SC.includes(r))continue;const s=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return t}function GD(e,t){const A=jD(e),{vBoxMaxWidth:n,hBoxMaxHeight:r}=t;let i,s,o;for(i=0,s=e.length;i<s;++i){o=e[i];const{fullSize:a}=o.box,l=A[o.stack],c=l&&o.stackWeight/l.weight;o.horizontal?(o.width=c?c*n:a&&t.availableWidth,o.height=r):(o.width=n,o.height=c?c*r:a&&t.availableHeight)}return A}function WD(e){const t=VD(e),A=jl(t.filter(l=>l.box.fullSize),!0),n=jl(Vl(t,"left"),!0),r=jl(Vl(t,"right")),i=jl(Vl(t,"top"),!0),s=jl(Vl(t,"bottom")),o=Ww(t,"x"),a=Ww(t,"y");return{fullSize:A,leftAndTop:n.concat(i),rightAndBottom:r.concat(a).concat(s).concat(o),chartArea:Vl(t,"chartArea"),vertical:n.concat(r).concat(a),horizontal:i.concat(s).concat(o)}}function zw(e,t,A,n){return Math.max(e[A],t[A])+Math.max(e[n],t[n])}function LC(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function zD(e,t,A,n){const{pos:r,box:i}=A,s=e.maxPadding;if(!He(r)){A.size&&(e[r]-=A.size);const u=n[A.stack]||{size:0,count:1};u.size=Math.max(u.size,A.horizontal?i.height:i.width),A.size=u.size/u.count,e[r]+=A.size}i.getPadding&&LC(s,i.getPadding());const o=Math.max(0,t.outerWidth-zw(s,e,"left","right")),a=Math.max(0,t.outerHeight-zw(s,e,"top","bottom")),l=o!==e.w,c=a!==e.h;return e.w=o,e.h=a,A.horizontal?{same:l,other:c}:{same:c,other:l}}function $D(e){const t=e.maxPadding;function A(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=A("top"),e.x+=A("left"),A("right"),A("bottom")}function qD(e,t){const A=t.maxPadding;function n(r){const i={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{i[s]=Math.max(t[s],A[s])}),i}return n(e?["left","right"]:["top","bottom"])}function nc(e,t,A,n){const r=[];let i,s,o,a,l,c;for(i=0,s=e.length,l=0;i<s;++i){o=e[i],a=o.box,a.update(o.width||t.w,o.height||t.h,qD(o.horizontal,t));const{same:u,other:d}=zD(t,A,o,n);l|=u&&r.length,c=c||d,a.fullSize||r.push(o)}return l&&nc(r,t,A,n)||c}function Uf(e,t,A,n,r){e.top=A,e.left=t,e.right=t+n,e.bottom=A+r,e.width=n,e.height=r}function $w(e,t,A,n){const r=A.padding;let{x:i,y:s}=t;for(const o of e){const a=o.box,l=n[o.stack]||{placed:0,weight:1},c=o.stackWeight/l.weight||1;if(o.horizontal){const u=t.w*c,d=l.size||a.height;Vc(l.start)&&(s=l.start),a.fullSize?Uf(a,r.left,s,A.outerWidth-r.right-r.left,d):Uf(a,t.left+l.placed,s,u,d),l.start=s,l.placed+=u,s=a.bottom}else{const u=t.h*c,d=l.size||a.width;Vc(l.start)&&(i=l.start),a.fullSize?Uf(a,i,r.top,d,A.outerHeight-r.bottom-r.top):Uf(a,i,t.top+l.placed,d,u),l.start=i,l.placed+=u,i=a.right}}t.x=i,t.y=s}var En={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(A){t.draw(A)}}]},e.boxes.push(t)},removeBox(e,t){const A=e.boxes?e.boxes.indexOf(t):-1;A!==-1&&e.boxes.splice(A,1)},configure(e,t,A){t.fullSize=A.fullSize,t.position=A.position,t.weight=A.weight},update(e,t,A,n){if(!e)return;const r=Sn(e.options.layout.padding),i=Math.max(t-r.width,0),s=Math.max(A-r.height,0),o=WD(e.boxes),a=o.vertical,l=o.horizontal;Je(e.boxes,B=>{typeof B.beforeLayout=="function"&&B.beforeLayout()});const c=a.reduce((B,v)=>v.box.options&&v.box.options.display===!1?B:B+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:A,padding:r,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/c,hBoxMaxHeight:s/2}),d=Object.assign({},r);LC(d,Sn(n));const f=Object.assign({maxPadding:d,w:i,h:s,x:r.left,y:r.top},r),m=GD(a.concat(l),u);nc(o.fullSize,f,u,m),nc(a,f,u,m),nc(l,f,u,m)&&nc(a,f,u,m),$D(f),$w(o.leftAndTop,f,u,m),f.x+=f.w,f.y+=f.h,$w(o.rightAndBottom,f,u,m),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Je(o.chartArea,B=>{const v=B.box;Object.assign(v,e.chartArea),v.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class kC{acquireContext(t,A){}releaseContext(t){return!1}addEventListener(t,A,n){}removeEventListener(t,A,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,A,n,r){return A=Math.max(0,A||t.width),n=n||t.height,{width:A,height:Math.max(0,r?Math.floor(A/r):n)}}isAttached(t){return!0}updateConfig(t){}}class XD extends kC{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const th="$chartjs",YD={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},qw=e=>e===null||e==="";function JD(e,t){const A=e.style,n=e.getAttribute("height"),r=e.getAttribute("width");if(e[th]={initial:{height:n,width:r,style:{display:A.display,height:A.height,width:A.width}}},A.display=A.display||"block",A.boxSizing=A.boxSizing||"border-box",qw(r)){const i=Lw(e,"width");i!==void 0&&(e.width=i)}if(qw(n))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Lw(e,"height");i!==void 0&&(e.height=i)}return e}const NC=ZN?{passive:!0}:!1;function ZD(e,t,A){e&&e.addEventListener(t,A,NC)}function tH(e,t,A){e&&e.canvas&&e.canvas.removeEventListener(t,A,NC)}function eH(e,t){const A=YD[e.type]||e.type,{x:n,y:r}=Eo(e,t);return{type:A,chart:t,native:e,x:n!==void 0?n:null,y:r!==void 0?r:null}}function Nh(e,t){for(const A of e)if(A===t||A.contains(t))return!0}function AH(e,t,A){const n=e.canvas,r=new MutationObserver(i=>{let s=!1;for(const o of i)s=s||Nh(o.addedNodes,n),s=s&&!Nh(o.removedNodes,n);s&&A()});return r.observe(document,{childList:!0,subtree:!0}),r}function nH(e,t,A){const n=e.canvas,r=new MutationObserver(i=>{let s=!1;for(const o of i)s=s||Nh(o.removedNodes,n),s=s&&!Nh(o.addedNodes,n);s&&A()});return r.observe(document,{childList:!0,subtree:!0}),r}const Wc=new Map;let Xw=0;function DC(){const e=window.devicePixelRatio;e!==Xw&&(Xw=e,Wc.forEach((t,A)=>{A.currentDevicePixelRatio!==e&&t()}))}function rH(e,t){Wc.size||window.addEventListener("resize",DC),Wc.set(e,t)}function iH(e){Wc.delete(e),Wc.size||window.removeEventListener("resize",DC)}function sH(e,t,A){const n=e.canvas,r=n&&v1(n);if(!r)return;const i=cC((o,a)=>{const l=r.clientWidth;A(o,a),l<r.clientWidth&&A()},window),s=new ResizeObserver(o=>{const a=o[0],l=a.contentRect.width,c=a.contentRect.height;l===0&&c===0||i(l,c)});return s.observe(r),rH(e,i),s}function ap(e,t,A){A&&A.disconnect(),t==="resize"&&iH(e)}function oH(e,t,A){const n=e.canvas,r=cC(i=>{e.ctx!==null&&A(eH(i,e))},e);return ZD(n,t,r),r}class aH extends kC{acquireContext(t,A){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(JD(t,A),n):null}releaseContext(t){const A=t.canvas;if(!A[th])return!1;const n=A[th].initial;["height","width"].forEach(i=>{const s=n[i];Ne(s)?A.removeAttribute(i):A.setAttribute(i,s)});const r=n.style||{};return Object.keys(r).forEach(i=>{A.style[i]=r[i]}),A.width=A.width,delete A[th],!0}addEventListener(t,A,n){this.removeEventListener(t,A);const r=t.$proxies||(t.$proxies={}),s={attach:AH,detach:nH,resize:sH}[A]||oH;r[A]=s(t,A,n)}removeEventListener(t,A){const n=t.$proxies||(t.$proxies={}),r=n[A];if(!r)return;({attach:ap,detach:ap,resize:ap}[A]||tH)(t,A,r),n[A]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,A,n,r){return JN(t,A,n,r)}isAttached(t){const A=t&&v1(t);return!!(A&&A.isConnected)}}function lH(e){return!w1()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?XD:aH}var Nf;let as=(Nf=class{constructor(){Nt(this,"x");Nt(this,"y");Nt(this,"active",!1);Nt(this,"options");Nt(this,"$animations")}tooltipPosition(t){const{x:A,y:n}=this.getProps(["x","y"],t);return{x:A,y:n}}hasValue(){return Al(this.x)&&Al(this.y)}getProps(t,A){const n=this.$animations;if(!A||!n)return this;const r={};return t.forEach(i=>{r[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),r}},Nt(Nf,"defaults",{}),Nt(Nf,"defaultRoutes"),Nf);function cH(e,t){const A=e.options.ticks,n=uH(e),r=Math.min(A.maxTicksLimit||n,n),i=A.major.enabled?hH(t):[],s=i.length,o=i[0],a=i[s-1],l=[];if(s>r)return dH(t,l,i,s/r),l;const c=fH(i,t,r);if(s>0){let u,d;const f=s>1?Math.round((a-o)/(s-1)):null;for(Qf(t,l,c,Ne(f)?0:o-f,o),u=0,d=s-1;u<d;u++)Qf(t,l,c,i[u],i[u+1]);return Qf(t,l,c,a,Ne(f)?t.length:a+f),l}return Qf(t,l,c),l}function uH(e){const t=e.options.offset,A=e._tickSize(),n=e._length/A+(t?0:1),r=e._maxLength/A;return Math.floor(Math.min(n,r))}function fH(e,t,A){const n=gH(e),r=t.length/A;if(!n)return Math.max(r,1);const i=eN(n);for(let s=0,o=i.length-1;s<o;s++){const a=i[s];if(a>r)return a}return Math.max(r,1)}function hH(e){const t=[];let A,n;for(A=0,n=e.length;A<n;A++)e[A].major&&t.push(A);return t}function dH(e,t,A,n){let r=0,i=A[0],s;for(n=Math.ceil(n),s=0;s<e.length;s++)s===i&&(t.push(e[s]),r++,i=A[r*n])}function Qf(e,t,A,n,r){const i=Ce(n,0),s=Math.min(Ce(r,e.length),e.length);let o=0,a,l,c;for(A=Math.ceil(A),r&&(a=r-n,A=a/Math.floor(a/A)),c=i;c<0;)o++,c=Math.round(i+o*A);for(l=Math.max(i,0);l<s;l++)l===c&&(t.push(e[l]),o++,c=Math.round(i+o*A))}function gH(e){const t=e.length;let A,n;if(t<2)return!1;for(n=e[0],A=1;A<t;++A)if(e[A]-e[A-1]!==n)return!1;return n}const pH=e=>e==="left"?"right":e==="right"?"left":e,Yw=(e,t,A)=>t==="top"||t==="left"?e[t]+A:e[t]-A,Jw=(e,t)=>Math.min(t||e,e);function Zw(e,t){const A=[],n=e.length/t,r=e.length;let i=0;for(;i<r;i+=n)A.push(e[Math.floor(i)]);return A}function mH(e,t,A){const n=e.ticks.length,r=Math.min(t,n-1),i=e._startPixel,s=e._endPixel,o=1e-6;let a=e.getPixelForTick(r),l;if(!(A&&(n===1?l=Math.max(a-i,s-a):t===0?l=(e.getPixelForTick(1)-a)/2:l=(a-e.getPixelForTick(r-1))/2,a+=r<t?l:-l,a<i-o||a>s+o)))return a}function BH(e,t){Je(e,A=>{const n=A.gc,r=n.length/2;let i;if(r>t){for(i=0;i<r;++i)delete A.data[n[i]];n.splice(0,r)}})}function Gl(e){return e.drawTicks?e.tickLength:0}function tv(e,t){if(!e.display)return 0;const A=ZA(e.font,t),n=Sn(e.padding);return(yA(e.text)?e.text.length:1)*A.lineHeight+n.height}function wH(e,t){return Js(e,{scale:t,type:"scale"})}function vH(e,t,A){return Js(e,{tick:A,index:t,type:"tick"})}function bH(e,t,A){let n=h1(e);return(A&&t!=="right"||!A&&t==="right")&&(n=pH(n)),n}function yH(e,t,A,n){const{top:r,left:i,bottom:s,right:o,chart:a}=e,{chartArea:l,scales:c}=a;let u=0,d,f,m;const B=s-r,v=o-i;if(e.isHorizontal()){if(f=Cn(n,i,o),He(A)){const b=Object.keys(A)[0],C=A[b];m=c[b].getPixelForValue(C)+B-t}else A==="center"?m=(l.bottom+l.top)/2+B-t:m=Yw(e,A,t);d=o-i}else{if(He(A)){const b=Object.keys(A)[0],C=A[b];f=c[b].getPixelForValue(C)-v+t}else A==="center"?f=(l.left+l.right)/2-v+t:f=Yw(e,A,t);m=Cn(n,s,r),u=A==="left"?-RA:RA}return{titleX:f,titleY:m,maxWidth:d,rotation:u}}class Yo extends as{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,A){return t}getUserBounds(){let{_userMin:t,_userMax:A,_suggestedMin:n,_suggestedMax:r}=this;return t=ar(t,Number.POSITIVE_INFINITY),A=ar(A,Number.NEGATIVE_INFINITY),n=ar(n,Number.POSITIVE_INFINITY),r=ar(r,Number.NEGATIVE_INFINITY),{min:ar(t,n),max:ar(A,r),minDefined:SA(t),maxDefined:SA(A)}}getMinMax(t){let{min:A,max:n,minDefined:r,maxDefined:i}=this.getUserBounds(),s;if(r&&i)return{min:A,max:n};const o=this.getMatchingVisibleMetas();for(let a=0,l=o.length;a<l;++a)s=o[a].controller.getMinMax(this,t),r||(A=Math.min(A,s.min)),i||(n=Math.max(n,s.max));return A=i&&A>n?n:A,n=r&&A>n?A:n,{min:ar(A,ar(n,A)),max:ar(n,ar(A,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){hA(this.options.beforeUpdate,[this])}update(t,A,n){const{beginAtZero:r,grace:i,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=A,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=IN(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=o<this.ticks.length;this._convertTicksToLabels(a?Zw(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=cH(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,A,n;this.isHorizontal()?(A=this.left,n=this.right):(A=this.top,n=this.bottom,t=!t),this._startPixel=A,this._endPixel=n,this._reversePixels=t,this._length=n-A,this._alignToPixels=this.options.alignToPixels}afterUpdate(){hA(this.options.afterUpdate,[this])}beforeSetDimensions(){hA(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){hA(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),hA(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){hA(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const A=this.options.ticks;let n,r,i;for(n=0,r=t.length;n<r;n++)i=t[n],i.label=hA(A.callback,[i.value,n,t],this)}afterTickToLabelConversion(){hA(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){hA(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,A=t.ticks,n=Jw(this.ticks.length,t.ticks.maxTicksLimit),r=A.minRotation||0,i=A.maxRotation;let s=r,o,a,l;if(!this._isVisible()||!A.display||r>=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,f=nn(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(t.offset?.5:1)),a=this.maxHeight-Gl(t.grid)-A.padding-tv(t.title,this.chart.options.font),l=Math.sqrt(u*u+d*d),s=u1(Math.min(Math.asin(nn((c.highest.height+6)/o,-1,1)),Math.asin(nn(a/l,-1,1))-Math.asin(nn(d/l,-1,1)))),s=Math.max(r,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){hA(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){hA(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:A,options:{ticks:n,title:r,grid:i}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const a=tv(r,A.options.font);if(o?(t.width=this.maxWidth,t.height=Gl(i)+a):(t.height=this.maxHeight,t.width=Gl(i)+a),n.display&&this.ticks.length){const{first:l,last:c,widest:u,highest:d}=this._getLabelSizes(),f=n.padding*2,m=Mr(this.labelRotation),B=Math.cos(m),v=Math.sin(m);if(o){const b=n.mirror?0:v*u.width+B*d.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=n.mirror?0:B*u.width+v*d.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(l,c,v,B)}}this._handleMargins(),o?(this.width=this._length=A.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=A.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,A,n,r){const{ticks:{align:i,padding:s},position:o}=this.options,a=this.labelRotation!==0,l=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,f=0;a?l?(d=r*t.width,f=n*A.height):(d=n*t.height,f=r*A.width):i==="start"?f=A.width:i==="end"?d=t.width:i!=="inner"&&(d=t.width/2,f=A.width/2),this.paddingLeft=Math.max((d-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-u+s)*this.width/(this.width-u),0)}else{let c=A.height/2,u=t.height/2;i==="start"?(c=0,u=t.height):i==="end"&&(c=A.height,u=0),this.paddingTop=c+s,this.paddingBottom=u+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){hA(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:A}=this.options;return A==="top"||A==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let A,n;for(A=0,n=t.length;A<n;A++)Ne(t[A].label)&&(t.splice(A,1),n--,A--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const A=this.options.ticks.sampleSize;let n=this.ticks;A<n.length&&(n=Zw(n,A)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,A,n){const{ctx:r,_longestTextCache:i}=this,s=[],o=[],a=Math.floor(A/Jw(A,n));let l=0,c=0,u,d,f,m,B,v,b,C,Q,_,H;for(u=0;u<A;u+=a){if(m=t[u].label,B=this._resolveTickFontOptions(u),r.font=v=B.string,b=i[v]=i[v]||{data:{},gc:[]},C=B.lineHeight,Q=_=0,!Ne(m)&&!yA(m))Q=Lh(r,b.data,b.gc,Q,m),_=C;else if(yA(m))for(d=0,f=m.length;d<f;++d)H=m[d],!Ne(H)&&!yA(H)&&(Q=Lh(r,b.data,b.gc,Q,H),_+=C);s.push(Q),o.push(_),l=Math.max(Q,l),c=Math.max(_,c)}BH(i,A);const W=s.indexOf(l),R=o.indexOf(c),O=k=>({width:s[k]||0,height:o[k]||0});return{first:O(0),last:O(A-1),widest:O(W),highest:O(R),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,A){return NaN}getValueForPixel(t){}getPixelForTick(t){const A=this.ticks;return t<0||t>A.length-1?null:this.getPixelForValue(A[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const A=this._startPixel+t*this._length;return iN(this._alignToPixels?Co(this.chart,A,0):A)}getDecimalForPixel(t){const A=(t-this._startPixel)/this._length;return this._reversePixels?1-A:A}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:A}=this;return t<0&&A<0?A:t>0&&A>0?t:0}getContext(t){const A=this.ticks||[];if(t>=0&&t<A.length){const n=A[t];return n.$context||(n.$context=vH(this.getContext(),t,n))}return this.$context||(this.$context=wH(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,A=Mr(this.labelRotation),n=Math.abs(Math.cos(A)),r=Math.abs(Math.sin(A)),i=this._getLabelSizes(),s=t.autoSkipPadding||0,o=i?i.widest.width+s:0,a=i?i.highest.height+s:0;return this.isHorizontal()?a*n>o*r?o/n:a/r:a*r<o*n?a/n:o/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const A=this.axis,n=this.chart,r=this.options,{grid:i,position:s,border:o}=r,a=i.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),d=Gl(i),f=[],m=o.setContext(this.getContext()),B=m.display?m.width:0,v=B/2,b=function(lt){return Co(n,lt,B)};let C,Q,_,H,W,R,O,k,V,F,L,G;if(s==="top")C=b(this.bottom),R=this.bottom-d,k=C-v,F=b(t.top)+v,G=t.bottom;else if(s==="bottom")C=b(this.top),F=t.top,G=b(t.bottom)-v,R=C+v,k=this.top+d;else if(s==="left")C=b(this.right),W=this.right-d,O=C-v,V=b(t.left)+v,L=t.right;else if(s==="right")C=b(this.left),V=t.left,L=b(t.right)-v,W=C+v,O=this.left+d;else if(A==="x"){if(s==="center")C=b((t.top+t.bottom)/2+.5);else if(He(s)){const lt=Object.keys(s)[0],ct=s[lt];C=b(this.chart.scales[lt].getPixelForValue(ct))}F=t.top,G=t.bottom,R=C+v,k=R+d}else if(A==="y"){if(s==="center")C=b((t.left+t.right)/2);else if(He(s)){const lt=Object.keys(s)[0],ct=s[lt];C=b(this.chart.scales[lt].getPixelForValue(ct))}W=C-v,O=W-d,V=t.left,L=t.right}const q=Ce(r.ticks.maxTicksLimit,u),ft=Math.max(1,Math.ceil(u/q));for(Q=0;Q<u;Q+=ft){const lt=this.getContext(Q),ct=i.setContext(lt),at=o.setContext(lt),st=ct.lineWidth,Z=ct.color,j=at.dash||[],U=at.dashOffset,N=ct.tickWidth,tt=ct.tickColor,et=ct.tickBorderDash||[],At=ct.tickBorderDashOffset;_=mH(this,Q,a),_!==void 0&&(H=Co(n,_,st),l?W=O=V=L=H:R=k=F=G=H,f.push({tx1:W,ty1:R,tx2:O,ty2:k,x1:V,y1:F,x2:L,y2:G,width:st,color:Z,borderDash:j,borderDashOffset:U,tickWidth:N,tickColor:tt,tickBorderDash:et,tickBorderDashOffset:At}))}return this._ticksLength=u,this._borderValue=C,f}_computeLabelItems(t){const A=this.axis,n=this.options,{position:r,ticks:i}=n,s=this.isHorizontal(),o=this.ticks,{align:a,crossAlign:l,padding:c,mirror:u}=i,d=Gl(n.grid),f=d+c,m=u?-c:f,B=-Mr(this.labelRotation),v=[];let b,C,Q,_,H,W,R,O,k,V,F,L,G="middle";if(r==="top")W=this.bottom-m,R=this._getXAxisLabelAlignment();else if(r==="bottom")W=this.top+m,R=this._getXAxisLabelAlignment();else if(r==="left"){const ft=this._getYAxisLabelAlignment(d);R=ft.textAlign,H=ft.x}else if(r==="right"){const ft=this._getYAxisLabelAlignment(d);R=ft.textAlign,H=ft.x}else if(A==="x"){if(r==="center")W=(t.top+t.bottom)/2+f;else if(He(r)){const ft=Object.keys(r)[0],lt=r[ft];W=this.chart.scales[ft].getPixelForValue(lt)+f}R=this._getXAxisLabelAlignment()}else if(A==="y"){if(r==="center")H=(t.left+t.right)/2-f;else if(He(r)){const ft=Object.keys(r)[0],lt=r[ft];H=this.chart.scales[ft].getPixelForValue(lt)}R=this._getYAxisLabelAlignment(d).textAlign}A==="y"&&(a==="start"?G="top":a==="end"&&(G="bottom"));const q=this._getLabelSizes();for(b=0,C=o.length;b<C;++b){Q=o[b],_=Q.label;const ft=i.setContext(this.getContext(b));O=this.getPixelForTick(b)+i.labelOffset,k=this._resolveTickFontOptions(b),V=k.lineHeight,F=yA(_)?_.length:1;const lt=F/2,ct=ft.color,at=ft.textStrokeColor,st=ft.textStrokeWidth;let Z=R;s?(H=O,R==="inner"&&(b===C-1?Z=this.options.reverse?"left":"right":b===0?Z=this.options.reverse?"right":"left":Z="center"),r==="top"?l==="near"||B!==0?L=-F*V+V/2:l==="center"?L=-q.highest.height/2-lt*V+V:L=-q.highest.height+V/2:l==="near"||B!==0?L=V/2:l==="center"?L=q.highest.height/2-lt*V:L=q.highest.height-F*V,u&&(L*=-1),B!==0&&!ft.showLabelBackdrop&&(H+=V/2*Math.sin(B))):(W=O,L=(1-F)*V/2);let j;if(ft.showLabelBackdrop){const U=Sn(ft.backdropPadding),N=q.heights[b],tt=q.widths[b];let et=L-U.top,At=0-U.left;switch(G){case"middle":et-=N/2;break;case"bottom":et-=N;break}switch(R){case"center":At-=tt/2;break;case"right":At-=tt;break;case"inner":b===C-1?At-=tt:b>0&&(At-=tt/2);break}j={left:At,top:et,width:tt+U.width,height:N+U.height,color:ft.backdropColor}}v.push({label:_,font:k,textOffset:L,options:{rotation:B,color:ct,strokeColor:at,strokeWidth:st,textAlign:Z,textBaseline:G,translation:[H,W],backdrop:j}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:A}=this.options;if(-Mr(this.labelRotation))return t==="top"?"left":"right";let r="center";return A.align==="start"?r="left":A.align==="end"?r="right":A.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:A,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,s=this._getLabelSizes(),o=t+i,a=s.widest.width;let l,c;return A==="left"?r?(c=this.right+i,n==="near"?l="left":n==="center"?(l="center",c+=a/2):(l="right",c+=a)):(c=this.right-o,n==="near"?l="right":n==="center"?(l="center",c-=a/2):(l="left",c=this.left)):A==="right"?r?(c=this.left+i,n==="near"?l="right":n==="center"?(l="center",c-=a/2):(l="left",c-=a)):(c=this.left+o,n==="near"?l="left":n==="center"?(l="center",c+=a/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,A=this.options.position;if(A==="left"||A==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(A==="top"||A==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:A},left:n,top:r,width:i,height:s}=this;A&&(t.save(),t.fillStyle=A,t.fillRect(n,r,i,s),t.restore())}getLineWidthForValue(t){const A=this.options.grid;if(!this._isVisible()||!A.display)return 0;const r=this.ticks.findIndex(i=>i.value===t);return r>=0?A.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const A=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,s;const o=(a,l,c)=>{!c.width||!c.color||(n.save(),n.lineWidth=c.width,n.strokeStyle=c.color,n.setLineDash(c.borderDash||[]),n.lineDashOffset=c.borderDashOffset,n.beginPath(),n.moveTo(a.x,a.y),n.lineTo(l.x,l.y),n.stroke(),n.restore())};if(A.display)for(i=0,s=r.length;i<s;++i){const a=r[i];A.drawOnChartArea&&o({x:a.x1,y:a.y1},{x:a.x2,y:a.y2},a),A.drawTicks&&o({x:a.tx1,y:a.ty1},{x:a.tx2,y:a.ty2},{color:a.tickColor,width:a.tickWidth,borderDash:a.tickBorderDash,borderDashOffset:a.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:A,options:{border:n,grid:r}}=this,i=n.setContext(this.getContext()),s=n.display?i.width:0;if(!s)return;const o=r.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Co(t,this.left,s)-s/2,c=Co(t,this.right,o)+o/2,u=d=a):(u=Co(t,this.top,s)-s/2,d=Co(t,this.bottom,o)+o/2,l=c=a),A.save(),A.lineWidth=i.width,A.strokeStyle=i.color,A.beginPath(),A.moveTo(l,u),A.lineTo(c,d),A.stroke(),A.restore()}drawLabels(t){if(!this.options.ticks.display)return;const n=this.ctx,r=this._computeLabelArea();r&&cd(n,r);const i=this.getLabelItems(t);for(const s of i){const o=s.options,a=s.font,l=s.label,c=s.textOffset;$o(n,l,0,c,a,o)}r&&ud(n)}drawTitle(){const{ctx:t,options:{position:A,title:n,reverse:r}}=this;if(!n.display)return;const i=ZA(n.font),s=Sn(n.padding),o=n.align;let a=i.lineHeight/2;A==="bottom"||A==="center"||He(A)?(a+=s.bottom,yA(n.text)&&(a+=i.lineHeight*(n.text.length-1))):a+=s.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=yH(this,a,A,o);$o(t,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:d,textAlign:bH(o,A,r),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,A=t.ticks&&t.ticks.z||0,n=Ce(t.grid&&t.grid.z,-1),r=Ce(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Yo.prototype.draw?[{z:A,draw:i=>{this.draw(i)}}]:[{z:n,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:A,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const A=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,s;for(i=0,s=A.length;i<s;++i){const o=A[i];o[n]===this.id&&(!t||o.type===t)&&r.push(o)}return r}_resolveTickFontOptions(t){const A=this.options.ticks.setContext(this.getContext(t));return ZA(A.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ef{constructor(t,A,n){this.type=t,this.scope=A,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const A=Object.getPrototypeOf(t);let n;FH(A)&&(n=this.register(A));const r=this.items,i=t.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in r||(r[i]=t,CH(t,s,n),this.override&&CA.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const A=this.items,n=t.id,r=this.scope;n in A&&delete A[n],r&&n in CA[r]&&(delete CA[r][n],this.override&&delete zo[n])}}function CH(e,t,A){const n=Kc(Object.create(null),[A?CA.get(A):{},CA.get(t),e.defaults]);CA.set(t,n),e.defaultRoutes&&xH(t,e.defaultRoutes),e.descriptors&&CA.describe(t,e.descriptors)}function xH(e,t){Object.keys(t).forEach(A=>{const n=A.split("."),r=n.pop(),i=[e].concat(n).join("."),s=t[A].split("."),o=s.pop(),a=s.join(".");CA.route(i,r,a,o)})}function FH(e){return"id"in e&&"defaults"in e}class _H{constructor(){this.controllers=new Ef(Or,"datasets",!0),this.elements=new Ef(as,"elements"),this.plugins=new Ef(Object,"plugins"),this.scales=new Ef(Yo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,A,n){[...A].forEach(r=>{const i=n||this._getRegistryForType(r);n||i.isForType(r)||i===this.plugins&&r.id?this._exec(t,i,r):Je(r,s=>{const o=n||this._getRegistryForType(s);this._exec(t,o,s)})})}_exec(t,A,n){const r=c1(t);hA(n["before"+r],[],n),A[t](n),hA(n["after"+r],[],n)}_getRegistryForType(t){for(let A=0;A<this._typedRegistries.length;A++){const n=this._typedRegistries[A];if(n.isForType(t))return n}return this.plugins}_get(t,A,n){const r=A.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return r}}var ai=new _H;class UH{constructor(){this._init=void 0}notify(t,A,n,r){if(A==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const i=r?this._descriptors(t).filter(r):this._descriptors(t),s=this._notify(i,t,A,n);return A==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),s}_notify(t,A,n,r){r=r||{};for(const i of t){const s=i.plugin,o=s[n],a=[A,r,i.options];if(hA(o,a,s)===!1&&r.cancelable)return!1}return!0}invalidate(){Ne(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const A=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),A}_createDescriptors(t,A){const n=t&&t.config,r=Ce(n.options&&n.options.plugins,{}),i=QH(n);return r===!1&&!A?[]:IH(t,i,r,A)}_notifyStateChanges(t){const A=this._oldCache||[],n=this._cache,r=(i,s)=>i.filter(o=>!s.some(a=>o.plugin.id===a.plugin.id));this._notify(r(A,n),t,"stop"),this._notify(r(n,A),t,"start")}}function QH(e){const t={},A=[],n=Object.keys(ai.plugins.items);for(let i=0;i<n.length;i++)A.push(ai.getPlugin(n[i]));const r=e.plugins||[];for(let i=0;i<r.length;i++){const s=r[i];A.indexOf(s)===-1&&(A.push(s),t[s.id]=!0)}return{plugins:A,localIds:t}}function EH(e,t){return!t&&e===!1?null:e===!0?{}:e}function IH(e,{plugins:t,localIds:A},n,r){const i=[],s=e.getContext();for(const o of t){const a=o.id,l=EH(n[a],r);l!==null&&i.push({plugin:o,options:SH(e.config,{plugin:o,local:A[a]},l,s)})}return i}function SH(e,{plugin:t,local:A},n,r){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(n,i);return A&&t.defaults&&s.push(t.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function g0(e,t){const A=CA.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||A.indexAxis||"x"}function LH(e,t){let A=e;return e==="_index_"?A=t:e==="_value_"&&(A=t==="x"?"y":"x"),A}function kH(e,t){return e===t?"_index_":"_value_"}function ev(e){if(e==="x"||e==="y"||e==="r")return e}function NH(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function p0(e,...t){if(ev(e))return e;for(const A of t){const n=A.axis||NH(A.position)||e.length>1&&ev(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Av(e,t,A){if(A[t+"AxisID"]===e)return{axis:t}}function DH(e,t){if(t.data&&t.data.datasets){const A=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(A.length)return Av(e,"x",A[0])||Av(e,"y",A[0])}return{}}function HH(e,t){const A=zo[e.type]||{scales:{}},n=t.scales||{},r=g0(e.type,t),i=Object.create(null);return Object.keys(n).forEach(s=>{const o=n[s];if(!He(o))return console.error(`Invalid scale configuration for scale: ${s}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const a=p0(s,o,DH(s,e),CA.scales[o.type]),l=kH(a,r),c=A.scales||{};i[s]=Cc(Object.create(null),[{axis:a},o,c[a],c[l]])}),e.data.datasets.forEach(s=>{const o=s.type||e.type,a=s.indexAxis||g0(o,t),c=(zo[o]||{}).scales||{};Object.keys(c).forEach(u=>{const d=LH(u,a),f=s[d+"AxisID"]||d;i[f]=i[f]||Object.create(null),Cc(i[f],[{axis:d},n[f],c[u]])})}),Object.keys(i).forEach(s=>{const o=i[s];Cc(o,[CA.scales[o.type],CA.scale])}),i}function HC(e){const t=e.options||(e.options={});t.plugins=Ce(t.plugins,{}),t.scales=HH(e,t)}function MC(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function MH(e){return e=e||{},e.data=MC(e.data),HC(e),e}const nv=new Map,TC=new Set;function If(e,t){let A=nv.get(e);return A||(A=t(),nv.set(e,A),TC.add(A)),A}const Wl=(e,t,A)=>{const n=qs(t,A);n!==void 0&&e.add(n)};class TH{constructor(t){this._config=MH(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=MC(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),HC(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return If(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,A){return If(`${t}.transition.${A}`,()=>[[`datasets.${t}.transitions.${A}`,`transitions.${A}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,A){return If(`${t}-${A}`,()=>[[`datasets.${t}.elements.${A}`,`datasets.${t}`,`elements.${A}`,""]])}pluginScopeKeys(t){const A=t.id,n=this.type;return If(`${n}-plugin-${A}`,()=>[[`plugins.${A}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,A){const n=this._scopeCache;let r=n.get(t);return(!r||A)&&(r=new Map,n.set(t,r)),r}getOptionScopes(t,A,n){const{options:r,type:i}=this,s=this._cachedScopes(t,n),o=s.get(A);if(o)return o;const a=new Set;A.forEach(c=>{t&&(a.add(t),c.forEach(u=>Wl(a,t,u))),c.forEach(u=>Wl(a,r,u)),c.forEach(u=>Wl(a,zo[i]||{},u)),c.forEach(u=>Wl(a,CA,u)),c.forEach(u=>Wl(a,f0,u))});const l=Array.from(a);return l.length===0&&l.push(Object.create(null)),TC.has(A)&&s.set(A,l),l}chartOptionScopes(){const{options:t,type:A}=this;return[t,zo[A]||{},CA.datasets[A]||{},{type:A},CA,f0]}resolveNamedOptions(t,A,n,r=[""]){const i={$shared:!0},{resolver:s,subPrefixes:o}=rv(this._resolverCache,t,r);let a=s;if(PH(s,A)){i.$shared=!1,n=Xs(n)?n():n;const l=this.createResolver(t,n,o);a=nl(s,n,l)}for(const l of A)i[l]=a[l];return i}createResolver(t,A,n=[""],r){const{resolver:i}=rv(this._resolverCache,t,n);return He(A)?nl(i,A,void 0,r):i}}function rv(e,t,A){let n=e.get(t);n||(n=new Map,e.set(t,n));const r=A.join();let i=n.get(r);return i||(i={resolver:p1(t,A),subPrefixes:A.filter(o=>!o.toLowerCase().includes("hover"))},n.set(r,i)),i}const OH=e=>He(e)&&Object.getOwnPropertyNames(e).some(t=>Xs(e[t]));function PH(e,t){const{isScriptable:A,isIndexable:n}=pC(e);for(const r of t){const i=A(r),s=n(r),o=(s||i)&&e[r];if(i&&(Xs(o)||OH(o))||s&&yA(o))return!0}return!1}var RH="4.5.1";const KH=["top","bottom","left","right","chartArea"];function iv(e,t){return e==="top"||e==="bottom"||KH.indexOf(e)===-1&&t==="x"}function sv(e,t){return function(A,n){return A[e]===n[e]?A[t]-n[t]:A[e]-n[e]}}function ov(e){const t=e.chart,A=t.options.animation;t.notifyPlugins("afterRender"),hA(A&&A.onComplete,[e],t)}function VH(e){const t=e.chart,A=t.options.animation;hA(A&&A.onProgress,[e],t)}function OC(e){return w1()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const eh={},av=e=>{const t=OC(e);return Object.values(eh).filter(A=>A.canvas===t).pop()};function jH(e,t,A){const n=Object.keys(e);for(const r of n){const i=+r;if(i>=t){const s=e[r];delete e[r],(A>0||i>t)&&(e[i+A]=s)}}}function GH(e,t,A,n){return!A||e.type==="mouseout"?null:n?t:e}class Hr{static register(...t){ai.add(...t),lv()}static unregister(...t){ai.remove(...t),lv()}constructor(t,A){const n=this.config=new TH(A),r=OC(t),i=av(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||lH(r)),this.platform.updateConfig(n);const o=this.platform.acquireContext(r,s.aspectRatio),a=o&&o.canvas,l=a&&a.height,c=a&&a.width;if(this.id=Wk(),this.ctx=o,this.canvas=a,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new UH,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=lN(u=>this.update(u),s.resizeDelay||0),this._dataChanges=[],eh[this.id]=this,!o||!a){console.error("Failed to create chart: can't acquire context from the given item");return}ji.listen(this,"complete",ov),ji.listen(this,"progress",VH),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:A},width:n,height:r,_aspectRatio:i}=this;return Ne(t)?A&&i?i:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ai}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Sw(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Qw(this.canvas,this.ctx),this}stop(){return ji.stop(this),this}resize(t,A){ji.running(this)?this._resizeBeforeDraw={width:t,height:A}:this._resize(t,A)}_resize(t,A){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,A,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Sw(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),hA(n.onResize,[this,s],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){const A=this.options.scales||{};Je(A,(n,r)=>{n.id=r})}buildOrUpdateScales(){const t=this.options,A=t.scales,n=this.scales,r=Object.keys(n).reduce((s,o)=>(s[o]=!1,s),{});let i=[];A&&(i=i.concat(Object.keys(A).map(s=>{const o=A[s],a=p0(s,o),l=a==="r",c=a==="x";return{options:o,dposition:l?"chartArea":c?"bottom":"left",dtype:l?"radialLinear":c?"category":"linear"}}))),Je(i,s=>{const o=s.options,a=o.id,l=p0(a,o),c=Ce(o.type,s.dtype);(o.position===void 0||iv(o.position,l)!==iv(s.dposition))&&(o.position=s.dposition),r[a]=!0;let u=null;if(a in n&&n[a].type===c)u=n[a];else{const d=ai.getScale(c);u=new d({id:a,type:c,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(o,t)}),Je(r,(s,o)=>{s||delete n[o]}),Je(n,s=>{En.configure(this,s,s.options),En.addBox(this,s)})}_updateMetasets(){const t=this._metasets,A=this.data.datasets.length,n=t.length;if(t.sort((r,i)=>r.index-i.index),n>A){for(let r=A;r<n;++r)this._destroyDatasetMeta(r);t.splice(A,n-A)}this._sortedMetasets=t.slice(0).sort(sv("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:A}}=this;t.length>A.length&&delete this._stacks,t.forEach((n,r)=>{A.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],A=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=A.length;n<r;n++){const i=A[n];let s=this.getDatasetMeta(n);const o=i.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=o,s.indexAxis=i.indexAxis||g0(o,this.options),s.order=i.order||0,s.index=n,s.label=""+i.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{const a=ai.getController(o),{datasetElementType:l,dataElementType:c}=CA.datasets[o];Object.assign(a,{dataElementType:ai.getElement(c),datasetElementType:l&&ai.getElement(l)}),s.controller=new a(this,n),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Je(this.data.datasets,(t,A)=>{this.getDatasetMeta(A).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const A=this.config;A.update();const n=this._options=A.createResolver(A.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:u}=this.getDatasetMeta(l),d=!r&&i.indexOf(u)===-1;u.buildOrUpdateElements(d),s=Math.max(+u.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),r||Je(i,l=>{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(sv("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Je(this.scales,t=>{En.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,A=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!ww(A,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,A=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of A){const s=n==="_removeElements"?-i:i;jH(t,r,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const A=this.data.datasets.length,n=i=>new Set(t.filter(s=>s[0]===i).map((s,o)=>o+","+s.splice(1).join(","))),r=n(0);for(let i=1;i<A;i++)if(!ww(r,n(i)))return;return Array.from(r).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;En.update(this,this.width,this.height,t);const A=this.chartArea,n=A.width<=0||A.height<=0;this._layers=[],Je(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let A=0,n=this.data.datasets.length;A<n;++A)this.getDatasetMeta(A).controller.configure();for(let A=0,n=this.data.datasets.length;A<n;++A)this._updateDataset(A,Xs(t)?t({datasetIndex:A}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,A){const n=this.getDatasetMeta(t),r={meta:n,index:t,mode:A,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(n.controller._update(A),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ji.has(this)?this.attached&&!ji.running(this)&&ji.start(this):(this.draw(),ov({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:n,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const A=this._layers;for(t=0;t<A.length&&A[t].z<=0;++t)A[t].draw(this.chartArea);for(this._drawDatasets();t<A.length;++t)A[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const A=this._sortedMetasets,n=[];let r,i;for(r=0,i=A.length;r<i;++r){const s=A[r];(!t||s.visible)&&n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let A=t.length-1;A>=0;--A)this._drawDataset(t[A]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const A=this.ctx,n={meta:t,index:t.index,cancelable:!0},r=UC(this,t);this.notifyPlugins("beforeDatasetDraw",n)!==!1&&(r&&cd(A,r),t.controller.draw(),r&&ud(A),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return ts(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,A,n,r){const i=KD.modes[A];return typeof i=="function"?i(this,t,n,r):[]}getDatasetMeta(t){const A=this.data.datasets[t],n=this._metasets;let r=n.filter(i=>i&&i._dataset===A).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:A&&A.order||0,index:t,_dataset:A,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Js(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const A=this.data.datasets[t];if(!A)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!A.hidden}setDatasetVisibility(t,A){const n=this.getDatasetMeta(t);n.hidden=!A}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,A,n){const r=n?"show":"hide",i=this.getDatasetMeta(t),s=i.controller._resolveAnimations(void 0,r);Vc(A)?(i.data[A].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(i,{visible:n}),this.update(o=>o.datasetIndex===t?r:void 0))}hide(t,A){this._updateVisibility(t,A,!1)}show(t,A){this._updateVisibility(t,A,!0)}_destroyDatasetMeta(t){const A=this._metasets[t];A&&A.controller&&A.controller._destroy(),delete this._metasets[t]}_stop(){let t,A;for(this.stop(),ji.remove(this),t=0,A=this.data.datasets.length;t<A;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:A}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Qw(t,A),this.platform.releaseContext(A),this.canvas=null,this.ctx=null),delete eh[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,A=this.platform,n=(i,s)=>{A.addEventListener(this,i,s),t[i]=s},r=(i,s,o)=>{i.offsetX=s,i.offsetY=o,this._eventHandler(i)};Je(this.options.events,i=>n(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,A=this.platform,n=(a,l)=>{A.addEventListener(this,a,l),t[a]=l},r=(a,l)=>{t[a]&&(A.removeEventListener(this,a,l),delete t[a])},i=(a,l)=>{this.canvas&&this.resize(a,l)};let s;const o=()=>{r("attach",o),this.attached=!0,this.resize(),n("resize",i),n("detach",s)};s=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",o)},A.isAttached(this.canvas)?o():s()}unbindEvents(){Je(this._listeners,(t,A)=>{this.platform.removeEventListener(this,A,t)}),this._listeners={},Je(this._responsiveListeners,(t,A)=>{this.platform.removeEventListener(this,A,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,A,n){const r=n?"set":"remove";let i,s,o,a;for(A==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),o=0,a=t.length;o<a;++o){s=t[o];const l=s&&this.getDatasetMeta(s.datasetIndex).controller;l&&l[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const A=this._active||[],n=t.map(({datasetIndex:i,index:s})=>{const o=this.getDatasetMeta(i);if(!o)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:o.data[s],index:s}});!Eh(n,A)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,A))}notifyPlugins(t,A,n){return this._plugins.notify(this,t,A,n)}isPluginEnabled(t){return this._plugins._cache.filter(A=>A.plugin.id===t).length===1}_updateHoverStyles(t,A,n){const r=this.options.hover,i=(a,l)=>a.filter(c=>!l.some(u=>c.datasetIndex===u.datasetIndex&&c.index===u.index)),s=i(A,t),o=n?t:i(t,A);s.length&&this.updateHoverStyle(s,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(t,A){const n={event:t,replay:A,cancelable:!0,inChartArea:this.isPointInArea(t)},r=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;const i=this._handleEvent(t,A,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(t,A,n){const{_active:r=[],options:i}=this,s=A,o=this._getActiveElements(t,r,n,s),a=Jk(t),l=GH(t,this._lastEvent,n,a);n&&(this._lastEvent=null,hA(i.onHover,[t,o,this],this),a&&hA(i.onClick,[t,o,this],this));const c=!Eh(o,r);return(c||A)&&(this._active=o,this._updateHoverStyles(o,r,A)),this._lastEvent=l,c}_getActiveElements(t,A,n,r){if(t.type==="mouseout")return[];if(!n)return A;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}Nt(Hr,"defaults",CA),Nt(Hr,"instances",eh),Nt(Hr,"overrides",zo),Nt(Hr,"registry",ai),Nt(Hr,"version",RH),Nt(Hr,"getChart",av);function lv(){return Je(Hr.instances,e=>e._plugins.invalidate())}function WH(e,t,A){const{startAngle:n,x:r,y:i,outerRadius:s,innerRadius:o,options:a}=t,{borderWidth:l,borderJoinStyle:c}=a,u=Math.min(l/s,_n(n-A));if(e.beginPath(),e.arc(r,i,s-l/2,n+u/2,A-u/2),o>0){const d=Math.min(l/o,_n(n-A));e.arc(r,i,o+l/2,A-d/2,n+d/2,!0)}else{const d=Math.min(l/2,s*_n(n-A));if(c==="round")e.arc(r,i,d,A-Ve/2,n+Ve/2,!0);else if(c==="bevel"){const f=2*d*d,m=-f*Math.cos(A+Ve/2)+r,B=-f*Math.sin(A+Ve/2)+i,v=f*Math.cos(n+Ve/2)+r,b=f*Math.sin(n+Ve/2)+i;e.lineTo(m,B),e.lineTo(v,b)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function zH(e,t,A){const{startAngle:n,pixelMargin:r,x:i,y:s,outerRadius:o,innerRadius:a}=t;let l=r/o;e.beginPath(),e.arc(i,s,o,n-l,A+l),a>r?(l=r/a,e.arc(i,s,a,A+l,n-l,!0)):e.arc(i,s,r,A+RA,n-RA),e.closePath(),e.clip()}function $H(e){return g1(e,["outerStart","outerEnd","innerStart","innerEnd"])}function qH(e,t,A,n){const r=$H(e.options.borderRadius),i=(A-t)/2,s=Math.min(i,n*t/2),o=a=>{const l=(A-Math.min(i,a))*n/2;return nn(a,0,Math.min(i,l))};return{outerStart:o(r.outerStart),outerEnd:o(r.outerEnd),innerStart:nn(r.innerStart,0,s),innerEnd:nn(r.innerEnd,0,s)}}function Sa(e,t,A,n){return{x:A+e*Math.cos(t),y:n+e*Math.sin(t)}}function Dh(e,t,A,n,r,i){const{x:s,y:o,startAngle:a,pixelMargin:l,innerRadius:c}=t,u=Math.max(t.outerRadius+n+A-l,0),d=c>0?c+n+A+l:0;let f=0;const m=r-a;if(n){const ft=c>0?c-n:0,lt=u>0?u-n:0,ct=(ft+lt)/2,at=ct!==0?m*ct/(ct+n):m;f=(m-at)/2}const B=Math.max(.001,m*u-A/Ve)/u,v=(m-B)/2,b=a+v+f,C=r-v-f,{outerStart:Q,outerEnd:_,innerStart:H,innerEnd:W}=qH(t,d,u,C-b),R=u-Q,O=u-_,k=b+Q/R,V=C-_/O,F=d+H,L=d+W,G=b+H/F,q=C-W/L;if(e.beginPath(),i){const ft=(k+V)/2;if(e.arc(s,o,u,k,ft),e.arc(s,o,u,ft,V),_>0){const st=Sa(O,V,s,o);e.arc(st.x,st.y,_,V,C+RA)}const lt=Sa(L,C,s,o);if(e.lineTo(lt.x,lt.y),W>0){const st=Sa(L,q,s,o);e.arc(st.x,st.y,W,C+RA,q+Math.PI)}const ct=(C-W/d+(b+H/d))/2;if(e.arc(s,o,d,C-W/d,ct,!0),e.arc(s,o,d,ct,b+H/d,!0),H>0){const st=Sa(F,G,s,o);e.arc(st.x,st.y,H,G+Math.PI,b-RA)}const at=Sa(R,b,s,o);if(e.lineTo(at.x,at.y),Q>0){const st=Sa(R,k,s,o);e.arc(st.x,st.y,Q,b-RA,k)}}else{e.moveTo(s,o);const ft=Math.cos(k)*u+s,lt=Math.sin(k)*u+o;e.lineTo(ft,lt);const ct=Math.cos(V)*u+s,at=Math.sin(V)*u+o;e.lineTo(ct,at)}e.closePath()}function XH(e,t,A,n,r){const{fullCircles:i,startAngle:s,circumference:o}=t;let a=t.endAngle;if(i){Dh(e,t,A,n,a,r);for(let l=0;l<i;++l)e.fill();isNaN(o)||(a=s+(o%BA||BA))}return Dh(e,t,A,n,a,r),e.fill(),a}function YH(e,t,A,n,r){const{fullCircles:i,startAngle:s,circumference:o,options:a}=t,{borderWidth:l,borderJoinStyle:c,borderDash:u,borderDashOffset:d,borderRadius:f}=a,m=a.borderAlign==="inner";if(!l)return;e.setLineDash(u||[]),e.lineDashOffset=d,m?(e.lineWidth=l*2,e.lineJoin=c||"round"):(e.lineWidth=l,e.lineJoin=c||"bevel");let B=t.endAngle;if(i){Dh(e,t,A,n,B,r);for(let v=0;v<i;++v)e.stroke();isNaN(o)||(B=s+(o%BA||BA))}m&&zH(e,t,B),a.selfJoin&&B-s>=Ve&&f===0&&c!=="miter"&&WH(e,t,B),i||(Dh(e,t,A,n,B,r),e.stroke())}class rc extends as{constructor(A){super();Nt(this,"circumference");Nt(this,"endAngle");Nt(this,"fullCircles");Nt(this,"innerRadius");Nt(this,"outerRadius");Nt(this,"pixelMargin");Nt(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,A&&Object.assign(this,A)}inRange(A,n,r){const i=this.getProps(["x","y"],r),{angle:s,distance:o}=sC(i,{x:A,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),f=(this.options.spacing+this.options.borderWidth)/2,m=Ce(d,l-a),B=jc(s,a,l)&&a!==l,v=m>=BA||B,b=Ji(o,c+f,u+f);return v&&b}getCenterPoint(A){const{x:n,y:r,startAngle:i,endAngle:s,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],A),{offset:l,spacing:c}=this.options,u=(i+s)/2,d=(o+a+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(A){return this.getCenterPoint(A)}draw(A){const{options:n,circumference:r}=this,i=(n.offset||0)/4,s=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>BA?Math.floor(r/BA):0,r===0||this.innerRadius<0||this.outerRadius<0)return;A.save();const a=(this.startAngle+this.endAngle)/2;A.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(Ve,r||0)),c=i*l;A.fillStyle=n.backgroundColor,A.strokeStyle=n.borderColor,XH(A,this,c,s,o),YH(A,this,c,s,o),A.restore()}}Nt(rc,"id","arc"),Nt(rc,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),Nt(rc,"defaultRoutes",{backgroundColor:"backgroundColor"}),Nt(rc,"descriptors",{_scriptable:!0,_indexable:A=>A!=="borderDash"});function PC(e,t,A=t){e.lineCap=Ce(A.borderCapStyle,t.borderCapStyle),e.setLineDash(Ce(A.borderDash,t.borderDash)),e.lineDashOffset=Ce(A.borderDashOffset,t.borderDashOffset),e.lineJoin=Ce(A.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ce(A.borderWidth,t.borderWidth),e.strokeStyle=Ce(A.borderColor,t.borderColor)}function JH(e,t,A){e.lineTo(A.x,A.y)}function ZH(e){return e.stepped?bN:e.tension||e.cubicInterpolationMode==="monotone"?yN:JH}function RC(e,t,A={}){const n=e.length,{start:r=0,end:i=n-1}=A,{start:s,end:o}=t,a=Math.max(r,s),l=Math.min(i,o),c=r<s&&i<s||r>o&&i>o;return{count:n,start:a,loop:t.loop,ilen:l<a&&!c?n+l-a:l-a}}function tM(e,t,A,n){const{points:r,options:i}=t,{count:s,start:o,loop:a,ilen:l}=RC(r,A,n),c=ZH(i);let{move:u=!0,reverse:d}=n||{},f,m,B;for(f=0;f<=l;++f)m=r[(o+(d?l-f:f))%s],!m.skip&&(u?(e.moveTo(m.x,m.y),u=!1):c(e,B,m,d,i.stepped),B=m);return a&&(m=r[(o+(d?l:0))%s],c(e,B,m,d,i.stepped)),!!a}function eM(e,t,A,n){const r=t.points,{count:i,start:s,ilen:o}=RC(r,A,n),{move:a=!0,reverse:l}=n||{};let c=0,u=0,d,f,m,B,v,b;const C=_=>(s+(l?o-_:_))%i,Q=()=>{B!==v&&(e.lineTo(c,v),e.lineTo(c,B),e.lineTo(c,b))};for(a&&(f=r[C(0)],e.moveTo(f.x,f.y)),d=0;d<=o;++d){if(f=r[C(d)],f.skip)continue;const _=f.x,H=f.y,W=_|0;W===m?(H<B?B=H:H>v&&(v=H),c=(u*c+_)/++u):(Q(),e.lineTo(_,H),m=W,u=0,B=v=H),b=H}Q()}function m0(e){const t=e.options,A=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!A?eM:tM}function AM(e){return e.stepped?tD:e.tension||e.cubicInterpolationMode==="monotone"?eD:Io}function nM(e,t,A,n){let r=t._path;r||(r=t._path=new Path2D,t.path(r,A,n)&&r.closePath()),PC(e,t.options),e.stroke(r)}function rM(e,t,A,n){const{segments:r,options:i}=t,s=m0(t);for(const o of r)PC(e,i,o.style),e.beginPath(),s(e,t,o,{start:A,end:A+n-1})&&e.closePath(),e.stroke()}const iM=typeof Path2D=="function";function sM(e,t,A,n){iM&&!t.options.segment?nM(e,t,A,n):rM(e,t,A,n)}class Rs extends as{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,A){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;WN(this._points,n,t,r,A),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=oD(this,this.options.segment))}first(){const t=this.segments,A=this.points;return t.length&&A[t[0].start]}last(){const t=this.segments,A=this.points,n=t.length;return n&&A[t[n-1].end]}interpolate(t,A){const n=this.options,r=t[A],i=this.points,s=_C(this,{property:A,start:r,end:r});if(!s.length)return;const o=[],a=AM(n);let l,c;for(l=0,c=s.length;l<c;++l){const{start:u,end:d}=s[l],f=i[u],m=i[d];if(f===m){o.push(f);continue}const B=Math.abs((r-f[A])/(m[A]-f[A])),v=a(f,m,B,n.stepped);v[A]=t[A],o.push(v)}return o.length===1?o[0]:o}pathSegment(t,A,n){return m0(this)(t,this,A,n)}path(t,A,n){const r=this.segments,i=m0(this);let s=this._loop;A=A||0,n=n||this.points.length-A;for(const o of r)s&=i(t,this,o,{start:A,end:A+n-1});return!!s}draw(t,A,n,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),sM(t,this,n,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Nt(Rs,"id","line"),Nt(Rs,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),Nt(Rs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),Nt(Rs,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function cv(e,t,A,n){const r=e.options,{[A]:i}=e.getProps([A],n);return Math.abs(t-i)<r.radius+r.hitRadius}class Ah extends as{constructor(A){super();Nt(this,"parsed");Nt(this,"skip");Nt(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,A&&Object.assign(this,A)}inRange(A,n,r){const i=this.options,{x:s,y:o}=this.getProps(["x","y"],r);return Math.pow(A-s,2)+Math.pow(n-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(A,n){return cv(this,A,"x",n)}inYRange(A,n){return cv(this,A,"y",n)}getCenterPoint(A){const{x:n,y:r}=this.getProps(["x","y"],A);return{x:n,y:r}}size(A){A=A||this.options||{};let n=A.radius||0;n=Math.max(n,n&&A.hoverRadius||0);const r=n&&A.borderWidth||0;return(n+r)*2}draw(A,n){const r=this.options;this.skip||r.radius<.1||!ts(this,n,this.size(r)/2)||(A.strokeStyle=r.borderColor,A.lineWidth=r.borderWidth,A.fillStyle=r.backgroundColor,h0(A,r,this.x,this.y))}getRange(){const A=this.options||{};return A.radius+A.hitRadius}}Nt(Ah,"id","point"),Nt(Ah,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),Nt(Ah,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function KC(e,t){const{x:A,y:n,base:r,width:i,height:s}=e.getProps(["x","y","base","width","height"],t);let o,a,l,c,u;return e.horizontal?(u=s/2,o=Math.min(A,r),a=Math.max(A,r),l=n-u,c=n+u):(u=i/2,o=A-u,a=A+u,l=Math.min(n,r),c=Math.max(n,r)),{left:o,top:l,right:a,bottom:c}}function Ks(e,t,A,n){return e?0:nn(t,A,n)}function oM(e,t,A){const n=e.options.borderWidth,r=e.borderSkipped,i=gC(n);return{t:Ks(r.top,i.top,0,A),r:Ks(r.right,i.right,0,t),b:Ks(r.bottom,i.bottom,0,A),l:Ks(r.left,i.left,0,t)}}function aM(e,t,A){const{enableBorderRadius:n}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,i=Ko(r),s=Math.min(t,A),o=e.borderSkipped,a=n||He(r);return{topLeft:Ks(!a||o.top||o.left,i.topLeft,0,s),topRight:Ks(!a||o.top||o.right,i.topRight,0,s),bottomLeft:Ks(!a||o.bottom||o.left,i.bottomLeft,0,s),bottomRight:Ks(!a||o.bottom||o.right,i.bottomRight,0,s)}}function lM(e){const t=KC(e),A=t.right-t.left,n=t.bottom-t.top,r=oM(e,A/2,n/2),i=aM(e,A/2,n/2);return{outer:{x:t.left,y:t.top,w:A,h:n,radius:i},inner:{x:t.left+r.l,y:t.top+r.t,w:A-r.l-r.r,h:n-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function lp(e,t,A,n){const r=t===null,i=A===null,o=e&&!(r&&i)&&KC(e,n);return o&&(r||Ji(t,o.left,o.right))&&(i||Ji(A,o.top,o.bottom))}function cM(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function uM(e,t){e.rect(t.x,t.y,t.w,t.h)}function cp(e,t,A={}){const n=e.x!==A.x?-t:0,r=e.y!==A.y?-t:0,i=(e.x+e.w!==A.x+A.w?t:0)-n,s=(e.y+e.h!==A.y+A.h?t:0)-r;return{x:e.x+n,y:e.y+r,w:e.w+i,h:e.h+s,radius:e.radius}}class nh extends as{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:A,options:{borderColor:n,backgroundColor:r}}=this,{inner:i,outer:s}=lM(this),o=cM(s.radius)?Gc:uM;t.save(),(s.w!==i.w||s.h!==i.h)&&(t.beginPath(),o(t,cp(s,A,i)),t.clip(),o(t,cp(i,-A,s)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),o(t,cp(i,A)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,A,n){return lp(this,t,A,n)}inXRange(t,A){return lp(this,t,null,A)}inYRange(t,A){return lp(this,null,t,A)}getCenterPoint(t){const{x:A,y:n,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(A+r)/2:A,y:i?n:(n+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Nt(nh,"id","bar"),Nt(nh,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Nt(nh,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var fM=Object.freeze({__proto__:null,ArcElement:rc,BarElement:nh,LineElement:Rs,PointElement:Ah});const B0=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],uv=B0.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function VC(e){return B0[e%B0.length]}function jC(e){return uv[e%uv.length]}function hM(e,t){return e.borderColor=VC(t),e.backgroundColor=jC(t),++t}function dM(e,t){return e.backgroundColor=e.data.map(()=>VC(t++)),t}function gM(e,t){return e.backgroundColor=e.data.map(()=>jC(t++)),t}function pM(e){let t=0;return(A,n)=>{const r=e.getDatasetMeta(n).controller;r instanceof Ho?t=dM(A,t):r instanceof Uc?t=gM(A,t):r&&(t=hM(A,t))}}function fv(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function mM(e){return e&&(e.borderColor||e.backgroundColor)}function BM(){return CA.borderColor!=="rgba(0,0,0,0.1)"||CA.backgroundColor!=="rgba(0,0,0,0.1)"}var wM={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,A){if(!A.enabled)return;const{data:{datasets:n},options:r}=e.config,{elements:i}=r,s=fv(n)||mM(r)||i&&fv(i)||BM();if(!A.forceOverride&&s)return;const o=pM(e);n.forEach(o)}};function vM(e,t,A,n,r){const i=r.samples||n;if(i>=A)return e.slice(t,t+A);const s=[],o=(A-2)/(i-2);let a=0;const l=t+A-1;let c=t,u,d,f,m,B;for(s[a++]=e[c],u=0;u<i-2;u++){let v=0,b=0,C;const Q=Math.floor((u+1)*o)+1+t,_=Math.min(Math.floor((u+2)*o)+1,A)+t,H=_-Q;for(C=Q;C<_;C++)v+=e[C].x,b+=e[C].y;v/=H,b/=H;const W=Math.floor(u*o)+1+t,R=Math.min(Math.floor((u+1)*o)+1,A)+t,{x:O,y:k}=e[c];for(f=m=-1,C=W;C<R;C++)m=.5*Math.abs((O-v)*(e[C].y-k)-(O-e[C].x)*(b-k)),m>f&&(f=m,d=e[C],B=C);s[a++]=d,c=B}return s[a++]=e[l],s}function bM(e,t,A,n){let r=0,i=0,s,o,a,l,c,u,d,f,m,B;const v=[],b=t+A-1,C=e[t].x,_=e[b].x-C;for(s=t;s<t+A;++s){o=e[s],a=(o.x-C)/_*n,l=o.y;const H=a|0;if(H===c)l<m?(m=l,u=s):l>B&&(B=l,d=s),r=(i*r+o.x)/++i;else{const W=s-1;if(!Ne(u)&&!Ne(d)){const R=Math.min(u,d),O=Math.max(u,d);R!==f&&R!==W&&v.push({...e[R],x:r}),O!==f&&O!==W&&v.push({...e[O],x:r})}s>0&&W!==f&&v.push(e[W]),v.push(o),c=H,i=0,m=B=l,u=d=f=s}}return v}function GC(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function hv(e){e.data.datasets.forEach(t=>{GC(t)})}function yM(e,t){const A=t.length;let n=0,r;const{iScale:i}=e,{min:s,max:o,minDefined:a,maxDefined:l}=i.getUserBounds();return a&&(n=nn(Zi(t,i.axis,s).lo,0,A-1)),l?r=nn(Zi(t,i.axis,o).hi+1,n,A)-n:r=A-n,{start:n,count:r}}var CM={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,A)=>{if(!A.enabled){hv(e);return}const n=e.width;e.data.datasets.forEach((r,i)=>{const{_data:s,indexAxis:o}=r,a=e.getDatasetMeta(i),l=s||r.data;if(Ac([o,e.options.indexAxis])==="y"||!a.controller.supportsDecimation)return;const c=e.scales[a.xAxisID];if(c.type!=="linear"&&c.type!=="time"||e.options.parsing)return;let{start:u,count:d}=yM(a,l);const f=A.threshold||4*n;if(d<=f){GC(r);return}Ne(s)&&(r._data=l,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(B){this._data=B}}));let m;switch(A.algorithm){case"lttb":m=vM(l,u,d,n,A);break;case"min-max":m=bM(l,u,d,n);break;default:throw new Error(`Unsupported decimation algorithm '${A.algorithm}'`)}r._decimated=m})},destroy(e){hv(e)}};function xM(e,t,A){const n=e.segments,r=e.points,i=t.points,s=[];for(const o of n){let{start:a,end:l}=o;l=dd(a,l,r);const c=w0(A,r[a],r[l],o.loop);if(!t.segments){s.push({source:o,target:c,start:r[a],end:r[l]});continue}const u=_C(t,c);for(const d of u){const f=w0(A,i[d.start],i[d.end],d.loop),m=FC(o,r,f);for(const B of m)s.push({source:B,target:d,start:{[A]:dv(c,f,"start",Math.max)},end:{[A]:dv(c,f,"end",Math.min)}})}}return s}function w0(e,t,A,n){if(n)return;let r=t[e],i=A[e];return e==="angle"&&(r=_n(r),i=_n(i)),{property:e,start:r,end:i}}function FM(e,t){const{x:A=null,y:n=null}=e||{},r=t.points,i=[];return t.segments.forEach(({start:s,end:o})=>{o=dd(s,o,r);const a=r[s],l=r[o];n!==null?(i.push({x:a.x,y:n}),i.push({x:l.x,y:n})):A!==null&&(i.push({x:A,y:a.y}),i.push({x:A,y:l.y}))}),i}function dd(e,t,A){for(;t>e;t--){const n=A[t];if(!isNaN(n.x)&&!isNaN(n.y))break}return t}function dv(e,t,A,n){return e&&t?n(e[A],t[A]):e?e[A]:t?t[A]:0}function WC(e,t){let A=[],n=!1;return yA(e)?(n=!0,A=e):A=FM(e,t),A.length?new Rs({points:A,options:{tension:0},_loop:n,_fullLoop:n}):null}function gv(e){return e&&e.fill!==!1}function _M(e,t,A){let r=e[t].fill;const i=[t];let s;if(!A)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!SA(r))return r;if(s=e[r],!s)return!1;if(s.visible)return r;i.push(r),r=s.fill}return!1}function UM(e,t,A){const n=SM(e);if(He(n))return isNaN(n.value)?!1:n;let r=parseFloat(n);return SA(r)&&Math.floor(r)===r?QM(n[0],t,r,A):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function QM(e,t,A,n){return(e==="-"||e==="+")&&(A=t+A),A===t||A<0||A>=n?!1:A}function EM(e,t){let A=null;return e==="start"?A=t.bottom:e==="end"?A=t.top:He(e)?A=t.getPixelForValue(e.value):t.getBasePixel&&(A=t.getBasePixel()),A}function IM(e,t,A){let n;return e==="start"?n=A:e==="end"?n=t.options.reverse?t.min:t.max:He(e)?n=e.value:n=t.getBaseValue(),n}function SM(e){const t=e.options,A=t.fill;let n=Ce(A&&A.target,A);return n===void 0&&(n=!!t.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function LM(e){const{scale:t,index:A,line:n}=e,r=[],i=n.segments,s=n.points,o=kM(t,A);o.push(WC({x:null,y:t.bottom},n));for(let a=0;a<i.length;a++){const l=i[a];for(let c=l.start;c<=l.end;c++)NM(r,s[c],o)}return new Rs({points:r,options:{}})}function kM(e,t){const A=[],n=e.getMatchingVisibleMetas("line");for(let r=0;r<n.length;r++){const i=n[r];if(i.index===t)break;i.hidden||A.unshift(i.dataset)}return A}function NM(e,t,A){const n=[];for(let r=0;r<A.length;r++){const i=A[r],{first:s,last:o,point:a}=DM(i,t,"x");if(!(!a||s&&o)){if(s)n.unshift(a);else if(e.push(a),!o)break}}e.push(...n)}function DM(e,t,A){const n=e.interpolate(t,A);if(!n)return{};const r=n[A],i=e.segments,s=e.points;let o=!1,a=!1;for(let l=0;l<i.length;l++){const c=i[l],u=s[c.start][A],d=s[c.end][A];if(Ji(r,u,d)){o=r===u,a=r===d;break}}return{first:o,last:a,point:n}}class zC{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,A,n){const{x:r,y:i,radius:s}=this;return A=A||{start:0,end:BA},t.arc(r,i,s,A.end,A.start,!0),!n.bounds}interpolate(t){const{x:A,y:n,radius:r}=this,i=t.angle;return{x:A+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}function HM(e){const{chart:t,fill:A,line:n}=e;if(SA(A))return MM(t,A);if(A==="stack")return LM(e);if(A==="shape")return!0;const r=TM(e);return r instanceof zC?r:WC(r,n)}function MM(e,t){const A=e.getDatasetMeta(t);return A&&e.isDatasetVisible(t)?A.dataset:null}function TM(e){return(e.scale||{}).getPointPositionForValue?PM(e):OM(e)}function OM(e){const{scale:t={},fill:A}=e,n=EM(A,t);if(SA(n)){const r=t.isHorizontal();return{x:r?n:null,y:r?null:n}}return null}function PM(e){const{scale:t,fill:A}=e,n=t.options,r=t.getLabels().length,i=n.reverse?t.max:t.min,s=IM(A,t,i),o=[];if(n.grid.circular){const a=t.getPointPositionForValue(0,i);return new zC({x:a.x,y:a.y,radius:t.getDistanceFromCenterForValue(s)})}for(let a=0;a<r;++a)o.push(t.getPointPositionForValue(a,s));return o}function up(e,t,A){const n=HM(t),{chart:r,index:i,line:s,scale:o,axis:a}=t,l=s.options,c=l.fill,u=l.backgroundColor,{above:d=u,below:f=u}=c||{},m=r.getDatasetMeta(i),B=UC(r,m);n&&s.points.length&&(cd(e,A),RM(e,{line:s,target:n,above:d,below:f,area:A,scale:o,axis:a,clip:B}),ud(e))}function RM(e,t){const{line:A,target:n,above:r,below:i,area:s,scale:o,clip:a}=t,l=A._loop?"angle":t.axis;e.save();let c=i;i!==r&&(l==="x"?(pv(e,n,s.top),fp(e,{line:A,target:n,color:r,scale:o,property:l,clip:a}),e.restore(),e.save(),pv(e,n,s.bottom)):l==="y"&&(mv(e,n,s.left),fp(e,{line:A,target:n,color:i,scale:o,property:l,clip:a}),e.restore(),e.save(),mv(e,n,s.right),c=r)),fp(e,{line:A,target:n,color:c,scale:o,property:l,clip:a}),e.restore()}function pv(e,t,A){const{segments:n,points:r}=t;let i=!0,s=!1;e.beginPath();for(const o of n){const{start:a,end:l}=o,c=r[a],u=r[dd(a,l,r)];i?(e.moveTo(c.x,c.y),i=!1):(e.lineTo(c.x,A),e.lineTo(c.x,c.y)),s=!!t.pathSegment(e,o,{move:s}),s?e.closePath():e.lineTo(u.x,A)}e.lineTo(t.first().x,A),e.closePath(),e.clip()}function mv(e,t,A){const{segments:n,points:r}=t;let i=!0,s=!1;e.beginPath();for(const o of n){const{start:a,end:l}=o,c=r[a],u=r[dd(a,l,r)];i?(e.moveTo(c.x,c.y),i=!1):(e.lineTo(A,c.y),e.lineTo(c.x,c.y)),s=!!t.pathSegment(e,o,{move:s}),s?e.closePath():e.lineTo(A,u.y)}e.lineTo(A,t.first().y),e.closePath(),e.clip()}function fp(e,t){const{line:A,target:n,property:r,color:i,scale:s,clip:o}=t,a=xM(A,n,r);for(const{source:l,target:c,start:u,end:d}of a){const{style:{backgroundColor:f=i}={}}=l,m=n!==!0;e.save(),e.fillStyle=f,KM(e,s,o,m&&w0(r,u,d)),e.beginPath();const B=!!A.pathSegment(e,l);let v;if(m){B?e.closePath():Bv(e,n,d,r);const b=!!n.pathSegment(e,c,{move:B,reverse:!0});v=B&&b,v||Bv(e,n,u,r)}e.closePath(),e.fill(v?"evenodd":"nonzero"),e.restore()}}function KM(e,t,A,n){const r=t.chart.chartArea,{property:i,start:s,end:o}=n||{};if(i==="x"||i==="y"){let a,l,c,u;i==="x"?(a=s,l=r.top,c=o,u=r.bottom):(a=r.left,l=s,c=r.right,u=o),e.beginPath(),A&&(a=Math.max(a,A.left),c=Math.min(c,A.right),l=Math.max(l,A.top),u=Math.min(u,A.bottom)),e.rect(a,l,c-a,u-l),e.clip()}}function Bv(e,t,A,n){const r=t.interpolate(A,n);r&&e.lineTo(r.x,r.y)}var VM={id:"filler",afterDatasetsUpdate(e,t,A){const n=(e.data.datasets||[]).length,r=[];let i,s,o,a;for(s=0;s<n;++s)i=e.getDatasetMeta(s),o=i.dataset,a=null,o&&o.options&&o instanceof Rs&&(a={visible:e.isDatasetVisible(s),index:s,fill:UM(o,s,n),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:o}),i.$filler=a,r.push(a);for(s=0;s<n;++s)a=r[s],!(!a||a.fill===!1)&&(a.fill=_M(r,s,A.propagate))},beforeDraw(e,t,A){const n=A.drawTime==="beforeDraw",r=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let s=r.length-1;s>=0;--s){const o=r[s].$filler;o&&(o.line.updateControlPoints(i,o.axis),n&&o.fill&&up(e.ctx,o,i))}},beforeDatasetsDraw(e,t,A){if(A.drawTime!=="beforeDatasetsDraw")return;const n=e.getSortedVisibleDatasetMetas();for(let r=n.length-1;r>=0;--r){const i=n[r].$filler;gv(i)&&up(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,A){const n=t.meta.$filler;!gv(n)||A.drawTime!=="beforeDatasetDraw"||up(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const wv=(e,t)=>{let{boxHeight:A=t,boxWidth:n=t}=e;return e.usePointStyle&&(A=Math.min(A,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:A,itemHeight:Math.max(t,A)}},jM=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class vv extends as{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,A,n){this.maxWidth=t,this.maxHeight=A,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let A=hA(t.generateLabels,[this.chart],this)||[];t.filter&&(A=A.filter(n=>t.filter(n,this.chart.data))),t.sort&&(A=A.sort((n,r)=>t.sort(n,r,this.chart.data))),this.options.reverse&&A.reverse(),this.legendItems=A}fit(){const{options:t,ctx:A}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,r=ZA(n.font),i=r.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:a}=wv(n,i);let l,c;A.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(s,i,o,a)+10):(c=this.maxHeight,l=this._fitCols(s,r,o,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,A,n,r){const{ctx:i,maxWidth:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+o;let u=t;i.textAlign="left",i.textBaseline="middle";let d=-1,f=-c;return this.legendItems.forEach((m,B)=>{const v=n+A/2+i.measureText(m.text).width;(B===0||l[l.length-1]+v+2*o>s)&&(u+=c,l[l.length-(B>0?0:1)]=0,f+=c,d++),a[B]={left:0,top:f,row:d,width:v,height:r},l[l.length-1]+=v+o}),u}_fitCols(t,A,n,r){const{ctx:i,maxHeight:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-t;let u=o,d=0,f=0,m=0,B=0;return this.legendItems.forEach((v,b)=>{const{itemWidth:C,itemHeight:Q}=GM(n,A,i,v,r);b>0&&f+Q+2*o>c&&(u+=d+o,l.push({width:d,height:f}),m+=d+o,B++,d=f=0),a[b]={left:m,top:f,col:B,width:C,height:Q},d=Math.max(d,C),f+=Q+o}),u+=d,l.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:A,options:{align:n,labels:{padding:r},rtl:i}}=this,s=qa(i,this.left,this.width);if(this.isHorizontal()){let o=0,a=Cn(n,this.left+r,this.right-this.lineWidths[o]);for(const l of A)o!==l.row&&(o=l.row,a=Cn(n,this.left+r,this.right-this.lineWidths[o])),l.top+=this.top+t+r,l.left=s.leftForLtr(s.x(a),l.width),a+=l.width+r}else{let o=0,a=Cn(n,this.top+t+r,this.bottom-this.columnSizes[o].height);for(const l of A)l.col!==o&&(o=l.col,a=Cn(n,this.top+t+r,this.bottom-this.columnSizes[o].height)),l.top=a,l.left+=this.left+r,l.left=s.leftForLtr(s.x(l.left),l.width),a+=l.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;cd(t,this),this._draw(),ud(t)}}_draw(){const{options:t,columnSizes:A,lineWidths:n,ctx:r}=this,{align:i,labels:s}=t,o=CA.color,a=qa(t.rtl,this.left,this.width),l=ZA(s.font),{padding:c}=s,u=l.size,d=u/2;let f;this.drawTitle(),r.textAlign=a.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:m,boxHeight:B,itemHeight:v}=wv(s,u),b=function(W,R,O){if(isNaN(m)||m<=0||isNaN(B)||B<0)return;r.save();const k=Ce(O.lineWidth,1);if(r.fillStyle=Ce(O.fillStyle,o),r.lineCap=Ce(O.lineCap,"butt"),r.lineDashOffset=Ce(O.lineDashOffset,0),r.lineJoin=Ce(O.lineJoin,"miter"),r.lineWidth=k,r.strokeStyle=Ce(O.strokeStyle,o),r.setLineDash(Ce(O.lineDash,[])),s.usePointStyle){const V={radius:B*Math.SQRT2/2,pointStyle:O.pointStyle,rotation:O.rotation,borderWidth:k},F=a.xPlus(W,m/2),L=R+d;dC(r,V,F,L,s.pointStyleWidth&&m)}else{const V=R+Math.max((u-B)/2,0),F=a.leftForLtr(W,m),L=Ko(O.borderRadius);r.beginPath(),Object.values(L).some(G=>G!==0)?Gc(r,{x:F,y:V,w:m,h:B,radius:L}):r.rect(F,V,m,B),r.fill(),k!==0&&r.stroke()}r.restore()},C=function(W,R,O){$o(r,O.text,W,R+v/2,l,{strikethrough:O.hidden,textAlign:a.textAlign(O.textAlign)})},Q=this.isHorizontal(),_=this._computeTitleHeight();Q?f={x:Cn(i,this.left+c,this.right-n[0]),y:this.top+c+_,line:0}:f={x:this.left+c,y:Cn(i,this.top+_+c,this.bottom-A[0].height),line:0},yC(this.ctx,t.textDirection);const H=v+c;this.legendItems.forEach((W,R)=>{r.strokeStyle=W.fontColor,r.fillStyle=W.fontColor;const O=r.measureText(W.text).width,k=a.textAlign(W.textAlign||(W.textAlign=s.textAlign)),V=m+d+O;let F=f.x,L=f.y;a.setWidth(this.width),Q?R>0&&F+V+c>this.right&&(L=f.y+=H,f.line++,F=f.x=Cn(i,this.left+c,this.right-n[f.line])):R>0&&L+H>this.bottom&&(F=f.x=F+A[f.line].width+c,f.line++,L=f.y=Cn(i,this.top+_+c,this.bottom-A[f.line].height));const G=a.x(F);if(b(G,L,W),F=cN(k,F+m+d,Q?F+V:this.right,t.rtl),C(a.x(F),L,W),Q)f.x+=V+c;else if(typeof W.text!="string"){const q=l.lineHeight;f.y+=$C(W,q)+c}else f.y+=H}),CC(this.ctx,t.textDirection)}drawTitle(){const t=this.options,A=t.title,n=ZA(A.font),r=Sn(A.padding);if(!A.display)return;const i=qa(t.rtl,this.left,this.width),s=this.ctx,o=A.position,a=n.size/2,l=r.top+a;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=Cn(t.align,u,this.right-d);else{const m=this.columnSizes.reduce((B,v)=>Math.max(B,v.height),0);c=l+Cn(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const f=Cn(o,u,u+d);s.textAlign=i.textAlign(h1(o)),s.textBaseline="middle",s.strokeStyle=A.color,s.fillStyle=A.color,s.font=n.string,$o(s,A.text,f,c,n)}_computeTitleHeight(){const t=this.options.title,A=ZA(t.font),n=Sn(t.padding);return t.display?A.lineHeight+n.height:0}_getLegendItemAt(t,A){let n,r,i;if(Ji(t,this.left,this.right)&&Ji(A,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(r=i[n],Ji(t,r.left,r.left+r.width)&&Ji(A,r.top,r.top+r.height))return this.legendItems[n]}return null}handleEvent(t){const A=this.options;if(!$M(t.type,A))return;const n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const r=this._hoveredItem,i=jM(r,n);r&&!i&&hA(A.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!i&&hA(A.onHover,[t,n,this],this)}else n&&hA(A.onClick,[t,n,this],this)}}function GM(e,t,A,n,r){const i=WM(n,e,t,A),s=zM(r,n,t.lineHeight);return{itemWidth:i,itemHeight:s}}function WM(e,t,A,n){let r=e.text;return r&&typeof r!="string"&&(r=r.reduce((i,s)=>i.length>s.length?i:s)),t+A.size/2+n.measureText(r).width}function zM(e,t,A){let n=e;return typeof t.text!="string"&&(n=$C(t,A)),n}function $C(e,t){const A=e.text?e.text.length:0;return t*A}function $M(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var qM={id:"legend",_element:vv,start(e,t,A){const n=e.legend=new vv({ctx:e.ctx,options:A,chart:e});En.configure(e,n,A),En.addBox(e,n)},stop(e){En.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,A){const n=e.legend;En.configure(e,n,A),n.options=A},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,A){const n=t.datasetIndex,r=A.chart;r.isDatasetVisible(n)?(r.hide(n),t.hidden=!0):(r.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:A,pointStyle:n,textAlign:r,color:i,useBorderRadius:s,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map(a=>{const l=a.controller.getStyle(A?0:void 0),c=Sn(l.borderWidth);return{text:t[a.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!a.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:s&&(o||l.borderRadius),datasetIndex:a.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class y1 extends as{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,A){const n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=A;const r=yA(n.text)?n.text.length:1;this._padding=Sn(n.padding);const i=r*ZA(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:A,left:n,bottom:r,right:i,options:s}=this,o=s.align;let a=0,l,c,u;return this.isHorizontal()?(c=Cn(o,n,i),u=A+t,l=i-n):(s.position==="left"?(c=n+t,u=Cn(o,r,A),a=Ve*-.5):(c=i-t,u=Cn(o,A,r),a=Ve*.5),l=r-A),{titleX:c,titleY:u,maxWidth:l,rotation:a}}draw(){const t=this.ctx,A=this.options;if(!A.display)return;const n=ZA(A.font),i=n.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:a,rotation:l}=this._drawArgs(i);$o(t,A.text,0,0,n,{color:A.color,maxWidth:a,rotation:l,textAlign:h1(A.align),textBaseline:"middle",translation:[s,o]})}}function XM(e,t){const A=new y1({ctx:e.ctx,options:t,chart:e});En.configure(e,A,t),En.addBox(e,A),e.titleBlock=A}var YM={id:"title",_element:y1,start(e,t,A){XM(e,A)},stop(e){const t=e.titleBlock;En.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,A){const n=e.titleBlock;En.configure(e,n,A),n.options=A},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Sf=new WeakMap;var JM={id:"subtitle",start(e,t,A){const n=new y1({ctx:e.ctx,options:A,chart:e});En.configure(e,n,A),En.addBox(e,n),Sf.set(e,n)},stop(e){En.removeBox(e,Sf.get(e)),Sf.delete(e)},beforeUpdate(e,t,A){const n=Sf.get(e);En.configure(e,n,A),n.options=A},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ic={average(e){if(!e.length)return!1;let t,A,n=new Set,r=0,i=0;for(t=0,A=e.length;t<A;++t){const o=e[t].element;if(o&&o.hasValue()){const a=o.tooltipPosition();n.add(a.x),r+=a.y,++i}}return i===0||n.size===0?!1:{x:[...n].reduce((o,a)=>o+a)/n.size,y:r/i}},nearest(e,t){if(!e.length)return!1;let A=t.x,n=t.y,r=Number.POSITIVE_INFINITY,i,s,o;for(i=0,s=e.length;i<s;++i){const a=e[i].element;if(a&&a.hasValue()){const l=a.getCenterPoint(),c=u0(t,l);c<r&&(r=c,o=a)}}if(o){const a=o.tooltipPosition();A=a.x,n=a.y}return{x:A,y:n}}};function si(e,t){return t&&(yA(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Gi(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
||
`)>-1?e.split(`
|
||
`):e}function ZM(e,t){const{element:A,datasetIndex:n,index:r}=t,i=e.getDatasetMeta(n).controller,{label:s,value:o}=i.getLabelAndValue(r);return{chart:e,label:s,parsed:i.getParsed(r),raw:e.data.datasets[n].data[r],formattedValue:o,dataset:i.getDataset(),dataIndex:r,datasetIndex:n,element:A}}function bv(e,t){const A=e.chart.ctx,{body:n,footer:r,title:i}=e,{boxWidth:s,boxHeight:o}=t,a=ZA(t.bodyFont),l=ZA(t.titleFont),c=ZA(t.footerFont),u=i.length,d=r.length,f=n.length,m=Sn(t.padding);let B=m.height,v=0,b=n.reduce((_,H)=>_+H.before.length+H.lines.length+H.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,u&&(B+=u*l.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){const _=t.displayColors?Math.max(o,a.lineHeight):a.lineHeight;B+=f*_+(b-f)*a.lineHeight+(b-1)*t.bodySpacing}d&&(B+=t.footerMarginTop+d*c.lineHeight+(d-1)*t.footerSpacing);let C=0;const Q=function(_){v=Math.max(v,A.measureText(_).width+C)};return A.save(),A.font=l.string,Je(e.title,Q),A.font=a.string,Je(e.beforeBody.concat(e.afterBody),Q),C=t.displayColors?s+2+t.boxPadding:0,Je(n,_=>{Je(_.before,Q),Je(_.lines,Q),Je(_.after,Q)}),C=0,A.font=c.string,Je(e.footer,Q),A.restore(),v+=m.width,{width:v,height:B}}function tT(e,t){const{y:A,height:n}=t;return A<n/2?"top":A>e.height-n/2?"bottom":"center"}function eT(e,t,A,n){const{x:r,width:i}=n,s=A.caretSize+A.caretPadding;if(e==="left"&&r+i+s>t.width||e==="right"&&r-i-s<0)return!0}function AT(e,t,A,n){const{x:r,width:i}=A,{width:s,chartArea:{left:o,right:a}}=e;let l="center";return n==="center"?l=r<=(o+a)/2?"left":"right":r<=i/2?l="left":r>=s-i/2&&(l="right"),eT(l,e,t,A)&&(l="center"),l}function yv(e,t,A){const n=A.yAlign||t.yAlign||tT(e,A);return{xAlign:A.xAlign||t.xAlign||AT(e,t,A,n),yAlign:n}}function nT(e,t){let{x:A,width:n}=e;return t==="right"?A-=n:t==="center"&&(A-=n/2),A}function rT(e,t,A){let{y:n,height:r}=e;return t==="top"?n+=A:t==="bottom"?n-=r+A:n-=r/2,n}function Cv(e,t,A,n){const{caretSize:r,caretPadding:i,cornerRadius:s}=e,{xAlign:o,yAlign:a}=A,l=r+i,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=Ko(s);let m=nT(t,o);const B=rT(t,a,l);return a==="center"?o==="left"?m+=l:o==="right"&&(m-=l):o==="left"?m-=Math.max(c,d)+r:o==="right"&&(m+=Math.max(u,f)+r),{x:nn(m,0,n.width-t.width),y:nn(B,0,n.height-t.height)}}function Lf(e,t,A){const n=Sn(A.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function xv(e){return si([],Gi(e))}function iT(e,t,A){return Js(e,{tooltip:t,tooltipItems:A,type:"tooltip"})}function Fv(e,t){const A=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return A?e.override(A):e}const qC={beforeTitle:Vi,title(e){if(e.length>0){const t=e[0],A=t.chart.data.labels,n=A?A.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return A[t.dataIndex]}return""},afterTitle:Vi,beforeBody:Vi,beforeLabel:Vi,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const A=e.formattedValue;return Ne(A)||(t+=A),t},labelColor(e){const A=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:A.borderColor,backgroundColor:A.backgroundColor,borderWidth:A.borderWidth,borderDash:A.borderDash,borderDashOffset:A.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const A=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:A.pointStyle,rotation:A.rotation}},afterLabel:Vi,afterBody:Vi,beforeFooter:Vi,footer:Vi,afterFooter:Vi};function Wn(e,t,A,n){const r=e[t].call(A,n);return typeof r>"u"?qC[t].call(A,n):r}class v0 extends as{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const A=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&A.options.animation&&n.animations,i=new QC(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=iT(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,A){const{callbacks:n}=A,r=Wn(n,"beforeTitle",this,t),i=Wn(n,"title",this,t),s=Wn(n,"afterTitle",this,t);let o=[];return o=si(o,Gi(r)),o=si(o,Gi(i)),o=si(o,Gi(s)),o}getBeforeBody(t,A){return xv(Wn(A.callbacks,"beforeBody",this,t))}getBody(t,A){const{callbacks:n}=A,r=[];return Je(t,i=>{const s={before:[],lines:[],after:[]},o=Fv(n,i);si(s.before,Gi(Wn(o,"beforeLabel",this,i))),si(s.lines,Wn(o,"label",this,i)),si(s.after,Gi(Wn(o,"afterLabel",this,i))),r.push(s)}),r}getAfterBody(t,A){return xv(Wn(A.callbacks,"afterBody",this,t))}getFooter(t,A){const{callbacks:n}=A,r=Wn(n,"beforeFooter",this,t),i=Wn(n,"footer",this,t),s=Wn(n,"afterFooter",this,t);let o=[];return o=si(o,Gi(r)),o=si(o,Gi(i)),o=si(o,Gi(s)),o}_createItems(t){const A=this._active,n=this.chart.data,r=[],i=[],s=[];let o=[],a,l;for(a=0,l=A.length;a<l;++a)o.push(ZM(this.chart,A[a]));return t.filter&&(o=o.filter((c,u,d)=>t.filter(c,u,d,n))),t.itemSort&&(o=o.sort((c,u)=>t.itemSort(c,u,n))),Je(o,c=>{const u=Fv(t.callbacks,c);r.push(Wn(u,"labelColor",this,c)),i.push(Wn(u,"labelPointStyle",this,c)),s.push(Wn(u,"labelTextColor",this,c))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=o,o}update(t,A){const n=this.options.setContext(this.getContext()),r=this._active;let i,s=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{const o=ic[n.position].call(this,r,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const a=this._size=bv(this,n),l=Object.assign({},o,a),c=yv(this.chart,n,l),u=Cv(n,l,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,i={opacity:1,x:u.x,y:u.y,width:a.width,height:a.height,caretX:o.x,caretY:o.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:A})}drawCaret(t,A,n,r){const i=this.getCaretPosition(t,n,r);A.lineTo(i.x1,i.y1),A.lineTo(i.x2,i.y2),A.lineTo(i.x3,i.y3)}getCaretPosition(t,A,n){const{xAlign:r,yAlign:i}=this,{caretSize:s,cornerRadius:o}=n,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:u}=Ko(o),{x:d,y:f}=t,{width:m,height:B}=A;let v,b,C,Q,_,H;return i==="center"?(_=f+B/2,r==="left"?(v=d,b=v-s,Q=_+s,H=_-s):(v=d+m,b=v+s,Q=_-s,H=_+s),C=v):(r==="left"?b=d+Math.max(a,c)+s:r==="right"?b=d+m-Math.max(l,u)-s:b=this.caretX,i==="top"?(Q=f,_=Q-s,v=b-s,C=b+s):(Q=f+B,_=Q+s,v=b+s,C=b-s),H=Q),{x1:v,x2:b,x3:C,y1:Q,y2:_,y3:H}}drawTitle(t,A,n){const r=this.title,i=r.length;let s,o,a;if(i){const l=qa(n.rtl,this.x,this.width);for(t.x=Lf(this,n.titleAlign,n),A.textAlign=l.textAlign(n.titleAlign),A.textBaseline="middle",s=ZA(n.titleFont),o=n.titleSpacing,A.fillStyle=n.titleColor,A.font=s.string,a=0;a<i;++a)A.fillText(r[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+o,a+1===i&&(t.y+=n.titleMarginBottom-o)}}_drawColorBox(t,A,n,r,i){const s=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:a,boxWidth:l}=i,c=ZA(i.bodyFont),u=Lf(this,"left",i),d=r.x(u),f=a<c.lineHeight?(c.lineHeight-a)/2:0,m=A.y+f;if(i.usePointStyle){const B={radius:Math.min(l,a)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},v=r.leftForLtr(d,l)+l/2,b=m+a/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,h0(t,B,v,b),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,h0(t,B,v,b)}else{t.lineWidth=He(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const B=r.leftForLtr(d,l),v=r.leftForLtr(r.xPlus(d,1),l-2),b=Ko(s.borderRadius);Object.values(b).some(C=>C!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Gc(t,{x:B,y:m,w:l,h:a,radius:b}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Gc(t,{x:v,y:m+1,w:l-2,h:a-2,radius:b}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(B,m,l,a),t.strokeRect(B,m,l,a),t.fillStyle=s.backgroundColor,t.fillRect(v,m+1,l-2,a-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,A,n){const{body:r}=this,{bodySpacing:i,bodyAlign:s,displayColors:o,boxHeight:a,boxWidth:l,boxPadding:c}=n,u=ZA(n.bodyFont);let d=u.lineHeight,f=0;const m=qa(n.rtl,this.x,this.width),B=function(O){A.fillText(O,m.x(t.x+f),t.y+d/2),t.y+=d+i},v=m.textAlign(s);let b,C,Q,_,H,W,R;for(A.textAlign=s,A.textBaseline="middle",A.font=u.string,t.x=Lf(this,v,n),A.fillStyle=n.bodyColor,Je(this.beforeBody,B),f=o&&v!=="right"?s==="center"?l/2+c:l+2+c:0,_=0,W=r.length;_<W;++_){for(b=r[_],C=this.labelTextColors[_],A.fillStyle=C,Je(b.before,B),Q=b.lines,o&&Q.length&&(this._drawColorBox(A,t,_,m,n),d=Math.max(u.lineHeight,a)),H=0,R=Q.length;H<R;++H)B(Q[H]),d=u.lineHeight;Je(b.after,B)}f=0,d=u.lineHeight,Je(this.afterBody,B),t.y-=i}drawFooter(t,A,n){const r=this.footer,i=r.length;let s,o;if(i){const a=qa(n.rtl,this.x,this.width);for(t.x=Lf(this,n.footerAlign,n),t.y+=n.footerMarginTop,A.textAlign=a.textAlign(n.footerAlign),A.textBaseline="middle",s=ZA(n.footerFont),A.fillStyle=n.footerColor,A.font=s.string,o=0;o<i;++o)A.fillText(r[o],a.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+n.footerSpacing}}drawBackground(t,A,n,r){const{xAlign:i,yAlign:s}=this,{x:o,y:a}=t,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:m}=Ko(r.cornerRadius);A.fillStyle=r.backgroundColor,A.strokeStyle=r.borderColor,A.lineWidth=r.borderWidth,A.beginPath(),A.moveTo(o+u,a),s==="top"&&this.drawCaret(t,A,n,r),A.lineTo(o+l-d,a),A.quadraticCurveTo(o+l,a,o+l,a+d),s==="center"&&i==="right"&&this.drawCaret(t,A,n,r),A.lineTo(o+l,a+c-m),A.quadraticCurveTo(o+l,a+c,o+l-m,a+c),s==="bottom"&&this.drawCaret(t,A,n,r),A.lineTo(o+f,a+c),A.quadraticCurveTo(o,a+c,o,a+c-f),s==="center"&&i==="left"&&this.drawCaret(t,A,n,r),A.lineTo(o,a+u),A.quadraticCurveTo(o,a,o+u,a),A.closePath(),A.fill(),r.borderWidth>0&&A.stroke()}_updateAnimationTarget(t){const A=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const s=ic[t.position].call(this,this._active,this._eventPosition);if(!s)return;const o=this._size=bv(this,t),a=Object.assign({},s,this._size),l=yv(A,t,a),c=Cv(t,a,l,A);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=o.width,this.height=o.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const A=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(A);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=Sn(A.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;A.enabled&&o&&(t.save(),t.globalAlpha=n,this.drawBackground(i,t,r,A),yC(t,A.textDirection),i.y+=s.top,this.drawTitle(i,t,A),this.drawBody(i,t,A),this.drawFooter(i,t,A),CC(t,A.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,A){const n=this._active,r=t.map(({datasetIndex:o,index:a})=>{const l=this.chart.getDatasetMeta(o);if(!l)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:l.data[a],index:a}}),i=!Eh(n,r),s=this._positionChanged(r,A);(i||s)&&(this._active=r,this._eventPosition=A,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,A,n=!0){if(A&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],s=this._getActiveElements(t,i,A,n),o=this._positionChanged(s,t),a=A||!Eh(s,i)||o;return a&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,A))),a}_getActiveElements(t,A,n,r){const i=this.options;if(t.type==="mouseout")return[];if(!r)return A.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,i.mode,i,n);return i.reverse&&s.reverse(),s}_positionChanged(t,A){const{caretX:n,caretY:r,options:i}=this,s=ic[i.position].call(this,t,A);return s!==!1&&(n!==s.x||r!==s.y)}}Nt(v0,"positioners",ic);var sT={id:"tooltip",_element:v0,positioners:ic,afterInit(e,t,A){A&&(e.tooltip=new v0({chart:e,options:A}))},beforeUpdate(e,t,A){e.tooltip&&e.tooltip.initialize(A)},reset(e,t,A){e.tooltip&&e.tooltip.initialize(A)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const A={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...A,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",A)}},afterEvent(e,t){if(e.tooltip){const A=t.replay;e.tooltip.handleEvent(t.event,A,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:qC},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},oT=Object.freeze({__proto__:null,Colors:wM,Decimation:CM,Filler:VM,Legend:qM,SubTitle:JM,Title:YM,Tooltip:sT});const aT=(e,t,A,n)=>(typeof t=="string"?(A=e.push(t)-1,n.unshift({index:A,label:t})):isNaN(t)&&(A=null),A);function lT(e,t,A,n){const r=e.indexOf(t);if(r===-1)return aT(e,t,A,n);const i=e.lastIndexOf(t);return r!==i?A:r}const cT=(e,t)=>e===null?null:nn(Math.round(e),0,t);function _v(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class b0 extends Yo{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const A=this._addedLabels;if(A.length){const n=this.getLabels();for(const{index:r,label:i}of A)n[r]===i&&n.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,A){if(Ne(t))return null;const n=this.getLabels();return A=isFinite(A)&&n[A]===t?A:lT(n,t,Ce(A,t),this._addedLabels),cT(A,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:A}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(n=0),A||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const t=this.min,A=this.max,n=this.options.offset,r=[];let i=this.getLabels();i=t===0&&A===i.length-1?i:i.slice(t,A+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let s=t;s<=A;s++)r.push({value:s});return r}getLabelForValue(t){return _v.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const A=this.ticks;return t<0||t>A.length-1?null:this.getPixelForValue(A[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Nt(b0,"id","category"),Nt(b0,"defaults",{ticks:{callback:_v}});function uT(e,t){const A=[],{bounds:r,step:i,min:s,max:o,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,f=i||1,m=c-1,{min:B,max:v}=t,b=!Ne(s),C=!Ne(o),Q=!Ne(l),_=(v-B)/(u+1);let H=bw((v-B)/m/f)*f,W,R,O,k;if(H<1e-14&&!b&&!C)return[{value:B},{value:v}];k=Math.ceil(v/H)-Math.floor(B/H),k>m&&(H=bw(k*H/m/f)*f),Ne(a)||(W=Math.pow(10,a),H=Math.ceil(H*W)/W),r==="ticks"?(R=Math.floor(B/H)*H,O=Math.ceil(v/H)*H):(R=B,O=v),b&&C&&i&&nN((o-s)/i,H/1e3)?(k=Math.round(Math.min((o-s)/H,c)),H=(o-s)/k,R=s,O=o):Q?(R=b?s:R,O=C?o:O,k=l-1,H=(O-R)/k):(k=(O-R)/H,xc(k,Math.round(k),H/1e3)?k=Math.round(k):k=Math.ceil(k));const V=Math.max(yw(H),yw(R));W=Math.pow(10,Ne(a)?V:a),R=Math.round(R*W)/W,O=Math.round(O*W)/W;let F=0;for(b&&(d&&R!==s?(A.push({value:s}),R<s&&F++,xc(Math.round((R+F*H)*W)/W,s,Uv(s,_,e))&&F++):R<s&&F++);F<k;++F){const L=Math.round((R+F*H)*W)/W;if(C&&L>o)break;A.push({value:L})}return C&&d&&O!==o?A.length&&xc(A[A.length-1].value,o,Uv(o,_,e))?A[A.length-1].value=o:A.push({value:o}):(!C||O===o)&&A.push({value:O}),A}function Uv(e,t,{horizontal:A,minRotation:n}){const r=Mr(n),i=(A?Math.sin(r):Math.cos(r))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class Hh extends Yo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,A){return Ne(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:A,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this;const s=a=>r=A?r:a,o=a=>i=n?i:a;if(t){const a=pi(r),l=pi(i);a<0&&l<0?o(0):a>0&&l>0&&s(0)}if(r===i){let a=i===0?1:Math.abs(i*.05);o(i+a),t||s(r-a)}this.min=r,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:A,stepSize:n}=t,r;return n?(r=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),A=A||11),A&&(r=Math.min(A,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,A=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:A.precision,step:A.stepSize,count:A.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:A.minRotation||0,includeBounds:A.includeBounds!==!1},i=this._range||this,s=uT(r,i);return t.bounds==="ticks"&&iC(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let A=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const r=(n-A)/Math.max(t.length-1,1)/2;A-=r,n+=r}this._startValue=A,this._endValue=n,this._valueRange=n-A}getLabelForValue(t){return Au(t,this.chart.options.locale,this.options.ticks.format)}}class y0 extends Hh{determineDataLimits(){const{min:t,max:A}=this.getMinMax(!0);this.min=SA(t)?t:0,this.max=SA(A)?A:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),A=t?this.width:this.height,n=Mr(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(A/Math.min(40,i.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Nt(y0,"id","linear"),Nt(y0,"defaults",{ticks:{callback:ld.formatters.numeric}});const zc=e=>Math.floor(Os(e)),Fo=(e,t)=>Math.pow(10,zc(e)+t);function Qv(e){return e/Math.pow(10,zc(e))===1}function Ev(e,t,A){const n=Math.pow(10,A),r=Math.floor(e/n);return Math.ceil(t/n)-r}function fT(e,t){const A=t-e;let n=zc(A);for(;Ev(e,t,n)>10;)n++;for(;Ev(e,t,n)<10;)n--;return Math.min(n,zc(e))}function hT(e,{min:t,max:A}){t=ar(e.min,t);const n=[],r=zc(t);let i=fT(t,A),s=i<0?Math.pow(10,Math.abs(i)):1;const o=Math.pow(10,i),a=r>i?Math.pow(10,r):0,l=Math.round((t-a)*s)/s,c=Math.floor((t-a)/o/10)*o*10;let u=Math.floor((l-c)/Math.pow(10,i)),d=ar(e.min,Math.round((a+c+u*Math.pow(10,i))*s)/s);for(;d<A;)n.push({value:d,major:Qv(d),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(i++,u=2,s=i>=0?1:s),d=Math.round((a+c+u*Math.pow(10,i))*s)/s;const f=ar(e.max,d);return n.push({value:f,major:Qv(f),significand:u}),n}class C0 extends Yo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,A){const n=Hh.prototype.parse.apply(this,[t,A]);if(n===0){this._zero=!0;return}return SA(n)&&n>0?n:null}determineDataLimits(){const{min:t,max:A}=this.getMinMax(!0);this.min=SA(t)?Math.max(0,t):null,this.max=SA(A)?Math.max(0,A):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!SA(this._userMin)&&(this.min=t===Fo(this.min,0)?Fo(this.min,-1):Fo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:A}=this.getUserBounds();let n=this.min,r=this.max;const i=o=>n=t?n:o,s=o=>r=A?r:o;n===r&&(n<=0?(i(1),s(10)):(i(Fo(n,-1)),s(Fo(r,1)))),n<=0&&i(Fo(r,-1)),r<=0&&s(Fo(n,1)),this.min=n,this.max=r}buildTicks(){const t=this.options,A={min:this._userMin,max:this._userMax},n=hT(A,this);return t.bounds==="ticks"&&iC(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(t){return t===void 0?"0":Au(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Os(t),this._valueRange=Os(this.max)-Os(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Os(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const A=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+A*this._valueRange)}}Nt(C0,"id","logarithmic"),Nt(C0,"defaults",{ticks:{callback:ld.formatters.logarithmic,major:{enabled:!0}}});function x0(e){const t=e.ticks;if(t.display&&e.display){const A=Sn(t.backdropPadding);return Ce(t.font&&t.font.size,CA.font.size)+A.height}return 0}function dT(e,t,A){return A=yA(A)?A:[A],{w:vN(e,t.string,A),h:A.length*t.lineHeight}}function Iv(e,t,A,n,r){return e===n||e===r?{start:t-A/2,end:t+A/2}:e<n||e>r?{start:t-A,end:t}:{start:t,end:t+A}}function gT(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},A=Object.assign({},t),n=[],r=[],i=e._pointLabels.length,s=e.options.pointLabels,o=s.centerPointLabels?Ve/i:0;for(let a=0;a<i;a++){const l=s.setContext(e.getPointLabelContext(a));r[a]=l.padding;const c=e.getPointPosition(a,e.drawingArea+r[a],o),u=ZA(l.font),d=dT(e.ctx,u,e._pointLabels[a]);n[a]=d;const f=_n(e.getIndexAngle(a)+o),m=Math.round(u1(f)),B=Iv(m,c.x,d.w,0,180),v=Iv(m,c.y,d.h,90,270);pT(A,t,f,B,v)}e.setCenterPoint(t.l-A.l,A.r-t.r,t.t-A.t,A.b-t.b),e._pointLabelItems=wT(e,n,r)}function pT(e,t,A,n,r){const i=Math.abs(Math.sin(A)),s=Math.abs(Math.cos(A));let o=0,a=0;n.start<t.l?(o=(t.l-n.start)/i,e.l=Math.min(e.l,t.l-o)):n.end>t.r&&(o=(n.end-t.r)/i,e.r=Math.max(e.r,t.r+o)),r.start<t.t?(a=(t.t-r.start)/s,e.t=Math.min(e.t,t.t-a)):r.end>t.b&&(a=(r.end-t.b)/s,e.b=Math.max(e.b,t.b+a))}function mT(e,t,A){const n=e.drawingArea,{extra:r,additionalAngle:i,padding:s,size:o}=A,a=e.getPointPosition(t,n+r+s,i),l=Math.round(u1(_n(a.angle+RA))),c=yT(a.y,o.h,l),u=vT(l),d=bT(a.x,o.w,u);return{visible:!0,x:a.x,y:c,textAlign:u,left:d,top:c,right:d+o.w,bottom:c+o.h}}function BT(e,t){if(!t)return!0;const{left:A,top:n,right:r,bottom:i}=e;return!(ts({x:A,y:n},t)||ts({x:A,y:i},t)||ts({x:r,y:n},t)||ts({x:r,y:i},t))}function wT(e,t,A){const n=[],r=e._pointLabels.length,i=e.options,{centerPointLabels:s,display:o}=i.pointLabels,a={extra:x0(i)/2,additionalAngle:s?Ve/r:0};let l;for(let c=0;c<r;c++){a.padding=A[c],a.size=t[c];const u=mT(e,c,a);n.push(u),o==="auto"&&(u.visible=BT(u,l),u.visible&&(l=u))}return n}function vT(e){return e===0||e===180?"center":e<180?"left":"right"}function bT(e,t,A){return A==="right"?e-=t:A==="center"&&(e-=t/2),e}function yT(e,t,A){return A===90||A===270?e-=t/2:(A>270||A<90)&&(e-=t),e}function CT(e,t,A){const{left:n,top:r,right:i,bottom:s}=A,{backdropColor:o}=t;if(!Ne(o)){const a=Ko(t.borderRadius),l=Sn(t.backdropPadding);e.fillStyle=o;const c=n-l.left,u=r-l.top,d=i-n+l.width,f=s-r+l.height;Object.values(a).some(m=>m!==0)?(e.beginPath(),Gc(e,{x:c,y:u,w:d,h:f,radius:a}),e.fill()):e.fillRect(c,u,d,f)}}function xT(e,t){const{ctx:A,options:{pointLabels:n}}=e;for(let r=t-1;r>=0;r--){const i=e._pointLabelItems[r];if(!i.visible)continue;const s=n.setContext(e.getPointLabelContext(r));CT(A,s,i);const o=ZA(s.font),{x:a,y:l,textAlign:c}=i;$o(A,e._pointLabels[r],a,l+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}function XC(e,t,A,n){const{ctx:r}=e;if(A)r.arc(e.xCenter,e.yCenter,t,0,BA);else{let i=e.getPointPosition(0,t);r.moveTo(i.x,i.y);for(let s=1;s<n;s++)i=e.getPointPosition(s,t),r.lineTo(i.x,i.y)}}function FT(e,t,A,n,r){const i=e.ctx,s=t.circular,{color:o,lineWidth:a}=t;!s&&!n||!o||!a||A<0||(i.save(),i.strokeStyle=o,i.lineWidth=a,i.setLineDash(r.dash||[]),i.lineDashOffset=r.dashOffset,i.beginPath(),XC(e,A,s,n),i.closePath(),i.stroke(),i.restore())}function _T(e,t,A){return Js(e,{label:A,index:t,type:"pointLabel"})}class sc extends Hh{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Sn(x0(this.options)/2),A=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+A/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(A,n)/2)}determineDataLimits(){const{min:t,max:A}=this.getMinMax(!1);this.min=SA(t)&&!isNaN(t)?t:0,this.max=SA(A)&&!isNaN(A)?A:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/x0(this.options))}generateTickLabels(t){Hh.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((A,n)=>{const r=hA(this.options.pointLabels.callback,[A,n],this);return r||r===0?r:""}).filter((A,n)=>this.chart.getDataVisibility(n))}fit(){const t=this.options;t.display&&t.pointLabels.display?gT(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,A,n,r){this.xCenter+=Math.floor((t-A)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,A,n,r))}getIndexAngle(t){const A=BA/(this._pointLabels.length||1),n=this.options.startAngle||0;return _n(t*A+Mr(n))}getDistanceFromCenterForValue(t){if(Ne(t))return NaN;const A=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*A:(t-this.min)*A}getValueForDistanceFromCenter(t){if(Ne(t))return NaN;const A=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-A:this.min+A}getPointLabelContext(t){const A=this._pointLabels||[];if(t>=0&&t<A.length){const n=A[t];return _T(this.getContext(),t,n)}}getPointPosition(t,A,n=0){const r=this.getIndexAngle(t)-RA+n;return{x:Math.cos(r)*A+this.xCenter,y:Math.sin(r)*A+this.yCenter,angle:r}}getPointPositionForValue(t,A){return this.getPointPosition(t,this.getDistanceFromCenterForValue(A))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:A,top:n,right:r,bottom:i}=this._pointLabelItems[t];return{left:A,top:n,right:r,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:A}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),XC(this,this.getDistanceFromCenterForValue(this._endValue),A,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,A=this.options,{angleLines:n,grid:r,border:i}=A,s=this._pointLabels.length;let o,a,l;if(A.pointLabels.display&&xT(this,s),r.display&&this.ticks.forEach((c,u)=>{if(u!==0||u===0&&this.min<0){a=this.getDistanceFromCenterForValue(c.value);const d=this.getContext(u),f=r.setContext(d),m=i.setContext(d);FT(this,f,a,s,m)}}),n.display){for(t.save(),o=s-1;o>=0;o--){const c=n.setContext(this.getPointLabelContext(o)),{color:u,lineWidth:d}=c;!d||!u||(t.lineWidth=d,t.strokeStyle=u,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(A.reverse?this.min:this.max),l=this.getPointPosition(o,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,A=this.options,n=A.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let i,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,a)=>{if(a===0&&this.min>=0&&!A.reverse)return;const l=n.setContext(this.getContext(a)),c=ZA(l.font);if(i=this.getDistanceFromCenterForValue(this.ticks[a].value),l.showLabelBackdrop){t.font=c.string,s=t.measureText(o.label).width,t.fillStyle=l.backdropColor;const u=Sn(l.backdropPadding);t.fillRect(-s/2-u.left,-i-c.size/2-u.top,s+u.width,c.size+u.height)}$o(t,o.label,0,-i,c,{color:l.color,strokeColor:l.textStrokeColor,strokeWidth:l.textStrokeWidth})}),t.restore()}drawTitle(){}}Nt(sc,"id","radialLinear"),Nt(sc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ld.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Nt(sc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Nt(sc,"descriptors",{angleLines:{_fallback:"grid"}});const gd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Yn=Object.keys(gd);function Sv(e,t){return e-t}function Lv(e,t){if(Ne(t))return null;const A=e._adapter,{parser:n,round:r,isoWeekday:i}=e._parseOpts;let s=t;return typeof n=="function"&&(s=n(s)),SA(s)||(s=typeof n=="string"?A.parse(s,n):A.parse(s)),s===null?null:(r&&(s=r==="week"&&(Al(i)||i===!0)?A.startOf(s,"isoWeek",i):A.startOf(s,r)),+s)}function kv(e,t,A,n){const r=Yn.length;for(let i=Yn.indexOf(e);i<r-1;++i){const s=gd[Yn[i]],o=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((A-t)/(o*s.size))<=n)return Yn[i]}return Yn[r-1]}function UT(e,t,A,n,r){for(let i=Yn.length-1;i>=Yn.indexOf(A);i--){const s=Yn[i];if(gd[s].common&&e._adapter.diff(r,n,s)>=t-1)return s}return Yn[A?Yn.indexOf(A):0]}function QT(e){for(let t=Yn.indexOf(e)+1,A=Yn.length;t<A;++t)if(gd[Yn[t]].common)return Yn[t]}function Nv(e,t,A){if(!A)e[t]=!0;else if(A.length){const{lo:n,hi:r}=f1(A,t),i=A[n]>=t?A[n]:A[r];e[i]=!0}}function ET(e,t,A,n){const r=e._adapter,i=+r.startOf(t[0].value,n),s=t[t.length-1].value;let o,a;for(o=i;o<=s;o=+r.add(o,1,n))a=A[o],a>=0&&(t[a].major=!0);return t}function Dv(e,t,A){const n=[],r={},i=t.length;let s,o;for(s=0;s<i;++s)o=t[s],r[o]=s,n.push({value:o,major:!1});return i===0||!A?n:ET(e,n,r,A)}class $c extends Yo{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,A={}){const n=t.time||(t.time={}),r=this._adapter=new MD._date(t.adapters.date);r.init(A),Cc(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=A.normalized}parse(t,A){return t===void 0?null:Lv(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,A=this._adapter,n=t.time.unit||"day";let{min:r,max:i,minDefined:s,maxDefined:o}=this.getUserBounds();function a(l){!s&&!isNaN(l.min)&&(r=Math.min(r,l.min)),!o&&!isNaN(l.max)&&(i=Math.max(i,l.max))}(!s||!o)&&(a(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&a(this.getMinMax(!1))),r=SA(r)&&!isNaN(r)?r:+A.startOf(Date.now(),n),i=SA(i)&&!isNaN(i)?i:+A.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let A=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(A=t[0],n=t[t.length-1]),{min:A,max:n}}buildTicks(){const t=this.options,A=t.time,n=t.ticks,r=n.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const i=this.min,s=this.max,o=oN(r,i,s);return this._unit=A.unit||(n.autoSkip?kv(A.minUnit,this.min,this.max,this._getLabelCapacity(i)):UT(this,o.length,A.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:QT(this._unit),this.initOffsets(r),t.reverse&&o.reverse(),Dv(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let A=0,n=0,r,i;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?A=1-r:A=(this.getDecimalForValue(t[1])-r)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?n=i:n=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;A=nn(A,0,s),n=nn(n,0,s),this._offsets={start:A,end:n,factor:1/(A+1+n)}}_generate(){const t=this._adapter,A=this.min,n=this.max,r=this.options,i=r.time,s=i.unit||kv(i.minUnit,A,n,this._getLabelCapacity(A)),o=Ce(r.ticks.stepSize,1),a=s==="week"?i.isoWeekday:!1,l=Al(a)||a===!0,c={};let u=A,d,f;if(l&&(u=+t.startOf(u,"isoWeek",a)),u=+t.startOf(u,l?"day":s),t.diff(n,A,s)>1e5*o)throw new Error(A+" and "+n+" are too far apart with stepSize of "+o+" "+s);const m=r.ticks.source==="data"&&this.getDataTimestamps();for(d=u,f=0;d<n;d=+t.add(d,o,s),f++)Nv(c,d,m);return(d===n||r.bounds==="ticks"||f===1)&&Nv(c,d,m),Object.keys(c).sort(Sv).map(B=>+B)}getLabelForValue(t){const A=this._adapter,n=this.options.time;return n.tooltipFormat?A.format(t,n.tooltipFormat):A.format(t,n.displayFormats.datetime)}format(t,A){const r=this.options.time.displayFormats,i=this._unit,s=A||r[i];return this._adapter.format(t,s)}_tickFormatFunction(t,A,n,r){const i=this.options,s=i.ticks.callback;if(s)return hA(s,[t,A,n],this);const o=i.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&o[a],u=l&&o[l],d=n[A],f=l&&u&&d&&d.major;return this._adapter.format(t,r||(f?u:c))}generateTickLabels(t){let A,n,r;for(A=0,n=t.length;A<n;++A)r=t[A],r.label=this._tickFormatFunction(r.value,A,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const A=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((A.start+n)*A.factor)}getValueForPixel(t){const A=this._offsets,n=this.getDecimalForPixel(t)/A.factor-A.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const A=this.options.ticks,n=this.ctx.measureText(t).width,r=Mr(this.isHorizontal()?A.maxRotation:A.minRotation),i=Math.cos(r),s=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*s,h:n*s+o*i}}_getLabelCapacity(t){const A=this.options.time,n=A.displayFormats,r=n[A.unit]||n.millisecond,i=this._tickFormatFunction(t,0,Dv(this,[t],this._majorUnit),r),s=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o:1}getDataTimestamps(){let t=this._cache.data||[],A,n;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(A=0,n=r.length;A<n;++A)t=t.concat(r[A].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let A,n;if(t.length)return t;const r=this.getLabels();for(A=0,n=r.length;A<n;++A)t.push(Lv(this,r[A]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return aC(t.sort(Sv))}}Nt($c,"id","time"),Nt($c,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function kf(e,t,A){let n=0,r=e.length-1,i,s,o,a;A?(t>=e[n].pos&&t<=e[r].pos&&({lo:n,hi:r}=Zi(e,"pos",t)),{pos:i,time:o}=e[n],{pos:s,time:a}=e[r]):(t>=e[n].time&&t<=e[r].time&&({lo:n,hi:r}=Zi(e,"time",t)),{time:i,pos:o}=e[n],{time:s,pos:a}=e[r]);const l=s-i;return l?o+(a-o)*(t-i)/l:o}class F0 extends $c{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),A=this._table=this.buildLookupTable(t);this._minPos=kf(A,this.min),this._tableRange=kf(A,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:A,max:n}=this,r=[],i=[];let s,o,a,l,c;for(s=0,o=t.length;s<o;++s)l=t[s],l>=A&&l<=n&&r.push(l);if(r.length<2)return[{time:A,pos:0},{time:n,pos:1}];for(s=0,o=r.length;s<o;++s)c=r[s+1],a=r[s-1],l=r[s],Math.round((c+a)/2)!==l&&i.push({time:l,pos:s/(o-1)});return i}_generate(){const t=this.min,A=this.max;let n=super.getDataTimestamps();return(!n.includes(t)||!n.length)&&n.splice(0,0,t),(!n.includes(A)||n.length===1)&&n.push(A),n.sort((r,i)=>r-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const A=this.getDataTimestamps(),n=this.getLabelTimestamps();return A.length&&n.length?t=this.normalize(A.concat(n)):t=A.length?A:n,t=this._cache.all=t,t}getDecimalForValue(t){return(kf(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const A=this._offsets,n=this.getDecimalForPixel(t)/A.factor-A.end;return kf(this._table,n*this._tableRange+this._minPos,!0)}}Nt(F0,"id","timeseries"),Nt(F0,"defaults",$c.defaults);var IT=Object.freeze({__proto__:null,CategoryScale:b0,LinearScale:y0,LogarithmicScale:C0,RadialLinearScale:sc,TimeScale:$c,TimeSeriesScale:F0});const ST=[HD,fM,oT,IT];Hr.register(...ST);const LT={class:"card visitor-section"},kT={class:"card-header"},NT={class:"card-body"},DT={class:"chart-container"},HT={key:0,class:"empty-chart-msg"},MT={class:"table-container"},TT={class:"data-table"},OT={class:"text-center"},PT={class:"text-center"},RT={key:0},KT={__name:"VisitorSection",props:{data:Object},setup(e){const t=e,A=ge(null);let n=null;const r=ye(()=>{const o=t.data;if(!(o!=null&&o.table))return[];let a=o.table.filter(d=>d.selected!==!1);const l=o.viewMode||"all",c=o.startDate,u=o.endDate;return(c||u)&&(a=a.filter(d=>{const f=!c||d.date>=c,m=!u||d.date<=u;return f&&m})),l==="week"?a=a.slice(-7):l==="month"&&(a=a.slice(-30)),a.map((d,f)=>{const m=a[f-1];if(!m)return{...d,displayDiff:"-",displayIsUp:!0};const B=parseInt(String(d.value).replace(/,/g,"")),v=parseInt(String(m.value).replace(/,/g,""));if(isNaN(B)||isNaN(v)||v===0)return{...d,displayDiff:"-",displayIsUp:!0};const b=((B-v)/v*100).toFixed(1),C=B>=v,Q=(C?"▲ ":"▼ ")+Math.abs(b)+"%";return{...d,displayDiff:Q,displayIsUp:C}})}),i=ye(()=>{const o=r.value;return!o||o.length===0?[]:[...o]}),s=()=>{if(n&&n.destroy(),!A.value)return;const o=A.value.getContext("2d"),a=r.value,l=a.map(u=>u.date),c=a.map(u=>parseInt(String(u.value).replace(/,/g,""))||0);l.length===0&&(l.push("-"),c.push(0)),n=new Hr(o,{type:"line",data:{labels:l,datasets:[{label:"방문자 수",data:c,borderColor:"#2563eb",backgroundColor:"rgba(37, 99, 235, 0.1)",fill:!0,tension:.4,borderWidth:3}]},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},layout:{padding:{top:0,bottom:0}}}})};return wi(s),Fr(()=>t.data,s,{deep:!0}),(o,a)=>(ht(),Bt("div",LT,[p("div",kT,[p("h3",null,[Vt(qt(IU),{size:20}),a[0]||(a[0]=ie("방문자 수 ",-1))])]),p("div",NT,[Tt(p("div",DT,[p("canvas",{ref_key:"visitorChartCanvas",ref:A},null,512)],512),[[ko,r.value.length>0]]),r.value.length===0?(ht(),Bt("div",HT," 데이터가 충분하지 않아 차트를 불러올 수 없습니다. ")):ue("",!0),p("div",MT,[p("table",TT,[a[2]||(a[2]=p("thead",null,[p("tr",null,[p("th",null,"날짜"),p("th",null,"방문자 수"),p("th",null,"전일 대비")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(i.value,(l,c)=>(ht(),Bt("tr",{key:c},[p("td",OT,kt(l.date||"-"),1),p("td",PT,kt(l.value||"-"),1),p("td",{class:aA(["text-center",l.displayIsUp?"text-up":"text-down"])},kt(l.displayDiff||"-"),3)]))),128)),r.value.length===0?(ht(),Bt("tr",RT,[...a[1]||(a[1]=[p("td",{colspan:"3",class:"empty-table-msg"},"데이터가 없습니다.",-1)])])):ue("",!0)])])])])]))}},VT=LA(KT,[["__scopeId","data-v-87b30dec"]]),jT={class:"card view-section"},GT={class:"card-header"},WT={class:"card-body"},zT={class:"chart-container"},$T={key:0,class:"empty-chart-msg"},qT={class:"table-container"},XT={class:"data-table"},YT={class:"text-center"},JT={class:"text-center"},ZT={key:0},tO={__name:"ViewSection",props:{data:Object},setup(e){const t=e,A=ge(null);let n=null;const r=ye(()=>{const o=t.data;if(!(o!=null&&o.table))return[];let a=o.table.filter(d=>d.selected!==!1);const l=o.viewMode||"all",c=o.startDate,u=o.endDate;return(c||u)&&(a=a.filter(d=>{const f=!c||d.date>=c,m=!u||d.date<=u;return f&&m})),l==="week"?a=a.slice(-7):l==="month"&&(a=a.slice(-30)),a.map((d,f)=>{const m=a[f-1];if(!m)return{...d,displayDiff:"-",displayIsUp:!0};const B=parseInt(String(d.value).replace(/,/g,"")),v=parseInt(String(m.value).replace(/,/g,""));if(isNaN(B)||isNaN(v)||v===0)return{...d,displayDiff:"-",displayIsUp:!0};const b=((B-v)/v*100).toFixed(1),C=B>=v,Q=(C?"▲ ":"▼ ")+Math.abs(b)+"%";return{...d,displayDiff:Q,displayIsUp:C}})}),i=ye(()=>{const o=r.value;return!o||o.length===0?[]:[...o]}),s=()=>{if(n&&n.destroy(),!A.value)return;const o=A.value.getContext("2d"),a=r.value,l=a.map(u=>u.date),c=a.map(u=>parseInt(String(u.value).replace(/,/g,""))||0);l.length===0&&(l.push("-"),c.push(0)),n=new Hr(o,{type:"line",data:{labels:l,datasets:[{label:"조회수",data:c,borderColor:"#0f172a",backgroundColor:"rgba(15, 23, 42, 0.1)",fill:!0,tension:.4,borderWidth:3}]},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},layout:{padding:{top:0,bottom:0}}}})};return wi(s),Fr(()=>t.data,s,{deep:!0}),(o,a)=>(ht(),Bt("div",jT,[p("div",GT,[p("h3",null,[Vt(qt(BU),{size:20}),a[0]||(a[0]=ie("조회수 ",-1))])]),p("div",WT,[Tt(p("div",zT,[p("canvas",{ref_key:"viewChartCanvas",ref:A},null,512)],512),[[ko,r.value.length>0]]),r.value.length===0?(ht(),Bt("div",$T," 데이터가 충분하지 않아 차트를 불러올 수 없습니다. ")):ue("",!0),p("div",qT,[p("table",XT,[a[2]||(a[2]=p("thead",null,[p("tr",null,[p("th",null,"날짜"),p("th",null,"조회수"),p("th",null,"전일 대비")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(i.value,(l,c)=>(ht(),Bt("tr",{key:c},[p("td",YT,kt(l.date||"-"),1),p("td",JT,kt(l.value||"-"),1),p("td",{class:aA(["text-center",l.displayIsUp?"text-up":"text-down"])},kt(l.displayDiff||"-"),3)]))),128)),r.value.length===0?(ht(),Bt("tr",ZT,[...a[1]||(a[1]=[p("td",{colspan:"3",class:"empty-table-msg"},"데이터가 없습니다.",-1)])])):ue("",!0)])])])])]))}},eO=LA(tO,[["__scopeId","data-v-73412449"]]),AO={class:"card card-full inflow-section"},nO={class:"card-body pt-0",style:{overflow:"visible !important","padding-bottom":"0 !important"}},rO={class:"chart-container-bar main-bar",style:{height:"450px !important","min-height":"450px !important",position:"relative !important",overflow:"visible !important","margin-bottom":"0 !important"}},iO={class:"table-container full-width",style:{position:"relative","z-index":"10"}},sO={class:"data-table"},oO={key:0},aO={key:1},lO={key:0},cO={key:1},uO={key:0},fO=["colspan"],hO={key:0,class:"description-footer mt-8 no-print"},dO={__name:"InflowSection",props:{data:Object},setup(e){const t=e,A=ge(null);let n=null;const r=()=>{const v=new Date;return`${v.getFullYear()}-${String(v.getMonth()+1).padStart(2,"0")}`},i=ye(()=>{var C;const b=(((C=t.data)==null?void 0:C.table)||[]).map(Q=>{if(!Q.month)return"";const _=Q.month.split("-");return _.length>=2?`${_[0]}-${_[1]}`:""}).filter(Boolean);return b.push(r()),[...new Set(b)].sort().reverse()}),s=ge(r());Fr(i,v=>{v.length>0&&(s.value=v[0])},{immediate:!0});const o=(v,b)=>{if(!v)return"";let[C,Q]=v.substring(0,7).split("-").map(Number);for(Q-=b;Q<=0;)Q+=12,C-=1;return`${C}-${String(Q).padStart(2,"0")}`},a=v=>v?`${parseInt(v.split("-")[1],10)}월`:"",l=ye(()=>s.value?o(s.value,1):null),c=ye(()=>s.value?o(s.value,2):null),u=ye(()=>a(l.value)),d=ye(()=>a(c.value)),f=ye(()=>a(s.value)),m=ye(()=>{var W;const v=((W=t.data)==null?void 0:W.table)||[];let b=[];s.value?b=v.filter(R=>(R.month||"").startsWith(s.value)):(b=v.filter(R=>!R.month),b.length===0&&(b=v));const C=l.value?v.filter(R=>(R.month||"").startsWith(l.value)):[],Q=c.value?v.filter(R=>(R.month||"").startsWith(c.value)):[],_=new Set([...b.map(R=>(R.label||"").trim()),...C.map(R=>(R.label||"").trim()),...Q.map(R=>(R.label||"").trim())].filter(R=>R&&R!=="미지정")),H=(R,O)=>R.filter(k=>(k.label||"").trim()===O).reduce((k,V)=>k+(parseFloat(String(V.sum||V.value).replace(/[^0-9.]/g,""))||0),0);return Array.from(_).map(R=>{const O=H(b,R),k=H(C,R),V=H(Q,R),F=b.some(lt=>(lt.label||"").trim()===R)&&C.some(lt=>(lt.label||"").trim()===R)?O-k:null,L=b.some(lt=>(lt.label||"").trim()===R),G=C.some(lt=>(lt.label||"").trim()===R),q=Q.some(lt=>(lt.label||"").trim()===R),ft=F!==null?`${F>0?"+":""}${F.toFixed(2)}%`:"-";return{label:R,value:L?O.toFixed(2):"-",numericValue:O,prev1ValueStr:G?k.toFixed(2):"-",prev2ValueStr:q?V.toFixed(2):"-",prev1Numeric:k,prev2Numeric:V,diff:ft,isUp:F!==null?F>=0:!0,isOther:R==="기타"}}).sort((R,O)=>O.numericValue-R.numericValue)}),B=()=>{if(n&&n.destroy(),!A.value)return;const v=A.value.getContext("2d"),b=m.value.filter(k=>k.label!=="미지정"),C=b.map(k=>k.label),Q=b.map(k=>k.numericValue),_=b.map(k=>k.prev1Numeric),H=b.map(k=>k.prev2Numeric),W=[...Q,..._,...H],R=Math.max(...W,0),O=Math.min(100,Math.ceil((R+10)/10)*10);n=new Hr(v,{type:"bar",data:{labels:C,datasets:[{label:d.value||"전전월 (%)",data:H,backgroundColor:"#cbd5e1",borderRadius:4,barThickness:25},{label:u.value||"전월 (%)",data:_,backgroundColor:"#94a3b8",borderRadius:4,barThickness:25},{label:f.value||"당월 (%)",data:Q,backgroundColor:"#2563eb",borderRadius:4,barThickness:25,order:0}].reverse()},options:{responsive:!0,maintainAspectRatio:!1,layout:{padding:{bottom:20,top:10}},barPercentage:.9,categoryPercentage:.8,scales:{x:{grid:{display:!1},ticks:{font:{size:10,weight:"600"}}},y:{beginAtZero:!0,max:O,grid:{color:"#f1f5f9"},ticks:{callback:k=>k+"%",font:{size:10},stepSize:10}}},plugins:{legend:{display:!0,position:"top",align:"end",labels:{boxWidth:10,usePointStyle:!0,pointStyle:"circle",font:{size:10,weight:"600"},padding:10}},tooltip:{backgroundColor:"#0f172a",padding:12,callbacks:{label:k=>` ${k.dataset.label}: ${k.raw}%`}}}}})};return wi(B),Fr(()=>t.data,B,{deep:!0}),Fr(s,B),(v,b)=>{var C;return ht(),Bt("div",AO,[b[3]||(b[3]=p("div",{class:"card-header border-none"},[p("h3",{class:"text-xl font-bold"},"유입 분석")],-1)),p("div",nO,[p("div",rO,[p("canvas",{ref_key:"inflowChartCanvas",ref:A},null,512)]),p("div",iO,[p("table",sO,[p("thead",null,[p("tr",null,[b[0]||(b[0]=p("th",{width:"80"},"순번",-1)),b[1]||(b[1]=p("th",null,"경로",-1)),d.value?(ht(),Bt("th",oO,kt(d.value),1)):ue("",!0),u.value?(ht(),Bt("th",aO,kt(u.value),1)):ue("",!0),p("th",null,kt(f.value||"수치"),1),b[2]||(b[2]=p("th",null,"전월 대비",-1))])]),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(m.value,(Q,_)=>(ht(),Bt("tr",{key:_},[p("td",null,kt(_+1),1),p("td",null,kt(Q.label),1),d.value?(ht(),Bt("td",lO,kt(Q.prev2ValueStr),1)):ue("",!0),u.value?(ht(),Bt("td",cO,kt(Q.prev1ValueStr),1)):ue("",!0),p("td",null,kt(Q.value),1),p("td",{class:aA(String(Q.diff).includes("-")?"text-down":"text-up")},kt(Q.diff),3)]))),128)),m.value.length?ue("",!0):(ht(),Bt("tr",uO,[p("td",{colspan:d.value&&u.value?6:4,class:"empty"},"선택된 월의 데이터가 없습니다.",8,fO)]))])])]),(C=e.data)!=null&&C.description?(ht(),Bt("div",hO,[p("p",null,kt(e.data.description),1)])):ue("",!0)])])}}},gO=LA(dO,[["__scopeId","data-v-13b371f7"]]),pO={class:"card card-full blog-section"},mO={class:"card-header"},BO={class:"card-body"},wO={class:"data-table"},vO={style:{"text-align":"center !important"}},bO={style:{"text-align":"center !important"}},yO={class:"round-label"},CO={style:{"text-align":"center !important"}},xO={style:{"text-align":"center !important"}},FO={style:{"text-align":"left !important","padding-left":"15px !important"}},_O={style:{"text-align":"center !important"}},UO=["href"],QO={key:0},EO={__name:"BlogSection",props:{data:Array},setup(e){return(t,A)=>{var n;return ht(),Bt("div",pO,[p("div",mO,[p("h3",null,[Vt(qt(FU),{size:20}),A[0]||(A[0]=ie("블로그 발행 현황 ",-1))])]),p("div",BO,[p("table",wO,[A[2]||(A[2]=p("thead",null,[p("tr",null,[p("th",{width:"50",style:{"text-align":"center !important"}},"순번"),p("th",{width:"80",style:{"text-align":"center !important"}},"회차"),p("th",{width:"120",style:{"text-align":"center !important"}},"발행 예정일"),p("th",{width:"100",style:{"text-align":"center !important"}},"발행 유형"),p("th",{style:{"min-width":"250px","text-align":"center !important"}},"제목"),p("th",{width:"60",style:{"text-align":"center !important"}},"URL")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.data,(r,i)=>(ht(),Bt("tr",{key:i},[p("td",vO,kt(i+1),1),p("td",bO,[p("span",yO,kt(r.round)+"회차",1)]),p("td",CO,kt(r.date),1),p("td",xO,kt(r.type||"-"),1),p("td",FO,kt(r.title),1),p("td",_O,[p("a",{href:r.link,target:"_blank",class:"link-text"},"보기",8,UO)])]))),128)),(n=e.data)!=null&&n.length?ue("",!0):(ht(),Bt("tr",QO,[...A[1]||(A[1]=[p("td",{colspan:"6",class:"empty",style:{"text-align":"center !important"}},"발행 내역이 없습니다.",-1)])]))])])])])}}},IO=LA(EO,[["__scopeId","data-v-9233d871"]]),SO={class:"card card-full exposure-section"},LO={class:"card-header dark-header"},kO={class:"card-body"},NO={class:"report-exposure-grid"},DO={class:"card-label"},HO={class:"keyword-val"},MO={class:"captured-image-box"},TO=["src"],OO={key:1,class:"no-img"},PO={key:0,class:"empty-msg"},RO={__name:"ExposureSection",props:{data:Array,round:[String,Number]},setup(e){const t=A=>A?A.startsWith("data:")||A.startsWith("http")?A:`https://kyeongmiapi.daoblock.co.kr${A}`:"";return(A,n)=>{var r;return ht(),Bt("div",SO,[p("div",LO,[p("h3",null,kt(e.round?`(${e.round}회차) `:"")+"노출 현황",1)]),p("div",kO,[p("div",NO,[(ht(!0),Bt(ce,null,Ue(e.data,(i,s)=>(ht(),Bt("div",{key:s,class:"report-exposure-card"},[p("div",DO,[n[0]||(n[0]=p("span",{class:"label-text"},"키워드",-1)),p("span",HO,kt(i.keyword),1)]),p("div",MO,[i.image?(ht(),Bt("img",{key:0,src:t(i.image),alt:"노출 캡쳐",class:"full-img"},null,8,TO)):(ht(),Bt("div",OO,"이미지 없음"))])]))),128))]),(r=e.data)!=null&&r.length?ue("",!0):(ht(),Bt("div",PO,"노출 현황 데이터가 없습니다."))])])}}},KO=LA(RO,[["__scopeId","data-v-8b830426"]]),VO={class:"card card-full plan-section"},jO={class:"card-header"},GO={class:"card-body"},WO={class:"plan-display-box"},zO={__name:"PlanSection",props:{data:String,round:[String,Number]},setup(e){return(t,A)=>(ht(),Bt("div",VO,[p("div",jO,[p("h3",null,[Vt(qt(mU),{size:20}),ie(kt(e.round?`(${e.round}회차) `:"")+"진행방향 ",1)])]),p("div",GO,[p("div",WO,kt(e.data||"등록된 계획이 없습니다."),1)])]))}},$O=LA(zO,[["__scopeId","data-v-9afb62c0"]]),qO={class:"card card-full deposit-section"},XO={class:"card-header"},YO={class:"card-body"},JO={class:"deposit-table-wrapper"},ZO={class:"data-table"},tP={class:"amount-cell"},eP={key:0},AP={__name:"DepositSection",props:{data:Object},setup(e){return Array.from({length:31},(t,A)=>A+1),(t,A)=>{var n,r,i;return ht(),Bt("div",qO,[p("div",XO,[p("h3",null,[Vt(qt(pU),{size:20}),A[0]||(A[0]=ie("입금액 상세 관리 ",-1))])]),p("div",YO,[p("div",JO,[p("table",ZO,[A[2]||(A[2]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"회차"),p("th",{width:"120"},"날짜"),p("th",null,"항목/서비스"),p("th",{width:"150"},"입금금액"),p("th",null,"비고")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue((n=e.data)==null?void 0:n.table,(s,o)=>(ht(),Bt("tr",{key:o},[p("td",null,kt(s.round),1),p("td",null,kt(s.date),1),p("td",null,kt(s.service),1),p("td",tP,kt(Number(String(s.amount).replace(/,/g,"")).toLocaleString())+"원",1),p("td",null,kt(s.note),1)]))),128)),(i=(r=e.data)==null?void 0:r.table)!=null&&i.length?ue("",!0):(ht(),Bt("tr",eP,[...A[1]||(A[1]=[p("td",{colspan:"5",class:"empty"},"입금 내역이 없습니다.",-1)])]))])])])])])}}},nP=LA(AP,[["__scopeId","data-v-59a92d0a"]]),rP={class:"card card-full transfer-section"},iP={class:"card-header"},sP={class:"card-body"},oP={class:"transfer-grid-layout"},aP={class:"our-company-details"},lP={class:"detail-rows"},cP={class:"detail-row"},uP={class:"value"},fP={class:"detail-row"},hP={class:"value"},dP={class:"detail-row"},gP={class:"value"},pP={class:"bank-payment-details"},mP={class:"detail-rows"},BP={class:"detail-row"},wP={class:"label"},vP={class:"value font-bold"},bP={class:"detail-row"},yP={class:"value font-bold"},CP={class:"detail-row amount-highlight"},xP={class:"value amount"},FP={__name:"TransferSection",props:{data:Object},setup(e){const t=A=>A?String(A).replace(/\B(?=(\d{3})+(?!\d))/g,","):"0";return(A,n)=>{var r,i,s,o,a,l,c,u;return ht(),Bt("div",rP,[p("div",iP,[p("h3",null,[Vt(qt(Qp),{size:20}),n[0]||(n[0]=ie("이체 정보 ",-1))])]),p("div",sP,[p("div",oP,[p("div",aP,[p("h4",null,[Vt(qt(dh),{size:16}),ie(" "+kt(((r=e.data)==null?void 0:r.companyName)||"(주)이지엠앤씨"),1)]),p("div",lP,[p("div",cP,[n[1]||(n[1]=p("span",{class:"label"},"사업자 번호",-1)),p("span",uP,kt(((i=e.data)==null?void 0:i.businessNumber)||"210-81-78652"),1)]),p("div",fP,[n[2]||(n[2]=p("span",{class:"label"},"대표",-1)),p("span",hP,kt(((s=e.data)==null?void 0:s.ceo)||"김용수"),1)]),p("div",dP,[n[3]||(n[3]=p("span",{class:"label"},"담당자",-1)),p("span",gP,kt(((o=e.data)==null?void 0:o.ourManager)||"박민준, 유경미"),1)])])]),n[7]||(n[7]=p("div",{class:"vertical-divider"},null,-1)),p("div",pP,[p("h4",null,[Vt(qt(Qp),{size:16}),n[4]||(n[4]=ie(" 입금 정보 ",-1))]),p("div",mP,[p("div",BP,[p("span",wP,kt(((a=e.data)==null?void 0:a.bankName)||"우리은행"),1),p("span",vP,kt(((l=e.data)==null?void 0:l.account)||"1005-704-557550"),1)]),p("div",bP,[n[5]||(n[5]=p("span",{class:"label"},"예금주",-1)),p("span",yP,kt(((c=e.data)==null?void 0:c.holder)||"(주)이지엠앤씨"),1)]),p("div",CP,[n[6]||(n[6]=p("span",{class:"label"},"입금 금액",-1)),p("span",xP,kt(t((u=e.data)==null?void 0:u.amount))+"원",1)])])])])])])}}},_P=LA(FP,[["__scopeId","data-v-ec9de6b1"]]),UP={class:"card card-full company-info-section"},QP={class:"card-header"},EP={class:"card-body grid-info"},IP={class:"info-group"},SP={class:"info-group"},LP={class:"info-group"},kP={class:"info-group"},NP={class:"info-group full-width"},DP=["href"],HP={__name:"CompanyInfoSection",props:{data:Object},setup(e){return(t,A)=>{var n,r,i,s,o,a;return ht(),Bt("div",UP,[p("div",QP,[p("h3",null,[Vt(qt($0),{size:20}),A[0]||(A[0]=ie("업체 상세 정보 ",-1))])]),p("div",EP,[p("div",IP,[A[1]||(A[1]=p("label",null,"회사명",-1)),p("p",null,kt(((n=e.data)==null?void 0:n.name)||"-"),1)]),p("div",SP,[A[2]||(A[2]=p("label",null,"사업자 번호",-1)),p("p",null,kt(((r=e.data)==null?void 0:r.businessNumber)||"-"),1)]),p("div",LP,[A[3]||(A[3]=p("label",null,"담당자",-1)),p("p",null,kt(((i=e.data)==null?void 0:i.manager)||"-"),1)]),p("div",kP,[A[4]||(A[4]=p("label",null,"연락처",-1)),p("p",null,kt(((s=e.data)==null?void 0:s.contact)||"-"),1)]),p("div",NP,[A[5]||(A[5]=p("label",null,"블로그 링크",-1)),p("p",null,[p("a",{href:(o=e.data)==null?void 0:o.blogLink,target:"_blank"},kt(((a=e.data)==null?void 0:a.blogLink)||"-"),9,DP)])])])])}}},MP=LA(HP,[["__scopeId","data-v-acb0f020"]]),TP={class:"form-card"},OP={class:"form-grid"},PP={class:"form-group"},RP={class:"form-group"},KP={class:"form-group"},VP={class:"form-group"},jP={class:"form-group full"},GP={class:"form-group"},WP={class:"form-group"},zP={class:"form-group"},$P={class:"form-group"},qP={class:"form-group"},XP=["src"],YP={key:1,class:"license-placeholder"},JP={class:"form-group"},ZP={__name:"BasicInfoTab",props:{formData:Object,loading:Boolean},setup(e){const t=e,A=()=>{const i=document.getElementById("license-upload");i&&i.click()},n=async i=>{const s=i.target.files[0];if(s){const o=new FormData;o.append("image",s);try{const l=await(await xn.post("/api/upload",o)).json();l.imageUrl&&(t.formData.companyInfo.businessLicenseImg=l.imageUrl)}catch(a){console.error("License upload failed:",a),alert("이미지 업로드에 실패했습니다.")}}},r=i=>i?i.startsWith("data:")||i.startsWith("http")?i:`https://kyeongmiapi.daoblock.co.kr${i}`:"";return(i,s)=>(ht(),Bt("div",TP,[s[25]||(s[25]=p("h3",null,"업체 기본 상세정보",-1)),p("div",OP,[p("div",PP,[s[10]||(s[10]=p("label",null,"업체명",-1)),Tt(p("input",{"onUpdate:modelValue":s[0]||(s[0]=o=>e.formData.name=o),placeholder:"업체명"},null,512),[[Rt,e.formData.name]])]),p("div",RP,[s[11]||(s[11]=p("label",null,"담당자",-1)),Tt(p("input",{"onUpdate:modelValue":s[1]||(s[1]=o=>e.formData.companyInfo.manager=o),placeholder:"담당자 성함"},null,512),[[Rt,e.formData.companyInfo.manager]])]),p("div",KP,[s[12]||(s[12]=p("label",null,"연락처",-1)),Tt(p("input",{"onUpdate:modelValue":s[2]||(s[2]=o=>e.formData.companyInfo.contact=o),placeholder:"010-0000-0000"},null,512),[[Rt,e.formData.companyInfo.contact]])]),p("div",VP,[s[13]||(s[13]=p("label",null,"사업자 번호",-1)),Tt(p("input",{"onUpdate:modelValue":s[3]||(s[3]=o=>e.formData.companyInfo.businessNumber=o),placeholder:"000-00-00000"},null,512),[[Rt,e.formData.companyInfo.businessNumber]])]),s[24]||(s[24]=p("div",{class:"from-line"},null,-1)),p("div",jP,[s[14]||(s[14]=p("label",null,"블로그 링크",-1)),Tt(p("input",{"onUpdate:modelValue":s[4]||(s[4]=o=>e.formData.companyInfo.blogLink=o),placeholder:"https://blog.naver.com/..."},null,512),[[Rt,e.formData.companyInfo.blogLink]])]),p("div",GP,[s[15]||(s[15]=p("label",null,"네이버 ID/PW",-1)),Tt(p("input",{"onUpdate:modelValue":s[5]||(s[5]=o=>e.formData.companyInfo.naverIdPw=o),placeholder:"id / password"},null,512),[[Rt,e.formData.companyInfo.naverIdPw]])]),p("div",WP,[s[16]||(s[16]=p("label",null,"이메일",-1)),Tt(p("input",{"onUpdate:modelValue":s[6]||(s[6]=o=>e.formData.companyInfo.email=o),placeholder:"email@example.com"},null,512),[[Rt,e.formData.companyInfo.email]])]),p("div",zP,[s[18]||(s[18]=p("label",null,"세금계산서",-1)),Tt(p("select",{"onUpdate:modelValue":s[7]||(s[7]=o=>e.formData.companyInfo.taxInvoice=o),class:"hub-input"},[...s[17]||(s[17]=[p("option",{value:""},"-- 선택 --",-1),p("option",{value:"발행"},"발행",-1),p("option",{value:"미발행"},"미발행",-1),p("option",{value:"영수"},"영수",-1)])],512),[[gi,e.formData.companyInfo.taxInvoice]])]),p("div",$P,[s[20]||(s[20]=p("label",null,"2단계 인증",-1)),Tt(p("select",{"onUpdate:modelValue":s[8]||(s[8]=o=>e.formData.companyInfo.twoFactorAuth=o),class:"hub-input"},[...s[19]||(s[19]=[p("option",{value:""},"-- 선택 --",-1),p("option",{value:"있음"},"있음",-1),p("option",{value:"없음"},"없음",-1)])],512),[[gi,e.formData.companyInfo.twoFactorAuth]])]),p("div",qP,[s[22]||(s[22]=p("label",null,"사업자 등록증",-1)),p("div",{class:"license-upload-box",onClick:A},[e.formData.companyInfo.businessLicenseImg?(ht(),Bt("img",{key:0,src:r(e.formData.companyInfo.businessLicenseImg),class:"preview-license"},null,8,XP)):(ht(),Bt("div",YP,[Vt(qt(Rn),{size:20}),s[21]||(s[21]=ie(" 이미지 첨부 ",-1))])),p("input",{id:"license-upload",type:"file",onChange:n,hidden:"",accept:"image/*"},null,32)])]),p("div",JP,[s[23]||(s[23]=p("label",null,"업체 메모",-1)),Tt(p("textarea",{"onUpdate:modelValue":s[9]||(s[9]=o=>e.formData.companyInfo.memo=o),placeholder:"업체와 관련된 특이사항을 입력하세요",class:"hub-textarea"},null,512),[[Rt,e.formData.companyInfo.memo]])])])]))}},t7=LA(ZP,[["__scopeId","data-v-eaf8fe2b"]]),e7={key:1,class:"placeholder"},A7={key:0,class:"category-dropdown"},n7={class:"category-list"},r7=["onClick"],i7=["onClick"],s7={key:0,class:"empty-cat"},o7={class:"category-footer"},a7={class:"add-input-group"},l7={__name:"CategorySelect",props:{modelValue:String,categories:Array},emits:["update:modelValue","add-category","remove-category"],setup(e,{emit:t}){const A=e,n=t,r=ge(!1),i=ge(""),s=ge(null),o=()=>{r.value=!r.value},a=f=>{n("update:modelValue",f),r.value=!1},l=()=>{i.value.trim()&&(n("add-category",i.value.trim()),n("update:modelValue",i.value.trim()),i.value="")},c=f=>{n("remove-category",f)},u=f=>{s.value&&!s.value.contains(f.target)&&(r.value=!1)};wi(()=>{document.addEventListener("click",u)}),R0(()=>{document.removeEventListener("click",u)});const d=f=>{const m=A.categories.find(B=>B.name===f);return m?m.color:"#64748b"};return(f,m)=>(ht(),Bt("div",{class:"category-select-container",ref_key:"dropdownRef",ref:s},[p("div",{class:"selected-box",onClick:o},[e.modelValue?(ht(),Bt("span",{key:0,class:"badge",style:Qc({backgroundColor:d(e.modelValue)})},kt(e.modelValue),5)):(ht(),Bt("span",e7,"-- 선택 --"))]),r.value?(ht(),Bt("div",A7,[p("div",n7,[(ht(!0),Bt(ce,null,Ue(e.categories,B=>(ht(),Bt("div",{key:B.name,class:"category-item"},[p("div",{class:"badge-area",onClick:v=>a(B.name)},[p("span",{class:"badge",style:Qc({backgroundColor:B.color})},kt(B.name),5)],8,r7),p("button",{class:"btn-cat-del",onClick:G0(v=>c(B.name),["stop"])},"×",8,i7)]))),128)),e.categories.length===0?(ht(),Bt("div",s7,"검색된 항목이 없습니다.")):ue("",!0)]),p("div",o7,[p("div",a7,[Tt(p("input",{"onUpdate:modelValue":m[0]||(m[0]=B=>i.value=B),placeholder:"항목 추가...",onKeyup:Is(l,["enter"])},null,544),[[Rt,i.value]]),p("button",{class:"add-btn",onClick:l},[Vt(qt(Rn),{size:14})])])])])):ue("",!0)],512))}},Hv=LA(l7,[["__scopeId","data-v-09e25de1"]]),c7={class:"hub-scroll-view"},u7={class:"form-card"},f7={class:"header-with-btn"},h7={style:{display:"flex",gap:"10px","align-items":"center"}},d7=["onUpdate:modelValue"],g7=["value"],p7=["onUpdate:modelValue","onBlur"],m7=["value","onInput"],B7=["onUpdate:modelValue"],w7=["onClick"],v7={class:"form-card"},b7={class:"header-with-btn"},y7=["onUpdate:modelValue"],C7=["value","onInput"],x7=["value","onInput"],F7=["onClick"],_7={class:"form-card"},U7={class:"header-with-btn"},Q7=["onUpdate:modelValue"],E7=["value"],I7=["onUpdate:modelValue"],S7=["onUpdate:modelValue"],L7=["onUpdate:modelValue"],k7=["value","onInput"],N7=["onClick"],D7={class:"form-card"},H7={class:"round-control-top"},M7={class:"round-selector"},T7=["onClick"],O7={class:"header-with-btn border-top"},P7={class:"header-right-btns"},R7={class:"no-col"},K7=["onUpdate:modelValue","onBlur"],V7=["onUpdate:modelValue"],j7=["onUpdate:modelValue"],G7=["onUpdate:modelValue"],W7={class:"round-badge"},z7=["onClick"],$7={key:0},q7={__name:"DepositTab",props:{formData:Object,depositManagement:Object,selectedBlogRound:String,filteredBlogStatus:Array,addRow:Function,removeRow:Function,formatNumber:Function,completeCurrentRound:Function,addNextRound:Function,deleteRound:Function},emits:["update:selectedBlogRound","save"],setup(e,{emit:t}){const A=ge(!0),n=e,r=t,i=d=>{r("update:selectedBlogRound",d)},s=ye(()=>!n.formData.blogRounds||n.formData.blogRounds.length===0?1:Math.max(...n.formData.blogRounds.map(d=>d.number))),o=d=>{if(!n.formData.serviceCategories.find(f=>f.name===d)){const f="#"+Math.floor(Math.random()*16777215).toString(16).padStart(6,"0");n.formData.serviceCategories.push({name:d,color:f}),r("save")}},a=d=>{n.formData.serviceCategories=n.formData.serviceCategories.filter(f=>f.name!==d),r("save")},l=d=>n.formData.blogStatus.filter(B=>String(B.round)===String(d.round)).indexOf(d)+1,c=d=>{const f=d.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(f))return;const m=d.target;if(["INPUT","TEXTAREA"].includes(m.tagName)&&(m.type==="text"||m.type==="number"||m.type===""||m.tagName==="TEXTAREA")&&(f==="ArrowLeft"&&m.selectionStart>0||f==="ArrowRight"&&m.selectionEnd<(m.value||"").length||f==="Enter"&&d.shiftKey))return;const B=m.closest("td");if(!B)return;const v=B.closest("tr"),b=v.closest("tbody");if(!b)return;let C=Array.from(v.children).indexOf(B),Q=Array.from(b.children).indexOf(v),_=null;for(;!_;){f==="ArrowUp"?Q--:f==="ArrowDown"||f==="Enter"?Q++:f==="ArrowLeft"?C--:f==="ArrowRight"&&C++;const H=b.children[Q];if(!H)return;const W=H.children[C];if(!W)return;_=W.querySelector('input:not([type="hidden"]), select, textarea')}_&&(d.preventDefault(),_.focus(),(_.tagName==="INPUT"||_.tagName==="TEXTAREA")&&_.select())},u=d=>{if(!d.date)return;let f=d.date.replace(/[^0-9]/g,"");if(A.value&&(f.length===3||f.length===4)){const m=new Date().getFullYear();let B,v;f.length===3?(B="0"+f.substring(0,1),v=f.substring(1,3)):(B=f.substring(0,2),v=f.substring(2,4)),d.date=`${m}.${B}.${v}`;return}f.length===6?d.date=`20${f.substring(0,2)}.${f.substring(2,4)}.${f.substring(4,6)}`:f.length===8&&(d.date=`${f.substring(0,4)}.${f.substring(4,6)}.${f.substring(6,8)}`)};return(d,f)=>{var m,B;return ht(),Bt("div",c7,[p("div",u7,[p("div",f7,[f[11]||(f[11]=p("h3",null,"입금액 상세 (보고서 노출용)",-1)),p("div",h7,[p("button",{class:aA(["btn-toggle-year",{active:A.value}]),onClick:f[0]||(f[0]=v=>A.value=!A.value)}," 현재년도 자동완성 "+kt(A.value?"ON":"OFF"),3),p("button",{class:"btn-add-mini",onClick:f[1]||(f[1]=v=>e.addRow(e.formData.depositDetails.table,{round:"",date:"",service:"네이버 블로그",amount:"",note:""}))},[Vt(qt(Rn),{size:14}),f[10]||(f[10]=ie(" 추가 ",-1))])])]),p("table",{class:"hub-table",onKeydown:c},[f[13]||(f[13]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"회차"),p("th",{width:"120"},"일자"),p("th",null,"항목/서비스"),p("th",{width:"150"},"입금금액"),p("th",null,"비고"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.formData.depositDetails.table,(v,b)=>(ht(),Bt("tr",{key:b},[p("td",null,[Tt(p("select",{"onUpdate:modelValue":C=>v.round=C,class:"table-select"},[f[12]||(f[12]=p("option",{value:""},"--",-1)),(ht(!0),Bt(ce,null,Ue(s.value+1,C=>(ht(),Bt("option",{key:C,value:C},kt(C)+"회차 ",9,g7))),128))],8,d7),[[gi,v.round]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.date=C,class:"table-input",placeholder:"MM-DD",onBlur:C=>u(v)},null,40,p7),[[Rt,v.date]])]),p("td",null,[Vt(Hv,{modelValue:v.service,"onUpdate:modelValue":C=>v.service=C,categories:e.formData.serviceCategories,onAddCategory:o,onRemoveCategory:a},null,8,["modelValue","onUpdate:modelValue","categories"])]),p("td",null,[p("input",{value:e.formatNumber(v.amount),onInput:C=>v.amount=C.target.value.replace(/[^0-9]/g,""),class:"table-input"},null,40,m7)]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.note=C,class:"table-input"},null,8,B7),[[Rt,v.note]])]),p("td",null,[p("button",{class:"btn-row-del",onClick:C=>e.removeRow(e.formData.depositDetails.table,b)},"×",8,w7)])]))),128))])],32)]),p("div",v7,[p("div",b7,[f[15]||(f[15]=p("h3",null,"결제 요약 현황",-1)),p("button",{class:"btn-add-mini",onClick:f[2]||(f[2]=v=>e.addRow(e.depositManagement.summary,{service:"네이버 블로그",totalAmount:"",rounds:"",completedAmount:""}))},[Vt(qt(Rn),{size:14}),f[14]||(f[14]=ie(" 추가 ",-1))])]),p("table",{class:"hub-table",onKeydown:c},[f[16]||(f[16]=p("thead",null,[p("tr",null,[p("th",null,"항목/서비스"),p("th",null,"완료회차"),p("th",null,"완료 금액"),p("th",null,"총결제 금액"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.depositManagement.summary,(v,b)=>(ht(),Bt("tr",{key:b},[p("td",null,[Vt(Hv,{modelValue:v.service,"onUpdate:modelValue":C=>v.service=C,categories:e.formData.serviceCategories,onAddCategory:o,onRemoveCategory:a},null,8,["modelValue","onUpdate:modelValue","categories"])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.rounds=C,class:"table-input"},null,8,y7),[[Rt,v.rounds]])]),p("td",null,[p("input",{value:e.formatNumber(v.completedAmount),onInput:C=>v.completedAmount=C.target.value.replace(/[^0-9]/g,""),class:"table-input"},null,40,C7)]),p("td",null,[p("input",{value:e.formatNumber(v.totalAmount),onInput:C=>v.totalAmount=C.target.value.replace(/[^0-9]/g,""),class:"table-input"},null,40,x7)]),p("td",null,[p("button",{class:"btn-row-del",onClick:C=>e.removeRow(e.depositManagement.summary,b)},"×",8,F7)])]))),128))])],32)]),p("div",_7,[p("div",U7,[f[18]||(f[18]=p("h3",null,"진행회차 상세",-1)),p("button",{class:"btn-add-mini",onClick:f[3]||(f[3]=v=>e.addRow(e.depositManagement.details,{round:"",status:"",method:"",status2:"",subAmount:""}))},[Vt(qt(Rn),{size:14}),f[17]||(f[17]=ie(" 추가 ",-1))])]),p("table",{class:"hub-table",onKeydown:c},[f[20]||(f[20]=p("thead",null,[p("tr",null,[p("th",null,"회차"),p("th",null,"상태"),p("th",null,"결제 방식"),p("th",null,"비고"),p("th",null,"금액"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.depositManagement.details,(v,b)=>(ht(),Bt("tr",{key:b},[p("td",null,[Tt(p("select",{"onUpdate:modelValue":C=>v.round=C,class:"table-select"},[f[19]||(f[19]=p("option",{value:""},"--",-1)),(ht(!0),Bt(ce,null,Ue(s.value+1,C=>(ht(),Bt("option",{key:C,value:C},kt(C)+"회차 ",9,E7))),128))],8,Q7),[[gi,v.round]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.status=C,class:"table-input"},null,8,I7),[[Rt,v.status]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.method=C,class:"table-input"},null,8,S7),[[Rt,v.method]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.status2=C,class:"table-input"},null,8,L7),[[Rt,v.status2]])]),p("td",null,[p("input",{value:e.formatNumber(v.subAmount),onInput:C=>v.subAmount=C.target.value.replace(/[^0-9]/g,""),class:"table-input"},null,40,k7)]),p("td",null,[p("button",{class:"btn-row-del",onClick:C=>e.removeRow(e.depositManagement.details,b)},"×",8,N7)])]))),128))])],32)]),p("div",D7,[p("div",H7,[p("div",M7,[p("button",{class:aA(["round-btn",{active:e.selectedBlogRound==="전체"}]),onClick:f[4]||(f[4]=v=>i("전체"))},"전체",2),(ht(!0),Bt(ce,null,Ue(e.formData.blogRounds,v=>(ht(),Bt("button",{key:v.number,class:aA(["round-btn",v.completed?"round-completed":"round-active",{active:e.selectedBlogRound===String(v.number)}]),onClick:b=>i(String(v.number))},kt(v.number)+"회차 ",11,T7))),128))]),e.selectedBlogRound!=="전체"?(ht(),Bt("button",{key:0,class:"btn-delete-round",onClick:f[5]||(f[5]=v=>e.deleteRound(parseInt(e.selectedBlogRound)))}," 회차 삭제 ")):ue("",!0)]),p("div",O7,[f[22]||(f[22]=p("h3",null,"발행 현황 관리",-1)),p("div",P7,[p("button",{class:aA(["btn-toggle-year",{active:A.value}]),onClick:f[6]||(f[6]=v=>A.value=!A.value),style:{"margin-right":"10px"}}," 현재년도 자동완성 "+kt(A.value?"ON":"OFF"),3),e.selectedBlogRound!=="전체"&&!((m=e.formData.blogRounds.find(v=>v.number===parseInt(e.selectedBlogRound)))!=null&&m.completed)?(ht(),Bt("button",{key:0,class:"btn-complete-round",onClick:f[7]||(f[7]=(...v)=>e.completeCurrentRound&&e.completeCurrentRound(...v))}," 완료 ")):ue("",!0),e.selectedBlogRound!=="전체"&&((B=e.formData.blogRounds.find(v=>v.number===parseInt(e.selectedBlogRound)))!=null&&B.completed)&&parseInt(e.selectedBlogRound)===e.formData.blogRounds.length?(ht(),Bt("button",{key:1,class:"btn-next-round",onClick:f[8]||(f[8]=(...v)=>e.addNextRound&&e.addNextRound(...v))}," 다음 회차 추가 ")):ue("",!0),p("button",{class:"btn-add-mini",onClick:f[9]||(f[9]=v=>e.addRow(e.formData.blogStatus,{date:"",type:"",title:"",link:"",round:e.selectedBlogRound==="전체"?e.formData.blogRounds[e.formData.blogRounds.length-1].number:parseInt(e.selectedBlogRound)}))},[Vt(qt(Rn),{size:14}),f[21]||(f[21]=ie(" 추가 ",-1))])])]),p("table",{class:"hub-table",onKeydown:c},[f[24]||(f[24]=p("thead",null,[p("tr",null,[p("th",{width:"40"},"No."),p("th",{width:"120"},"발행 예정일"),p("th",{width:"120"},"발행 유형"),p("th",null,"제목"),p("th",null,"URL(링크)"),p("th",{width:"80"},"회차"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.filteredBlogStatus,(v,b)=>(ht(),Bt("tr",{key:b},[p("td",R7,kt(l(v)),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.date=C,class:"table-input",placeholder:"예: 0223",onBlur:C=>u(v)},null,40,K7),[[Rt,v.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.type=C,class:"table-input",placeholder:"유형"},null,8,V7),[[Rt,v.type]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":C=>v.title=C,class:"table-input table-textarea",placeholder:"제목"},null,8,j7),[[Rt,v.title]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":C=>v.link=C,class:"table-input table-textarea",placeholder:"https://..."},null,8,G7),[[Rt,v.link]])]),p("td",null,[p("span",W7,kt(v.round)+"회차",1)]),p("td",null,[p("button",{class:"btn-row-del",onClick:C=>e.removeRow(e.formData.blogStatus,e.formData.blogStatus.indexOf(v))},"×",8,z7)])]))),128)),e.filteredBlogStatus.length===0?(ht(),Bt("tr",$7,[...f[23]||(f[23]=[p("td",{colspan:"6",class:"empty-msg"},"선택된 회차의 발행 내역이 없습니다.",-1)])])):ue("",!0)])],32)])])}}},X7=LA(q7,[["__scopeId","data-v-2f028ad6"]]),Y7={class:"form-card"},J7={class:"filter-area"},Z7={class:"filter-header"},tR={class:"status-filters"},eR=["onClick"],AR={class:"header-btns",style:{display:"flex",gap:"10px","align-items":"center"}},nR={class:"round-filter-row"},rR=["value"],iR=["value"],sR={class:"table-container"},oR={class:"table-title"},aR={key:0,class:"status-tag"},lR=["onUpdate:modelValue","onBlur"],cR=["onUpdate:modelValue"],uR=["onUpdate:modelValue","onInput"],fR=["onUpdate:modelValue"],hR=["onClick"],dR={key:0},gR={__name:"BlogTab",props:{formData:Object,addRow:Function,removeRow:Function},setup(e){const t=e,A=ge("전체"),n=["전체","임시저장","발행완료"],r=ge("전체");wi(()=>{if(t.formData.blogRounds&&t.formData.blogRounds.length>0){const c=Math.max(...t.formData.blogRounds.map(u=>u.number));r.value=c,t.formData.blogReportRound||(t.formData.blogReportRound=c)}});const i=ye(()=>t.formData.blogStatus.filter(c=>{const u=A.value==="전체"||c.status===A.value,d=r.value==="전체"||Number(c.round)===Number(r.value);return u&&d})),s=ge(!0),o=c=>{if(!c.date)return;let u=c.date.replace(/[^0-9]/g,"");if(s.value&&(u.length===3||u.length===4)){const d=new Date().getFullYear();let f,m;u.length===3?(f="0"+u.substring(0,1),m=u.substring(1,3)):(f=u.substring(0,2),m=u.substring(2,4)),c.date=`${d}.${f}.${m}`;return}u.length===6?c.date=`20${u.substring(0,2)}.${u.substring(2,4)}.${u.substring(4,6)}`:u.length===8&&(c.date=`${u.substring(0,4)}.${u.substring(4,6)}.${u.substring(6,8)}`)},a=c=>{const u=c.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(u))return;const d=c.target;if(["INPUT","TEXTAREA"].includes(d.tagName)&&(d.type==="text"||d.type==="number"||d.type===""||d.tagName==="TEXTAREA")&&(u==="ArrowLeft"&&d.selectionStart>0||u==="ArrowRight"&&d.selectionEnd<(d.value||"").length||u==="Enter"&&c.shiftKey))return;const f=d.closest("td");if(!f)return;const m=f.closest("tr"),B=m.closest("tbody");if(!B)return;let v=Array.from(m.children).indexOf(f),b=Array.from(B.children).indexOf(m),C=null;for(;!C;){u==="ArrowUp"?b--:u==="ArrowDown"||u==="Enter"?b++:u==="ArrowLeft"?v--:u==="ArrowRight"&&v++;const Q=B.children[b];if(!Q)return;const _=Q.children[v];if(!_)return;C=_.querySelector('input:not([type="hidden"]), select, textarea')}C&&(c.preventDefault(),C.focus(),(C.tagName==="INPUT"||C.tagName==="TEXTAREA")&&C.select())},l=c=>{c.link&&c.link.trim()!==""&&c.link!=="https://..."?c.status="발행완료":c.status="임시저장"};return(c,u)=>(ht(),Bt("div",Y7,[p("div",J7,[p("div",Z7,[p("div",tR,[(ht(),Bt(ce,null,Ue(n,d=>p("button",{key:d,class:aA(["filter-btn",{active:A.value===d}]),onClick:f=>A.value=d},kt(d),11,eR)),64))]),p("div",AR,[p("button",{class:aA(["btn-toggle-year",{active:s.value}]),onClick:u[0]||(u[0]=d=>s.value=!s.value)}," 현재년도 자동완성 "+kt(s.value?"ON":"OFF"),3),p("button",{class:"btn-add-mini",onClick:u[1]||(u[1]=d=>e.addRow(e.formData.blogStatus,{date:"",title:"",link:"",status:"임시저장",round:e.formData.blogRounds.length>0?e.formData.blogRounds[e.formData.blogRounds.length-1].number:1}))},[Vt(qt(Rn),{size:14}),u[4]||(u[4]=ie(" 내역 추가 ",-1))])])]),p("div",nR,[u[6]||(u[6]=p("label",null,"회차별 보기",-1)),Tt(p("select",{"onUpdate:modelValue":u[2]||(u[2]=d=>r.value=d),class:"round-select"},[u[5]||(u[5]=p("option",{value:"전체"},"전체 회차",-1)),(ht(!0),Bt(ce,null,Ue(e.formData.blogRounds,d=>(ht(),Bt("option",{key:d.number,value:d.number},kt(d.number)+"회차 ",9,rR))),128))],512),[[gi,r.value]]),u[7]||(u[7]=p("label",{style:{"margin-left":"30px"}},"보고서 노출회차",-1)),Tt(p("select",{"onUpdate:modelValue":u[3]||(u[3]=d=>e.formData.blogReportRound=d),class:"round-select highlighted"},[(ht(!0),Bt(ce,null,Ue(e.formData.blogRounds,d=>(ht(),Bt("option",{key:d.number,value:d.number},kt(d.number)+"회차 ",9,iR))),128))],512),[[gi,e.formData.blogReportRound]])])]),p("div",sR,[p("div",oR,[p("h3",null,[u[8]||(u[8]=ie("블로그 발행 현황 ",-1)),A.value!=="전체"?(ht(),Bt("span",aR,kt(A.value),1)):ue("",!0)])]),p("table",{class:"hub-table",onKeydown:a},[u[11]||(u[11]=p("thead",null,[p("tr",null,[p("th",{width:"120"},"날짜"),p("th",null,"제목"),p("th",null,"링크"),p("th",{width:"140"},"상태"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(i.value,(d,f)=>(ht(),Bt("tr",{key:f},[p("td",null,[Tt(p("input",{"onUpdate:modelValue":m=>d.date=m,class:"table-input",placeholder:"MM-DD",onBlur:m=>o(d)},null,40,lR),[[Rt,d.date]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":m=>d.title=m,class:"table-input table-textarea",placeholder:"제목"},null,8,cR),[[Rt,d.title]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":m=>d.link=m,class:"table-input table-textarea",placeholder:"https://...",onInput:m=>l(d)},null,40,uR),[[Rt,d.link]])]),p("td",null,[Tt(p("select",{"onUpdate:modelValue":m=>d.status=m,class:"table-select"},[...u[9]||(u[9]=[p("option",{value:"임시저장"},"임시저장",-1),p("option",{value:"발행완료"},"발행완료",-1)])],8,fR),[[gi,d.status]])]),p("td",null,[p("button",{class:"btn-row-del",onClick:m=>e.removeRow(e.formData.blogStatus,e.formData.blogStatus.indexOf(d))},"×",8,hR)])]))),128)),i.value.length===0?(ht(),Bt("tr",dR,[...u[10]||(u[10]=[p("td",{colspan:"5",class:"empty-msg"},"내용이 없습니다.",-1)])])):ue("",!0)])],32)])]))}},pR=LA(gR,[["__scopeId","data-v-85ab2b96"]]),mR={class:"form-card"},BR={class:"header-with-btn"},wR={style:{display:"flex",gap:"10px","align-items":"center"}},vR=["onUpdate:modelValue"],bR=["onUpdate:modelValue","onBlur"],yR=["onUpdate:modelValue"],CR=["onUpdate:modelValue"],xR=["onClick"],FR={key:0},_R={__name:"VisitorTab",props:{formData:Object,removeRow:Function},setup(e,{expose:t}){const A=ge(!0),n=e,r=()=>{n.formData.visitorData.table||(n.formData.visitorData.table=[]),n.formData.visitorData.table.push({selected:!0,date:"",value:"",diff:"-",isUp:!0,viewValue:"",viewDiff:"-",viewIsUp:!0})},i=()=>{n.formData.visitorData.table&&n.formData.visitorData.table.forEach((l,c)=>{const u=n.formData.visitorData.table[c-1];if(!l.value||!(u!=null&&u.value))l.diff="-",l.isUp=!0;else{const d=parseInt(String(l.value).replace(/,/g,"")),f=parseInt(String(u.value).replace(/,/g,""));if(!isNaN(d)&&!isNaN(f)&&f!==0){const m=((d-f)/f*100).toFixed(1);l.isUp=d>=f,l.diff=(l.isUp?"▲ ":"▼ ")+Math.abs(m)+"%"}else l.diff="-"}if(!l.viewValue||!(u!=null&&u.viewValue))l.viewDiff="-",l.viewIsUp=!0;else{const d=parseInt(String(l.viewValue).replace(/,/g,"")),f=parseInt(String(u.viewValue).replace(/,/g,""));if(!isNaN(d)&&!isNaN(f)&&f!==0){const m=((d-f)/f*100).toFixed(1);l.viewIsUp=d>=f,l.viewDiff=(l.viewIsUp?"▲ ":"▼ ")+Math.abs(m)+"%"}else l.viewDiff="-"}})},s=()=>{n.formData.visitorData.table.sort((l,c)=>l.date?c.date?l.date.localeCompare(c.date):-1:1),i()},o=l=>{if(!l.date)return;let c=l.date.replace(/[^0-9]/g,"");if(A.value&&(c.length===3||c.length===4)){const u=new Date().getFullYear();let d,f;c.length===3?(d="0"+c.substring(0,1),f=c.substring(1,3)):(d=c.substring(0,2),f=c.substring(2,4)),l.date=`${u}-${d}-${f}`,s();return}c.length===6?l.date=`20${c.substring(0,2)}-${c.substring(2,4)}-${c.substring(4,6)}`:c.length===8&&(l.date=`${c.substring(0,4)}-${c.substring(4,6)}-${c.substring(6,8)}`),s()},a=l=>{const c=l.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(c))return;const u=l.target;if(["INPUT","TEXTAREA"].includes(u.tagName)&&(u.type==="text"||u.type==="number"||u.type===""||u.tagName==="TEXTAREA")&&(c==="ArrowLeft"&&u.selectionStart>0||c==="ArrowRight"&&u.selectionEnd<(u.value||"").length||c==="Enter"&&l.shiftKey))return;const d=u.closest("td");if(!d)return;const f=d.closest("tr"),m=f.closest("tbody");if(!m)return;let B=Array.from(f.children).indexOf(d),v=Array.from(m.children).indexOf(f),b=null;for(;!b;){c==="ArrowUp"?v--:c==="ArrowDown"||c==="Enter"?v++:c==="ArrowLeft"?B--:c==="ArrowRight"&&B++;const C=m.children[v];if(!C)return;const Q=C.children[B];if(!Q)return;b=Q.querySelector('input:not([type="hidden"]), select, textarea')}b&&(l.preventDefault(),b.focus(),(b.tagName==="INPUT"||b.tagName==="TEXTAREA")&&b.select())};return t({calculateAllStats:i}),(l,c)=>(ht(),Bt("div",mR,[p("div",BR,[c[2]||(c[2]=p("h3",null,"방문자 수 및 조회수 추이",-1)),p("div",wR,[p("button",{class:aA(["btn-toggle-year",{active:A.value}]),onClick:c[0]||(c[0]=u=>A.value=!A.value)}," 현재년도 자동완성 "+kt(A.value?"ON":"OFF"),3),p("button",{class:"btn-add-mini",onClick:r},[Vt(qt(Rn),{size:14}),c[1]||(c[1]=ie(" 추가 ",-1))])])]),c[5]||(c[5]=p("div",{class:"info-msg"},"날짜와 데이터를 입력하면 전일 대비 증감율이 자동 계산됩니다.",-1)),p("table",{class:"hub-table",onKeydown:a},[c[4]||(c[4]=p("thead",null,[p("tr",null,[p("th",{width:"40"},"✅"),p("th",{width:"140"},"날짜"),p("th",null,"방문자 수"),p("th",{width:"100"},"전일대비"),p("th",null,"조회수"),p("th",{width:"100"},"전일대비"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.formData.visitorData.table,(u,d)=>(ht(),Bt("tr",{key:d},[p("td",null,[Tt(p("input",{type:"checkbox","onUpdate:modelValue":f=>u.selected=f},null,8,vR),[[Vb,u.selected]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":f=>u.date=f,class:"table-input",placeholder:"2026-03-27",onBlur:f=>o(u)},null,40,bR),[[Rt,u.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":f=>u.value=f,class:"table-input",onInput:i,placeholder:"방문자"},null,40,yR),[[Rt,u.value]])]),p("td",{class:aA(u.isUp?"text-up":"text-down")},kt(u.diff),3),p("td",null,[Tt(p("input",{"onUpdate:modelValue":f=>u.viewValue=f,class:"table-input",onInput:i,placeholder:"조회수"},null,40,CR),[[Rt,u.viewValue]])]),p("td",{class:aA(u.viewIsUp?"text-up":"text-down")},kt(u.viewDiff),3),p("td",null,[p("button",{class:"btn-row-del",onClick:f=>e.removeRow(e.formData.visitorData.table,d)},"×",8,xR)])]))),128)),e.formData.visitorData.table.length===0?(ht(),Bt("tr",FR,[...c[3]||(c[3]=[p("td",{colspan:"7",class:"empty-msg"},"데이터를 추가해 주세요.",-1)])])):ue("",!0)])],32)]))}},UR=LA(_R,[["__scopeId","data-v-6e0169a3"]]),QR={class:"hub-scroll-view"},ER={class:"form-card"},IR={class:"header-with-btn"},SR={style:{display:"flex",gap:"10px","align-items":"center"}},LR=["value"],kR=["onUpdate:modelValue","onBlur"],NR=["onUpdate:modelValue"],DR=["onUpdate:modelValue","onBlur"],HR={class:"sum-cell"},MR=["onClick"],TR={class:"mt-4"},OR={class:"form-card"},PR={class:"form-grid"},RR=["onUpdate:modelValue"],KR={class:"form-card"},VR={class:"form-card"},jR={class:"form-card"},GR={class:"header-with-btn"},WR={class:"exposure-grid-hub"},zR=["onUpdate:modelValue"],$R=["onClick"],qR=["src"],XR={key:1,class:"img-placeholder-hub"},YR=["id","onChange"],JR=["onClick"],ZR={class:"form-card"},t9={__name:"MarketingTab",props:{formData:Object,addRow:Function,removeRow:Function,marketingFile:null},setup(e){const t=ge(!0),A=ge(""),n=e,r=ye(()=>{var B;const d=((B=n.formData.depositDetails)==null?void 0:B.table)||[];let f=0,m=!1;for(const v of d)if((v.service||"").includes("블로그")){const b=parseInt(String(v.round||"").replace(/[^0-9]/g,""));!isNaN(b)&&b>f&&(f=b,m=!0)}return m?f:null}),i=ye(()=>{const d=n.formData.inflowData.table||[];return[...new Set(d.map(f=>f.month?f.month.substring(0,7):"").filter(Boolean))].sort().reverse()}),s=d=>d?d.startsWith("data:")||d.startsWith("http")?d:`https://kyeongmiapi.daoblock.co.kr${d}`:"",o=d=>{const f=document.getElementById(`file-hub-${d}`);f&&f.click()},a=async(d,f)=>{const m=f.target.files[0];if(m){const B=new FormData;B.append("image",m);try{const b=await(await xn.post("/api/upload",B)).json();b.imageUrl&&(n.formData.exposureStatus[d].image=b.imageUrl)}catch(v){console.error("Image upload failed:",v),alert("이미지 업로드에 실패했습니다.")}}},l=d=>{if(!d.month)return;let f=d.month.replace(/[^0-9]/g,"");if(t.value&&(f.length===3||f.length===4)){const m=new Date().getFullYear();let B,v;f.length===3?(B="0"+f.substring(0,1),v=f.substring(1,3)):(B=f.substring(0,2),v=f.substring(2,4)),d.month=`${m}-${B}-${v}`;return}f.length===6?d.month=`20${f.substring(0,2)}-${f.substring(2,4)}-${f.substring(4,6)}`:f.length===8&&(d.month=`${f.substring(0,4)}-${f.substring(4,6)}-${f.substring(6,8)}`)},c=d=>{if(d.value&&String(d.value).trim()!==""){const f=String(d.value).split(/[\s,]+/).map(m=>parseFloat(m)).filter(m=>!isNaN(m));if(f.length>0){const m=f.reduce((B,v)=>B+v,0);d.sum=m.toFixed(2)}else d.sum="0.00"}else d.sum=""},u=d=>{const f=d.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(f))return;const m=d.target;if(["INPUT","TEXTAREA"].includes(m.tagName)&&(m.type==="text"||m.type==="number"||m.type===""||m.tagName==="TEXTAREA")&&(f==="ArrowLeft"&&m.selectionStart>0||f==="ArrowRight"&&m.selectionEnd<(m.value||"").length||f==="Enter"&&d.shiftKey))return;const B=m.closest("td");if(!B)return;const v=B.closest("tr"),b=v.closest("tbody");if(!b)return;let C=Array.from(v.children).indexOf(B),Q=Array.from(b.children).indexOf(v),_=null;for(;!_;){f==="ArrowUp"?Q--:f==="ArrowDown"||f==="Enter"?Q++:f==="ArrowLeft"?C--:f==="ArrowRight"&&C++;const H=b.children[Q];if(!H)return;const W=H.children[C];if(!W)return;_=W.querySelector('input:not([type="hidden"]), select, textarea')}_&&(d.preventDefault(),_.focus(),(_.tagName==="INPUT"||_.tagName==="TEXTAREA")&&_.select())};return(d,f)=>(ht(),Bt("div",QR,[p("div",ER,[p("div",IR,[f[9]||(f[9]=p("h3",null,"유입 경로 및 분석",-1)),p("div",SR,[Tt(p("select",{"onUpdate:modelValue":f[0]||(f[0]=m=>A.value=m),class:"form-month-select"},[f[8]||(f[8]=p("option",{value:""},"전체 (날짜순)",-1)),(ht(!0),Bt(ce,null,Ue(i.value,m=>(ht(),Bt("option",{key:m,value:m},kt(m),9,LR))),128))],512),[[gi,A.value]]),p("button",{class:aA(["btn-toggle-year",{active:t.value}]),onClick:f[1]||(f[1]=m=>t.value=!t.value)}," 현재년도 자동완성 "+kt(t.value?"ON":"OFF"),3)])]),p("table",{class:"hub-table",onKeydown:u},[f[10]||(f[10]=p("thead",null,[p("tr",null,[p("th",{width:"140"},"측정원/기준일"),p("th",null,"경로명"),p("th",null,[ie("비중(%) "),p("small",null,"(예: 50.5 50.5)")]),p("th",{width:"100"},"합계"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.formData.inflowData.table,(m,B)=>Tt((ht(),Bt("tr",{key:B,class:"inflow-hub-row"},[p("td",null,[Tt(p("input",{type:"text","onUpdate:modelValue":v=>m.month=v,onBlur:v=>l(m),class:"table-input text-center",placeholder:"YYYY-MM-DD"},null,40,kR),[[Rt,m.month]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":v=>m.label=v,class:"table-input table-textarea"},null,8,NR),[[Rt,m.label]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":v=>m.value=v,class:"table-input",onBlur:v=>c(m),placeholder:"숫자 입력"},null,40,DR),[[Rt,m.value]])]),p("td",null,[p("div",HR,kt(m.sum||"-"),1)]),p("td",null,[p("button",{class:"btn-row-del",onClick:v=>e.removeRow(e.formData.inflowData.table,B)},"×",8,MR)])])),[[ko,!A.value||String(m.month||"").startsWith(A.value)]])),128))])],32),p("button",{class:"btn-add-inline",onClick:f[2]||(f[2]=m=>e.addRow(e.formData.inflowData.table,{month:"",label:"",value:"",sum:"",isUp:!0}))},"+ 경로 추가"),p("div",TR,[f[11]||(f[11]=p("label",{class:"block-label"},"유입 분석 상세 피드백",-1)),Tt(p("textarea",{"onUpdate:modelValue":f[3]||(f[3]=m=>e.formData.inflowData.description=m),class:"hub-textarea mini",placeholder:"유입 경로에 대한 분석 내용을 입력하십시오."},null,512),[[Rt,e.formData.inflowData.description]])])]),p("div",OR,[f[12]||(f[12]=p("h3",null,"전월 대비 성과 지표 비교",-1)),p("div",PR,[(ht(!0),Bt(ce,null,Ue(e.formData.comparisonData,(m,B)=>(ht(),Bt("div",{class:"form-group",key:B},[p("label",null,kt(B)+" 비교",1),Tt(p("input",{"onUpdate:modelValue":v=>e.formData.comparisonData[B]=v,placeholder:"예: 지난달 대비 15% 상승",class:"hub-input"},null,8,RR),[[Rt,e.formData.comparisonData[B]]])]))),128))])]),p("div",KR,[p("h3",null,kt(r.value?`(${r.value}회차)`:"")+" 진단결과 (성과 비교 분석 하단 표기)",1),Tt(p("textarea",{"onUpdate:modelValue":f[4]||(f[4]=m=>e.formData.diagnosisResult=m),class:"hub-textarea",placeholder:"진단결과를 입력하세요."},null,512),[[Rt,e.formData.diagnosisResult]])]),p("div",VR,[f[13]||(f[13]=p("h3",null,"리포트 종합 요약 (강조 문구)",-1)),Tt(p("textarea",{"onUpdate:modelValue":f[5]||(f[5]=m=>e.formData.reportSummary=m),class:"hub-textarea",placeholder:"리포트 하단에 강조될 핵심 총평을 입력하세요 (예: 3월 통합 모니터링 결과 지표 대폭 상승)"},null,512),[[Rt,e.formData.reportSummary]])]),p("div",jR,[p("div",GR,[f[15]||(f[15]=p("h3",null,"상위 노출 현황 (키워드 및 이미지)",-1)),p("button",{class:"btn-add-mini",onClick:f[6]||(f[6]=m=>e.addRow(e.formData.exposureStatus,{keyword:"",image:""}))},[Vt(qt(Rn),{size:14}),f[14]||(f[14]=ie(" 추가 ",-1))])]),p("div",WR,[(ht(!0),Bt(ce,null,Ue(e.formData.exposureStatus,(m,B)=>(ht(),Bt("div",{key:B,class:"exposure-item-hub"},[Tt(p("input",{"onUpdate:modelValue":v=>m.keyword=v,placeholder:"키워드",class:"kw-input"},null,8,zR),[[Rt,m.keyword]]),p("div",{class:"img-hub-box",onClick:v=>o(B)},[m.image?(ht(),Bt("img",{key:0,src:s(m.image),class:"preview-img-hub"},null,8,qR)):(ht(),Bt("div",XR,"이미지 클릭 첨부")),p("input",{id:`file-hub-${B}`,type:"file",onChange:v=>a(B,v),hidden:"",accept:"image/*"},null,40,YR)],8,$R),p("button",{class:"btn-row-del",onClick:v=>e.removeRow(e.formData.exposureStatus,B)},"삭제",8,JR)]))),128))])]),p("div",ZR,[f[16]||(f[16]=p("h3",null,"차월 마케팅 계획",-1)),Tt(p("textarea",{"onUpdate:modelValue":f[7]||(f[7]=m=>e.formData.nextMonthPlan=m),class:"hub-textarea",placeholder:"다음 달 계획을 상세히 입력하세요"},null,512),[[Rt,e.formData.nextMonthPlan]])])]))}},e9=LA(t9,[["__scopeId","data-v-26def9b2"]]),A9={class:"form-card"},n9={class:"form-grid"},r9={class:"form-group"},i9={class:"form-group"},s9={class:"form-group"},o9={class:"form-group"},a9={class:"form-group"},l9={class:"form-group"},c9={class:"form-group"},u9={class:"form-group"},f9={__name:"OurInfoTab",props:{formData:Object},setup(e){return(t,A)=>(ht(),Bt("div",A9,[A[16]||(A[16]=p("h3",null,"이체 및 결제 정보 (우리 회사)",-1)),p("div",n9,[p("div",r9,[A[8]||(A[8]=p("label",null,"회사명",-1)),Tt(p("input",{"onUpdate:modelValue":A[0]||(A[0]=n=>e.formData.transferInfo.companyName=n)},null,512),[[Rt,e.formData.transferInfo.companyName]])]),p("div",i9,[A[9]||(A[9]=p("label",null,"대표자",-1)),Tt(p("input",{"onUpdate:modelValue":A[1]||(A[1]=n=>e.formData.transferInfo.ceo=n)},null,512),[[Rt,e.formData.transferInfo.ceo]])]),p("div",s9,[A[10]||(A[10]=p("label",null,"사업자 번호",-1)),Tt(p("input",{"onUpdate:modelValue":A[2]||(A[2]=n=>e.formData.transferInfo.businessNumber=n)},null,512),[[Rt,e.formData.transferInfo.businessNumber]])]),p("div",o9,[A[11]||(A[11]=p("label",null,"담당자",-1)),Tt(p("input",{"onUpdate:modelValue":A[3]||(A[3]=n=>e.formData.transferInfo.ourManager=n),placeholder:"예: 박민준, 유경미"},null,512),[[Rt,e.formData.transferInfo.ourManager]])]),p("div",a9,[A[12]||(A[12]=p("label",null,"은행명",-1)),Tt(p("input",{"onUpdate:modelValue":A[4]||(A[4]=n=>e.formData.transferInfo.bankName=n)},null,512),[[Rt,e.formData.transferInfo.bankName]])]),p("div",l9,[A[13]||(A[13]=p("label",null,"예금주",-1)),Tt(p("input",{"onUpdate:modelValue":A[5]||(A[5]=n=>e.formData.transferInfo.holder=n)},null,512),[[Rt,e.formData.transferInfo.holder]])]),p("div",c9,[A[14]||(A[14]=p("label",null,"계좌번호",-1)),Tt(p("input",{"onUpdate:modelValue":A[6]||(A[6]=n=>e.formData.transferInfo.account=n)},null,512),[[Rt,e.formData.transferInfo.account]])]),p("div",u9,[A[15]||(A[15]=p("label",null,"입금 금액",-1)),Tt(p("input",{"onUpdate:modelValue":A[7]||(A[7]=n=>e.formData.transferInfo.amount=n),placeholder:"예: 3,000,000원"},null,512),[[Rt,e.formData.transferInfo.amount]])])])]))}},h9=LA(f9,[["__scopeId","data-v-3bf7f901"]]),d9={class:"management-hub"},g9={class:"hub-header"},p9={class:"search-selection"},m9={class:"search-box"},B9={class:"search-input-wrapper"},w9={key:0,class:"search-dropdown"},v9=["onClick"],b9=["value"],y9=["value"],C9={class:"header-actions"},x9=["disabled"],F9=["disabled"],_9=["disabled"],U9={key:0,class:"empty-state"},Q9={class:"empty-content"},E9={key:1,class:"hub-container"},I9={class:"hub-tabs"},S9={class:"tab-content-area"},L9={__name:"CompanyManagementHub",props:{companies:Array,initialCompanyId:String},emits:["refresh"],setup(e,{emit:t}){const A=e,n=t,r=ge(!1),i=ge(A.initialCompanyId||""),s=ge(""),o=ge(!1),a=ge("basic"),l=ge(null),c=ge({name:"",companyInfo:{manager:"",contact:"",email:"",businessNumber:"",businessLicenseImg:"",taxInvoice:"",twoFactorAuth:"",naverIdPw:"",blogLink:"",refLink:""},visitorData:{chart:[],table:[],viewMode:"all",startDate:"",endDate:""},viewData:{chart:[],table:[],viewMode:"all",startDate:"",endDate:""},inflowData:{chart:[],table:[],description:""},exposureStatus:[],nextMonthPlan:"",comparisonData:{방문자수:"",조회수:"",유입변화:""},diagnosisResult:"",reportSummary:"",transferInfo:{companyName:"(주)이지엠앤씨",businessNumber:"210-81-78652",ceo:"김용수",ourManager:"박민준, 유경미",bankName:"우리은행",account:"1005-704-557550",holder:"(주)이지엠앤씨",amount:""},depositDetails:{dates:[],table:[]},blogStatus:[],blogRounds:[{number:1,completed:!1}],blogReportRound:1,serviceCategories:[]}),u=ge("전체"),d=ye(()=>{let V=[];return u.value==="전체"?V=c.value.blogStatus:V=c.value.blogStatus.filter(F=>F.round===parseInt(u.value)),[...V].sort((F,L)=>(parseInt(F.round)||0)-(parseInt(L.round)||0))}),f=ge({summary:[{service:"",totalAmount:"",rounds:"",completedAmount:""}],details:[{round:"",status:"",method:"",status2:"",subAmount:""}],issue:[{target:"",completed:"",remaining:"",status:"",note:"",lastDate:""}]}),m=ye(()=>s.value?A.companies.filter(V=>V.name.toLowerCase().includes(s.value.toLowerCase())):[]),B=async V=>{i.value=V.companyId,s.value=V.name,o.value=!1,await v(V.companyId)},v=async V=>{var F;if(V){r.value=!0;try{const L=await xn.get(`/api/report/${V}`);if(L.ok){const G=await L.json(),q=((F=G.visitorData)==null?void 0:F.table)||[];c.value={name:G.name||"",companyInfo:G.companyInfo||{manager:"",contact:"",email:"",businessNumber:"",businessLicenseImg:"",taxInvoice:"",twoFactorAuth:"",naverIdPw:"",blogLink:"",refLink:""},visitorData:{...G.visitorData,table:q},viewData:G.viewData||{chart:[],table:[],viewMode:"all",startDate:"",endDate:""},inflowData:G.inflowData||{chart:[],table:[],description:""},exposureStatus:G.exposureStatus||[],nextMonthPlan:G.nextMonthPlan||"",comparisonData:G.comparisonData&&Object.keys(G.comparisonData).length>0?G.comparisonData:{방문자수:"",조회수:"",유입변화:""},diagnosisResult:G.diagnosisResult||"",reportSummary:G.reportSummary||"",transferInfo:G.transferInfo||{companyName:"(주)이지엠앤씨",businessNumber:"210-81-78652",ceo:"김용수",ourManager:"박민준, 유경미",bankName:"우리은행",account:"1005-704-557550",holder:"(주)이지엠앤씨",amount:""},depositDetails:G.depositDetails||{dates:[],table:[]},blogStatus:G.blogStatus||[],blogRounds:G.blogRounds||[{number:1,completed:!1}],blogReportRound:G.blogReportRound||1,serviceCategories:G.serviceCategories||[]},localStorage.setItem("lastManagedCompanyId",String(V)),G.depositManagement?f.value=G.depositManagement:f.value={details:[],summary:[]};const ft=c.value.blogStatus.map(Z=>parseInt(Z.round)).filter(Z=>!isNaN(Z)),lt=ft.length>0?Math.max(...ft):1,ct=c.value.blogRounds.map(Z=>Z.number),at=ct.length>0?Math.max(...ct):1,st=Math.max(lt,at);if(st>at)for(let Z=at+1;Z<=st;Z++)c.value.blogRounds.push({number:Z,completed:!1});setTimeout(()=>{var Z;(Z=l.value)!=null&&Z.calculateAllStats&&l.value.calculateAllStats()},50)}}catch(L){console.error("Data load error:",L)}finally{r.value=!1}}},b=async()=>{var V,F;if(!i.value){alert("업체를 선택해 주세요.");return}r.value=!0;try{((F=(V=c.value.inflowData)==null?void 0:V.table)==null?void 0:F.length)>0&&c.value.inflowData.table.sort((q,ft)=>{const lt=q.month||"";return(ft.month||"").localeCompare(lt)}),c.value.visitorData.chart=c.value.visitorData.table.filter(q=>q.value!==void 0&&q.value!=="").map(q=>({date:q.date,value:parseInt(String(q.value).replace(/,/g,""))||0})),c.value.viewData.table=c.value.visitorData.table.filter(q=>q.viewValue!==void 0&&q.viewValue!=="").map(q=>({selected:q.selected,date:q.date,value:q.viewValue,diff:q.viewDiff,isUp:q.viewIsUp})),c.value.viewData.chart=c.value.viewData.table.map(q=>({date:q.date,value:parseInt(String(q.value).replace(/,/g,""))||0}));const L={companyId:i.value,...c.value,depositManagement:f.value};(await xn.post("/api/report",L)).ok?alert("모든 정보가 성공적으로 저장되었습니다."):alert("저장 실패")}catch(L){console.error("Save error:",L),alert("저장 중 오류가 발생했습니다.")}finally{r.value=!1}},C=async()=>{if(i.value&&confirm(`'${c.value.name||"선택된"}' 업체를 정말 삭제하시겠습니까?`)){r.value=!0;try{(await xn.delete(`/api/report/${i.value}`)).ok&&(alert("성공적으로 삭제되었습니다."),i.value="",s.value="",n("refresh"))}finally{r.value=!1}}},Q=async()=>{const V=prompt("추가할 새로운 업체명을 입력하세요:");if(!(!V||!V.trim()))try{(await xn.post("/api/reports/add",{name:V.trim()})).ok&&(alert(`'${V}' 업체가 성공적으로 추가되었습니다.`),n("refresh"))}catch(F){console.error("Add company error:",F)}},_=(V,F)=>{if(Array.isArray(V)){const L={...F};V===c.value.blogStatus&&u.value!=="전체"&&(L.round=parseInt(u.value)),V.push(L)}},H=(V,F)=>{V.length>0&&V.splice(F,1)},W=V=>{if(!V)return"";const F=String(V).replace(/[^0-9]/g,"");return F?F.replace(/\B(?=(\d{3})+(?!\d))/g,","):""},R=()=>{const V=c.value.blogRounds.length+1;c.value.blogRounds.push({number:V,completed:!1}),u.value=String(V)},O=()=>{const V=parseInt(u.value);if(isNaN(V))return;const F=c.value.blogRounds.find(L=>L.number===V);F&&(F.completed=!0,alert(`${V}회차가 완료 처리되었습니다.`))},k=V=>{confirm(`${V}회차를 삭제하시겠습니까? 해당 회차의 모든 내역(블로그/발행현황)이 함께 삭제됩니다.`)&&(c.value.blogStatus=c.value.blogStatus.filter(F=>F.round!==V),f.value.issue=f.value.issue.filter(F=>F.round!==V),c.value.blogRounds=c.value.blogRounds.filter(F=>F.number!==V),u.value="전체")};return wi(()=>{const V=localStorage.getItem("lastManagedTab");V&&(a.value=V);let F=i.value||localStorage.getItem("lastManagedCompanyId");if(F){const L=A.companies.find(G=>String(G.companyId)===String(F));L&&(i.value=L.companyId,s.value=L.name,v(F))}}),Fr(a,V=>{localStorage.setItem("lastManagedTab",V)}),(V,F)=>(ht(),Bt("div",d9,[p("header",g9,[p("div",p9,[p("div",m9,[p("div",B9,[Vt(qt(Ep),{size:18,class:"search-icon"}),Tt(p("input",{"onUpdate:modelValue":F[0]||(F[0]=L=>s.value=L),placeholder:"업체명을 검색하거나 선택하세요",onFocus:F[1]||(F[1]=L=>o.value=!0),class:"hub-search-input"},null,544),[[Rt,s.value]])]),o.value&&m.value.length>0?(ht(),Bt("div",w9,[(ht(!0),Bt(ce,null,Ue(m.value,L=>(ht(),Bt("div",{key:L.companyId,class:"search-item",onClick:G=>B(L)},kt(L.name),9,v9))),128))])):ue("",!0)]),p("select",{value:i.value,onChange:F[2]||(F[2]=L=>{const G=A.companies.find(q=>q.companyId===L.target.value);G&&B(G)}),class:"hub-select"},[F[10]||(F[10]=p("option",{value:"",disabled:""},"-- 업체 선택 --",-1)),(ht(!0),Bt(ce,null,Ue(e.companies,L=>(ht(),Bt("option",{key:L.companyId,value:L.companyId},kt(L.name),9,y9))),128))],40,b9)]),p("div",C9,[p("button",{class:"btn-hub-delete",onClick:C,disabled:r.value||!i.value}," 업체 삭제 ",8,x9),p("button",{class:"btn-hub-add",onClick:Q,disabled:r.value},[Vt(qt(Rn),{size:18}),F[11]||(F[11]=ie(" 업체 추가 ",-1))],8,F9),p("button",{class:"btn-save-all",onClick:b,disabled:r.value||!i.value},[Vt(qt(i5),{size:18}),F[12]||(F[12]=ie(" 전체 저장 ",-1))],8,_9)])]),i.value?(ht(),Bt("div",E9,[p("nav",I9,[p("button",{class:aA({active:a.value==="basic"}),onClick:F[3]||(F[3]=L=>a.value="basic")},[Vt(qt($0),{size:16}),F[14]||(F[14]=ie(" 기본정보 ",-1))],2),p("button",{class:aA({active:a.value==="deposit"}),onClick:F[4]||(F[4]=L=>a.value="deposit")},[Vt(qt(Qp),{size:16}),F[15]||(F[15]=ie(" 입금/결제 관리 ",-1))],2),p("button",{class:aA({active:a.value==="blog"}),onClick:F[5]||(F[5]=L=>a.value="blog")},[Vt(qt(xU),{size:16}),F[16]||(F[16]=ie(" 블로그 현황 ",-1))],2),p("button",{class:aA({active:a.value==="visitor"}),onClick:F[6]||(F[6]=L=>a.value="visitor")},[Vt(qt(dU),{size:16}),F[17]||(F[17]=ie(" 방문자 데이터 ",-1))],2),p("button",{class:aA({active:a.value==="marketing"}),onClick:F[7]||(F[7]=L=>a.value="marketing")},[Vt(qt(Ep),{size:16}),F[18]||(F[18]=ie(" 노출/유입/계획 ",-1))],2),p("button",{class:aA({active:a.value==="our-info"}),onClick:F[8]||(F[8]=L=>a.value="our-info")},[Vt(qt(vU),{size:16}),F[19]||(F[19]=ie(" 이체(우리회사) ",-1))],2)]),p("div",S9,[a.value==="basic"?(ht(),Xn(t7,{key:0,formData:c.value,loading:r.value},null,8,["formData","loading"])):ue("",!0),a.value==="deposit"?(ht(),Xn(X7,{key:1,formData:c.value,depositManagement:f.value,selectedBlogRound:u.value,filteredBlogStatus:d.value,addRow:_,removeRow:H,formatNumber:W,completeCurrentRound:O,addNextRound:R,deleteRound:k,"onUpdate:selectedBlogRound":F[9]||(F[9]=L=>u.value=L),onSave:b},null,8,["formData","depositManagement","selectedBlogRound","filteredBlogStatus"])):ue("",!0),F[20]||(F[20]=ie()),a.value==="blog"?(ht(),Xn(pR,{key:2,formData:c.value,addRow:_,removeRow:H},null,8,["formData"])):ue("",!0),a.value==="visitor"?(ht(),Xn(UR,{key:3,ref_key:"visitorTabRef",ref:l,formData:c.value,removeRow:H},null,8,["formData"])):ue("",!0),a.value==="marketing"?(ht(),Xn(e9,{key:4,formData:c.value,addRow:_,removeRow:H},null,8,["formData"])):ue("",!0),a.value==="our-info"?(ht(),Xn(h9,{key:5,formData:c.value},null,8,["formData"])):ue("",!0)])])):(ht(),Bt("div",U9,[p("div",Q9,[Vt(qt(dh),{size:48,style:{margin:"0 auto 10px"}}),F[13]||(F[13]=p("p",null,"관리할 업체를 선택해 주세요.",-1))])]))]))}},k9=LA(L9,[["__scopeId","data-v-5949dce8"]]),N9={class:"management-section"},D9={key:0,class:"view-header"},H9={class:"title-group"},M9={class:"header-actions"},T9={key:0,class:"search-container"},O9={class:"company-select-wrapper"},P9=["value"],R9=["value"],K9={class:"search-box"},V9={class:"search-input-wrapper"},j9={key:0,class:"search-dropdown"},G9=["onClick"],W9={key:1,class:"year-select-container"},z9=["value"],$9={key:2,class:"search-box"},q9={key:3,class:"btn-loading",disabled:""},X9={key:1,class:"mini-calendar-wrapper"},Y9={class:"card calendar-card"},J9={class:"calendar-header"},Z9={class:"calendar-title"},tK={class:"calendar-grid"},eK={key:2,class:"month-tabs"},AK={class:"active-year-label"},nK=["onClick"],rK={class:"management-content-wrapper"},iK={key:0,class:"company-detail-view"},sK={class:"card sub-card"},oK={class:"card-header-with-btn"},aK=["onUpdate:modelValue"],lK=["value","onInput"],cK=["onUpdate:modelValue"],uK=["value","onInput"],fK=["onClick"],hK={class:"card sub-card"},dK={class:"card-header-with-btn"},gK=["onUpdate:modelValue"],pK=["onUpdate:modelValue"],mK=["onUpdate:modelValue"],BK=["onUpdate:modelValue"],wK=["value","onInput"],vK=["onClick"],bK={class:"card sub-card"},yK={class:"card-header-with-btn"},CK=["onUpdate:modelValue"],xK=["onUpdate:modelValue"],FK=["onUpdate:modelValue"],_K=["onUpdate:modelValue"],UK=["onUpdate:modelValue"],QK=["onUpdate:modelValue"],EK=["onClick"],IK={class:"card sub-card"},SK={class:"card-header-with-btn"},LK=["onUpdate:modelValue"],kK=["onUpdate:modelValue"],NK=["onUpdate:modelValue"],DK=["onUpdate:modelValue"],HK=["value","onInput"],MK=["onUpdate:modelValue"],TK=["onClick"],OK={key:1,class:"calendar-view-container"},PK={class:"card card-full data-board no-border",style:{"margin-top":"20px","min-height":"auto"}},RK={class:"table-scroll-container"},KK={class:"id-cell"},VK=["onUpdate:modelValue"],jK=["onClick"],GK={class:"card card-full sub-card"},WK={class:"card-header-with-btn"},zK={class:"header-title-toggle"},$K={class:"header-summary"},qK={class:"sum-value"},XK={class:"table-scroll-container"},YK={class:"memo-table"},JK={class:"name-cell"},ZK={class:"amount-cell"},tV={key:0},eV={class:"card card-full sub-card"},AV={class:"card-header-with-btn"},nV={class:"header-title-toggle"},rV={class:"header-summary"},iV={class:"sum-value"},sV={class:"table-scroll-container"},oV={class:"memo-table"},aV={class:"amount-cell"},lV={key:0},cV={key:2,class:"card card-full data-board no-border"},uV={class:"card-header-with-btn",style:{"margin-bottom":"16px"}},fV={class:"header-summary"},hV={class:"sum-value"},dV={class:"table-scroll-container"},gV=["onUpdate:modelValue"],pV=["onUpdate:modelValue"],mV=["onUpdate:modelValue"],BV=["value","onInput"],wV=["onUpdate:modelValue"],vV=["onClick"],bV={key:3,class:"card card-full data-board no-border"},yV={class:"table-scroll-container"},CV=["onUpdate:modelValue"],xV=["onUpdate:modelValue"],FV=["onUpdate:modelValue"],_V=["onUpdate:modelValue"],UV=["onUpdate:modelValue"],QV=["onClick"],EV={key:5,class:"card card-full data-board no-border"},IV={class:"table-scroll-container"},SV={class:"memo-table bordered"},LV={class:"id-cell"},kV=["onUpdate:modelValue"],NV=["onClick"],DV={key:3,class:"total-summary-card"},HV={class:"total-info"},MV={class:"total-label"},TV={class:"total-value"},OV={__name:"ManagementSection",props:{title:String,type:String,showExcel:Boolean,companies:Array},emits:["refreshCompanies"],setup(e,{emit:t}){const A=e,n=t,r=ge(!1),i=ge(new Date().getMonth()+1),s=ge(new Date().getFullYear()),o=ge(""),a=ge(""),l=ge(!1),c=ge({summary:[{id:1,service:"",totalAmount:"",rounds:"",completedAmount:""}],details:[{id:1,round:"",status:"",method:"",status2:"",subAmount:""}],issue:[{id:1,target:"",completed:"",remaining:"",status:"",note:"",lastDate:""}],deposits:[{id:1,round:"",date:"",companyName:"",service:"",amount:"",note:""}]}),u=ge([{id:1,date:"",nickname:"",content:"",amount:"",note:""}]),d=ge([{id:1,date:"",type:"",title:"",url:"",session:""}]),f=ge([{id:1,content:""}]),m=ge([]),B=ye(()=>`GLOBAL_${s.value}_${String(i.value).padStart(2,"0")}`),v=ye(()=>`KMONG_${s.value}_${String(i.value).padStart(2,"0")}`),b=ge({summary:!1,details:!1,issue:!1,deposits:!1}),C=st=>{b.value[st]=!b.value[st]},Q=ye(()=>o.value?A.companies.filter(st=>st.name.toLowerCase().includes(o.value.toLowerCase())):[]),_=st=>{a.value=st.companyId,o.value=st.name,l.value=!1,R()};Fr(()=>A.type,()=>{A.type!=="deposit-company"&&A.type!=="blog-total"&&(a.value="",o.value=""),R()}),Fr([s,i],()=>{R()});const H=()=>{const st=o.value.trim().toLowerCase();if(l.value=!1,!st){alert("검색어를 입력해주세요.");return}const Z=A.companies.find(j=>j.name.toLowerCase().includes(st));Z?_(Z):alert("해당하는 업체명을 찾을 수 없습니다.")},W=ye(()=>{if(A.type==="deposit-company"&&a.value){const st=A.companies.find(Z=>Z.companyId===a.value);if(st)return`${st.name} 조회`}return A.title}),R=async()=>{var Z,j,U;const st=A.type;if(!(!a.value&&(st==="deposit-company"||st==="blog-total"))){r.value=!0;try{if(a.value){const At=await xn.get(`/api/report/${a.value}`);if(At.ok){const z=await At.json();z.blogStatus&&(d.value=z.blogStatus.map((nt,ot)=>({id:ot+1,date:nt.date,type:"네이버",title:nt.title,url:nt.link,session:nt.status}))),(Z=z.depositDetails)!=null&&Z.table&&(c.value.deposits=z.depositDetails.table.map((nt,ot)=>({id:ot+1,round:nt.round,date:nt.date,companyName:nt.companyName||"",service:nt.service,amount:nt.amount,note:nt.note})),c.value.details=z.depositDetails.table.map((nt,ot)=>({id:ot+1,round:nt.round,status:"입금완료",method:"이체",status2:nt.note,subAmount:nt.amount})))}}const N=await xn.get("/api/reports/all");N.ok&&(m.value=await N.json());const tt=await xn.get(`/api/report/${B.value}`);if(tt.ok){const At=await tt.json();f.value=((j=At.visitorData)==null?void 0:j.table)||[{id:1,content:""}]}else f.value=[{id:1,content:""}];const et=await xn.get(`/api/report/${v.value}`);if(et.ok){const At=await et.json();u.value=((U=At.depositDetails)==null?void 0:U.table)||[{id:1,date:"",nickname:"",content:"",amount:"",note:""}]}else u.value=[{id:1,date:"",nickname:"",content:"",amount:"",note:""}]}catch(N){console.error("Fetch error:",N)}finally{r.value=!1}}},O=async()=>{r.value=!0;try{const st=A.type;let Z;st==="deposit-all"?Z=await xn.post("/api/report",{companyId:B.value,name:`${s.value}년 ${i.value}월 전체관리`,visitorData:{table:f.value}}):st==="deposit-kmong"?Z=await xn.post("/api/report",{companyId:v.value,name:`${s.value}년 ${i.value}월 크몽결제`,depositDetails:{table:u.value}}):st==="deposit-company"&&a.value?Z=await xn.post("/api/report",{companyId:a.value,depositDetails:{table:c.value.deposits.map(j=>({round:j.round,date:j.date,companyName:j.companyName,service:j.service,amount:j.amount,note:j.note}))}}):st==="blog-total"&&a.value&&(Z=await xn.post("/api/report",{companyId:a.value,blogStatus:d.value.map(j=>({date:j.date,title:j.title,link:j.url,status:j.session}))})),Z&&Z.ok?(alert("저장되었습니다."),R()):Z&&alert("저장에 실패했습니다.")}catch(st){console.error("Save error:",st),alert("저장 도중 오류가 발생했습니다.")}finally{r.value=!1}},k=(st,Z=null)=>{if(st==="deposit-company"){const j=c.value[Z],U=j.length>0?Math.max(...j.map(N=>N.id)):0;Z==="summary"&&j.push({id:U+1,service:"",totalAmount:"",rounds:"",completedAmount:""}),Z==="details"&&j.push({id:U+1,round:"",status:"",method:"",status2:"",subAmount:""}),Z==="issue"&&j.push({id:U+1,target:"",completed:"",remaining:"",status:"",note:"",lastDate:""}),Z==="deposits"&&j.push({id:U+1,round:"",date:"",companyName:"",service:"",amount:"",note:""})}else st==="deposit-kmong"?u.value.push({id:u.value.length+1,date:"",nickname:"",content:"",amount:"",note:""}):st==="blog-total"?d.value.push({id:d.value.length+1,date:"",type:"",title:"",url:"",session:""}):f.value.push({id:f.value.length+1,content:""})},V=(st,Z)=>{st.length>1&&st.splice(Z,1)},F=st=>{if(!st)return"";const Z=String(st).replace(/[^0-9]/g,"");return Z?Z.replace(/\B(?=(\d{3})+(?!\d))/g,","):""},L=st=>{const Z=st.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(Z))return;const j=st.target;if(["INPUT","TEXTAREA"].includes(j.tagName)&&(j.type==="text"||j.type==="number"||j.type===""||j.tagName==="TEXTAREA")&&(Z==="ArrowLeft"&&j.selectionStart>0||Z==="ArrowRight"&&j.selectionEnd<(j.value||"").length||Z==="Enter"&&st.shiftKey))return;const U=j.closest("td");if(!U)return;const N=U.closest("tr"),tt=N.closest("tbody");if(!tt)return;let et=Array.from(N.children).indexOf(U),At=Array.from(tt.children).indexOf(N),z=null;for(;!z;){Z==="ArrowUp"?At--:Z==="ArrowDown"||Z==="Enter"?At++:Z==="ArrowLeft"?et--:Z==="ArrowRight"&&et++;const nt=tt.children[At];if(!nt)return;const ot=nt.children[et];if(!ot)return;z=ot.querySelector('input:not([type="hidden"]), select, textarea')}z&&(st.preventDefault(),z.focus(),(z.tagName==="INPUT"||z.tagName==="TEXTAREA")&&z.select())},G=()=>{alert("엑셀 파일로 변환하여 다운로드를 시작합니다.")},q=ye(()=>{const Z=new Date().getFullYear(),j=[];for(let U=2026;U<=Z;U++)j.push(U);return j}),ft=ye(()=>{const st=s.value,Z=i.value,j=new Date(st,Z-1,1).getDay(),U=new Date(st,Z,0).getDate(),N=[];for(let et=0;et<j;et++)N.push({day:"",type:"empty"});for(let et=1;et<=U;et++)N.push({day:et,type:"current"});const tt=42-N.length;for(let et=0;et<tt;et++)N.push({day:"",type:"empty"});return N}),lt=ye(()=>{const st=[],Z=s.value,j=i.value,U=String(j).padStart(2,"0");return m.value.forEach(N=>{var et;if(N.companyId.startsWith("GLOBAL_")||N.companyId.startsWith("KMONG_"))return;(((et=N.depositDetails)==null?void 0:et.table)||[]).forEach(At=>{let z=!1;if(At.date){const nt=String(At.date).trim();let ot=Z,wt=null;const _t=nt.match(/(20\d{2})/);_t&&(ot=parseInt(_t[1],10));const P=nt.match(/(?:^|[^\d])(0?[1-9]|1[0-2])(?:[^\d]|$)/);P&&(wt=parseInt(P[1],10)),(wt===j&&ot===Z||!wt&&(nt.startsWith(U)||nt.startsWith(String(j))))&&(z=!0)}z&&st.push({companyName:N.name,...At})})}),st.sort((N,tt)=>(N.date||"").localeCompare(tt.date||""))}),ct=ye(()=>u.value.reduce((st,Z)=>st+(parseInt(String(Z.amount).replace(/[^0-9]/g,""))||0),0)),at=ye(()=>lt.value.reduce((st,Z)=>st+(parseInt(String(Z.amount).replace(/[^0-9]/g,""))||0),0));return wi(R),(st,Z)=>(ht(),Bt("div",N9,[e.type!=="company-total"?(ht(),Bt("header",D9,[p("div",H9,[p("h2",null,kt(W.value),1),Z[16]||(Z[16]=p("span",{class:"view-badge"},"관리 도구",-1))]),p("div",M9,[["deposit-company","blog-total"].includes(e.type)?(ht(),Bt("div",T9,[p("div",O9,[p("select",{value:a.value,onChange:Z[0]||(Z[0]=j=>{const U=A.companies.find(N=>N.companyId===j.target.value);U&&_(U)}),class:"company-select-dropdown"},[Z[17]||(Z[17]=p("option",{value:"",disabled:""},"--",-1)),(ht(!0),Bt(ce,null,Ue(A.companies,j=>(ht(),Bt("option",{key:j.companyId,value:j.companyId},kt(j.name),9,R9))),128))],40,P9)]),p("div",K9,[p("div",V9,[Tt(p("input",{"onUpdate:modelValue":Z[1]||(Z[1]=j=>o.value=j),placeholder:"업체명 검색",class:"search-input",onKeyup:Is(H,["enter"]),onFocus:Z[2]||(Z[2]=j=>l.value=!0),onInput:Z[3]||(Z[3]=j=>l.value=!0)},null,544),[[Rt,o.value]]),p("button",{class:"btn-search-exec",onClick:H},[Vt(qt(Ep),{size:16})])]),l.value&&Q.value.length>0?(ht(),Bt("div",j9,[(ht(!0),Bt(ce,null,Ue(Q.value,j=>(ht(),Bt("div",{key:j.companyId,class:"search-item",onClick:U=>_(j)},kt(j.name),9,G9))),128))])):ue("",!0)])])):ue("",!0),["deposit-all","deposit-kmong"].includes(e.type)?(ht(),Bt("div",W9,[Tt(p("select",{"onUpdate:modelValue":Z[4]||(Z[4]=j=>s.value=j),class:"year-select"},[(ht(!0),Bt(ce,null,Ue(q.value,j=>(ht(),Bt("option",{key:j,value:j},kt(j)+"년",9,z9))),128))],512),[[gi,s.value]])])):ue("",!0),e.type==="deposit-kmong"?(ht(),Bt("div",$9,[Tt(p("input",{"onUpdate:modelValue":Z[5]||(Z[5]=j=>o.value=j),placeholder:"닉네임 검색",class:"search-input"},null,512),[[Rt,o.value]])])):ue("",!0),r.value?(ht(),Bt("button",q9,[Vt(qt(e2),{size:16,class:"spin"}),Z[18]||(Z[18]=ie(" 로딩 중... ",-1))])):(ht(),Bt("button",{key:4,class:"btn-refresh",onClick:R},[Vt(qt(e2),{size:16}),Z[19]||(Z[19]=ie(" 새로고침 ",-1))])),["deposit-all","deposit-kmong","deposit-company","blog-total"].includes(e.type)?(ht(),Bt("button",{key:5,class:"btn-save-data",onClick:O},[Vt(qt(i5),{size:16}),Z[20]||(Z[20]=ie(" 데이터 저장 ",-1))])):ue("",!0),e.showExcel?(ht(),Bt("button",{key:6,class:"btn-excel-export",onClick:G},[Vt(qt(wU),{size:18}),Z[21]||(Z[21]=ie(" 엑셀 저장 ",-1))])):ue("",!0),e.type!=="deposit-company"?(ht(),Bt("button",{key:7,class:"btn-primary-sm",onClick:Z[6]||(Z[6]=()=>k(e.type))},[Vt(qt(Rn),{size:16}),Z[22]||(Z[22]=ie(" 항목 추가 ",-1))])):ue("",!0)])])):ue("",!0),["deposit-all","deposit-kmong"].includes(e.type)?(ht(),Bt("div",X9,[p("div",Y9,[p("div",J9,[p("span",Z9,kt(s.value)+"년 "+kt(i.value)+"월",1)]),p("div",tK,[(ht(),Bt(ce,null,Ue(["일","월","화","수","목","금","토"],j=>p("div",{key:j,class:aA(["day-label",{sun:j==="일",sat:j==="토"}])},kt(j),3)),64)),(ht(!0),Bt(ce,null,Ue(ft.value,(j,U)=>(ht(),Bt("div",{key:U,class:aA(["day-cell",{empty:j.type==="empty"}])},[j.day?(ht(),Bt("span",{key:0,class:aA(["date-num",{sun:U%7===0,sat:U%7===6,today:j.day===new Date().getDate()&&i.value===new Date().getMonth()+1&&s.value===new Date().getFullYear()}])},kt(j.day),3)):ue("",!0)],2))),128))])])])):ue("",!0),["deposit-all","deposit-kmong"].includes(e.type)?(ht(),Bt("div",eK,[p("div",AK,kt(s.value)+"년",1),(ht(),Bt(ce,null,Ue(12,j=>p("button",{key:j,class:aA(["month-btn",{active:i.value===j}]),onClick:U=>i.value=j},kt(j)+"월 ",11,nK)),64))])):ue("",!0),p("div",rK,[e.type==="deposit-company"?(ht(),Bt("div",iK,[p("div",sK,[p("div",oK,[p("div",{class:"header-title-toggle",onClick:Z[7]||(Z[7]=j=>C("summary"))},[(ht(),Xn(Pu(b.value.summary?qt(Ku):qt(Uo)),{size:20})),Z[23]||(Z[23]=p("h3",null,"결제 요약 현황",-1))]),b.value.summary?ue("",!0):(ht(),Bt("button",{key:0,class:"btn-add-mini",onClick:Z[8]||(Z[8]=j=>k("deposit-company","summary"))},[Vt(qt(Rn),{size:14}),Z[24]||(Z[24]=ie(" 추가 ",-1))]))]),Tt(p("div",null,[p("table",{class:"memo-table",onKeydown:L},[Z[25]||(Z[25]=p("thead",null,[p("tr",null,[p("th",{width:"60"},"순번"),p("th",null,"서비스"),p("th",null,"총결제 금액"),p("th",null,"완료회차"),p("th",null,"완료 금액"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(c.value.summary,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.service=N,class:"memo-input"},null,8,aK),[[Rt,j.service]])]),p("td",null,[p("input",{value:F(j.totalAmount),onInput:N=>j.totalAmount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input"},null,40,lK)]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.rounds=N,class:"memo-input"},null,8,cK),[[Rt,j.rounds]])]),p("td",null,[p("input",{value:F(j.completedAmount),onInput:N=>j.completedAmount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input"},null,40,uK)]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(c.value.summary,U)},"×",8,fK)])]))),128))])],32)],512),[[ko,!b.value.summary]])]),p("div",hK,[p("div",dK,[p("div",{class:"header-title-toggle",onClick:Z[9]||(Z[9]=j=>C("details"))},[(ht(),Xn(Pu(b.value.details?qt(Ku):qt(Uo)),{size:20})),Z[26]||(Z[26]=p("h3",null,"진행회차 상세",-1))]),b.value.details?ue("",!0):(ht(),Bt("button",{key:0,class:"btn-add-mini",onClick:Z[10]||(Z[10]=j=>k("deposit-company","details"))},[Vt(qt(Rn),{size:14}),Z[27]||(Z[27]=ie(" 추가 ",-1))]))]),Tt(p("div",null,[p("table",{class:"memo-table",onKeydown:L},[Z[28]||(Z[28]=p("thead",null,[p("tr",null,[p("th",null,"진행회차"),p("th",null,"진행중"),p("th",null,"결제수단"),p("th",null,"진행중"),p("th",null,"세부금액"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(c.value.details,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.round=N,class:"memo-input"},null,8,gK),[[Rt,j.round]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.status=N,class:"memo-input"},null,8,pK),[[Rt,j.status]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.method=N,class:"memo-input"},null,8,mK),[[Rt,j.method]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.status2=N,class:"memo-input"},null,8,BK),[[Rt,j.status2]])]),p("td",null,[p("input",{value:F(j.subAmount),onInput:N=>j.subAmount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input"},null,40,wK)]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(c.value.details,U)},"×",8,vK)])]))),128))])],32)],512),[[ko,!b.value.details]])]),p("div",bK,[p("div",yK,[p("div",{class:"header-title-toggle",onClick:Z[11]||(Z[11]=j=>C("issue"))},[(ht(),Xn(Pu(b.value.issue?qt(Ku):qt(Uo)),{size:20})),Z[29]||(Z[29]=p("h3",null,"발행 현황 관리",-1))]),b.value.issue?ue("",!0):(ht(),Bt("button",{key:0,class:"btn-add-mini",onClick:Z[12]||(Z[12]=j=>k("deposit-company","issue"))},[Vt(qt(Rn),{size:14}),Z[30]||(Z[30]=ie(" 추가 ",-1))]))]),Tt(p("div",null,[p("table",{class:"memo-table",onKeydown:L},[Z[31]||(Z[31]=p("thead",null,[p("tr",null,[p("th",null,"목표발행"),p("th",null,"발행완료"),p("th",null,"남은발행"),p("th",null,"현재상황"),p("th",null,"비고"),p("th",null,"마지막 발행일"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(c.value.issue,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.target=N,class:"memo-input"},null,8,CK),[[Rt,j.target]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.completed=N,class:"memo-input"},null,8,xK),[[Rt,j.completed]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.remaining=N,class:"memo-input"},null,8,FK),[[Rt,j.remaining]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.status=N,class:"memo-input"},null,8,_K),[[Rt,j.status]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.note=N,class:"memo-input"},null,8,UK),[[Rt,j.note]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.lastDate=N,class:"memo-input",placeholder:"0000-00-00"},null,8,QK),[[Rt,j.lastDate]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(c.value.issue,U)},"×",8,EK)])]))),128))])],32)],512),[[ko,!b.value.issue]])]),p("div",IK,[p("div",SK,[p("div",{class:"header-title-toggle",onClick:Z[13]||(Z[13]=j=>C("deposits"))},[(ht(),Xn(Pu(b.value.deposits?qt(Ku):qt(Uo)),{size:20})),Z[32]||(Z[32]=p("h3",null,"입금액 상세 관리",-1))]),b.value.deposits?ue("",!0):(ht(),Bt("button",{key:0,class:"btn-add-mini",onClick:Z[14]||(Z[14]=j=>k("deposit-company","deposits"))},[Vt(qt(Rn),{size:14}),Z[33]||(Z[33]=ie(" 추가 ",-1))]))]),Tt(p("div",null,[p("table",{class:"memo-table",onKeydown:L},[Z[34]||(Z[34]=p("thead",null,[p("tr",null,[p("th",{width:"100"},"회차"),p("th",{width:"100"},"날짜"),p("th",null,"업체명"),p("th",null,"항목/서비스"),p("th",{width:"150"},"입금금액"),p("th",null,"비고"),p("th",{width:"55"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(c.value.deposits,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.round=N,class:"memo-input",placeholder:"1회차"},null,8,LK),[[Rt,j.round]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.date=N,class:"memo-input",placeholder:"03-27"},null,8,kK),[[Rt,j.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.companyName=N,class:"memo-input",placeholder:"업체명"},null,8,NK),[[Rt,j.companyName]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.service=N,class:"memo-input",placeholder:"블로그"},null,8,DK),[[Rt,j.service]])]),p("td",null,[p("input",{value:F(j.amount),onInput:N=>j.amount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input",placeholder:"500,000"},null,40,HK)]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.note=N,class:"memo-input",placeholder:"완료"},null,8,MK),[[Rt,j.note]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(c.value.deposits,U)},"×",8,TK)])]))),128))])],32)],512),[[ko,!b.value.deposits]])])])):e.type==="deposit-all"?(ht(),Bt("div",OK,[p("div",PK,[p("div",RK,[p("table",{class:"memo-table bordered",onKeydown:L},[Z[35]||(Z[35]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",null,"비고 및 월간 메모"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(f.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",KK,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.content=N,class:"memo-input",placeholder:"이 월의 주요 일정을 자유롭게 기입하세요"},null,8,VK),[[Rt,j.content]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(f.value,U)},"×",8,jK)])]))),128))])],32)])]),p("div",GK,[p("div",WK,[p("div",zK,[Vt(qt(Uo),{size:20}),Z[36]||(Z[36]=p("h3",null,"업체별 입금액 조회 (전체)",-1))]),p("div",$K,[Z[37]||(Z[37]=ie(" 월 합계: ",-1)),p("span",qK,kt(at.value.toLocaleString())+"원",1)])]),p("div",XK,[p("table",YK,[Z[39]||(Z[39]=p("thead",null,[p("tr",null,[p("th",{width:"60"},"순번"),p("th",{width:"100"},"일자"),p("th",{width:"80"},"회차"),p("th",null,"업체명"),p("th",null,"항목/서비스"),p("th",null,"입금금액"),p("th",null,"비고")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(lt.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,kt(j.date),1),p("td",null,kt(j.round?j.round+(String(j.round).includes("회차")?"":"회차"):"-"),1),p("td",JK,kt(j.companyName),1),p("td",null,kt(j.service),1),p("td",ZK,kt(parseInt(String(j.amount).replace(/[^0-9]/g,"")||0).toLocaleString())+"원",1),p("td",null,kt(j.note),1)]))),128)),lt.value.length===0?(ht(),Bt("tr",tV,[...Z[38]||(Z[38]=[p("td",{colspan:"7",class:"empty-row"},"이번 달 입금 내역이 있는 업체가 없습니다.",-1)])])):ue("",!0)])])])]),p("div",eV,[p("div",AV,[p("div",nV,[Vt(qt(Uo),{size:20}),Z[40]||(Z[40]=p("h3",null,"크몽 입금액 조회 (전체)",-1))]),p("div",rV,[Z[41]||(Z[41]=ie(" 월 합계: ",-1)),p("span",iV,kt(ct.value.toLocaleString())+"원",1)])]),p("div",sV,[p("table",oV,[Z[43]||(Z[43]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",{width:"120"},"날짜"),p("th",{width:"150"},"닉네임"),p("th",null,"내용"),p("th",{width:"150"},"금액"),p("th",null,"비고")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(u.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,kt(j.date),1),p("td",null,kt(j.nickname),1),p("td",null,kt(j.content),1),p("td",aV,kt(parseInt(String(j.amount).replace(/[^0-9]/g,"")||0).toLocaleString())+"원",1),p("td",null,kt(j.note),1)]))),128)),u.value.length===0||u.value.length===1&&!u.value[0].amount?(ht(),Bt("tr",lV,[...Z[42]||(Z[42]=[p("td",{colspan:"6",class:"empty-row"},"이번 달 크몽 입금 내역이 없습니다.",-1)])])):ue("",!0)])])])])])):e.type==="deposit-kmong"?(ht(),Bt("div",cV,[p("div",uV,[Z[45]||(Z[45]=p("div",{class:"header-title-toggle",style:{cursor:"default",background:"transparent"}},[p("h3",null,"크몽 결제 입력")],-1)),p("div",fV,[Z[44]||(Z[44]=ie(" 월 합계: ",-1)),p("span",hV,kt(ct.value.toLocaleString())+"원",1)])]),p("div",dV,[p("table",{class:"memo-table bordered",onKeydown:L},[Z[46]||(Z[46]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",{width:"120"},"날짜"),p("th",{width:"150"},"닉네임"),p("th",null,"내용"),p("th",{width:"150"},"금액"),p("th",null,"비고"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(u.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.date=N,class:"memo-input",placeholder:"00-00"},null,8,gV),[[Rt,j.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.nickname=N,class:"memo-input"},null,8,pV),[[Rt,j.nickname]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.content=N,class:"memo-input"},null,8,mV),[[Rt,j.content]])]),p("td",null,[p("input",{value:F(j.amount),onInput:N=>j.amount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input"},null,40,BV)]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.note=N,class:"memo-input"},null,8,wV),[[Rt,j.note]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(u.value,U)},"×",8,vV)])]))),128))])],32)])])):e.type==="blog-total"?(ht(),Bt("div",bV,[p("div",yV,[p("table",{class:"memo-table bordered",onKeydown:L},[Z[47]||(Z[47]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",{width:"120"},"발행일"),p("th",{width:"100"},"유형"),p("th",null,"제목"),p("th",null,"URL"),p("th",{width:"120"},"분기내 회차"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(d.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.date=N,class:"memo-input"},null,8,CV),[[Rt,j.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.type=N,class:"memo-input"},null,8,xV),[[Rt,j.type]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.title=N,class:"memo-input"},null,8,FV),[[Rt,j.title]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.url=N,class:"memo-input"},null,8,_V),[[Rt,j.url]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.session=N,class:"memo-input"},null,8,UV),[[Rt,j.session]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(d.value,U)},"×",8,QV)])]))),128))])],32)])])):e.type==="company-total"?(ht(),Xn(k9,{key:4,companies:A.companies,onRefresh:Z[15]||(Z[15]=j=>n("refreshCompanies"))},null,8,["companies"])):(ht(),Bt("div",EV,[p("div",IV,[p("table",SV,[Z[48]||(Z[48]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",null,"내용 (기존 메모장)"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(f.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",LV,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.content=N,class:"memo-input"},null,8,kV),[[Rt,j.content]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(f.value,U)},"×",8,NV)])]))),128))])])])]))]),["deposit-all","deposit-kmong"].includes(e.type)?(ht(),Bt("div",DV,[p("div",HV,[p("span",MV,kt(e.type==="deposit-kmong"?"크몽 월 합계 금액":"월 합계 금액 (전체)"),1),p("span",TV,[ie(kt((e.type==="deposit-kmong"?ct.value:at.value+ct.value).toLocaleString()),1),Z[49]||(Z[49]=p("small",null,"원",-1))])])])):ue("",!0)]))}},PV=LA(OV,[["__scopeId","data-v-bd718561"]]),RV={class:"app-layout"},KV={class:"main-content"},VV={class:"report-container"},jV={class:"top-row"},GV={class:"middle-row mt-8"},WV={key:0,class:"comparison-row mt-8"},zV={class:"card comparison-card"},$V={class:"card-header"},qV={class:"card-body"},XV={class:"comparison-grid"},YV={class:"comp-label"},JV={class:"comp-text"},ZV={key:1,class:"diagnosis-row mt-6"},tj={class:"card diagnosis-card compact-card"},ej={class:"card-header pt-2 pb-1"},Aj={class:"text-sm",style:{color:"#0f172a !important","font-size":"0.9rem !important"}},nj={class:"card-body"},rj={class:"diagnosis-content",style:{"white-space":"pre-wrap !important"}},ij={key:2,class:"summary-row mt-8"},sj={class:"card summary-card"},oj={class:"card-header"},aj={class:"card-body"},lj={class:"summary-content",style:{"white-space":"pre-wrap !important"}},cj={class:"other-sections mt-8"},uj={__name:"HomeView",setup(e){const t=z0(),A=ge([]),n=ge({name:"업체를 선택하세요"}),r=ge(null),i=ge("dashboard"),s=()=>{localStorage.removeItem("accessToken"),t.push("/login")},o=async()=>{try{const C=await xn.get("/api/companies");C.ok&&(A.value=await C.json())}catch(C){console.error("Failed to fetch companies:",C)}},a=async C=>{try{const Q=await xn.get(`/api/report/${C}`);Q.ok&&(r.value=await Q.json())}catch(Q){console.error("Failed to fetch report:",Q)}},l=C=>{n.value=C,i.value="dashboard",a(C.companyId)},c=C=>{var Q;i.value=C,C==="dashboard"&&((Q=n.value)!=null&&Q.companyId)&&a(n.value.companyId)},u=ye(()=>{var H,W;const C=((W=(H=r.value)==null?void 0:H.depositDetails)==null?void 0:W.table)||[];let Q=0,_=!1;for(const R of C)if((R.service||"").includes("블로그")){const O=parseInt(String(R.round||"").replace(/[^0-9]/g,""));!isNaN(O)&&O>Q&&(Q=O,_=!0)}return _?Q:null}),d=ye(()=>u.value?u.value>1?u.value-1:u.value:null),f=ye(()=>{var _,H;const C=((_=r.value)==null?void 0:_.blogStatus)||[];let Q=((H=r.value)==null?void 0:H.blogReportRound)||u.value;return Q?C.filter(W=>Number(W.round)===Number(Q)):C}),m=ye(()=>({"deposit-all":{title:"년도별 전체 (월별)",showExcel:!0},"deposit-kmong":{title:"크몽 입금액",showExcel:!1},"company-total":{title:"업체정보 통합 관리",showExcel:!1}})[i.value]||{title:"관리 도구",showExcel:!1}),B=ye(()=>{var C;return((C=r.value)==null?void 0:C.diagnosisResult)||""}),v=ye(()=>{var C;return((C=r.value)==null?void 0:C.reportSummary)||""}),b=C=>{const _=((C==null?void 0:C.table)||[]).filter(V=>(V.date||V.month)&&V.value!==void 0&&V.value!=="");if(_.length<2)return null;const H=[..._].sort((V,F)=>{const L=V.date||V.month||"";return(F.date||F.month||"").localeCompare(L)}),W=parseFloat(String(H[0].value||"").replace(/[^0-9.]/g,""))||0,R=parseFloat(String(H[1].value||"").replace(/[^0-9.]/g,""))||0;if(R===0)return"0.0";const O=((W-R)/R*100).toFixed(1),k=parseFloat(O)>=0;return`지난 달 대비 ${Math.abs(O)}% ${k?"상승":"하락"}`};return wi(async()=>{await o(),A.value.length>0&&l(A.value[0])}),(C,Q)=>{var _,H,W,R,O,k,V,F,L,G,q,ft;return ht(),Bt("div",RV,[Vt(Ck,{companies:A.value,onSelect:l,onRefresh:o,onChangeView:c,onLogout:s},null,8,["companies"]),p("main",KV,[i.value==="dashboard"?(ht(),Bt(ce,{key:0},[Vt(ck,{companyName:n.value.name,companyId:n.value.companyId,companies:A.value,reportRound:d.value?d.value+"회차":"",onSelectCompany:l},null,8,["companyName","companyId","companies","reportRound"]),p("div",VV,[p("section",jV,[Vt(VT,{data:(_=r.value)==null?void 0:_.visitorData},null,8,["data"]),Vt(eO,{data:(H=r.value)==null?void 0:H.viewData},null,8,["data"])]),p("section",GV,[Vt(gO,{data:(W=r.value)==null?void 0:W.inflowData},null,8,["data"])]),(R=r.value)!=null&&R.comparisonData?(ht(),Bt("section",WV,[p("div",zV,[p("div",$V,[p("h3",null,[Vt(qt(EU),{size:20}),Q[0]||(Q[0]=ie(" 성과 비교 분석 ",-1))])]),p("div",qV,[p("div",XV,[(ht(!0),Bt(ce,null,Ue(r.value.comparisonData,(lt,ct)=>(ht(),Bt("div",{key:ct,class:"comparison-item"},[p("span",YV,kt(ct),1),p("p",JV,[ct==="방문자수"?(ht(),Bt(ce,{key:0},[ie(kt(b(r.value.visitorData)||lt),1)],64)):ct==="조회수"?(ht(),Bt(ce,{key:1},[ie(kt(b(r.value.viewData)||lt),1)],64)):(ht(),Bt(ce,{key:2},[ie(kt(lt),1)],64))])]))),128))])])])])):ue("",!0),(O=r.value)!=null&&O.diagnosisResult?(ht(),Bt("section",ZV,[p("div",tj,[p("div",ej,[p("h3",Aj,kt(d.value?`(${d.value}회차)`:"")+" 진단결과",1)]),p("div",nj,[p("div",rj,kt(B.value),1)])])])):ue("",!0),(k=r.value)!=null&&k.reportSummary?(ht(),Bt("section",ij,[p("div",sj,[p("div",oj,[p("h3",null,[Vt(qt(gU),{size:20}),Q[1]||(Q[1]=ie(" 종합 보고서 결과 ",-1))])]),p("div",aj,[p("div",lj,kt(v.value),1)])])])):ue("",!0),p("section",cj,[Vt(IO,{data:f.value},null,8,["data"]),Vt(KO,{data:(V=r.value)==null?void 0:V.exposureStatus,round:d.value},null,8,["data","round"]),Vt($O,{data:(F=r.value)==null?void 0:F.nextMonthPlan,round:d.value},null,8,["data","round"]),Vt(nP,{data:(L=r.value)==null?void 0:L.depositDetails},null,8,["data"]),Vt(_P,{data:(G=r.value)==null?void 0:G.transferInfo},null,8,["data"]),Vt(MP,{data:{...(q=r.value)==null?void 0:q.companyInfo,name:(ft=r.value)==null?void 0:ft.name}},null,8,["data"])])])],64)):(ht(),Xn(PV,{key:1,title:m.value.title,type:i.value,showExcel:m.value.showExcel,companies:A.value,onRefreshCompanies:o},null,8,["title","type","showExcel","companies"]))])])}}},fj=LA(uj,[["__scopeId","data-v-56ef0c75"]]),hj={class:"login-page"},dj={class:"login-card"},gj={class:"login-header"},pj={key:0,class:"login-body"},mj={class:"input-group"},Bj={class:"input-group"},wj={class:"login-options"},vj={class:"checkbox-label"},bj=["disabled"],yj={key:1,class:"login-body"},Cj={class:"input-group"},xj={class:"input-group"},Fj={class:"input-group"},_j={class:"input-group"},Uj=["disabled"],Qj={class:"login-footer"},Ej={key:0},Ij={key:1},Sj={key:2,class:"hint"},Lj={__name:"LoginView",setup(e){const t=z0(),A=ge({username:"",password:""}),n=ge({name:"",username:"",password:"",passwordConfirm:""}),r=ge(!1),i=ge(!0),s=ge(!0);wi(()=>{(localStorage.getItem("accessToken")||sessionStorage.getItem("accessToken"))&&t.push("/")});const o=async()=>{if(!r.value){r.value=!0;try{const l=await fetch("https://kyeongmiapi.daoblock.co.kr/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(A.value)}),c=await l.json();l.ok?(i.value?localStorage.setItem("accessToken",c.accessToken):sessionStorage.setItem("accessToken",c.accessToken),t.push("/")):alert(c.message||"로그인 실패")}catch(l){console.error("Login error:",l),alert("서버 연결 오류")}finally{r.value=!1}}},a=async()=>{if(!r.value){if(!n.value.name||!n.value.username||!n.value.password){alert("모든 입력 항목을 채워주세요.");return}if(n.value.password!==n.value.passwordConfirm){alert("비밀번호가 일치하지 않습니다.");return}r.value=!0;try{const l=await fetch("https://kyeongmiapi.daoblock.co.kr/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n.value.name,username:n.value.username,password:n.value.password})}),c=await l.json();l.ok?(alert("회원가입이 완료되었습니다. 로그인 해주세요."),s.value=!0,n.value={name:"",username:"",password:"",passwordConfirm:""}):alert(c.message||c.error||"회원가입 실패")}catch(l){console.error("Register error:",l),alert("서버 발생 오류")}finally{r.value=!1}}};return(l,c)=>(ht(),Bt("div",hj,[p("div",dj,[p("div",gj,[c[9]||(c[9]=p("div",{class:"logo-box"},"B",-1)),p("h2",null,kt(s.value?"로그인":"회원가입"),1),p("p",null,kt(s.value?"로그인을 해주시기 바랍니다.":"새로운 계정을 생성합니다."),1)]),s.value?(ht(),Bt("div",pj,[p("div",mj,[c[10]||(c[10]=p("label",null,"아이디",-1)),Tt(p("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>A.value.username=u),type:"text",placeholder:"아이디 입력",onKeyup:Is(o,["enter"])},null,544),[[Rt,A.value.username]])]),p("div",Bj,[c[11]||(c[11]=p("label",null,"비밀번호",-1)),Tt(p("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>A.value.password=u),type:"password",placeholder:"••••••••",onKeyup:Is(o,["enter"])},null,544),[[Rt,A.value.password]])]),p("div",wj,[p("label",vj,[Tt(p("input",{type:"checkbox","onUpdate:modelValue":c[2]||(c[2]=u=>i.value=u)},null,512),[[Vb,i.value]]),c[12]||(c[12]=p("span",null,"자동 로그인",-1))])]),p("button",{class:"btn-login",disabled:r.value,onClick:o},kt(r.value?"로그인 중...":"로그인"),9,bj)])):(ht(),Bt("div",yj,[p("div",Cj,[c[13]||(c[13]=p("label",null,"이름",-1)),Tt(p("input",{"onUpdate:modelValue":c[3]||(c[3]=u=>n.value.name=u),type:"text",placeholder:"이름 입력",onKeyup:Is(a,["enter"])},null,544),[[Rt,n.value.name]])]),p("div",xj,[c[14]||(c[14]=p("label",null,"아이디",-1)),Tt(p("input",{"onUpdate:modelValue":c[4]||(c[4]=u=>n.value.username=u),type:"text",placeholder:"아이디 입력",onKeyup:Is(a,["enter"])},null,544),[[Rt,n.value.username]])]),p("div",Fj,[c[15]||(c[15]=p("label",null,"비밀번호",-1)),Tt(p("input",{"onUpdate:modelValue":c[5]||(c[5]=u=>n.value.password=u),type:"password",placeholder:"비밀번호 입력",onKeyup:Is(a,["enter"])},null,544),[[Rt,n.value.password]])]),p("div",_j,[c[16]||(c[16]=p("label",null,"비밀번호 확인",-1)),Tt(p("input",{"onUpdate:modelValue":c[6]||(c[6]=u=>n.value.passwordConfirm=u),type:"password",placeholder:"비밀번호 재입력",onKeyup:Is(a,["enter"])},null,544),[[Rt,n.value.passwordConfirm]])]),p("button",{class:"btn-login",disabled:r.value,onClick:a},kt(r.value?"처리 중...":"회원가입"),9,Uj)])),p("div",Qj,[s.value?(ht(),Bt("p",Ej,[c[17]||(c[17]=ie("계정 정보가 없으신가요? ",-1)),p("span",{onClick:c[7]||(c[7]=u=>s.value=!1)},"회원가입")])):(ht(),Bt("p",Ij,[c[18]||(c[18]=ie("이미 계정이 있으신가요? ",-1)),p("span",{onClick:c[8]||(c[8]=u=>s.value=!0)},"로그인")])),s.value?(ht(),Bt("div",Sj,"테스트 계정: admin / admin123!")):ue("",!0)])])]))}},kj=LA(Lj,[["__scopeId","data-v-d76e0305"]]),C1=lU({history:K_(),routes:[{path:"/login",name:"login",component:kj},{path:"/",name:"home",component:fj,meta:{requiresAuth:!0}},{path:"/ai-chat",name:"ai-chat",component:()=>gc(()=>import("./AIChatView-Bce7qiIa.js"),__vite__mapDeps([0,1])),meta:{requiresAuth:!0}},{path:"/admin",name:"admin",component:()=>gc(()=>import("./AdminView-CZRqrWtV.js"),__vite__mapDeps([2,3])),meta:{requiresAuth:!0}},{path:"/:pathMatch(.*)*",redirect:"/"}]});C1.beforeEach((e,t,A)=>{const n=localStorage.getItem("accessToken");e.meta.requiresAuth&&!n?A("/login"):e.path==="/login"&&n?A("/"):A()});A_(cU).use(C1).mount("#app");export{ce as F,Ck as S,IU as U,LA as _,Bt as a,Vt as b,nA as c,p as d,i5 as e,ie as f,ue as g,Is as h,G0 as i,xn as j,ge as k,z0 as l,ht as m,T0 as n,wi as o,aA as p,QU as q,Ue as r,UU as s,kt as t,qt as u,Rt as v,Tt as w,Ze as x};
|