19 lines
294 KiB
JavaScript
19 lines
294 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/hb-C3piUv6a.js","assets/_commonjsHelpers-DsqdWQfm.js","assets/hbjs-B2Ncxvef.js"])))=>i.map(i=>d[i]);
|
||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();function Zs(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Se={},fr=[],mt=()=>{},qo=()=>!1,Rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$s=e=>e.startsWith("onUpdate:"),Ae=Object.assign,js=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},l0=Object.prototype.hasOwnProperty,ve=(e,t)=>l0.call(e,t),ne=Array.isArray,hr=e=>An(e)==="[object Map]",Xo=e=>An(e)==="[object Set]",ae=e=>typeof e=="function",Le=e=>typeof e=="string",$t=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",Yo=e=>(ke(e)||ae(e))&&ae(e.then)&&ae(e.catch),Ko=Object.prototype.toString,An=e=>Ko.call(e),u0=e=>An(e).slice(8,-1),Jo=e=>An(e)==="[object Object]",Mn=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Er=Zs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),In=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},c0=/-\w/g,yt=In(e=>e.replace(c0,t=>t.slice(1).toUpperCase())),f0=/\B([A-Z])/g,ar=In(e=>e.replace(f0,"-$1").toLowerCase()),qs=In(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=In(e=>e?`on${qs(e)}`:""),Vt=(e,t)=>!Object.is(e,t),fn=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Qo=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Xs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Fa;const Pn=()=>Fa||(Fa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dr(e){if(ne(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=Le(n)?v0(n):Dr(n);if(s)for(const a in s)t[a]=s[a]}return t}else if(Le(e)||ke(e))return e}const h0=/;(?![^(]*\))/g,p0=/:([^]+)/,d0=/\/\*[^]*?\*\//g;function v0(e){const t={};return e.replace(d0,"").split(h0).forEach(r=>{if(r){const n=r.split(p0);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function vt(e){let t="";if(Le(e))t=e;else if(ne(e))for(let r=0;r<e.length;r++){const n=vt(e[r]);n&&(t+=n+" ")}else if(ke(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const g0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",m0=Zs(g0);function ei(e){return!!e||e===""}const ti=e=>!!(e&&e.__v_isRef===!0),Qe=e=>Le(e)?e:e==null?"":ne(e)||ke(e)&&(e.toString===Ko||!ae(e.toString))?ti(e)?Qe(e.value):JSON.stringify(e,ri,2):String(e),ri=(e,t)=>ti(t)?ri(e,t.value):hr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],a)=>(r[Jn(n,a)+" =>"]=s,r),{})}:Xo(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Jn(r))}:$t(t)?Jn(t):ke(t)&&!ne(t)&&!Jo(t)?String(t):t,Jn=(e,t="")=>{var r;return $t(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let Ie;class ni{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ie,!t&&Ie&&(this.index=(Ie.scopes||(Ie.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=Ie;try{return Ie=this,t()}finally{Ie=r}}}on(){++this._on===1&&(this.prevScope=Ie,Ie=this)}off(){this._on>0&&--this._on===0&&(Ie=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function si(e){return new ni(e)}function ai(){return Ie}function x0(e,t=!1){Ie&&Ie.cleanups.push(e)}let Fe;const Qn=new WeakSet;class oi{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,Ie&&Ie.active&&Ie.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Qn.has(this)&&(Qn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||li(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ca(this),ui(this);const t=Fe,r=et;Fe=this,et=!0;try{return this.fn()}finally{ci(this),Fe=t,et=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Js(t);this.deps=this.depsTail=void 0,Ca(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Qn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){bs(this)&&this.run()}get dirty(){return bs(this)}}let ii=0,Or,Ur;function li(e,t=!1){if(e.flags|=8,t){e.next=Ur,Ur=e;return}e.next=Or,Or=e}function Ys(){ii++}function Ks(){if(--ii>0)return;if(Ur){let t=Ur;for(Ur=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Or;){let t=Or;for(Or=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function ui(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ci(e){let t,r=e.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),Js(n),y0(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=r}function bs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Br)||(e.globalVersion=Br,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!bs(e))))return;e.flags|=2;const t=e.dep,r=Fe,n=et;Fe=e,et=!0;try{ui(e);const s=e.fn(e._value);(t.version===0||Vt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Fe=r,et=n,ci(e),e.flags&=-3}}function Js(e,t=!1){const{dep:r,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)Js(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function y0(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let et=!0;const hi=[];function Ot(){hi.push(et),et=!1}function Ut(){const e=hi.pop();et=e===void 0?!0:e}function Ca(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Fe;Fe=void 0;try{t()}finally{Fe=r}}}let Br=0;class b0{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Qs{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(!Fe||!et||Fe===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Fe)r=this.activeLink=new b0(Fe,this),Fe.deps?(r.prevDep=Fe.depsTail,Fe.depsTail.nextDep=r,Fe.depsTail=r):Fe.deps=Fe.depsTail=r,pi(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Fe.depsTail,r.nextDep=void 0,Fe.depsTail.nextDep=r,Fe.depsTail=r,Fe.deps===r&&(Fe.deps=n)}return r}trigger(t){this.version++,Br++,this.notify(t)}notify(t){Ys();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Ks()}}}function pi(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)pi(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const mn=new WeakMap,rr=Symbol(""),Ss=Symbol(""),Nr=Symbol("");function Pe(e,t,r){if(et&&Fe){let n=mn.get(e);n||mn.set(e,n=new Map);let s=n.get(r);s||(n.set(r,s=new Qs),s.map=n,s.key=r),s.track()}}function Tt(e,t,r,n,s,a){const o=mn.get(e);if(!o){Br++;return}const i=l=>{l&&l.trigger()};if(Ys(),t==="clear")o.forEach(i);else{const l=ne(e),c=l&&Mn(r);if(l&&r==="length"){const u=Number(n);o.forEach((h,f)=>{(f==="length"||f===Nr||!$t(f)&&f>=u)&&i(h)})}else switch((r!==void 0||o.has(void 0))&&i(o.get(r)),c&&i(o.get(Nr)),t){case"add":l?c&&i(o.get("length")):(i(o.get(rr)),hr(e)&&i(o.get(Ss)));break;case"delete":l||(i(o.get(rr)),hr(e)&&i(o.get(Ss)));break;case"set":hr(e)&&i(o.get(rr));break}}Ks()}function S0(e,t){const r=mn.get(e);return r&&r.get(t)}function or(e){const t=he(e);return t===e?t:(Pe(t,"iterate",Nr),qe(e)?t:t.map(tt))}function Dn(e){return Pe(e=he(e),"iterate",Nr),e}function Bt(e,t){return Lt(e)?gr(kt(e)?tt(t):t):tt(t)}const w0={__proto__:null,[Symbol.iterator](){return es(this,Symbol.iterator,e=>Bt(this,e))},concat(...e){return or(this).concat(...e.map(t=>ne(t)?or(t):t))},entries(){return es(this,"entries",e=>(e[1]=Bt(this,e[1]),e))},every(e,t){return St(this,"every",e,t,void 0,arguments)},filter(e,t){return St(this,"filter",e,t,r=>r.map(n=>Bt(this,n)),arguments)},find(e,t){return St(this,"find",e,t,r=>Bt(this,r),arguments)},findIndex(e,t){return St(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return St(this,"findLast",e,t,r=>Bt(this,r),arguments)},findLastIndex(e,t){return St(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return St(this,"forEach",e,t,void 0,arguments)},includes(...e){return ts(this,"includes",e)},indexOf(...e){return ts(this,"indexOf",e)},join(e){return or(this).join(e)},lastIndexOf(...e){return ts(this,"lastIndexOf",e)},map(e,t){return St(this,"map",e,t,void 0,arguments)},pop(){return Tr(this,"pop")},push(...e){return Tr(this,"push",e)},reduce(e,...t){return ka(this,"reduce",e,t)},reduceRight(e,...t){return ka(this,"reduceRight",e,t)},shift(){return Tr(this,"shift")},some(e,t){return St(this,"some",e,t,void 0,arguments)},splice(...e){return Tr(this,"splice",e)},toReversed(){return or(this).toReversed()},toSorted(e){return or(this).toSorted(e)},toSpliced(...e){return or(this).toSpliced(...e)},unshift(...e){return Tr(this,"unshift",e)},values(){return es(this,"values",e=>Bt(this,e))}};function es(e,t,r){const n=Dn(e),s=n[t]();return n!==e&&!qe(e)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.done||(a.value=r(a.value)),a}),s}const T0=Array.prototype;function St(e,t,r,n,s,a){const o=Dn(e),i=o!==e&&!qe(e),l=o[t];if(l!==T0[t]){const h=l.apply(e,a);return i?tt(h):h}let c=r;o!==e&&(i?c=function(h,f){return r.call(this,Bt(e,h),f,e)}:r.length>2&&(c=function(h,f){return r.call(this,h,f,e)}));const u=l.call(o,c,n);return i&&s?s(u):u}function ka(e,t,r,n){const s=Dn(e);let a=r;return s!==e&&(qe(e)?r.length>3&&(a=function(o,i,l){return r.call(this,o,i,l,e)}):a=function(o,i,l){return r.call(this,o,Bt(e,i),l,e)}),s[t](a,...n)}function ts(e,t,r){const n=he(e);Pe(n,"iterate",Nr);const s=n[t](...r);return(s===-1||s===!1)&&Nn(r[0])?(r[0]=he(r[0]),n[t](...r)):s}function Tr(e,t,r=[]){Ot(),Ys();const n=he(e)[t].apply(e,r);return Ks(),Ut(),n}const F0=Zs("__proto__,__v_isRef,__isVue"),di=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($t));function C0(e){$t(e)||(e=String(e));const t=he(this);return Pe(t,"has",e),t.hasOwnProperty(e)}class vi{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(s?a?I0:yi:a?xi:mi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=ne(t);if(!s){let l;if(o&&(l=w0[r]))return l;if(r==="hasOwnProperty")return C0}const i=Reflect.get(t,r,Ee(t)?t:n);if(($t(r)?di.has(r):F0(r))||(s||Pe(t,"get",r),a))return i;if(Ee(i)){const l=o&&Mn(r)?i:i.value;return s&&ke(l)?Ts(l):l}return ke(i)?s?Ts(i):Bn(i):i}}class gi extends vi{constructor(t=!1){super(!1,t)}set(t,r,n,s){let a=t[r];const o=ne(t)&&Mn(r);if(!this._isShallow){const c=Lt(a);if(!qe(n)&&!Lt(n)&&(a=he(a),n=he(n)),!o&&Ee(a)&&!Ee(n))return c||(a.value=n),!0}const i=o?Number(r)<t.length:ve(t,r),l=Reflect.set(t,r,n,Ee(t)?t:s);return t===he(s)&&(i?Vt(n,a)&&Tt(t,"set",r,n):Tt(t,"add",r,n)),l}deleteProperty(t,r){const n=ve(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&n&&Tt(t,"delete",r,void 0),s}has(t,r){const n=Reflect.has(t,r);return(!$t(r)||!di.has(r))&&Pe(t,"has",r),n}ownKeys(t){return Pe(t,"iterate",ne(t)?"length":rr),Reflect.ownKeys(t)}}class k0 extends vi{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const E0=new gi,O0=new k0,U0=new gi(!0);const ws=e=>e,tn=e=>Reflect.getPrototypeOf(e);function L0(e,t,r){return function(...n){const s=this.__v_raw,a=he(s),o=hr(a),i=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...n),u=r?ws:t?gr:tt;return!t&&Pe(a,"iterate",l?Ss:rr),Ae(Object.create(c),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:i?[u(h[0]),u(h[1])]:u(h),done:f}}})}}function rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _0(e,t){const r={get(s){const a=this.__v_raw,o=he(a),i=he(s);e||(Vt(s,i)&&Pe(o,"get",s),Pe(o,"get",i));const{has:l}=tn(o),c=t?ws:e?gr:tt;if(l.call(o,s))return c(a.get(s));if(l.call(o,i))return c(a.get(i));a!==o&&a.get(s)},get size(){const s=this.__v_raw;return!e&&Pe(he(s),"iterate",rr),s.size},has(s){const a=this.__v_raw,o=he(a),i=he(s);return e||(Vt(s,i)&&Pe(o,"has",s),Pe(o,"has",i)),s===i?a.has(s):a.has(s)||a.has(i)},forEach(s,a){const o=this,i=o.__v_raw,l=he(i),c=t?ws:e?gr:tt;return!e&&Pe(l,"iterate",rr),i.forEach((u,h)=>s.call(a,c(u),c(h),o))}};return Ae(r,e?{add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear")}:{add(s){!t&&!qe(s)&&!Lt(s)&&(s=he(s));const a=he(this);return tn(a).has.call(a,s)||(a.add(s),Tt(a,"add",s,s)),this},set(s,a){!t&&!qe(a)&&!Lt(a)&&(a=he(a));const o=he(this),{has:i,get:l}=tn(o);let c=i.call(o,s);c||(s=he(s),c=i.call(o,s));const u=l.call(o,s);return o.set(s,a),c?Vt(a,u)&&Tt(o,"set",s,a):Tt(o,"add",s,a),this},delete(s){const a=he(this),{has:o,get:i}=tn(a);let l=o.call(a,s);l||(s=he(s),l=o.call(a,s)),i&&i.call(a,s);const c=a.delete(s);return l&&Tt(a,"delete",s,void 0),c},clear(){const s=he(this),a=s.size!==0,o=s.clear();return a&&Tt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=L0(s,e,t)}),r}function ea(e,t){const r=_0(e,t);return(n,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(ve(r,s)&&s in n?r:n,s,a)}const R0={get:ea(!1,!1)},A0={get:ea(!1,!0)},M0={get:ea(!0,!1)};const mi=new WeakMap,xi=new WeakMap,yi=new WeakMap,I0=new WeakMap;function P0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function D0(e){return e.__v_skip||!Object.isExtensible(e)?0:P0(u0(e))}function Bn(e){return Lt(e)?e:ta(e,!1,E0,R0,mi)}function B0(e){return ta(e,!1,U0,A0,xi)}function Ts(e){return ta(e,!0,O0,M0,yi)}function ta(e,t,r,n,s){if(!ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=D0(e);if(a===0)return e;const o=s.get(e);if(o)return o;const i=new Proxy(e,a===2?n:r);return s.set(e,i),i}function kt(e){return Lt(e)?kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Lt(e){return!!(e&&e.__v_isReadonly)}function qe(e){return!!(e&&e.__v_isShallow)}function Nn(e){return e?!!e.__v_raw:!1}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function ra(e){return!ve(e,"__v_skip")&&Object.isExtensible(e)&&Qo(e,"__v_skip",!0),e}const tt=e=>ke(e)?Bn(e):e,gr=e=>ke(e)?Ts(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function Ce(e){return N0(e,!1)}function N0(e,t){return Ee(e)?e:new G0(e,t)}class G0{constructor(t,r){this.dep=new Qs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:he(t),this._value=r?t:tt(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||qe(t)||Lt(t);t=n?t:he(t),Vt(t,r)&&(this._rawValue=t,this._value=n?t:tt(t),this.dep.trigger())}}function Me(e){return Ee(e)?e.value:e}const H0={get:(e,t,r)=>t==="__v_raw"?e:Me(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return Ee(s)&&!Ee(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function bi(e){return kt(e)?e:new Proxy(e,H0)}function V0(e){const t=ne(e)?new Array(e.length):{};for(const r in e)t[r]=W0(e,r);return t}class z0{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=he(t);let s=!0,a=t;if(!ne(t)||!Mn(String(r)))do s=!Nn(a)||qe(a);while(s&&(a=a.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=Me(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ee(this._raw[this._key])){const r=this._object[this._key];if(Ee(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return S0(this._raw,this._key)}}function W0(e,t,r){return new z0(e,t,r)}class Z0{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Qs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Br-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Fe!==this)return li(this,!0),!0}get value(){const t=this.dep.track();return fi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function $0(e,t,r=!1){let n,s;return ae(e)?n=e:(n=e.get,s=e.set),new Z0(n,s,r)}const nn={},xn=new WeakMap;let Jt;function j0(e,t=!1,r=Jt){if(r){let n=xn.get(r);n||xn.set(r,n=[]),n.push(e)}}function q0(e,t,r=Se){const{immediate:n,deep:s,once:a,scheduler:o,augmentJob:i,call:l}=r,c=F=>s?F:qe(F)||s===!1||s===0?Ft(F,1):Ft(F);let u,h,f,p,m=!1,x=!1;if(Ee(e)?(h=()=>e.value,m=qe(e)):kt(e)?(h=()=>c(e),m=!0):ne(e)?(x=!0,m=e.some(F=>kt(F)||qe(F)),h=()=>e.map(F=>{if(Ee(F))return F.value;if(kt(F))return c(F);if(ae(F))return l?l(F,2):F()})):ae(e)?t?h=l?()=>l(e,2):e:h=()=>{if(f){Ot();try{f()}finally{Ut()}}const F=Jt;Jt=u;try{return l?l(e,3,[p]):e(p)}finally{Jt=F}}:h=mt,t&&s){const F=h,C=s===!0?1/0:s;h=()=>Ft(F(),C)}const g=ai(),y=()=>{u.stop(),g&&g.active&&js(g.effects,u)};if(a&&t){const F=t;t=(...C)=>{F(...C),y()}}let b=x?new Array(e.length).fill(nn):nn;const S=F=>{if(!(!(u.flags&1)||!u.dirty&&!F))if(t){const C=u.run();if(s||m||(x?C.some((q,D)=>Vt(q,b[D])):Vt(C,b))){f&&f();const q=Jt;Jt=u;try{const D=[C,b===nn?void 0:x&&b[0]===nn?[]:b,p];b=C,l?l(t,3,D):t(...D)}finally{Jt=q}}}else u.run()};return i&&i(S),u=new oi(h),u.scheduler=o?()=>o(S,!1):S,p=F=>j0(F,!1,u),f=u.onStop=()=>{const F=xn.get(u);if(F){if(l)l(F,4);else for(const C of F)C();xn.delete(u)}},t?n?S(!0):b=u.run():o?o(S.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function Ft(e,t=1/0,r){if(t<=0||!ke(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Ee(e))Ft(e.value,t,r);else if(ne(e))for(let n=0;n<e.length;n++)Ft(e[n],t,r);else if(Xo(e)||hr(e))e.forEach(n=>{Ft(n,t,r)});else if(Jo(e)){for(const n in e)Ft(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Ft(e[n],t,r)}return e}function jr(e,t,r,n){try{return n?e(...n):e()}catch(s){Gn(s,t,r)}}function bt(e,t,r,n){if(ae(e)){const s=jr(e,t,r,n);return s&&Yo(s)&&s.catch(a=>{Gn(a,t,r)}),s}if(ne(e)){const s=[];for(let a=0;a<e.length;a++)s.push(bt(e[a],t,r,n));return s}}function Gn(e,t,r,n=!0){const s=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Se;if(t){let i=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;i;){const u=i.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,l,c)===!1)return}i=i.parent}if(a){Ot(),jr(a,null,10,[e,l,c]),Ut();return}}X0(e,r,s,n,o)}function X0(e,t,r,n=!0,s=!1){if(s)throw e;console.error(e)}const Ne=[];let ht=-1;const pr=[];let Nt=null,ur=0;const Si=Promise.resolve();let yn=null;function na(e){const t=yn||Si;return e?t.then(this?e.bind(this):e):t}function Y0(e){let t=ht+1,r=Ne.length;for(;t<r;){const n=t+r>>>1,s=Ne[n],a=Gr(s);a<e||a===e&&s.flags&2?t=n+1:r=n}return t}function sa(e){if(!(e.flags&1)){const t=Gr(e),r=Ne[Ne.length-1];!r||!(e.flags&2)&&t>=Gr(r)?Ne.push(e):Ne.splice(Y0(t),0,e),e.flags|=1,wi()}}function wi(){yn||(yn=Si.then(Fi))}function K0(e){ne(e)?pr.push(...e):Nt&&e.id===-1?Nt.splice(ur+1,0,e):e.flags&1||(pr.push(e),e.flags|=1),wi()}function Ea(e,t,r=ht+1){for(;r<Ne.length;r++){const n=Ne[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Ne.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ti(e){if(pr.length){const t=[...new Set(pr)].sort((r,n)=>Gr(r)-Gr(n));if(pr.length=0,Nt){Nt.push(...t);return}for(Nt=t,ur=0;ur<Nt.length;ur++){const r=Nt[ur];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Nt=null,ur=0}}const Gr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Fi(e){try{for(ht=0;ht<Ne.length;ht++){const t=Ne[ht];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),jr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ht<Ne.length;ht++){const t=Ne[ht];t&&(t.flags&=-2)}ht=-1,Ne.length=0,Ti(),yn=null,(Ne.length||pr.length)&&Fi()}}let $e=null,Ci=null;function bn(e){const t=$e;return $e=e,Ci=e&&e.type.__scopeId||null,t}function J0(e,t=$e,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&Ba(-1);const a=bn(t);let o;try{o=e(...s)}finally{bn(a),n._d&&Ba(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function hn(e,t){if($e===null)return e;const r=Wn($e),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[a,o,i,l=Se]=t[s];a&&(ae(a)&&(a={mounted:a,updated:a}),a.deep&&Ft(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:i,modifiers:l}))}return e}function Xt(e,t,r,n){const s=e.dirs,a=t&&t.dirs;for(let o=0;o<s.length;o++){const i=s[o];a&&(i.oldValue=a[o].value);let l=i.dir[n];l&&(Ot(),bt(l,r,8,[e.el,i,e,t]),Ut())}}function Q0(e,t){if(De){let r=De.provides;const n=De.parent&&De.parent.provides;n===r&&(r=De.provides=Object.create(n)),r[e]=t}}function Lr(e,t,r=!1){const n=el();if(n||nr){let s=nr?nr._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&ae(t)?t.call(n&&n.proxy):t}}function eu(){return!!(el()||nr)}const tu=Symbol.for("v-scx"),ru=()=>Lr(tu);function dr(e,t,r){return ki(e,t,r)}function ki(e,t,r=Se){const{immediate:n,deep:s,flush:a,once:o}=r,i=Ae({},r),l=t&&n||!t&&a!=="post";let c;if(Vr){if(a==="sync"){const p=ru();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=mt,p.resume=mt,p.pause=mt,p}}const u=De;i.call=(p,m,x)=>bt(p,u,m,x);let h=!1;a==="post"?i.scheduler=p=>{Ze(p,u&&u.suspense)}:a!=="sync"&&(h=!0,i.scheduler=(p,m)=>{m?p():sa(p)}),i.augmentJob=p=>{t&&(p.flags|=4),h&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=q0(e,t,i);return Vr&&(c?c.push(f):l&&f()),f}function nu(e,t,r){const n=this.proxy,s=Le(e)?e.includes(".")?Ei(n,e):()=>n[e]:e.bind(n,n);let a;ae(t)?a=t:(a=t.handler,r=t);const o=Xr(this),i=ki(s,a.bind(n),r);return o(),i}function Ei(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}const su=Symbol("_vte"),au=e=>e.__isTeleport,ou=Symbol("_leaveCb");function aa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,aa(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 qr(e,t){return ae(e)?Ae({name:e.name},t,{setup:e}):e}function Oi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Sn=new WeakMap;function _r(e,t,r,n,s=!1){if(ne(e)){e.forEach((m,x)=>_r(m,t&&(ne(t)?t[x]:t),r,n,s));return}if(Rr(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&_r(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?Wn(n.component):n.el,o=s?null:a,{i,r:l}=e,c=t&&t.r,u=i.refs===Se?i.refs={}:i.refs,h=i.setupState,f=he(h),p=h===Se?qo:m=>ve(f,m);if(c!=null&&c!==l){if(Oa(t),Le(c))u[c]=null,p(c)&&(h[c]=null);else if(Ee(c)){c.value=null;const m=t;m.k&&(u[m.k]=null)}}if(ae(l))jr(l,i,12,[o,u]);else{const m=Le(l),x=Ee(l);if(m||x){const g=()=>{if(e.f){const y=m?p(l)?h[l]:u[l]:l.value;if(s)ne(y)&&js(y,a);else if(ne(y))y.includes(a)||y.push(a);else if(m)u[l]=[a],p(l)&&(h[l]=u[l]);else{const b=[a];l.value=b,e.k&&(u[e.k]=b)}}else m?(u[l]=o,p(l)&&(h[l]=o)):x&&(l.value=o,e.k&&(u[e.k]=o))};if(o){const y=()=>{g(),Sn.delete(e)};y.id=-1,Sn.set(e,y),Ze(y,r)}else Oa(e),g()}}}function Oa(e){const t=Sn.get(e);t&&(t.flags|=8,Sn.delete(e))}Pn().requestIdleCallback;Pn().cancelIdleCallback;const Rr=e=>!!e.type.__asyncLoader,Ui=e=>e.type.__isKeepAlive;function iu(e,t){Li(e,"a",t)}function lu(e,t){Li(e,"da",t)}function Li(e,t,r=De){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Hn(t,n,r),r){let s=r.parent;for(;s&&s.parent;)Ui(s.parent.vnode)&&uu(n,t,r,s),s=s.parent}}function uu(e,t,r,n){const s=Hn(t,e,n,!0);Ai(()=>{js(n[t],s)},r)}function Hn(e,t,r=De,n=!1){if(r){const s=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Ot();const i=Xr(r),l=bt(t,r,e,o);return i(),Ut(),l});return n?s.unshift(a):s.push(a),a}}const _t=e=>(t,r=De)=>{(!Vr||e==="sp")&&Hn(e,(...n)=>t(...n),r)},cu=_t("bm"),_i=_t("m"),fu=_t("bu"),hu=_t("u"),Ri=_t("bum"),Ai=_t("um"),pu=_t("sp"),du=_t("rtg"),vu=_t("rtc");function gu(e,t=De){Hn("ec",e,t)}const mu="directives",xu=Symbol.for("v-ndc");function yu(e){return bu(mu,e)}function bu(e,t,r=!0,n=!1){const s=$e||De;if(s){const a=s.type,o=Ua(s[e]||a[e],t)||Ua(s.appContext[e],t);return!o&&n?a:o}}function Ua(e,t){return e&&(e[t]||e[yt(t)]||e[qs(yt(t))])}function wn(e,t,r,n){let s;const a=r,o=ne(e);if(o||Le(e)){const i=o&&kt(e);let l=!1,c=!1;i&&(l=!qe(e),c=Lt(e),e=Dn(e)),s=new Array(e.length);for(let u=0,h=e.length;u<h;u++)s[u]=t(l?c?gr(tt(e[u])):tt(e[u]):e[u],u,void 0,a)}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,a)}else if(ke(e))if(e[Symbol.iterator])s=Array.from(e,(i,l)=>t(i,l,void 0,a));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,c=i.length;l<c;l++){const u=i[l];s[l]=t(e[u],u,l,a)}}else s=[];return s}const Fs=e=>e?tl(e)?Wn(e):Fs(e.parent):null,Ar=Ae(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=>Fs(e.parent),$root:e=>Fs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ii(e),$forceUpdate:e=>e.f||(e.f=()=>{sa(e.update)}),$nextTick:e=>e.n||(e.n=na.bind(e.proxy)),$watch:e=>nu.bind(e)}),rs=(e,t)=>e!==Se&&!e.__isScriptSetup&&ve(e,t),Su={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:a,accessCache:o,type:i,appContext:l}=e;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return a[t]}else{if(rs(n,t))return o[t]=1,n[t];if(s!==Se&&ve(s,t))return o[t]=2,s[t];if(ve(a,t))return o[t]=3,a[t];if(r!==Se&&ve(r,t))return o[t]=4,r[t];Cs&&(o[t]=0)}}const c=Ar[t];let u,h;if(c)return t==="$attrs"&&Pe(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(r!==Se&&ve(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,ve(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:a}=e;return rs(s,t)?(s[t]=r,!0):n!==Se&&ve(n,t)?(n[t]=r,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,props:a,type:o}},i){let l;return!!(r[i]||e!==Se&&i[0]!=="$"&&ve(e,i)||rs(t,i)||ve(a,i)||ve(n,i)||ve(Ar,i)||ve(s.config.globalProperties,i)||(l=o.__cssModules)&&l[i])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ve(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function La(e){return ne(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Cs=!0;function wu(e){const t=Ii(e),r=e.proxy,n=e.ctx;Cs=!1,t.beforeCreate&&_a(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:o,watch:i,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:p,updated:m,activated:x,deactivated:g,beforeDestroy:y,beforeUnmount:b,destroyed:S,unmounted:F,render:C,renderTracked:q,renderTriggered:D,errorCaptured:k,serverPrefetch:L,expose:V,inheritAttrs:N,components:X,directives:se,filters:oe}=t;if(c&&Tu(c,n,null),o)for(const A in o){const z=o[A];ae(z)&&(n[A]=z.bind(r))}if(s){const A=s.call(r,r);ke(A)&&(e.data=Bn(A))}if(Cs=!0,a)for(const A in a){const z=a[A],ee=ae(z)?z.bind(r,r):ae(z.get)?z.get.bind(r,r):mt,fe=!ae(z)&&ae(z.set)?z.set.bind(r):mt,ue=be({get:ee,set:fe});Object.defineProperty(n,A,{enumerable:!0,configurable:!0,get:()=>ue.value,set:de=>ue.value=de})}if(i)for(const A in i)Mi(i[A],n,r,A);if(l){const A=ae(l)?l.call(r):l;Reflect.ownKeys(A).forEach(z=>{Q0(z,A[z])})}u&&_a(u,e,"c");function G(A,z){ne(z)?z.forEach(ee=>A(ee.bind(r))):z&&A(z.bind(r))}if(G(cu,h),G(_i,f),G(fu,p),G(hu,m),G(iu,x),G(lu,g),G(gu,k),G(vu,q),G(du,D),G(Ri,b),G(Ai,F),G(pu,L),ne(V))if(V.length){const A=e.exposed||(e.exposed={});V.forEach(z=>{Object.defineProperty(A,z,{get:()=>r[z],set:ee=>r[z]=ee,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===mt&&(e.render=C),N!=null&&(e.inheritAttrs=N),X&&(e.components=X),se&&(e.directives=se),L&&Oi(e)}function Tu(e,t,r=mt){ne(e)&&(e=ks(e));for(const n in e){const s=e[n];let a;ke(s)?"default"in s?a=Lr(s.from||n,s.default,!0):a=Lr(s.from||n):a=Lr(s),Ee(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function _a(e,t,r){bt(ne(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Mi(e,t,r,n){let s=n.includes(".")?Ei(r,n):()=>r[n];if(Le(e)){const a=t[e];ae(a)&&dr(s,a)}else if(ae(e))dr(s,e.bind(r));else if(ke(e))if(ne(e))e.forEach(a=>Mi(a,t,r,n));else{const a=ae(e.handler)?e.handler.bind(r):t[e.handler];ae(a)&&dr(s,a,e)}}function Ii(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,i=a.get(t);let l;return i?l=i:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(c=>Tn(l,c,o,!0)),Tn(l,t,o)),ke(t)&&a.set(t,l),l}function Tn(e,t,r,n=!1){const{mixins:s,extends:a}=t;a&&Tn(e,a,r,!0),s&&s.forEach(o=>Tn(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const i=Fu[o]||r&&r[o];e[o]=i?i(e[o],t[o]):t[o]}return e}const Fu={data:Ra,props:Aa,emits:Aa,methods:kr,computed:kr,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:kr,directives:kr,watch:ku,provide:Ra,inject:Cu};function Ra(e,t){return t?e?function(){return Ae(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function Cu(e,t){return kr(ks(e),ks(t))}function ks(e){if(ne(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Be(e,t){return e?[...new Set([].concat(e,t))]:t}function kr(e,t){return e?Ae(Object.create(null),e,t):t}function Aa(e,t){return e?ne(e)&&ne(t)?[...new Set([...e,...t])]:Ae(Object.create(null),La(e),La(t??{})):t}function ku(e,t){if(!e)return t;if(!t)return e;const r=Ae(Object.create(null),e);for(const n in t)r[n]=Be(e[n],t[n]);return r}function Pi(){return{app:null,config:{isNativeTag:qo,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 Eu=0;function Ou(e,t){return function(n,s=null){ae(n)||(n=Ae({},n)),s!=null&&!ke(s)&&(s=null);const a=Pi(),o=new WeakSet,i=[];let l=!1;const c=a.app={_uid:Eu++,_component:n,_props:s,_container:null,_context:a,_instance:null,version:oc,get config(){return a.config},set config(u){},use(u,...h){return o.has(u)||(u&&ae(u.install)?(o.add(u),u.install(c,...h)):ae(u)&&(o.add(u),u(c,...h))),c},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),c},component(u,h){return h?(a.components[u]=h,c):a.components[u]},directive(u,h){return h?(a.directives[u]=h,c):a.directives[u]},mount(u,h,f){if(!l){const p=c._ceVNode||Ke(n,s);return p.appContext=a,f===!0?f="svg":f===!1&&(f=void 0),e(p,u,f),l=!0,c._container=u,u.__vue_app__=c,Wn(p.component)}},onUnmount(u){i.push(u)},unmount(){l&&(bt(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return a.provides[u]=h,c},runWithContext(u){const h=nr;nr=c;try{return u()}finally{nr=h}}};return c}}let nr=null;const Uu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${yt(t)}Modifiers`]||e[`${ar(t)}Modifiers`];function Lu(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Se;let s=r;const a=t.startsWith("update:"),o=a&&Uu(n,t.slice(7));o&&(o.trim&&(s=r.map(u=>Le(u)?u.trim():u)),o.number&&(s=r.map(Xs)));let i,l=n[i=Kn(t)]||n[i=Kn(yt(t))];!l&&a&&(l=n[i=Kn(ar(t))]),l&&bt(l,e,6,s);const c=n[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,bt(c,e,6,s)}}const _u=new WeakMap;function Di(e,t,r=!1){const n=r?_u:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const a=e.emits;let o={},i=!1;if(!ae(e)){const l=c=>{const u=Di(c,t,!0);u&&(i=!0,Ae(o,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!i?(ke(e)&&n.set(e,null),null):(ne(a)?a.forEach(l=>o[l]=null):Ae(o,a),ke(e)&&n.set(e,o),o)}function Vn(e,t){return!e||!Rn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,ar(t))||ve(e,t))}function Ma(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[a],slots:o,attrs:i,emit:l,render:c,renderCache:u,props:h,data:f,setupState:p,ctx:m,inheritAttrs:x}=e,g=bn(e);let y,b;try{if(r.shapeFlag&4){const F=s||n,C=F;y=dt(c.call(C,F,u,h,p,f,m)),b=i}else{const F=t;y=dt(F.length>1?F(h,{attrs:i,slots:o,emit:l}):F(h,null)),b=t.props?i:Ru(i)}}catch(F){Mr.length=0,Gn(F,e,1),y=Ke(Wt)}let S=y;if(b&&x!==!1){const F=Object.keys(b),{shapeFlag:C}=S;F.length&&C&7&&(a&&F.some($s)&&(b=Au(b,a)),S=mr(S,b,!1,!0))}return r.dirs&&(S=mr(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(r.dirs):r.dirs),r.transition&&aa(S,r.transition),y=S,bn(g),y}const Ru=e=>{let t;for(const r in e)(r==="class"||r==="style"||Rn(r))&&((t||(t={}))[r]=e[r]);return t},Au=(e,t)=>{const r={};for(const n in e)(!$s(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Mu(e,t,r){const{props:n,children:s,component:a}=e,{props:o,children:i,patchFlag:l}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Ia(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==n[f]&&!Vn(c,f))return!0}}}else return(s||i)&&(!i||!i.$stable)?!0:n===o?!1:n?o?Ia(n,o,c):!0:!!o;return!1}function Ia(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const a=n[s];if(t[a]!==e[a]&&!Vn(r,a))return!0}return!1}function Iu({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const Bi={},Ni=()=>Object.create(Bi),Gi=e=>Object.getPrototypeOf(e)===Bi;function Pu(e,t,r,n=!1){const s={},a=Ni();e.propsDefaults=Object.create(null),Hi(e,t,s,a);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);r?e.props=n?s:B0(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function Du(e,t,r,n){const{props:s,attrs:a,vnode:{patchFlag:o}}=e,i=he(s),[l]=e.propsOptions;let c=!1;if((n||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Vn(e.emitsOptions,f))continue;const p=t[f];if(l)if(ve(a,f))p!==a[f]&&(a[f]=p,c=!0);else{const m=yt(f);s[m]=Es(l,i,m,p,e,!1)}else p!==a[f]&&(a[f]=p,c=!0)}}}else{Hi(e,t,s,a)&&(c=!0);let u;for(const h in i)(!t||!ve(t,h)&&((u=ar(h))===h||!ve(t,u)))&&(l?r&&(r[h]!==void 0||r[u]!==void 0)&&(s[h]=Es(l,i,h,void 0,e,!0)):delete s[h]);if(a!==i)for(const h in a)(!t||!ve(t,h))&&(delete a[h],c=!0)}c&&Tt(e.attrs,"set","")}function Hi(e,t,r,n){const[s,a]=e.propsOptions;let o=!1,i;if(t)for(let l in t){if(Er(l))continue;const c=t[l];let u;s&&ve(s,u=yt(l))?!a||!a.includes(u)?r[u]=c:(i||(i={}))[u]=c:Vn(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(a){const l=he(r),c=i||Se;for(let u=0;u<a.length;u++){const h=a[u];r[h]=Es(s,l,h,c[h],e,!ve(c,h))}}return o}function Es(e,t,r,n,s,a){const o=e[r];if(o!=null){const i=ve(o,"default");if(i&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ae(l)){const{propsDefaults:c}=s;if(r in c)n=c[r];else{const u=Xr(s);n=c[r]=l.call(null,t),u()}}else n=l;s.ce&&s.ce._setProp(r,n)}o[0]&&(a&&!i?n=!1:o[1]&&(n===""||n===ar(r))&&(n=!0))}return n}const Bu=new WeakMap;function Vi(e,t,r=!1){const n=r?Bu:t.propsCache,s=n.get(e);if(s)return s;const a=e.props,o={},i=[];let l=!1;if(!ae(e)){const u=h=>{l=!0;const[f,p]=Vi(h,t,!0);Ae(o,f),p&&i.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return ke(e)&&n.set(e,fr),fr;if(ne(a))for(let u=0;u<a.length;u++){const h=yt(a[u]);Pa(h)&&(o[h]=Se)}else if(a)for(const u in a){const h=yt(u);if(Pa(h)){const f=a[u],p=o[h]=ne(f)||ae(f)?{type:f}:Ae({},f),m=p.type;let x=!1,g=!0;if(ne(m))for(let y=0;y<m.length;++y){const b=m[y],S=ae(b)&&b.name;if(S==="Boolean"){x=!0;break}else S==="String"&&(g=!1)}else x=ae(m)&&m.name==="Boolean";p[0]=x,p[1]=g,(x||ve(p,"default"))&&i.push(h)}}const c=[o,i];return ke(e)&&n.set(e,c),c}function Pa(e){return e[0]!=="$"&&!Er(e)}const oa=e=>e==="_"||e==="_ctx"||e==="$stable",ia=e=>ne(e)?e.map(dt):[dt(e)],Nu=(e,t,r)=>{if(t._n)return t;const n=J0((...s)=>ia(t(...s)),r);return n._c=!1,n},zi=(e,t,r)=>{const n=e._ctx;for(const s in e){if(oa(s))continue;const a=e[s];if(ae(a))t[s]=Nu(s,a,n);else if(a!=null){const o=ia(a);t[s]=()=>o}}},Wi=(e,t)=>{const r=ia(t);e.slots.default=()=>r},Zi=(e,t,r)=>{for(const n in t)(r||!oa(n))&&(e[n]=t[n])},Gu=(e,t,r)=>{const n=e.slots=Ni();if(e.vnode.shapeFlag&32){const s=t._;s?(Zi(n,t,r),r&&Qo(n,"_",s,!0)):zi(t,n)}else t&&Wi(e,t)},Hu=(e,t,r)=>{const{vnode:n,slots:s}=e;let a=!0,o=Se;if(n.shapeFlag&32){const i=t._;i?r&&i===1?a=!1:Zi(s,t,r):(a=!t.$stable,zi(t,s)),o=t}else t&&(Wi(e,t),o={default:1});if(a)for(const i in s)!oa(i)&&o[i]==null&&delete s[i]},Ze=$u;function Vu(e){return zu(e)}function zu(e,t){const r=Pn();r.__VUE__=!0;const{insert:n,remove:s,patchProp:a,createElement:o,createText:i,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:p=mt,insertStaticContent:m}=e,x=(d,v,T,U=null,E=null,O=null,H=void 0,P=null,M=!!v.dynamicChildren)=>{if(d===v)return;d&&!Fr(d,v)&&(U=xe(d),de(d,E,O,!0),d=null),v.patchFlag===-2&&(M=!1,v.dynamicChildren=null);const{type:_,ref:J,shapeFlag:W}=v;switch(_){case zn:g(d,v,T,U);break;case Wt:y(d,v,T,U);break;case ss:d==null&&b(v,T,U,H);break;case ze:X(d,v,T,U,E,O,H,P,M);break;default:W&1?C(d,v,T,U,E,O,H,P,M):W&6?se(d,v,T,U,E,O,H,P,M):(W&64||W&128)&&_.process(d,v,T,U,E,O,H,P,M,qt)}J!=null&&E?_r(J,d&&d.ref,O,v||d,!v):J==null&&d&&d.ref!=null&&_r(d.ref,null,O,d,!0)},g=(d,v,T,U)=>{if(d==null)n(v.el=i(v.children),T,U);else{const E=v.el=d.el;v.children!==d.children&&c(E,v.children)}},y=(d,v,T,U)=>{d==null?n(v.el=l(v.children||""),T,U):v.el=d.el},b=(d,v,T,U)=>{[d.el,d.anchor]=m(d.children,v,T,U,d.el,d.anchor)},S=({el:d,anchor:v},T,U)=>{let E;for(;d&&d!==v;)E=f(d),n(d,T,U),d=E;n(v,T,U)},F=({el:d,anchor:v})=>{let T;for(;d&&d!==v;)T=f(d),s(d),d=T;s(v)},C=(d,v,T,U,E,O,H,P,M)=>{if(v.type==="svg"?H="svg":v.type==="math"&&(H="mathml"),d==null)q(v,T,U,E,O,H,P,M);else{const _=d.el&&d.el._isVueCE?d.el:null;try{_&&_._beginPatch(),L(d,v,E,O,H,P,M)}finally{_&&_._endPatch()}}},q=(d,v,T,U,E,O,H,P)=>{let M,_;const{props:J,shapeFlag:W,transition:K,dirs:re}=d;if(M=d.el=o(d.type,O,J&&J.is,J),W&8?u(M,d.children):W&16&&k(d.children,M,null,U,E,ns(d,O),H,P),re&&Xt(d,null,U,"created"),D(M,d,d.scopeId,H,U),J){for(const Te in J)Te!=="value"&&!Er(Te)&&a(M,Te,null,J[Te],O,U);"value"in J&&a(M,"value",null,J.value,O),(_=J.onVnodeBeforeMount)&&ct(_,U,d)}re&&Xt(d,null,U,"beforeMount");const ce=Wu(E,K);ce&&K.beforeEnter(M),n(M,v,T),((_=J&&J.onVnodeMounted)||ce||re)&&Ze(()=>{_&&ct(_,U,d),ce&&K.enter(M),re&&Xt(d,null,U,"mounted")},E)},D=(d,v,T,U,E)=>{if(T&&p(d,T),U)for(let O=0;O<U.length;O++)p(d,U[O]);if(E){let O=E.subTree;if(v===O||Xi(O.type)&&(O.ssContent===v||O.ssFallback===v)){const H=E.vnode;D(d,H,H.scopeId,H.slotScopeIds,E.parent)}}},k=(d,v,T,U,E,O,H,P,M=0)=>{for(let _=M;_<d.length;_++){const J=d[_]=P?Gt(d[_]):dt(d[_]);x(null,J,v,T,U,E,O,H,P)}},L=(d,v,T,U,E,O,H)=>{const P=v.el=d.el;let{patchFlag:M,dynamicChildren:_,dirs:J}=v;M|=d.patchFlag&16;const W=d.props||Se,K=v.props||Se;let re;if(T&&Yt(T,!1),(re=K.onVnodeBeforeUpdate)&&ct(re,T,v,d),J&&Xt(v,d,T,"beforeUpdate"),T&&Yt(T,!0),(W.innerHTML&&K.innerHTML==null||W.textContent&&K.textContent==null)&&u(P,""),_?V(d.dynamicChildren,_,P,T,U,ns(v,E),O):H||z(d,v,P,null,T,U,ns(v,E),O,!1),M>0){if(M&16)N(P,W,K,T,E);else if(M&2&&W.class!==K.class&&a(P,"class",null,K.class,E),M&4&&a(P,"style",W.style,K.style,E),M&8){const ce=v.dynamicProps;for(let Te=0;Te<ce.length;Te++){const me=ce[Te],He=W[me],Ve=K[me];(Ve!==He||me==="value")&&a(P,me,He,Ve,E,T)}}M&1&&d.children!==v.children&&u(P,v.children)}else!H&&_==null&&N(P,W,K,T,E);((re=K.onVnodeUpdated)||J)&&Ze(()=>{re&&ct(re,T,v,d),J&&Xt(v,d,T,"updated")},U)},V=(d,v,T,U,E,O,H)=>{for(let P=0;P<v.length;P++){const M=d[P],_=v[P],J=M.el&&(M.type===ze||!Fr(M,_)||M.shapeFlag&198)?h(M.el):T;x(M,_,J,null,U,E,O,H,!0)}},N=(d,v,T,U,E)=>{if(v!==T){if(v!==Se)for(const O in v)!Er(O)&&!(O in T)&&a(d,O,v[O],null,E,U);for(const O in T){if(Er(O))continue;const H=T[O],P=v[O];H!==P&&O!=="value"&&a(d,O,P,H,E,U)}"value"in T&&a(d,"value",v.value,T.value,E)}},X=(d,v,T,U,E,O,H,P,M)=>{const _=v.el=d?d.el:i(""),J=v.anchor=d?d.anchor:i("");let{patchFlag:W,dynamicChildren:K,slotScopeIds:re}=v;re&&(P=P?P.concat(re):re),d==null?(n(_,T,U),n(J,T,U),k(v.children||[],T,J,E,O,H,P,M)):W>0&&W&64&&K&&d.dynamicChildren&&d.dynamicChildren.length===K.length?(V(d.dynamicChildren,K,T,E,O,H,P),(v.key!=null||E&&v===E.subTree)&&$i(d,v,!0)):z(d,v,T,J,E,O,H,P,M)},se=(d,v,T,U,E,O,H,P,M)=>{v.slotScopeIds=P,d==null?v.shapeFlag&512?E.ctx.activate(v,T,U,H,M):oe(v,T,U,E,O,H,M):R(d,v,M)},oe=(d,v,T,U,E,O,H)=>{const P=d.component=ec(d,U,E);if(Ui(d)&&(P.ctx.renderer=qt),tc(P,!1,H),P.asyncDep){if(E&&E.registerDep(P,G,H),!d.el){const M=P.subTree=Ke(Wt);y(null,M,v,T),d.placeholder=M.el}}else G(P,d,v,T,E,O,H)},R=(d,v,T)=>{const U=v.component=d.component;if(Mu(d,v,T))if(U.asyncDep&&!U.asyncResolved){A(U,v,T);return}else U.next=v,U.update();else v.el=d.el,U.vnode=v},G=(d,v,T,U,E,O,H)=>{const P=()=>{if(d.isMounted){let{next:W,bu:K,u:re,parent:ce,vnode:Te}=d;{const lt=ji(d);if(lt){W&&(W.el=Te.el,A(d,W,H)),lt.asyncDep.then(()=>{d.isUnmounted||P()});return}}let me=W,He;Yt(d,!1),W?(W.el=Te.el,A(d,W,H)):W=Te,K&&fn(K),(He=W.props&&W.props.onVnodeBeforeUpdate)&&ct(He,ce,W,Te),Yt(d,!0);const Ve=Ma(d),it=d.subTree;d.subTree=Ve,x(it,Ve,h(it.el),xe(it),d,E,O),W.el=Ve.el,me===null&&Iu(d,Ve.el),re&&Ze(re,E),(He=W.props&&W.props.onVnodeUpdated)&&Ze(()=>ct(He,ce,W,Te),E)}else{let W;const{el:K,props:re}=v,{bm:ce,m:Te,parent:me,root:He,type:Ve}=d,it=Rr(v);Yt(d,!1),ce&&fn(ce),!it&&(W=re&&re.onVnodeBeforeMount)&&ct(W,me,v),Yt(d,!0);{He.ce&&He.ce._def.shadowRoot!==!1&&He.ce._injectChildStyle(Ve);const lt=d.subTree=Ma(d);x(null,lt,T,U,d,E,O),v.el=lt.el}if(Te&&Ze(Te,E),!it&&(W=re&&re.onVnodeMounted)){const lt=v;Ze(()=>ct(W,me,lt),E)}(v.shapeFlag&256||me&&Rr(me.vnode)&&me.vnode.shapeFlag&256)&&d.a&&Ze(d.a,E),d.isMounted=!0,v=T=U=null}};d.scope.on();const M=d.effect=new oi(P);d.scope.off();const _=d.update=M.run.bind(M),J=d.job=M.runIfDirty.bind(M);J.i=d,J.id=d.uid,M.scheduler=()=>sa(J),Yt(d,!0),_()},A=(d,v,T)=>{v.component=d;const U=d.vnode.props;d.vnode=v,d.next=null,Du(d,v.props,U,T),Hu(d,v.children,T),Ot(),Ea(d),Ut()},z=(d,v,T,U,E,O,H,P,M=!1)=>{const _=d&&d.children,J=d?d.shapeFlag:0,W=v.children,{patchFlag:K,shapeFlag:re}=v;if(K>0){if(K&128){fe(_,W,T,U,E,O,H,P,M);return}else if(K&256){ee(_,W,T,U,E,O,H,P,M);return}}re&8?(J&16&&le(_,E,O),W!==_&&u(T,W)):J&16?re&16?fe(_,W,T,U,E,O,H,P,M):le(_,E,O,!0):(J&8&&u(T,""),re&16&&k(W,T,U,E,O,H,P,M))},ee=(d,v,T,U,E,O,H,P,M)=>{d=d||fr,v=v||fr;const _=d.length,J=v.length,W=Math.min(_,J);let K;for(K=0;K<W;K++){const re=v[K]=M?Gt(v[K]):dt(v[K]);x(d[K],re,T,null,E,O,H,P,M)}_>J?le(d,E,O,!0,!1,W):k(v,T,U,E,O,H,P,M,W)},fe=(d,v,T,U,E,O,H,P,M)=>{let _=0;const J=v.length;let W=d.length-1,K=J-1;for(;_<=W&&_<=K;){const re=d[_],ce=v[_]=M?Gt(v[_]):dt(v[_]);if(Fr(re,ce))x(re,ce,T,null,E,O,H,P,M);else break;_++}for(;_<=W&&_<=K;){const re=d[W],ce=v[K]=M?Gt(v[K]):dt(v[K]);if(Fr(re,ce))x(re,ce,T,null,E,O,H,P,M);else break;W--,K--}if(_>W){if(_<=K){const re=K+1,ce=re<J?v[re].el:U;for(;_<=K;)x(null,v[_]=M?Gt(v[_]):dt(v[_]),T,ce,E,O,H,P,M),_++}}else if(_>K)for(;_<=W;)de(d[_],E,O,!0),_++;else{const re=_,ce=_,Te=new Map;for(_=ce;_<=K;_++){const We=v[_]=M?Gt(v[_]):dt(v[_]);We.key!=null&&Te.set(We.key,_)}let me,He=0;const Ve=K-ce+1;let it=!1,lt=0;const wr=new Array(Ve);for(_=0;_<Ve;_++)wr[_]=0;for(_=re;_<=W;_++){const We=d[_];if(He>=Ve){de(We,E,O,!0);continue}let ut;if(We.key!=null)ut=Te.get(We.key);else for(me=ce;me<=K;me++)if(wr[me-ce]===0&&Fr(We,v[me])){ut=me;break}ut===void 0?de(We,E,O,!0):(wr[ut-ce]=_+1,ut>=lt?lt=ut:it=!0,x(We,v[ut],T,null,E,O,H,P,M),He++)}const Sa=it?Zu(wr):fr;for(me=Sa.length-1,_=Ve-1;_>=0;_--){const We=ce+_,ut=v[We],wa=v[We+1],Ta=We+1<J?wa.el||qi(wa):U;wr[_]===0?x(null,ut,T,Ta,E,O,H,P,M):it&&(me<0||_!==Sa[me]?ue(ut,T,Ta,2):me--)}}},ue=(d,v,T,U,E=null)=>{const{el:O,type:H,transition:P,children:M,shapeFlag:_}=d;if(_&6){ue(d.component.subTree,v,T,U);return}if(_&128){d.suspense.move(v,T,U);return}if(_&64){H.move(d,v,T,qt);return}if(H===ze){n(O,v,T);for(let W=0;W<M.length;W++)ue(M[W],v,T,U);n(d.anchor,v,T);return}if(H===ss){S(d,v,T);return}if(U!==2&&_&1&&P)if(U===0)P.beforeEnter(O),n(O,v,T),Ze(()=>P.enter(O),E);else{const{leave:W,delayLeave:K,afterLeave:re}=P,ce=()=>{d.ctx.isUnmounted?s(O):n(O,v,T)},Te=()=>{O._isLeaving&&O[ou](!0),W(O,()=>{ce(),re&&re()})};K?K(O,ce,Te):Te()}else n(O,v,T)},de=(d,v,T,U=!1,E=!1)=>{const{type:O,props:H,ref:P,children:M,dynamicChildren:_,shapeFlag:J,patchFlag:W,dirs:K,cacheIndex:re}=d;if(W===-2&&(E=!1),P!=null&&(Ot(),_r(P,null,T,d,!0),Ut()),re!=null&&(v.renderCache[re]=void 0),J&256){v.ctx.deactivate(d);return}const ce=J&1&&K,Te=!Rr(d);let me;if(Te&&(me=H&&H.onVnodeBeforeUnmount)&&ct(me,v,d),J&6)ie(d.component,T,U);else{if(J&128){d.suspense.unmount(T,U);return}ce&&Xt(d,null,v,"beforeUnmount"),J&64?d.type.remove(d,v,T,qt,U):_&&!_.hasOnce&&(O!==ze||W>0&&W&64)?le(_,v,T,!1,!0):(O===ze&&W&384||!E&&J&16)&&le(M,v,T),U&&Rt(d)}(Te&&(me=H&&H.onVnodeUnmounted)||ce)&&Ze(()=>{me&&ct(me,v,d),ce&&Xt(d,null,v,"unmounted")},T)},Rt=d=>{const{type:v,el:T,anchor:U,transition:E}=d;if(v===ze){Y(T,U);return}if(v===ss){F(d);return}const O=()=>{s(T),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(d.shapeFlag&1&&E&&!E.persisted){const{leave:H,delayLeave:P}=E,M=()=>H(T,O);P?P(d.el,O,M):M()}else O()},Y=(d,v)=>{let T;for(;d!==v;)T=f(d),s(d),d=T;s(v)},ie=(d,v,T)=>{const{bum:U,scope:E,job:O,subTree:H,um:P,m:M,a:_}=d;Da(M),Da(_),U&&fn(U),E.stop(),O&&(O.flags|=8,de(H,d,v,T)),P&&Ze(P,v),Ze(()=>{d.isUnmounted=!0},v)},le=(d,v,T,U=!1,E=!1,O=0)=>{for(let H=O;H<d.length;H++)de(d[H],v,T,U,E)},xe=d=>{if(d.shapeFlag&6)return xe(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const v=f(d.anchor||d.el),T=v&&v[su];return T?f(T):v};let Ge=!1;const At=(d,v,T)=>{let U;d==null?v._vnode&&(de(v._vnode,null,null,!0),U=v._vnode.component):x(v._vnode||null,d,v,null,null,null,T),v._vnode=d,Ge||(Ge=!0,Ea(U),Ti(),Ge=!1)},qt={p:x,um:de,m:ue,r:Rt,mt:oe,mc:k,pc:z,pbc:V,n:xe,o:e};return{render:At,hydrate:void 0,createApp:Ou(At)}}function ns({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Yt({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Wu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $i(e,t,r=!1){const n=e.children,s=t.children;if(ne(n)&&ne(s))for(let a=0;a<n.length;a++){const o=n[a];let i=s[a];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=s[a]=Gt(s[a]),i.el=o.el),!r&&i.patchFlag!==-2&&$i(o,i)),i.type===zn&&(i.patchFlag!==-1?i.el=o.el:i.__elIndex=a+(e.type===ze?1:0)),i.type===Wt&&!i.el&&(i.el=o.el)}}function Zu(e){const t=e.slice(),r=[0];let n,s,a,o,i;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(s=r[r.length-1],e[s]<c){t[n]=s,r.push(n);continue}for(a=0,o=r.length-1;a<o;)i=a+o>>1,e[r[i]]<c?a=i+1:o=i;c<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}function ji(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ji(t)}function Da(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function qi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?qi(t.subTree):null}const Xi=e=>e.__isSuspense;function $u(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):K0(e)}const ze=Symbol.for("v-fgt"),zn=Symbol.for("v-txt"),Wt=Symbol.for("v-cmt"),ss=Symbol.for("v-stc"),Mr=[];let je=null;function pe(e=!1){Mr.push(je=e?null:[])}function ju(){Mr.pop(),je=Mr[Mr.length-1]||null}let Hr=1;function Ba(e,t=!1){Hr+=e,e<0&&je&&t&&(je.hasOnce=!0)}function Yi(e){return e.dynamicChildren=Hr>0?je||fr:null,ju(),Hr>0&&je&&je.push(e),e}function ge(e,t,r,n,s,a){return Yi(I(e,t,r,n,s,a,!0))}function Ki(e,t,r,n,s){return Yi(Ke(e,t,r,n,s,!0))}function Ji(e){return e?e.__v_isVNode===!0:!1}function Fr(e,t){return e.type===t.type&&e.key===t.key}const Qi=({key:e})=>e??null,pn=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||Ee(e)||ae(e)?{i:$e,r:e,k:t,f:!!r}:e:null);function I(e,t=null,r=null,n=0,s=null,a=e===ze?0:1,o=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qi(t),ref:t&&pn(t),scopeId:Ci,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:$e};return i?(la(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Le(r)?8:16),Hr>0&&!o&&je&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&je.push(l),l}const Ke=qu;function qu(e,t=null,r=null,n=0,s=null,a=!1){if((!e||e===xu)&&(e=Wt),Ji(e)){const i=mr(e,t,!0);return r&&la(i,r),Hr>0&&!a&&je&&(i.shapeFlag&6?je[je.indexOf(e)]=i:je.push(i)),i.patchFlag=-2,i}if(ac(e)&&(e=e.__vccOpts),t){t=Xu(t);let{class:i,style:l}=t;i&&!Le(i)&&(t.class=vt(i)),ke(l)&&(Nn(l)&&!ne(l)&&(l=Ae({},l)),t.style=Dr(l))}const o=Le(e)?1:Xi(e)?128:au(e)?64:ke(e)?4:ae(e)?2:0;return I(e,t,r,n,s,o,a,!0)}function Xu(e){return e?Nn(e)||Gi(e)?Ae({},e):e:null}function mr(e,t,r=!1,n=!1){const{props:s,ref:a,patchFlag:o,children:i,transition:l}=e,c=t?Ku(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Qi(c),ref:t&&t.ref?r&&a?ne(a)?a.concat(pn(t)):[a,pn(t)]:pn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ze?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mr(e.ssContent),ssFallback:e.ssFallback&&mr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&aa(u,l.clone(u)),u}function Yu(e=" ",t=0){return Ke(zn,null,e,t)}function tr(e="",t=!1){return t?(pe(),Ki(Wt,null,e)):Ke(Wt,null,e)}function dt(e){return e==null||typeof e=="boolean"?Ke(Wt):ne(e)?Ke(ze,null,e.slice()):Ji(e)?Gt(e):Ke(zn,null,String(e))}function Gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mr(e)}function la(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ne(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),la(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Gi(t)?t._ctx=$e:s===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:$e},r=32):(t=String(t),n&64?(r=16,t=[Yu(t)]):r=8);e.children=t,e.shapeFlag|=r}function Ku(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=vt([t.class,n.class]));else if(s==="style")t.style=Dr([t.style,n.style]);else if(Rn(s)){const a=t[s],o=n[s];o&&a!==o&&!(ne(a)&&a.includes(o))&&(t[s]=a?[].concat(a,o):o)}else s!==""&&(t[s]=n[s])}return t}function ct(e,t,r,n=null){bt(e,t,7,[r,n])}const Ju=Pi();let Qu=0;function ec(e,t,r){const n=e.type,s=(t?t.appContext:e.appContext)||Ju,a={uid:Qu++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ni(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vi(n,s),emitsOptions:Di(n,s),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:n.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Lu.bind(null,a),e.ce&&e.ce(a),a}let De=null;const el=()=>De||$e;let Fn,Os;{const e=Pn(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),a=>{s.length>1?s.forEach(o=>o(a)):s[0](a)}};Fn=t("__VUE_INSTANCE_SETTERS__",r=>De=r),Os=t("__VUE_SSR_SETTERS__",r=>Vr=r)}const Xr=e=>{const t=De;return Fn(e),e.scope.on(),()=>{e.scope.off(),Fn(t)}},Na=()=>{De&&De.scope.off(),Fn(null)};function tl(e){return e.vnode.shapeFlag&4}let Vr=!1;function tc(e,t=!1,r=!1){t&&Os(t);const{props:n,children:s}=e.vnode,a=tl(e);Pu(e,n,a,t),Gu(e,s,r||t);const o=a?rc(e,t):void 0;return t&&Os(!1),o}function rc(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Su);const{setup:n}=r;if(n){Ot();const s=e.setupContext=n.length>1?sc(e):null,a=Xr(e),o=jr(n,e,0,[e.props,s]),i=Yo(o);if(Ut(),a(),(i||e.sp)&&!Rr(e)&&Oi(e),i){if(o.then(Na,Na),t)return o.then(l=>{Ga(e,l)}).catch(l=>{Gn(l,e,0)});e.asyncDep=o}else Ga(e,o)}else rl(e)}function Ga(e,t,r){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ke(t)&&(e.setupState=bi(t)),rl(e)}function rl(e,t,r){const n=e.type;e.render||(e.render=n.render||mt);{const s=Xr(e);Ot();try{wu(e)}finally{Ut(),s()}}}const nc={get(e,t){return Pe(e,"get",""),e[t]}};function sc(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,nc),slots:e.slots,emit:e.emit,expose:t}}function Wn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(bi(ra(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ar)return Ar[r](e)},has(t,r){return r in t||r in Ar}})):e.proxy}function ac(e){return ae(e)&&"__vccOpts"in e}const be=(e,t)=>$0(e,t,Vr),oc="3.5.27";let Us;const Ha=typeof window<"u"&&window.trustedTypes;if(Ha)try{Us=Ha.createPolicy("vue",{createHTML:e=>e})}catch{}const nl=Us?e=>Us.createHTML(e):e=>e,ic="http://www.w3.org/2000/svg",lc="http://www.w3.org/1998/Math/MathML",wt=typeof document<"u"?document:null,Va=wt&&wt.createElement("template"),uc={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t==="svg"?wt.createElementNS(ic,e):t==="mathml"?wt.createElementNS(lc,e):r?wt.createElement(e,{is:r}):wt.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,a){const o=r?r.previousSibling:t.lastChild;if(s&&(s===a||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===a||!(s=s.nextSibling)););else{Va.innerHTML=nl(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const i=Va.content;if(n==="svg"||n==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},cc=Symbol("_vtc");function fc(e,t,r){const n=e[cc];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const za=Symbol("_vod"),hc=Symbol("_vsh"),pc=Symbol(""),dc=/(?:^|;)\s*display\s*:/;function vc(e,t,r){const n=e.style,s=Le(r);let a=!1;if(r&&!s){if(t)if(Le(t))for(const o of t.split(";")){const i=o.slice(0,o.indexOf(":")).trim();r[i]==null&&dn(n,i,"")}else for(const o in t)r[o]==null&&dn(n,o,"");for(const o in r)o==="display"&&(a=!0),dn(n,o,r[o])}else if(s){if(t!==r){const o=n[pc];o&&(r+=";"+o),n.cssText=r,a=dc.test(r)}}else t&&e.removeAttribute("style");za in e&&(e[za]=a?n.display:"",e[hc]&&(n.display="none"))}const Wa=/\s*!important$/;function dn(e,t,r){if(ne(r))r.forEach(n=>dn(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=gc(e,t);Wa.test(r)?e.setProperty(ar(n),r.replace(Wa,""),"important"):e[n]=r}}const Za=["Webkit","Moz","ms"],as={};function gc(e,t){const r=as[t];if(r)return r;let n=yt(t);if(n!=="filter"&&n in e)return as[t]=n;n=qs(n);for(let s=0;s<Za.length;s++){const a=Za[s]+n;if(a in e)return as[t]=a}return t}const $a="http://www.w3.org/1999/xlink";function ja(e,t,r,n,s,a=m0(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS($a,t.slice(6,t.length)):e.setAttributeNS($a,t,r):r==null||a&&!ei(r)?e.removeAttribute(t):e.setAttribute(t,a?"":$t(r)?String(r):r)}function qa(e,t,r,n,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?nl(r):r);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const i=a==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(i!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const i=typeof e[t];i==="boolean"?r=ei(r):r==null&&i==="string"?(r="",o=!0):i==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(s||t)}function cr(e,t,r,n){e.addEventListener(t,r,n)}function mc(e,t,r,n){e.removeEventListener(t,r,n)}const Xa=Symbol("_vei");function xc(e,t,r,n,s=null){const a=e[Xa]||(e[Xa]={}),o=a[t];if(n&&o)o.value=n;else{const[i,l]=yc(t);if(n){const c=a[t]=wc(n,s);cr(e,i,c,l)}else o&&(mc(e,i,o,l),a[t]=void 0)}}const Ya=/(?:Once|Passive|Capture)$/;function yc(e){let t;if(Ya.test(e)){t={};let n;for(;n=e.match(Ya);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ar(e.slice(2)),t]}let os=0;const bc=Promise.resolve(),Sc=()=>os||(bc.then(()=>os=0),os=Date.now());function wc(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;bt(Tc(n,r.value),t,5,[n])};return r.value=e,r.attached=Sc(),r}function Tc(e,t){if(ne(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const Ka=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fc=(e,t,r,n,s,a)=>{const o=s==="svg";t==="class"?fc(e,n,o):t==="style"?vc(e,r,n):Rn(t)?$s(t)||xc(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cc(e,t,n,o))?(qa(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ja(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Le(n))?qa(e,yt(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ja(e,t,n,o))};function Cc(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ka(t)&&ae(r));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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Ka(t)&&Le(r)?!1:t in e}const Ja=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?r=>fn(t,r):t};function kc(e){e.target.composing=!0}function Qa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const is=Symbol("_assign");function eo(e,t,r){return t&&(e=e.trim()),r&&(e=Xs(e)),e}const Ec={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[is]=Ja(s);const a=n||s.props&&s.props.type==="number";cr(e,t?"change":"input",o=>{o.target.composing||e[is](eo(e.value,r,a))}),(r||a)&&cr(e,"change",()=>{e.value=eo(e.value,r,a)}),t||(cr(e,"compositionstart",kc),cr(e,"compositionend",Qa),cr(e,"change",Qa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:s,number:a}},o){if(e[is]=Ja(o),e.composing)return;const i=(a||e.type==="number")&&!/^0\d/.test(e.value)?Xs(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||s&&e.value.trim()===l)||(e.value=l))}},Oc=Ae({patchProp:Fc},uc);let to;function Uc(){return to||(to=Vu(Oc))}const Lc=((...e)=>{const t=Uc().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=Rc(n);if(!s)return;const a=t._component;!ae(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=r(s,!1,_c(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function _c(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Rc(e){return Le(e)?document.querySelector(e):e}let sl;const Zn=e=>sl=e,al=Symbol();function Ls(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ir;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ir||(Ir={}));function Ac(){const e=si(!0),t=e.run(()=>Ce({}));let r=[],n=[];const s=ra({install(a){Zn(s),s._a=a,a.provide(al,s),a.config.globalProperties.$pinia=s,n.forEach(o=>r.push(o)),n=[]},use(a){return this._a?r.push(a):n.push(a),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return s}const ol=()=>{};function ro(e,t,r,n=ol){e.add(t);const s=()=>{e.delete(t)&&n()};return!r&&ai()&&x0(s),s}function ir(e,...t){e.forEach(r=>{r(...t)})}const Mc=e=>e(),no=Symbol(),ls=Symbol();function _s(e,t){e instanceof Map&&t instanceof Map?t.forEach((r,n)=>e.set(n,r)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],s=e[r];Ls(s)&&Ls(n)&&e.hasOwnProperty(r)&&!Ee(n)&&!kt(n)?e[r]=_s(s,n):e[r]=n}return e}const Ic=Symbol();function Pc(e){return!Ls(e)||!Object.prototype.hasOwnProperty.call(e,Ic)}const{assign:Pt}=Object;function Dc(e){return!!(Ee(e)&&e.effect)}function Bc(e,t,r,n){const{state:s,actions:a,getters:o}=t,i=r.state.value[e];let l;function c(){i||(r.state.value[e]=s?s():{});const u=V0(r.state.value[e]);return Pt(u,a,Object.keys(o||{}).reduce((h,f)=>(h[f]=ra(be(()=>{Zn(r);const p=r._s.get(e);return o[f].call(p,p)})),h),{}))}return l=il(e,c,t,r,n,!0),l}function il(e,t,r={},n,s,a){let o;const i=Pt({actions:{}},r),l={deep:!0};let c,u,h=new Set,f=new Set,p;const m=n.state.value[e];!a&&!m&&(n.state.value[e]={});let x;function g(k){let L;c=u=!1,typeof k=="function"?(k(n.state.value[e]),L={type:Ir.patchFunction,storeId:e,events:p}):(_s(n.state.value[e],k),L={type:Ir.patchObject,payload:k,storeId:e,events:p});const V=x=Symbol();na().then(()=>{x===V&&(c=!0)}),u=!0,ir(h,L,n.state.value[e])}const y=a?function(){const{state:L}=r,V=L?L():{};this.$patch(N=>{Pt(N,V)})}:ol;function b(){o.stop(),h.clear(),f.clear(),n._s.delete(e)}const S=(k,L="")=>{if(no in k)return k[ls]=L,k;const V=function(){Zn(n);const N=Array.from(arguments),X=new Set,se=new Set;function oe(A){X.add(A)}function R(A){se.add(A)}ir(f,{args:N,name:V[ls],store:C,after:oe,onError:R});let G;try{G=k.apply(this&&this.$id===e?this:C,N)}catch(A){throw ir(se,A),A}return G instanceof Promise?G.then(A=>(ir(X,A),A)).catch(A=>(ir(se,A),Promise.reject(A))):(ir(X,G),G)};return V[no]=!0,V[ls]=L,V},F={_p:n,$id:e,$onAction:ro.bind(null,f),$patch:g,$reset:y,$subscribe(k,L={}){const V=ro(h,k,L.detached,()=>N()),N=o.run(()=>dr(()=>n.state.value[e],X=>{(L.flush==="sync"?u:c)&&k({storeId:e,type:Ir.direct,events:p},X)},Pt({},l,L)));return V},$dispose:b},C=Bn(F);n._s.set(e,C);const D=(n._a&&n._a.runWithContext||Mc)(()=>n._e.run(()=>(o=si()).run(()=>t({action:S}))));for(const k in D){const L=D[k];if(Ee(L)&&!Dc(L)||kt(L))a||(m&&Pc(L)&&(Ee(L)?L.value=m[k]:_s(L,m[k])),n.state.value[e][k]=L);else if(typeof L=="function"){const V=S(L,k);D[k]=V,i.actions[k]=L}}return Pt(C,D),Pt(he(C),D),Object.defineProperty(C,"$state",{get:()=>n.state.value[e],set:k=>{g(L=>{Pt(L,k)})}}),n._p.forEach(k=>{Pt(C,o.run(()=>k({store:C,app:n._a,pinia:n,options:i})))}),m&&a&&r.hydrate&&r.hydrate(C.$state,m),c=!0,u=!0,C}function ll(e,t,r){let n;const s=typeof t=="function";n=s?r:t;function a(o,i){const l=eu();return o=o||(l?Lr(al,null):null),o&&Zn(o),o=sl,o._s.has(e)||(s?il(e,t,n,o):Bc(e,n,o)),o._s.get(e)}return a.$id=e,a}const Nc="modulepreload",Gc=function(e){return"/"+e},so={},Cn=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){let l=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=o?.nonce||o?.getAttribute("nonce");s=l(r.map(c=>{if(c=Gc(c),c in so)return;so[c]=!0;const u=c.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Nc,u||(f.as="script"),f.crossOrigin="",f.href=c,i&&f.setAttribute("nonce",i),document.head.appendChild(f),u)return new Promise((p,m)=>{f.addEventListener("load",p),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return s.then(o=>{for(const i of o||[])i.status==="rejected"&&a(i.reason);return t().catch(a)})},Hc="/assets/webicon-K25S575h.svg",Vc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='360'%20height='33'%20fill='none'%20viewBox='0%200%20360%2033'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%238552A1'%20d='M7.305%2015.333h7.898l-.856%201.51h8.49l.593-2.883H5.594L7.832%202.7%205.857.87h50.874L54.1%2013.96H36.724l-.592%202.883h17.572l-.856%204.12H35.276l-.395%201.968h17.507l-.79%203.936H34.09l-.263%201.373h20.468l-.79%203.89H0l.79-3.89h19.744l.263-1.373H4.87l.79-3.936h15.927l.395-1.968h-9.938l-.724%201.373H3.16l4.145-7.003ZM20.007%205.63H43.24l.33-1.373H20.336l-.329%201.373Zm22.311%204.668.263-1.327H19.35l-.263%201.327h23.232Zm51.795%2010.894.527-2.793h-9.872l.79-3.982h31.327l-.79%203.982h-10.004l-.526%202.793h8.753l-.855%204.165h-8.754l-.724%203.432h10.465l-.856%204.028H81.477l.856-4.028h10.2l.725-3.433H84.57l.856-4.165h8.687ZM85.36%204.622l-4.804.321-.856%204.303h5.66l-.855%204.21H78.12l-3.95%2019.498h-8.687l3.95-19.498H62.72l.856-4.21h5.989l.79-3.662-5.66.366.855-4.21L86.216.411l-.856%204.21ZM89.572.87h29.09l-2.369%2011.762h-29.09L89.573.87ZM59.101%2031.307l4.212-16.111h5.594l-4.212%2016.11H59.1Zm16.65%200%202.37-16.111h5.594l-2.37%2016.11h-5.594ZM107.21%208.65l.724-3.8h-9.345l-.724%203.8h9.345Zm35.276%2011.031.395-1.785%2014.545-3.112h-28.958l.921-4.44h43.766l-1.053%205.31-17.111%204.027h21.258l-.856%204.44h-21.324l-1.118%205.72c-.176.886-.757%201.626-1.744%202.22-.988.596-2.117.893-3.39.893h-12.965l5.857-4.302.922-4.531h-21.258l.856-4.44h21.257ZM163.81%206.957h-25.009l-.461%202.472h-13.755l1.382-6.82h19.942l.197-.915L144.066%200h15.927l-.593%202.61h19.086l-1.382%206.82h-13.755l.461-2.472Zm48.044%202.197-4.41%2013.044h2.962l2.896-14.371h-11.847l.856-4.348h11.846l.395-1.74L212.446%200h14.413l-.724%203.479h11.847l-.856%204.348H225.28l-2.962%2014.371h3.028l.855-13.044h8.161l-1.58%2023.022h-8.095l.329-5.63h-3.553l-1.317%206.408h-11.912l1.25-6.407h-3.488l-1.908%205.63h-8.161l7.766-23.023h8.161Zm-12.176-4.806-.197.961-5.594%2027.645h-11.913l5.266-25.951-3.818.503%201.053-5.217L200.534.092l-.856%204.256Zm79.503%2019.361%201.514%201.053%205.396-3.021H268.98l3.554-6.088h-4.081l.856-4.302h5.726l1.974-3.387h-4.607l.856-4.21h6.186l1.514-2.61L279.313%200h12.504l-2.04%203.753h9.872l-.856%204.211h-11.32l-1.776%203.387h14.018l-.856%204.302h-15.532l-1.119%202.106h14.216l-1.185%205.446-9.148%205.264%206.516%204.44h-11.846l-12.702-9.2h11.122Zm-33.565-9.566%203.751-6.545h-3.356l.856-4.257h4.936l1.118-1.922-1.316-1.373h9.346l-1.909%203.295h11.846l-.855%204.257h-13.426l-3.883%206.82h2.962l1.118-5.31h8.161l-1.053%205.31h3.686l-.79%204.073h-3.751l-.724%203.524%204.936-.457-.922%204.577-4.936.457-1.25%206.27h-9.872l1.053-5.309-9.938.916.921-4.577%209.938-.915.922-4.486h-8.424l.855-4.348Zm78.252%205.127%202.041-9.933h16.914l3.422-3.25h-6.581l-2.304%201.831h-11.122l8.687-6.82-1.25-1.052h13.623l-2.633%202.06h13.69l-.79%204.119-3.357%203.112h5.66l-2.04%209.932H360l-.856%204.12h-12.702L356.907%2033h-10.596l-6.845-6.957-9.016%206.774h-11.715l13.097-9.429h-10.991l.856-4.119h2.171ZM311.956%205.446l.856-4.165L311.232%200h12.505l-1.119%205.447h2.567l-.856%204.348h-2.632l-.856%204.394%202.698-.55-.987%204.76-2.698.55-2.172%2010.847c-.176.855-.735%201.572-1.678%202.151-.944.58-2.052.87-3.324.87h-10.53l5.133-4.12%201.514-7.46-4.278.87.987-4.806%204.212-.87%201.383-6.636h-4.147l.856-4.348h4.146Zm34.75%207.231-1.317%206.5h4.081l1.316-6.5h-4.08Zm-13.097.138-1.316%206.453h4.014l1.316-6.453h-4.014Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h360v33H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",zc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='13'%20fill='none'%20viewBox='0%200%2015%2013'%3e%3cpath%20fill='%235C5C66'%20d='M9.668%2012.667a.333.333%200%200%201-.31-.213L7.885%208.667H2.119L.646%2012.454a.333.333%200%201%201-.622-.242l4.667-12a.333.333%200%200%201%20.621%200l4.667%2012a.333.333%200%200%201-.31.455ZM2.378%208h5.248L5.002%201.253%202.378%208Zm11.957-6h-4a.333.333%200%201%201%200-.667h4a.333.333%200%200%201%200%20.667Z'/%3e%3c/svg%3e",Wc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='20'%20fill='none'%20viewBox='0%200%2022%2020'%3e%3cpath%20fill='%235C5C66'%20d='M14.503%2020a.5.5%200%200%201-.466-.319L11.826%2014h-8.65L.97%2019.681a.501.501%200%200%201-.928.024.5.5%200%200%201-.004-.386l7-18a.5.5%200%200%201%20.932%200l7%2018a.5.5%200%200%201-.466.681ZM3.567%2013h7.871L7.503%202.88%203.567%2013Zm14.936-6a.5.5%200%200%201-.5-.5V4h-2.5a.5.5%200%200%201%200-1h2.5V.5a.5.5%200%200%201%201%200V3h2.5a.5.5%200%201%201%200%201h-2.5v2.5a.5.5%200%200%201-.5.5Z'/%3e%3c/svg%3e",Zc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20fill='none'%20viewBox='0%200%2036%2036'%3e%3cpath%20fill='%23FCFCFC'%20d='M22.774%2013.238a6.734%206.734%200%201%201-4.77-1.98%206.702%206.702%200%200%201%204.77%201.98Z'/%3e%3cpath%20fill='%2300E8CF'%20d='M18.005%206.76v4.498a6.703%206.703%200%200%200-4.769%201.98L10.05%2010.05a11.238%2011.238%200%200%201%207.955-3.292Z'/%3e%3cpath%20fill='%2370FFEF'%20d='M18.005.761V6.76a11.239%2011.239%200%200%200-7.955%203.292L5.813%205.815A17.162%2017.162%200%200%201%2018.005.76Z'/%3e%3cpath%20fill='%230064B5'%20d='m10.05%2010.051%203.186%203.187a6.702%206.702%200%200%200-1.98%204.768H6.759a11.239%2011.239%200%200%201%203.292-7.955Z'/%3e%3cpath%20fill='%230091FF'%20d='M10.05%2010.051a11.238%2011.238%200%200%200-3.292%207.955H.76A17.162%2017.162%200%200%201%205.813%205.815l4.237%204.236Z'/%3e%3cpath%20fill='%2331C4FF'%20d='M11.257%2018.006a6.7%206.7%200%200%200%201.98%204.769l-3.187%203.187a11.24%2011.24%200%200%201-3.292-7.956h4.499Z'/%3e%3cpath%20fill='%239EEBFF'%20d='M6.758%2018.006a11.24%2011.24%200%200%200%203.292%207.956l-4.237%204.236A17.162%2017.162%200%200%201%20.76%2018.006h5.998Z'/%3e%3cpath%20fill='%235F4A9E'%20d='M18.005%2024.754v4.5a11.239%2011.239%200%200%201-7.955-3.292l3.186-3.187a6.702%206.702%200%200%200%204.769%201.98Z'/%3e%3cpath%20fill='%239D87E0'%20d='M10.05%2025.962a11.24%2011.24%200%200%200%207.955%203.291v5.998a17.16%2017.16%200%200%201-12.192-5.053l4.237-4.236Z'/%3e%3cpath%20fill='%23FF468C'%20d='M25.96%2025.962a11.241%2011.241%200%200%201-7.955%203.291v-4.499a6.7%206.7%200%200%200%204.769-1.98l3.186%203.188Z'/%3e%3cpath%20fill='%23FFA1C8'%20d='m25.96%2025.962%204.236%204.236a17.162%2017.162%200%200%201-12.191%205.053v-5.998a11.239%2011.239%200%200%200%207.955-3.291Z'/%3e%3cpath%20fill='%23F03049'%20d='M24.753%2018.006h4.499a11.241%2011.241%200%200%201-3.292%207.956l-3.186-3.187a6.7%206.7%200%200%200%201.979-4.769Z'/%3e%3cpath%20fill='%23FF636E'%20d='M29.252%2018.006h5.998a17.163%2017.163%200%200%201-5.053%2012.192l-4.237-4.236a11.241%2011.241%200%200%200%203.292-7.956Z'/%3e%3cpath%20fill='%23FE8205'%20d='M25.96%2010.051a11.24%2011.24%200%200%201%203.292%207.955h-4.499a6.701%206.701%200%200%200-1.98-4.768l3.187-3.187Z'/%3e%3cpath%20fill='%23FFA426'%20d='M35.25%2018.006h-5.998a11.24%2011.24%200%200%200-3.292-7.955l4.236-4.236a17.163%2017.163%200%200%201%205.054%2012.191Z'/%3e%3cpath%20fill='%23FFC247'%20d='m25.96%2010.051-3.186%203.187a6.702%206.702%200%200%200-4.77-1.98V6.76a11.24%2011.24%200%200%201%207.956%203.292Z'/%3e%3cpath%20fill='%23FFFD78'%20d='M30.197%205.815%2025.96%2010.05a11.24%2011.24%200%200%200-7.955-3.292V.761a17.162%2017.162%200%200%201%2012.192%205.054Z'/%3e%3cpath%20fill='%23000'%20d='m32.863%2010.832%201.35-.653a19.376%2019.376%200%200%200-.854-1.56L32.08%209.4c.286.467.546.948.783%201.432Z'/%3e%3cpath%20fill='%23000'%20d='m34.88%2011.743-1.406.525c.589%201.601.924%203.284.993%204.988H29.97a11.883%2011.883%200%200%200-2.967-7.186l3.186-3.185c.317.347.62.707.905%201.08l1.19-.914a17.995%2017.995%200%200%200-29.629%2020.35l1.277-.786a16.459%2016.459%200%200%201-2.405-7.859H6.03a11.882%2011.882%200%200%200%202.985%207.18l-3.188%203.187a16.61%2016.61%200%200%201-.91-1.075l-1.19.914A18%2018%200%200%200%2034.88%2011.744ZM5.822%206.883l3.185%203.187a11.883%2011.883%200%200%200-2.965%207.186H1.543a16.345%2016.345%200%200%201%204.28-10.372Zm16.424%2015.365a5.998%205.998%200%201%201%201.757-4.242%205.96%205.96%200%200%201-1.757%204.242ZM12.2%2013.26a7.424%207.424%200%200%200-1.652%203.995H7.545a10.39%2010.39%200%200%201%202.533-6.116l2.121%202.12Zm10.55-1.06a7.423%207.423%200%200%200-3.995-1.651V7.546a10.39%2010.39%200%200%201%206.117%202.533L22.75%2012.2Zm-5.495-1.655a7.422%207.422%200%200%200-3.993%201.658l-2.124-2.123a10.39%2010.39%200%200%201%206.117-2.534v3Zm-6.711%208.211A7.423%207.423%200%200%200%2012.2%2022.75l-2.123%202.124a10.39%2010.39%200%200%201-2.533-6.117h2.999Zm2.715%205.057a7.423%207.423%200%200%200%203.996%201.65v3.004a10.39%2010.39%200%200%201-6.117-2.534l2.121-2.12Zm5.496%201.654a7.423%207.423%200%200%200%203.993-1.657l2.123%202.123a10.39%2010.39%200%200%201-6.116%202.534v-3Zm7.177-.594-2.121-2.121a7.423%207.423%200%200%200%201.651-3.996h3.003a10.39%2010.39%200%200%201-2.533%206.117Zm2.533-7.617h-2.999a7.423%207.423%200%200%200-1.658-3.993l2.124-2.123a10.39%2010.39%200%200%201%202.533%206.116Zm-9.71-15.729a16.358%2016.358%200%200%201%2010.36%204.31l-3.181%203.18a11.89%2011.89%200%200%200-7.18-2.985V1.527Zm-1.5.018v4.5a11.89%2011.89%200%200%200-7.187%202.964L6.882%205.824a16.345%2016.345%200%200%201%2010.373-4.279Zm-7.187%2025.459a11.89%2011.89%200%200%200%207.187%202.965v4.499a16.354%2016.354%200%200%201-10.373-4.28l3.186-3.184Zm8.687%207.481V29.98a11.898%2011.898%200%200%200%207.186-2.976l3.186%203.186a16.37%2016.37%200%200%201-10.372%204.295Zm11.42-5.37-3.18-3.18a11.882%2011.882%200%200%200%202.983-7.179h4.506a16.352%2016.352%200%200%201-4.31%2010.36Z'/%3e%3c/svg%3e",$c="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='42'%20fill='none'%20viewBox='0%200%2018%2042'%3e%3cpath%20fill='%2300E8CF'%20d='M12.723%205.08H3.775v.442c0%20.513.14.917.42%201.212.263.28.652.42%201.164.42h7.2c.56%200%20.987-.125%201.282-.373.264-.233.42-.59.466-1.072l.07-.955a.771.771%200%200%201%20.268-.56.882.882%200%200%201%20.594-.21.794.794%200%200%201%20.571.28.81.81%200%200%201%20.198.606l-.07.955c-.078.948-.42%201.678-1.025%202.19-.606.529-1.39.793-2.354.793h-7.2c-.947%200-1.732-.303-2.353-.909-.606-.606-.909-1.398-.909-2.377V.816c0-.218.082-.408.245-.571A.809.809%200%200%201%202.936%200h9.787c.217%200%20.411.082.582.245a.764.764%200%200%201%20.256.57v3.45a.754.754%200%200%201-.256.582.842.842%200%200%201-.582.233ZM.839%2011.068h10.043v-.979a.78.78%200%200%201%20.244-.57.809.809%200%200%201%20.595-.245c.217%200%20.407.082.57.245a.782.782%200%200%201%20.245.57v.98h3.659c.217%200%20.407.08.57.244a.782.782%200%200%201%20.245.57.808.808%200%200%201-.245.595.782.782%200%200%201-.57.245h-3.659v7.572a.809.809%200%200%201-.245.595.782.782%200%200%201-.57.244.81.81%200%200%201-.595-.244.809.809%200%200%201-.244-.595v-7.572H.839a.809.809%200%200%201-.594-.245.809.809%200%200%201-.245-.594c0-.218.082-.408.245-.571a.809.809%200%200%201%20.594-.245Zm11.045-9.414h-8.11V3.45h8.11V1.654ZM6.198%2014.866v2.866a.809.809%200%200%201-.245.595.782.782%200%200%201-.57.244.809.809%200%200%201-.595-.244.809.809%200%200%201-.244-.595v-2.866a.81.81%200%200%201%20.244-.594.809.809%200%200%201%20.595-.245c.217%200%20.407.082.57.245a.81.81%200%200%201%20.245.594ZM1.266%2041.161v-7.456c0-.233.081-.431.244-.594a.809.809%200%200%201%20.595-.245c.233%200%20.427.081.582.245a.83.83%200%200%201%20.233.594v6.64h4.66v-9.6H2.99a.83.83%200%200%201-.594-.233.771.771%200%200%201-.245-.582v-6.268c0-.218.082-.408.245-.571a.809.809%200%200%201%20.594-.245c.218%200%20.408.082.571.245a.782.782%200%200%201%20.245.57v5.453H7.58v-7.2a.81.81%200%200%201%20.245-.594.809.809%200%200%201%20.594-.245c.218%200%20.408.082.571.245a.809.809%200%200%201%20.245.594v7.2h3.775v-5.569a.78.78%200%200%201%20.244-.57.809.809%200%200%201%20.595-.245.78.78%200%200%201%20.57.244.782.782%200%200%201%20.245.571v6.385a.771.771%200%200%201-.245.582.801.801%200%200%201-.57.233H9.235v9.6h4.66v-6.757a.81.81%200%200%201%20.245-.594.782.782%200%200%201%20.57-.245.81.81%200%200%201%20.595.245.81.81%200%200%201%20.245.594v7.573a.809.809%200%200%201-.245.594.81.81%200%200%201-.594.245H2.105a.809.809%200%200%201-.595-.245.809.809%200%200%201-.244-.594Z'/%3e%3c/svg%3e",jc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%20fill='none'%20viewBox='0%200%2048%2048'%3e%3ccircle%20cx='24'%20cy='24'%20r='24'%20fill='%238552A1'%20opacity='.2'/%3e%3ccircle%20cx='24'%20cy='24'%20r='18'%20fill='%238552A1'/%3e%3cpath%20fill='%23F3EDF7'%20d='M12.062%2018.99H17.4v1.942h-4.425c-.51%200-.834.025-.97.074-.287.1-.43.343-.43.728%200%20.324.137.573.41.747.15.1.555.15%201.214.15h1.475c.946%200%201.692.199%202.24.597.61.448.915%201.107.915%201.979%200%20.66-.187%201.263-.56%201.81-.274.436-.607.722-.999.86-.392.136-1.048.204-1.97.204H9.13V26.14h4.461c.548%200%20.921-.006%201.12-.019.448-.05.672-.305.672-.765%200-.373-.149-.629-.448-.765-.149-.075-.51-.112-1.082-.112h-1.512c-.598%200-1.055-.038-1.373-.112a2.451%202.451%200%200%201-.886-.411%202.399%202.399%200%200%201-.794-.98A3.14%203.14%200%200%201%209%2021.64c0-.908.33-1.63.99-2.165.398-.324%201.088-.486%202.072-.486Zm9.325%200%202.314%206.254%202.54-6.254h2.65l-3.92%209.091h-2.688l-3.622-9.09h2.726Zm12.946%200H39v9.036c0%20.51-.06.964-.177%201.362-.118.398-.29.734-.514%201.008a2.196%202.196%200%200%201-1.036.719c-.404.13-.992.196-1.764.196h-4.984V29.37h4.648c.548%200%20.905-.084%201.073-.252.168-.168.252-.514.252-1.037h-2.296c-.734%200-1.34-.077-1.82-.233a3.438%203.438%200%200%201-1.297-.774c-.909-.86-1.363-2.042-1.363-3.547%200-1.718.554-2.969%201.662-3.753a3.86%203.86%200%200%201%201.26-.606c.442-.119%201.005-.178%201.69-.178Zm2.166%207.15v-5.208h-2.073c-1.443%200-2.165.871-2.165%202.613%200%20.847.196%201.49.588%201.932.392.442.961.663%201.708.663h1.941Z'/%3e%3c/svg%3e",qc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%20fill='none'%20viewBox='0%200%2048%2048'%3e%3ccircle%20cx='24'%20cy='24'%20r='24'%20fill='%232420A8'%20opacity='.2'/%3e%3ccircle%20cx='24'%20cy='24'%20r='18'%20fill='%232420A8'/%3e%3cpath%20fill='%23F3EDF7'%20d='M9%2031.301v-12.3h4.296c.833%200%201.463.051%201.891.155.429.104.839.31%201.23.615%201.065.832%201.598%202.112%201.598%203.837%200%201.31-.392%202.369-1.175%203.177a3.537%203.537%200%200%201-1.35.88c-.508.184-1.129.276-1.863.276H11.46v3.36H9Zm4.131-10.391h-1.67v5.122h1.505c.795%200%201.377-.172%201.744-.514.514-.453.771-1.15.771-2.093%200-.808-.202-1.43-.606-1.864-.404-.434-.985-.651-1.744-.651Zm6.683%207.031v-8.94h4.737c.71%200%201.251.051%201.625.155.373.104.713.29%201.019.56.624.575.936%201.481.936%202.717v5.508h-2.46v-5.783c0-.44-.098-.759-.294-.955-.196-.196-.52-.293-.973-.293h-2.13v7.031h-2.46ZM34.41%2019H39v8.886c0%20.502-.058.949-.174%201.34a2.807%202.807%200%200%201-.505.992%202.161%202.161%200%200%201-1.02.707c-.397.128-.975.193-1.734.193h-4.902v-1.91h4.571c.539%200%20.89-.082%201.056-.248.165-.165.248-.505.248-1.019h-2.258c-.723%200-1.32-.076-1.79-.23a3.381%203.381%200%200%201-1.277-.761c-.893-.845-1.34-2.008-1.34-3.488%200-1.69.545-2.92%201.634-3.69a3.806%203.806%200%200%201%201.24-.598c.434-.116.988-.174%201.661-.174Zm2.13%207.032V20.91h-2.038c-1.42%200-2.13.856-2.13%202.57%200%20.832.193%201.466.578%201.9.386.435.946.652%201.68.652h1.91Z'/%3e%3c/svg%3e";String.prototype.codePointAt||(function(){var e=(function(){try{var r={},n=Object.defineProperty,s=n(r,r,r)&&n}catch{}return s})(),t=function(r){if(this==null)throw TypeError();var n=String(this),s=n.length,a=r?Number(r):0;if(a!=a&&(a=0),!(a<0||a>=s)){var o=n.charCodeAt(a),i;return o>=55296&&o<=56319&&s>a+1&&(i=n.charCodeAt(a+1),i>=56320&&i<=57343)?(o-55296)*1024+i-56320+65536:o}};e?e(String.prototype,"codePointAt",{value:t,configurable:!0,writable:!0}):String.prototype.codePointAt=t})();var ua=0,ul=-3;function zr(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function Xc(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new zr,this.dtree=new zr}var cl=new zr,fl=new zr,ca=new Uint8Array(30),fa=new Uint16Array(30),hl=new Uint8Array(30),pl=new Uint16Array(30),Yc=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ao=new zr,ft=new Uint8Array(320);function dl(e,t,r,n){var s,a;for(s=0;s<r;++s)e[s]=0;for(s=0;s<30-r;++s)e[s+r]=s/r|0;for(a=n,s=0;s<30;++s)t[s]=a,a+=1<<e[s]}function Kc(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}var oo=new Uint16Array(16);function us(e,t,r,n){var s,a;for(s=0;s<16;++s)e.table[s]=0;for(s=0;s<n;++s)e.table[t[r+s]]++;for(e.table[0]=0,a=0,s=0;s<16;++s)oo[s]=a,a+=e.table[s];for(s=0;s<n;++s)t[r+s]&&(e.trans[oo[t[r+s]]++]=s)}function Jc(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function pt(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,n+r}function Rs(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=0,n=0,s=0,a=e.tag;do n=2*n+(a&1),a>>>=1,++s,r+=t.table[s],n-=t.table[s];while(n>=0);return e.tag=a,e.bitcount-=s,t.trans[r+n]}function Qc(e,t,r){var n,s,a,o,i,l;for(n=pt(e,5,257),s=pt(e,5,1),a=pt(e,4,4),o=0;o<19;++o)ft[o]=0;for(o=0;o<a;++o){var c=pt(e,3,0);ft[Yc[o]]=c}for(us(ao,ft,0,19),i=0;i<n+s;){var u=Rs(e,ao);switch(u){case 16:var h=ft[i-1];for(l=pt(e,2,3);l;--l)ft[i++]=h;break;case 17:for(l=pt(e,3,3);l;--l)ft[i++]=0;break;case 18:for(l=pt(e,7,11);l;--l)ft[i++]=0;break;default:ft[i++]=u;break}}us(t,ft,0,n),us(r,ft,n,s)}function io(e,t,r){for(;;){var n=Rs(e,t);if(n===256)return ua;if(n<256)e.dest[e.destLen++]=n;else{var s,a,o,i;for(n-=257,s=pt(e,ca[n],fa[n]),a=Rs(e,r),o=e.destLen-pt(e,hl[a],pl[a]),i=o;i<o+s;++i)e.dest[e.destLen++]=e.dest[i]}}}function ef(e){for(var t,r,n;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],r=e.source[e.sourceIndex+3],r=256*r+e.source[e.sourceIndex+2],t!==(~r&65535))return ul;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,ua}function tf(e,t){var r=new Xc(e,t),n,s,a;do{switch(n=Jc(r),s=pt(r,2,0),s){case 0:a=ef(r);break;case 1:a=io(r,cl,fl);break;case 2:Qc(r,r.ltree,r.dtree),a=io(r,r.ltree,r.dtree);break;default:a=ul}if(a!==ua)throw new Error("Data error")}while(!n);return r.destLen<r.dest.length?typeof r.dest.slice=="function"?r.dest.slice(0,r.destLen):r.dest.subarray(0,r.destLen):r.dest}Kc(cl,fl);dl(ca,fa,4,3);dl(hl,pl,2,1);ca[28]=0;fa[28]=258;var rf=tf;function lr(e,t,r,n,s){return Math.pow(1-s,3)*e+3*Math.pow(1-s,2)*s*t+3*(1-s)*Math.pow(s,2)*r+Math.pow(s,3)*n}function jt(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}jt.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)};jt.prototype.addPoint=function(e,t){typeof e=="number"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))};jt.prototype.addX=function(e){this.addPoint(e,null)};jt.prototype.addY=function(e){this.addPoint(null,e)};jt.prototype.addBezier=function(e,t,r,n,s,a,o,i){var l=[e,t],c=[r,n],u=[s,a],h=[o,i];this.addPoint(e,t),this.addPoint(o,i);for(var f=0;f<=1;f++){var p=6*l[f]-12*c[f]+6*u[f],m=-3*l[f]+9*c[f]-9*u[f]+3*h[f],x=3*c[f]-3*l[f];if(m===0){if(p===0)continue;var g=-x/p;0<g&&g<1&&(f===0&&this.addX(lr(l[f],c[f],u[f],h[f],g)),f===1&&this.addY(lr(l[f],c[f],u[f],h[f],g)));continue}var y=Math.pow(p,2)-4*x*m;if(!(y<0)){var b=(-p+Math.sqrt(y))/(2*m);0<b&&b<1&&(f===0&&this.addX(lr(l[f],c[f],u[f],h[f],b)),f===1&&this.addY(lr(l[f],c[f],u[f],h[f],b)));var S=(-p-Math.sqrt(y))/(2*m);0<S&&S<1&&(f===0&&this.addX(lr(l[f],c[f],u[f],h[f],S)),f===1&&this.addY(lr(l[f],c[f],u[f],h[f],S)))}}};jt.prototype.addQuad=function(e,t,r,n,s,a){var o=e+.6666666666666666*(r-e),i=t+2/3*(n-t),l=o+1/3*(s-e),c=i+1/3*(a-t);this.addBezier(e,t,o,i,l,c,s,a)};function _e(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}_e.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})};_e.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})};_e.prototype.curveTo=_e.prototype.bezierCurveTo=function(e,t,r,n,s,a){this.commands.push({type:"C",x1:e,y1:t,x2:r,y2:n,x:s,y:a})};_e.prototype.quadTo=_e.prototype.quadraticCurveTo=function(e,t,r,n){this.commands.push({type:"Q",x1:e,y1:t,x:r,y:n})};_e.prototype.close=_e.prototype.closePath=function(){this.commands.push({type:"Z"})};_e.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof jt){var t=e;this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),this.close();return}Array.prototype.push.apply(this.commands,e)};_e.prototype.getBoundingBox=function(){for(var e=new jt,t=0,r=0,n=0,s=0,a=0;a<this.commands.length;a++){var o=this.commands[a];switch(o.type){case"M":e.addPoint(o.x,o.y),t=n=o.x,r=s=o.y;break;case"L":e.addPoint(o.x,o.y),n=o.x,s=o.y;break;case"Q":e.addQuad(n,s,o.x1,o.y1,o.x,o.y),n=o.x,s=o.y;break;case"C":e.addBezier(n,s,o.x1,o.y1,o.x2,o.y2,o.x,o.y),n=o.x,s=o.y;break;case"Z":n=t,s=r;break;default:throw new Error("Unexpected path command "+o.type)}}return e.isEmpty()&&e.addPoint(0,0),e};_e.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];r.type==="M"?e.moveTo(r.x,r.y):r.type==="L"?e.lineTo(r.x,r.y):r.type==="C"?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):r.type==="Q"?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):r.type==="Z"&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())};_e.prototype.toPathData=function(e){e=e!==void 0?e:2;function t(o){return Math.round(o)===o?""+Math.round(o):o.toFixed(e)}function r(){for(var o=arguments,i="",l=0;l<arguments.length;l+=1){var c=o[l];c>=0&&l>0&&(i+=" "),i+=t(c)}return i}for(var n="",s=0;s<this.commands.length;s+=1){var a=this.commands[s];a.type==="M"?n+="M"+r(a.x,a.y):a.type==="L"?n+="L"+r(a.x,a.y):a.type==="C"?n+="C"+r(a.x1,a.y1,a.x2,a.y2,a.x,a.y):a.type==="Q"?n+="Q"+r(a.x1,a.y1,a.x,a.y):a.type==="Z"&&(n+="Z")}return n};_e.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&&this.fill!=="black"&&(this.fill===null?t+=' fill="none"':t+=' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+="/>",t};_e.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d",t),r};function vl(e){throw new Error(e)}function lo(e,t){e||vl(t)}var Q={fail:vl,argument:lo,assert:lo},uo=32768,co=2147483648,xr={},B={},te={};function at(e){return function(){return e}}B.BYTE=function(e){return Q.argument(e>=0&&e<=255,"Byte value should be between 0 and 255."),[e]};te.BYTE=at(1);B.CHAR=function(e){return[e.charCodeAt(0)]};te.CHAR=at(1);B.CHARARRAY=function(e){typeof e>"u"&&(e="",console.warn("Undefined CHARARRAY encountered and treated as an empty string. This is probably caused by a missing glyph name."));for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t};te.CHARARRAY=function(e){return typeof e>"u"?0:e.length};B.USHORT=function(e){return[e>>8&255,e&255]};te.USHORT=at(2);B.SHORT=function(e){return e>=uo&&(e=-(2*uo-e)),[e>>8&255,e&255]};te.SHORT=at(2);B.UINT24=function(e){return[e>>16&255,e>>8&255,e&255]};te.UINT24=at(3);B.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]};te.ULONG=at(4);B.LONG=function(e){return e>=co&&(e=-(2*co-e)),[e>>24&255,e>>16&255,e>>8&255,e&255]};te.LONG=at(4);B.FIXED=B.ULONG;te.FIXED=te.ULONG;B.FWORD=B.SHORT;te.FWORD=te.SHORT;B.UFWORD=B.USHORT;te.UFWORD=te.USHORT;B.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,e&255]};te.LONGDATETIME=at(8);B.TAG=function(e){return Q.argument(e.length===4,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]};te.TAG=at(4);B.Card8=B.BYTE;te.Card8=te.BYTE;B.Card16=B.USHORT;te.Card16=te.USHORT;B.OffSize=B.BYTE;te.OffSize=te.BYTE;B.SID=B.USHORT;te.SID=te.USHORT;B.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?(e=e-108,[(e>>8)+247,e&255]):e>=-1131&&e<=-108?(e=-e-108,[(e>>8)+251,e&255]):e>=-32768&&e<=32767?B.NUMBER16(e):B.NUMBER32(e)};te.NUMBER=function(e){return B.NUMBER(e).length};B.NUMBER16=function(e){return[28,e>>8&255,e&255]};te.NUMBER16=at(3);B.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,e&255]};te.NUMBER32=at(5);B.REAL=function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var n=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*n)/n).toString()}for(var s="",a=0,o=t.length;a<o;a+=1){var i=t[a];i==="e"?s+=t[++a]==="-"?"c":"b":i==="."?s+="a":i==="-"?s+="e":s+=i}s+=s.length&1?"f":"ff";for(var l=[30],c=0,u=s.length;c<u;c+=2)l.push(parseInt(s.substr(c,2),16));return l};te.REAL=function(e){return B.REAL(e).length};B.NAME=B.CHARARRAY;te.NAME=te.CHARARRAY;B.STRING=B.CHARARRAY;te.STRING=te.CHARARRAY;xr.UTF8=function(e,t,r){for(var n=[],s=r,a=0;a<s;a++,t+=1)n[a]=e.getUint8(t);return String.fromCharCode.apply(null,n)};xr.UTF16=function(e,t,r){for(var n=[],s=r/2,a=0;a<s;a++,t+=2)n[a]=e.getUint16(t);return String.fromCharCode.apply(null,n)};B.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e.charCodeAt(r);t[t.length]=n>>8&255,t[t.length]=n&255}return t};te.UTF16=function(e){return e.length*2};var As={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};xr.MACSTRING=function(e,t,r,n){var s=As[n];if(s!==void 0){for(var a="",o=0;o<r;o++){var i=e.getUint8(t+o);i<=127?a+=String.fromCharCode(i):a+=s[i&127]}return a}};var sn=typeof WeakMap=="function"&&new WeakMap,an,nf=function(e){if(!an){an={};for(var t in As)an[t]=new String(t)}var r=an[e];if(r!==void 0){if(sn){var n=sn.get(r);if(n!==void 0)return n}var s=As[e];if(s!==void 0){for(var a={},o=0;o<s.length;o++)a[s.charCodeAt(o)]=o+128;return sn&&sn.set(r,a),a}}};B.MACSTRING=function(e,t){var r=nf(t);if(r!==void 0){for(var n=[],s=0;s<e.length;s++){var a=e.charCodeAt(s);if(a>=128&&(a=r[a],a===void 0))return;n[s]=a}return n}};te.MACSTRING=function(e,t){var r=B.MACSTRING(e,t);return r!==void 0?r.length:0};function Ms(e){return e>=-128&&e<=127}function sf(e,t,r){for(var n=0,s=e.length;t<s&&n<64&&e[t]===0;)++t,++n;return r.push(128|n-1),t}function af(e,t,r){for(var n=0,s=e.length,a=t;a<s&&n<64;){var o=e[a];if(!Ms(o)||o===0&&a+1<s&&e[a+1]===0)break;++a,++n}r.push(n-1);for(var i=t;i<a;++i)r.push(e[i]+256&255);return a}function of(e,t,r){for(var n=0,s=e.length,a=t;a<s&&n<64;){var o=e[a];if(o===0||Ms(o)&&a+1<s&&Ms(e[a+1]))break;++a,++n}r.push(64|n-1);for(var i=t;i<a;++i){var l=e[i];r.push(l+65536>>8&255,l+256&255)}return a}B.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var n=e[t];n===0?t=sf(e,t,r):n>=-128&&n<=127?t=af(e,t,r):t=of(e,t,r)}return r};B.INDEX=function(e){for(var t=1,r=[t],n=[],s=0;s<e.length;s+=1){var a=B.OBJECT(e[s]);Array.prototype.push.apply(n,a),t+=a.length,r.push(t)}if(n.length===0)return[0,0];for(var o=[],i=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,B.BYTE,B.USHORT,B.UINT24,B.ULONG][i],c=0;c<r.length;c+=1){var u=l(r[c]);Array.prototype.push.apply(o,u)}return Array.prototype.concat(B.Card16(e.length),B.OffSize(i),o,n)};te.INDEX=function(e){return B.INDEX(e).length};B.DICT=function(e){for(var t=[],r=Object.keys(e),n=r.length,s=0;s<n;s+=1){var a=parseInt(r[s],0),o=e[a];t=t.concat(B.OPERAND(o.value,o.type)),t=t.concat(B.OPERATOR(a))}return t};te.DICT=function(e){return B.DICT(e).length};B.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]};B.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var n=0;n<t.length;n+=1)Q.argument(e.length===t.length,"Not enough arguments given for type"+t),r=r.concat(B.OPERAND(e[n],t[n]));else if(t==="SID")r=r.concat(B.NUMBER(e));else if(t==="offset")r=r.concat(B.NUMBER32(e));else if(t==="number")r=r.concat(B.NUMBER(e));else if(t==="real")r=r.concat(B.REAL(e));else throw new Error("Unknown operand type "+t);return r};B.OP=B.BYTE;te.OP=te.BYTE;var on=typeof WeakMap=="function"&&new WeakMap;B.CHARSTRING=function(e){if(on){var t=on.get(e);if(t!==void 0)return t}for(var r=[],n=e.length,s=0;s<n;s+=1){var a=e[s];r=r.concat(B[a.type](a.value))}return on&&on.set(e,r),r};te.CHARSTRING=function(e){return B.CHARSTRING(e).length};B.OBJECT=function(e){var t=B[e.type];return Q.argument(t!==void 0,"No encoding function for type "+e.type),t(e.value)};te.OBJECT=function(e){var t=te[e.type];return Q.argument(t!==void 0,"No sizeOf function for type "+e.type),t(e.value)};B.TABLE=function(e){for(var t=[],r=e.fields.length,n=[],s=[],a=0;a<r;a+=1){var o=e.fields[a],i=B[o.type];Q.argument(i!==void 0,"No encoding function for field type "+o.type+" ("+o.name+")");var l=e[o.name];l===void 0&&(l=o.value);var c=i(l);o.type==="TABLE"?(s.push(t.length),t=t.concat([0,0]),n.push(c)):t=t.concat(c)}for(var u=0;u<n.length;u+=1){var h=s[u],f=t.length;Q.argument(f<65536,"Table "+e.tableName+" too big."),t[h]=f>>8,t[h+1]=f&255,t=t.concat(n[u])}return t};te.TABLE=function(e){for(var t=0,r=e.fields.length,n=0;n<r;n+=1){var s=e.fields[n],a=te[s.type];Q.argument(a!==void 0,"No sizeOf function for field type "+s.type+" ("+s.name+")");var o=e[s.name];o===void 0&&(o=s.value),t+=a(o),s.type==="TABLE"&&(t+=2)}return t};B.RECORD=B.TABLE;te.RECORD=te.TABLE;B.LITERAL=function(e){return e};te.LITERAL=function(e){return e.length};function Re(e,t,r){if(t.length&&(t[0].name!=="coverageFormat"||t[0].value===1))for(var n=0;n<t.length;n+=1){var s=t[n];this[s.name]=s.value}if(this.tableName=e,this.fields=t,r)for(var a=Object.keys(r),o=0;o<a.length;o+=1){var i=a[o],l=r[i];this[i]!==void 0&&(this[i]=l)}}Re.prototype.encode=function(){return B.TABLE(this)};Re.prototype.sizeOf=function(){return te.TABLE(this)};function Wr(e,t,r){r===void 0&&(r=t.length);var n=new Array(t.length+1);n[0]={name:e+"Count",type:"USHORT",value:r};for(var s=0;s<t.length;s++)n[s+1]={name:e+s,type:"USHORT",value:t[s]};return n}function Is(e,t,r){var n=t.length,s=new Array(n+1);s[0]={name:e+"Count",type:"USHORT",value:n};for(var a=0;a<n;a++)s[a+1]={name:e+a,type:"TABLE",value:r(t[a],a)};return s}function Zr(e,t,r){var n=t.length,s=[];s[0]={name:e+"Count",type:"USHORT",value:n};for(var a=0;a<n;a++)s=s.concat(r(t[a],a));return s}function kn(e){e.format===1?Re.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(Wr("glyph",e.glyphs))):e.format===2?Re.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:2}].concat(Zr("rangeRecord",e.ranges,function(t){return[{name:"startGlyphID",type:"USHORT",value:t.start},{name:"endGlyphID",type:"USHORT",value:t.end},{name:"startCoverageIndex",type:"USHORT",value:t.index}]}))):Q.assert(!1,"Coverage format must be 1 or 2.")}kn.prototype=Object.create(Re.prototype);kn.prototype.constructor=kn;function En(e){Re.call(this,"scriptListTable",Zr("scriptRecord",e,function(t,r){var n=t.script,s=n.defaultLangSys;return Q.assert(!!s,"Unable to write GSUB: script "+t.tag+" has no default language system."),[{name:"scriptTag"+r,type:"TAG",value:t.tag},{name:"script"+r,type:"TABLE",value:new Re("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new Re("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:s.reqFeatureIndex}].concat(Wr("featureIndex",s.featureIndexes)))}].concat(Zr("langSys",n.langSysRecords,function(a,o){var i=a.langSys;return[{name:"langSysTag"+o,type:"TAG",value:a.tag},{name:"langSys"+o,type:"TABLE",value:new Re("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:i.reqFeatureIndex}].concat(Wr("featureIndex",i.featureIndexes)))}]})))}]}))}En.prototype=Object.create(Re.prototype);En.prototype.constructor=En;function On(e){Re.call(this,"featureListTable",Zr("featureRecord",e,function(t,r){var n=t.feature;return[{name:"featureTag"+r,type:"TAG",value:t.tag},{name:"feature"+r,type:"TABLE",value:new Re("featureTable",[{name:"featureParams",type:"USHORT",value:n.featureParams}].concat(Wr("lookupListIndex",n.lookupListIndexes)))}]}))}On.prototype=Object.create(Re.prototype);On.prototype.constructor=On;function Un(e,t){Re.call(this,"lookupListTable",Is("lookup",e,function(r){var n=t[r.lookupType];return Q.assert(!!n,"Unable to write GSUB lookup type "+r.lookupType+" tables."),new Re("lookupTable",[{name:"lookupType",type:"USHORT",value:r.lookupType},{name:"lookupFlag",type:"USHORT",value:r.lookupFlag}].concat(Is("subtable",r.subtables,n)))}))}Un.prototype=Object.create(Re.prototype);Un.prototype.constructor=Un;var Z={Table:Re,Record:Re,Coverage:kn,ScriptList:En,FeatureList:On,LookupList:Un,ushortList:Wr,tableList:Is,recordList:Zr};function fo(e,t){return e.getUint8(t)}function Ln(e,t){return e.getUint16(t,!1)}function lf(e,t){return e.getInt16(t,!1)}function ha(e,t){return e.getUint32(t,!1)}function gl(e,t){var r=e.getInt16(t,!1),n=e.getUint16(t+2,!1);return r+n/65535}function uf(e,t){for(var r="",n=t;n<t+4;n+=1)r+=String.fromCharCode(e.getInt8(n));return r}function cf(e,t,r){for(var n=0,s=0;s<r;s+=1)n<<=8,n+=e.getUint8(t+s);return n}function ff(e,t,r){for(var n=[],s=t;s<r;s+=1)n.push(e.getUint8(s));return n}function hf(e){for(var t="",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t}var pf={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function w(e,t){this.data=e,this.offset=t,this.relativeOffset=0}w.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e};w.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e};w.prototype.parseCard8=w.prototype.parseByte;w.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e};w.prototype.parseCard16=w.prototype.parseUShort;w.prototype.parseSID=w.prototype.parseUShort;w.prototype.parseOffset16=w.prototype.parseUShort;w.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e};w.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e};w.prototype.parseULong=function(){var e=ha(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e};w.prototype.parseOffset32=w.prototype.parseULong;w.prototype.parseFixed=function(){var e=gl(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e};w.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,n="";this.relativeOffset+=e;for(var s=0;s<e;s++)n+=String.fromCharCode(t.getUint8(r+s));return n};w.prototype.parseTag=function(){return this.parseString(4)};w.prototype.parseLongDateTime=function(){var e=ha(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e};w.prototype.parseVersion=function(e){var t=Ln(this.data,this.offset+this.relativeOffset),r=Ln(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,e===void 0&&(e=4096),t+r/e/10};w.prototype.skip=function(e,t){t===void 0&&(t=1),this.relativeOffset+=pf[e]*t};w.prototype.parseULongList=function(e){e===void 0&&(e=this.parseULong());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,s=0;s<e;s++)t[s]=r.getUint32(n),n+=4;return this.relativeOffset+=e*4,t};w.prototype.parseOffset16List=w.prototype.parseUShortList=function(e){e===void 0&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,s=0;s<e;s++)t[s]=r.getUint16(n),n+=2;return this.relativeOffset+=e*2,t};w.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,s=0;s<e;s++)t[s]=r.getInt16(n),n+=2;return this.relativeOffset+=e*2,t};w.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,s=0;s<e;s++)t[s]=r.getUint8(n++);return this.relativeOffset+=e,t};w.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r};w.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r};w.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=Object.keys(t),s=0;s<e;s++){for(var a={},o=0;o<n.length;o++){var i=n[o],l=t[i];a[i]=l.call(this)}r[s]=a}return r};w.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=Object.keys(t),s=0;s<e;s++){for(var a={},o=0;o<n.length;o++){var i=n[o],l=t[i];a[i]=l.call(this)}r[s]=a}return r};w.prototype.parseStruct=function(e){if(typeof e=="function")return e.call(this);for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var s=t[n],a=e[s];r[s]=a.call(this)}return r};w.prototype.parseValueRecord=function(e){if(e===void 0&&(e=this.parseUShort()),e!==0){var t={};return e&1&&(t.xPlacement=this.parseShort()),e&2&&(t.yPlacement=this.parseShort()),e&4&&(t.xAdvance=this.parseShort()),e&8&&(t.yAdvance=this.parseShort()),e&16&&(t.xPlaDevice=void 0,this.parseShort()),e&32&&(t.yPlaDevice=void 0,this.parseShort()),e&64&&(t.xAdvDevice=void 0,this.parseShort()),e&128&&(t.yAdvDevice=void 0,this.parseShort()),t}};w.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),n=0;n<t;n++)r[n]=this.parseValueRecord(e);return r};w.prototype.parsePointer=function(e){var t=this.parseOffset16();if(t>0)return new w(this.data,this.offset+t).parseStruct(e)};w.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new w(this.data,this.offset+t).parseStruct(e)};w.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),r=t.length,n=this.relativeOffset,s=new Array(r),a=0;a<r;a++){var o=t[a];if(o===0){s[a]=void 0;continue}if(this.relativeOffset=o,e){for(var i=this.parseOffset16List(),l=new Array(i.length),c=0;c<i.length;c++)this.relativeOffset=o+i[c],l[c]=e.call(this);s[a]=l}else s[a]=this.parseUShortList()}return this.relativeOffset=n,s};w.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(t===1)return{format:1,glyphs:this.parseUShortList(r)};if(t===2){for(var n=new Array(r),s=0;s<r;s++)n[s]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:n}}throw new Error("0x"+e.toString(16)+": Coverage format must be 1 or 2.")};w.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(t===2)return{format:2,ranges:this.parseRecordList({start:w.uShort,end:w.uShort,classId:w.uShort})};throw new Error("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")};w.list=function(e,t){return function(){return this.parseList(e,t)}};w.list32=function(e,t){return function(){return this.parseList32(e,t)}};w.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}};w.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}};w.pointer=function(e){return function(){return this.parsePointer(e)}};w.pointer32=function(e){return function(){return this.parsePointer32(e)}};w.tag=w.prototype.parseTag;w.byte=w.prototype.parseByte;w.uShort=w.offset16=w.prototype.parseUShort;w.uShortList=w.prototype.parseUShortList;w.uLong=w.offset32=w.prototype.parseULong;w.uLongList=w.prototype.parseULongList;w.struct=w.prototype.parseStruct;w.coverage=w.prototype.parseCoverage;w.classDef=w.prototype.parseClassDef;var ho={reserved:w.uShort,reqFeatureIndex:w.uShort,featureIndexes:w.uShortList};w.prototype.parseScriptList=function(){return this.parsePointer(w.recordList({tag:w.tag,script:w.pointer({defaultLangSys:w.pointer(ho),langSysRecords:w.recordList({tag:w.tag,langSys:w.pointer(ho)})})}))||[]};w.prototype.parseFeatureList=function(){return this.parsePointer(w.recordList({tag:w.tag,feature:w.pointer({featureParams:w.offset16,lookupListIndexes:w.uShortList})}))||[]};w.prototype.parseLookupList=function(e){return this.parsePointer(w.list(w.pointer(function(){var t=this.parseUShort();Q.argument(1<=t&&t<=9,"GPOS/GSUB lookup type "+t+" unknown.");var r=this.parseUShort(),n=r&16;return{lookupType:t,lookupFlag:r,subtables:this.parseList(w.pointer(e[t])),markFilteringSet:n?this.parseUShort():void 0}})))||[]};w.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();Q.argument(e===1&&t<1,"GPOS/GSUB feature variations table unknown.");var r=this.parseRecordList32({conditionSetOffset:w.offset32,featureTableSubstitutionOffset:w.offset32});return r})||[]};var j={getByte:fo,getCard8:fo,getUShort:Ln,getCard16:Ln,getShort:lf,getULong:ha,getFixed:gl,getTag:uf,getOffset:cf,getBytes:ff,bytesToString:hf,Parser:w};function df(e,t){t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong();var r;e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var n=0;n<r;n+=1)for(var s=t.parseULong(),a=t.parseULong(),o=t.parseULong(),i=s;i<=a;i+=1)e.glyphIndexMap[i]=o,o++}function vf(e,t,r,n,s){e.length=t.parseUShort(),e.language=t.parseUShort();var a;e.segCount=a=t.parseUShort()>>1,t.skip("uShort",3),e.glyphIndexMap={};for(var o=new j.Parser(r,n+s+14),i=new j.Parser(r,n+s+16+a*2),l=new j.Parser(r,n+s+16+a*4),c=new j.Parser(r,n+s+16+a*6),u=n+s+16+a*8,h=0;h<a-1;h+=1)for(var f=void 0,p=o.parseUShort(),m=i.parseUShort(),x=l.parseShort(),g=c.parseUShort(),y=m;y<=p;y+=1)g!==0?(u=c.offset+c.relativeOffset-2,u+=g,u+=(y-m)*2,f=j.getUShort(r,u),f!==0&&(f=f+x&65535)):f=y+x&65535,e.glyphIndexMap[y]=f}function gf(e,t){var r={};r.version=j.getUShort(e,t),Q.argument(r.version===0,"cmap table version should be 0."),r.numTables=j.getUShort(e,t+2);for(var n=-1,s=r.numTables-1;s>=0;s-=1){var a=j.getUShort(e,t+4+s*8),o=j.getUShort(e,t+4+s*8+2);if(a===3&&(o===0||o===1||o===10)||a===0&&(o===0||o===1||o===2||o===3||o===4)){n=j.getULong(e,t+4+s*8+4);break}}if(n===-1)throw new Error("No valid cmap sub-tables found.");var i=new j.Parser(e,t+n);if(r.format=i.parseUShort(),r.format===12)df(r,i);else if(r.format===4)vf(r,i,e,t,n);else throw new Error("Only format 4 and 12 cmap tables are supported (found format "+r.format+").");return r}function mf(e,t,r){e.segments.push({end:t,start:t,delta:-(t-r),offset:0,glyphIndex:r})}function xf(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}function yf(e){var t=!0,r;for(r=e.length-1;r>0;r-=1){var n=e.get(r);if(n.unicode>65535){console.log("Adding CMAP format 12 (needed!)"),t=!1;break}}var s=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:t?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:t?12:20}];t||(s=s.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),s=s.concat([{name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);var a=new Z.Table("cmap",s);for(a.segments=[],r=0;r<e.length;r+=1){for(var o=e.get(r),i=0;i<o.unicodes.length;i+=1)mf(a,o.unicodes[i],r);a.segments=a.segments.sort(function(b,S){return b.start-S.start})}xf(a);var l=a.segments.length,c=0,u=[],h=[],f=[],p=[],m=[],x=[];for(r=0;r<l;r+=1){var g=a.segments[r];g.end<=65535&&g.start<=65535?(u=u.concat({name:"end_"+r,type:"USHORT",value:g.end}),h=h.concat({name:"start_"+r,type:"USHORT",value:g.start}),f=f.concat({name:"idDelta_"+r,type:"SHORT",value:g.delta}),p=p.concat({name:"idRangeOffset_"+r,type:"USHORT",value:g.offset}),g.glyphId!==void 0&&(m=m.concat({name:"glyph_"+r,type:"USHORT",value:g.glyphId}))):c+=1,!t&&g.glyphIndex!==void 0&&(x=x.concat({name:"cmap12Start_"+r,type:"ULONG",value:g.start}),x=x.concat({name:"cmap12End_"+r,type:"ULONG",value:g.end}),x=x.concat({name:"cmap12Glyph_"+r,type:"ULONG",value:g.glyphIndex}))}if(a.segCountX2=(l-c)*2,a.searchRange=Math.pow(2,Math.floor(Math.log(l-c)/Math.log(2)))*2,a.entrySelector=Math.log(a.searchRange/2)/Math.log(2),a.rangeShift=a.segCountX2-a.searchRange,a.fields=a.fields.concat(u),a.fields.push({name:"reservedPad",type:"USHORT",value:0}),a.fields=a.fields.concat(h),a.fields=a.fields.concat(f),a.fields=a.fields.concat(p),a.fields=a.fields.concat(m),a.cmap4Length=14+u.length*2+2+h.length*2+f.length*2+p.length*2+m.length*2,!t){var y=16+x.length*4;a.cmap12Offset=20+a.cmap4Length,a.fields=a.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:y},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:x.length/3}]),a.fields=a.fields.concat(x)}return a}var ml={parse:gf,make:yf},vn=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],bf=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],Sf=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],Qt=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function xl(e){this.font=e}xl.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r){for(var n=0;n<r.length;n+=1)for(var s=r.get(n),a=0;a<s.unicodes.length;a+=1)if(s.unicodes[a]===t)return n}return null};function yl(e){this.cmap=e}yl.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0};function _n(e,t){this.encoding=e,this.charset=t}_n.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)};function pa(e){switch(e.version){case 1:this.names=Qt.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<Qt.length?this.names[t]=Qt[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-Qt.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=Qt[r+e.glyphNameIndex[r]];break;case 3:this.names=[];break;default:this.names=[];break}}pa.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)};pa.prototype.glyphIndexToName=function(e){return this.names[e]};function wf(e){for(var t,r=e.tables.cmap.glyphIndexMap,n=Object.keys(r),s=0;s<n.length;s+=1){var a=n[s],o=r[a];t=e.glyphs.get(o),t.addUnicode(parseInt(a))}for(var i=0;i<e.glyphs.length;i+=1)t=e.glyphs.get(i),e.cffEncoding?e.isCIDFont?t.name="gid"+i:t.name=e.cffEncoding.charset[i]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(i))}function Tf(e){e._IndexToUnicodeMap={};for(var t=e.tables.cmap.glyphIndexMap,r=Object.keys(t),n=0;n<r.length;n+=1){var s=r[n],a=t[s];e._IndexToUnicodeMap[a]===void 0?e._IndexToUnicodeMap[a]={unicodes:[parseInt(s)]}:e._IndexToUnicodeMap[a].unicodes.push(parseInt(s))}}function Ff(e,t){t.lowMemory?Tf(e):wf(e)}function Cf(e,t,r,n,s){e.beginPath(),e.moveTo(t,r),e.lineTo(n,s),e.stroke()}var Kt={line:Cf};function kf(e,t){var r=t||new _e;return{configurable:!0,get:function(){return typeof r=="function"&&(r=r()),r},set:function(n){r=n}}}function Je(e){this.bindConstructorValues(e)}Je.prototype.bindConstructorValues=function(e){this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||e.unicode!==void 0?[e.unicode]:[],"xMin"in e&&(this.xMin=e.xMin),"yMin"in e&&(this.yMin=e.yMin),"xMax"in e&&(this.xMax=e.xMax),"yMax"in e&&(this.yMax=e.yMax),"advanceWidth"in e&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",kf(this,e.path))};Je.prototype.addUnicode=function(e){this.unicodes.length===0&&(this.unicode=e),this.unicodes.push(e)};Je.prototype.getBoundingBox=function(){return this.path.getBoundingBox()};Je.prototype.getPath=function(e,t,r,n,s){e=e!==void 0?e:0,t=t!==void 0?t:0,r=r!==void 0?r:72;var a,o;n||(n={});var i=n.xScale,l=n.yScale;if(n.hinting&&s&&s.hinting&&(o=this.path&&s.hinting.exec(this,r)),o)a=s.hinting.getCommands(o),e=Math.round(e),t=Math.round(t),i=l=1;else{a=this.path.commands;var c=1/(this.path.unitsPerEm||1e3)*r;i===void 0&&(i=c),l===void 0&&(l=c)}for(var u=new _e,h=0;h<a.length;h+=1){var f=a[h];f.type==="M"?u.moveTo(e+f.x*i,t+-f.y*l):f.type==="L"?u.lineTo(e+f.x*i,t+-f.y*l):f.type==="Q"?u.quadraticCurveTo(e+f.x1*i,t+-f.y1*l,e+f.x*i,t+-f.y*l):f.type==="C"?u.curveTo(e+f.x1*i,t+-f.y1*l,e+f.x2*i,t+-f.y2*l,e+f.x*i,t+-f.y*l):f.type==="Z"&&u.closePath()}return u};Je.prototype.getContours=function(){if(this.points===void 0)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var n=this.points[r];t.push(n),n.lastPointOfContour&&(e.push(t),t=[])}return Q.argument(t.length===0,"There are still points left in the current contour."),e};Je.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],n=0;n<e.length;n+=1){var s=e[n];s.type!=="Z"&&(t.push(s.x),r.push(s.y)),(s.type==="Q"||s.type==="C")&&(t.push(s.x1),r.push(s.y1)),s.type==="C"&&(t.push(s.x2),r.push(s.y2))}var a={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(a.xMin)||(a.xMin=0),isFinite(a.xMax)||(a.xMax=this.advanceWidth),isFinite(a.yMin)||(a.yMin=0),isFinite(a.yMax)||(a.yMax=0),a.rightSideBearing=this.advanceWidth-a.leftSideBearing-(a.xMax-a.xMin),a};Je.prototype.draw=function(e,t,r,n,s){this.getPath(t,r,n,s).draw(e)};Je.prototype.drawPoints=function(e,t,r,n){function s(h,f,p,m){e.beginPath();for(var x=0;x<h.length;x+=1)e.moveTo(f+h[x].x*m,p+h[x].y*m),e.arc(f+h[x].x*m,p+h[x].y*m,2,0,Math.PI*2,!1);e.closePath(),e.fill()}t=t!==void 0?t:0,r=r!==void 0?r:0,n=n!==void 0?n:24;for(var a=1/this.path.unitsPerEm*n,o=[],i=[],l=this.path,c=0;c<l.commands.length;c+=1){var u=l.commands[c];u.x!==void 0&&o.push({x:u.x,y:-u.y}),u.x1!==void 0&&i.push({x:u.x1,y:-u.y1}),u.x2!==void 0&&i.push({x:u.x2,y:-u.y2})}e.fillStyle="blue",s(o,t,r,a),e.fillStyle="red",s(i,t,r,a)};Je.prototype.drawMetrics=function(e,t,r,n){var s;t=t!==void 0?t:0,r=r!==void 0?r:0,n=n!==void 0?n:24,s=1/this.path.unitsPerEm*n,e.lineWidth=1,e.strokeStyle="black",Kt.line(e,t,-1e4,t,1e4),Kt.line(e,-1e4,r,1e4,r);var a=this.xMin||0,o=this.yMin||0,i=this.xMax||0,l=this.yMax||0,c=this.advanceWidth||0;e.strokeStyle="blue",Kt.line(e,t+a*s,-1e4,t+a*s,1e4),Kt.line(e,t+i*s,-1e4,t+i*s,1e4),Kt.line(e,-1e4,r+-o*s,1e4,r+-o*s),Kt.line(e,-1e4,r+-l*s,1e4,r+-l*s),e.strokeStyle="green",Kt.line(e,t+c*s,-1e4,t+c*s,1e4)};function ln(e,t,r){Object.defineProperty(e,t,{get:function(){return e.path,e[r]},set:function(n){e[r]=n},enumerable:!0,configurable:!0})}function da(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];n.path.unitsPerEm=e.unitsPerEm,this.glyphs[r]=n}this.length=t&&t.length||0}da.prototype.get=function(e){if(this.glyphs[e]===void 0){this.font._push(e),typeof this.glyphs[e]=="function"&&(this.glyphs[e]=this.glyphs[e]());var t=this.glyphs[e],r=this.font._IndexToUnicodeMap[e];if(r)for(var n=0;n<r.unicodes.length;n++)t.addUnicode(r.unicodes[n]);this.font.cffEncoding?this.font.isCIDFont?t.name="gid"+e:t.name=this.font.cffEncoding.charset[e]:this.font.glyphNames.names&&(t.name=this.font.glyphNames.glyphIndexToName(e)),this.glyphs[e].advanceWidth=this.font._hmtxTableData[e].advanceWidth,this.glyphs[e].leftSideBearing=this.font._hmtxTableData[e].leftSideBearing}else typeof this.glyphs[e]=="function"&&(this.glyphs[e]=this.glyphs[e]());return this.glyphs[e]};da.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};function Ef(e,t){return new Je({index:t,font:e})}function Of(e,t,r,n,s,a){return function(){var o=new Je({index:t,font:e});return o.path=function(){r(o,n,s);var i=a(e.glyphs,o);return i.unitsPerEm=e.unitsPerEm,i},ln(o,"xMin","_xMin"),ln(o,"xMax","_xMax"),ln(o,"yMin","_yMin"),ln(o,"yMax","_yMax"),o}}function Uf(e,t,r,n){return function(){var s=new Je({index:t,font:e});return s.path=function(){var a=r(e,s,n);return a.unitsPerEm=e.unitsPerEm,a},s}}var xt={GlyphSet:da,glyphLoader:Ef,ttfGlyphLoader:Of,cffGlyphLoader:Uf};function bl(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!bl(e[r],t[r]))return!1;return!0}else return!1}function Ps(e){var t;return e.length<1240?t=107:e.length<33900?t=1131:t=32768,t}function Dt(e,t,r){var n=[],s=[],a=j.getCard16(e,t),o,i;if(a!==0){var l=j.getByte(e,t+2);o=t+(a+1)*l+2;for(var c=t+3,u=0;u<a+1;u+=1)n.push(j.getOffset(e,c,l)),c+=l;i=o+n[a]}else i=t+2;for(var h=0;h<n.length-1;h+=1){var f=j.getBytes(e,o+n[h],o+n[h+1]);r&&(f=r(f)),s.push(f)}return{objects:s,startOffset:t,endOffset:i}}function Lf(e,t){var r=[],n=j.getCard16(e,t),s,a;if(n!==0){var o=j.getByte(e,t+2);s=t+(n+1)*o+2;for(var i=t+3,l=0;l<n+1;l+=1)r.push(j.getOffset(e,i,o)),i+=o;a=s+r[n]}else a=t+2;return{offsets:r,startOffset:t,endOffset:a}}function _f(e,t,r,n,s){var a=j.getCard16(r,n),o=0;if(a!==0){var i=j.getByte(r,n+2);o=n+(a+1)*i+2}var l=j.getBytes(r,o+t[e],o+t[e+1]);return l}function Rf(e){for(var t="",r=15,n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var s=e.parseByte(),a=s>>4,o=s&15;if(a===r||(t+=n[a],o===r))break;t+=n[o]}return parseFloat(t)}function Af(e,t){var r,n,s,a;if(t===28)return r=e.parseByte(),n=e.parseByte(),r<<8|n;if(t===29)return r=e.parseByte(),n=e.parseByte(),s=e.parseByte(),a=e.parseByte(),r<<24|n<<16|s<<8|a;if(t===30)return Rf(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return r=e.parseByte(),(t-247)*256+r+108;if(t>=251&&t<=254)return r=e.parseByte(),-(t-251)*256-r-108;throw new Error("Invalid b0 "+t)}function Mf(e){for(var t={},r=0;r<e.length;r+=1){var n=e[r][0],s=e[r][1],a=void 0;if(s.length===1?a=s[0]:a=s,t.hasOwnProperty(n)&&!isNaN(t[n]))throw new Error("Object "+t+" already has key "+n);t[n]=a}return t}function Sl(e,t,r){t=t!==void 0?t:0;var n=new j.Parser(e,t),s=[],a=[];for(r=r!==void 0?r:e.length;n.relativeOffset<r;){var o=n.parseByte();o<=21?(o===12&&(o=1200+n.parseByte()),s.push([o,a]),a=[]):a.push(Af(n,o))}return Mf(s)}function Pr(e,t){return t<=390?t=vn[t]:t=e[t-391],t}function wl(e,t,r){for(var n={},s,a=0;a<t.length;a+=1){var o=t[a];if(Array.isArray(o.type)){var i=[];i.length=o.type.length;for(var l=0;l<o.type.length;l++)s=e[o.op]!==void 0?e[o.op][l]:void 0,s===void 0&&(s=o.value!==void 0&&o.value[l]!==void 0?o.value[l]:null),o.type[l]==="SID"&&(s=Pr(r,s)),i[l]=s;n[o.name]=i}else s=e[o.op],s===void 0&&(s=o.value!==void 0?o.value:null),o.type==="SID"&&(s=Pr(r,s)),n[o.name]=s}return n}function If(e,t){var r={};return r.formatMajor=j.getCard8(e,t),r.formatMinor=j.getCard8(e,t+1),r.size=j.getCard8(e,t+2),r.offsetSize=j.getCard8(e,t+3),r.startOffset=t,r.endOffset=t+4,r}var Tl=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],Fl=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function Pf(e,t){var r=Sl(e,0,e.byteLength);return wl(r,Tl,t)}function Cl(e,t,r,n){var s=Sl(e,t,r);return wl(s,Fl,n)}function po(e,t,r,n){for(var s=[],a=0;a<r.length;a+=1){var o=new DataView(new Uint8Array(r[a]).buffer),i=Pf(o,n);i._subrs=[],i._subrsBias=0,i._defaultWidthX=0,i._nominalWidthX=0;var l=i.private[0],c=i.private[1];if(l!==0&&c!==0){var u=Cl(e,c+t,l,n);if(i._defaultWidthX=u.defaultWidthX,i._nominalWidthX=u.nominalWidthX,u.subrs!==0){var h=c+u.subrs,f=Dt(e,h+t);i._subrs=f.objects,i._subrsBias=Ps(i._subrs)}i._privateDict=u}s.push(i)}return s}function Df(e,t,r,n){var s,a,o=new j.Parser(e,t);r-=1;var i=[".notdef"],l=o.parseCard8();if(l===0)for(var c=0;c<r;c+=1)s=o.parseSID(),i.push(Pr(n,s));else if(l===1)for(;i.length<=r;){s=o.parseSID(),a=o.parseCard8();for(var u=0;u<=a;u+=1)i.push(Pr(n,s)),s+=1}else if(l===2)for(;i.length<=r;){s=o.parseSID(),a=o.parseCard16();for(var h=0;h<=a;h+=1)i.push(Pr(n,s)),s+=1}else throw new Error("Unknown charset format "+l);return i}function Bf(e,t,r){var n,s={},a=new j.Parser(e,t),o=a.parseCard8();if(o===0)for(var i=a.parseCard8(),l=0;l<i;l+=1)n=a.parseCard8(),s[n]=l;else if(o===1){var c=a.parseCard8();n=1;for(var u=0;u<c;u+=1)for(var h=a.parseCard8(),f=a.parseCard8(),p=h;p<=h+f;p+=1)s[p]=n,n+=1}else throw new Error("Unknown encoding format "+o);return new _n(s,r)}function vo(e,t,r){var n,s,a,o,i=new _e,l=[],c=0,u=!1,h=!1,f=0,p=0,m,x,g,y;if(e.isCIDFont){var b=e.tables.cff.topDict._fdSelect[t.index],S=e.tables.cff.topDict._fdArray[b];m=S._subrs,x=S._subrsBias,g=S._defaultWidthX,y=S._nominalWidthX}else m=e.tables.cff.topDict._subrs,x=e.tables.cff.topDict._subrsBias,g=e.tables.cff.topDict._defaultWidthX,y=e.tables.cff.topDict._nominalWidthX;var F=g;function C(k,L){h&&i.closePath(),i.moveTo(k,L),h=!0}function q(){var k;k=l.length%2!==0,k&&!u&&(F=l.shift()+y),c+=l.length>>1,l.length=0,u=!0}function D(k){for(var L,V,N,X,se,oe,R,G,A,z,ee,fe,ue=0;ue<k.length;){var de=k[ue];switch(ue+=1,de){case 1:q();break;case 3:q();break;case 4:l.length>1&&!u&&(F=l.shift()+y,u=!0),p+=l.pop(),C(f,p);break;case 5:for(;l.length>0;)f+=l.shift(),p+=l.shift(),i.lineTo(f,p);break;case 6:for(;l.length>0&&(f+=l.shift(),i.lineTo(f,p),l.length!==0);)p+=l.shift(),i.lineTo(f,p);break;case 7:for(;l.length>0&&(p+=l.shift(),i.lineTo(f,p),l.length!==0);)f+=l.shift(),i.lineTo(f,p);break;case 8:for(;l.length>0;)n=f+l.shift(),s=p+l.shift(),a=n+l.shift(),o=s+l.shift(),f=a+l.shift(),p=o+l.shift(),i.curveTo(n,s,a,o,f,p);break;case 10:se=l.pop()+x,oe=m[se],oe&&D(oe);break;case 11:return;case 12:switch(de=k[ue],ue+=1,de){case 35:n=f+l.shift(),s=p+l.shift(),a=n+l.shift(),o=s+l.shift(),R=a+l.shift(),G=o+l.shift(),A=R+l.shift(),z=G+l.shift(),ee=A+l.shift(),fe=z+l.shift(),f=ee+l.shift(),p=fe+l.shift(),l.shift(),i.curveTo(n,s,a,o,R,G),i.curveTo(A,z,ee,fe,f,p);break;case 34:n=f+l.shift(),s=p,a=n+l.shift(),o=s+l.shift(),R=a+l.shift(),G=o,A=R+l.shift(),z=o,ee=A+l.shift(),fe=p,f=ee+l.shift(),i.curveTo(n,s,a,o,R,G),i.curveTo(A,z,ee,fe,f,p);break;case 36:n=f+l.shift(),s=p+l.shift(),a=n+l.shift(),o=s+l.shift(),R=a+l.shift(),G=o,A=R+l.shift(),z=o,ee=A+l.shift(),fe=z+l.shift(),f=ee+l.shift(),i.curveTo(n,s,a,o,R,G),i.curveTo(A,z,ee,fe,f,p);break;case 37:n=f+l.shift(),s=p+l.shift(),a=n+l.shift(),o=s+l.shift(),R=a+l.shift(),G=o+l.shift(),A=R+l.shift(),z=G+l.shift(),ee=A+l.shift(),fe=z+l.shift(),Math.abs(ee-f)>Math.abs(fe-p)?f=ee+l.shift():p=fe+l.shift(),i.curveTo(n,s,a,o,R,G),i.curveTo(A,z,ee,fe,f,p);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+de),l.length=0}break;case 14:l.length>0&&!u&&(F=l.shift()+y,u=!0),h&&(i.closePath(),h=!1);break;case 18:q();break;case 19:case 20:q(),ue+=c+7>>3;break;case 21:l.length>2&&!u&&(F=l.shift()+y,u=!0),p+=l.pop(),f+=l.pop(),C(f,p);break;case 22:l.length>1&&!u&&(F=l.shift()+y,u=!0),f+=l.pop(),C(f,p);break;case 23:q();break;case 24:for(;l.length>2;)n=f+l.shift(),s=p+l.shift(),a=n+l.shift(),o=s+l.shift(),f=a+l.shift(),p=o+l.shift(),i.curveTo(n,s,a,o,f,p);f+=l.shift(),p+=l.shift(),i.lineTo(f,p);break;case 25:for(;l.length>6;)f+=l.shift(),p+=l.shift(),i.lineTo(f,p);n=f+l.shift(),s=p+l.shift(),a=n+l.shift(),o=s+l.shift(),f=a+l.shift(),p=o+l.shift(),i.curveTo(n,s,a,o,f,p);break;case 26:for(l.length%2&&(f+=l.shift());l.length>0;)n=f,s=p+l.shift(),a=n+l.shift(),o=s+l.shift(),f=a,p=o+l.shift(),i.curveTo(n,s,a,o,f,p);break;case 27:for(l.length%2&&(p+=l.shift());l.length>0;)n=f+l.shift(),s=p,a=n+l.shift(),o=s+l.shift(),f=a+l.shift(),p=o,i.curveTo(n,s,a,o,f,p);break;case 28:L=k[ue],V=k[ue+1],l.push((L<<24|V<<16)>>16),ue+=2;break;case 29:se=l.pop()+e.gsubrsBias,oe=e.gsubrs[se],oe&&D(oe);break;case 30:for(;l.length>0&&(n=f,s=p+l.shift(),a=n+l.shift(),o=s+l.shift(),f=a+l.shift(),p=o+(l.length===1?l.shift():0),i.curveTo(n,s,a,o,f,p),l.length!==0);)n=f+l.shift(),s=p,a=n+l.shift(),o=s+l.shift(),p=o+l.shift(),f=a+(l.length===1?l.shift():0),i.curveTo(n,s,a,o,f,p);break;case 31:for(;l.length>0&&(n=f+l.shift(),s=p,a=n+l.shift(),o=s+l.shift(),p=o+l.shift(),f=a+(l.length===1?l.shift():0),i.curveTo(n,s,a,o,f,p),l.length!==0);)n=f,s=p+l.shift(),a=n+l.shift(),o=s+l.shift(),f=a+l.shift(),p=o+(l.length===1?l.shift():0),i.curveTo(n,s,a,o,f,p);break;default:de<32?console.log("Glyph "+t.index+": unknown operator "+de):de<247?l.push(de-139):de<251?(L=k[ue],ue+=1,l.push((de-247)*256+L+108)):de<255?(L=k[ue],ue+=1,l.push(-(de-251)*256-L-108)):(L=k[ue],V=k[ue+1],N=k[ue+2],X=k[ue+3],ue+=4,l.push((L<<24|V<<16|N<<8|X)/65536))}}}return D(r),t.advanceWidth=F,i}function Nf(e,t,r,n){var s=[],a,o=new j.Parser(e,t),i=o.parseCard8();if(i===0)for(var l=0;l<r;l++){if(a=o.parseCard8(),a>=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");s.push(a)}else if(i===3){var c=o.parseCard16(),u=o.parseCard16();if(u!==0)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+u);for(var h,f=0;f<c;f++){if(a=o.parseCard8(),h=o.parseCard16(),a>=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");if(h>r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+h);for(;u<h;u++)s.push(a);u=h}if(h!==r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+h)}else throw new Error("CFF Table CID Font FDSelect table has unsupported format "+i);return s}function Gf(e,t,r,n){r.tables.cff={};var s=If(e,t),a=Dt(e,s.endOffset,j.bytesToString),o=Dt(e,a.endOffset),i=Dt(e,o.endOffset,j.bytesToString),l=Dt(e,i.endOffset);r.gsubrs=l.objects,r.gsubrsBias=Ps(r.gsubrs);var c=po(e,t,o.objects,i.objects);if(c.length!==1)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+c.length);var u=c[0];if(r.tables.cff.topDict=u,u._privateDict&&(r.defaultWidthX=u._privateDict.defaultWidthX,r.nominalWidthX=u._privateDict.nominalWidthX),u.ros[0]!==void 0&&u.ros[1]!==void 0&&(r.isCIDFont=!0),r.isCIDFont){var h=u.fdArray,f=u.fdSelect;if(h===0||f===0)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");h+=t;var p=Dt(e,h),m=po(e,t,p.objects,i.objects);u._fdArray=m,f+=t,u._fdSelect=Nf(e,f,r.numGlyphs,m.length)}var x=t+u.private[1],g=Cl(e,x,u.private[0],i.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,g.subrs!==0){var y=x+g.subrs,b=Dt(e,y);r.subrs=b.objects,r.subrsBias=Ps(r.subrs)}else r.subrs=[],r.subrsBias=0;var S;n.lowMemory?(S=Lf(e,t+u.charStrings),r.nGlyphs=S.offsets.length):(S=Dt(e,t+u.charStrings),r.nGlyphs=S.objects.length);var F=Df(e,t+u.charset,r.nGlyphs,i.objects);if(u.encoding===0?r.cffEncoding=new _n(bf,F):u.encoding===1?r.cffEncoding=new _n(Sf,F):r.cffEncoding=Bf(e,t+u.encoding,F),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xt.GlyphSet(r),n.lowMemory)r._push=function(D){var k=_f(D,S.offsets,e,t+u.charStrings);r.glyphs.push(D,xt.cffGlyphLoader(r,D,vo,k))};else for(var C=0;C<r.nGlyphs;C+=1){var q=S.objects[C];r.glyphs.push(C,xt.cffGlyphLoader(r,C,vo,q))}}function kl(e,t){var r,n=vn.indexOf(e);return n>=0&&(r=n),n=t.indexOf(e),n>=0?r=n+vn.length:(r=vn.length+t.length,t.push(e)),r}function Hf(){return new Z.Record("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}])}function Vf(e){var t=new Z.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:"name_"+r,type:"NAME",value:e[r]});return t}function El(e,t,r){for(var n={},s=0;s<e.length;s+=1){var a=e[s],o=t[a.name];o!==void 0&&!bl(o,a.value)&&(a.type==="SID"&&(o=kl(o,r)),n[a.op]={name:a.name,type:a.type,value:o})}return n}function go(e,t){var r=new Z.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return r.dict=El(Tl,e,t),r}function mo(e){var t=new Z.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function zf(e){var t=new Z.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:"string_"+r,type:"STRING",value:e[r]});return t}function Wf(){return new Z.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}])}function Zf(e,t){for(var r=new Z.Record("Charsets",[{name:"format",type:"Card8",value:0}]),n=0;n<e.length;n+=1){var s=e[n],a=kl(s,t);r.fields.push({name:"glyph_"+n,type:"SID",value:a})}return r}function $f(e){var t=[],r=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var n=0,s=0,a=0;a<r.commands.length;a+=1){var o=void 0,i=void 0,l=r.commands[a];if(l.type==="Q"){var c=.3333333333333333,u=2/3;l={type:"C",x:l.x,y:l.y,x1:Math.round(c*n+u*l.x1),y1:Math.round(c*s+u*l.y1),x2:Math.round(c*l.x+u*l.x1),y2:Math.round(c*l.y+u*l.y1)}}if(l.type==="M")o=Math.round(l.x-n),i=Math.round(l.y-s),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:i}),t.push({name:"rmoveto",type:"OP",value:21}),n=Math.round(l.x),s=Math.round(l.y);else if(l.type==="L")o=Math.round(l.x-n),i=Math.round(l.y-s),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:i}),t.push({name:"rlineto",type:"OP",value:5}),n=Math.round(l.x),s=Math.round(l.y);else if(l.type==="C"){var h=Math.round(l.x1-n),f=Math.round(l.y1-s),p=Math.round(l.x2-l.x1),m=Math.round(l.y2-l.y1);o=Math.round(l.x-l.x2),i=Math.round(l.y-l.y2),t.push({name:"dx1",type:"NUMBER",value:h}),t.push({name:"dy1",type:"NUMBER",value:f}),t.push({name:"dx2",type:"NUMBER",value:p}),t.push({name:"dy2",type:"NUMBER",value:m}),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:i}),t.push({name:"rrcurveto",type:"OP",value:8}),n=Math.round(l.x),s=Math.round(l.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}function jf(e){for(var t=new Z.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),r=0;r<e.length;r+=1){var n=e.get(r),s=$f(n);t.charStrings.push({name:n.name,type:"CHARSTRING",value:s})}return t}function qf(e,t){var r=new Z.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}]);return r.dict=El(Fl,e,t),r}function Xf(e,t){for(var r=new Z.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSubrIndex",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),n=1/t.unitsPerEm,s={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a={},o=[],i,l=1;l<e.length;l+=1)i=e.get(l),o.push(i.name);var c=[];r.header=Hf(),r.nameIndex=Vf([t.postScriptName]);var u=go(s,c);r.topDictIndex=mo(u),r.globalSubrIndex=Wf(),r.charsets=Zf(o,c),r.charStringsIndex=jf(e),r.privateDict=qf(a,c),r.stringIndex=zf(c);var h=r.header.sizeOf()+r.nameIndex.sizeOf()+r.topDictIndex.sizeOf()+r.stringIndex.sizeOf()+r.globalSubrIndex.sizeOf();return s.charset=h,s.encoding=0,s.charStrings=s.charset+r.charsets.sizeOf(),s.private[1]=s.charStrings+r.charStringsIndex.sizeOf(),u=go(s,c),r.topDictIndex=mo(u),r}var Ol={parse:Gf,make:Xf};function Yf(e,t){var r={},n=new j.Parser(e,t);return r.version=n.parseVersion(),r.fontRevision=Math.round(n.parseFixed()*1e3)/1e3,r.checkSumAdjustment=n.parseULong(),r.magicNumber=n.parseULong(),Q.argument(r.magicNumber===1594834165,"Font header has wrong magic number."),r.flags=n.parseUShort(),r.unitsPerEm=n.parseUShort(),r.created=n.parseLongDateTime(),r.modified=n.parseLongDateTime(),r.xMin=n.parseShort(),r.yMin=n.parseShort(),r.xMax=n.parseShort(),r.yMax=n.parseShort(),r.macStyle=n.parseUShort(),r.lowestRecPPEM=n.parseUShort(),r.fontDirectionHint=n.parseShort(),r.indexToLocFormat=n.parseShort(),r.glyphDataFormat=n.parseShort(),r}function Kf(e){var t=Math.round(new Date().getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new Z.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:r},{name:"modified",type:"LONGDATETIME",value:t},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)}var Ul={parse:Yf,make:Kf};function Jf(e,t){var r={},n=new j.Parser(e,t);return r.version=n.parseVersion(),r.ascender=n.parseShort(),r.descender=n.parseShort(),r.lineGap=n.parseShort(),r.advanceWidthMax=n.parseUShort(),r.minLeftSideBearing=n.parseShort(),r.minRightSideBearing=n.parseShort(),r.xMaxExtent=n.parseShort(),r.caretSlopeRise=n.parseShort(),r.caretSlopeRun=n.parseShort(),r.caretOffset=n.parseShort(),n.relativeOffset+=8,r.metricDataFormat=n.parseShort(),r.numberOfHMetrics=n.parseUShort(),r}function Qf(e){return new Z.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)}var Ll={parse:Jf,make:Qf};function eh(e,t,r,n,s){for(var a,o,i=new j.Parser(e,t),l=0;l<n;l+=1){l<r&&(a=i.parseUShort(),o=i.parseShort());var c=s.get(l);c.advanceWidth=a,c.leftSideBearing=o}}function th(e,t,r,n,s){e._hmtxTableData={};for(var a,o,i=new j.Parser(t,r),l=0;l<s;l+=1)l<n&&(a=i.parseUShort(),o=i.parseShort()),e._hmtxTableData[l]={advanceWidth:a,leftSideBearing:o}}function rh(e,t,r,n,s,a,o){o.lowMemory?th(e,t,r,n,s):eh(t,r,n,s,a)}function nh(e){for(var t=new Z.Table("hmtx",[]),r=0;r<e.length;r+=1){var n=e.get(r),s=n.advanceWidth||0,a=n.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+r,type:"USHORT",value:s}),t.fields.push({name:"leftSideBearing_"+r,type:"SHORT",value:a})}return t}var _l={parse:rh,make:nh};function sh(e){for(var t=new Z.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),r="",n=12+e.length*4,s=0;s<e.length;++s){var a=r.indexOf(e[s]);a<0&&(a=r.length,r+=e[s]),t.fields.push({name:"offset "+s,type:"USHORT",value:n+a}),t.fields.push({name:"length "+s,type:"USHORT",value:e[s].length})}return t.fields.push({name:"stringPool",type:"CHARARRAY",value:r}),t}function ah(e,t){var r=new j.Parser(e,t),n=r.parseULong();Q.argument(n===1,"Unsupported ltag table version."),r.skip("uLong",1);for(var s=r.parseULong(),a=[],o=0;o<s;o++){for(var i="",l=t+r.parseUShort(),c=r.parseUShort(),u=l;u<l+c;++u)i+=String.fromCharCode(e.getInt8(u));a.push(i)}return a}var Rl={make:sh,parse:ah};function oh(e,t){var r={},n=new j.Parser(e,t);return r.version=n.parseVersion(),r.numGlyphs=n.parseUShort(),r.version===1&&(r.maxPoints=n.parseUShort(),r.maxContours=n.parseUShort(),r.maxCompositePoints=n.parseUShort(),r.maxCompositeContours=n.parseUShort(),r.maxZones=n.parseUShort(),r.maxTwilightPoints=n.parseUShort(),r.maxStorage=n.parseUShort(),r.maxFunctionDefs=n.parseUShort(),r.maxInstructionDefs=n.parseUShort(),r.maxStackElements=n.parseUShort(),r.maxSizeOfInstructions=n.parseUShort(),r.maxComponentElements=n.parseUShort(),r.maxComponentDepth=n.parseUShort()),r}function ih(e){return new Z.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])}var Al={parse:oh,make:ih},Ml=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],Il={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},lh={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Pl={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"br",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",1040:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"};function uh(e,t,r){switch(e){case 0:if(t===65535)return"und";if(r)return r[t];break;case 1:return Il[t];case 3:return Pl[t]}}var Ds="utf-16",ch={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},fh={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};function Dl(e,t,r){switch(e){case 0:return Ds;case 1:return fh[r]||ch[t];case 3:if(t===1||t===10)return Ds;break}}function hh(e,t,r){for(var n={},s=new j.Parser(e,t),a=s.parseUShort(),o=s.parseUShort(),i=s.offset+s.parseUShort(),l=0;l<o;l++){var c=s.parseUShort(),u=s.parseUShort(),h=s.parseUShort(),f=s.parseUShort(),p=Ml[f]||f,m=s.parseUShort(),x=s.parseUShort(),g=uh(c,h,r),y=Dl(c,u,h);if(y!==void 0&&g!==void 0){var b=void 0;if(y===Ds?b=xr.UTF16(e,i+x,m):b=xr.MACSTRING(e,i+x,m,y),b){var S=n[p];S===void 0&&(S=n[p]={}),S[g]=b}}}return a===1&&s.parseUShort(),n}function cs(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function xo(e,t,r,n,s,a){return new Z.Record("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:r},{name:"nameID",type:"USHORT",value:n},{name:"length",type:"USHORT",value:s},{name:"offset",type:"USHORT",value:a}])}function ph(e,t){var r=e.length,n=t.length-r+1;e:for(var s=0;s<n;s++)for(;s<n;s++){for(var a=0;a<r;a++)if(t[s+a]!==e[a])continue e;return s}return-1}function yo(e,t){var r=ph(e,t);if(r<0){r=t.length;for(var n=0,s=e.length;n<s;++n)t.push(e[n])}return r}function dh(e,t){var r,n=[],s={},a=cs(Ml);for(var o in e){var i=a[o];if(i===void 0&&(i=o),r=parseInt(i),isNaN(r))throw new Error('Name table entry "'+o+'" does not exist, see nameTableNames for complete list.');s[r]=e[o],n.push(r)}for(var l=cs(Il),c=cs(Pl),u=[],h=[],f=0;f<n.length;f++){r=n[f];var p=s[r];for(var m in p){var x=p[m],g=1,y=l[m],b=lh[y],S=Dl(g,b,y),F=B.MACSTRING(x,S);F===void 0&&(g=0,y=t.indexOf(m),y<0&&(y=t.length,t.push(m)),b=4,F=B.UTF16(x));var C=yo(F,h);u.push(xo(g,b,y,r,F.length,C));var q=c[m];if(q!==void 0){var D=B.UTF16(x),k=yo(D,h);u.push(xo(3,1,q,r,D.length,k))}}}u.sort(function(N,X){return N.platformID-X.platformID||N.encodingID-X.encodingID||N.languageID-X.languageID||N.nameID-X.nameID});for(var L=new Z.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:u.length},{name:"stringOffset",type:"USHORT",value:6+u.length*12}]),V=0;V<u.length;V++)L.fields.push({name:"record_"+V,type:"RECORD",value:u[V]});return L.fields.push({name:"strings",type:"LITERAL",value:h}),L}var Bl={parse:hh,make:dh},Bs=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function vh(e){for(var t=0;t<Bs.length;t+=1){var r=Bs[t];if(e>=r.begin&&e<r.end)return t}return-1}function gh(e,t){var r={},n=new j.Parser(e,t);r.version=n.parseUShort(),r.xAvgCharWidth=n.parseShort(),r.usWeightClass=n.parseUShort(),r.usWidthClass=n.parseUShort(),r.fsType=n.parseUShort(),r.ySubscriptXSize=n.parseShort(),r.ySubscriptYSize=n.parseShort(),r.ySubscriptXOffset=n.parseShort(),r.ySubscriptYOffset=n.parseShort(),r.ySuperscriptXSize=n.parseShort(),r.ySuperscriptYSize=n.parseShort(),r.ySuperscriptXOffset=n.parseShort(),r.ySuperscriptYOffset=n.parseShort(),r.yStrikeoutSize=n.parseShort(),r.yStrikeoutPosition=n.parseShort(),r.sFamilyClass=n.parseShort(),r.panose=[];for(var s=0;s<10;s++)r.panose[s]=n.parseByte();return r.ulUnicodeRange1=n.parseULong(),r.ulUnicodeRange2=n.parseULong(),r.ulUnicodeRange3=n.parseULong(),r.ulUnicodeRange4=n.parseULong(),r.achVendID=String.fromCharCode(n.parseByte(),n.parseByte(),n.parseByte(),n.parseByte()),r.fsSelection=n.parseUShort(),r.usFirstCharIndex=n.parseUShort(),r.usLastCharIndex=n.parseUShort(),r.sTypoAscender=n.parseShort(),r.sTypoDescender=n.parseShort(),r.sTypoLineGap=n.parseShort(),r.usWinAscent=n.parseUShort(),r.usWinDescent=n.parseUShort(),r.version>=1&&(r.ulCodePageRange1=n.parseULong(),r.ulCodePageRange2=n.parseULong()),r.version>=2&&(r.sxHeight=n.parseShort(),r.sCapHeight=n.parseShort(),r.usDefaultChar=n.parseUShort(),r.usBreakChar=n.parseUShort(),r.usMaxContent=n.parseUShort()),r}function mh(e){return new Z.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)}var Ns={parse:gh,make:mh,unicodeRanges:Bs,getUnicodeRange:vh};function xh(e,t){var r={},n=new j.Parser(e,t);switch(r.version=n.parseVersion(),r.italicAngle=n.parseFixed(),r.underlinePosition=n.parseShort(),r.underlineThickness=n.parseShort(),r.isFixedPitch=n.parseULong(),r.minMemType42=n.parseULong(),r.maxMemType42=n.parseULong(),r.minMemType1=n.parseULong(),r.maxMemType1=n.parseULong(),r.version){case 1:r.names=Qt.slice();break;case 2:r.numberOfGlyphs=n.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.glyphNameIndex[s]=n.parseUShort();r.names=[];for(var a=0;a<r.numberOfGlyphs;a++)if(r.glyphNameIndex[a]>=Qt.length){var o=n.parseChar();r.names.push(n.parseString(o))}break;case 2.5:r.numberOfGlyphs=n.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var i=0;i<r.numberOfGlyphs;i++)r.offset[i]=n.parseChar();break}return r}function yh(){return new Z.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}var Nl={parse:xh,make:yh},rt=new Array(9);rt[1]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{substFormat:1,coverage:this.parsePointer(w.coverage),deltaGlyphId:this.parseUShort()};if(r===2)return{substFormat:2,coverage:this.parsePointer(w.coverage),substitute:this.parseOffset16List()};Q.assert(!1,"0x"+t.toString(16)+": lookup type 1 format must be 1 or 2.")};rt[2]=function(){var t=this.parseUShort();return Q.argument(t===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(w.coverage),sequences:this.parseListOfLists()}};rt[3]=function(){var t=this.parseUShort();return Q.argument(t===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(w.coverage),alternateSets:this.parseListOfLists()}};rt[4]=function(){var t=this.parseUShort();return Q.argument(t===1,"GSUB ligature table identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(w.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var vr={sequenceIndex:w.uShort,lookupListIndex:w.uShort};rt[5]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{substFormat:r,coverage:this.parsePointer(w.coverage),ruleSets:this.parseListOfLists(function(){var a=this.parseUShort(),o=this.parseUShort();return{input:this.parseUShortList(a-1),lookupRecords:this.parseRecordList(o,vr)}})};if(r===2)return{substFormat:r,coverage:this.parsePointer(w.coverage),classDef:this.parsePointer(w.classDef),classSets:this.parseListOfLists(function(){var a=this.parseUShort(),o=this.parseUShort();return{classes:this.parseUShortList(a-1),lookupRecords:this.parseRecordList(o,vr)}})};if(r===3){var n=this.parseUShort(),s=this.parseUShort();return{substFormat:r,coverages:this.parseList(n,w.pointer(w.coverage)),lookupRecords:this.parseRecordList(s,vr)}}Q.assert(!1,"0x"+t.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};rt[6]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{substFormat:1,coverage:this.parsePointer(w.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(vr)}})};if(r===2)return{substFormat:2,coverage:this.parsePointer(w.coverage),backtrackClassDef:this.parsePointer(w.classDef),inputClassDef:this.parsePointer(w.classDef),lookaheadClassDef:this.parsePointer(w.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(vr)}})};if(r===3)return{substFormat:3,backtrackCoverage:this.parseList(w.pointer(w.coverage)),inputCoverage:this.parseList(w.pointer(w.coverage)),lookaheadCoverage:this.parseList(w.pointer(w.coverage)),lookupRecords:this.parseRecordList(vr)};Q.assert(!1,"0x"+t.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};rt[7]=function(){var t=this.parseUShort();Q.argument(t===1,"GSUB Extension Substitution subtable identifier-format must be 1");var r=this.parseUShort(),n=new w(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:r,extension:rt[r].call(n)}};rt[8]=function(){var t=this.parseUShort();return Q.argument(t===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(w.coverage),backtrackCoverage:this.parseList(w.pointer(w.coverage)),lookaheadCoverage:this.parseList(w.pointer(w.coverage)),substitutes:this.parseUShortList()}};function bh(e,t){t=t||0;var r=new w(e,t),n=r.parseVersion(1);return Q.argument(n===1||n===1.1,"Unsupported GSUB table version."),n===1?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(rt)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(rt),variations:r.parseFeatureVariationsList()}}var yr=new Array(9);yr[1]=function(t){return t.substFormat===1?new Z.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Z.Coverage(t.coverage)},{name:"deltaGlyphID",type:"USHORT",value:t.deltaGlyphId}]):new Z.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new Z.Coverage(t.coverage)}].concat(Z.ushortList("substitute",t.substitute)))};yr[2]=function(t){return Q.assert(t.substFormat===1,"Lookup type 2 substFormat must be 1."),new Z.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Z.Coverage(t.coverage)}].concat(Z.tableList("seqSet",t.sequences,function(r){return new Z.Table("sequenceSetTable",Z.ushortList("sequence",r))})))};yr[3]=function(t){return Q.assert(t.substFormat===1,"Lookup type 3 substFormat must be 1."),new Z.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Z.Coverage(t.coverage)}].concat(Z.tableList("altSet",t.alternateSets,function(r){return new Z.Table("alternateSetTable",Z.ushortList("alternate",r))})))};yr[4]=function(t){return Q.assert(t.substFormat===1,"Lookup type 4 substFormat must be 1."),new Z.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Z.Coverage(t.coverage)}].concat(Z.tableList("ligSet",t.ligatureSets,function(r){return new Z.Table("ligatureSetTable",Z.tableList("ligature",r,function(n){return new Z.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:n.ligGlyph}].concat(Z.ushortList("component",n.components,n.components.length+1)))}))})))};yr[6]=function(t){if(t.substFormat===1){var r=new Z.Table("chainContextTable",[{name:"substFormat",type:"USHORT",value:t.substFormat},{name:"coverage",type:"TABLE",value:new Z.Coverage(t.coverage)}].concat(Z.tableList("chainRuleSet",t.chainRuleSets,function(a){return new Z.Table("chainRuleSetTable",Z.tableList("chainRule",a,function(o){var i=Z.ushortList("backtrackGlyph",o.backtrack,o.backtrack.length).concat(Z.ushortList("inputGlyph",o.input,o.input.length+1)).concat(Z.ushortList("lookaheadGlyph",o.lookahead,o.lookahead.length)).concat(Z.ushortList("substitution",[],o.lookupRecords.length));return o.lookupRecords.forEach(function(l,c){i=i.concat({name:"sequenceIndex"+c,type:"USHORT",value:l.sequenceIndex}).concat({name:"lookupListIndex"+c,type:"USHORT",value:l.lookupListIndex})}),new Z.Table("chainRuleTable",i)}))})));return r}else if(t.substFormat===2)Q.assert(!1,"lookup type 6 format 2 is not yet supported.");else if(t.substFormat===3){var n=[{name:"substFormat",type:"USHORT",value:t.substFormat}];n.push({name:"backtrackGlyphCount",type:"USHORT",value:t.backtrackCoverage.length}),t.backtrackCoverage.forEach(function(a,o){n.push({name:"backtrackCoverage"+o,type:"TABLE",value:new Z.Coverage(a)})}),n.push({name:"inputGlyphCount",type:"USHORT",value:t.inputCoverage.length}),t.inputCoverage.forEach(function(a,o){n.push({name:"inputCoverage"+o,type:"TABLE",value:new Z.Coverage(a)})}),n.push({name:"lookaheadGlyphCount",type:"USHORT",value:t.lookaheadCoverage.length}),t.lookaheadCoverage.forEach(function(a,o){n.push({name:"lookaheadCoverage"+o,type:"TABLE",value:new Z.Coverage(a)})}),n.push({name:"substitutionCount",type:"USHORT",value:t.lookupRecords.length}),t.lookupRecords.forEach(function(a,o){n=n.concat({name:"sequenceIndex"+o,type:"USHORT",value:a.sequenceIndex}).concat({name:"lookupListIndex"+o,type:"USHORT",value:a.lookupListIndex})});var s=new Z.Table("chainContextTable",n);return s}Q.assert(!1,"lookup type 6 format must be 1, 2 or 3.")};function Sh(e){return new Z.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new Z.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new Z.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new Z.LookupList(e.lookups,yr)}])}var Gl={parse:bh,make:Sh};function wh(e,t){var r=new j.Parser(e,t),n=r.parseULong();Q.argument(n===1,"Unsupported META table version."),r.parseULong(),r.parseULong();for(var s=r.parseULong(),a={},o=0;o<s;o++){var i=r.parseTag(),l=r.parseULong(),c=r.parseULong(),u=xr.UTF8(e,t+l,c);a[i]=u}return a}function Th(e){var t=Object.keys(e).length,r="",n=16+t*12,s=new Z.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:n},{name:"numTags",type:"ULONG",value:t}]);for(var a in e){var o=r.length;r+=e[a],s.fields.push({name:"tag "+a,type:"TAG",value:a}),s.fields.push({name:"offset "+a,type:"ULONG",value:n+o}),s.fields.push({name:"length "+a,type:"ULONG",value:e[a].length})}return s.fields.push({name:"stringPool",type:"CHARARRAY",value:r}),s}var Hl={parse:wh,make:Th};function bo(e){return Math.log(e)/Math.log(2)|0}function va(e){for(;e.length%4!==0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32),t}function So(e,t,r,n){return new Z.Record("Table Record",[{name:"tag",type:"TAG",value:e!==void 0?e:""},{name:"checkSum",type:"ULONG",value:t!==void 0?t:0},{name:"offset",type:"ULONG",value:r!==void 0?r:0},{name:"length",type:"ULONG",value:n!==void 0?n:0}])}function Vl(e){var t=new Z.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,bo(t.numTables));t.searchRange=16*r,t.entrySelector=bo(r),t.rangeShift=t.numTables*16-t.searchRange;for(var n=[],s=[],a=t.sizeOf()+So().sizeOf()*t.numTables;a%4!==0;)a+=1,s.push({name:"padding",type:"BYTE",value:0});for(var o=0;o<e.length;o+=1){var i=e[o];Q.argument(i.tableName.length===4,"Table name"+i.tableName+" is invalid.");var l=i.sizeOf(),c=So(i.tableName,va(i.encode()),a,l);for(n.push({name:c.tag+" Table Record",type:"RECORD",value:c}),s.push({name:i.tableName+" table",type:"RECORD",value:i}),a+=l,Q.argument(!isNaN(a),"Something went wrong calculating the offset.");a%4!==0;)a+=1,s.push({name:"padding",type:"BYTE",value:0})}return n.sort(function(u,h){return u.value.tag>h.value.tag?1:-1}),t.fields=t.fields.concat(n),t.fields=t.fields.concat(s),t}function wo(e,t,r){for(var n=0;n<t.length;n+=1){var s=e.charToGlyphIndex(t[n]);if(s>0){var a=e.glyphs.get(s);return a.getMetrics()}}return r}function Fh(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}function Ch(e){for(var t=[],r=[],n=[],s=[],a=[],o=[],i=[],l,c=0,u=0,h=0,f=0,p=0,m=0;m<e.glyphs.length;m+=1){var x=e.glyphs.get(m),g=x.unicode|0;if(isNaN(x.advanceWidth))throw new Error("Glyph "+x.name+" ("+m+"): advanceWidth is not a number.");(l>g||l===void 0)&&g>0&&(l=g),c<g&&(c=g);var y=Ns.getUnicodeRange(g);if(y<32)u|=1<<y;else if(y<64)h|=1<<y-32;else if(y<96)f|=1<<y-64;else if(y<123)p|=1<<y-96;else throw new Error("Unicode ranges bits > 123 are reserved for internal usage");if(x.name!==".notdef"){var b=x.getMetrics();t.push(b.xMin),r.push(b.yMin),n.push(b.xMax),s.push(b.yMax),o.push(b.leftSideBearing),i.push(b.rightSideBearing),a.push(x.advanceWidth)}}var S={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,s),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:Fh(a),minLeftSideBearing:Math.min.apply(null,o),maxLeftSideBearing:Math.max.apply(null,o),minRightSideBearing:Math.min.apply(null,i)};S.ascender=e.ascender,S.descender=e.descender;var F=Ul.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:S.xMin,yMin:S.yMin,xMax:S.xMax,yMax:S.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),C=Ll.make({ascender:S.ascender,descender:S.descender,advanceWidthMax:S.advanceWidthMax,minLeftSideBearing:S.minLeftSideBearing,minRightSideBearing:S.minRightSideBearing,xMaxExtent:S.maxLeftSideBearing+(S.xMax-S.xMin),numberOfHMetrics:e.glyphs.length}),q=Al.make(e.glyphs.length),D=Ns.make(Object.assign({xAvgCharWidth:Math.round(S.advanceWidthAvg),usFirstCharIndex:l,usLastCharIndex:c,ulUnicodeRange1:u,ulUnicodeRange2:h,ulUnicodeRange3:f,ulUnicodeRange4:p,sTypoAscender:S.ascender,sTypoDescender:S.descender,sTypoLineGap:0,usWinAscent:S.yMax,usWinDescent:Math.abs(S.yMin),ulCodePageRange1:1,sxHeight:wo(e,"xyvw",{yMax:Math.round(S.ascender/2)}).yMax,sCapHeight:wo(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",S).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0},e.tables.os2)),k=_l.make(e.glyphs),L=ml.make(e.glyphs),V=e.getEnglishName("fontFamily"),N=e.getEnglishName("fontSubfamily"),X=V+" "+N,se=e.getEnglishName("postScriptName");se||(se=V.replace(/\s/g,"")+"-"+N);var oe={};for(var R in e.names)oe[R]=e.names[R];oe.uniqueID||(oe.uniqueID={en:e.getEnglishName("manufacturer")+":"+X}),oe.postScriptName||(oe.postScriptName={en:se}),oe.preferredFamily||(oe.preferredFamily=e.names.fontFamily),oe.preferredSubfamily||(oe.preferredSubfamily=e.names.fontSubfamily);var G=[],A=Bl.make(oe,G),z=G.length>0?Rl.make(G):void 0,ee=Nl.make(),fe=Ol.make(e.glyphs,{version:e.getEnglishName("version"),fullName:X,familyName:V,weightName:N,postScriptName:se,unitsPerEm:e.unitsPerEm,fontBBox:[0,S.yMin,S.ascender,S.advanceWidthMax]}),ue=e.metas&&Object.keys(e.metas).length>0?Hl.make(e.metas):void 0,de=[F,C,q,D,A,L,ee,fe,k];z&&de.push(z),e.tables.gsub&&de.push(Gl.make(e.tables.gsub)),ue&&de.push(ue);for(var Rt=Vl(de),Y=Rt.encode(),ie=va(Y),le=Rt.fields,xe=!1,Ge=0;Ge<le.length;Ge+=1)if(le[Ge].name==="head table"){le[Ge].value.checkSumAdjustment=2981146554-ie,xe=!0;break}if(!xe)throw new Error("Could not find head table with checkSum to adjust.");return Rt}var kh={make:Vl,fontToTable:Ch,computeCheckSum:va};function fs(e,t){for(var r=0,n=e.length-1;r<=n;){var s=r+n>>>1,a=e[s].tag;if(a===t)return s;a<t?r=s+1:n=s-1}return-r-1}function To(e,t){for(var r=0,n=e.length-1;r<=n;){var s=r+n>>>1,a=e[s];if(a===t)return s;a<t?r=s+1:n=s-1}return-r-1}function Fo(e,t){for(var r,n=0,s=e.length-1;n<=s;){var a=n+s>>>1;r=e[a];var o=r.start;if(o===t)return r;o<t?n=a+1:s=a-1}if(n>0)return r=e[n-1],t>r.end?0:r}function Yr(e,t){this.font=e,this.tableName=t}Yr.prototype={searchTag:fs,binSearch:To,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(t){return t.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var n=e.scripts[r].tag;if(n==="DFLT")return n;n==="latn"&&(t=!0)}if(t)return"latn"}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||"DFLT";var n=r.scripts,s=fs(r.scripts,e);if(s>=0)return n[s].script;if(t){var a={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return n.splice(-1-s,0,a),a.script}}},getLangSysTable:function(e,t,r){var n=this.getScriptTable(e,r);if(n){if(!t||t==="dflt"||t==="DFLT")return n.defaultLangSys;var s=fs(n.langSysRecords,t);if(s>=0)return n.langSysRecords[s].langSys;if(r){var a={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return n.langSysRecords.splice(-1-s,0,a),a.langSys}}},getFeatureTable:function(e,t,r,n){var s=this.getLangSysTable(e,t,n);if(s){for(var a,o=s.featureIndexes,i=this.font.tables[this.tableName].features,l=0;l<o.length;l++)if(a=i[o[l]],a.tag===r)return a.feature;if(n){var c=i.length;return Q.assert(c===0||r>=i[c-1].tag,"Features must be added in alphabetical order."),a={tag:r,feature:{params:0,lookupListIndexes:[]}},i.push(a),o.push(c),a.feature}}},getLookupTables:function(e,t,r,n,s){var a=this.getFeatureTable(e,t,r,s),o=[];if(a){for(var i,l=a.lookupListIndexes,c=this.font.tables[this.tableName].lookups,u=0;u<l.length;u++)i=c[l[u]],i.lookupType===n&&o.push(i);if(o.length===0&&s){i={lookupType:n,lookupFlag:0,subtables:[],markFilteringSet:void 0};var h=c.length;return c.push(i),l.push(h),[i]}}return o},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=Fo(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=To(e.glyphs,t);return r>=0?r:-1;case 2:var n=Fo(e.ranges,t);return n?n.index+t-n.start:-1}},expandCoverage:function(e){if(e.format===1)return e.glyphs;for(var t=[],r=e.ranges,n=0;n<r.length;n++)for(var s=r[n],a=s.start,o=s.end,i=a;i<=o;i++)t.push(i);return t}};function Kr(e){Yr.call(this,e,"gpos")}Kr.prototype=Yr.prototype;Kr.prototype.init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)};Kr.prototype.getKerningValue=function(e,t,r){for(var n=0;n<e.length;n++)for(var s=e[n].subtables,a=0;a<s.length;a++){var o=s[a],i=this.getCoverageIndex(o.coverage,t);if(!(i<0))switch(o.posFormat){case 1:for(var l=o.pairSets[i],c=0;c<l.length;c++){var u=l[c];if(u.secondGlyph===r)return u.value1&&u.value1.xAdvance||0}break;case 2:var h=this.getGlyphClass(o.classDef1,t),f=this.getGlyphClass(o.classDef2,r),p=o.classRecords[h][f];return p.value1&&p.value1.xAdvance||0}}return 0};Kr.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)};function Xe(e){Yr.call(this,e,"gsub")}function Eh(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function ga(e,t,r){for(var n=e.subtables,s=0;s<n.length;s++){var a=n[s];if(a.substFormat===t)return a}if(r)return n.push(r),r}Xe.prototype=Yr.prototype;Xe.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};Xe.prototype.getSingle=function(e,t,r){for(var n=[],s=this.getLookupTables(t,r,e,1),a=0;a<s.length;a++)for(var o=s[a].subtables,i=0;i<o.length;i++){var l=o[i],c=this.expandCoverage(l.coverage),u=void 0;if(l.substFormat===1){var h=l.deltaGlyphId;for(u=0;u<c.length;u++){var f=c[u];n.push({sub:f,by:f+h})}}else{var p=l.substitute;for(u=0;u<c.length;u++)n.push({sub:c[u],by:p[u]})}}return n};Xe.prototype.getMultiple=function(e,t,r){for(var n=[],s=this.getLookupTables(t,r,e,2),a=0;a<s.length;a++)for(var o=s[a].subtables,i=0;i<o.length;i++){var l=o[i],c=this.expandCoverage(l.coverage),u=void 0;for(u=0;u<c.length;u++){var h=c[u],f=l.sequences[u];n.push({sub:h,by:f})}}return n};Xe.prototype.getAlternates=function(e,t,r){for(var n=[],s=this.getLookupTables(t,r,e,3),a=0;a<s.length;a++)for(var o=s[a].subtables,i=0;i<o.length;i++)for(var l=o[i],c=this.expandCoverage(l.coverage),u=l.alternateSets,h=0;h<c.length;h++)n.push({sub:c[h],by:u[h]});return n};Xe.prototype.getLigatures=function(e,t,r){for(var n=[],s=this.getLookupTables(t,r,e,4),a=0;a<s.length;a++)for(var o=s[a].subtables,i=0;i<o.length;i++)for(var l=o[i],c=this.expandCoverage(l.coverage),u=l.ligatureSets,h=0;h<c.length;h++)for(var f=c[h],p=u[h],m=0;m<p.length;m++){var x=p[m];n.push({sub:[f].concat(x.components),by:x.ligGlyph})}return n};Xe.prototype.addSingle=function(e,t,r,n){var s=this.getLookupTables(r,n,e,1,!0)[0],a=ga(s,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});Q.assert(a.coverage.format===1,"Single: unable to modify coverage table format "+a.coverage.format);var o=t.sub,i=this.binSearch(a.coverage.glyphs,o);i<0&&(i=-1-i,a.coverage.glyphs.splice(i,0,o),a.substitute.splice(i,0,0)),a.substitute[i]=t.by};Xe.prototype.addMultiple=function(e,t,r,n){Q.assert(t.by instanceof Array&&t.by.length>1,'Multiple: "by" must be an array of two or more ids');var s=this.getLookupTables(r,n,e,2,!0)[0],a=ga(s,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});Q.assert(a.coverage.format===1,"Multiple: unable to modify coverage table format "+a.coverage.format);var o=t.sub,i=this.binSearch(a.coverage.glyphs,o);i<0&&(i=-1-i,a.coverage.glyphs.splice(i,0,o),a.sequences.splice(i,0,0)),a.sequences[i]=t.by};Xe.prototype.addAlternate=function(e,t,r,n){var s=this.getLookupTables(r,n,e,3,!0)[0],a=ga(s,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});Q.assert(a.coverage.format===1,"Alternate: unable to modify coverage table format "+a.coverage.format);var o=t.sub,i=this.binSearch(a.coverage.glyphs,o);i<0&&(i=-1-i,a.coverage.glyphs.splice(i,0,o),a.alternateSets.splice(i,0,0)),a.alternateSets[i]=t.by};Xe.prototype.addLigature=function(e,t,r,n){var s=this.getLookupTables(r,n,e,4,!0)[0],a=s.subtables[0];a||(a={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},s.subtables[0]=a),Q.assert(a.coverage.format===1,"Ligature: unable to modify coverage table format "+a.coverage.format);var o=t.sub[0],i=t.sub.slice(1),l={ligGlyph:t.by,components:i},c=this.binSearch(a.coverage.glyphs,o);if(c>=0){for(var u=a.ligatureSets[c],h=0;h<u.length;h++)if(Eh(u[h].components,i))return;u.push(l)}else c=-1-c,a.coverage.glyphs.splice(c,0,o),a.ligatureSets.splice(c,0,[l])};Xe.prototype.getFeature=function(e,t,r){if(/ss\d\d/.test(e))return this.getSingle(e,t,r);switch(e){case"aalt":case"salt":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case"dlig":case"liga":case"rlig":return this.getLigatures(e,t,r);case"ccmp":return this.getMultiple(e,t,r).concat(this.getLigatures(e,t,r));case"stch":return this.getMultiple(e,t,r)}};Xe.prototype.add=function(e,t,r,n){if(/ss\d\d/.test(e))return this.addSingle(e,t,r,n);switch(e){case"aalt":case"salt":return typeof t.by=="number"?this.addSingle(e,t,r,n):this.addAlternate(e,t,r,n);case"dlig":case"liga":case"rlig":return this.addLigature(e,t,r,n);case"ccmp":return t.by instanceof Array?this.addMultiple(e,t,r,n):this.addLigature(e,t,r,n)}};function Oh(){return typeof window<"u"}function Uh(e){for(var t=new Buffer(e.byteLength),r=new Uint8Array(e),n=0;n<t.length;++n)t[n]=r[n];return t}function Cr(e,t){if(!e)throw t}function Co(e,t,r,n,s){var a;return(t&n)>0?(a=e.parseByte(),(t&s)===0&&(a=-a),a=r+a):(t&s)>0?a=r:a=r+e.parseShort(),a}function zl(e,t,r){var n=new j.Parser(t,r);e.numberOfContours=n.parseShort(),e._xMin=n.parseShort(),e._yMin=n.parseShort(),e._xMax=n.parseShort(),e._yMax=n.parseShort();var s,a;if(e.numberOfContours>0){for(var o=e.endPointIndices=[],i=0;i<e.numberOfContours;i+=1)o.push(n.parseUShort());e.instructionLength=n.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(n.parseByte());var c=o[o.length-1]+1;s=[];for(var u=0;u<c;u+=1)if(a=n.parseByte(),s.push(a),(a&8)>0)for(var h=n.parseByte(),f=0;f<h;f+=1)s.push(a),u+=1;if(Q.argument(s.length===c,"Bad flags."),o.length>0){var p=[],m;if(c>0){for(var x=0;x<c;x+=1)a=s[x],m={},m.onCurve=!!(a&1),m.lastPointOfContour=o.indexOf(x)>=0,p.push(m);for(var g=0,y=0;y<c;y+=1)a=s[y],m=p[y],m.x=Co(n,a,g,2,16),g=m.x;for(var b=0,S=0;S<c;S+=1)a=s[S],m=p[S],m.y=Co(n,a,b,4,32),b=m.y}e.points=p}else e.points=[]}else if(e.numberOfContours===0)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var F=!0;F;){s=n.parseUShort();var C={glyphIndex:n.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(s&1)>0?(s&2)>0?(C.dx=n.parseShort(),C.dy=n.parseShort()):C.matchedPoints=[n.parseUShort(),n.parseUShort()]:(s&2)>0?(C.dx=n.parseChar(),C.dy=n.parseChar()):C.matchedPoints=[n.parseByte(),n.parseByte()],(s&8)>0?C.xScale=C.yScale=n.parseF2Dot14():(s&64)>0?(C.xScale=n.parseF2Dot14(),C.yScale=n.parseF2Dot14()):(s&128)>0&&(C.xScale=n.parseF2Dot14(),C.scale01=n.parseF2Dot14(),C.scale10=n.parseF2Dot14(),C.yScale=n.parseF2Dot14()),e.components.push(C),F=!!(s&32)}if(s&256){e.instructionLength=n.parseUShort(),e.instructions=[];for(var q=0;q<e.instructionLength;q+=1)e.instructions.push(n.parseByte())}}}function hs(e,t){for(var r=[],n=0;n<e.length;n+=1){var s=e[n],a={x:t.xScale*s.x+t.scale01*s.y+t.dx,y:t.scale10*s.x+t.yScale*s.y+t.dy,onCurve:s.onCurve,lastPointOfContour:s.lastPointOfContour};r.push(a)}return r}function Lh(e){for(var t=[],r=[],n=0;n<e.length;n+=1){var s=e[n];r.push(s),s.lastPointOfContour&&(t.push(r),r=[])}return Q.argument(r.length===0,"There are still points left in the current contour."),t}function Wl(e){var t=new _e;if(!e)return t;for(var r=Lh(e),n=0;n<r.length;++n){var s=r[n],a=null,o=s[s.length-1],i=s[0];if(o.onCurve)t.moveTo(o.x,o.y);else if(i.onCurve)t.moveTo(i.x,i.y);else{var l={x:(o.x+i.x)*.5,y:(o.y+i.y)*.5};t.moveTo(l.x,l.y)}for(var c=0;c<s.length;++c)if(a=o,o=i,i=s[(c+1)%s.length],o.onCurve)t.lineTo(o.x,o.y);else{var u=i;a.onCurve||((o.x+a.x)*.5,(o.y+a.y)*.5),i.onCurve||(u={x:(o.x+i.x)*.5,y:(o.y+i.y)*.5}),t.quadraticCurveTo(o.x,o.y,u.x,u.y)}t.closePath()}return t}function Zl(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var n=t.components[r],s=e.get(n.glyphIndex);if(s.getPath(),s.points){var a=void 0;if(n.matchedPoints===void 0)a=hs(s.points,n);else{if(n.matchedPoints[0]>t.points.length-1||n.matchedPoints[1]>s.points.length-1)throw Error("Matched points out of range in "+t.name);var o=t.points[n.matchedPoints[0]],i=s.points[n.matchedPoints[1]],l={xScale:n.xScale,scale01:n.scale01,scale10:n.scale10,yScale:n.yScale,dx:0,dy:0};i=hs([i],l)[0],l.dx=o.x-i.x,l.dy=o.y-i.y,a=hs(s.points,l)}t.points=t.points.concat(a)}}return Wl(t.points)}function _h(e,t,r,n){for(var s=new xt.GlyphSet(n),a=0;a<r.length-1;a+=1){var o=r[a],i=r[a+1];o!==i?s.push(a,xt.ttfGlyphLoader(n,a,zl,e,t+o,Zl)):s.push(a,xt.glyphLoader(n,a))}return s}function Rh(e,t,r,n){var s=new xt.GlyphSet(n);return n._push=function(a){var o=r[a],i=r[a+1];o!==i?s.push(a,xt.ttfGlyphLoader(n,a,zl,e,t+o,Zl)):s.push(a,xt.glyphLoader(n,a))},s}function Ah(e,t,r,n,s){return s.lowMemory?Rh(e,t,r,n):_h(e,t,r,n)}var $l={getPath:Wl,parse:Ah},jl,sr,ql,Gs;function Xl(e){this.font=e,this.getCommands=function(t){return $l.getPath(t).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Mh(e){return e}function Yl(e){return Math.sign(e)*Math.round(Math.abs(e))}function Ih(e){return Math.sign(e)*Math.round(Math.abs(e*2))/2}function Ph(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function Dh(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Bh(e){return Math.sign(e)*Math.floor(Math.abs(e))}var Kl=function(e){var t=this.srPeriod,r=this.srPhase,n=this.srThreshold,s=1;return e<0&&(e=-e,s=-1),e+=n-r,e=Math.trunc(e/t)*t,e+=r,e<0?r*s:e*s},gt={x:1,y:0,axis:"x",distance:function(e,t,r,n){return(r?e.xo:e.x)-(n?t.xo:t.x)},interpolate:function(e,t,r,n){var s,a,o,i,l,c,u;if(!n||n===this){if(s=e.xo-t.xo,a=e.xo-r.xo,l=t.x-t.xo,c=r.x-r.xo,o=Math.abs(s),i=Math.abs(a),u=o+i,u===0){e.x=e.xo+(l+c)/2;return}e.x=e.xo+(l*i+c*o)/u;return}if(s=n.distance(e,t,!0,!0),a=n.distance(e,r,!0,!0),l=n.distance(t,t,!1,!0),c=n.distance(r,r,!1,!0),o=Math.abs(s),i=Math.abs(a),u=o+i,u===0){gt.setRelative(e,e,(l+c)/2,n,!0);return}gt.setRelative(e,e,(l*i+c*o)/u,n,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,n,s){if(!n||n===this){e.x=(s?t.xo:t.x)+r;return}var a=s?t.xo:t.x,o=s?t.yo:t.y,i=a+r*n.x,l=o+r*n.y;e.x=i+(e.y-l)/n.normalSlope},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},Ct={x:0,y:1,axis:"y",distance:function(e,t,r,n){return(r?e.yo:e.y)-(n?t.yo:t.y)},interpolate:function(e,t,r,n){var s,a,o,i,l,c,u;if(!n||n===this){if(s=e.yo-t.yo,a=e.yo-r.yo,l=t.y-t.yo,c=r.y-r.yo,o=Math.abs(s),i=Math.abs(a),u=o+i,u===0){e.y=e.yo+(l+c)/2;return}e.y=e.yo+(l*i+c*o)/u;return}if(s=n.distance(e,t,!0,!0),a=n.distance(e,r,!0,!0),l=n.distance(t,t,!1,!0),c=n.distance(r,r,!1,!0),o=Math.abs(s),i=Math.abs(a),u=o+i,u===0){Ct.setRelative(e,e,(l+c)/2,n,!0);return}Ct.setRelative(e,e,(l*i+c*o)/u,n,!0)},normalSlope:0,setRelative:function(e,t,r,n,s){if(!n||n===this){e.y=(s?t.yo:t.y)+r;return}var a=s?t.xo:t.x,o=s?t.yo:t.y,i=a+r*n.x,l=o+r*n.y;e.y=l+n.normalSlope*(e.x-i)},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};Object.freeze(gt);Object.freeze(Ct);function Jr(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}Jr.prototype.distance=function(e,t,r,n){return this.x*gt.distance(e,t,r,n)+this.y*Ct.distance(e,t,r,n)};Jr.prototype.interpolate=function(e,t,r,n){var s,a,o,i,l,c,u;if(o=n.distance(e,t,!0,!0),i=n.distance(e,r,!0,!0),s=n.distance(t,t,!1,!0),a=n.distance(r,r,!1,!0),l=Math.abs(o),c=Math.abs(i),u=l+c,u===0){this.setRelative(e,e,(s+a)/2,n,!0);return}this.setRelative(e,e,(s*c+a*l)/u,n,!0)};Jr.prototype.setRelative=function(e,t,r,n,s){n=n||this;var a=s?t.xo:t.x,o=s?t.yo:t.y,i=a+r*n.x,l=o+r*n.y,c=n.normalSlope,u=this.slope,h=e.x,f=e.y;e.x=(u*h-c*i+l-f)/(u-c),e.y=u*(e.x-h)+f};Jr.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0};function Qr(e,t){var r=Math.sqrt(e*e+t*t);return e/=r,t/=r,e===1&&t===0?gt:e===0&&t===1?Ct:new Jr(e,t)}function Et(e,t,r,n){this.x=this.xo=Math.round(e*64)/64,this.y=this.yo=Math.round(t*64)/64,this.lastPointOfContour=r,this.onCurve=n,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Et.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t};Et.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var $r=Object.freeze(new Et(0,0)),Nh={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function Ht(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=gt,this.round=Yl}}Xl.prototype.exec=function(e,t){if(typeof t!="number")throw new Error("Point size is not a number!");if(!(this._errorState>2)){var r=this.font,n=this._prepState;if(!n||n.ppem!==t){var s=this._fpgmState;if(!s){Ht.prototype=Nh,s=this._fpgmState=new Ht("fpgm",r.tables.fpgm),s.funcs=[],s.font=r,exports.DEBUG&&(console.log("---EXEC FPGM---"),s.step=-1);try{sr(s)}catch(c){console.log("Hinting error in FPGM:"+c),this._errorState=3;return}}Ht.prototype=s,n=this._prepState=new Ht("prep",r.tables.prep),n.ppem=t;var a=r.tables.cvt;if(a)for(var o=n.cvt=new Array(a.length),i=t/r.unitsPerEm,l=0;l<a.length;l++)o[l]=a[l]*i;else n.cvt=[];exports.DEBUG&&(console.log("---EXEC PREP---"),n.step=-1);try{sr(n)}catch(c){this._errorState<2&&console.log("Hinting error in PREP:"+c),this._errorState=2}}if(!(this._errorState>1))try{return ql(e,n)}catch(c){this._errorState<1&&(console.log("Hinting error:"+c),console.log("Note: further hinting errors are silenced")),this._errorState=1;return}}};ql=function(e,t){var r=t.ppem/t.font.unitsPerEm,n=r,s=e.components,a,o,i;if(Ht.prototype=t,!s)i=new Ht("glyf",e.instructions),exports.DEBUG&&(console.log("---EXEC GLYPH---"),i.step=-1),Gs(e,i,r,n),o=i.gZone;else{var l=t.font;o=[],a=[];for(var c=0;c<s.length;c++){var u=s[c],h=l.glyphs.get(u.glyphIndex);i=new Ht("glyf",h.instructions),exports.DEBUG&&(console.log("---EXEC COMP "+c+"---"),i.step=-1),Gs(h,i,r,n);for(var f=Math.round(u.dx*r),p=Math.round(u.dy*n),m=i.gZone,x=i.contours,g=0;g<m.length;g++){var y=m[g];y.xTouched=y.yTouched=!1,y.xo=y.x=y.x+f,y.yo=y.y=y.y+p}var b=o.length;o.push.apply(o,m);for(var S=0;S<x.length;S++)a.push(x[S]+b)}e.instructions&&!i.inhibitGridFit&&(i=new Ht("glyf",e.instructions),i.gZone=i.z0=i.z1=i.z2=o,i.contours=a,o.push(new Et(0,0),new Et(Math.round(e.advanceWidth*r),0)),exports.DEBUG&&(console.log("---EXEC COMPOSITE---"),i.step=-1),sr(i),o.length-=2)}return o};Gs=function(e,t,r,n){for(var s=e.points||[],a=s.length,o=t.gZone=t.z0=t.z1=t.z2=[],i=t.contours=[],l,c=0;c<a;c++)l=s[c],o[c]=new Et(l.x*r,l.y*n,l.lastPointOfContour,l.onCurve);for(var u,h,f=0;f<a;f++)l=o[f],u||(u=l,i.push(f)),l.lastPointOfContour?(l.nextPointOnContour=u,u.prevPointOnContour=l,u=void 0):(h=o[f+1],l.nextPointOnContour=h,h.prevPointOnContour=l);if(!t.inhibitGridFit){if(exports.DEBUG){console.log("PROCESSING GLYPH",t.stack);for(var p=0;p<a;p++)console.log(p,o[p].x,o[p].y)}if(o.push(new Et(0,0),new Et(Math.round(e.advanceWidth*r),0)),sr(t),o.length-=2,exports.DEBUG){console.log("FINISHED GLYPH",t.stack);for(var m=0;m<a;m++)console.log(m,o[m].x,o[m].y)}}};sr=function(e){var t=e.prog;if(t){var r=t.length,n;for(e.ip=0;e.ip<r;e.ip++){if(exports.DEBUG&&e.step++,n=jl[t[e.ip]],!n)throw new Error("unknown instruction: 0x"+Number(t[e.ip]).toString(16));n(e)}}};function $n(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Et(0,0)}function Jl(e,t){var r=e.prog,n=e.ip,s=1,a;do if(a=r[++n],a===88)s++;else if(a===89)s--;else if(a===64)n+=r[n+1]+1;else if(a===65)n+=2*r[n+1]+1;else if(a>=176&&a<=183)n+=a-176+1;else if(a>=184&&a<=191)n+=(a-184+1)*2;else if(t&&s===1&&a===27)break;while(s>0);e.ip=n}function ko(e,t){exports.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function Eo(e,t){exports.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function Oo(e,t){exports.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function Uo(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z2[n],o=t.z1[s];exports.DEBUG&&console.log("SPVTL["+e+"]",n,s);var i,l;e?(i=a.y-o.y,l=o.x-a.x):(i=o.x-a.x,l=o.y-a.y),t.pv=t.dpv=Qr(i,l)}function Lo(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z2[n],o=t.z1[s];exports.DEBUG&&console.log("SFVTL["+e+"]",n,s);var i,l;e?(i=a.y-o.y,l=o.x-a.x):(i=o.x-a.x,l=o.y-a.y),t.fv=Qr(i,l)}function Gh(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SPVFS[]",r,n),e.pv=e.dpv=Qr(n,r)}function Hh(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SPVFS[]",r,n),e.fv=Qr(n,r)}function Vh(e){var t=e.stack,r=e.pv;exports.DEBUG&&console.log(e.step,"GPV[]"),t.push(r.x*16384),t.push(r.y*16384)}function zh(e){var t=e.stack,r=e.fv;exports.DEBUG&&console.log(e.step,"GFV[]"),t.push(r.x*16384),t.push(r.y*16384)}function Wh(e){e.fv=e.pv,exports.DEBUG&&console.log(e.step,"SFVTPV[]")}function Zh(e){var t=e.stack,r=t.pop(),n=t.pop(),s=t.pop(),a=t.pop(),o=t.pop(),i=e.z0,l=e.z1,c=i[r],u=i[n],h=l[s],f=l[a],p=e.z2[o];exports.DEBUG&&console.log("ISECT[], ",r,n,s,a,o);var m=c.x,x=c.y,g=u.x,y=u.y,b=h.x,S=h.y,F=f.x,C=f.y,q=(m-g)*(S-C)-(x-y)*(b-F),D=m*y-x*g,k=b*C-S*F;p.x=(D*(b-F)-k*(m-g))/q,p.y=(D*(S-C)-k*(x-y))/q}function $h(e){e.rp0=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP0[]",e.rp0)}function jh(e){e.rp1=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP1[]",e.rp1)}function qh(e){e.rp2=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP2[]",e.rp2)}function Xh(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP0[]",t),e.zp0=t,t){case 0:e.tZone||$n(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Yh(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP1[]",t),e.zp1=t,t){case 0:e.tZone||$n(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Kh(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP2[]",t),e.zp2=t,t){case 0:e.tZone||$n(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Jh(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZPS[]",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||$n(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Qh(e){e.loop=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SLOOP[]",e.loop)}function ep(e){exports.DEBUG&&console.log(e.step,"RTG[]"),e.round=Yl}function tp(e){exports.DEBUG&&console.log(e.step,"RTHG[]"),e.round=Ph}function rp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SMD[]",t),e.minDis=t/64}function np(e){exports.DEBUG&&console.log(e.step,"ELSE[]"),Jl(e,!1)}function sp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"JMPR[]",t),e.ip+=t-1}function ap(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCVTCI[]",t),e.cvCutIn=t/64}function op(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DUP[]"),t.push(t[t.length-1])}function ps(e){exports.DEBUG&&console.log(e.step,"POP[]"),e.stack.pop()}function ip(e){exports.DEBUG&&console.log(e.step,"CLEAR[]"),e.stack.length=0}function lp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SWAP[]"),t.push(r),t.push(n)}function up(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DEPTH[]"),t.push(t.length)}function cp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LOOPCALL[]",r,n);var s=e.ip,a=e.prog;e.prog=e.funcs[r];for(var o=0;o<n;o++)sr(e),exports.DEBUG&&console.log(++e.step,o+1<n?"next loopcall":"done loopcall",o);e.ip=s,e.prog=a}function fp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"CALL[]",t);var r=e.ip,n=e.prog;e.prog=e.funcs[t],sr(e),e.ip=r,e.prog=n,exports.DEBUG&&console.log(++e.step,"returning from",t)}function hp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CINDEX[]",r),t.push(t[t.length-r])}function pp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"MINDEX[]",r),t.push(t.splice(t.length-r,1)[0])}function dp(e){if(e.env!=="fpgm")throw new Error("FDEF not allowed here");var t=e.stack,r=e.prog,n=e.ip,s=t.pop(),a=n;for(exports.DEBUG&&console.log(e.step,"FDEF[]",s);r[++n]!==45;);e.ip=n,e.funcs[s]=r.slice(a+1,n)}function _o(e,t){var r=t.stack.pop(),n=t.z0[r],s=t.fv,a=t.pv;exports.DEBUG&&console.log(t.step,"MDAP["+e+"]",r);var o=a.distance(n,$r);e&&(o=t.round(o)),s.setRelative(n,$r,o,a),s.touch(n),t.rp0=t.rp1=r}function Ro(e,t){var r=t.z2,n=r.length-2,s,a,o;exports.DEBUG&&console.log(t.step,"IUP["+e.axis+"]");for(var i=0;i<n;i++)s=r[i],!e.touched(s)&&(a=s.prevTouched(e),a!==s&&(o=s.nextTouched(e),a===o&&e.setRelative(s,s,e.distance(a,a,!1,!0),e,!0),e.interpolate(s,a,o,e)))}function Ao(e,t){for(var r=t.stack,n=e?t.rp1:t.rp2,s=(e?t.z0:t.z1)[n],a=t.fv,o=t.pv,i=t.loop,l=t.z2;i--;){var c=r.pop(),u=l[c],h=o.distance(s,s,!1,!0);a.setRelative(u,u,h,o),a.touch(u),exports.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-i)+": ":"")+"SHP["+(e?"rp1":"rp2")+"]",c)}t.loop=1}function Mo(e,t){var r=t.stack,n=e?t.rp1:t.rp2,s=(e?t.z0:t.z1)[n],a=t.fv,o=t.pv,i=r.pop(),l=t.z2[t.contours[i]],c=l;exports.DEBUG&&console.log(t.step,"SHC["+e+"]",i);var u=o.distance(s,s,!1,!0);do c!==s&&a.setRelative(c,c,u,o),c=c.nextPointOnContour;while(c!==l)}function Io(e,t){var r=t.stack,n=e?t.rp1:t.rp2,s=(e?t.z0:t.z1)[n],a=t.fv,o=t.pv,i=r.pop();exports.DEBUG&&console.log(t.step,"SHZ["+e+"]",i);var l;switch(i){case 0:l=t.tZone;break;case 1:l=t.gZone;break;default:throw new Error("Invalid zone")}for(var c,u=o.distance(s,s,!1,!0),h=l.length-2,f=0;f<h;f++)c=l[f],a.setRelative(c,c,u,o)}function vp(e){for(var t=e.stack,r=e.loop,n=e.fv,s=t.pop()/64,a=e.z2;r--;){var o=t.pop(),i=a[o];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-r)+": ":"")+"SHPIX[]",o,s),n.setRelative(i,i,s),n.touch(i)}e.loop=1}function gp(e){for(var t=e.stack,r=e.rp1,n=e.rp2,s=e.loop,a=e.z0[r],o=e.z1[n],i=e.fv,l=e.dpv,c=e.z2;s--;){var u=t.pop(),h=c[u];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-s)+": ":"")+"IP[]",u,r,"<->",n),i.interpolate(h,a,o,l),i.touch(h)}e.loop=1}function Po(e,t){var r=t.stack,n=r.pop()/64,s=r.pop(),a=t.z1[s],o=t.z0[t.rp0],i=t.fv,l=t.pv;i.setRelative(a,o,n,l),i.touch(a),exports.DEBUG&&console.log(t.step,"MSIRP["+e+"]",n,s),t.rp1=t.rp0,t.rp2=s,e&&(t.rp0=s)}function mp(e){for(var t=e.stack,r=e.rp0,n=e.z0[r],s=e.loop,a=e.fv,o=e.pv,i=e.z1;s--;){var l=t.pop(),c=i[l];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-s)+": ":"")+"ALIGNRP[]",l),a.setRelative(c,n,0,o),a.touch(c)}e.loop=1}function xp(e){exports.DEBUG&&console.log(e.step,"RTDG[]"),e.round=Ih}function Do(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z0[s],o=t.fv,i=t.pv,l=t.cvt[n];exports.DEBUG&&console.log(t.step,"MIAP["+e+"]",n,"(",l,")",s);var c=i.distance(a,$r);e&&(Math.abs(c-l)<t.cvCutIn&&(c=l),c=t.round(c)),o.setRelative(a,$r,c,i),t.zp0===0&&(a.xo=a.x,a.yo=a.y),o.touch(a),t.rp0=t.rp1=s}function yp(e){var t=e.prog,r=e.ip,n=e.stack,s=t[++r];exports.DEBUG&&console.log(e.step,"NPUSHB[]",s);for(var a=0;a<s;a++)n.push(t[++r]);e.ip=r}function bp(e){var t=e.ip,r=e.prog,n=e.stack,s=r[++t];exports.DEBUG&&console.log(e.step,"NPUSHW[]",s);for(var a=0;a<s;a++){var o=r[++t]<<8|r[++t];o&32768&&(o=-((o^65535)+1)),n.push(o)}e.ip=t}function Sp(e){var t=e.stack,r=e.store;r||(r=e.store=[]);var n=t.pop(),s=t.pop();exports.DEBUG&&console.log(e.step,"WS",n,s),r[s]=n}function wp(e){var t=e.stack,r=e.store,n=t.pop();exports.DEBUG&&console.log(e.step,"RS",n);var s=r&&r[n]||0;t.push(s)}function Tp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"WCVTP",r,n),e.cvt[n]=r/64}function Fp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"RCVT",r),t.push(e.cvt[r]*64)}function Bo(e,t){var r=t.stack,n=r.pop(),s=t.z2[n];exports.DEBUG&&console.log(t.step,"GC["+e+"]",n),r.push(t.dpv.distance(s,$r,e,!1)*64)}function No(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z1[n],o=t.z0[s],i=t.dpv.distance(o,a,e,e);exports.DEBUG&&console.log(t.step,"MD["+e+"]",n,s,"->",i),t.stack.push(Math.round(i*64))}function Cp(e){exports.DEBUG&&console.log(e.step,"MPPEM[]"),e.stack.push(e.ppem)}function kp(e){exports.DEBUG&&console.log(e.step,"FLIPON[]"),e.autoFlip=!0}function Ep(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LT[]",r,n),t.push(n<r?1:0)}function Op(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LTEQ[]",r,n),t.push(n<=r?1:0)}function Up(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"GT[]",r,n),t.push(n>r?1:0)}function Lp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"GTEQ[]",r,n),t.push(n>=r?1:0)}function _p(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"EQ[]",r,n),t.push(r===n?1:0)}function Rp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"NEQ[]",r,n),t.push(r!==n?1:0)}function Ap(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ODD[]",r),t.push(Math.trunc(r)%2?1:0)}function Mp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"EVEN[]",r),t.push(Math.trunc(r)%2?0:1)}function Ip(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"IF[]",t),t||(Jl(e,!0),exports.DEBUG&&console.log(e.step,"EIF[]"))}function Pp(e){exports.DEBUG&&console.log(e.step,"EIF[]")}function Dp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"AND[]",r,n),t.push(r&&n?1:0)}function Bp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"OR[]",r,n),t.push(r||n?1:0)}function Np(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NOT[]",r),t.push(r?0:1)}function ds(e,t){var r=t.stack,n=r.pop(),s=t.fv,a=t.pv,o=t.ppem,i=t.deltaBase+(e-1)*16,l=t.deltaShift,c=t.z0;exports.DEBUG&&console.log(t.step,"DELTAP["+e+"]",n,r);for(var u=0;u<n;u++){var h=r.pop(),f=r.pop(),p=i+((f&240)>>4);if(p===o){var m=(f&15)-8;m>=0&&m++,exports.DEBUG&&console.log(t.step,"DELTAPFIX",h,"by",m*l);var x=c[h];s.setRelative(x,x,m*l,a)}}}function Gp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDB[]",r),e.deltaBase=r}function Hp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDS[]",r),e.deltaShift=Math.pow(.5,r)}function Vp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"ADD[]",r,n),t.push(n+r)}function zp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SUB[]",r,n),t.push(n-r)}function Wp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"DIV[]",r,n),t.push(n*64/r)}function Zp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MUL[]",r,n),t.push(n*r/64)}function $p(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ABS[]",r),t.push(Math.abs(r))}function jp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NEG[]",r),t.push(-r)}function qp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"FLOOR[]",r),t.push(Math.floor(r/64)*64)}function Xp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CEILING[]",r),t.push(Math.ceil(r/64)*64)}function un(e,t){var r=t.stack,n=r.pop();exports.DEBUG&&console.log(t.step,"ROUND[]"),r.push(t.round(n/64)*64)}function Yp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"WCVTF[]",r,n),e.cvt[n]=r*e.ppem/e.font.unitsPerEm}function vs(e,t){var r=t.stack,n=r.pop(),s=t.ppem,a=t.deltaBase+(e-1)*16,o=t.deltaShift;exports.DEBUG&&console.log(t.step,"DELTAC["+e+"]",n,r);for(var i=0;i<n;i++){var l=r.pop(),c=r.pop(),u=a+((c&240)>>4);if(u===s){var h=(c&15)-8;h>=0&&h++;var f=h*o;exports.DEBUG&&console.log(t.step,"DELTACFIX",l,"by",f),t.cvt[l]+=f}}}function Kp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SROUND[]",t),e.round=Kl;var r;switch(t&192){case 0:r=.5;break;case 64:r=1;break;case 128:r=2;break;default:throw new Error("invalid SROUND value")}switch(e.srPeriod=r,t&48){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*r;break;case 32:e.srPhase=.5*r;break;case 48:e.srPhase=.75*r;break;default:throw new Error("invalid SROUND value")}t&=15,t===0?e.srThreshold=0:e.srThreshold=(t/8-.5)*r}function Jp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"S45ROUND[]",t),e.round=Kl;var r;switch(t&192){case 0:r=Math.sqrt(2)/2;break;case 64:r=Math.sqrt(2);break;case 128:r=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(e.srPeriod=r,t&48){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*r;break;case 32:e.srPhase=.5*r;break;case 48:e.srPhase=.75*r;break;default:throw new Error("invalid S45ROUND value")}t&=15,t===0?e.srThreshold=0:e.srThreshold=(t/8-.5)*r}function Qp(e){exports.DEBUG&&console.log(e.step,"ROFF[]"),e.round=Mh}function e2(e){exports.DEBUG&&console.log(e.step,"RUTG[]"),e.round=Dh}function t2(e){exports.DEBUG&&console.log(e.step,"RDTG[]"),e.round=Bh}function r2(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANCTRL[]",t)}function Go(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z2[n],o=t.z1[s];exports.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",n,s);var i,l;e?(i=a.y-o.y,l=o.x-a.x):(i=o.x-a.x,l=o.y-a.y),t.dpv=Qr(i,l)}function n2(e){var t=e.stack,r=t.pop(),n=0;exports.DEBUG&&console.log(e.step,"GETINFO[]",r),r&1&&(n=35),r&32&&(n|=4096),t.push(n)}function s2(e){var t=e.stack,r=t.pop(),n=t.pop(),s=t.pop();exports.DEBUG&&console.log(e.step,"ROLL[]"),t.push(n),t.push(r),t.push(s)}function a2(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MAX[]",r,n),t.push(Math.max(n,r))}function o2(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MIN[]",r,n),t.push(Math.min(n,r))}function i2(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANTYPE[]",t)}function l2(e){var t=e.stack.pop(),r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"INSTCTRL[]",t,r),t){case 1:e.inhibitGridFit=!!r;return;case 2:e.ignoreCvt=!!r;return;default:throw new Error("invalid INSTCTRL[] selector")}}function Mt(e,t){var r=t.stack,n=t.prog,s=t.ip;exports.DEBUG&&console.log(t.step,"PUSHB["+e+"]");for(var a=0;a<e;a++)r.push(n[++s]);t.ip=s}function It(e,t){var r=t.ip,n=t.prog,s=t.stack;exports.DEBUG&&console.log(t.ip,"PUSHW["+e+"]");for(var a=0;a<e;a++){var o=n[++r]<<8|n[++r];o&32768&&(o=-((o^65535)+1)),s.push(o)}t.ip=r}function $(e,t,r,n,s,a){var o=a.stack,i=e&&o.pop(),l=o.pop(),c=a.rp0,u=a.z0[c],h=a.z1[l],f=a.minDis,p=a.fv,m=a.dpv,x,g,y,b;g=x=m.distance(h,u,!0,!0),y=g>=0?1:-1,g=Math.abs(g),e&&(b=a.cvt[i],n&&Math.abs(g-b)<a.cvCutIn&&(g=b)),r&&g<f&&(g=f),n&&(g=a.round(g)),p.setRelative(h,u,y*g,m),p.touch(h),exports.DEBUG&&console.log(a.step,(e?"MIRP[":"MDRP[")+(t?"M":"m")+(r?">":"_")+(n?"R":"_")+(s===0?"Gr":s===1?"Bl":s===2?"Wh":"")+"]",e?i+"("+a.cvt[i]+","+b+")":"",l,"(d =",x,"->",y*g,")"),a.rp1=a.rp0,a.rp2=l,t&&(a.rp0=l)}jl=[ko.bind(void 0,Ct),ko.bind(void 0,gt),Eo.bind(void 0,Ct),Eo.bind(void 0,gt),Oo.bind(void 0,Ct),Oo.bind(void 0,gt),Uo.bind(void 0,0),Uo.bind(void 0,1),Lo.bind(void 0,0),Lo.bind(void 0,1),Gh,Hh,Vh,zh,Wh,Zh,$h,jh,qh,Xh,Yh,Kh,Jh,Qh,ep,tp,rp,np,sp,ap,void 0,void 0,op,ps,ip,lp,up,hp,pp,void 0,void 0,void 0,cp,fp,dp,void 0,_o.bind(void 0,0),_o.bind(void 0,1),Ro.bind(void 0,Ct),Ro.bind(void 0,gt),Ao.bind(void 0,0),Ao.bind(void 0,1),Mo.bind(void 0,0),Mo.bind(void 0,1),Io.bind(void 0,0),Io.bind(void 0,1),vp,gp,Po.bind(void 0,0),Po.bind(void 0,1),mp,xp,Do.bind(void 0,0),Do.bind(void 0,1),yp,bp,Sp,wp,Tp,Fp,Bo.bind(void 0,0),Bo.bind(void 0,1),void 0,No.bind(void 0,0),No.bind(void 0,1),Cp,void 0,kp,void 0,void 0,Ep,Op,Up,Lp,_p,Rp,Ap,Mp,Ip,Pp,Dp,Bp,Np,ds.bind(void 0,1),Gp,Hp,Vp,zp,Wp,Zp,$p,jp,qp,Xp,un.bind(void 0,0),un.bind(void 0,1),un.bind(void 0,2),un.bind(void 0,3),void 0,void 0,void 0,void 0,Yp,ds.bind(void 0,2),ds.bind(void 0,3),vs.bind(void 0,1),vs.bind(void 0,2),vs.bind(void 0,3),Kp,Jp,void 0,void 0,Qp,void 0,e2,t2,ps,ps,void 0,void 0,void 0,void 0,void 0,r2,Go.bind(void 0,0),Go.bind(void 0,1),n2,void 0,s2,a2,o2,i2,l2,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Mt.bind(void 0,1),Mt.bind(void 0,2),Mt.bind(void 0,3),Mt.bind(void 0,4),Mt.bind(void 0,5),Mt.bind(void 0,6),Mt.bind(void 0,7),Mt.bind(void 0,8),It.bind(void 0,1),It.bind(void 0,2),It.bind(void 0,3),It.bind(void 0,4),It.bind(void 0,5),It.bind(void 0,6),It.bind(void 0,7),It.bind(void 0,8),$.bind(void 0,0,0,0,0,0),$.bind(void 0,0,0,0,0,1),$.bind(void 0,0,0,0,0,2),$.bind(void 0,0,0,0,0,3),$.bind(void 0,0,0,0,1,0),$.bind(void 0,0,0,0,1,1),$.bind(void 0,0,0,0,1,2),$.bind(void 0,0,0,0,1,3),$.bind(void 0,0,0,1,0,0),$.bind(void 0,0,0,1,0,1),$.bind(void 0,0,0,1,0,2),$.bind(void 0,0,0,1,0,3),$.bind(void 0,0,0,1,1,0),$.bind(void 0,0,0,1,1,1),$.bind(void 0,0,0,1,1,2),$.bind(void 0,0,0,1,1,3),$.bind(void 0,0,1,0,0,0),$.bind(void 0,0,1,0,0,1),$.bind(void 0,0,1,0,0,2),$.bind(void 0,0,1,0,0,3),$.bind(void 0,0,1,0,1,0),$.bind(void 0,0,1,0,1,1),$.bind(void 0,0,1,0,1,2),$.bind(void 0,0,1,0,1,3),$.bind(void 0,0,1,1,0,0),$.bind(void 0,0,1,1,0,1),$.bind(void 0,0,1,1,0,2),$.bind(void 0,0,1,1,0,3),$.bind(void 0,0,1,1,1,0),$.bind(void 0,0,1,1,1,1),$.bind(void 0,0,1,1,1,2),$.bind(void 0,0,1,1,1,3),$.bind(void 0,1,0,0,0,0),$.bind(void 0,1,0,0,0,1),$.bind(void 0,1,0,0,0,2),$.bind(void 0,1,0,0,0,3),$.bind(void 0,1,0,0,1,0),$.bind(void 0,1,0,0,1,1),$.bind(void 0,1,0,0,1,2),$.bind(void 0,1,0,0,1,3),$.bind(void 0,1,0,1,0,0),$.bind(void 0,1,0,1,0,1),$.bind(void 0,1,0,1,0,2),$.bind(void 0,1,0,1,0,3),$.bind(void 0,1,0,1,1,0),$.bind(void 0,1,0,1,1,1),$.bind(void 0,1,0,1,1,2),$.bind(void 0,1,0,1,1,3),$.bind(void 0,1,1,0,0,0),$.bind(void 0,1,1,0,0,1),$.bind(void 0,1,1,0,0,2),$.bind(void 0,1,1,0,0,3),$.bind(void 0,1,1,0,1,0),$.bind(void 0,1,1,0,1,1),$.bind(void 0,1,1,0,1,2),$.bind(void 0,1,1,0,1,3),$.bind(void 0,1,1,1,0,0),$.bind(void 0,1,1,1,0,1),$.bind(void 0,1,1,1,0,2),$.bind(void 0,1,1,1,0,3),$.bind(void 0,1,1,1,1,0),$.bind(void 0,1,1,1,1,1),$.bind(void 0,1,1,1,1,2),$.bind(void 0,1,1,1,1,3)];function br(e){this.char=e,this.state={},this.activeState=null}function ma(e,t,r){this.contextName=r,this.startIndex=e,this.endOffset=t}function u2(e,t,r){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=r}function nt(e,t){this.context=e,this.index=t,this.length=e.length,this.current=e[t],this.backtrack=e.slice(0,t),this.lookahead=e.slice(t+1)}function jn(e){this.eventId=e,this.subscribers=[]}function c2(e){var t=this,r=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];r.forEach(function(s){Object.defineProperty(t.events,s,{value:new jn(s)})}),e&&r.forEach(function(s){var a=e[s];typeof a=="function"&&t.events[s].subscribe(a)});var n=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];n.forEach(function(s){t.events[s].subscribe(t.updateContextsRanges)})}function Oe(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],c2.call(this,e)}br.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState};br.prototype.getState=function(e){return this.state[e]||null};Oe.prototype.inboundIndex=function(e){return e>=0&&e<this.tokens.length};Oe.prototype.composeRUD=function(e){var t=this,r=!0,n=e.map(function(a){return t[a[0]].apply(t,a.slice(1).concat(r))}),s=function(a){return typeof a=="object"&&a.hasOwnProperty("FAIL")};if(n.every(s))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:n.filter(s)};this.dispatch("composeRUD",[n.filter(function(a){return!s(a)})])};Oe.prototype.replaceRange=function(e,t,r,n){t=t!==null?t:this.tokens.length;var s=r.every(function(o){return o instanceof br});if(!isNaN(e)&&this.inboundIndex(e)&&s){var a=this.tokens.splice.apply(this.tokens,[e,t].concat(r));return n||this.dispatch("replaceToken",[e,t,r]),[a,r]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};Oe.prototype.replaceToken=function(e,t,r){if(!isNaN(e)&&this.inboundIndex(e)&&t instanceof br){var n=this.tokens.splice(e,1,t);return r||this.dispatch("replaceToken",[e,t]),[n[0],t]}else return{FAIL:"replaceToken: invalid token or index."}};Oe.prototype.removeRange=function(e,t,r){t=isNaN(t)?this.tokens.length:t;var n=this.tokens.splice(e,t);return r||this.dispatch("removeRange",[n,e,t]),n};Oe.prototype.removeToken=function(e,t){if(!isNaN(e)&&this.inboundIndex(e)){var r=this.tokens.splice(e,1);return t||this.dispatch("removeToken",[r,e]),r}else return{FAIL:"removeToken: invalid token index."}};Oe.prototype.insertToken=function(e,t,r){var n=e.every(function(s){return s instanceof br});return n?(this.tokens.splice.apply(this.tokens,[t,0].concat(e)),r||this.dispatch("insertToken",[e,t]),e):{FAIL:"insertToken: invalid token(s)."}};Oe.prototype.registerModifier=function(e,t,r){this.events.newToken.subscribe(function(n,s){var a=[n,s],o=t===null||t.apply(this,a)===!0,i=[n,s];if(o){var l=r.apply(this,i);n.setState(e,l)}}),this.registeredModifiers.push(e)};jn.prototype.subscribe=function(e){return typeof e=="function"?this.subscribers.push(e)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}};jn.prototype.unsubscribe=function(e){this.subscribers.splice(e,1)};nt.prototype.setCurrentIndex=function(e){this.index=e,this.current=this.context[e],this.backtrack=this.context.slice(0,e),this.lookahead=this.context.slice(e+1)};nt.prototype.get=function(e){switch(!0){case e===0:return this.current;case(e<0&&Math.abs(e)<=this.backtrack.length):return this.backtrack.slice(e)[0];case(e>0&&e<=this.lookahead.length):return this.lookahead[e-1];default:return null}};Oe.prototype.rangeToText=function(e){if(e instanceof ma)return this.getRangeTokens(e).map(function(t){return t.char}).join("")};Oe.prototype.getText=function(){return this.tokens.map(function(e){return e.char}).join("")};Oe.prototype.getContext=function(e){var t=this.registeredContexts[e];return t||null};Oe.prototype.on=function(e,t){var r=this.events[e];return r?r.subscribe(t):null};Oe.prototype.dispatch=function(e,t){var r=this,n=this.events[e];n instanceof jn&&n.subscribers.forEach(function(s){s.apply(r,t||[])})};Oe.prototype.registerContextChecker=function(e,t,r){if(this.getContext(e))return{FAIL:"context name '"+e+"' is already registered."};if(typeof t!="function")return{FAIL:"missing context start check."};if(typeof r!="function")return{FAIL:"missing context end check."};var n=new u2(e,t,r);return this.registeredContexts[e]=n,this.contextCheckers.push(n),n};Oe.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))};Oe.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}};Oe.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];r.ranges=[]}};Oe.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map(function(n){return n.char}),t=0;t<e.length;t++){var r=new nt(e,t);this.runContextCheck(r)}this.dispatch("updateContextsRanges",[this.registeredContexts])};Oe.prototype.setEndOffset=function(e,t){var r=this.getContext(t).openRange.startIndex,n=new ma(r,e,t),s=this.getContext(t).ranges;return n.rangeId=t+"."+s.length,s.push(n),this.getContext(t).openRange=null,n};Oe.prototype.runContextCheck=function(e){var t=this,r=e.index;this.contextCheckers.forEach(function(n){var s=n.contextName,a=t.getContext(s).openRange;if(!a&&n.checkStart(e)&&(a=new ma(r,null,s),t.getContext(s).openRange=a,t.dispatch("contextStart",[s,r])),a&&n.checkEnd(e)){var o=r-a.startIndex+1,i=t.setEndOffset(o,s);t.dispatch("contextEnd",[s,i])}})};Oe.prototype.tokenize=function(e){this.tokens=[],this.resetContextsRanges();var t=Array.from(e);this.dispatch("start");for(var r=0;r<t.length;r++){var n=t[r],s=new nt(t,r);this.dispatch("next",[s]),this.runContextCheck(s);var a=new br(n);this.tokens.push(a),this.dispatch("newToken",[a,s])}return this.dispatch("end",[this.tokens]),this.tokens};function zt(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function Ql(e){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e)}function Zt(e){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e)}function gn(e){return/[A-z]/.test(e)}function f2(e){return/\s/.test(e)}function Ye(e){this.font=e,this.features={}}function er(e){this.id=e.id,this.tag=e.tag,this.substitution=e.substitution}function en(e,t){if(!e)return-1;switch(t.format){case 1:return t.glyphs.indexOf(e);case 2:for(var r=t.ranges,n=0;n<r.length;n++){var s=r[n];if(e>=s.start&&e<=s.end){var a=e-s.start;return s.index+a}}break;default:return-1}return-1}function h2(e,t){var r=en(e,t.coverage);return r===-1?null:e+t.deltaGlyphId}function p2(e,t){var r=en(e,t.coverage);return r===-1?null:t.substitute[r]}function gs(e,t){for(var r=[],n=0;n<e.length;n++){var s=e[n],a=t.current;a=Array.isArray(a)?a[0]:a;var o=en(a,s);o!==-1&&r.push(o)}return r.length!==e.length?-1:r}function d2(e,t){var r=t.inputCoverage.length+t.lookaheadCoverage.length+t.backtrackCoverage.length;if(e.context.length<r)return[];var n=gs(t.inputCoverage,e);if(n===-1)return[];var s=t.inputCoverage.length-1;if(e.lookahead.length<t.lookaheadCoverage.length)return[];for(var a=e.lookahead.slice(s);a.length&&Zt(a[0].char);)a.shift();var o=new nt(a,0),i=gs(t.lookaheadCoverage,o),l=[].concat(e.backtrack);for(l.reverse();l.length&&Zt(l[0].char);)l.shift();if(l.length<t.backtrackCoverage.length)return[];var c=new nt(l,0),u=gs(t.backtrackCoverage,c),h=n.length===t.inputCoverage.length&&i.length===t.lookaheadCoverage.length&&u.length===t.backtrackCoverage.length,f=[];if(h)for(var p=0;p<t.lookupRecords.length;p++)for(var m=t.lookupRecords[p],x=m.lookupListIndex,g=this.getLookupByIndex(x),y=0;y<g.subtables.length;y++){var b=g.subtables[y],S=this.getLookupMethod(g,b),F=this.getSubstitutionType(g,b);if(F==="12")for(var C=0;C<n.length;C++){var q=e.get(C),D=S(q);D&&f.push(D)}}return f}function v2(e,t){var r=e.current,n=en(r,t.coverage);if(n===-1)return null;for(var s,a=t.ligatureSets[n],o=0;o<a.length;o++){s=a[o];for(var i=0;i<s.components.length;i++){var l=e.lookahead[i],c=s.components[i];if(l!==c)break;if(i===s.components.length-1)return s}}return null}function g2(e,t){var r=en(e,t.coverage);return r===-1?null:t.sequences[r]}Ye.prototype.getDefaultScriptFeaturesIndexes=function(){for(var e=this.font.tables.gsub.scripts,t=0;t<e.length;t++){var r=e[t];if(r.tag==="DFLT")return r.script.defaultLangSys.featureIndexes}return[]};Ye.prototype.getScriptFeaturesIndexes=function(e){var t=this.font.tables;if(!t.gsub)return[];if(!e)return this.getDefaultScriptFeaturesIndexes();for(var r=this.font.tables.gsub.scripts,n=0;n<r.length;n++){var s=r[n];if(s.tag===e&&s.script.defaultLangSys)return s.script.defaultLangSys.featureIndexes;var a=s.langSysRecords;if(a)for(var o=0;o<a.length;o++){var i=a[o];if(i.tag===e){var l=i.langSys;return l.featureIndexes}}}return this.getDefaultScriptFeaturesIndexes()};Ye.prototype.mapTagsToFeatures=function(e,t){for(var r={},n=0;n<e.length;n++){var s=e[n].tag,a=e[n].feature;r[s]=a}this.features[t].tags=r};Ye.prototype.getScriptFeatures=function(e){var t=this.features[e];if(this.features.hasOwnProperty(e))return t;var r=this.getScriptFeaturesIndexes(e);if(!r)return null;var n=this.font.tables.gsub;return t=r.map(function(s){return n.features[s]}),this.features[e]=t,this.mapTagsToFeatures(t,e),t};Ye.prototype.getSubstitutionType=function(e,t){var r=e.lookupType.toString(),n=t.substFormat.toString();return r+n};Ye.prototype.getLookupMethod=function(e,t){var r=this,n=this.getSubstitutionType(e,t);switch(n){case"11":return function(s){return h2.apply(r,[s,t])};case"12":return function(s){return p2.apply(r,[s,t])};case"63":return function(s){return d2.apply(r,[s,t])};case"41":return function(s){return v2.apply(r,[s,t])};case"21":return function(s){return g2.apply(r,[s,t])};default:throw new Error("lookupType: "+e.lookupType+" - substFormat: "+t.substFormat+" is not yet supported")}};Ye.prototype.lookupFeature=function(e){var t=e.contextParams,r=t.index,n=this.getFeature({tag:e.tag,script:e.script});if(!n)return new Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+e.tag+"' for script '"+e.script+"'.");for(var s=this.getFeatureLookups(n),a=[].concat(t.context),o=0;o<s.length;o++)for(var i=s[o],l=this.getLookupSubtables(i),c=0;c<l.length;c++){var u=l[c],h=this.getSubstitutionType(i,u),f=this.getLookupMethod(i,u),p=void 0;switch(h){case"11":p=f(t.current),p&&a.splice(r,1,new er({id:11,tag:e.tag,substitution:p}));break;case"12":p=f(t.current),p&&a.splice(r,1,new er({id:12,tag:e.tag,substitution:p}));break;case"63":p=f(t),Array.isArray(p)&&p.length&&a.splice(r,1,new er({id:63,tag:e.tag,substitution:p}));break;case"41":p=f(t),p&&a.splice(r,1,new er({id:41,tag:e.tag,substitution:p}));break;case"21":p=f(t.current),p&&a.splice(r,1,new er({id:21,tag:e.tag,substitution:p}));break}t=new nt(a,r),!(Array.isArray(p)&&!p.length)&&(p=null)}return a.length?a:null};Ye.prototype.supports=function(e){if(!e.script)return!1;this.getScriptFeatures(e.script);var t=this.features.hasOwnProperty(e.script);if(!e.tag)return t;var r=this.features[e.script].some(function(n){return n.tag===e.tag});return t&&r};Ye.prototype.getLookupSubtables=function(e){return e.subtables||null};Ye.prototype.getLookupByIndex=function(e){var t=this.font.tables.gsub.lookups;return t[e]||null};Ye.prototype.getFeatureLookups=function(e){return e.lookupListIndexes.map(this.getLookupByIndex.bind(this))};Ye.prototype.getFeature=function(t){if(!this.font)return{FAIL:"No font was found"};this.features.hasOwnProperty(t.script)||this.getScriptFeatures(t.script);var r=this.features[t.script];return r?r.tags[t.tag]?this.features[t.script].tags[t.tag]:null:{FAIL:"No feature for script "+t.script}};function m2(e){var t=e.current,r=e.get(-1);return r===null&&zt(t)||!zt(r)&&zt(t)}function x2(e){var t=e.get(1);return t===null||!zt(t)}var y2={startCheck:m2,endCheck:x2};function b2(e){var t=e.current,r=e.get(-1);return(zt(t)||Zt(t))&&!zt(r)}function S2(e){var t=e.get(1);switch(!0){case t===null:return!0;case(!zt(t)&&!Zt(t)):var r=f2(t);if(!r)return!0;if(r){var n=!1;if(n=e.lookahead.some(function(s){return zt(s)||Zt(s)}),!n)return!0}break;default:return!1}}var w2={startCheck:b2,endCheck:S2};function T2(e,t,r){t[r].setState(e.tag,e.substitution)}function F2(e,t,r){t[r].setState(e.tag,e.substitution)}function C2(e,t,r){e.substitution.forEach(function(n,s){var a=t[r+s];a.setState(e.tag,n)})}function k2(e,t,r){var n=t[r];n.setState(e.tag,e.substitution.ligGlyph);for(var s=e.substitution.components.length,a=0;a<s;a++)n=t[r+a+1],n.setState("deleted",!0)}var Ho={11:T2,12:F2,63:C2,41:k2};function xa(e,t,r){e instanceof er&&Ho[e.id]&&Ho[e.id](e,t,r)}function E2(e){for(var t=[].concat(e.backtrack),r=t.length-1;r>=0;r--){var n=t[r],s=Ql(n),a=Zt(n);if(!s&&!a)return!0;if(s)return!1}return!1}function O2(e){if(Ql(e.current))return!1;for(var t=0;t<e.lookahead.length;t++){var r=e.lookahead[t],n=Zt(r);if(!n)return!0}return!1}function U2(e){var t=this,r="arab",n=this.featuresTags[r],s=this.tokenizer.getRangeTokens(e);if(s.length!==1){var a=new nt(s.map(function(i){return i.getState("glyphIndex")}),0),o=new nt(s.map(function(i){return i.char}),0);s.forEach(function(i,l){if(!Zt(i.char)){a.setCurrentIndex(l),o.setCurrentIndex(l);var c=0;E2(o)&&(c|=1),O2(o)&&(c|=2);var u;switch(c){case 1:u="fina";break;case 2:u="init";break;case 3:u="medi";break}if(n.indexOf(u)!==-1){var h=t.query.lookupFeature({tag:u,script:r,contextParams:a});if(h instanceof Error)return console.info(h.message);h.forEach(function(f,p){f instanceof er&&(xa(f,s,p),a.context[p]=f.substitution)})}}})}}function Vo(e,t){var r=e.map(function(n){return n.activeState.value});return new nt(r,0)}function L2(e){var t=this,r="arab",n=this.tokenizer.getRangeTokens(e),s=Vo(n);s.context.forEach(function(a,o){s.setCurrentIndex(o);var i=t.query.lookupFeature({tag:"rlig",script:r,contextParams:s});i.length&&(i.forEach(function(l){return xa(l,n,o)}),s=Vo(n))})}function _2(e){var t=e.current,r=e.get(-1);return r===null&&gn(t)||!gn(r)&&gn(t)}function R2(e){var t=e.get(1);return t===null||!gn(t)}var A2={startCheck:_2,endCheck:R2};function zo(e,t){var r=e.map(function(n){return n.activeState.value});return new nt(r,0)}function M2(e){var t=this,r="latn",n=this.tokenizer.getRangeTokens(e),s=zo(n);s.context.forEach(function(a,o){s.setCurrentIndex(o);var i=t.query.lookupFeature({tag:"liga",script:r,contextParams:s});i.length&&(i.forEach(function(l){return xa(l,n,o)}),s=zo(n))})}function ot(e){this.baseDir=e||"ltr",this.tokenizer=new Oe,this.featuresTags={}}ot.prototype.setText=function(e){this.text=e};ot.prototype.contextChecks={latinWordCheck:A2,arabicWordCheck:y2,arabicSentenceCheck:w2};function ms(e){var t=this.contextChecks[e+"Check"];return this.tokenizer.registerContextChecker(e,t.startCheck,t.endCheck)}function I2(){return ms.call(this,"latinWord"),ms.call(this,"arabicWord"),ms.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function P2(){var e=this,t=this.tokenizer.getContextRanges("arabicSentence");t.forEach(function(r){var n=e.tokenizer.getRangeTokens(r);e.tokenizer.replaceRange(r.startIndex,r.endOffset,n.reverse())})}ot.prototype.registerFeatures=function(e,t){var r=this,n=t.filter(function(s){return r.query.supports({script:e,tag:s})});this.featuresTags.hasOwnProperty(e)?this.featuresTags[e]=this.featuresTags[e].concat(n):this.featuresTags[e]=n};ot.prototype.applyFeatures=function(e,t){if(!e)throw new Error("No valid font was provided to apply features");this.query||(this.query=new Ye(e));for(var r=0;r<t.length;r++){var n=t[r];this.query.supports({script:n.script})&&this.registerFeatures(n.script,n.tags)}};ot.prototype.registerModifier=function(e,t,r){this.tokenizer.registerModifier(e,t,r)};function ya(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function D2(){var e=this,t="arab";if(this.featuresTags.hasOwnProperty(t)){ya.call(this);var r=this.tokenizer.getContextRanges("arabicWord");r.forEach(function(n){U2.call(e,n)})}}function B2(){var e=this,t="arab";if(this.featuresTags.hasOwnProperty(t)){var r=this.featuresTags[t];if(r.indexOf("rlig")!==-1){ya.call(this);var n=this.tokenizer.getContextRanges("arabicWord");n.forEach(function(s){L2.call(e,s)})}}}function N2(){var e=this,t="latn";if(this.featuresTags.hasOwnProperty(t)){var r=this.featuresTags[t];if(r.indexOf("liga")!==-1){ya.call(this);var n=this.tokenizer.getContextRanges("latinWord");n.forEach(function(s){M2.call(e,s)})}}}ot.prototype.checkContextReady=function(e){return!!this.tokenizer.getContext(e)};ot.prototype.applyFeaturesToContexts=function(){this.checkContextReady("arabicWord")&&(D2.call(this),B2.call(this)),this.checkContextReady("latinWord")&&N2.call(this),this.checkContextReady("arabicSentence")&&P2.call(this)};ot.prototype.processText=function(e){(!this.text||this.text!==e)&&(this.setText(e),I2.call(this),this.applyFeaturesToContexts())};ot.prototype.getBidiText=function(e){return this.processText(e),this.tokenizer.getText()};ot.prototype.getTextGlyphs=function(e){this.processText(e);for(var t=[],r=0;r<this.tokenizer.tokens.length;r++){var n=this.tokenizer.tokens[r];if(!n.state.deleted){var s=n.activeState.value;t.push(Array.isArray(s)?s[0]:s)}}return t};function we(e){e=e||{},e.tables=e.tables||{},e.empty||(Cr(e.familyName,"When creating a new Font object, familyName is required."),Cr(e.styleName,"When creating a new Font object, styleName is required."),Cr(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),Cr(e.ascender,"When creating a new Font object, ascender is required."),Cr(e.descender<=0,"When creating a new Font object, negative descender value is required."),this.names={fontFamily:{en:e.familyName||" "},fontSubfamily:{en:e.styleName||" "},fullName:{en:e.fullName||e.familyName+" "+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\s/g,"")},designer:{en:e.designer||" "},designerURL:{en:e.designerURL||" "},manufacturer:{en:e.manufacturer||" "},manufacturerURL:{en:e.manufacturerURL||" "},license:{en:e.license||" "},licenseURL:{en:e.licenseURL||" "},version:{en:e.version||"Version 0.1"},description:{en:e.description||" "},copyright:{en:e.copyright||" "},trademark:{en:e.trademark||" "}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables=Object.assign(e.tables,{os2:Object.assign({usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR},e.tables.os2)})),this.supported=!0,this.glyphs=new xt.GlyphSet(this,e.glyphs||[]),this.encoding=new xl(this),this.position=new Kr(this),this.substitution=new Xe(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat==="truetype")return this._hinting=new Xl(this)}})}we.prototype.hasChar=function(e){return this.encoding.charToGlyphIndex(e)!==null};we.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)};we.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r||(r=this.glyphs.get(0)),r};we.prototype.updateFeatures=function(e){return this.defaultRenderOptions.features.map(function(t){return t.script==="latn"?{script:"latn",tags:t.tags.filter(function(r){return e[r]})}:t})};we.prototype.stringToGlyphs=function(e,t){var r=this,n=new ot,s=function(h){return r.charToGlyphIndex(h.char)};n.registerModifier("glyphIndex",null,s);var a=t?this.updateFeatures(t.features):this.defaultRenderOptions.features;n.applyFeatures(this,a);for(var o=n.getTextGlyphs(e),i=o.length,l=new Array(i),c=this.glyphs.get(0),u=0;u<i;u+=1)l[u]=this.glyphs.get(o[u])||c;return l};we.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)};we.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r||(r=this.glyphs.get(0)),r};we.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""};we.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+","+t]||0};we.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};we.prototype.forEachGlyph=function(e,t,r,n,s,a){t=t!==void 0?t:0,r=r!==void 0?r:0,n=n!==void 0?n:72,s=Object.assign({},this.defaultRenderOptions,s);var o=1/this.unitsPerEm*n,i=this.stringToGlyphs(e,s),l;if(s.kerning){var c=s.script||this.position.getDefaultScriptName();l=this.position.getKerningTables(c,s.language)}for(var u=0;u<i.length;u+=1){var h=i[u];if(a.call(this,h,t,r,n,s),h.advanceWidth&&(t+=h.advanceWidth*o),s.kerning&&u<i.length-1){var f=l?this.position.getKerningValue(l,h.index,i[u+1].index):this.getKerningValue(h,i[u+1]);t+=f*o}s.letterSpacing?t+=s.letterSpacing*n:s.tracking&&(t+=s.tracking/1e3*n)}return t};we.prototype.getPath=function(e,t,r,n,s){var a=new _e;return this.forEachGlyph(e,t,r,n,s,function(o,i,l,c){var u=o.getPath(i,l,c,s,this);a.extend(u)}),a};we.prototype.getPaths=function(e,t,r,n,s){var a=[];return this.forEachGlyph(e,t,r,n,s,function(o,i,l,c){var u=o.getPath(i,l,c,s,this);a.push(u)}),a};we.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})};we.prototype.draw=function(e,t,r,n,s,a){this.getPath(t,r,n,s,a).draw(e)};we.prototype.drawPoints=function(e,t,r,n,s,a){this.forEachGlyph(t,r,n,s,a,function(o,i,l,c){o.drawPoints(e,i,l,c)})};we.prototype.drawMetrics=function(e,t,r,n,s,a){this.forEachGlyph(t,r,n,s,a,function(o,i,l,c){o.drawMetrics(e,i,l,c)})};we.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en};we.prototype.validate=function(){var e=this;function t(n,s){}function r(n){var s=e.getEnglishName(n);s&&s.trim().length>0}r("fontFamily"),r("weightName"),r("manufacturer"),r("copyright"),r("version"),this.unitsPerEm>0};we.prototype.toTables=function(){return kh.fontToTable(this)};we.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()};we.prototype.toArrayBuffer=function(){for(var e=this.toTables(),t=e.encode(),r=new ArrayBuffer(t.length),n=new Uint8Array(r),s=0;s<t.length;s++)n[s]=t[s];return r};we.prototype.download=function(e){var t=this.getEnglishName("fontFamily"),r=this.getEnglishName("fontSubfamily");e=e||t.replace(/\s/g,"")+"-"+r+".otf";var n=this.toArrayBuffer();if(Oh())if(window.URL=window.URL||window.webkitURL,window.URL){var s=new DataView(n),a=new Blob([s],{type:"font/opentype"}),o=document.createElement("a");o.href=window.URL.createObjectURL(a),o.download=e;var i=document.createEvent("MouseEvents");i.initEvent("click",!0,!1),o.dispatchEvent(i)}else console.warn("Font file could not be downloaded. Try using a different browser.");else{var l=require("fs"),c=Uh(n);l.writeFileSync(e,c)}};we.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};we.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9};we.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function e0(e,t){var r=JSON.stringify(e),n=256;for(var s in t){var a=parseInt(s);if(!(!a||a<256)){if(JSON.stringify(t[s])===r)return a;n<=a&&(n=a+1)}}return t[n]=e,n}function G2(e,t,r){var n=e0(t.name,r);return[{name:"tag_"+e,type:"TAG",value:t.tag},{name:"minValue_"+e,type:"FIXED",value:t.minValue<<16},{name:"defaultValue_"+e,type:"FIXED",value:t.defaultValue<<16},{name:"maxValue_"+e,type:"FIXED",value:t.maxValue<<16},{name:"flags_"+e,type:"USHORT",value:0},{name:"nameID_"+e,type:"USHORT",value:n}]}function H2(e,t,r){var n={},s=new j.Parser(e,t);return n.tag=s.parseTag(),n.minValue=s.parseFixed(),n.defaultValue=s.parseFixed(),n.maxValue=s.parseFixed(),s.skip("uShort",1),n.name=r[s.parseUShort()]||{},n}function V2(e,t,r,n){for(var s=e0(t.name,n),a=[{name:"nameID_"+e,type:"USHORT",value:s},{name:"flags_"+e,type:"USHORT",value:0}],o=0;o<r.length;++o){var i=r[o].tag;a.push({name:"axis_"+e+" "+i,type:"FIXED",value:t.coordinates[i]<<16})}return a}function z2(e,t,r,n){var s={},a=new j.Parser(e,t);s.name=n[a.parseUShort()]||{},a.skip("uShort",1),s.coordinates={};for(var o=0;o<r.length;++o)s.coordinates[r[o].tag]=a.parseFixed();return s}function W2(e,t){var r=new Z.Table("fvar",[{name:"version",type:"ULONG",value:65536},{name:"offsetToData",type:"USHORT",value:0},{name:"countSizePairs",type:"USHORT",value:2},{name:"axisCount",type:"USHORT",value:e.axes.length},{name:"axisSize",type:"USHORT",value:20},{name:"instanceCount",type:"USHORT",value:e.instances.length},{name:"instanceSize",type:"USHORT",value:4+e.axes.length*4}]);r.offsetToData=r.sizeOf();for(var n=0;n<e.axes.length;n++)r.fields=r.fields.concat(G2(n,e.axes[n],t));for(var s=0;s<e.instances.length;s++)r.fields=r.fields.concat(V2(s,e.instances[s],e.axes,t));return r}function Z2(e,t,r){var n=new j.Parser(e,t),s=n.parseULong();Q.argument(s===65536,"Unsupported fvar table version.");var a=n.parseOffset16();n.skip("uShort",1);for(var o=n.parseUShort(),i=n.parseUShort(),l=n.parseUShort(),c=n.parseUShort(),u=[],h=0;h<o;h++)u.push(H2(e,t+a+h*i,r));for(var f=[],p=t+a+o*i,m=0;m<l;m++)f.push(z2(e,p+m*c,u,r));return{axes:u,instances:f}}var $2={make:W2,parse:Z2},j2=function(){return{coverage:this.parsePointer(w.coverage),attachPoints:this.parseList(w.pointer(w.uShortList))}},q2=function(){var e=this.parseUShort();if(Q.argument(e===1||e===2||e===3,"Unsupported CaretValue table version."),e===1)return{coordinate:this.parseShort()};if(e===2)return{pointindex:this.parseShort()};if(e===3)return{coordinate:this.parseShort()}},X2=function(){return this.parseList(w.pointer(q2))},Y2=function(){return{coverage:this.parsePointer(w.coverage),ligGlyphs:this.parseList(w.pointer(X2))}},K2=function(){return this.parseUShort(),this.parseList(w.pointer(w.coverage))};function J2(e,t){t=t||0;var r=new w(e,t),n=r.parseVersion(1);Q.argument(n===1||n===1.2||n===1.3,"Unsupported GDEF table version.");var s={version:n,classDef:r.parsePointer(w.classDef),attachList:r.parsePointer(j2),ligCaretList:r.parsePointer(Y2),markAttachClassDef:r.parsePointer(w.classDef)};return n>=1.2&&(s.markGlyphSets=r.parsePointer(K2)),s}var Q2={parse:J2},st=new Array(10);st[1]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{posFormat:1,coverage:this.parsePointer(w.coverage),value:this.parseValueRecord()};if(r===2)return{posFormat:2,coverage:this.parsePointer(w.coverage),values:this.parseValueRecordList()};Q.assert(!1,"0x"+t.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};st[2]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();Q.assert(r===1||r===2,"0x"+t.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(w.coverage),s=this.parseUShort(),a=this.parseUShort();if(r===1)return{posFormat:r,coverage:n,valueFormat1:s,valueFormat2:a,pairSets:this.parseList(w.pointer(w.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(s),value2:this.parseValueRecord(a)}})))};if(r===2){var o=this.parsePointer(w.classDef),i=this.parsePointer(w.classDef),l=this.parseUShort(),c=this.parseUShort();return{posFormat:r,coverage:n,valueFormat1:s,valueFormat2:a,classDef1:o,classDef2:i,class1Count:l,class2Count:c,classRecords:this.parseList(l,w.list(c,function(){return{value1:this.parseValueRecord(s),value2:this.parseValueRecord(a)}}))}}};st[3]=function(){return{error:"GPOS Lookup 3 not supported"}};st[4]=function(){return{error:"GPOS Lookup 4 not supported"}};st[5]=function(){return{error:"GPOS Lookup 5 not supported"}};st[6]=function(){return{error:"GPOS Lookup 6 not supported"}};st[7]=function(){return{error:"GPOS Lookup 7 not supported"}};st[8]=function(){return{error:"GPOS Lookup 8 not supported"}};st[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function ed(e,t){t=t||0;var r=new w(e,t),n=r.parseVersion(1);return Q.argument(n===1||n===1.1,"Unsupported GPOS table version "+n),n===1?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}}var td=new Array(10);function rd(e){return new Z.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new Z.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new Z.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new Z.LookupList(e.lookups,td)}])}var nd={parse:ed,make:rd};function sd(e){var t={};e.skip("uShort");var r=e.parseUShort();Q.argument(r===0,"Unsupported kern sub-table version."),e.skip("uShort",2);var n=e.parseUShort();e.skip("uShort",3);for(var s=0;s<n;s+=1){var a=e.parseUShort(),o=e.parseUShort(),i=e.parseShort();t[a+","+o]=i}return t}function ad(e){var t={};e.skip("uShort");var r=e.parseULong();r>1&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var n=e.parseUShort(),s=n&255;if(e.skip("uShort"),s===0){var a=e.parseUShort();e.skip("uShort",3);for(var o=0;o<a;o+=1){var i=e.parseUShort(),l=e.parseUShort(),c=e.parseShort();t[i+","+l]=c}}return t}function od(e,t){var r=new j.Parser(e,t),n=r.parseUShort();if(n===0)return sd(r);if(n===1)return ad(r);throw new Error("Unsupported kern table version ("+n+").")}var id={parse:od};function ld(e,t,r,n){for(var s=new j.Parser(e,t),a=n?s.parseUShort:s.parseULong,o=[],i=0;i<r+1;i+=1){var l=a.call(s);n&&(l*=2),o.push(l)}return o}var ud={parse:ld};function Wo(e,t){for(var r=[],n=12,s=0;s<t;s+=1){var a=j.getTag(e,n),o=j.getULong(e,n+4),i=j.getULong(e,n+8),l=j.getULong(e,n+12);r.push({tag:a,checksum:o,offset:i,length:l,compression:!1}),n+=16}return r}function cd(e,t){for(var r=[],n=44,s=0;s<t;s+=1){var a=j.getTag(e,n),o=j.getULong(e,n+4),i=j.getULong(e,n+8),l=j.getULong(e,n+12),c=void 0;i<l?c="WOFF":c=!1,r.push({tag:a,offset:o,compression:c,compressedLength:i,length:l}),n+=20}return r}function Ue(e,t){if(t.compression==="WOFF"){var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),n=new Uint8Array(t.length);if(rf(r,n),n.byteLength!==t.length)throw new Error("Decompression error: "+t.tag+" decompressed length doesn't match recorded length");var s=new DataView(n.buffer,0);return{data:s,offset:0}}else return{data:e,offset:t.offset}}function fd(e,t){t=t??{};var r,n,s=new we({empty:!0}),a=new DataView(e,0),o,i=[],l=j.getTag(a,0);if(l==="\0\0\0"||l==="true"||l==="typ1")s.outlinesFormat="truetype",o=j.getUShort(a,4),i=Wo(a,o);else if(l==="OTTO")s.outlinesFormat="cff",o=j.getUShort(a,4),i=Wo(a,o);else if(l==="wOFF"){var c=j.getTag(a,4);if(c==="\0\0\0")s.outlinesFormat="truetype";else if(c==="OTTO")s.outlinesFormat="cff";else throw new Error("Unsupported OpenType flavor "+l);o=j.getUShort(a,12),i=cd(a,o)}else throw new Error("Unsupported OpenType signature "+l);for(var u,h,f,p,m,x,g,y,b,S,F,C,q=0;q<o;q+=1){var D=i[q],k=void 0;switch(D.tag){case"cmap":k=Ue(a,D),s.tables.cmap=ml.parse(k.data,k.offset),s.encoding=new yl(s.tables.cmap);break;case"cvt ":k=Ue(a,D),C=new j.Parser(k.data,k.offset),s.tables.cvt=C.parseShortList(D.length/2);break;case"fvar":h=D;break;case"fpgm":k=Ue(a,D),C=new j.Parser(k.data,k.offset),s.tables.fpgm=C.parseByteList(D.length);break;case"head":k=Ue(a,D),s.tables.head=Ul.parse(k.data,k.offset),s.unitsPerEm=s.tables.head.unitsPerEm,r=s.tables.head.indexToLocFormat;break;case"hhea":k=Ue(a,D),s.tables.hhea=Ll.parse(k.data,k.offset),s.ascender=s.tables.hhea.ascender,s.descender=s.tables.hhea.descender,s.numberOfHMetrics=s.tables.hhea.numberOfHMetrics;break;case"hmtx":g=D;break;case"ltag":k=Ue(a,D),n=Rl.parse(k.data,k.offset);break;case"maxp":k=Ue(a,D),s.tables.maxp=Al.parse(k.data,k.offset),s.numGlyphs=s.tables.maxp.numGlyphs;break;case"name":S=D;break;case"OS/2":k=Ue(a,D),s.tables.os2=Ns.parse(k.data,k.offset);break;case"post":k=Ue(a,D),s.tables.post=Nl.parse(k.data,k.offset),s.glyphNames=new pa(s.tables.post);break;case"prep":k=Ue(a,D),C=new j.Parser(k.data,k.offset),s.tables.prep=C.parseByteList(D.length);break;case"glyf":f=D;break;case"loca":b=D;break;case"CFF ":u=D;break;case"kern":y=D;break;case"GDEF":p=D;break;case"GPOS":m=D;break;case"GSUB":x=D;break;case"meta":F=D;break}}var L=Ue(a,S);if(s.tables.name=Bl.parse(L.data,L.offset,n),s.names=s.tables.name,f&&b){var V=r===0,N=Ue(a,b),X=ud.parse(N.data,N.offset,s.numGlyphs,V),se=Ue(a,f);s.glyphs=$l.parse(se.data,se.offset,X,s,t)}else if(u){var oe=Ue(a,u);Ol.parse(oe.data,oe.offset,s,t)}else throw new Error("Font doesn't contain TrueType or CFF outlines.");var R=Ue(a,g);if(_l.parse(s,R.data,R.offset,s.numberOfHMetrics,s.numGlyphs,s.glyphs,t),Ff(s,t),y){var G=Ue(a,y);s.kerningPairs=id.parse(G.data,G.offset)}else s.kerningPairs={};if(p){var A=Ue(a,p);s.tables.gdef=Q2.parse(A.data,A.offset)}if(m){var z=Ue(a,m);s.tables.gpos=nd.parse(z.data,z.offset),s.position.init()}if(x){var ee=Ue(a,x);s.tables.gsub=Gl.parse(ee.data,ee.offset)}if(h){var fe=Ue(a,h);s.tables.fvar=$2.parse(fe.data,fe.offset,s.names)}if(F){var ue=Ue(a,F);s.tables.meta=Hl.parse(ue.data,ue.offset),s.metas=s.tables.meta}return s}async function hd(e,t){try{const r=await fetch(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const n=r.headers.get("content-length"),s=n?parseInt(n):0;if(!r.body)throw new Error("Response body is null");const a=r.body.getReader(),o=[];let i=0;for(;;){const{done:h,value:f}=await a.read();if(h)break;o.push(f),i+=f.length,s>0&&t&&t(Math.round(i/s*100))}const l=o.reduce((h,f)=>h+f.length,0),c=new Uint8Array(l);let u=0;for(const h of o)c.set(h,u),u+=h.length;return fd(c.buffer)}catch(r){throw new Error(`Failed to load font from ${e}: ${r}`)}}const Sr=ll("font",()=>{function e(R){try{const G=localStorage.getItem(R);if(!G)return new Set;const A=JSON.parse(G);return Array.isArray(A)?new Set(A.map(String)):new Set}catch{return new Set}}function t(R,G){try{localStorage.setItem(R,JSON.stringify(Array.from(G)))}catch{}}const r=Ce([]),n=Ce(new Set),s=Ce(e("font.favoriteFontIds")),a=Ce(e("font.previewFontIds")),o=Ce(e("font.expandedCategories")),i=Ce([]),l=Ce(!1),c=new Map,u=be(()=>r.value.filter(R=>n.value.has(R.id))),h=be(()=>r.value.filter(R=>s.value.has(R.id))),f=be(()=>r.value.filter(R=>a.value.has(R.id))),p=be(()=>se(h.value));function m(R){r.value.push(R)}function x(R){const G=r.value.findIndex(A=>A.id===R);G!==-1&&r.value.splice(G,1),n.value.delete(R),s.value.delete(R),t("font.favoriteFontIds",s.value),a.value.delete(R),t("font.previewFontIds",a.value)}function g(R){n.value.add(R)}function y(R){n.value.delete(R)}function b(R){n.value.has(R)?y(R):g(R)}function S(){n.value.clear()}function F(R){const G=r.value.find(A=>A.id===R);G&&(G.isFavorite=!0,s.value.add(R),t("font.favoriteFontIds",s.value))}function C(R){const G=r.value.find(A=>A.id===R);G&&(G.isFavorite=!1,s.value.delete(R),t("font.favoriteFontIds",s.value))}function q(R){s.value.has(R)?C(R):F(R)}function D(R){a.value.add(R),t("font.previewFontIds",a.value)}function k(R){a.value.delete(R),t("font.previewFontIds",a.value)}function L(R){a.value.has(R)?k(R):D(R)}function V(){a.value.clear(),t("font.previewFontIds",a.value)}function N(R,G){const A=new Set(o.value);G?A.add(R):A.delete(R),o.value=A,t("font.expandedCategories",o.value)}async function X(R){if(R.loaded||!R.path)return;const G=c.get(R.id);if(G){await G;return}const A=(async()=>{try{const z=await hd(R.path,ee=>{R.progress=ee});R.font=z,R.loaded=!0,R.progress=100}catch(z){throw console.error(`Failed to load font ${R.name}:`,z),z}finally{c.delete(R.id)}})();c.set(R.id,A),await A}function se(R){const G=[],A=new Map;for(const z of R){let ee=A.get(z.category);ee||(ee={name:z.category,type:"category",children:[],expanded:o.value.has(z.category),selected:!1},A.set(z.category,ee),G.push(ee));const fe={name:z.name,type:"font",fontInfo:z,expanded:!1,selected:n.value.has(z.id)};ee.children.push(fe)}G.sort((z,ee)=>z.name.localeCompare(ee.name,"zh-CN"));for(const z of G)z.children&&z.children.sort((ee,fe)=>ee.name.localeCompare(fe.name,"zh-CN"));return G}function oe(){i.value=se(r.value)}return{fonts:r,selectedFontIds:n,favoriteFontIds:s,previewFontIds:a,expandedCategoryNames:o,fontTree:i,isLoadingFonts:l,selectedFonts:u,favoriteFonts:h,previewFonts:f,favoriteTree:p,addFont:m,removeFont:x,selectFont:g,unselectFont:y,toggleSelectFont:b,clearSelection:S,favoriteFont:F,unfavoriteFont:C,toggleFavorite:q,addToPreview:D,removeFromPreview:k,togglePreview:L,clearPreview:V,setCategoryExpanded:N,loadFont:X,updateFontTree:oe}});function pd(){const e=Sr();async function t(){console.log("Starting to load font list..."),e.isLoadingFonts=!0;try{console.log("Fetching /fonts.json...");const r=await fetch("/fonts.json");if(console.log("Response status:",r.status,r.statusText),!r.ok)throw new Error(`Failed to load fonts.json: ${r.statusText}`);const n=await r.json();console.log("Loaded font list:",n.length,"fonts");for(const s of n){const a={id:s.id,name:s.name,path:s.path,category:s.category,isFavorite:!1,loaded:!1,progress:0};e.addFont(a)}e.updateFontTree(),console.log(`Successfully loaded ${n.length} fonts`)}catch(r){console.error("Failed to load font list:",r),alert("加载字体列表失败,请刷新页面重试")}finally{e.isLoadingFonts=!1,console.log("Font loading finished")}}return _i(()=>{console.log("useFontLoader: onMounted called"),t()}),{loadFontList:t}}const t0=ll("ui",()=>{function e(L){return Math.max(10,Math.min(500,L))}const t=(()=>{try{const L=localStorage.getItem("ui.fontSize"),V=L?Number(L):NaN;return Number.isFinite(V)?e(V):100}catch{return 100}})(),r=(()=>{try{return localStorage.getItem("ui.inputText")||""}catch{return""}})(),n=(()=>{try{return localStorage.getItem("ui.textColor")||"#000000"}catch{return"#000000"}})(),s=(()=>{try{const L=localStorage.getItem("ui.selectedExportItems");return L?JSON.parse(L):[]}catch{return[]}})(),a=Ce(r),o=Ce(t),i=Ce(n),l=Ce(0),c=Ce(!0),u=Ce(s),h=Ce(!1),f=Ce(!0),p=Ce(!0);function m(L){a.value=L;try{localStorage.setItem("ui.inputText",L)}catch{}}function x(L){const V=e(L);o.value=V;try{localStorage.setItem("ui.fontSize",String(V))}catch{}}function g(L){i.value=L;try{localStorage.setItem("ui.textColor",L)}catch{}}function y(L){l.value=L}function b(){c.value=!c.value}function S(L){const V=u.value.findIndex(N=>N.fontInfo.id===L.fontInfo.id);V>=0?u.value.splice(V,1):u.value.push(L);try{localStorage.setItem("ui.selectedExportItems",JSON.stringify(u.value))}catch{}}function F(L){const V=u.value.filter(N=>L.has(N.fontInfo.id));if(V.length!==u.value.length){u.value=V;try{localStorage.setItem("ui.selectedExportItems",JSON.stringify(u.value))}catch{}}}function C(){u.value=[];try{localStorage.setItem("ui.selectedExportItems",JSON.stringify([]))}catch{}}function q(L){u.value=[...L];try{localStorage.setItem("ui.selectedExportItems",JSON.stringify(u.value))}catch{}}function D(){f.value=!f.value}function k(){p.value=!p.value}return{inputText:a,fontSize:o,textColor:i,letterSpacing:l,enableLigatures:c,selectedExportItems:u,isExporting:h,isFontSelectorExpanded:f,isFavoritesExpanded:p,setInputText:m,setFontSize:x,setTextColor:g,setLetterSpacing:y,toggleLigatures:b,toggleExportItem:S,retainExportItemsByFontIds:F,clearExportSelection:C,selectAllExportItems:q,toggleFontSelectorExpanded:D,toggleFavoritesExpanded:k}}),Hs=45;function Zo(e){return e.replace(/\r\n?/g,`
|
||
`)}function Vs(e,t=Hs){if(t<=0)return Zo(e);const n=Zo(e).split(`
|
||
`),s=[];for(const a of n){const o=Array.from(a);if(o.length===0){s.push("");continue}for(let i=0;i<o.length;i+=t)s.push(o.slice(i,i+t).join(""))}return s.join(`
|
||
`)}const dd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20fill='none'%20viewBox='0%200%2015%2015'%3e%3cpath%20fill='%23000'%20d='M15%207.5a7.5%207.5%200%201%201-15%200%207.5%207.5%200%200%201%2015%200Z'/%3e%3cpath%20fill='%23fff'%20d='M3%207.75A.75.75%200%200%201%203.75%207h7.5a.75.75%200%200%201%200%201.5h-7.5A.75.75%200%200%201%203%207.75Z'/%3e%3c/svg%3e",vd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20fill='none'%20viewBox='0%200%2015%2015'%3e%3cpath%20fill='%23000'%20d='M7.5%200a7.5%207.5%200%200%200%200%2015%207.5%207.5%200%200%200%200-15Zm4.242%206.567L8.03%2010.28a.751.751%200%200%201-1.062%200l-3.71-3.713A.751.751%200%200%201%204.32%205.505L7.5%208.688l3.183-3.18a.75.75%200%201%201%201.06%201.06Z'/%3e%3c/svg%3e",r0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='none'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%230079F5'%20d='M12.391%2016H3.61A3.61%203.61%200%200%201%200%2012.391V3.61A3.609%203.609%200%200%201%203.609%200h8.782A3.61%203.61%200%200%201%2016%203.609v8.782A3.61%203.61%200%200%201%2012.391%2016Z'/%3e%3cpath%20fill='%23fff'%20d='M10.404%204.972a.6.6%200%200%200-1.103%200L7.18%209.94a.402.402%200%201%200%20.74.312l.244-.588c.21-.506.704-.835%201.252-.835h.873c.547%200%201.041.33%201.251.835l.244.588a.402.402%200%201%200%20.74-.312l-2.12-4.968ZM10.5%207.16a.7.7%200%201%201-1.293.54.7.7%200%200%201%201.293-.54Zm-5.018-.978a.422.422%200%200%200-.775%200L3.416%209.206a.301.301%200%201%200%20.555.233l.134-.323a.825.825%200%200%201%20.762-.509h.455c.333%200%20.634.201.762.51l.134.322a.301.301%200%201%200%20.555-.233L5.483%206.18Zm-.388%201.89a.37.37%200%201%201%200-.74.37.37%200%200%201%200%20.74Z'/%3e%3c/svg%3e",ba="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20fill='none'%20viewBox='0%200%2018%2018'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%238552A1'%20d='M9%200a9%209%200%200%200-9%209%209%209%200%200%200%209%209%209%209%200%200%200%209-9%209%209%200%200%200-9-9Zm5.934%206.21L8.16%2012.988a.843.843%200%200%201-.599.247.844.844%200%200%201-.6-.247L3.066%209.09a.846.846%200%201%201%201.198-1.197L7.56%2011.19l6.177-6.177a.847.847%200%201%201%201.197%201.198Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h18v18H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",n0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='17'%20fill='none'%20viewBox='0%200%2018%2017'%3e%3cpath%20fill='%23fff'%20stroke='%238552A1'%20stroke-width='.855'%20d='M12.94.428c2.52%200%204.632%202.255%204.632%205.103%200%201.68-.743%202.87-1.4%203.895-.92%201.437-2.554%203.077-4.008%204.394a49.45%2049.45%200%200%201-2.774%202.34l-.008.006a.607.607%200%200%201-.673.06l-.09-.06-.009-.007-.27-.21a51.872%2051.872%200%200%201-2.508-2.125c-1.455-1.316-3.088-2.955-4.004-4.396v-.001l-.249-.394C.997%208.096.428%207.001.428%205.531.428%202.683%202.54.428%205.06.428c1.402%200%202.725.706%203.595%201.888l.343.465.345-.463c.882-1.185%202.196-1.89%203.597-1.89Z'/%3e%3c/svg%3e",zs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20fill='none'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='%238552A1'%20d='M15.608%2015.302a.717.717%200%200%201%20.218.524.712.712%200%200%201-.218.524.729.729%200%200%201-.525.218H4.326a1.78%201.78%200%200%201-1.303-.542%201.78%201.78%200%200%201-.543-1.303V3.963c0-.207.073-.383.218-.525a.728.728%200%200%201%20.525-.218c.203%200%20.382.072.524.218a.728.728%200%200%201%20.218.524v10.015c0%20.303.11.56.327.78.219.217.473.326.776.326h10.015c.206%200%20.38.073.525.219Zm-2.97%202.227a.717.717%200%200%201%20.218.524.712.712%200%200%201-.218.524.729.729%200%200%201-.524.218H2.098a1.78%201.78%200%200%201-1.303-.542%201.785%201.785%200%200%201-.545-1.306V6.932c0-.206.073-.382.218-.524a.728.728%200%200%201%20.524-.219c.203%200%20.382.073.525.219a.728.728%200%200%201%20.218.524v9.272c0%20.304.109.561.327.78.218.217.476.327.779.327h9.273c.203%200%20.378.072.524.218ZM18.153.892c.427.43.643.952.643%201.567v9.67c0%20.615-.216%201.14-.643%201.566a2.136%202.136%200%200%201-1.567.643H6.914c-.616%200-1.14-.215-1.567-.643a2.129%202.129%200%200%201-.642-1.563V2.459c0-.615.215-1.14.642-1.567A2.136%202.136%200%200%201%206.914.25h9.67c.617%200%201.139.215%201.569.642Zm-.842%202.164c0-.364-.13-.673-.388-.933a1.263%201.263%200%200%200-.934-.388H7.514c-.364%200-.673.13-.934.388a1.27%201.27%200%200%200-.39.933v8.476c0%20.364.13.672.387.933.258.26.57.388.934.388h8.475c.364%200%20.673-.13.934-.388.26-.257.388-.57.388-.933V3.056h.003Z'/%3e%3cpath%20fill='%238552A1'%20d='M10.114%209.583%207.966%207.61l-.716.658%202.864%202.633L16.25%205.26l-.716-.659-5.42%204.983Z'/%3e%3cpath%20stroke='%238552A1'%20stroke-width='.5'%20d='M15.608%2015.302a.717.717%200%200%201%20.218.524.712.712%200%200%201-.218.524.729.729%200%200%201-.525.218H4.326a1.78%201.78%200%200%201-1.303-.542%201.78%201.78%200%200%201-.543-1.303V3.963c0-.207.073-.383.218-.525a.728.728%200%200%201%20.525-.218c.203%200%20.382.072.524.218a.728.728%200%200%201%20.218.524v10.015c0%20.303.11.56.327.78.219.217.473.326.776.326h10.015c.206%200%20.38.073.525.219Zm-2.97%202.227a.717.717%200%200%201%20.218.524.712.712%200%200%201-.218.524.729.729%200%200%201-.524.218H2.098a1.78%201.78%200%200%201-1.303-.542%201.785%201.785%200%200%201-.545-1.306V6.932c0-.206.073-.382.218-.524a.728.728%200%200%201%20.524-.219c.203%200%20.382.073.525.219a.728.728%200%200%201%20.218.524v9.272c0%20.304.109.561.327.78.218.217.476.327.779.327h9.273c.203%200%20.378.072.524.218ZM18.153.892c.427.43.643.952.643%201.567v9.67c0%20.615-.216%201.14-.643%201.566a2.136%202.136%200%200%201-1.567.643H6.914c-.616%200-1.14-.215-1.567-.643a2.129%202.129%200%200%201-.642-1.563V2.459c0-.615.215-1.14.642-1.567A2.136%202.136%200%200%201%206.914.25h9.67c.617%200%201.139.215%201.569.642Zm-.842%202.164c0-.364-.13-.673-.388-.933a1.263%201.263%200%200%200-.934-.388H7.514c-.364%200-.673.13-.934.388a1.27%201.27%200%200%200-.39.933v8.476c0%20.364.13.672.387.933.258.26.57.388.934.388h8.475c.364%200%20.673-.13.934-.388.26-.257.388-.57.388-.933V3.056h.003Z'/%3e%3cpath%20stroke='%238552A1'%20stroke-width='.5'%20d='M10.114%209.583%207.966%207.61l-.716.658%202.864%202.633L16.25%205.26l-.716-.659-5.42%204.983Z'/%3e%3c/svg%3e",Ws="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20fill='none'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='%238552A1'%20d='M15.608%2015.302a.717.717%200%200%201%20.218.524.712.712%200%200%201-.218.524.729.729%200%200%201-.525.218H4.326a1.78%201.78%200%200%201-1.303-.542%201.78%201.78%200%200%201-.543-1.303V3.963c0-.207.073-.383.218-.525a.728.728%200%200%201%20.525-.218c.203%200%20.382.072.524.218a.728.728%200%200%201%20.218.524v10.015c0%20.303.11.56.327.78.219.217.473.326.776.326h10.015c.206%200%20.38.073.525.219Zm-2.97%202.227a.717.717%200%200%201%20.218.524.712.712%200%200%201-.218.524.729.729%200%200%201-.524.218H2.098a1.78%201.78%200%200%201-1.303-.542%201.785%201.785%200%200%201-.545-1.306V6.932c0-.206.073-.382.218-.524a.728.728%200%200%201%20.524-.219c.203%200%20.382.073.525.219a.728.728%200%200%201%20.218.524v9.272c0%20.304.109.561.327.78.218.217.476.327.779.327h9.273c.203%200%20.378.072.524.218ZM18.153.892c.427.43.643.952.643%201.567v9.67c0%20.615-.216%201.14-.643%201.566a2.136%202.136%200%200%201-1.567.643H6.914c-.616%200-1.14-.215-1.567-.643a2.129%202.129%200%200%201-.642-1.563V2.459c0-.615.215-1.14.642-1.567A2.136%202.136%200%200%201%206.914.25h9.67c.617%200%201.139.215%201.569.642Zm-.842%202.164c0-.364-.13-.673-.388-.933a1.263%201.263%200%200%200-.934-.388H7.514c-.364%200-.673.13-.934.388a1.27%201.27%200%200%200-.39.933v8.476c0%20.364.13.672.387.933.258.26.57.388.934.388h8.475c.364%200%20.673-.13.934-.388.26-.257.388-.57.388-.933V3.056h.003Z'/%3e%3cpath%20fill='%238552A1'%20d='m15.523%204.546-.806-.705-3.194%202.795L8.328%203.84l-.805.705%203.194%202.795-3.194%202.795.805.705%203.195-2.795%203.194%202.795.806-.705-3.195-2.795%203.195-2.795Z'/%3e%3cpath%20stroke='%238552A1'%20stroke-width='.5'%20d='M15.608%2015.302a.717.717%200%200%201%20.218.524.712.712%200%200%201-.218.524.729.729%200%200%201-.525.218H4.326a1.78%201.78%200%200%201-1.303-.542%201.78%201.78%200%200%201-.543-1.303V3.963c0-.207.073-.383.218-.525a.728.728%200%200%201%20.525-.218c.203%200%20.382.072.524.218a.728.728%200%200%201%20.218.524v10.015c0%20.303.11.56.327.78.219.217.473.326.776.326h10.015c.206%200%20.38.073.525.219Zm-2.97%202.227a.717.717%200%200%201%20.218.524.712.712%200%200%201-.218.524.729.729%200%200%201-.524.218H2.098a1.78%201.78%200%200%201-1.303-.542%201.785%201.785%200%200%201-.545-1.306V6.932c0-.206.073-.382.218-.524a.728.728%200%200%201%20.524-.219c.203%200%20.382.073.525.219a.728.728%200%200%201%20.218.524v9.272c0%20.304.109.561.327.78.218.217.476.327.779.327h9.273c.203%200%20.378.072.524.218ZM18.153.892c.427.43.643.952.643%201.567v9.67c0%20.615-.216%201.14-.643%201.566a2.136%202.136%200%200%201-1.567.643H6.914c-.616%200-1.14-.215-1.567-.643a2.129%202.129%200%200%201-.642-1.563V2.459c0-.615.215-1.14.642-1.567A2.136%202.136%200%200%201%206.914.25h9.67c.617%200%201.139.215%201.569.642Zm-.842%202.164c0-.364-.13-.673-.388-.933a1.263%201.263%200%200%200-.934-.388H7.514c-.364%200-.673.13-.934.388a1.27%201.27%200%200%200-.39.933v8.476c0%20.364.13.672.387.933.258.26.57.388.934.388h8.475c.364%200%20.673-.13.934-.388.26-.257.388-.57.388-.933V3.056h.003Z'/%3e%3cpath%20stroke='%238552A1'%20stroke-width='.5'%20d='m15.523%204.546-.806-.705-3.194%202.795L8.328%203.84l-.805.705%203.194%202.795-3.194%202.795.805.705%203.195-2.795%203.194%202.795.806-.705-3.195-2.795%203.195-2.795Z'/%3e%3c/svg%3e",gd={class:"space-y-0"},md={key:0,class:"relative mb-3"},xd={class:"flex items-center gap-2"},yd={class:"tree-icon-wrapper"},bd=["onClick","disabled"],Sd={key:1,src:vd,alt:"展开",class:"w-[15px] h-[15px]"},wd=["onClick"],Td={class:"flex items-center gap-2 shrink-0 mr-[1px]"},Fd=["onClick"],Cd=["src"],kd={key:0,class:"tree-vertical-line"},Ed={key:1,class:"flex flex-col gap-3 mt-3"},Od={class:"flex-1 text-xs text-[#86909c]"},Ud=["onClick"],Ld={key:0,src:ba,alt:"选中",class:"w-[11px] h-[9px]"},_d=["onClick"],Rd=qr({__name:"FontTree",props:{nodes:{},searchKeyword:{},selectedOnly:{type:Boolean}},setup(e){const t=e,r=Sr(),n=be(()=>(t.searchKeyword??"").trim().toLowerCase()),s=be(()=>n.value.length>0),a=be(()=>s.value||t.selectedOnly===!0);function o(b){if(b.type!=="category"||!b.children)return[];const S=b.children.filter(q=>q.type==="font"&&!!q.fontInfo),F=t.selectedOnly?S.filter(q=>r.previewFontIds.has(q.fontInfo.id)):S;if(!s.value)return F;const C=n.value;return b.name.toLowerCase().includes(C)?F:F.filter(q=>q.name.toLowerCase().includes(C))}function i(b){return b.type==="category"&&o(b).length>0}function l(b){return a.value?!0:!!b.expanded}function c(b){if(a.value)return;const S=!b.expanded;b.expanded=S,r.setCategoryExpanded(b.name,S)}function u(b,S){S.stopPropagation(),b.type==="font"&&b.fontInfo&&r.togglePreview(b.fontInfo.id)}function h(b,S){S.stopPropagation(),b.type==="font"&&b.fontInfo&&r.toggleFavorite(b.fontInfo.id)}function f(b){return b.type==="font"&&b.fontInfo?r.favoriteFontIds.has(b.fontInfo.id):!1}function p(b){return b.type==="font"&&b.fontInfo?r.previewFontIds.has(b.fontInfo.id):!1}function m(b){return o(b).map(S=>S.fontInfo.id)}function x(b){return o(b).length}function g(b){const S=m(b);return S.length>0&&S.every(F=>r.previewFontIds.has(F))}function y(b,S){S.stopPropagation();const F=m(b);F.length!==0&&(g(b)?F.forEach(C=>r.removeFromPreview(C)):F.forEach(C=>r.addToPreview(C)))}return(b,S)=>(pe(),ge("div",gd,[(pe(!0),ge(ze,null,wn(e.nodes,F=>(pe(),ge("div",{key:F.name},[i(F)?(pe(),ge("div",md,[I("div",xd,[I("div",yd,[I("button",{onClick:C=>c(F),class:"tree-toggle",disabled:a.value},[l(F)?(pe(),ge("img",{key:0,src:dd,alt:"收起",class:vt(["w-[15px] h-[15px]",{"opacity-70":a.value}])},null,2)):(pe(),ge("img",Sd))],8,bd)]),I("div",{onClick:C=>c(F),class:vt(["text-base font-medium text-black flex-1 ml-2",a.value?"cursor-default":"cursor-pointer"])},Qe(F.name)+"("+Qe(x(F))+"字体) ",11,wd),I("div",Td,[I("button",{onClick:C=>y(F,C),class:"w-4 h-4 shrink-0 p-0 border-0 bg-transparent cursor-pointer hover:opacity-85 transition-opacity",title:"分类全选/全不选"},[I("img",{src:g(F)?Me(Ws):Me(zs),alt:"分类全选/全不选",class:"w-full h-full"},null,8,Cd)],8,Fd),S[0]||(S[0]=I("div",{class:"w-[18px] h-[17px] shrink-0","aria-hidden":"true"},null,-1))])]),l(F)&&o(F).length>0?(pe(),ge("div",kd)):tr("",!0),l(F)&&o(F).length>0?(pe(),ge("div",Ed,[(pe(!0),ge(ze,null,wn(o(F),C=>(pe(),ge("div",{key:C.name,class:"flex items-center gap-2 border-b border-[#c9cdd4] pb-2 relative"},[S[1]||(S[1]=I("div",{class:"tree-horizontal-line"},null,-1)),S[2]||(S[2]=I("div",{class:"w-4 h-4 shrink-0 ml-[17px]"},[I("img",{src:r0,alt:"font",class:"w-full h-full"})],-1)),I("div",Od,Qe(C.name),1),I("button",{onClick:q=>u(C,q),class:vt(["w-[18px] h-[18px] shrink-0 border rounded-full flex items-center justify-center p-0 bg-transparent",p(C)?"bg-[#9b6bc2] border-[#9b6bc2]":"border-[#c9cdd4]"])},[p(C)?(pe(),ge("img",Ld)):tr("",!0)],10,Ud),I("button",{onClick:q=>h(C,q),class:"w-[18px] h-[17px] shrink-0 p-0 border-0 bg-transparent"},[I("img",{src:n0,alt:"收藏",class:vt(["w-full h-full",f(C)?"favorite-active":""])},null,2)],8,_d)]))),128))])):tr("",!0)])):tr("",!0)]))),128))]))}}),qn=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Ad=qn(Rd,[["__scopeId","data-v-1709e607"]]),Md="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%20viewBox='0%200%2032%2032'%3e%3crect%20width='32'%20height='32'%20fill='%238552A1'%20rx='10'%20transform='matrix(-1%200%200%201%2032%200)'/%3e%3cpath%20fill='%23FEFDFE'%20d='m24.845%2022.204-5.101-5.105-2.64%202.64%205.105%205.104a1.085%201.085%200%200%200%201.527%200l1.108-1.108a1.09%201.09%200%200%200%200-1.531ZM17.22%2018.6l1.382-1.382-1.576-1.576a5.512%205.512%200%200%200-.63-7.032%205.51%205.51%200%200%200-7.785%200c-2.15%202.146-2.146%205.635%200%207.785a5.512%205.512%200%200%200%207.033.63l1.575%201.576Zm-7.541-3.288a3.983%203.983%200%200%201%200-5.635%203.983%203.983%200%200%201%205.635%200%203.983%203.983%200%200%201%200%205.635%203.983%203.983%200%200%201-5.635%200Z'/%3e%3c/svg%3e",Id={class:"space-y-2 pb-1"},Pd={class:"sticky top-0 z-10 bg-white pt-1 pb-1"},Dd={class:"flex items-center gap-3"},Bd={class:"flex-1 min-w-0"},Nd={class:"h-8 rounded-[10px] bg-[#F3EDF7] pl-2 flex items-center"},Gd={type:"button",class:"w-8 h-8 shrink-0 p-0 border-0 bg-transparent flex items-center justify-center","aria-hidden":"true"},Hd=["src"],Vd={key:0,class:"text-sm text-gray-500 text-center py-8"},zd=qr({__name:"FontSelector",setup(e){const t=Sr(),r=Ce(""),n=be(()=>t.fontTree),s=be(()=>r.value.trim().toLowerCase()),a=be(()=>{const u=s.value;return u.includes("选中")||u.includes("选择")||u.includes("已选")||u.includes("xuan")}),o=be(()=>a.value?"":s.value),i=be(()=>s.value.length>0);function l(u){if(u.type!=="category")return!1;const h=(u.children??[]).filter(m=>m.type==="font"&&!!m.fontInfo),f=a.value?h.filter(m=>!!m.fontInfo&&t.previewFontIds.has(m.fontInfo.id)):h;if(o.value.length===0)return f.length>0;const p=o.value;return u.name.toLowerCase().includes(p)?f.length>0:f.some(m=>m.name.toLowerCase().includes(p))}const c=be(()=>i.value?n.value.some(u=>l(u)):n.value.length>0);return(u,h)=>(pe(),ge("div",Id,[I("div",Pd,[I("div",Dd,[h[1]||(h[1]=I("div",{class:"text-[16px] leading-none text-black font-bold shrink-0"}," 选择预览字体 ",-1)),I("div",Bd,[I("div",Nd,[hn(I("input",{"onUpdate:modelValue":h[0]||(h[0]=f=>r.value=f),type:"text",placeholder:"输入搜索字体名称","aria-label":"字体搜索",class:"flex-1 min-w-0 bg-transparent border-none outline-none text-[14px] text-black placeholder-[#a2a0a9]"},null,512),[[Ec,r.value]]),I("button",Gd,[I("img",{src:Me(Md),alt:"",class:"w-[24px] h-[24px]"},null,8,Hd)])])])])]),c.value?(pe(),Ki(Ad,{key:1,nodes:n.value,"search-keyword":o.value,"selected-only":a.value},null,8,["nodes","search-keyword","selected-only"])):(pe(),ge("div",Vd,Qe(i.value?"未找到匹配字体":"暂无字体"),1))]))}}),Wd={class:"space-y-2"},Zd={key:0,class:"text-sm text-gray-500 text-center py-8"},$d={key:1,class:"flex flex-col gap-3 favorite-indent"},jd={class:"flex-1 text-xs text-[#86909c]"},qd=["onClick"],Xd={key:0,src:ba,alt:"选中",class:"w-[11px] h-[9px]"},Yd=["onClick"],Kd=qr({__name:"FavoritesList",setup(e){const t=Sr(),r=be(()=>t.favoriteFonts);function n(i,l){l.stopPropagation(),t.togglePreview(i)}function s(i,l){l.stopPropagation(),t.toggleFavorite(i)}function a(i){return t.favoriteFontIds.has(i)}function o(i){return t.previewFontIds.has(i)}return(i,l)=>(pe(),ge("div",Wd,[r.value.length===0?(pe(),ge("div",Zd," 暂无收藏字体 ")):(pe(),ge("div",$d,[(pe(!0),ge(ze,null,wn(r.value,c=>(pe(),ge("div",{key:c.id,class:"flex items-center gap-2 border-b border-[#c9cdd4] pb-2"},[l[0]||(l[0]=I("div",{class:"w-4 h-4 shrink-0"},[I("img",{src:r0,alt:"font",class:"w-full h-full"})],-1)),I("div",jd,Qe(c.name),1),I("button",{onClick:u=>n(c.id,u),class:vt(["w-[18px] h-[18px] shrink-0 border rounded-full flex items-center justify-center p-0 bg-transparent",o(c.id)?"bg-[#9b6bc2] border-[#9b6bc2]":"border-[#c9cdd4]"])},[o(c.id)?(pe(),ge("img",Xd)):tr("",!0)],10,qd),I("button",{onClick:u=>s(c.id,u),class:"w-[18px] h-[17px] shrink-0 p-0 border-0 bg-transparent"},[I("img",{src:n0,alt:"收藏",class:vt(["w-full h-full",a(c.id)?"favorite-active":""])},null,2)],8,Yd)]))),128))]))]))}}),Jd=qn(Kd,[["__scopeId","data-v-e8bbd3fa"]]),Qd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20fill='none'%20viewBox='0%200%2010%2010'%3e%3cpath%20fill='%230079F5'%20d='M7.432%209.596H2.164A2.165%202.165%200%200%201%200%207.432V2.164C0%20.97.97%200%202.164%200h5.268c1.195%200%202.164.97%202.164%202.164v5.268c0%201.195-.97%202.164-2.164%202.164Z'/%3e%3cpath%20fill='%23fff'%20d='M6.24%202.982a.36.36%200%200%200-.662%200l-1.272%202.98a.24.24%200%201%200%20.444.186l.147-.352a.813.813%200%200%201%20.75-.501h.524c.328%200%20.624.198.75.5l.147.353a.24.24%200%201%200%20.444-.187L6.24%202.982Zm.058%201.312a.42.42%200%201%201-.776.324.42.42%200%200%201%20.776-.324Zm-3.01-.587a.253.253%200%200%200-.465%200l-.774%201.814a.18.18%200%201%200%20.333.14l.08-.194a.495.495%200%200%201%20.457-.305h.273c.2%200%20.38.12.457.305l.08.194a.18.18%200%201%200%20.333-.14l-.774-1.814ZM3.055%204.84a.222.222%200%201%201%200-.443.222.222%200%200%201%200%20.443Z'/%3e%3c/svg%3e";let xs=null;async function e1(){if(!xs){const e=await Cn(()=>import("./hb-C3piUv6a.js").then(a=>a.h),__vite__mapDeps([0,1])),r=await(e.default||e)(),n=await Cn(()=>import("./hbjs-B2Ncxvef.js").then(a=>a.h),__vite__mapDeps([2,1]));xs=(n.default||n)(r)}return xs}async function t1(e,t,r){const n=await e1(),s=n.createBlob(e),a=n.createFace(s,0),o=n.createFont(a),i=n.createBuffer();i.addText(t),i.guessSegmentProperties(),n.shape(o,i);const l=i.json(o);return i.destroy(),o.destroy(),a.destroy(),s.destroy(),l.map(c=>({glyphIndex:c.g,xAdvance:c.ax||0,yAdvance:c.ay||0,xOffset:c.dx||0,yOffset:c.dy||0}))}function ye(e){return e.toFixed(2).replace(/\.?0+$/,"")||"0"}function s0(e){const t=e.path;if(!t||!t.commands||t.commands.length===0)return"";const r=[];for(const n of t.commands)switch(n.type){case"M":r.push(`M${ye(n.x)} ${ye(n.y)}`);break;case"L":r.push(`L${ye(n.x)} ${ye(n.y)}`);break;case"Q":r.push(`Q${ye(n.x1)} ${ye(n.y1)} ${ye(n.x)} ${ye(n.y)}`);break;case"C":r.push(`C${ye(n.x1)} ${ye(n.y1)} ${ye(n.x2)} ${ye(n.y2)} ${ye(n.x)} ${ye(n.y)}`);break;case"Z":r.push("Z");break}return r.join(" ")}function a0(e){const t=e.path;if(!t||!t.commands||t.commands.length===0)return null;let r=1/0,n=1/0,s=-1/0,a=-1/0;for(const o of t.commands)"x"in o&&(r=Math.min(r,o.x),s=Math.max(s,o.x),n=Math.min(n,o.y),a=Math.max(a,o.y)),"x1"in o&&(r=Math.min(r,o.x1),s=Math.max(s,o.x1),n=Math.min(n,o.y1),a=Math.max(a,o.y1)),"x2"in o&&(r=Math.min(r,o.x2),s=Math.max(s,o.x2),n=Math.min(n,o.y2),a=Math.max(a,o.y2));return r===1/0?null:{xMin:r,yMin:n,xMax:s,yMax:a}}async function o0(e){const{text:t,font:r,fontSize:n=100,fillColor:s="#000000",letterSpacing:a=0}=e;if(!t||t.trim()==="")throw new Error("文本内容不能为空");const o=Vs(t),i=n/r.unitsPerEm,l=a*r.unitsPerEm,c=[];let u=null,h=null,f=null,p=null,m=0;const x=Number.isFinite(r.ascender)?r.ascender:r.unitsPerEm*.8,g=Number.isFinite(r.descender)?r.descender:-r.unitsPerEm*.2,y=Math.max(r.unitsPerEm*1.2,x-g),b=o.split(`
|
||
`);for(let V=0;V<b.length;V++){const N=b[V]??"",X=-V*y;let se=0;for(const oe of Array.from(N)){const R=r.charToGlyph(oe);c.push({glyph:R,xPos:se,yPos:X});const G=a0(R);if(G){const A=G.xMin+se,z=G.yMin+X,ee=G.xMax+se,fe=G.yMax+X;u=u===null?A:Math.min(u,A),h=h===null?z:Math.min(h,z),f=f===null?ee:Math.max(f,ee),p=p===null?fe:Math.max(p,fe)}se+=(R.advanceWidth||0)+l}m=Math.max(m,se)}if((u===null||f===null)&&(u=0,f=m),u===null||h===null||f===null||p===null)throw new Error("未生成有效字形轮廓");const S=(f-u)*i,F=(p-h)*i;if(S<=0||F<=0)throw new Error("计算得到的 SVG 尺寸无效");const C=[];for(const V of c){const N=s0(V.glyph);if(!N)continue;const X=`translate(${ye(V.xPos)} ${ye(V.yPos)})`;C.push(` <path d="${N}" transform="${X}"/>`)}if(C.length===0)throw new Error("未生成任何路径");const q=`${ye(u)} 0 ${ye(f-u)} ${ye(p-h)}`,D=`translate(0 ${ye(p)}) scale(1 -1)`,k=`<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="${q}" width="${ye(S)}" height="${ye(F)}" preserveAspectRatio="xMidYMid meet">
|
||
<g transform="${D}" fill="${s}" stroke="none">
|
||
${C.join(`
|
||
`)}
|
||
</g>
|
||
</svg>`,L=r.names.fontFamily?.en||r.names.fullName?.en||"Unknown";return{svg:k,width:S,height:F,fontName:L}}async function r1(e,t){const{text:r,font:n,fontSize:s=100,fillColor:a="#000000",letterSpacing:o=0}=e;if(!r||r.trim()==="")throw new Error("文本内容不能为空");const i=await t1(t,r),l=s/n.unitsPerEm,c=o*n.unitsPerEm,u=[];let h=0,f=0,p=1;const m=i.find(N=>N.xAdvance)?.xAdvance||0;Math.abs(m)>n.unitsPerEm*4&&(p=1/64);const x=c/p;for(const N of i){const X=n.glyphs.get(N.glyphIndex),se=(h+N.xOffset)*p,oe=(f+N.yOffset)*p;u.push({glyph:X,xPos:se,yPos:oe}),h+=N.xAdvance+x,f+=N.yAdvance}let g=null,y=null,b=null,S=null;for(const N of u){const X=a0(N.glyph);if(!X)continue;const{xMin:se,yMin:oe,xMax:R,yMax:G}=X,A=se+N.xPos,z=oe+N.yPos,ee=R+N.xPos,fe=G+N.yPos;g=g===null?A:Math.min(g,A),y=y===null?z:Math.min(y,z),b=b===null?ee:Math.max(b,ee),S=S===null?fe:Math.max(S,fe)}if(g===null||y===null||b===null||S===null)throw new Error("未生成有效字形轮廓");const F=(b-g)*l,C=(S-y)*l;if(F<=0||C<=0)throw new Error("计算得到的 SVG 尺寸无效");const q=[];for(const N of u){const X=s0(N.glyph);if(!X)continue;const se=`translate(${ye(N.xPos)} ${ye(N.yPos)})`;q.push(` <path d="${X}" transform="${se}"/>`)}if(q.length===0)throw new Error("未生成任何路径");const D=`${ye(g)} 0 ${ye(b-g)} ${ye(S-y)}`,k=`translate(0 ${ye(S)}) scale(1 -1)`,L=`<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="${D}" preserveAspectRatio="xMidYMid meet">
|
||
<g transform="${k}" fill="${a}" stroke="none">
|
||
${q.join(`
|
||
`)}
|
||
</g>
|
||
</svg>`,V=n.names.fontFamily?.en||n.names.fullName?.en||"Unknown";return{svg:L,width:F,height:C,fontName:V}}const n1=Object.freeze(Object.defineProperty({__proto__:null,generateSvg:o0,generateSvgWithHarfbuzz:r1},Symbol.toStringTag,{value:"Module"})),s1={class:"flex flex-col gap-2"},a1={key:0,class:"text-[#86909c] text-center py-20"},o1={key:1,class:"flex flex-col gap-2"},i1={class:"flex items-center gap-[8px] border-b border-[#c9cdd4] pb-[8px] pr-[8px]"},l1={class:"flex-1 text-xs text-[#86909c]"},u1=["onClick"],c1={key:0,src:ba,alt:"选中",class:"w-[11px] h-[9px]"},f1=["onClick"],h1=["innerHTML"],p1={key:0,class:"text-xs text-[#86909c] text-center py-2"},d1=240,v1=4,g1=600,$o="__FONT2SVG_FILL__",cn=20,m1=10,x1=qr({__name:"SvgPreview",setup(e,{expose:t}){const r=Sr(),n=t0(),s=Ce([]),a=Ce(!1),o=Ce(!1),i=Ce([]),l=Ce(0),c=Ce(0),u=Ce(null),h=be(()=>r.previewFonts),f=be(()=>n.inputText),p=be(()=>n.fontSize),m=be(()=>n.textColor);let x=null,g=0,y=!1,b=null;const S=new Map,F=be(()=>s.value.length>0&&s.value.every(Y=>Y.selected)),C=be(()=>c.value<s.value.length||l.value<i.value.length),q=be(()=>s.value.slice(0,c.value)),D=be(()=>!C.value||q.value.length<=0?-1:Math.max(0,q.value.length-m1));function k(Y){return Y!==g}function L(Y=!0){if(x!==null&&(clearTimeout(x),x=null),!Y){ue();return}x=setTimeout(()=>{x=null,ue()},d1)}function V(Y){let ie=Y.parentElement;for(;ie;){const xe=window.getComputedStyle(ie).overflowY;if((xe==="auto"||xe==="scroll")&&ie.scrollHeight>ie.clientHeight)return ie;ie=ie.parentElement}return null}function N(){b&&(b.disconnect(),b=null)}function X(){if(N(),!C.value||!u.value)return;const Y=V(u.value);b=new IntersectionObserver(ie=>{ie.some(xe=>xe.isIntersecting)&&fe()},{root:Y,threshold:.01}),b.observe(u.value)}function se(Y,ie){ie===D.value&&(u.value=Y instanceof HTMLElement?Y:null)}function oe(Y){return[Y.id,Y.path,f.value,p.value].join("::")}function R(Y){const ie=S.get(Y);return ie?(S.delete(Y),S.set(Y,ie),ie):null}function G(Y,ie){for(S.has(Y)&&S.delete(Y),S.set(Y,ie);S.size>g1;){const le=S.keys().next().value;if(le===void 0)break;S.delete(le)}}async function A(Y){if(!Y.font)return null;const ie=oe(Y);let le=R(ie);if(!le){const xe=await o0({text:f.value,font:Y.font,fontSize:p.value,fillColor:$o});le={width:xe.width,height:xe.height,fontName:xe.fontName,svgTemplate:xe.svg},G(ie,le)}return{width:le.width,height:le.height,fontName:le.fontName,svg:le.svgTemplate.split($o).join(m.value)}}async function z(Y,ie,le,xe){const Ge=Math.min(ie+le,Y.length),At=Y.slice(ie,Ge);if(At.length===0)return[];const qt=new Set(n.selectedExportItems.map(U=>U.fontInfo.id)),Yn=new Array(At.length).fill(null),d=Math.min(v1,At.length);let v=0;const T=async()=>{for(;;){if(k(xe))return;const U=v;if(v+=1,U>=At.length)return;const E=At[U];if(E){if(!E.loaded)try{await r.loadFont(E)}catch(O){console.error(`Failed to load font ${E.name}:`,O);continue}if(!(k(xe)||!E.font))try{const O=await A(E);if(!O)continue;if(k(xe))return;Yn[U]={fontInfo:E,svgResult:O,selected:qt.has(E.id)}}catch(O){console.error(`Failed to generate SVG for ${E.name}:`,O)}}}};return await Promise.all(Array.from({length:d},()=>T())),k(xe)?[]:Yn.filter(U=>U!==null)}async function ee(Y){if(o.value||k(Y))return;const ie=l.value;if(!(ie>=i.value.length)){o.value=!0;try{const le=await z(i.value,ie,cn,Y);if(k(Y))return;l.value=Math.min(ie+cn,i.value.length),s.value=[...s.value,...le],c.value=Math.min(c.value+cn,s.value.length)}catch(le){console.error("Failed to load preview batch:",le)}finally{k(Y)||(o.value=!1)}}}async function fe(){const Y=g;if(!(o.value||k(Y))){if(c.value<s.value.length){c.value=Math.min(c.value+cn,s.value.length);return}l.value<i.value.length&&await ee(Y)}}async function ue(){const Y=++g,ie=[...h.value],le=new Set(ie.map(xe=>xe.id));if(n.retainExportItemsByFontIds(le),i.value=ie,l.value=0,s.value=[],c.value=0,!f.value||f.value.trim()===""||ie.length===0){a.value=!1;return}a.value=!0;try{await ee(Y)}catch(xe){console.error("Failed to regenerate previews:",xe)}finally{k(Y)||(a.value=!1)}}dr([h,f,p,m],()=>{L(y),y=!0},{immediate:!0}),dr([D,C],async()=>{u.value=null,await na(),X()},{immediate:!0}),Ri(()=>{x!==null&&(clearTimeout(x),x=null),N(),g+=1});function de(Y){Y.selected=!Y.selected,n.toggleExportItem(Y)}function Rt(){if(s.value.length!==0){if(F.value){n.clearExportSelection(),s.value.forEach(Y=>{Y.selected=!1});return}s.value.forEach(Y=>{Y.selected=!0}),n.selectAllExportItems(s.value)}}return t({toggleSelectAllPreviewItems:Rt}),(Y,ie)=>(pe(),ge("div",s1,[s.value.length===0?(pe(),ge("div",a1,Qe(a.value?"生成预览中...":"请选择字体并输入内容"),1)):(pe(),ge("div",o1,[(pe(!0),ge(ze,null,wn(q.value,(le,xe)=>(pe(),ge("div",{key:le.fontInfo.id,ref_for:!0,ref:Ge=>se(Ge,xe),class:"flex flex-col gap-2"},[I("div",i1,[ie[0]||(ie[0]=I("div",{class:"w-[24px] h-[24px] shrink-0"},[I("img",{src:Qd,alt:"字体",class:"w-full h-full"})],-1)),I("div",l1,Qe(le.fontInfo.name),1),I("button",{onClick:Ge=>de(le),class:vt(["w-[18px] h-[18px] shrink-0 border rounded-full flex items-center justify-center p-0 bg-transparent",le.selected?"bg-[#9b6bc2] border-[#9b6bc2]":"border-[#c9cdd4]"])},[le.selected?(pe(),ge("img",c1)):tr("",!0)],10,u1)]),I("div",{onClick:Ge=>de(le),class:"bg-white px-[8px] py-[8px] cursor-pointer"},[I("div",{innerHTML:le.svgResult.svg,class:"svg-preview-container"},null,8,h1)],8,f1)]))),128)),C.value?(pe(),ge("div",p1,Qe(o.value?"加载中...":`继续下滑加载更多(${q.value.length}/${i.value.length})`),1)):tr("",!0)]))]))}}),y1=qn(x1,[["__scopeId","data-v-15496019"]]),b1={class:"w-screen h-screen box-border p-8px bg-white flex flex-col overflow-hidden"},S1={class:"flex gap-2 items-center shrink-0 h-24 px-2 py-1"},w1={class:"flex items-center gap-3 px-2 shrink-0 relative",style:{width:"280px",height:"32px"}},T1={class:"flex-1 h-6 flex items-center relative"},F1=["value"],C1={class:"text-[#8552A1] text-[12px] font-medium text-center w-6"},k1={class:"shrink-0 relative w-9 h-9"},E1={class:"w-full h-full flex items-center justify-center cursor-pointer"},O1=["value"],U1={class:"flex-1 min-w-[80px] bg-[#f7f8fa] rounded-lg px-2 py-1 h-12"},L1=["value"],_1={class:"flex items-center gap-1 shrink-0 border border-[#8552A1] rounded-lg px-1 py-1 bg-[#f7f8fa] shadow-sm"},R1={class:"flex-1 flex gap-2 min-h-0 overflow-hidden px-2"},A1={class:"flex flex-col gap-2 shrink-0 overflow-hidden",style:{"flex-basis":"400px","max-width":"480px","min-width":"320px"}},M1={class:"flex-[2] border border-solid border-[#f7e0e0] rounded-lg p-1.5 flex flex-col gap-2 overflow-hidden min-h-0"},I1={class:"scrollbar-hover flex-1 overflow-y-auto overflow-x-hidden pr-2"},P1={class:"border border-solid border-[#f7e0e0] rounded-lg p-1.5 flex flex-col gap-2 flex-1 overflow-hidden min-h-[120px]"},D1={class:"flex items-center pr-[9px]"},B1={class:"text-base text-black shrink-0 leading-none flex-1"},N1=["src"],G1={class:"scrollbar-hover flex-1 overflow-y-auto overflow-x-hidden pr-2"},H1={class:"flex-1 border border-solid border-[#f7e0e0] rounded-lg p-1.5 flex flex-col gap-2 overflow-hidden min-w-0"},V1={class:"flex items-center pr-[9px]"},z1=["src"],W1={class:"scrollbar-hover flex-1 min-h-0 py-2 overflow-y-auto overflow-x-hidden"},Z1=qr({__name:"App",setup(e){console.log("App.vue: script setup running...");const t=t0(),r=Sr(),n=Ce(null),s=be(()=>{const x=(t.fontSize-10)/490*100;return Math.max(0,Math.min(100,x))}),a=be(()=>{const x=r.previewFonts.map(y=>y.id);if(x.length===0)return!1;const g=new Set(t.selectedExportItems.map(y=>y.fontInfo.id));return x.every(y=>g.has(y))}),o=be(()=>{const x=r.favoriteFonts.map(g=>g.id);return x.length===0?!1:x.every(g=>r.previewFontIds.has(g))}),i=be(()=>r.favoriteFonts.length);try{pd(),console.log("App.vue: useFontLoader called successfully")}catch(x){console.error("App.vue: Error in useFontLoader:",x)}const l=Vs(t.inputText,Hs);l!==t.inputText&&t.setInputText(l);async function c(x){t.retainExportItemsByFontIds(r.previewFontIds);const g=t.selectedExportItems,y=t.inputText.trim();if(g.length===0){alert("请选择需要导出的效果");return}if(!y){alert("请输入要导出的文字");return}try{const{generateSvg:b}=await Cn(async()=>{const{generateSvg:L}=await Promise.resolve().then(()=>n1);return{generateSvg:L}},void 0),{convertSvgToPngBlob:S,downloadSvg:F,downloadMultipleFiles:C,downloadPngFromSvg:q,generatePngFilename:D,generateSvgFilename:k}=await Cn(async()=>{const{convertSvgToPngBlob:L,downloadSvg:V,downloadMultipleFiles:N,downloadPngFromSvg:X,generatePngFilename:se,generateSvgFilename:oe}=await import("./download-T9wchiI1.js");return{convertSvgToPngBlob:L,downloadSvg:V,downloadMultipleFiles:N,downloadPngFromSvg:X,generatePngFilename:se,generateSvgFilename:oe}},[]);if(g.length===1){const L=g[0];if(!L?.fontInfo.font){alert("选中字体未加载完成,请稍后重试");return}const V=L.fontInfo.font,N=await b({text:y,font:V,fontSize:t.fontSize,fillColor:t.textColor,letterSpacing:0});if(x==="svg"){const X=k(y,N.fontName);F(N.svg,X)}else{const X=D(y,N.fontName);await q(N.svg,X,{width:N.width,height:N.height})}}else{const L=[];for(const V of g)try{const N=V.fontInfo.font;if(!N){console.warn(`字体 ${V.fontInfo.name} 尚未加载,已跳过导出`);continue}const X=await b({text:y,font:N,fontSize:t.fontSize,fillColor:t.textColor,letterSpacing:0});if(x==="svg"){const se=k(y,X.fontName);L.push({name:se,content:X.svg})}else{const se=D(y,X.fontName),oe=await S(X.svg,{width:X.width,height:X.height});L.push({name:se,content:oe})}}catch(N){console.warn(`字体 ${V.fontInfo.name} 导出失败:`,N)}L.length>0?await C(L,x==="svg"?"font2svg-svg-export.zip":"font2svg-png-export.zip"):alert(`所有字体${x.toUpperCase()}导出都失败了`)}}catch(b){console.error("导出失败:",b),alert(`导出失败: ${b instanceof Error?b.message:"未知错误"}`)}}function u(x){t.setFontSize(x)}function h(x){const g=x.target,y=Number(g.value);Number.isNaN(y)||t.setFontSize(y)}function f(x){const g=x.target,y=Vs(g.value,Hs);y!==g.value&&(g.value=y),t.setInputText(y)}function p(){n.value?.toggleSelectAllPreviewItems()}function m(){const x=r.favoriteFonts.map(g=>g.id);if(x.length!==0){if(o.value){x.forEach(g=>r.removeFromPreview(g));return}x.forEach(g=>r.addToPreview(g))}}return console.log("App.vue: script setup completed"),(x,g)=>{const y=yu("overflow-aware");return pe(),ge("div",b1,[I("div",S1,[g[11]||(g[11]=I("div",{class:"w-12 h-12 rounded-xl overflow-hidden shrink-0"},[I("img",{src:Hc,alt:"logo",class:"w-full h-full object-cover"})],-1)),g[12]||(g[12]=I("div",{class:"shrink-0 max-w-[225px] min-w-[120px]",style:{height:"72px"}},[I("img",{src:Vc,alt:"星程SVG文字生成 TEXT to SVG",class:"w-full h-full object-contain"})],-1)),I("div",w1,[I("button",{onClick:g[0]||(g[0]=b=>u(Me(t).fontSize-10)),class:"w-4 h-4 shrink-0 cursor-pointer hover:opacity-70 transition-opacity flex items-center justify-center p-0 border-0 bg-transparent",title:"减小字体"},[...g[5]||(g[5]=[I("img",{src:zc,alt:"A-",class:"w-4 h-4 object-contain"},null,-1)])]),I("div",T1,[I("input",{type:"range",min:"10",max:"500",step:"1",value:Me(t).fontSize,onInput:h,class:"font-size-range w-full h-6 cursor-pointer",style:Dr({background:`linear-gradient(to right, #9b6bc2 0%, #9b6bc2 ${s.value}%, #e5e6eb ${s.value}%, #e5e6eb 100%)`})},null,44,F1),I("div",{class:"absolute pointer-events-none -top-4",style:Dr({left:`calc(${s.value}% - 7px)`})},[I("div",C1,Qe(Me(t).fontSize),1)],4)]),I("button",{onClick:g[1]||(g[1]=b=>u(Me(t).fontSize+10)),class:"w-6 h-6 shrink-0 cursor-pointer hover:opacity-70 transition-opacity flex items-center justify-center p-0 border-0 bg-transparent",title:"增大字体"},[...g[6]||(g[6]=[I("img",{src:Wc,alt:"A+",class:"w-6 h-6 object-contain"},null,-1)])])]),I("div",k1,[I("label",E1,[g[7]||(g[7]=I("img",{src:Zc,alt:"颜色",class:"w-9 h-9 object-contain"},null,-1)),I("input",{type:"color",value:Me(t).textColor,onInput:g[2]||(g[2]=b=>Me(t).setTextColor(b.target.value)),class:"absolute inset-0 opacity-0 cursor-pointer","aria-label":"选择文字颜色"},null,40,O1)])]),I("div",U1,[I("textarea",{value:Me(t).inputText,onInput:f,placeholder:"此处输入内容",class:"w-full h-full bg-transparent border-none outline-none text-base text-[#4e5969] placeholder-[#4e5969] resize-none leading-5 overflow-y-auto"},null,40,L1)]),I("div",_1,[g[10]||(g[10]=I("div",{class:"w-[18px] h-[42px] shrink-0 pointer-events-none"},[I("img",{src:$c,alt:"导出",class:"w-full h-full object-contain"})],-1)),I("button",{onClick:g[3]||(g[3]=b=>c("svg")),class:"w-12 h-12 shrink-0 cursor-pointer hover:opacity-85 transition-opacity flex items-center justify-center p-0 border-0 bg-transparent",title:"导出 SVG"},[...g[8]||(g[8]=[I("img",{src:jc,alt:"导出SVG",class:"w-12 h-12 object-contain"},null,-1)])]),I("button",{onClick:g[4]||(g[4]=b=>c("png")),class:"w-12 h-12 shrink-0 cursor-pointer hover:opacity-85 transition-opacity flex items-center justify-center p-0 border-0 bg-transparent",title:"导出 PNG"},[...g[9]||(g[9]=[I("img",{src:qc,alt:"导出PNG",class:"w-12 h-12 object-contain"},null,-1)])])])]),I("div",R1,[I("div",A1,[I("div",M1,[hn((pe(),ge("div",I1,[Ke(zd)])),[[y]])]),I("div",P1,[I("div",D1,[I("h2",B1," 已收藏字体("+Qe(i.value)+"字体) ",1),I("button",{onClick:m,class:"w-4 h-4 shrink-0 p-0 border-0 bg-transparent cursor-pointer hover:opacity-85 transition-opacity",title:"已收藏字体全选/全不选"},[I("img",{src:o.value?Me(Ws):Me(zs),alt:"已收藏字体全选/全不选",class:"w-full h-full"},null,8,N1)])]),hn((pe(),ge("div",G1,[Ke(Jd)])),[[y]])])]),I("div",H1,[I("div",V1,[g[13]||(g[13]=I("h2",{class:"text-base text-black shrink-0 leading-none flex-1"},"效果预览",-1)),I("button",{onClick:p,class:"w-4 h-4 shrink-0 p-0 border-0 bg-transparent cursor-pointer hover:opacity-85 transition-opacity",title:"效果预览全选/全不选"},[I("img",{src:a.value?Me(Ws):Me(zs),alt:"效果预览全选/全不选",class:"w-full h-full"},null,8,z1)])]),hn((pe(),ge("div",W1,[Ke(y1,{ref_key:"svgPreviewRef",ref:n},null,512)])),[[y]])])]),g[14]||(g[14]=I("div",{class:"text-[#86909c] text-xs text-center shrink-0 h-6 pt-4 flex items-center justify-center px-2"}," @版权说明:所有字体来源互联网分享,仅供效果预览,不做下载传播,如有侵权,请告知douboer@gmail.com ",-1))])}}}),i0=qn(Z1,[["__scopeId","data-v-d8854dc4"]]);console.log("main.ts is loading...");console.log("App component:",i0);const Xn=Lc(i0);Xn.use(Ac());const ys=new WeakMap;function jo(e){const t=e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;e.dataset.overflowing=t?"true":"false"}const $1={mounted(e){const t=()=>jo(e);t();const r=new ResizeObserver(t);r.observe(e);const n=new MutationObserver(t);n.observe(e,{childList:!0,subtree:!0,characterData:!0});const s=()=>t(),a=()=>t();e.addEventListener("mouseenter",s),window.addEventListener("resize",a),ys.set(e,{resizeObserver:r,mutationObserver:n,onMouseEnter:s,onWindowResize:a})},updated(e){jo(e)},unmounted(e){const t=ys.get(e);t&&(t.resizeObserver.disconnect(),t.mutationObserver.disconnect(),e.removeEventListener("mouseenter",t.onMouseEnter),window.removeEventListener("resize",t.onWindowResize),ys.delete(e))}};Xn.directive("overflow-aware",$1);Xn.config.errorHandler=(e,t,r)=>{console.error("Vue Error:",e),console.error("Error info:",r),console.error("Component instance:",t)};console.log("Mounting app to #app...");Xn.mount("#app");console.log("App mounted successfully!");export{Cn as _};
|