diff --git a/frontend/dist/assets/download-CIoIfzj1.js b/frontend/dist/assets/download-DMVEIKyj.js similarity index 97% rename from frontend/dist/assets/download-CIoIfzj1.js rename to frontend/dist/assets/download-DMVEIKyj.js index 20cc85e..4051b19 100644 --- a/frontend/dist/assets/download-CIoIfzj1.js +++ b/frontend/dist/assets/download-DMVEIKyj.js @@ -1 +1 @@ -import{_ as v}from"./index-BF1ysyeL.js";function p(t,e,n="text/plain"){const o=new Blob([t],{type:n});s(o,e)}function s(t,e){const n=URL.createObjectURL(t),o=document.createElement("a");o.href=n,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n)}function P(t,e){p(t,e,"image/svg+xml")}async function F(t,e="font2svg-export.zip"){const n=(await v(async()=>{const{default:r}=await import("./jszip.min-D7KnG0-e.js").then(i=>i.j);return{default:r}},[])).default,o=new n;for(const r of t)o.file(r.name,r.content);const a=await o.generateAsync({type:"blob"});s(a,e)}function d(t){if(!t)return null;const e=t.match(/-?\d+(\.\d+)?/);if(!e)return null;const n=Number(e[0]);return Number.isFinite(n)?n:null}function x(t){const n=new DOMParser().parseFromString(t,"image/svg+xml").documentElement,o=d(n.getAttribute("width")),a=d(n.getAttribute("height"));if(o&&a)return{width:o,height:a};const r=n.getAttribute("viewBox");if(r){const i=r.trim().split(/[\s,]+/).map(Number);if(i.length===4&&Number.isFinite(i[2])&&Number.isFinite(i[3]))return{width:Math.max(1,i[2]),height:Math.max(1,i[3])}}return{width:1024,height:1024}}async function _(t,e){const n=x(t),o=e?.scale??1,a=Math.max(1,Math.round((e?.width??n.width)*o)),r=Math.max(1,Math.round((e?.height??n.height)*o)),i=document.createElement("canvas");i.width=a,i.height=r;const l=i.getContext("2d");if(!l)throw new Error("无法创建 PNG 画布");e?.backgroundColor?(l.fillStyle=e.backgroundColor,l.fillRect(0,0,a,r)):l.clearRect(0,0,a,r);const f=new Blob([t],{type:"image/svg+xml;charset=utf-8"}),u=URL.createObjectURL(f);try{const c=new Image;await new Promise((w,b)=>{c.onload=()=>w(),c.onerror=()=>b(new Error("SVG 转 PNG 失败")),c.src=u}),l.drawImage(c,0,0,a,r)}finally{URL.revokeObjectURL(u)}const g=await new Promise(c=>{i.toBlob(c,"image/png")});if(!g)throw new Error("PNG 编码失败");return g}async function R(t,e,n){const o=await _(t,n);s(o,e)}function m(t){return t.replace(/[<>:"/\\|?*\x00-\x1F]/g,"_").replace(/\s+/g,"_").substring(0,200)}function h(t,e){const n=m(Array.from(t).slice(0,8).join(""));return`${m(e.substring(0,20))}_${n}`}function B(t,e){return`${h(t,e)}.svg`}function L(t,e){return`${h(t,e)}.png`}export{_ as convertSvgToPngBlob,s as downloadBlob,F as downloadMultipleFiles,R as downloadPngFromSvg,P as downloadSvg,p as downloadText,L as generatePngFilename,B as generateSvgFilename,m as sanitizeFilename}; +import{_ as v}from"./index-_4VXTXt_.js";function p(t,e,n="text/plain"){const o=new Blob([t],{type:n});s(o,e)}function s(t,e){const n=URL.createObjectURL(t),o=document.createElement("a");o.href=n,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n)}function P(t,e){p(t,e,"image/svg+xml")}async function F(t,e="font2svg-export.zip"){const n=(await v(async()=>{const{default:r}=await import("./jszip.min-D7KnG0-e.js").then(i=>i.j);return{default:r}},[])).default,o=new n;for(const r of t)o.file(r.name,r.content);const a=await o.generateAsync({type:"blob"});s(a,e)}function d(t){if(!t)return null;const e=t.match(/-?\d+(\.\d+)?/);if(!e)return null;const n=Number(e[0]);return Number.isFinite(n)?n:null}function x(t){const n=new DOMParser().parseFromString(t,"image/svg+xml").documentElement,o=d(n.getAttribute("width")),a=d(n.getAttribute("height"));if(o&&a)return{width:o,height:a};const r=n.getAttribute("viewBox");if(r){const i=r.trim().split(/[\s,]+/).map(Number);if(i.length===4&&Number.isFinite(i[2])&&Number.isFinite(i[3]))return{width:Math.max(1,i[2]),height:Math.max(1,i[3])}}return{width:1024,height:1024}}async function _(t,e){const n=x(t),o=e?.scale??1,a=Math.max(1,Math.round((e?.width??n.width)*o)),r=Math.max(1,Math.round((e?.height??n.height)*o)),i=document.createElement("canvas");i.width=a,i.height=r;const l=i.getContext("2d");if(!l)throw new Error("无法创建 PNG 画布");e?.backgroundColor?(l.fillStyle=e.backgroundColor,l.fillRect(0,0,a,r)):l.clearRect(0,0,a,r);const f=new Blob([t],{type:"image/svg+xml;charset=utf-8"}),u=URL.createObjectURL(f);try{const c=new Image;await new Promise((w,b)=>{c.onload=()=>w(),c.onerror=()=>b(new Error("SVG 转 PNG 失败")),c.src=u}),l.drawImage(c,0,0,a,r)}finally{URL.revokeObjectURL(u)}const g=await new Promise(c=>{i.toBlob(c,"image/png")});if(!g)throw new Error("PNG 编码失败");return g}async function R(t,e,n){const o=await _(t,n);s(o,e)}function m(t){return t.replace(/[<>:"/\\|?*\x00-\x1F]/g,"_").replace(/\s+/g,"_").substring(0,200)}function h(t,e){const n=m(Array.from(t).slice(0,8).join(""));return`${m(e.substring(0,20))}_${n}`}function B(t,e){return`${h(t,e)}.svg`}function L(t,e){return`${h(t,e)}.png`}export{_ as convertSvgToPngBlob,s as downloadBlob,F as downloadMultipleFiles,R as downloadPngFromSvg,P as downloadSvg,p as downloadText,L as generatePngFilename,B as generateSvgFilename,m as sanitizeFilename}; diff --git a/frontend/dist/assets/index-BF1ysyeL.js b/frontend/dist/assets/index-_4VXTXt_.js similarity index 98% rename from frontend/dist/assets/index-BF1ysyeL.js rename to frontend/dist/assets/index-_4VXTXt_.js index 686a5f2..c49f942 100644 --- a/frontend/dist/assets/index-BF1ysyeL.js +++ b/frontend/dist/assets/index-_4VXTXt_.js @@ -1,4 +1,4 @@ -(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 i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).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 me={},cr=[],pt=()=>{},Zi=()=>!1,Rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Vs=e=>e.startsWith("onUpdate:"),Oe=Object.assign,Ws=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},s0=Object.prototype.hasOwnProperty,fe=(e,t)=>s0.call(e,t),ee=Array.isArray,fr=e=>An(e)==="[object Map]",$i=e=>An(e)==="[object Set]",re=e=>typeof e=="function",Ce=e=>typeof e=="string",Vt=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",ji=e=>(Se(e)||re(e))&&re(e.then)&&re(e.catch),qi=Object.prototype.toString,An=e=>qi.call(e),a0=e=>An(e).slice(8,-1),Xi=e=>An(e)==="[object Object]",In=e=>Ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Er=zs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mn=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},i0=/-\w/g,vt=Mn(e=>e.replace(i0,t=>t.slice(1).toUpperCase())),o0=/\B([A-Z])/g,nr=Mn(e=>e.replace(o0,"-$1").toLowerCase()),Zs=Mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=Mn(e=>e?`on${Zs(e)}`:""),Nt=(e,t)=>!Object.is(e,t),hn=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},$s=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Sa;const Pn=()=>Sa||(Sa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dr(e){if(ee(e)){const t={};for(let r=0;r{if(r){const n=r.split(u0);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ft(e){let t="";if(Ce(e))t=e;else if(ee(e))for(let r=0;r!!(e&&e.__v_isRef===!0),Xe=e=>Ce(e)?e:e==null?"":ee(e)||Se(e)&&(e.toString===qi||!re(e.toString))?Ji(e)?Xe(e.value):JSON.stringify(e,Qi,2):String(e),Qi=(e,t)=>Ji(t)?Qi(e,t.value):fr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],a)=>(r[Jn(n,a)+" =>"]=s,r),{})}:$i(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Jn(r))}:Vt(t)?Jn(t):Se(t)&&!ee(t)&&!Xi(t)?String(t):t,Jn=(e,t="")=>{var r;return Vt(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let Le;class eo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.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;t0&&--this._on===0&&(Le=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r0)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 io(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function oo(e){let t,r=e.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),Xs(n),v0(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=r}function ys(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(lo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function lo(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||!ys(e))))return;e.flags|=2;const t=e.dep,r=ye,n=Ye;ye=e,Ye=!0;try{io(e);const s=e.fn(e._value);(t.version===0||Nt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ye=r,Ye=n,oo(e),e.flags&=-3}}function Xs(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)Xs(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function v0(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Ye=!0;const uo=[];function Ct(){uo.push(Ye),Ye=!1}function kt(){const e=uo.pop();Ye=e===void 0?!0:e}function wa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=ye;ye=void 0;try{t()}finally{ye=r}}}let Br=0;class g0{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 Ys{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(!ye||!Ye||ye===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==ye)r=this.activeLink=new g0(ye,this),ye.deps?(r.prevDep=ye.depsTail,ye.depsTail.nextDep=r,ye.depsTail=r):ye.deps=ye.depsTail=r,co(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=ye.depsTail,r.nextDep=void 0,ye.depsTail.nextDep=r,ye.depsTail=r,ye.deps===r&&(ye.deps=n)}return r}trigger(t){this.version++,Br++,this.notify(t)}notify(t){js();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{qs()}}}function co(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)co(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const xn=new WeakMap,Jt=Symbol(""),bs=Symbol(""),Nr=Symbol("");function _e(e,t,r){if(Ye&&ye){let n=xn.get(e);n||xn.set(e,n=new Map);let s=n.get(r);s||(n.set(r,s=new Ys),s.map=n,s.key=r),s.track()}}function bt(e,t,r,n,s,a){const i=xn.get(e);if(!i){Br++;return}const o=l=>{l&&l.trigger()};if(js(),t==="clear")i.forEach(o);else{const l=ee(e),c=l&&In(r);if(l&&r==="length"){const u=Number(n);i.forEach((h,f)=>{(f==="length"||f===Nr||!Vt(f)&&f>=u)&&o(h)})}else switch((r!==void 0||i.has(void 0))&&o(i.get(r)),c&&o(i.get(Nr)),t){case"add":l?c&&o(i.get("length")):(o(i.get(Jt)),fr(e)&&o(i.get(bs)));break;case"delete":l||(o(i.get(Jt)),fr(e)&&o(i.get(bs)));break;case"set":fr(e)&&o(i.get(Jt));break}}qs()}function m0(e,t){const r=xn.get(e);return r&&r.get(t)}function ar(e){const t=le(e);return t===e?t:(_e(t,"iterate",Nr),ze(e)?t:t.map(Ke))}function Dn(e){return _e(e=le(e),"iterate",Nr),e}function Mt(e,t){return Et(e)?dr(Tt(e)?Ke(t):t):Ke(t)}const x0={__proto__:null,[Symbol.iterator](){return es(this,Symbol.iterator,e=>Mt(this,e))},concat(...e){return ar(this).concat(...e.map(t=>ee(t)?ar(t):t))},entries(){return es(this,"entries",e=>(e[1]=Mt(this,e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,r=>r.map(n=>Mt(this,n)),arguments)},find(e,t){return xt(this,"find",e,t,r=>Mt(this,r),arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,r=>Mt(this,r),arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ts(this,"includes",e)},indexOf(...e){return ts(this,"indexOf",e)},join(e){return ar(this).join(e)},lastIndexOf(...e){return ts(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return wr(this,"pop")},push(...e){return wr(this,"push",e)},reduce(e,...t){return Ta(this,"reduce",e,t)},reduceRight(e,...t){return Ta(this,"reduceRight",e,t)},shift(){return wr(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return wr(this,"splice",e)},toReversed(){return ar(this).toReversed()},toSorted(e){return ar(this).toSorted(e)},toSpliced(...e){return ar(this).toSpliced(...e)},unshift(...e){return wr(this,"unshift",e)},values(){return es(this,"values",e=>Mt(this,e))}};function es(e,t,r){const n=Dn(e),s=n[t]();return n!==e&&!ze(e)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.done||(a.value=r(a.value)),a}),s}const y0=Array.prototype;function xt(e,t,r,n,s,a){const i=Dn(e),o=i!==e&&!ze(e),l=i[t];if(l!==y0[t]){const h=l.apply(e,a);return o?Ke(h):h}let c=r;i!==e&&(o?c=function(h,f){return r.call(this,Mt(e,h),f,e)}:r.length>2&&(c=function(h,f){return r.call(this,h,f,e)}));const u=l.call(i,c,n);return o&&s?s(u):u}function Ta(e,t,r,n){const s=Dn(e);let a=r;return s!==e&&(ze(e)?r.length>3&&(a=function(i,o,l){return r.call(this,i,o,l,e)}):a=function(i,o,l){return r.call(this,i,Mt(e,o),l,e)}),s[t](a,...n)}function ts(e,t,r){const n=le(e);_e(n,"iterate",Nr);const s=n[t](...r);return(s===-1||s===!1)&&Nn(r[0])?(r[0]=le(r[0]),n[t](...r)):s}function wr(e,t,r=[]){Ct(),js();const n=le(e)[t].apply(e,r);return qs(),kt(),n}const b0=zs("__proto__,__v_isRef,__isVue"),fo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vt));function S0(e){Vt(e)||(e=String(e));const t=le(this);return _e(t,"has",e),t.hasOwnProperty(e)}class ho{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?_0:mo:a?go:vo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=ee(t);if(!s){let l;if(i&&(l=x0[r]))return l;if(r==="hasOwnProperty")return S0}const o=Reflect.get(t,r,we(t)?t:n);if((Vt(r)?fo.has(r):b0(r))||(s||_e(t,"get",r),a))return o;if(we(o)){const l=i&&In(r)?o:o.value;return s&&Se(l)?ws(l):l}return Se(o)?s?ws(o):Bn(o):o}}class po extends ho{constructor(t=!1){super(!1,t)}set(t,r,n,s){let a=t[r];const i=ee(t)&&In(r);if(!this._isShallow){const c=Et(a);if(!ze(n)&&!Et(n)&&(a=le(a),n=le(n)),!i&&we(a)&&!we(n))return c||(a.value=n),!0}const o=i?Number(r)e,rn=e=>Reflect.getPrototypeOf(e);function k0(e,t,r){return function(...n){const s=this.__v_raw,a=le(s),i=fr(a),o=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...n),u=r?Ss:t?dr:Ke;return!t&&_e(a,"iterate",l?bs:Jt),Oe(Object.create(c),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:o?[u(h[0]),u(h[1])]:u(h),done:f}}})}}function nn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function E0(e,t){const r={get(s){const a=this.__v_raw,i=le(a),o=le(s);e||(Nt(s,o)&&_e(i,"get",s),_e(i,"get",o));const{has:l}=rn(i),c=t?Ss:e?dr:Ke;if(l.call(i,s))return c(a.get(s));if(l.call(i,o))return c(a.get(o));a!==i&&a.get(s)},get size(){const s=this.__v_raw;return!e&&_e(le(s),"iterate",Jt),s.size},has(s){const a=this.__v_raw,i=le(a),o=le(s);return e||(Nt(s,o)&&_e(i,"has",s),_e(i,"has",o)),s===o?a.has(s):a.has(s)||a.has(o)},forEach(s,a){const i=this,o=i.__v_raw,l=le(o),c=t?Ss:e?dr:Ke;return!e&&_e(l,"iterate",Jt),o.forEach((u,h)=>s.call(a,c(u),c(h),i))}};return Oe(r,e?{add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear")}:{add(s){!t&&!ze(s)&&!Et(s)&&(s=le(s));const a=le(this);return rn(a).has.call(a,s)||(a.add(s),bt(a,"add",s,s)),this},set(s,a){!t&&!ze(a)&&!Et(a)&&(a=le(a));const i=le(this),{has:o,get:l}=rn(i);let c=o.call(i,s);c||(s=le(s),c=o.call(i,s));const u=l.call(i,s);return i.set(s,a),c?Nt(a,u)&&bt(i,"set",s,a):bt(i,"add",s,a),this},delete(s){const a=le(this),{has:i,get:o}=rn(a);let l=i.call(a,s);l||(s=le(s),l=i.call(a,s)),o&&o.call(a,s);const c=a.delete(s);return l&&bt(a,"delete",s,void 0),c},clear(){const s=le(this),a=s.size!==0,i=s.clear();return a&&bt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=k0(s,e,t)}),r}function Ks(e,t){const r=E0(e,t);return(n,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(fe(r,s)&&s in n?r:n,s,a)}const O0={get:Ks(!1,!1)},U0={get:Ks(!1,!0)},L0={get:Ks(!0,!1)};const vo=new WeakMap,go=new WeakMap,mo=new WeakMap,_0=new WeakMap;function R0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function A0(e){return e.__v_skip||!Object.isExtensible(e)?0:R0(a0(e))}function Bn(e){return Et(e)?e:Js(e,!1,T0,O0,vo)}function I0(e){return Js(e,!1,C0,U0,go)}function ws(e){return Js(e,!0,F0,L0,mo)}function Js(e,t,r,n,s){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=A0(e);if(a===0)return e;const i=s.get(e);if(i)return i;const o=new Proxy(e,a===2?n:r);return s.set(e,o),o}function Tt(e){return Et(e)?Tt(e.__v_raw):!!(e&&e.__v_isReactive)}function Et(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function Nn(e){return e?!!e.__v_raw:!1}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Qs(e){return!fe(e,"__v_skip")&&Object.isExtensible(e)&&Yi(e,"__v_skip",!0),e}const Ke=e=>Se(e)?Bn(e):e,dr=e=>Se(e)?ws(e):e;function we(e){return e?e.__v_isRef===!0:!1}function be(e){return M0(e,!1)}function M0(e,t){return we(e)?e:new P0(e,t)}class P0{constructor(t,r){this.dep=new Ys,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:le(t),this._value=r?t:Ke(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||ze(t)||Et(t);t=n?t:le(t),Nt(t,r)&&(this._rawValue=t,this._value=n?t:Ke(t),this.dep.trigger())}}function Ue(e){return we(e)?e.value:e}const D0={get:(e,t,r)=>t==="__v_raw"?e:Ue(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return we(s)&&!we(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function xo(e){return Tt(e)?e:new Proxy(e,D0)}function B0(e){const t=ee(e)?new Array(e.length):{};for(const r in e)t[r]=G0(e,r);return t}class N0{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=le(t);let s=!0,a=t;if(!ee(t)||!In(String(r)))do s=!Nn(a)||ze(a);while(s&&(a=a.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=Ue(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&we(this._raw[this._key])){const r=this._object[this._key];if(we(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return m0(this._raw,this._key)}}function G0(e,t,r){return new N0(e,t,r)}class H0{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Ys(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)&&ye!==this)return ao(this,!0),!0}get value(){const t=this.dep.track();return lo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function z0(e,t,r=!1){let n,s;return re(e)?n=e:(n=e.get,s=e.set),new H0(n,s,r)}const sn={},yn=new WeakMap;let qt;function V0(e,t=!1,r=qt){if(r){let n=yn.get(r);n||yn.set(r,n=[]),n.push(e)}}function W0(e,t,r=me){const{immediate:n,deep:s,once:a,scheduler:i,augmentJob:o,call:l}=r,c=E=>s?E:ze(E)||s===!1||s===0?St(E,1):St(E);let u,h,f,d,x=!1,y=!1;if(we(e)?(h=()=>e.value,x=ze(e)):Tt(e)?(h=()=>c(e),x=!0):ee(e)?(y=!0,x=e.some(E=>Tt(E)||ze(E)),h=()=>e.map(E=>{if(we(E))return E.value;if(Tt(E))return c(E);if(re(E))return l?l(E,2):E()})):re(e)?t?h=l?()=>l(e,2):e:h=()=>{if(f){Ct();try{f()}finally{kt()}}const E=qt;qt=u;try{return l?l(e,3,[d]):e(d)}finally{qt=E}}:h=pt,t&&s){const E=h,U=s===!0?1/0:s;h=()=>St(E(),U)}const m=ro(),S=()=>{u.stop(),m&&m.active&&Ws(m.effects,u)};if(a&&t){const E=t;t=(...U)=>{E(...U),S()}}let w=y?new Array(e.length).fill(sn):sn;const T=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const U=u.run();if(s||x||(y?U.some((q,N)=>Nt(q,w[N])):Nt(U,w))){f&&f();const q=qt;qt=u;try{const N=[U,w===sn?void 0:y&&w[0]===sn?[]:w,d];w=U,l?l(t,3,N):t(...N)}finally{qt=q}}}else u.run()};return o&&o(T),u=new no(h),u.scheduler=i?()=>i(T,!1):T,d=E=>V0(E,!1,u),f=u.onStop=()=>{const E=yn.get(u);if(E){if(l)l(E,4);else for(const U of E)U();yn.delete(u)}},t?n?T(!0):w=u.run():i?i(T.bind(null,!0),!0):u.run(),S.pause=u.pause.bind(u),S.resume=u.resume.bind(u),S.stop=S,S}function St(e,t=1/0,r){if(t<=0||!Se(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,we(e))St(e.value,t,r);else if(ee(e))for(let n=0;n{St(n,t,r)});else if(Xi(e)){for(const n in e)St(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&St(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 gt(e,t,r,n){if(re(e)){const s=jr(e,t,r,n);return s&&ji(s)&&s.catch(a=>{Gn(a,t,r)}),s}if(ee(e)){const s=[];for(let a=0;a>>1,s=Ie[n],a=Gr(s);a=Gr(r)?Ie.push(e):Ie.splice($0(t),0,e),e.flags|=1,bo()}}function bo(){bn||(bn=yo.then(wo))}function j0(e){ee(e)?hr.push(...e):Pt&&e.id===-1?Pt.splice(lr+1,0,e):e.flags&1||(hr.push(e),e.flags|=1),bo()}function Fa(e,t,r=lt+1){for(;rGr(r)-Gr(n));if(hr.length=0,Pt){Pt.push(...t);return}for(Pt=t,lr=0;lre.id==null?e.flags&2?-1:1/0:e.id;function wo(e){try{for(lt=0;lt{n._d&&Ma(-1);const a=Sn(t);let i;try{i=e(...s)}finally{Sn(a),n._d&&Ma(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function pn(e,t){if(Ge===null)return e;const r=Wn(Ge),n=e.dirs||(e.dirs=[]);for(let s=0;s1)return r&&re(t)?t.call(n&&n.proxy):t}}function Y0(){return!!(Jo()||er)}const K0=Symbol.for("v-scx"),J0=()=>Lr(K0);function Qt(e,t,r){return Fo(e,t,r)}function Fo(e,t,r=me){const{immediate:n,deep:s,flush:a,once:i}=r,o=Oe({},r),l=t&&n||!t&&a!=="post";let c;if(zr){if(a==="sync"){const d=J0();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=pt,d.resume=pt,d.pause=pt,d}}const u=Re;o.call=(d,x,y)=>gt(d,u,x,y);let h=!1;a==="post"?o.scheduler=d=>{Ne(d,u&&u.suspense)}:a!=="sync"&&(h=!0,o.scheduler=(d,x)=>{x?d():ta(d)}),o.augmentJob=d=>{t&&(d.flags|=4),h&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const f=W0(e,t,o);return zr&&(c?c.push(f):l&&f()),f}function Q0(e,t,r){const n=this.proxy,s=Ce(e)?e.includes(".")?Co(n,e):()=>n[e]:e.bind(n,n);let a;re(t)?a=t:(a=t.handler,r=t);const i=Xr(this),o=Fo(s,a.bind(n),r);return i(),o}function Co(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;se.__isTeleport,ru=Symbol("_leaveCb");function ra(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ra(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 re(e)?Oe({name:e.name},t,{setup:e}):e}function ko(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const wn=new WeakMap;function _r(e,t,r,n,s=!1){if(ee(e)){e.forEach((x,y)=>_r(x,t&&(ee(t)?t[y]: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,i=s?null:a,{i:o,r:l}=e,c=t&&t.r,u=o.refs===me?o.refs={}:o.refs,h=o.setupState,f=le(h),d=h===me?Zi:x=>fe(f,x);if(c!=null&&c!==l){if(Ca(t),Ce(c))u[c]=null,d(c)&&(h[c]=null);else if(we(c)){c.value=null;const x=t;x.k&&(u[x.k]=null)}}if(re(l))jr(l,o,12,[i,u]);else{const x=Ce(l),y=we(l);if(x||y){const m=()=>{if(e.f){const S=x?d(l)?h[l]:u[l]:l.value;if(s)ee(S)&&Ws(S,a);else if(ee(S))S.includes(a)||S.push(a);else if(x)u[l]=[a],d(l)&&(h[l]=u[l]);else{const w=[a];l.value=w,e.k&&(u[e.k]=w)}}else x?(u[l]=i,d(l)&&(h[l]=i)):y&&(l.value=i,e.k&&(u[e.k]=i))};if(i){const S=()=>{m(),wn.delete(e)};S.id=-1,wn.set(e,S),Ne(S,r)}else Ca(e),m()}}}function Ca(e){const t=wn.get(e);t&&(t.flags|=8,wn.delete(e))}Pn().requestIdleCallback;Pn().cancelIdleCallback;const Rr=e=>!!e.type.__asyncLoader,Eo=e=>e.type.__isKeepAlive;function nu(e,t){Oo(e,"a",t)}function su(e,t){Oo(e,"da",t)}function Oo(e,t,r=Re){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;)Eo(s.parent.vnode)&&au(n,t,r,s),s=s.parent}}function au(e,t,r,n){const s=Hn(t,e,n,!0);_o(()=>{Ws(n[t],s)},r)}function Hn(e,t,r=Re,n=!1){if(r){const s=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...i)=>{Ct();const o=Xr(r),l=gt(t,r,e,i);return o(),kt(),l});return n?s.unshift(a):s.push(a),a}}const Ot=e=>(t,r=Re)=>{(!zr||e==="sp")&&Hn(e,(...n)=>t(...n),r)},iu=Ot("bm"),Uo=Ot("m"),ou=Ot("bu"),lu=Ot("u"),Lo=Ot("bum"),_o=Ot("um"),uu=Ot("sp"),cu=Ot("rtg"),fu=Ot("rtc");function hu(e,t=Re){Hn("ec",e,t)}const pu="directives",du=Symbol.for("v-ndc");function vu(e){return gu(pu,e)}function gu(e,t,r=!0,n=!1){const s=Ge||Re;if(s){const a=s.type,i=ka(s[e]||a[e],t)||ka(s.appContext[e],t);return!i&&n?a:i}}function ka(e,t){return e&&(e[t]||e[vt(t)]||e[Zs(vt(t))])}function Tn(e,t,r,n){let s;const a=r,i=ee(e);if(i||Ce(e)){const o=i&&Tt(e);let l=!1,c=!1;o&&(l=!ze(e),c=Et(e),e=Dn(e)),s=new Array(e.length);for(let u=0,h=e.length;ut(o,l,void 0,a));else{const o=Object.keys(e);s=new Array(o.length);for(let l=0,c=o.length;le?Qo(e)?Wn(e):Ts(e.parent):null,Ar=Oe(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=>Ts(e.parent),$root:e=>Ts(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>{ta(e.update)}),$nextTick:e=>e.n||(e.n=ea.bind(e.proxy)),$watch:e=>Q0.bind(e)}),rs=(e,t)=>e!==me&&!e.__isScriptSetup&&fe(e,t),mu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:a,accessCache:i,type:o,appContext:l}=e;if(t[0]!=="$"){const f=i[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 i[t]=1,n[t];if(s!==me&&fe(s,t))return i[t]=2,s[t];if(fe(a,t))return i[t]=3,a[t];if(r!==me&&fe(r,t))return i[t]=4,r[t];Fs&&(i[t]=0)}}const c=Ar[t];let u,h;if(c)return t==="$attrs"&&_e(e.attrs,"get",""),c(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(r!==me&&fe(r,t))return i[t]=4,r[t];if(h=l.config.globalProperties,fe(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!==me&&fe(n,t)?(n[t]=r,!0):fe(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:i}},o){let l;return!!(r[o]||e!==me&&o[0]!=="$"&&fe(e,o)||rs(t,o)||fe(a,o)||fe(n,o)||fe(Ar,o)||fe(s.config.globalProperties,o)||(l=i.__cssModules)&&l[o])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:fe(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Ea(e){return ee(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Fs=!0;function xu(e){const t=Ao(e),r=e.proxy,n=e.ctx;Fs=!1,t.beforeCreate&&Oa(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:i,watch:o,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:x,activated:y,deactivated:m,beforeDestroy:S,beforeUnmount:w,destroyed:T,unmounted:E,render:U,renderTracked:q,renderTriggered:N,errorCaptured:O,serverPrefetch:R,expose:V,inheritAttrs:Q,components:ne,directives:ae,filters:ie}=t;if(c&&yu(c,n,null),i)for(const B in i){const W=i[B];re(W)&&(n[B]=W.bind(r))}if(s){const B=s.call(r,r);Se(B)&&(e.data=Bn(B))}if(Fs=!0,a)for(const B in a){const W=a[B],se=re(W)?W.bind(r,r):re(W.get)?W.get.bind(r,r):pt,ge=!re(W)&&re(W.set)?W.set.bind(r):pt,oe=ve({get:se,set:ge});Object.defineProperty(n,B,{enumerable:!0,configurable:!0,get:()=>oe.value,set:ce=>oe.value=ce})}if(o)for(const B in o)Ro(o[B],n,r,B);if(l){const B=re(l)?l.call(r):l;Reflect.ownKeys(B).forEach(W=>{X0(W,B[W])})}u&&Oa(u,e,"c");function z(B,W){ee(W)?W.forEach(se=>B(se.bind(r))):W&&B(W.bind(r))}if(z(iu,h),z(Uo,f),z(ou,d),z(lu,x),z(nu,y),z(su,m),z(hu,O),z(fu,q),z(cu,N),z(Lo,w),z(_o,E),z(uu,R),ee(V))if(V.length){const B=e.exposed||(e.exposed={});V.forEach(W=>{Object.defineProperty(B,W,{get:()=>r[W],set:se=>r[W]=se,enumerable:!0})})}else e.exposed||(e.exposed={});U&&e.render===pt&&(e.render=U),Q!=null&&(e.inheritAttrs=Q),ne&&(e.components=ne),ae&&(e.directives=ae),R&&ko(e)}function yu(e,t,r=pt){ee(e)&&(e=Cs(e));for(const n in e){const s=e[n];let a;Se(s)?"default"in s?a=Lr(s.from||n,s.default,!0):a=Lr(s.from||n):a=Lr(s),we(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):t[n]=a}}function Oa(e,t,r){gt(ee(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ro(e,t,r,n){let s=n.includes(".")?Co(r,n):()=>r[n];if(Ce(e)){const a=t[e];re(a)&&Qt(s,a)}else if(re(e))Qt(s,e.bind(r));else if(Se(e))if(ee(e))e.forEach(a=>Ro(a,t,r,n));else{const a=re(e.handler)?e.handler.bind(r):t[e.handler];re(a)&&Qt(s,a,e)}}function Ao(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,o=a.get(t);let l;return o?l=o:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(c=>Fn(l,c,i,!0)),Fn(l,t,i)),Se(t)&&a.set(t,l),l}function Fn(e,t,r,n=!1){const{mixins:s,extends:a}=t;a&&Fn(e,a,r,!0),s&&s.forEach(i=>Fn(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const o=bu[i]||r&&r[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const bu={data:Ua,props:La,emits:La,methods:kr,computed:kr,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:kr,directives:kr,watch:wu,provide:Ua,inject:Su};function Ua(e,t){return t?e?function(){return Oe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function Su(e,t){return kr(Cs(e),Cs(t))}function Cs(e){if(ee(e)){const t={};for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vt(t)}Modifiers`]||e[`${nr(t)}Modifiers`];function ku(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||me;let s=r;const a=t.startsWith("update:"),i=a&&Cu(n,t.slice(7));i&&(i.trim&&(s=r.map(u=>Ce(u)?u.trim():u)),i.number&&(s=r.map($s)));let o,l=n[o=Kn(t)]||n[o=Kn(vt(t))];!l&&a&&(l=n[o=Kn(nr(t))]),l&>(l,e,6,s);const c=n[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,gt(c,e,6,s)}}const Eu=new WeakMap;function Mo(e,t,r=!1){const n=r?Eu:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const a=e.emits;let i={},o=!1;if(!re(e)){const l=c=>{const u=Mo(c,t,!0);u&&(o=!0,Oe(i,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!o?(Se(e)&&n.set(e,null),null):(ee(a)?a.forEach(l=>i[l]=null):Oe(i,a),Se(e)&&n.set(e,i),i)}function zn(e,t){return!e||!Rn(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,nr(t))||fe(e,t))}function _a(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[a],slots:i,attrs:o,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:x,inheritAttrs:y}=e,m=Sn(e);let S,w;try{if(r.shapeFlag&4){const E=s||n,U=E;S=ct(c.call(U,E,u,h,d,f,x)),w=o}else{const E=t;S=ct(E.length>1?E(h,{attrs:o,slots:i,emit:l}):E(h,null)),w=t.props?o:Ou(o)}}catch(E){Ir.length=0,Gn(E,e,1),S=Ze(Ht)}let T=S;if(w&&y!==!1){const E=Object.keys(w),{shapeFlag:U}=T;E.length&&U&7&&(a&&E.some(Vs)&&(w=Uu(w,a)),T=vr(T,w,!1,!0))}return r.dirs&&(T=vr(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(r.dirs):r.dirs),r.transition&&ra(T,r.transition),S=T,Sn(m),S}const Ou=e=>{let t;for(const r in e)(r==="class"||r==="style"||Rn(r))&&((t||(t={}))[r]=e[r]);return t},Uu=(e,t)=>{const r={};for(const n in e)(!Vs(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Lu(e,t,r){const{props:n,children:s,component:a}=e,{props:i,children:o,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?Ra(n,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let h=0;hObject.create(Po),Bo=e=>Object.getPrototypeOf(e)===Po;function Ru(e,t,r,n=!1){const s={},a=Do();e.propsDefaults=Object.create(null),No(e,t,s,a);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);r?e.props=n?s:I0(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function Au(e,t,r,n){const{props:s,attrs:a,vnode:{patchFlag:i}}=e,o=le(s),[l]=e.propsOptions;let c=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let h=0;h{l=!0;const[f,d]=Go(h,t,!0);Oe(i,f),d&&o.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return Se(e)&&n.set(e,cr),cr;if(ee(a))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",sa=e=>ee(e)?e.map(ct):[ct(e)],Mu=(e,t,r)=>{if(t._n)return t;const n=q0((...s)=>sa(t(...s)),r);return n._c=!1,n},Ho=(e,t,r)=>{const n=e._ctx;for(const s in e){if(na(s))continue;const a=e[s];if(re(a))t[s]=Mu(s,a,n);else if(a!=null){const i=sa(a);t[s]=()=>i}}},zo=(e,t)=>{const r=sa(t);e.slots.default=()=>r},Vo=(e,t,r)=>{for(const n in t)(r||!na(n))&&(e[n]=t[n])},Pu=(e,t,r)=>{const n=e.slots=Do();if(e.vnode.shapeFlag&32){const s=t._;s?(Vo(n,t,r),r&&Yi(n,"_",s,!0)):Ho(t,n)}else t&&zo(e,t)},Du=(e,t,r)=>{const{vnode:n,slots:s}=e;let a=!0,i=me;if(n.shapeFlag&32){const o=t._;o?r&&o===1?a=!1:Vo(s,t,r):(a=!t.$stable,Ho(t,s)),i=t}else t&&(zo(e,t),i={default:1});if(a)for(const o in s)!na(o)&&i[o]==null&&delete s[o]},Ne=zu;function Bu(e){return Nu(e)}function Nu(e,t){const r=Pn();r.__VUE__=!0;const{insert:n,remove:s,patchProp:a,createElement:i,createText:o,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=pt,insertStaticContent:x}=e,y=(v,p,g,F=null,C=null,k=null,M=void 0,I=null,A=!!p.dynamicChildren)=>{if(v===p)return;v&&!Tr(v,p)&&(F=mt(v),ce(v,C,k,!0),v=null),p.patchFlag===-2&&(A=!1,p.dynamicChildren=null);const{type:L,ref:X,shapeFlag:G}=p;switch(L){case Vn:m(v,p,g,F);break;case Ht:S(v,p,g,F);break;case ss:v==null&&w(p,g,F,M);break;case De:ne(v,p,g,F,C,k,M,I,A);break;default:G&1?U(v,p,g,F,C,k,M,I,A):G&6?ae(v,p,g,F,C,k,M,I,A):(G&64||G&128)&&L.process(v,p,g,F,C,k,M,I,A,Lt)}X!=null&&C?_r(X,v&&v.ref,k,p||v,!p):X==null&&v&&v.ref!=null&&_r(v.ref,null,k,v,!0)},m=(v,p,g,F)=>{if(v==null)n(p.el=o(p.children),g,F);else{const C=p.el=v.el;p.children!==v.children&&c(C,p.children)}},S=(v,p,g,F)=>{v==null?n(p.el=l(p.children||""),g,F):p.el=v.el},w=(v,p,g,F)=>{[v.el,v.anchor]=x(v.children,p,g,F,v.el,v.anchor)},T=({el:v,anchor:p},g,F)=>{let C;for(;v&&v!==p;)C=f(v),n(v,g,F),v=C;n(p,g,F)},E=({el:v,anchor:p})=>{let g;for(;v&&v!==p;)g=f(v),s(v),v=g;s(p)},U=(v,p,g,F,C,k,M,I,A)=>{if(p.type==="svg"?M="svg":p.type==="math"&&(M="mathml"),v==null)q(p,g,F,C,k,M,I,A);else{const L=v.el&&v.el._isVueCE?v.el:null;try{L&&L._beginPatch(),R(v,p,C,k,M,I,A)}finally{L&&L._endPatch()}}},q=(v,p,g,F,C,k,M,I)=>{let A,L;const{props:X,shapeFlag:G,transition:j,dirs:Y}=v;if(A=v.el=i(v.type,k,X&&X.is,X),G&8?u(A,v.children):G&16&&O(v.children,A,null,F,C,ns(v,k),M,I),Y&&Zt(v,null,F,"created"),N(A,v,v.scopeId,M,F),X){for(const de in X)de!=="value"&&!Er(de)&&a(A,de,null,X[de],k,F);"value"in X&&a(A,"value",null,X.value,k),(L=X.onVnodeBeforeMount)&&it(L,F,v)}Y&&Zt(v,null,F,"beforeMount");const te=Gu(C,j);te&&j.beforeEnter(A),n(A,p,g),((L=X&&X.onVnodeMounted)||te||Y)&&Ne(()=>{L&&it(L,F,v),te&&j.enter(A),Y&&Zt(v,null,F,"mounted")},C)},N=(v,p,g,F,C)=>{if(g&&d(v,g),F)for(let k=0;k{for(let L=A;L{const I=p.el=v.el;let{patchFlag:A,dynamicChildren:L,dirs:X}=p;A|=v.patchFlag&16;const G=v.props||me,j=p.props||me;let Y;if(g&&$t(g,!1),(Y=j.onVnodeBeforeUpdate)&&it(Y,g,p,v),X&&Zt(p,v,g,"beforeUpdate"),g&&$t(g,!0),(G.innerHTML&&j.innerHTML==null||G.textContent&&j.textContent==null)&&u(I,""),L?V(v.dynamicChildren,L,I,g,F,ns(p,C),k):M||W(v,p,I,null,g,F,ns(p,C),k,!1),A>0){if(A&16)Q(I,G,j,g,C);else if(A&2&&G.class!==j.class&&a(I,"class",null,j.class,C),A&4&&a(I,"style",G.style,j.style,C),A&8){const te=p.dynamicProps;for(let de=0;de{Y&&it(Y,g,p,v),X&&Zt(p,v,g,"updated")},F)},V=(v,p,g,F,C,k,M)=>{for(let I=0;I{if(p!==g){if(p!==me)for(const k in p)!Er(k)&&!(k in g)&&a(v,k,p[k],null,C,F);for(const k in g){if(Er(k))continue;const M=g[k],I=p[k];M!==I&&k!=="value"&&a(v,k,I,M,C,F)}"value"in g&&a(v,"value",p.value,g.value,C)}},ne=(v,p,g,F,C,k,M,I,A)=>{const L=p.el=v?v.el:o(""),X=p.anchor=v?v.anchor:o("");let{patchFlag:G,dynamicChildren:j,slotScopeIds:Y}=p;Y&&(I=I?I.concat(Y):Y),v==null?(n(L,g,F),n(X,g,F),O(p.children||[],g,X,C,k,M,I,A)):G>0&&G&64&&j&&v.dynamicChildren&&v.dynamicChildren.length===j.length?(V(v.dynamicChildren,j,g,C,k,M,I),(p.key!=null||C&&p===C.subTree)&&Wo(v,p,!0)):W(v,p,g,X,C,k,M,I,A)},ae=(v,p,g,F,C,k,M,I,A)=>{p.slotScopeIds=I,v==null?p.shapeFlag&512?C.ctx.activate(p,g,F,M,A):ie(p,g,F,C,k,M,A):_(v,p,A)},ie=(v,p,g,F,C,k,M)=>{const I=v.component=Yu(v,F,C);if(Eo(v)&&(I.ctx.renderer=Lt),Ku(I,!1,M),I.asyncDep){if(C&&C.registerDep(I,z,M),!v.el){const A=I.subTree=Ze(Ht);S(null,A,p,g),v.placeholder=A.el}}else z(I,v,p,g,C,k,M)},_=(v,p,g)=>{const F=p.component=v.component;if(Lu(v,p,g))if(F.asyncDep&&!F.asyncResolved){B(F,p,g);return}else F.next=p,F.update();else p.el=v.el,F.vnode=p},z=(v,p,g,F,C,k,M)=>{const I=()=>{if(v.isMounted){let{next:G,bu:j,u:Y,parent:te,vnode:de}=v;{const st=Zo(v);if(st){G&&(G.el=de.el,B(v,G,M)),st.asyncDep.then(()=>{v.isUnmounted||I()});return}}let pe=G,Me;$t(v,!1),G?(G.el=de.el,B(v,G,M)):G=de,j&&hn(j),(Me=G.props&&G.props.onVnodeBeforeUpdate)&&it(Me,te,G,de),$t(v,!0);const Pe=_a(v),nt=v.subTree;v.subTree=Pe,y(nt,Pe,h(nt.el),mt(nt),v,C,k),G.el=Pe.el,pe===null&&_u(v,Pe.el),Y&&Ne(Y,C),(Me=G.props&&G.props.onVnodeUpdated)&&Ne(()=>it(Me,te,G,de),C)}else{let G;const{el:j,props:Y}=p,{bm:te,m:de,parent:pe,root:Me,type:Pe}=v,nt=Rr(p);$t(v,!1),te&&hn(te),!nt&&(G=Y&&Y.onVnodeBeforeMount)&&it(G,pe,p),$t(v,!0);{Me.ce&&Me.ce._def.shadowRoot!==!1&&Me.ce._injectChildStyle(Pe);const st=v.subTree=_a(v);y(null,st,g,F,v,C,k),p.el=st.el}if(de&&Ne(de,C),!nt&&(G=Y&&Y.onVnodeMounted)){const st=p;Ne(()=>it(G,pe,st),C)}(p.shapeFlag&256||pe&&Rr(pe.vnode)&&pe.vnode.shapeFlag&256)&&v.a&&Ne(v.a,C),v.isMounted=!0,p=g=F=null}};v.scope.on();const A=v.effect=new no(I);v.scope.off();const L=v.update=A.run.bind(A),X=v.job=A.runIfDirty.bind(A);X.i=v,X.id=v.uid,A.scheduler=()=>ta(X),$t(v,!0),L()},B=(v,p,g)=>{p.component=v;const F=v.vnode.props;v.vnode=p,v.next=null,Au(v,p.props,F,g),Du(v,p.children,g),Ct(),Fa(v),kt()},W=(v,p,g,F,C,k,M,I,A=!1)=>{const L=v&&v.children,X=v?v.shapeFlag:0,G=p.children,{patchFlag:j,shapeFlag:Y}=p;if(j>0){if(j&128){ge(L,G,g,F,C,k,M,I,A);return}else if(j&256){se(L,G,g,F,C,k,M,I,A);return}}Y&8?(X&16&&je(L,C,k),G!==L&&u(g,G)):X&16?Y&16?ge(L,G,g,F,C,k,M,I,A):je(L,C,k,!0):(X&8&&u(g,""),Y&16&&O(G,g,F,C,k,M,I,A))},se=(v,p,g,F,C,k,M,I,A)=>{v=v||cr,p=p||cr;const L=v.length,X=p.length,G=Math.min(L,X);let j;for(j=0;jX?je(v,C,k,!0,!1,G):O(p,g,F,C,k,M,I,A,G)},ge=(v,p,g,F,C,k,M,I,A)=>{let L=0;const X=p.length;let G=v.length-1,j=X-1;for(;L<=G&&L<=j;){const Y=v[L],te=p[L]=A?Dt(p[L]):ct(p[L]);if(Tr(Y,te))y(Y,te,g,null,C,k,M,I,A);else break;L++}for(;L<=G&&L<=j;){const Y=v[G],te=p[j]=A?Dt(p[j]):ct(p[j]);if(Tr(Y,te))y(Y,te,g,null,C,k,M,I,A);else break;G--,j--}if(L>G){if(L<=j){const Y=j+1,te=Yj)for(;L<=G;)ce(v[L],C,k,!0),L++;else{const Y=L,te=L,de=new Map;for(L=te;L<=j;L++){const Be=p[L]=A?Dt(p[L]):ct(p[L]);Be.key!=null&&de.set(Be.key,L)}let pe,Me=0;const Pe=j-te+1;let nt=!1,st=0;const Sr=new Array(Pe);for(L=0;L=Pe){ce(Be,C,k,!0);continue}let at;if(Be.key!=null)at=de.get(Be.key);else for(pe=te;pe<=j;pe++)if(Sr[pe-te]===0&&Tr(Be,p[pe])){at=pe;break}at===void 0?ce(Be,C,k,!0):(Sr[at-te]=L+1,at>=st?st=at:nt=!0,y(Be,p[at],g,null,C,k,M,I,A),Me++)}const xa=nt?Hu(Sr):cr;for(pe=xa.length-1,L=Pe-1;L>=0;L--){const Be=te+L,at=p[Be],ya=p[Be+1],ba=Be+1{const{el:k,type:M,transition:I,children:A,shapeFlag:L}=v;if(L&6){oe(v.component.subTree,p,g,F);return}if(L&128){v.suspense.move(p,g,F);return}if(L&64){M.move(v,p,g,Lt);return}if(M===De){n(k,p,g);for(let G=0;GI.enter(k),C);else{const{leave:G,delayLeave:j,afterLeave:Y}=I,te=()=>{v.ctx.isUnmounted?s(k):n(k,p,g)},de=()=>{k._isLeaving&&k[ru](!0),G(k,()=>{te(),Y&&Y()})};j?j(k,te,de):de()}else n(k,p,g)},ce=(v,p,g,F=!1,C=!1)=>{const{type:k,props:M,ref:I,children:A,dynamicChildren:L,shapeFlag:X,patchFlag:G,dirs:j,cacheIndex:Y}=v;if(G===-2&&(C=!1),I!=null&&(Ct(),_r(I,null,g,v,!0),kt()),Y!=null&&(p.renderCache[Y]=void 0),X&256){p.ctx.deactivate(v);return}const te=X&1&&j,de=!Rr(v);let pe;if(de&&(pe=M&&M.onVnodeBeforeUnmount)&&it(pe,p,v),X&6)br(v.component,g,F);else{if(X&128){v.suspense.unmount(g,F);return}te&&Zt(v,null,p,"beforeUnmount"),X&64?v.type.remove(v,p,g,Lt,F):L&&!L.hasOnce&&(k!==De||G>0&&G&64)?je(L,p,g,!1,!0):(k===De&&G&384||!C&&X&16)&&je(A,p,g),F&&Ut(v)}(de&&(pe=M&&M.onVnodeUnmounted)||te)&&Ne(()=>{pe&&it(pe,p,v),te&&Zt(v,null,p,"unmounted")},g)},Ut=v=>{const{type:p,el:g,anchor:F,transition:C}=v;if(p===De){sr(g,F);return}if(p===ss){E(v);return}const k=()=>{s(g),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(v.shapeFlag&1&&C&&!C.persisted){const{leave:M,delayLeave:I}=C,A=()=>M(g,k);I?I(v.el,k,A):A()}else k()},sr=(v,p)=>{let g;for(;v!==p;)g=f(v),s(v),v=g;s(p)},br=(v,p,g)=>{const{bum:F,scope:C,job:k,subTree:M,um:I,m:A,a:L}=v;Ia(A),Ia(L),F&&hn(F),C.stop(),k&&(k.flags|=8,ce(M,v,p,g)),I&&Ne(I,p),Ne(()=>{v.isUnmounted=!0},p)},je=(v,p,g,F=!1,C=!1,k=0)=>{for(let M=k;M{if(v.shapeFlag&6)return mt(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const p=f(v.anchor||v.el),g=p&&p[eu];return g?f(g):p};let qe=!1;const tn=(v,p,g)=>{let F;v==null?p._vnode&&(ce(p._vnode,null,null,!0),F=p._vnode.component):y(p._vnode||null,v,p,null,null,null,g),p._vnode=v,qe||(qe=!0,Fa(F),So(),qe=!1)},Lt={p:y,um:ce,m:oe,r:Ut,mt:ie,mc:O,pc:W,pbc:V,n:mt,o:e};return{render:tn,hydrate:void 0,createApp:Fu(tn)}}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 $t({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wo(e,t,r=!1){const n=e.children,s=t.children;if(ee(n)&&ee(s))for(let a=0;a>1,e[r[o]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,i=r[a-1];a-- >0;)r[a]=i,i=t[i];return r}function Zo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zo(t)}function Ia(e){if(e)for(let t=0;te.__isSuspense;function zu(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):j0(e)}const De=Symbol.for("v-fgt"),Vn=Symbol.for("v-txt"),Ht=Symbol.for("v-cmt"),ss=Symbol.for("v-stc"),Ir=[];let He=null;function ue(e=!1){Ir.push(He=e?null:[])}function Vu(){Ir.pop(),He=Ir[Ir.length-1]||null}let Hr=1;function Ma(e,t=!1){Hr+=e,e<0&&He&&t&&(He.hasOnce=!0)}function qo(e){return e.dynamicChildren=Hr>0?He||cr:null,Vu(),Hr>0&&He&&He.push(e),e}function he(e,t,r,n,s,a){return qo(P(e,t,r,n,s,a,!0))}function Xo(e,t,r,n,s){return qo(Ze(e,t,r,n,s,!0))}function Yo(e){return e?e.__v_isVNode===!0:!1}function Tr(e,t){return e.type===t.type&&e.key===t.key}const Ko=({key:e})=>e??null,dn=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ce(e)||we(e)||re(e)?{i:Ge,r:e,k:t,f:!!r}:e:null);function P(e,t=null,r=null,n=0,s=null,a=e===De?0:1,i=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ko(t),ref:t&&dn(t),scopeId:To,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:Ge};return o?(aa(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Ce(r)?8:16),Hr>0&&!i&&He&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&He.push(l),l}const Ze=Wu;function Wu(e,t=null,r=null,n=0,s=null,a=!1){if((!e||e===du)&&(e=Ht),Yo(e)){const o=vr(e,t,!0);return r&&aa(o,r),Hr>0&&!a&&He&&(o.shapeFlag&6?He[He.indexOf(e)]=o:He.push(o)),o.patchFlag=-2,o}if(tc(e)&&(e=e.__vccOpts),t){t=Zu(t);let{class:o,style:l}=t;o&&!Ce(o)&&(t.class=ft(o)),Se(l)&&(Nn(l)&&!ee(l)&&(l=Oe({},l)),t.style=Dr(l))}const i=Ce(e)?1:jo(e)?128:tu(e)?64:Se(e)?4:re(e)?2:0;return P(e,t,r,n,s,i,a,!0)}function Zu(e){return e?Nn(e)||Bo(e)?Oe({},e):e:null}function vr(e,t,r=!1,n=!1){const{props:s,ref:a,patchFlag:i,children:o,transition:l}=e,c=t?ju(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ko(c),ref:t&&t.ref?r&&a?ee(a)?a.concat(dn(t)):[a,dn(t)]:dn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vr(e.ssContent),ssFallback:e.ssFallback&&vr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&ra(u,l.clone(u)),u}function $u(e=" ",t=0){return Ze(Vn,null,e,t)}function Kt(e="",t=!1){return t?(ue(),Xo(Ht,null,e)):Ze(Ht,null,e)}function ct(e){return e==null||typeof e=="boolean"?Ze(Ht):ee(e)?Ze(De,null,e.slice()):Yo(e)?Dt(e):Ze(Vn,null,String(e))}function Dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vr(e)}function aa(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ee(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),aa(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Bo(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Ge},r=32):(t=String(t),n&64?(r=16,t=[$u(t)]):r=8);e.children=t,e.shapeFlag|=r}function ju(...e){const t={};for(let r=0;rRe||Ge;let Cn,Es;{const e=Pn(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),a=>{s.length>1?s.forEach(i=>i(a)):s[0](a)}};Cn=t("__VUE_INSTANCE_SETTERS__",r=>Re=r),Es=t("__VUE_SSR_SETTERS__",r=>zr=r)}const Xr=e=>{const t=Re;return Cn(e),e.scope.on(),()=>{e.scope.off(),Cn(t)}},Pa=()=>{Re&&Re.scope.off(),Cn(null)};function Qo(e){return e.vnode.shapeFlag&4}let zr=!1;function Ku(e,t=!1,r=!1){t&&Es(t);const{props:n,children:s}=e.vnode,a=Qo(e);Ru(e,n,a,t),Pu(e,s,r||t);const i=a?Ju(e,t):void 0;return t&&Es(!1),i}function Ju(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mu);const{setup:n}=r;if(n){Ct();const s=e.setupContext=n.length>1?ec(e):null,a=Xr(e),i=jr(n,e,0,[e.props,s]),o=ji(i);if(kt(),a(),(o||e.sp)&&!Rr(e)&&ko(e),o){if(i.then(Pa,Pa),t)return i.then(l=>{Da(e,l)}).catch(l=>{Gn(l,e,0)});e.asyncDep=i}else Da(e,i)}else el(e)}function Da(e,t,r){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=xo(t)),el(e)}function el(e,t,r){const n=e.type;e.render||(e.render=n.render||pt);{const s=Xr(e);Ct();try{xu(e)}finally{kt(),s()}}}const Qu={get(e,t){return _e(e,"get",""),e[t]}};function ec(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Qu),slots:e.slots,emit:e.emit,expose:t}}function Wn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(xo(Qs(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 tc(e){return re(e)&&"__vccOpts"in e}const ve=(e,t)=>z0(e,t,zr),rc="3.5.27";let Os;const Ba=typeof window<"u"&&window.trustedTypes;if(Ba)try{Os=Ba.createPolicy("vue",{createHTML:e=>e})}catch{}const tl=Os?e=>Os.createHTML(e):e=>e,nc="http://www.w3.org/2000/svg",sc="http://www.w3.org/1998/Math/MathML",yt=typeof document<"u"?document:null,Na=yt&&yt.createElement("template"),ac={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"?yt.createElementNS(nc,e):t==="mathml"?yt.createElementNS(sc,e):r?yt.createElement(e,{is:r}):yt.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>yt.createTextNode(e),createComment:e=>yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,a){const i=r?r.previousSibling:t.lastChild;if(s&&(s===a||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===a||!(s=s.nextSibling)););else{Na.innerHTML=tl(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=Na.content;if(n==="svg"||n==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},ic=Symbol("_vtc");function oc(e,t,r){const n=e[ic];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Ga=Symbol("_vod"),lc=Symbol("_vsh"),uc=Symbol(""),cc=/(?:^|;)\s*display\s*:/;function fc(e,t,r){const n=e.style,s=Ce(r);let a=!1;if(r&&!s){if(t)if(Ce(t))for(const i of t.split(";")){const o=i.slice(0,i.indexOf(":")).trim();r[o]==null&&vn(n,o,"")}else for(const i in t)r[i]==null&&vn(n,i,"");for(const i in r)i==="display"&&(a=!0),vn(n,i,r[i])}else if(s){if(t!==r){const i=n[uc];i&&(r+=";"+i),n.cssText=r,a=cc.test(r)}}else t&&e.removeAttribute("style");Ga in e&&(e[Ga]=a?n.display:"",e[lc]&&(n.display="none"))}const Ha=/\s*!important$/;function vn(e,t,r){if(ee(r))r.forEach(n=>vn(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=hc(e,t);Ha.test(r)?e.setProperty(nr(n),r.replace(Ha,""),"important"):e[n]=r}}const za=["Webkit","Moz","ms"],as={};function hc(e,t){const r=as[t];if(r)return r;let n=vt(t);if(n!=="filter"&&n in e)return as[t]=n;n=Zs(n);for(let s=0;sis||(gc.then(()=>is=0),is=Date.now());function xc(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;gt(yc(n,r.value),t,5,[n])};return r.value=e,r.attached=mc(),r}function yc(e,t){if(ee(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 qa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bc=(e,t,r,n,s,a)=>{const i=s==="svg";t==="class"?oc(e,n,i):t==="style"?fc(e,r,n):Rn(t)?Vs(t)||dc(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Sc(e,t,n,i))?(Za(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Wa(e,t,n,i,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ce(n))?Za(e,vt(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Wa(e,t,n,i))};function Sc(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&qa(t)&&re(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 qa(t)&&Ce(r)?!1:t in e}const Xa=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?r=>hn(t,r):t};function wc(e){e.target.composing=!0}function Ya(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const os=Symbol("_assign");function Ka(e,t,r){return t&&(e=e.trim()),r&&(e=$s(e)),e}const Tc={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[os]=Xa(s);const a=n||s.props&&s.props.type==="number";ur(e,t?"change":"input",i=>{i.target.composing||e[os](Ka(e.value,r,a))}),(r||a)&&ur(e,"change",()=>{e.value=Ka(e.value,r,a)}),t||(ur(e,"compositionstart",wc),ur(e,"compositionend",Ya),ur(e,"change",Ya))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:s,number:a}},i){if(e[os]=Xa(i),e.composing)return;const o=(a||e.type==="number")&&!/^0\d/.test(e.value)?$s(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||s&&e.value.trim()===l)||(e.value=l))}},Fc=Oe({patchProp:bc},ac);let Ja;function Cc(){return Ja||(Ja=Bu(Fc))}const kc=((...e)=>{const t=Cc().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=Oc(n);if(!s)return;const a=t._component;!re(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=r(s,!1,Ec(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function Ec(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Oc(e){return Ce(e)?document.querySelector(e):e}let rl;const Zn=e=>rl=e,nl=Symbol();function Us(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mr||(Mr={}));function Uc(){const e=to(!0),t=e.run(()=>be({}));let r=[],n=[];const s=Qs({install(a){Zn(s),s._a=a,a.provide(nl,s),a.config.globalProperties.$pinia=s,n.forEach(i=>r.push(i)),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 sl=()=>{};function Qa(e,t,r,n=sl){e.add(t);const s=()=>{e.delete(t)&&n()};return!r&&ro()&&d0(s),s}function ir(e,...t){e.forEach(r=>{r(...t)})}const Lc=e=>e(),ei=Symbol(),ls=Symbol();function Ls(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];Us(s)&&Us(n)&&e.hasOwnProperty(r)&&!we(n)&&!Tt(n)?e[r]=Ls(s,n):e[r]=n}return e}const _c=Symbol();function Rc(e){return!Us(e)||!Object.prototype.hasOwnProperty.call(e,_c)}const{assign:At}=Object;function Ac(e){return!!(we(e)&&e.effect)}function Ic(e,t,r,n){const{state:s,actions:a,getters:i}=t,o=r.state.value[e];let l;function c(){o||(r.state.value[e]=s?s():{});const u=B0(r.state.value[e]);return At(u,a,Object.keys(i||{}).reduce((h,f)=>(h[f]=Qs(ve(()=>{Zn(r);const d=r._s.get(e);return i[f].call(d,d)})),h),{}))}return l=al(e,c,t,r,n,!0),l}function al(e,t,r={},n,s,a){let i;const o=At({actions:{}},r),l={deep:!0};let c,u,h=new Set,f=new Set,d;const x=n.state.value[e];!a&&!x&&(n.state.value[e]={});let y;function m(O){let R;c=u=!1,typeof O=="function"?(O(n.state.value[e]),R={type:Mr.patchFunction,storeId:e,events:d}):(Ls(n.state.value[e],O),R={type:Mr.patchObject,payload:O,storeId:e,events:d});const V=y=Symbol();ea().then(()=>{y===V&&(c=!0)}),u=!0,ir(h,R,n.state.value[e])}const S=a?function(){const{state:R}=r,V=R?R():{};this.$patch(Q=>{At(Q,V)})}:sl;function w(){i.stop(),h.clear(),f.clear(),n._s.delete(e)}const T=(O,R="")=>{if(ei in O)return O[ls]=R,O;const V=function(){Zn(n);const Q=Array.from(arguments),ne=new Set,ae=new Set;function ie(B){ne.add(B)}function _(B){ae.add(B)}ir(f,{args:Q,name:V[ls],store:U,after:ie,onError:_});let z;try{z=O.apply(this&&this.$id===e?this:U,Q)}catch(B){throw ir(ae,B),B}return z instanceof Promise?z.then(B=>(ir(ne,B),B)).catch(B=>(ir(ae,B),Promise.reject(B))):(ir(ne,z),z)};return V[ei]=!0,V[ls]=R,V},E={_p:n,$id:e,$onAction:Qa.bind(null,f),$patch:m,$reset:S,$subscribe(O,R={}){const V=Qa(h,O,R.detached,()=>Q()),Q=i.run(()=>Qt(()=>n.state.value[e],ne=>{(R.flush==="sync"?u:c)&&O({storeId:e,type:Mr.direct,events:d},ne)},At({},l,R)));return V},$dispose:w},U=Bn(E);n._s.set(e,U);const N=(n._a&&n._a.runWithContext||Lc)(()=>n._e.run(()=>(i=to()).run(()=>t({action:T}))));for(const O in N){const R=N[O];if(we(R)&&!Ac(R)||Tt(R))a||(x&&Rc(R)&&(we(R)?R.value=x[O]:Ls(R,x[O])),n.state.value[e][O]=R);else if(typeof R=="function"){const V=T(R,O);N[O]=V,o.actions[O]=R}}return At(U,N),At(le(U),N),Object.defineProperty(U,"$state",{get:()=>n.state.value[e],set:O=>{m(R=>{At(R,O)})}}),n._p.forEach(O=>{At(U,i.run(()=>O({store:U,app:n._a,pinia:n,options:o})))}),x&&a&&r.hydrate&&r.hydrate(U.$state,x),c=!0,u=!0,U}function il(e,t,r){let n;const s=typeof t=="function";n=s?r:t;function a(i,o){const l=Y0();return i=i||(l?Lr(nl,null):null),i&&Zn(i),i=rl,i._s.has(e)||(s?al(e,t,n,i):Ic(e,n,i)),i._s.get(e)}return a.$id=e,a}const Mc="modulepreload",Pc=function(e){return"/"+e},ti={},ri=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 i=document.querySelector("meta[property=csp-nonce]"),o=i?.nonce||i?.getAttribute("nonce");s=l(r.map(c=>{if(c=Pc(c),c in ti)return;ti[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":Mc,u||(f.as="script"),f.crossOrigin="",f.href=c,o&&f.setAttribute("nonce",o),document.head.appendChild(f),u)return new Promise((d,x)=>{f.addEventListener("load",d),f.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(i){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i}return s.then(i=>{for(const o of i||[])o.status==="rejected"&&a(o.reason);return t().catch(a)})},Dc="/assets/webicon-K25S575h.svg",Bc="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",Nc="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",Gc="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",Hc="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",zc="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",Vc="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",Wc="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 i=n.charCodeAt(a),o;return i>=55296&&i<=56319&&s>a+1&&(o=n.charCodeAt(a+1),o>=56320&&o<=57343)?(i-55296)*1024+o-56320+65536:i}};e?e(String.prototype,"codePointAt",{value:t,configurable:!0,writable:!0}):String.prototype.codePointAt=t})();var ia=0,ol=-3;function Vr(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function Zc(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new Vr,this.dtree=new Vr}var ll=new Vr,ul=new Vr,oa=new Uint8Array(30),la=new Uint16Array(30),cl=new Uint8Array(30),fl=new Uint16Array(30),$c=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ni=new Vr,ot=new Uint8Array(320);function hl(e,t,r,n){var s,a;for(s=0;s>>=1,t}function ut(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>16-t;return e.tag>>>=t,e.bitcount-=t,n+r}function _s(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>=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 Xc(e,t,r){var n,s,a,i,o,l;for(n=ut(e,5,257),s=ut(e,5,1),a=ut(e,4,4),i=0;i<19;++i)ot[i]=0;for(i=0;i8;)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 ol;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,ia}function Kc(e,t){var r=new Zc(e,t),n,s,a;do{switch(n=qc(r),s=ut(r,2,0),s){case 0:a=Yc(r);break;case 1:a=ai(r,ll,ul);break;case 2:Xc(r,r.ltree,r.dtree),a=ai(r,r.ltree,r.dtree);break;default:a=ol}if(a!==ia)throw new Error("Data error")}while(!n);return r.destLenthis.x2&&(this.x2=e)),typeof t=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))};Wt.prototype.addX=function(e){this.addPoint(e,null)};Wt.prototype.addY=function(e){this.addPoint(null,e)};Wt.prototype.addBezier=function(e,t,r,n,s,a,i,o){var l=[e,t],c=[r,n],u=[s,a],h=[i,o];this.addPoint(e,t),this.addPoint(i,o);for(var f=0;f<=1;f++){var d=6*l[f]-12*c[f]+6*u[f],x=-3*l[f]+9*c[f]-9*u[f]+3*h[f],y=3*c[f]-3*l[f];if(x===0){if(d===0)continue;var m=-y/d;0=0&&l>0&&(o+=" "),o+=t(c)}return o}for(var n="",s=0;s=0&&e<=255,"Byte value should be between 0 and 255."),[e]};J.BYTE=tt(1);D.CHAR=function(e){return[e.charCodeAt(0)]};J.CHAR=tt(1);D.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"u"?0:e.length};D.USHORT=function(e){return[e>>8&255,e&255]};J.USHORT=tt(2);D.SHORT=function(e){return e>=oi&&(e=-(2*oi-e)),[e>>8&255,e&255]};J.SHORT=tt(2);D.UINT24=function(e){return[e>>16&255,e>>8&255,e&255]};J.UINT24=tt(3);D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]};J.ULONG=tt(4);D.LONG=function(e){return e>=li&&(e=-(2*li-e)),[e>>24&255,e>>16&255,e>>8&255,e&255]};J.LONG=tt(4);D.FIXED=D.ULONG;J.FIXED=J.ULONG;D.FWORD=D.SHORT;J.FWORD=J.SHORT;D.UFWORD=D.USHORT;J.UFWORD=J.USHORT;D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,e&255]};J.LONGDATETIME=tt(8);D.TAG=function(e){return K.argument(e.length===4,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]};J.TAG=tt(4);D.Card8=D.BYTE;J.Card8=J.BYTE;D.Card16=D.USHORT;J.Card16=J.USHORT;D.OffSize=D.BYTE;J.OffSize=J.BYTE;D.SID=D.USHORT;J.SID=J.USHORT;D.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?D.NUMBER16(e):D.NUMBER32(e)};J.NUMBER=function(e){return D.NUMBER(e).length};D.NUMBER16=function(e){return[28,e>>8&255,e&255]};J.NUMBER16=tt(3);D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,e&255]};J.NUMBER32=tt(5);D.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,i=t.length;a>8&255,t[t.length]=n&255}return t};J.UTF16=function(e){return e.length*2};var Rs={"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":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};gr.MACSTRING=function(e,t,r,n){var s=Rs[n];if(s!==void 0){for(var a="",i=0;i=128&&(a=r[a],a===void 0))return;n[s]=a}return n}};J.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return r!==void 0?r.length:0};function As(e){return e>=-128&&e<=127}function ef(e,t,r){for(var n=0,s=e.length;t>8&255,l+256&255)}return a}D.VARDELTAS=function(e){for(var t=0,r=[];t=-128&&n<=127?t=tf(e,t,r):t=rf(e,t,r)}return r};D.INDEX=function(e){for(var t=1,r=[t],n=[],s=0;s>8,t[h+1]=f&255,t=t.concat(n[u])}return t};J.TABLE=function(e){for(var t=0,r=e.fields.length,n=0;n0)return new b(this.data,this.offset+t).parseStruct(e)};b.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new b(this.data,this.offset+t).parseStruct(e)};b.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),r=t.length,n=this.relativeOffset,s=new Array(r),a=0;a>1,t.skip("uShort",3),e.glyphIndexMap={};for(var i=new $.Parser(r,n+s+14),o=new $.Parser(r,n+s+16+a*2),l=new $.Parser(r,n+s+16+a*4),c=new $.Parser(r,n+s+16+a*6),u=n+s+16+a*8,h=0;h=0;s-=1){var a=$.getUShort(e,t+4+s*8),i=$.getUShort(e,t+4+s*8+2);if(a===3&&(i===0||i===1||i===10)||a===0&&(i===0||i===1||i===2||i===3||i===4)){n=$.getULong(e,t+4+s*8+4);break}}if(n===-1)throw new Error("No valid cmap sub-tables found.");var o=new $.Parser(e,t+n);if(r.format=o.parseUShort(),r.format===12)cf(r,o);else if(r.format===4)ff(r,o,e,t,n);else throw new Error("Only format 4 and 12 cmap tables are supported (found format "+r.format+").");return r}function pf(e,t,r){e.segments.push({end:t,start:t,delta:-(t-r),offset:0,glyphIndex:r})}function df(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}function vf(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 H.Table("cmap",s);for(a.segments=[],r=0;r>4,i=s&15;if(a===r||(t+=n[a],i===r))break;t+=n[i]}return parseFloat(t)}function Uf(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 Of(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 Lf(e){for(var t={},r=0;r>1,l.length=0,u=!0}function N(O){for(var R,V,Q,ne,ae,ie,_,z,B,W,se,ge,oe=0;oe1&&!u&&(E=l.shift()+S,u=!0),d+=l.pop(),U(f,d);break;case 5:for(;l.length>0;)f+=l.shift(),d+=l.shift(),o.lineTo(f,d);break;case 6:for(;l.length>0&&(f+=l.shift(),o.lineTo(f,d),l.length!==0);)d+=l.shift(),o.lineTo(f,d);break;case 7:for(;l.length>0&&(d+=l.shift(),o.lineTo(f,d),l.length!==0);)f+=l.shift(),o.lineTo(f,d);break;case 8:for(;l.length>0;)n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+l.shift(),o.curveTo(n,s,a,i,f,d);break;case 10:ae=l.pop()+y,ie=x[ae],ie&&N(ie);break;case 11:return;case 12:switch(ce=O[oe],oe+=1,ce){case 35:n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),_=a+l.shift(),z=i+l.shift(),B=_+l.shift(),W=z+l.shift(),se=B+l.shift(),ge=W+l.shift(),f=se+l.shift(),d=ge+l.shift(),l.shift(),o.curveTo(n,s,a,i,_,z),o.curveTo(B,W,se,ge,f,d);break;case 34:n=f+l.shift(),s=d,a=n+l.shift(),i=s+l.shift(),_=a+l.shift(),z=i,B=_+l.shift(),W=i,se=B+l.shift(),ge=d,f=se+l.shift(),o.curveTo(n,s,a,i,_,z),o.curveTo(B,W,se,ge,f,d);break;case 36:n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),_=a+l.shift(),z=i,B=_+l.shift(),W=i,se=B+l.shift(),ge=W+l.shift(),f=se+l.shift(),o.curveTo(n,s,a,i,_,z),o.curveTo(B,W,se,ge,f,d);break;case 37:n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),_=a+l.shift(),z=i+l.shift(),B=_+l.shift(),W=z+l.shift(),se=B+l.shift(),ge=W+l.shift(),Math.abs(se-f)>Math.abs(ge-d)?f=se+l.shift():d=ge+l.shift(),o.curveTo(n,s,a,i,_,z),o.curveTo(B,W,se,ge,f,d);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+ce),l.length=0}break;case 14:l.length>0&&!u&&(E=l.shift()+S,u=!0),h&&(o.closePath(),h=!1);break;case 18:q();break;case 19:case 20:q(),oe+=c+7>>3;break;case 21:l.length>2&&!u&&(E=l.shift()+S,u=!0),d+=l.pop(),f+=l.pop(),U(f,d);break;case 22:l.length>1&&!u&&(E=l.shift()+S,u=!0),f+=l.pop(),U(f,d);break;case 23:q();break;case 24:for(;l.length>2;)n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+l.shift(),o.curveTo(n,s,a,i,f,d);f+=l.shift(),d+=l.shift(),o.lineTo(f,d);break;case 25:for(;l.length>6;)f+=l.shift(),d+=l.shift(),o.lineTo(f,d);n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+l.shift(),o.curveTo(n,s,a,i,f,d);break;case 26:for(l.length%2&&(f+=l.shift());l.length>0;)n=f,s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a,d=i+l.shift(),o.curveTo(n,s,a,i,f,d);break;case 27:for(l.length%2&&(d+=l.shift());l.length>0;)n=f+l.shift(),s=d,a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i,o.curveTo(n,s,a,i,f,d);break;case 28:R=O[oe],V=O[oe+1],l.push((R<<24|V<<16)>>16),oe+=2;break;case 29:ae=l.pop()+e.gsubrsBias,ie=e.gsubrs[ae],ie&&N(ie);break;case 30:for(;l.length>0&&(n=f,s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+(l.length===1?l.shift():0),o.curveTo(n,s,a,i,f,d),l.length!==0);)n=f+l.shift(),s=d,a=n+l.shift(),i=s+l.shift(),d=i+l.shift(),f=a+(l.length===1?l.shift():0),o.curveTo(n,s,a,i,f,d);break;case 31:for(;l.length>0&&(n=f+l.shift(),s=d,a=n+l.shift(),i=s+l.shift(),d=i+l.shift(),f=a+(l.length===1?l.shift():0),o.curveTo(n,s,a,i,f,d),l.length!==0);)n=f,s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+(l.length===1?l.shift():0),o.curveTo(n,s,a,i,f,d);break;default:ce<32?console.log("Glyph "+t.index+": unknown operator "+ce):ce<247?l.push(ce-139):ce<251?(R=O[oe],oe+=1,l.push((ce-247)*256+R+108)):ce<255?(R=O[oe],oe+=1,l.push(-(ce-251)*256-R-108)):(R=O[oe],V=O[oe+1],Q=O[oe+2],ne=O[oe+3],oe+=4,l.push((R<<24|V<<16|Q<<8|ne)/65536))}}}return N(r),t.advanceWidth=E,o}function Mf(e,t,r,n){var s=[],a,i=new $.Parser(e,t),o=i.parseCard8();if(o===0)for(var l=0;l=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");s.push(a)}else if(o===3){var c=i.parseCard16(),u=i.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=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=0&&(r=n),n=t.indexOf(e),n>=0?r=n+gn.length:(r=gn.length+t.length,t.push(e)),r}function Df(){return new H.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 Bf(e){var t=new H.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var r=0;r=r.begin&&e=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 ph(e){return new H.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 Bs={parse:hh,make:ph,unicodeRanges:Ds,getUnicodeRange:fh};function dh(e,t){var r={},n=new $.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=Xt.slice();break;case 2:r.numberOfGlyphs=n.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var s=0;s=Xt.length){var i=n.parseChar();r.names.push(n.parseString(i))}break;case 2.5:r.numberOfGlyphs=n.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var o=0;oh.value.tag?1:-1}),t.fields=t.fields.concat(n),t.fields=t.fields.concat(s),t}function yi(e,t,r){for(var n=0;n0){var a=e.glyphs.get(s);return a.getMetrics()}}return r}function bh(e){for(var t=0,r=0;rm||l===void 0)&&m>0&&(l=m),c 123 are reserved for internal usage");if(y.name!==".notdef"){var w=y.getMetrics();t.push(w.xMin),r.push(w.yMin),n.push(w.xMax),s.push(w.yMax),i.push(w.leftSideBearing),o.push(w.rightSideBearing),a.push(y.advanceWidth)}}var T={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:bh(a),minLeftSideBearing:Math.min.apply(null,i),maxLeftSideBearing:Math.max.apply(null,i),minRightSideBearing:Math.min.apply(null,o)};T.ascender=e.ascender,T.descender=e.descender;var E=El.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:T.xMin,yMin:T.yMin,xMax:T.xMax,yMax:T.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),U=Ol.make({ascender:T.ascender,descender:T.descender,advanceWidthMax:T.advanceWidthMax,minLeftSideBearing:T.minLeftSideBearing,minRightSideBearing:T.minRightSideBearing,xMaxExtent:T.maxLeftSideBearing+(T.xMax-T.xMin),numberOfHMetrics:e.glyphs.length}),q=_l.make(e.glyphs.length),N=Bs.make(Object.assign({xAvgCharWidth:Math.round(T.advanceWidthAvg),usFirstCharIndex:l,usLastCharIndex:c,ulUnicodeRange1:u,ulUnicodeRange2:h,ulUnicodeRange3:f,ulUnicodeRange4:d,sTypoAscender:T.ascender,sTypoDescender:T.descender,sTypoLineGap:0,usWinAscent:T.yMax,usWinDescent:Math.abs(T.yMin),ulCodePageRange1:1,sxHeight:yi(e,"xyvw",{yMax:Math.round(T.ascender/2)}).yMax,sCapHeight:yi(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",T).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0},e.tables.os2)),O=Ul.make(e.glyphs),R=vl.make(e.glyphs),V=e.getEnglishName("fontFamily"),Q=e.getEnglishName("fontSubfamily"),ne=V+" "+Q,ae=e.getEnglishName("postScriptName");ae||(ae=V.replace(/\s/g,"")+"-"+Q);var ie={};for(var _ in e.names)ie[_]=e.names[_];ie.uniqueID||(ie.uniqueID={en:e.getEnglishName("manufacturer")+":"+ne}),ie.postScriptName||(ie.postScriptName={en:ae}),ie.preferredFamily||(ie.preferredFamily=e.names.fontFamily),ie.preferredSubfamily||(ie.preferredSubfamily=e.names.fontSubfamily);var z=[],B=Pl.make(ie,z),W=z.length>0?Ll.make(z):void 0,se=Dl.make(),ge=kl.make(e.glyphs,{version:e.getEnglishName("version"),fullName:ne,familyName:V,weightName:Q,postScriptName:ae,unitsPerEm:e.unitsPerEm,fontBBox:[0,T.yMin,T.ascender,T.advanceWidthMax]}),oe=e.metas&&Object.keys(e.metas).length>0?Nl.make(e.metas):void 0,ce=[E,U,q,N,B,R,se,ge,O];W&&ce.push(W),e.tables.gsub&&ce.push(Bl.make(e.tables.gsub)),oe&&ce.push(oe);for(var Ut=Gl(ce),sr=Ut.encode(),br=ha(sr),je=Ut.fields,mt=!1,qe=0;qe>>1,a=e[s].tag;if(a===t)return s;a>>1,a=e[s];if(a===t)return s;a>>1;r=e[a];var i=r.start;if(i===t)return r;i0)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:bi,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=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,i=s.featureIndexes,o=this.font.tables[this.tableName].features,l=0;l=o[c-1].tag,"Features must be added in alphabetical order."),a={tag:r,feature:{params:0,lookupListIndexes:[]}},o.push(a),i.push(c),a.feature}}},getLookupTables:function(e,t,r,n,s){var a=this.getFeatureTable(e,t,r,s),i=[];if(a){for(var o,l=a.lookupListIndexes,c=this.font.tables[this.tableName].lookups,u=0;u=0?r:-1;case 2:var n=Si(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;n1,'Multiple: "by" must be an array of two or more ids');var s=this.getLookupTables(r,n,e,2,!0)[0],a=pa(s,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});K.assert(a.coverage.format===1,"Multiple: unable to modify coverage table format "+a.coverage.format);var i=t.sub,o=this.binSearch(a.coverage.glyphs,i);o<0&&(o=-1-o,a.coverage.glyphs.splice(o,0,i),a.sequences.splice(o,0,0)),a.sequences[o]=t.by};Ve.prototype.addAlternate=function(e,t,r,n){var s=this.getLookupTables(r,n,e,3,!0)[0],a=pa(s,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});K.assert(a.coverage.format===1,"Alternate: unable to modify coverage table format "+a.coverage.format);var i=t.sub,o=this.binSearch(a.coverage.glyphs,i);o<0&&(o=-1-o,a.coverage.glyphs.splice(o,0,i),a.alternateSets.splice(o,0,0)),a.alternateSets[o]=t.by};Ve.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),K.assert(a.coverage.format===1,"Ligature: unable to modify coverage table format "+a.coverage.format);var i=t.sub[0],o=t.sub.slice(1),l={ligGlyph:t.by,components:o},c=this.binSearch(a.coverage.glyphs,i);if(c>=0){for(var u=a.ligatureSets[c],h=0;h0?(a=e.parseByte(),(t&s)===0&&(a=-a),a=r+a):(t&s)>0?a=r:a=r+e.parseShort(),a}function Hl(e,t,r){var n=new $.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 i=e.endPointIndices=[],o=0;o0)for(var h=n.parseByte(),f=0;f0){var d=[],x;if(c>0){for(var y=0;y=0,d.push(x);for(var m=0,S=0;S0?(s&2)>0?(U.dx=n.parseShort(),U.dy=n.parseShort()):U.matchedPoints=[n.parseUShort(),n.parseUShort()]:(s&2)>0?(U.dx=n.parseChar(),U.dy=n.parseChar()):U.matchedPoints=[n.parseByte(),n.parseByte()],(s&8)>0?U.xScale=U.yScale=n.parseF2Dot14():(s&64)>0?(U.xScale=n.parseF2Dot14(),U.yScale=n.parseF2Dot14()):(s&128)>0&&(U.xScale=n.parseF2Dot14(),U.scale01=n.parseF2Dot14(),U.scale10=n.parseF2Dot14(),U.yScale=n.parseF2Dot14()),e.components.push(U),E=!!(s&32)}if(s&256){e.instructionLength=n.parseUShort(),e.instructions=[];for(var q=0;qt.points.length-1||n.matchedPoints[1]>s.points.length-1)throw Error("Matched points out of range in "+t.name);var i=t.points[n.matchedPoints[0]],o=s.points[n.matchedPoints[1]],l={xScale:n.xScale,scale01:n.scale01,scale10:n.scale10,yScale:n.yScale,dx:0,dy:0};o=hs([o],l)[0],l.dx=i.x-o.x,l.dy=i.y-o.y,a=hs(s.points,l)}t.points=t.points.concat(a)}}return zl(t.points)}function Eh(e,t,r,n){for(var s=new dt.GlyphSet(n),a=0;a2)){var r=this.font,n=this._prepState;if(!n||n.ppem!==t){var s=this._fpgmState;if(!s){Bt.prototype=Mh,s=this._fpgmState=new Bt("fpgm",r.tables.fpgm),s.funcs=[],s.font=r,exports.DEBUG&&(console.log("---EXEC FPGM---"),s.step=-1);try{rr(s)}catch(c){console.log("Hinting error in FPGM:"+c),this._errorState=3;return}}Bt.prototype=s,n=this._prepState=new Bt("prep",r.tables.prep),n.ppem=t;var a=r.tables.cvt;if(a)for(var i=n.cvt=new Array(a.length),o=t/r.unitsPerEm,l=0;l1))try{return $l(e,n)}catch(c){this._errorState<1&&(console.log("Hinting error:"+c),console.log("Note: further hinting errors are silenced")),this._errorState=1;return}}};$l=function(e,t){var r=t.ppem/t.font.unitsPerEm,n=r,s=e.components,a,i,o;if(Bt.prototype=t,!s)o=new Bt("glyf",e.instructions),exports.DEBUG&&(console.log("---EXEC GLYPH---"),o.step=-1),Ns(e,o,r,n),i=o.gZone;else{var l=t.font;i=[],a=[];for(var c=0;c=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 Ti(e,t){exports.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function Fi(e,t){exports.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function Ci(e,t){exports.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function ki(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z2[n],i=t.z1[s];exports.DEBUG&&console.log("SPVTL["+e+"]",n,s);var o,l;e?(o=a.y-i.y,l=i.x-a.x):(o=i.x-a.x,l=i.y-a.y),t.pv=t.dpv=Qr(o,l)}function Ei(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z2[n],i=t.z1[s];exports.DEBUG&&console.log("SFVTL["+e+"]",n,s);var o,l;e?(o=a.y-i.y,l=i.x-a.x):(o=i.x-a.x,l=i.y-a.y),t.fv=Qr(o,l)}function Ph(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 Dh(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 Bh(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 Nh(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 Gh(e){e.fv=e.pv,exports.DEBUG&&console.log(e.step,"SFVTPV[]")}function Hh(e){var t=e.stack,r=t.pop(),n=t.pop(),s=t.pop(),a=t.pop(),i=t.pop(),o=e.z0,l=e.z1,c=o[r],u=o[n],h=l[s],f=l[a],d=e.z2[i];exports.DEBUG&&console.log("ISECT[], ",r,n,s,a,i);var x=c.x,y=c.y,m=u.x,S=u.y,w=h.x,T=h.y,E=f.x,U=f.y,q=(x-m)*(T-U)-(y-S)*(w-E),N=x*S-y*m,O=w*U-T*E;d.x=(N*(w-E)-O*(x-m))/q,d.y=(N*(T-U)-O*(y-S))/q}function zh(e){e.rp0=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP0[]",e.rp0)}function Vh(e){e.rp1=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP1[]",e.rp1)}function Wh(e){e.rp2=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP2[]",e.rp2)}function Zh(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 $h(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 jh(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 qh(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 Xh(e){e.loop=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SLOOP[]",e.loop)}function Yh(e){exports.DEBUG&&console.log(e.step,"RTG[]"),e.round=ql}function Kh(e){exports.DEBUG&&console.log(e.step,"RTHG[]"),e.round=Rh}function Jh(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SMD[]",t),e.minDis=t/64}function Qh(e){exports.DEBUG&&console.log(e.step,"ELSE[]"),Yl(e,!1)}function ep(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"JMPR[]",t),e.ip+=t-1}function tp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCVTCI[]",t),e.cvCutIn=t/64}function rp(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 np(e){exports.DEBUG&&console.log(e.step,"CLEAR[]"),e.stack.length=0}function sp(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 ap(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DEPTH[]"),t.push(t.length)}function ip(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 i=0;i1?"loop "+(t.loop-o)+": ":"")+"SHP["+(e?"rp1":"rp2")+"]",c)}t.loop=1}function _i(e,t){var r=t.stack,n=e?t.rp1:t.rp2,s=(e?t.z0:t.z1)[n],a=t.fv,i=t.pv,o=r.pop(),l=t.z2[t.contours[o]],c=l;exports.DEBUG&&console.log(t.step,"SHC["+e+"]",o);var u=i.distance(s,s,!1,!0);do c!==s&&a.setRelative(c,c,u,i),c=c.nextPointOnContour;while(c!==l)}function Ri(e,t){var r=t.stack,n=e?t.rp1:t.rp2,s=(e?t.z0:t.z1)[n],a=t.fv,i=t.pv,o=r.pop();exports.DEBUG&&console.log(t.step,"SHZ["+e+"]",o);var l;switch(o){case 0:l=t.tZone;break;case 1:l=t.gZone;break;default:throw new Error("Invalid zone")}for(var c,u=i.distance(s,s,!1,!0),h=l.length-2,f=0;f1?"loop "+(e.loop-r)+": ":"")+"SHPIX[]",i,s),n.setRelative(o,o,s),n.touch(o)}e.loop=1}function hp(e){for(var t=e.stack,r=e.rp1,n=e.rp2,s=e.loop,a=e.z0[r],i=e.z1[n],o=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),o.interpolate(h,a,i,l),o.touch(h)}e.loop=1}function Ai(e,t){var r=t.stack,n=r.pop()/64,s=r.pop(),a=t.z1[s],i=t.z0[t.rp0],o=t.fv,l=t.pv;o.setRelative(a,i,n,l),o.touch(a),exports.DEBUG&&console.log(t.step,"MSIRP["+e+"]",n,s),t.rp1=t.rp0,t.rp2=s,e&&(t.rp0=s)}function pp(e){for(var t=e.stack,r=e.rp0,n=e.z0[r],s=e.loop,a=e.fv,i=e.pv,o=e.z1;s--;){var l=t.pop(),c=o[l];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-s)+": ":"")+"ALIGNRP[]",l),a.setRelative(c,n,0,i),a.touch(c)}e.loop=1}function dp(e){exports.DEBUG&&console.log(e.step,"RTDG[]"),e.round=_h}function Ii(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z0[s],i=t.fv,o=t.pv,l=t.cvt[n];exports.DEBUG&&console.log(t.step,"MIAP["+e+"]",n,"(",l,")",s);var c=o.distance(a,$r);e&&(Math.abs(c-l)",o),t.stack.push(Math.round(o*64))}function Sp(e){exports.DEBUG&&console.log(e.step,"MPPEM[]"),e.stack.push(e.ppem)}function wp(e){exports.DEBUG&&console.log(e.step,"FLIPON[]"),e.autoFlip=!0}function Tp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LT[]",r,n),t.push(nr?1:0)}function kp(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 Ep(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 Op(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 Up(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 Lp(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 _p(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"IF[]",t),t||(Yl(e,!0),exports.DEBUG&&console.log(e.step,"EIF[]"))}function Rp(e){exports.DEBUG&&console.log(e.step,"EIF[]")}function Ap(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 Ip(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 Mp(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,i=t.ppem,o=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>4);if(d===i){var x=(f&15)-8;x>=0&&x++,exports.DEBUG&&console.log(t.step,"DELTAPFIX",h,"by",x*l);var y=c[h];s.setRelative(y,y,x*l,a)}}}function Pp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDB[]",r),e.deltaBase=r}function Dp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDS[]",r),e.deltaShift=Math.pow(.5,r)}function Bp(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 Np(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 Gp(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 Hp(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 zp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ABS[]",r),t.push(Math.abs(r))}function Vp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NEG[]",r),t.push(-r)}function Wp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"FLOOR[]",r),t.push(Math.floor(r/64)*64)}function Zp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CEILING[]",r),t.push(Math.ceil(r/64)*64)}function cn(e,t){var r=t.stack,n=r.pop();exports.DEBUG&&console.log(t.step,"ROUND[]"),r.push(t.round(n/64)*64)}function $p(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,i=t.deltaShift;exports.DEBUG&&console.log(t.step,"DELTAC["+e+"]",n,r);for(var o=0;o>4);if(u===s){var h=(c&15)-8;h>=0&&h++;var f=h*i;exports.DEBUG&&console.log(t.step,"DELTACFIX",l,"by",f),t.cvt[l]+=f}}}function jp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SROUND[]",t),e.round=Xl;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 qp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"S45ROUND[]",t),e.round=Xl;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 Xp(e){exports.DEBUG&&console.log(e.step,"ROFF[]"),e.round=Lh}function Yp(e){exports.DEBUG&&console.log(e.step,"RUTG[]"),e.round=Ah}function Kp(e){exports.DEBUG&&console.log(e.step,"RDTG[]"),e.round=Ih}function Jp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANCTRL[]",t)}function Di(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z2[n],i=t.z1[s];exports.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",n,s);var o,l;e?(o=a.y-i.y,l=i.x-a.x):(o=i.x-a.x,l=i.y-a.y),t.dpv=Qr(o,l)}function Qp(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 e2(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 t2(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 r2(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 n2(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANTYPE[]",t)}function s2(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 _t(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=0?1:-1,m=Math.abs(m),e&&(w=a.cvt[o],n&&Math.abs(m-w)":"_")+(n?"R":"_")+(s===0?"Gr":s===1?"Bl":s===2?"Wh":"")+"]",e?o+"("+a.cvt[o]+","+w+")":"",l,"(d =",y,"->",S*m,")"),a.rp1=a.rp0,a.rp2=l,t&&(a.rp0=l)}Zl=[Ti.bind(void 0,wt),Ti.bind(void 0,ht),Fi.bind(void 0,wt),Fi.bind(void 0,ht),Ci.bind(void 0,wt),Ci.bind(void 0,ht),ki.bind(void 0,0),ki.bind(void 0,1),Ei.bind(void 0,0),Ei.bind(void 0,1),Ph,Dh,Bh,Nh,Gh,Hh,zh,Vh,Wh,Zh,$h,jh,qh,Xh,Yh,Kh,Jh,Qh,ep,tp,void 0,void 0,rp,ps,np,sp,ap,lp,up,void 0,void 0,void 0,ip,op,cp,void 0,Oi.bind(void 0,0),Oi.bind(void 0,1),Ui.bind(void 0,wt),Ui.bind(void 0,ht),Li.bind(void 0,0),Li.bind(void 0,1),_i.bind(void 0,0),_i.bind(void 0,1),Ri.bind(void 0,0),Ri.bind(void 0,1),fp,hp,Ai.bind(void 0,0),Ai.bind(void 0,1),pp,dp,Ii.bind(void 0,0),Ii.bind(void 0,1),vp,gp,mp,xp,yp,bp,Mi.bind(void 0,0),Mi.bind(void 0,1),void 0,Pi.bind(void 0,0),Pi.bind(void 0,1),Sp,void 0,wp,void 0,void 0,Tp,Fp,Cp,kp,Ep,Op,Up,Lp,_p,Rp,Ap,Ip,Mp,ds.bind(void 0,1),Pp,Dp,Bp,Np,Gp,Hp,zp,Vp,Wp,Zp,cn.bind(void 0,0),cn.bind(void 0,1),cn.bind(void 0,2),cn.bind(void 0,3),void 0,void 0,void 0,void 0,$p,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),jp,qp,void 0,void 0,Xp,void 0,Yp,Kp,ps,ps,void 0,void 0,void 0,void 0,void 0,Jp,Di.bind(void 0,0),Di.bind(void 0,1),Qp,void 0,e2,t2,r2,n2,s2,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,_t.bind(void 0,1),_t.bind(void 0,2),_t.bind(void 0,3),_t.bind(void 0,4),_t.bind(void 0,5),_t.bind(void 0,6),_t.bind(void 0,7),_t.bind(void 0,8),Rt.bind(void 0,1),Rt.bind(void 0,2),Rt.bind(void 0,3),Rt.bind(void 0,4),Rt.bind(void 0,5),Rt.bind(void 0,6),Rt.bind(void 0,7),Rt.bind(void 0,8),Z.bind(void 0,0,0,0,0,0),Z.bind(void 0,0,0,0,0,1),Z.bind(void 0,0,0,0,0,2),Z.bind(void 0,0,0,0,0,3),Z.bind(void 0,0,0,0,1,0),Z.bind(void 0,0,0,0,1,1),Z.bind(void 0,0,0,0,1,2),Z.bind(void 0,0,0,0,1,3),Z.bind(void 0,0,0,1,0,0),Z.bind(void 0,0,0,1,0,1),Z.bind(void 0,0,0,1,0,2),Z.bind(void 0,0,0,1,0,3),Z.bind(void 0,0,0,1,1,0),Z.bind(void 0,0,0,1,1,1),Z.bind(void 0,0,0,1,1,2),Z.bind(void 0,0,0,1,1,3),Z.bind(void 0,0,1,0,0,0),Z.bind(void 0,0,1,0,0,1),Z.bind(void 0,0,1,0,0,2),Z.bind(void 0,0,1,0,0,3),Z.bind(void 0,0,1,0,1,0),Z.bind(void 0,0,1,0,1,1),Z.bind(void 0,0,1,0,1,2),Z.bind(void 0,0,1,0,1,3),Z.bind(void 0,0,1,1,0,0),Z.bind(void 0,0,1,1,0,1),Z.bind(void 0,0,1,1,0,2),Z.bind(void 0,0,1,1,0,3),Z.bind(void 0,0,1,1,1,0),Z.bind(void 0,0,1,1,1,1),Z.bind(void 0,0,1,1,1,2),Z.bind(void 0,0,1,1,1,3),Z.bind(void 0,1,0,0,0,0),Z.bind(void 0,1,0,0,0,1),Z.bind(void 0,1,0,0,0,2),Z.bind(void 0,1,0,0,0,3),Z.bind(void 0,1,0,0,1,0),Z.bind(void 0,1,0,0,1,1),Z.bind(void 0,1,0,0,1,2),Z.bind(void 0,1,0,0,1,3),Z.bind(void 0,1,0,1,0,0),Z.bind(void 0,1,0,1,0,1),Z.bind(void 0,1,0,1,0,2),Z.bind(void 0,1,0,1,0,3),Z.bind(void 0,1,0,1,1,0),Z.bind(void 0,1,0,1,1,1),Z.bind(void 0,1,0,1,1,2),Z.bind(void 0,1,0,1,1,3),Z.bind(void 0,1,1,0,0,0),Z.bind(void 0,1,1,0,0,1),Z.bind(void 0,1,1,0,0,2),Z.bind(void 0,1,1,0,0,3),Z.bind(void 0,1,1,0,1,0),Z.bind(void 0,1,1,0,1,1),Z.bind(void 0,1,1,0,1,2),Z.bind(void 0,1,1,0,1,3),Z.bind(void 0,1,1,1,0,0),Z.bind(void 0,1,1,1,0,1),Z.bind(void 0,1,1,1,0,2),Z.bind(void 0,1,1,1,0,3),Z.bind(void 0,1,1,1,1,0),Z.bind(void 0,1,1,1,1,1),Z.bind(void 0,1,1,1,1,2),Z.bind(void 0,1,1,1,1,3)];function xr(e){this.char=e,this.state={},this.activeState=null}function da(e,t,r){this.contextName=r,this.startIndex=e,this.endOffset=t}function a2(e,t,r){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=r}function Qe(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 i2(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 Te(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],i2.call(this,e)}xr.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState};xr.prototype.getState=function(e){return this.state[e]||null};Te.prototype.inboundIndex=function(e){return e>=0&&e0&&e<=this.lookahead.length):return this.lookahead[e-1];default:return null}};Te.prototype.rangeToText=function(e){if(e instanceof da)return this.getRangeTokens(e).map(function(t){return t.char}).join("")};Te.prototype.getText=function(){return this.tokens.map(function(e){return e.char}).join("")};Te.prototype.getContext=function(e){var t=this.registeredContexts[e];return t||null};Te.prototype.on=function(e,t){var r=this.events[e];return r?r.subscribe(t):null};Te.prototype.dispatch=function(e,t){var r=this,n=this.events[e];n instanceof jn&&n.subscribers.forEach(function(s){s.apply(r,t||[])})};Te.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 a2(e,t,r);return this.registeredContexts[e]=n,this.contextCheckers.push(n),n};Te.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))};Te.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}};Te.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];r.ranges=[]}};Te.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map(function(n){return n.char}),t=0;t=s.start&&e<=s.end){var a=e-s.start;return s.index+a}}break;default:return-1}return-1}function l2(e,t){var r=en(e,t.coverage);return r===-1?null:e+t.deltaGlyphId}function u2(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=0;r--){var n=t[r],s=Kl(n),a=zt(n);if(!s&&!a)return!0;if(s)return!1}return!1}function F2(e){if(Kl(e.current))return!1;for(var t=0;t0}r("fontFamily"),r("weightName"),r("manufacturer"),r("copyright"),r("version"),this.unitsPerEm>0};xe.prototype.toTables=function(){return wh.fontToTable(this)};xe.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()};xe.prototype.toArrayBuffer=function(){for(var e=this.toTables(),t=e.encode(),r=new ArrayBuffer(t.length),n=new Uint8Array(r),s=0;s=1.2&&(s.markGlyphSets=r.parsePointer(j2)),s}var X2={parse:q2},et=new Array(10);et[1]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{posFormat:1,coverage:this.parsePointer(b.coverage),value:this.parseValueRecord()};if(r===2)return{posFormat:2,coverage:this.parsePointer(b.coverage),values:this.parseValueRecordList()};K.assert(!1,"0x"+t.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};et[2]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();K.assert(r===1||r===2,"0x"+t.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(b.coverage),s=this.parseUShort(),a=this.parseUShort();if(r===1)return{posFormat:r,coverage:n,valueFormat1:s,valueFormat2:a,pairSets:this.parseList(b.pointer(b.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(s),value2:this.parseValueRecord(a)}})))};if(r===2){var i=this.parsePointer(b.classDef),o=this.parsePointer(b.classDef),l=this.parseUShort(),c=this.parseUShort();return{posFormat:r,coverage:n,valueFormat1:s,valueFormat2:a,classDef1:i,classDef2:o,class1Count:l,class2Count:c,classRecords:this.parseList(l,b.list(c,function(){return{value1:this.parseValueRecord(s),value2:this.parseValueRecord(a)}}))}}};et[3]=function(){return{error:"GPOS Lookup 3 not supported"}};et[4]=function(){return{error:"GPOS Lookup 4 not supported"}};et[5]=function(){return{error:"GPOS Lookup 5 not supported"}};et[6]=function(){return{error:"GPOS Lookup 6 not supported"}};et[7]=function(){return{error:"GPOS Lookup 7 not supported"}};et[8]=function(){return{error:"GPOS Lookup 8 not supported"}};et[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function Y2(e,t){t=t||0;var r=new b(e,t),n=r.parseVersion(1);return K.argument(n===1||n===1.1,"Unsupported GPOS table version "+n),n===1?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(et)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(et),variations:r.parseFeatureVariationsList()}}var K2=new Array(10);function J2(e){return new H.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new H.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new H.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new H.LookupList(e.lookups,K2)}])}var Q2={parse:Y2,make:J2};function ed(e){var t={};e.skip("uShort");var r=e.parseUShort();K.argument(r===0,"Unsupported kern sub-table version."),e.skip("uShort",2);var n=e.parseUShort();e.skip("uShort",3);for(var s=0;s1&&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 i=0;i0&&t&&t(Math.round(o/s*100))}const l=i.reduce((h,f)=>h+f.length,0),c=new Uint8Array(l);let u=0;for(const h of i)c.set(h,u),u+=h.length;return od(c.buffer)}catch(r){throw new Error(`Failed to load font from ${e}: ${r}`)}}const yr=il("font",()=>{function e(_){try{const z=localStorage.getItem(_);if(!z)return new Set;const B=JSON.parse(z);return Array.isArray(B)?new Set(B.map(String)):new Set}catch{return new Set}}function t(_,z){try{localStorage.setItem(_,JSON.stringify(Array.from(z)))}catch{}}const r=be([]),n=be(new Set),s=be(e("font.favoriteFontIds")),a=be(e("font.previewFontIds")),i=be(e("font.expandedCategories")),o=be([]),l=be(!1),c=new Map,u=ve(()=>r.value.filter(_=>n.value.has(_.id))),h=ve(()=>r.value.filter(_=>s.value.has(_.id))),f=ve(()=>r.value.filter(_=>a.value.has(_.id))),d=ve(()=>ae(h.value));function x(_){r.value.push(_)}function y(_){const z=r.value.findIndex(B=>B.id===_);z!==-1&&r.value.splice(z,1),n.value.delete(_),s.value.delete(_),t("font.favoriteFontIds",s.value),a.value.delete(_),t("font.previewFontIds",a.value)}function m(_){n.value.add(_)}function S(_){n.value.delete(_)}function w(_){n.value.has(_)?S(_):m(_)}function T(){n.value.clear()}function E(_){const z=r.value.find(B=>B.id===_);z&&(z.isFavorite=!0,s.value.add(_),t("font.favoriteFontIds",s.value))}function U(_){const z=r.value.find(B=>B.id===_);z&&(z.isFavorite=!1,s.value.delete(_),t("font.favoriteFontIds",s.value))}function q(_){s.value.has(_)?U(_):E(_)}function N(_){a.value.add(_),t("font.previewFontIds",a.value)}function O(_){a.value.delete(_),t("font.previewFontIds",a.value)}function R(_){a.value.has(_)?O(_):N(_)}function V(){a.value.clear(),t("font.previewFontIds",a.value)}function Q(_,z){const B=new Set(i.value);z?B.add(_):B.delete(_),i.value=B,t("font.expandedCategories",i.value)}async function ne(_){if(_.loaded||!_.path)return;const z=c.get(_.id);if(z){await z;return}const B=(async()=>{try{const W=await ld(_.path,se=>{_.progress=se});_.font=W,_.loaded=!0,_.progress=100}catch(W){throw console.error(`Failed to load font ${_.name}:`,W),W}finally{c.delete(_.id)}})();c.set(_.id,B),await B}function ae(_){const z=[],B=new Map;for(const W of _){let se=B.get(W.category);se||(se={name:W.category,type:"category",children:[],expanded:i.value.has(W.category),selected:!1},B.set(W.category,se),z.push(se));const ge={name:W.name,type:"font",fontInfo:W,expanded:!1,selected:n.value.has(W.id)};se.children.push(ge)}z.sort((W,se)=>W.name.localeCompare(se.name,"zh-CN"));for(const W of z)W.children&&W.children.sort((se,ge)=>se.name.localeCompare(ge.name,"zh-CN"));return z}function ie(){o.value=ae(r.value)}return{fonts:r,selectedFontIds:n,favoriteFontIds:s,previewFontIds:a,expandedCategoryNames:i,fontTree:o,isLoadingFonts:l,selectedFonts:u,favoriteFonts:h,previewFonts:f,favoriteTree:d,addFont:x,removeFont:y,selectFont:m,unselectFont:S,toggleSelectFont:w,clearSelection:T,favoriteFont:E,unfavoriteFont:U,toggleFavorite:q,addToPreview:N,removeFromPreview:O,togglePreview:R,clearPreview:V,setCategoryExpanded:Q,loadFont:ne,updateFontTree:ie}});function ud(){const e=yr();async function t(){const n=["/fonts.json","/frontend/dist/fonts.json"],s=[];for(const a of n){const i=`${a}?_ts=${Date.now()}`;try{console.log(`Fetching ${i}...`);const o=await fetch(i,{cache:"no-store"});if(console.log(`${a} response:`,o.status,o.statusText),!o.ok){s.push(`${a}: HTTP ${o.status}`);continue}const l=await o.json();if(!Array.isArray(l)){s.push(`${a}: JSON 不是数组`);continue}return l}catch(o){s.push(`${a}: ${o instanceof Error?o.message:String(o)}`)}}throw new Error(s.join(" | "))}async function r(){console.log("Starting to load font list..."),e.isLoadingFonts=!0;try{const n=await t();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(n){console.error("Failed to load font list:",n),alert(`加载字体列表失败:${n instanceof Error?n.message:"未知错误"}`)}finally{e.isLoadingFonts=!1,console.log("Font loading finished")}}return Uo(()=>{console.log("useFontLoader: onMounted called"),r()}),{loadFontList:r}}const Ql=il("ui",()=>{function e(R){return Math.max(10,Math.min(500,R))}const t=(()=>{try{const R=localStorage.getItem("ui.fontSize"),V=R?Number(R):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 R=localStorage.getItem("ui.selectedExportItems");return R?JSON.parse(R):[]}catch{return[]}})(),a=be(r),i=be(t),o=be(n),l=be(0),c=be(!0),u=be(s),h=be(!1),f=be(!0),d=be(!0);function x(R){a.value=R;try{localStorage.setItem("ui.inputText",R)}catch{}}function y(R){const V=e(R);i.value=V;try{localStorage.setItem("ui.fontSize",String(V))}catch{}}function m(R){o.value=R;try{localStorage.setItem("ui.textColor",R)}catch{}}function S(R){l.value=R}function w(){c.value=!c.value}function T(R){const V=u.value.findIndex(Q=>Q.fontInfo.id===R.fontInfo.id);V>=0?u.value.splice(V,1):u.value.push(R);try{localStorage.setItem("ui.selectedExportItems",JSON.stringify(u.value))}catch{}}function E(R){const V=u.value.filter(Q=>R.has(Q.fontInfo.id));if(V.length!==u.value.length){u.value=V;try{localStorage.setItem("ui.selectedExportItems",JSON.stringify(u.value))}catch{}}}function U(){u.value=[];try{localStorage.setItem("ui.selectedExportItems",JSON.stringify([]))}catch{}}function q(R){u.value=[...R];try{localStorage.setItem("ui.selectedExportItems",JSON.stringify(u.value))}catch{}}function N(){f.value=!f.value}function O(){d.value=!d.value}return{inputText:a,fontSize:i,textColor:o,letterSpacing:l,enableLigatures:c,selectedExportItems:u,isExporting:h,isFontSelectorExpanded:f,isFavoritesExpanded:d,setInputText:x,setFontSize:y,setTextColor:m,setLetterSpacing:S,toggleLigatures:w,toggleExportItem:T,retainExportItemsByFontIds:E,clearExportSelection:U,selectAllExportItems:q,toggleFontSelectorExpanded:N,toggleFavoritesExpanded:O}}),tr=45;function zi(e){return e.replace(/\r\n?/g,` +(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 i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).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 me={},cr=[],pt=()=>{},Zi=()=>!1,Rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Vs=e=>e.startsWith("onUpdate:"),Oe=Object.assign,Ws=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},s0=Object.prototype.hasOwnProperty,fe=(e,t)=>s0.call(e,t),ee=Array.isArray,fr=e=>An(e)==="[object Map]",$i=e=>An(e)==="[object Set]",re=e=>typeof e=="function",Ce=e=>typeof e=="string",Vt=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",ji=e=>(Se(e)||re(e))&&re(e.then)&&re(e.catch),qi=Object.prototype.toString,An=e=>qi.call(e),a0=e=>An(e).slice(8,-1),Xi=e=>An(e)==="[object Object]",In=e=>Ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Er=zs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mn=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},i0=/-\w/g,vt=Mn(e=>e.replace(i0,t=>t.slice(1).toUpperCase())),o0=/\B([A-Z])/g,nr=Mn(e=>e.replace(o0,"-$1").toLowerCase()),Zs=Mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=Mn(e=>e?`on${Zs(e)}`:""),Nt=(e,t)=>!Object.is(e,t),hn=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},$s=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Sa;const Pn=()=>Sa||(Sa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dr(e){if(ee(e)){const t={};for(let r=0;r{if(r){const n=r.split(u0);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ft(e){let t="";if(Ce(e))t=e;else if(ee(e))for(let r=0;r!!(e&&e.__v_isRef===!0),Xe=e=>Ce(e)?e:e==null?"":ee(e)||Se(e)&&(e.toString===qi||!re(e.toString))?Ji(e)?Xe(e.value):JSON.stringify(e,Qi,2):String(e),Qi=(e,t)=>Ji(t)?Qi(e,t.value):fr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],a)=>(r[Jn(n,a)+" =>"]=s,r),{})}:$i(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Jn(r))}:Vt(t)?Jn(t):Se(t)&&!ee(t)&&!Xi(t)?String(t):t,Jn=(e,t="")=>{var r;return Vt(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let Le;class eo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.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;t0&&--this._on===0&&(Le=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r0)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 io(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function oo(e){let t,r=e.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),Xs(n),v0(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=r}function ys(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(lo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function lo(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||!ys(e))))return;e.flags|=2;const t=e.dep,r=ye,n=Ye;ye=e,Ye=!0;try{io(e);const s=e.fn(e._value);(t.version===0||Nt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ye=r,Ye=n,oo(e),e.flags&=-3}}function Xs(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)Xs(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function v0(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Ye=!0;const uo=[];function Ct(){uo.push(Ye),Ye=!1}function kt(){const e=uo.pop();Ye=e===void 0?!0:e}function wa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=ye;ye=void 0;try{t()}finally{ye=r}}}let Br=0;class g0{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 Ys{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(!ye||!Ye||ye===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==ye)r=this.activeLink=new g0(ye,this),ye.deps?(r.prevDep=ye.depsTail,ye.depsTail.nextDep=r,ye.depsTail=r):ye.deps=ye.depsTail=r,co(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=ye.depsTail,r.nextDep=void 0,ye.depsTail.nextDep=r,ye.depsTail=r,ye.deps===r&&(ye.deps=n)}return r}trigger(t){this.version++,Br++,this.notify(t)}notify(t){js();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{qs()}}}function co(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)co(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const xn=new WeakMap,Jt=Symbol(""),bs=Symbol(""),Nr=Symbol("");function _e(e,t,r){if(Ye&&ye){let n=xn.get(e);n||xn.set(e,n=new Map);let s=n.get(r);s||(n.set(r,s=new Ys),s.map=n,s.key=r),s.track()}}function bt(e,t,r,n,s,a){const i=xn.get(e);if(!i){Br++;return}const o=l=>{l&&l.trigger()};if(js(),t==="clear")i.forEach(o);else{const l=ee(e),c=l&&In(r);if(l&&r==="length"){const u=Number(n);i.forEach((h,f)=>{(f==="length"||f===Nr||!Vt(f)&&f>=u)&&o(h)})}else switch((r!==void 0||i.has(void 0))&&o(i.get(r)),c&&o(i.get(Nr)),t){case"add":l?c&&o(i.get("length")):(o(i.get(Jt)),fr(e)&&o(i.get(bs)));break;case"delete":l||(o(i.get(Jt)),fr(e)&&o(i.get(bs)));break;case"set":fr(e)&&o(i.get(Jt));break}}qs()}function m0(e,t){const r=xn.get(e);return r&&r.get(t)}function ar(e){const t=le(e);return t===e?t:(_e(t,"iterate",Nr),ze(e)?t:t.map(Ke))}function Dn(e){return _e(e=le(e),"iterate",Nr),e}function Mt(e,t){return Et(e)?dr(Tt(e)?Ke(t):t):Ke(t)}const x0={__proto__:null,[Symbol.iterator](){return es(this,Symbol.iterator,e=>Mt(this,e))},concat(...e){return ar(this).concat(...e.map(t=>ee(t)?ar(t):t))},entries(){return es(this,"entries",e=>(e[1]=Mt(this,e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,r=>r.map(n=>Mt(this,n)),arguments)},find(e,t){return xt(this,"find",e,t,r=>Mt(this,r),arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,r=>Mt(this,r),arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ts(this,"includes",e)},indexOf(...e){return ts(this,"indexOf",e)},join(e){return ar(this).join(e)},lastIndexOf(...e){return ts(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return wr(this,"pop")},push(...e){return wr(this,"push",e)},reduce(e,...t){return Ta(this,"reduce",e,t)},reduceRight(e,...t){return Ta(this,"reduceRight",e,t)},shift(){return wr(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return wr(this,"splice",e)},toReversed(){return ar(this).toReversed()},toSorted(e){return ar(this).toSorted(e)},toSpliced(...e){return ar(this).toSpliced(...e)},unshift(...e){return wr(this,"unshift",e)},values(){return es(this,"values",e=>Mt(this,e))}};function es(e,t,r){const n=Dn(e),s=n[t]();return n!==e&&!ze(e)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.done||(a.value=r(a.value)),a}),s}const y0=Array.prototype;function xt(e,t,r,n,s,a){const i=Dn(e),o=i!==e&&!ze(e),l=i[t];if(l!==y0[t]){const h=l.apply(e,a);return o?Ke(h):h}let c=r;i!==e&&(o?c=function(h,f){return r.call(this,Mt(e,h),f,e)}:r.length>2&&(c=function(h,f){return r.call(this,h,f,e)}));const u=l.call(i,c,n);return o&&s?s(u):u}function Ta(e,t,r,n){const s=Dn(e);let a=r;return s!==e&&(ze(e)?r.length>3&&(a=function(i,o,l){return r.call(this,i,o,l,e)}):a=function(i,o,l){return r.call(this,i,Mt(e,o),l,e)}),s[t](a,...n)}function ts(e,t,r){const n=le(e);_e(n,"iterate",Nr);const s=n[t](...r);return(s===-1||s===!1)&&Nn(r[0])?(r[0]=le(r[0]),n[t](...r)):s}function wr(e,t,r=[]){Ct(),js();const n=le(e)[t].apply(e,r);return qs(),kt(),n}const b0=zs("__proto__,__v_isRef,__isVue"),fo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vt));function S0(e){Vt(e)||(e=String(e));const t=le(this);return _e(t,"has",e),t.hasOwnProperty(e)}class ho{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?_0:mo:a?go:vo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=ee(t);if(!s){let l;if(i&&(l=x0[r]))return l;if(r==="hasOwnProperty")return S0}const o=Reflect.get(t,r,we(t)?t:n);if((Vt(r)?fo.has(r):b0(r))||(s||_e(t,"get",r),a))return o;if(we(o)){const l=i&&In(r)?o:o.value;return s&&Se(l)?ws(l):l}return Se(o)?s?ws(o):Bn(o):o}}class po extends ho{constructor(t=!1){super(!1,t)}set(t,r,n,s){let a=t[r];const i=ee(t)&&In(r);if(!this._isShallow){const c=Et(a);if(!ze(n)&&!Et(n)&&(a=le(a),n=le(n)),!i&&we(a)&&!we(n))return c||(a.value=n),!0}const o=i?Number(r)e,rn=e=>Reflect.getPrototypeOf(e);function k0(e,t,r){return function(...n){const s=this.__v_raw,a=le(s),i=fr(a),o=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...n),u=r?Ss:t?dr:Ke;return!t&&_e(a,"iterate",l?bs:Jt),Oe(Object.create(c),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:o?[u(h[0]),u(h[1])]:u(h),done:f}}})}}function nn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function E0(e,t){const r={get(s){const a=this.__v_raw,i=le(a),o=le(s);e||(Nt(s,o)&&_e(i,"get",s),_e(i,"get",o));const{has:l}=rn(i),c=t?Ss:e?dr:Ke;if(l.call(i,s))return c(a.get(s));if(l.call(i,o))return c(a.get(o));a!==i&&a.get(s)},get size(){const s=this.__v_raw;return!e&&_e(le(s),"iterate",Jt),s.size},has(s){const a=this.__v_raw,i=le(a),o=le(s);return e||(Nt(s,o)&&_e(i,"has",s),_e(i,"has",o)),s===o?a.has(s):a.has(s)||a.has(o)},forEach(s,a){const i=this,o=i.__v_raw,l=le(o),c=t?Ss:e?dr:Ke;return!e&&_e(l,"iterate",Jt),o.forEach((u,h)=>s.call(a,c(u),c(h),i))}};return Oe(r,e?{add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear")}:{add(s){!t&&!ze(s)&&!Et(s)&&(s=le(s));const a=le(this);return rn(a).has.call(a,s)||(a.add(s),bt(a,"add",s,s)),this},set(s,a){!t&&!ze(a)&&!Et(a)&&(a=le(a));const i=le(this),{has:o,get:l}=rn(i);let c=o.call(i,s);c||(s=le(s),c=o.call(i,s));const u=l.call(i,s);return i.set(s,a),c?Nt(a,u)&&bt(i,"set",s,a):bt(i,"add",s,a),this},delete(s){const a=le(this),{has:i,get:o}=rn(a);let l=i.call(a,s);l||(s=le(s),l=i.call(a,s)),o&&o.call(a,s);const c=a.delete(s);return l&&bt(a,"delete",s,void 0),c},clear(){const s=le(this),a=s.size!==0,i=s.clear();return a&&bt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=k0(s,e,t)}),r}function Ks(e,t){const r=E0(e,t);return(n,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(fe(r,s)&&s in n?r:n,s,a)}const O0={get:Ks(!1,!1)},U0={get:Ks(!1,!0)},L0={get:Ks(!0,!1)};const vo=new WeakMap,go=new WeakMap,mo=new WeakMap,_0=new WeakMap;function R0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function A0(e){return e.__v_skip||!Object.isExtensible(e)?0:R0(a0(e))}function Bn(e){return Et(e)?e:Js(e,!1,T0,O0,vo)}function I0(e){return Js(e,!1,C0,U0,go)}function ws(e){return Js(e,!0,F0,L0,mo)}function Js(e,t,r,n,s){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=A0(e);if(a===0)return e;const i=s.get(e);if(i)return i;const o=new Proxy(e,a===2?n:r);return s.set(e,o),o}function Tt(e){return Et(e)?Tt(e.__v_raw):!!(e&&e.__v_isReactive)}function Et(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function Nn(e){return e?!!e.__v_raw:!1}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Qs(e){return!fe(e,"__v_skip")&&Object.isExtensible(e)&&Yi(e,"__v_skip",!0),e}const Ke=e=>Se(e)?Bn(e):e,dr=e=>Se(e)?ws(e):e;function we(e){return e?e.__v_isRef===!0:!1}function be(e){return M0(e,!1)}function M0(e,t){return we(e)?e:new P0(e,t)}class P0{constructor(t,r){this.dep=new Ys,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:le(t),this._value=r?t:Ke(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||ze(t)||Et(t);t=n?t:le(t),Nt(t,r)&&(this._rawValue=t,this._value=n?t:Ke(t),this.dep.trigger())}}function Ue(e){return we(e)?e.value:e}const D0={get:(e,t,r)=>t==="__v_raw"?e:Ue(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return we(s)&&!we(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function xo(e){return Tt(e)?e:new Proxy(e,D0)}function B0(e){const t=ee(e)?new Array(e.length):{};for(const r in e)t[r]=G0(e,r);return t}class N0{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=le(t);let s=!0,a=t;if(!ee(t)||!In(String(r)))do s=!Nn(a)||ze(a);while(s&&(a=a.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=Ue(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&we(this._raw[this._key])){const r=this._object[this._key];if(we(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return m0(this._raw,this._key)}}function G0(e,t,r){return new N0(e,t,r)}class H0{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Ys(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)&&ye!==this)return ao(this,!0),!0}get value(){const t=this.dep.track();return lo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function z0(e,t,r=!1){let n,s;return re(e)?n=e:(n=e.get,s=e.set),new H0(n,s,r)}const sn={},yn=new WeakMap;let qt;function V0(e,t=!1,r=qt){if(r){let n=yn.get(r);n||yn.set(r,n=[]),n.push(e)}}function W0(e,t,r=me){const{immediate:n,deep:s,once:a,scheduler:i,augmentJob:o,call:l}=r,c=E=>s?E:ze(E)||s===!1||s===0?St(E,1):St(E);let u,h,f,d,x=!1,y=!1;if(we(e)?(h=()=>e.value,x=ze(e)):Tt(e)?(h=()=>c(e),x=!0):ee(e)?(y=!0,x=e.some(E=>Tt(E)||ze(E)),h=()=>e.map(E=>{if(we(E))return E.value;if(Tt(E))return c(E);if(re(E))return l?l(E,2):E()})):re(e)?t?h=l?()=>l(e,2):e:h=()=>{if(f){Ct();try{f()}finally{kt()}}const E=qt;qt=u;try{return l?l(e,3,[d]):e(d)}finally{qt=E}}:h=pt,t&&s){const E=h,U=s===!0?1/0:s;h=()=>St(E(),U)}const m=ro(),S=()=>{u.stop(),m&&m.active&&Ws(m.effects,u)};if(a&&t){const E=t;t=(...U)=>{E(...U),S()}}let w=y?new Array(e.length).fill(sn):sn;const T=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const U=u.run();if(s||x||(y?U.some((q,N)=>Nt(q,w[N])):Nt(U,w))){f&&f();const q=qt;qt=u;try{const N=[U,w===sn?void 0:y&&w[0]===sn?[]:w,d];w=U,l?l(t,3,N):t(...N)}finally{qt=q}}}else u.run()};return o&&o(T),u=new no(h),u.scheduler=i?()=>i(T,!1):T,d=E=>V0(E,!1,u),f=u.onStop=()=>{const E=yn.get(u);if(E){if(l)l(E,4);else for(const U of E)U();yn.delete(u)}},t?n?T(!0):w=u.run():i?i(T.bind(null,!0),!0):u.run(),S.pause=u.pause.bind(u),S.resume=u.resume.bind(u),S.stop=S,S}function St(e,t=1/0,r){if(t<=0||!Se(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,we(e))St(e.value,t,r);else if(ee(e))for(let n=0;n{St(n,t,r)});else if(Xi(e)){for(const n in e)St(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&St(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 gt(e,t,r,n){if(re(e)){const s=jr(e,t,r,n);return s&&ji(s)&&s.catch(a=>{Gn(a,t,r)}),s}if(ee(e)){const s=[];for(let a=0;a>>1,s=Ie[n],a=Gr(s);a=Gr(r)?Ie.push(e):Ie.splice($0(t),0,e),e.flags|=1,bo()}}function bo(){bn||(bn=yo.then(wo))}function j0(e){ee(e)?hr.push(...e):Pt&&e.id===-1?Pt.splice(lr+1,0,e):e.flags&1||(hr.push(e),e.flags|=1),bo()}function Fa(e,t,r=lt+1){for(;rGr(r)-Gr(n));if(hr.length=0,Pt){Pt.push(...t);return}for(Pt=t,lr=0;lre.id==null?e.flags&2?-1:1/0:e.id;function wo(e){try{for(lt=0;lt{n._d&&Ma(-1);const a=Sn(t);let i;try{i=e(...s)}finally{Sn(a),n._d&&Ma(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function pn(e,t){if(Ge===null)return e;const r=Wn(Ge),n=e.dirs||(e.dirs=[]);for(let s=0;s1)return r&&re(t)?t.call(n&&n.proxy):t}}function Y0(){return!!(Jo()||er)}const K0=Symbol.for("v-scx"),J0=()=>Lr(K0);function Qt(e,t,r){return Fo(e,t,r)}function Fo(e,t,r=me){const{immediate:n,deep:s,flush:a,once:i}=r,o=Oe({},r),l=t&&n||!t&&a!=="post";let c;if(zr){if(a==="sync"){const d=J0();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=pt,d.resume=pt,d.pause=pt,d}}const u=Re;o.call=(d,x,y)=>gt(d,u,x,y);let h=!1;a==="post"?o.scheduler=d=>{Ne(d,u&&u.suspense)}:a!=="sync"&&(h=!0,o.scheduler=(d,x)=>{x?d():ta(d)}),o.augmentJob=d=>{t&&(d.flags|=4),h&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const f=W0(e,t,o);return zr&&(c?c.push(f):l&&f()),f}function Q0(e,t,r){const n=this.proxy,s=Ce(e)?e.includes(".")?Co(n,e):()=>n[e]:e.bind(n,n);let a;re(t)?a=t:(a=t.handler,r=t);const i=Xr(this),o=Fo(s,a.bind(n),r);return i(),o}function Co(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;se.__isTeleport,ru=Symbol("_leaveCb");function ra(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ra(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 re(e)?Oe({name:e.name},t,{setup:e}):e}function ko(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const wn=new WeakMap;function _r(e,t,r,n,s=!1){if(ee(e)){e.forEach((x,y)=>_r(x,t&&(ee(t)?t[y]: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,i=s?null:a,{i:o,r:l}=e,c=t&&t.r,u=o.refs===me?o.refs={}:o.refs,h=o.setupState,f=le(h),d=h===me?Zi:x=>fe(f,x);if(c!=null&&c!==l){if(Ca(t),Ce(c))u[c]=null,d(c)&&(h[c]=null);else if(we(c)){c.value=null;const x=t;x.k&&(u[x.k]=null)}}if(re(l))jr(l,o,12,[i,u]);else{const x=Ce(l),y=we(l);if(x||y){const m=()=>{if(e.f){const S=x?d(l)?h[l]:u[l]:l.value;if(s)ee(S)&&Ws(S,a);else if(ee(S))S.includes(a)||S.push(a);else if(x)u[l]=[a],d(l)&&(h[l]=u[l]);else{const w=[a];l.value=w,e.k&&(u[e.k]=w)}}else x?(u[l]=i,d(l)&&(h[l]=i)):y&&(l.value=i,e.k&&(u[e.k]=i))};if(i){const S=()=>{m(),wn.delete(e)};S.id=-1,wn.set(e,S),Ne(S,r)}else Ca(e),m()}}}function Ca(e){const t=wn.get(e);t&&(t.flags|=8,wn.delete(e))}Pn().requestIdleCallback;Pn().cancelIdleCallback;const Rr=e=>!!e.type.__asyncLoader,Eo=e=>e.type.__isKeepAlive;function nu(e,t){Oo(e,"a",t)}function su(e,t){Oo(e,"da",t)}function Oo(e,t,r=Re){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;)Eo(s.parent.vnode)&&au(n,t,r,s),s=s.parent}}function au(e,t,r,n){const s=Hn(t,e,n,!0);_o(()=>{Ws(n[t],s)},r)}function Hn(e,t,r=Re,n=!1){if(r){const s=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...i)=>{Ct();const o=Xr(r),l=gt(t,r,e,i);return o(),kt(),l});return n?s.unshift(a):s.push(a),a}}const Ot=e=>(t,r=Re)=>{(!zr||e==="sp")&&Hn(e,(...n)=>t(...n),r)},iu=Ot("bm"),Uo=Ot("m"),ou=Ot("bu"),lu=Ot("u"),Lo=Ot("bum"),_o=Ot("um"),uu=Ot("sp"),cu=Ot("rtg"),fu=Ot("rtc");function hu(e,t=Re){Hn("ec",e,t)}const pu="directives",du=Symbol.for("v-ndc");function vu(e){return gu(pu,e)}function gu(e,t,r=!0,n=!1){const s=Ge||Re;if(s){const a=s.type,i=ka(s[e]||a[e],t)||ka(s.appContext[e],t);return!i&&n?a:i}}function ka(e,t){return e&&(e[t]||e[vt(t)]||e[Zs(vt(t))])}function Tn(e,t,r,n){let s;const a=r,i=ee(e);if(i||Ce(e)){const o=i&&Tt(e);let l=!1,c=!1;o&&(l=!ze(e),c=Et(e),e=Dn(e)),s=new Array(e.length);for(let u=0,h=e.length;ut(o,l,void 0,a));else{const o=Object.keys(e);s=new Array(o.length);for(let l=0,c=o.length;le?Qo(e)?Wn(e):Ts(e.parent):null,Ar=Oe(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=>Ts(e.parent),$root:e=>Ts(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>{ta(e.update)}),$nextTick:e=>e.n||(e.n=ea.bind(e.proxy)),$watch:e=>Q0.bind(e)}),rs=(e,t)=>e!==me&&!e.__isScriptSetup&&fe(e,t),mu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:a,accessCache:i,type:o,appContext:l}=e;if(t[0]!=="$"){const f=i[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 i[t]=1,n[t];if(s!==me&&fe(s,t))return i[t]=2,s[t];if(fe(a,t))return i[t]=3,a[t];if(r!==me&&fe(r,t))return i[t]=4,r[t];Fs&&(i[t]=0)}}const c=Ar[t];let u,h;if(c)return t==="$attrs"&&_e(e.attrs,"get",""),c(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(r!==me&&fe(r,t))return i[t]=4,r[t];if(h=l.config.globalProperties,fe(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!==me&&fe(n,t)?(n[t]=r,!0):fe(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:i}},o){let l;return!!(r[o]||e!==me&&o[0]!=="$"&&fe(e,o)||rs(t,o)||fe(a,o)||fe(n,o)||fe(Ar,o)||fe(s.config.globalProperties,o)||(l=i.__cssModules)&&l[o])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:fe(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Ea(e){return ee(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Fs=!0;function xu(e){const t=Ao(e),r=e.proxy,n=e.ctx;Fs=!1,t.beforeCreate&&Oa(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:i,watch:o,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:x,activated:y,deactivated:m,beforeDestroy:S,beforeUnmount:w,destroyed:T,unmounted:E,render:U,renderTracked:q,renderTriggered:N,errorCaptured:O,serverPrefetch:R,expose:V,inheritAttrs:Q,components:ne,directives:ae,filters:ie}=t;if(c&&yu(c,n,null),i)for(const B in i){const W=i[B];re(W)&&(n[B]=W.bind(r))}if(s){const B=s.call(r,r);Se(B)&&(e.data=Bn(B))}if(Fs=!0,a)for(const B in a){const W=a[B],se=re(W)?W.bind(r,r):re(W.get)?W.get.bind(r,r):pt,ge=!re(W)&&re(W.set)?W.set.bind(r):pt,oe=ve({get:se,set:ge});Object.defineProperty(n,B,{enumerable:!0,configurable:!0,get:()=>oe.value,set:ce=>oe.value=ce})}if(o)for(const B in o)Ro(o[B],n,r,B);if(l){const B=re(l)?l.call(r):l;Reflect.ownKeys(B).forEach(W=>{X0(W,B[W])})}u&&Oa(u,e,"c");function z(B,W){ee(W)?W.forEach(se=>B(se.bind(r))):W&&B(W.bind(r))}if(z(iu,h),z(Uo,f),z(ou,d),z(lu,x),z(nu,y),z(su,m),z(hu,O),z(fu,q),z(cu,N),z(Lo,w),z(_o,E),z(uu,R),ee(V))if(V.length){const B=e.exposed||(e.exposed={});V.forEach(W=>{Object.defineProperty(B,W,{get:()=>r[W],set:se=>r[W]=se,enumerable:!0})})}else e.exposed||(e.exposed={});U&&e.render===pt&&(e.render=U),Q!=null&&(e.inheritAttrs=Q),ne&&(e.components=ne),ae&&(e.directives=ae),R&&ko(e)}function yu(e,t,r=pt){ee(e)&&(e=Cs(e));for(const n in e){const s=e[n];let a;Se(s)?"default"in s?a=Lr(s.from||n,s.default,!0):a=Lr(s.from||n):a=Lr(s),we(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):t[n]=a}}function Oa(e,t,r){gt(ee(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ro(e,t,r,n){let s=n.includes(".")?Co(r,n):()=>r[n];if(Ce(e)){const a=t[e];re(a)&&Qt(s,a)}else if(re(e))Qt(s,e.bind(r));else if(Se(e))if(ee(e))e.forEach(a=>Ro(a,t,r,n));else{const a=re(e.handler)?e.handler.bind(r):t[e.handler];re(a)&&Qt(s,a,e)}}function Ao(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,o=a.get(t);let l;return o?l=o:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(c=>Fn(l,c,i,!0)),Fn(l,t,i)),Se(t)&&a.set(t,l),l}function Fn(e,t,r,n=!1){const{mixins:s,extends:a}=t;a&&Fn(e,a,r,!0),s&&s.forEach(i=>Fn(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const o=bu[i]||r&&r[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const bu={data:Ua,props:La,emits:La,methods:kr,computed:kr,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:kr,directives:kr,watch:wu,provide:Ua,inject:Su};function Ua(e,t){return t?e?function(){return Oe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function Su(e,t){return kr(Cs(e),Cs(t))}function Cs(e){if(ee(e)){const t={};for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vt(t)}Modifiers`]||e[`${nr(t)}Modifiers`];function ku(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||me;let s=r;const a=t.startsWith("update:"),i=a&&Cu(n,t.slice(7));i&&(i.trim&&(s=r.map(u=>Ce(u)?u.trim():u)),i.number&&(s=r.map($s)));let o,l=n[o=Kn(t)]||n[o=Kn(vt(t))];!l&&a&&(l=n[o=Kn(nr(t))]),l&>(l,e,6,s);const c=n[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,gt(c,e,6,s)}}const Eu=new WeakMap;function Mo(e,t,r=!1){const n=r?Eu:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const a=e.emits;let i={},o=!1;if(!re(e)){const l=c=>{const u=Mo(c,t,!0);u&&(o=!0,Oe(i,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!o?(Se(e)&&n.set(e,null),null):(ee(a)?a.forEach(l=>i[l]=null):Oe(i,a),Se(e)&&n.set(e,i),i)}function zn(e,t){return!e||!Rn(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,nr(t))||fe(e,t))}function _a(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[a],slots:i,attrs:o,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:x,inheritAttrs:y}=e,m=Sn(e);let S,w;try{if(r.shapeFlag&4){const E=s||n,U=E;S=ct(c.call(U,E,u,h,d,f,x)),w=o}else{const E=t;S=ct(E.length>1?E(h,{attrs:o,slots:i,emit:l}):E(h,null)),w=t.props?o:Ou(o)}}catch(E){Ir.length=0,Gn(E,e,1),S=Ze(Ht)}let T=S;if(w&&y!==!1){const E=Object.keys(w),{shapeFlag:U}=T;E.length&&U&7&&(a&&E.some(Vs)&&(w=Uu(w,a)),T=vr(T,w,!1,!0))}return r.dirs&&(T=vr(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(r.dirs):r.dirs),r.transition&&ra(T,r.transition),S=T,Sn(m),S}const Ou=e=>{let t;for(const r in e)(r==="class"||r==="style"||Rn(r))&&((t||(t={}))[r]=e[r]);return t},Uu=(e,t)=>{const r={};for(const n in e)(!Vs(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Lu(e,t,r){const{props:n,children:s,component:a}=e,{props:i,children:o,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?Ra(n,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let h=0;hObject.create(Po),Bo=e=>Object.getPrototypeOf(e)===Po;function Ru(e,t,r,n=!1){const s={},a=Do();e.propsDefaults=Object.create(null),No(e,t,s,a);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);r?e.props=n?s:I0(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function Au(e,t,r,n){const{props:s,attrs:a,vnode:{patchFlag:i}}=e,o=le(s),[l]=e.propsOptions;let c=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let h=0;h{l=!0;const[f,d]=Go(h,t,!0);Oe(i,f),d&&o.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return Se(e)&&n.set(e,cr),cr;if(ee(a))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",sa=e=>ee(e)?e.map(ct):[ct(e)],Mu=(e,t,r)=>{if(t._n)return t;const n=q0((...s)=>sa(t(...s)),r);return n._c=!1,n},Ho=(e,t,r)=>{const n=e._ctx;for(const s in e){if(na(s))continue;const a=e[s];if(re(a))t[s]=Mu(s,a,n);else if(a!=null){const i=sa(a);t[s]=()=>i}}},zo=(e,t)=>{const r=sa(t);e.slots.default=()=>r},Vo=(e,t,r)=>{for(const n in t)(r||!na(n))&&(e[n]=t[n])},Pu=(e,t,r)=>{const n=e.slots=Do();if(e.vnode.shapeFlag&32){const s=t._;s?(Vo(n,t,r),r&&Yi(n,"_",s,!0)):Ho(t,n)}else t&&zo(e,t)},Du=(e,t,r)=>{const{vnode:n,slots:s}=e;let a=!0,i=me;if(n.shapeFlag&32){const o=t._;o?r&&o===1?a=!1:Vo(s,t,r):(a=!t.$stable,Ho(t,s)),i=t}else t&&(zo(e,t),i={default:1});if(a)for(const o in s)!na(o)&&i[o]==null&&delete s[o]},Ne=zu;function Bu(e){return Nu(e)}function Nu(e,t){const r=Pn();r.__VUE__=!0;const{insert:n,remove:s,patchProp:a,createElement:i,createText:o,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=pt,insertStaticContent:x}=e,y=(v,p,g,F=null,C=null,k=null,M=void 0,I=null,A=!!p.dynamicChildren)=>{if(v===p)return;v&&!Tr(v,p)&&(F=mt(v),ce(v,C,k,!0),v=null),p.patchFlag===-2&&(A=!1,p.dynamicChildren=null);const{type:L,ref:X,shapeFlag:G}=p;switch(L){case Vn:m(v,p,g,F);break;case Ht:S(v,p,g,F);break;case ss:v==null&&w(p,g,F,M);break;case De:ne(v,p,g,F,C,k,M,I,A);break;default:G&1?U(v,p,g,F,C,k,M,I,A):G&6?ae(v,p,g,F,C,k,M,I,A):(G&64||G&128)&&L.process(v,p,g,F,C,k,M,I,A,Lt)}X!=null&&C?_r(X,v&&v.ref,k,p||v,!p):X==null&&v&&v.ref!=null&&_r(v.ref,null,k,v,!0)},m=(v,p,g,F)=>{if(v==null)n(p.el=o(p.children),g,F);else{const C=p.el=v.el;p.children!==v.children&&c(C,p.children)}},S=(v,p,g,F)=>{v==null?n(p.el=l(p.children||""),g,F):p.el=v.el},w=(v,p,g,F)=>{[v.el,v.anchor]=x(v.children,p,g,F,v.el,v.anchor)},T=({el:v,anchor:p},g,F)=>{let C;for(;v&&v!==p;)C=f(v),n(v,g,F),v=C;n(p,g,F)},E=({el:v,anchor:p})=>{let g;for(;v&&v!==p;)g=f(v),s(v),v=g;s(p)},U=(v,p,g,F,C,k,M,I,A)=>{if(p.type==="svg"?M="svg":p.type==="math"&&(M="mathml"),v==null)q(p,g,F,C,k,M,I,A);else{const L=v.el&&v.el._isVueCE?v.el:null;try{L&&L._beginPatch(),R(v,p,C,k,M,I,A)}finally{L&&L._endPatch()}}},q=(v,p,g,F,C,k,M,I)=>{let A,L;const{props:X,shapeFlag:G,transition:j,dirs:Y}=v;if(A=v.el=i(v.type,k,X&&X.is,X),G&8?u(A,v.children):G&16&&O(v.children,A,null,F,C,ns(v,k),M,I),Y&&Zt(v,null,F,"created"),N(A,v,v.scopeId,M,F),X){for(const de in X)de!=="value"&&!Er(de)&&a(A,de,null,X[de],k,F);"value"in X&&a(A,"value",null,X.value,k),(L=X.onVnodeBeforeMount)&&it(L,F,v)}Y&&Zt(v,null,F,"beforeMount");const te=Gu(C,j);te&&j.beforeEnter(A),n(A,p,g),((L=X&&X.onVnodeMounted)||te||Y)&&Ne(()=>{L&&it(L,F,v),te&&j.enter(A),Y&&Zt(v,null,F,"mounted")},C)},N=(v,p,g,F,C)=>{if(g&&d(v,g),F)for(let k=0;k{for(let L=A;L{const I=p.el=v.el;let{patchFlag:A,dynamicChildren:L,dirs:X}=p;A|=v.patchFlag&16;const G=v.props||me,j=p.props||me;let Y;if(g&&$t(g,!1),(Y=j.onVnodeBeforeUpdate)&&it(Y,g,p,v),X&&Zt(p,v,g,"beforeUpdate"),g&&$t(g,!0),(G.innerHTML&&j.innerHTML==null||G.textContent&&j.textContent==null)&&u(I,""),L?V(v.dynamicChildren,L,I,g,F,ns(p,C),k):M||W(v,p,I,null,g,F,ns(p,C),k,!1),A>0){if(A&16)Q(I,G,j,g,C);else if(A&2&&G.class!==j.class&&a(I,"class",null,j.class,C),A&4&&a(I,"style",G.style,j.style,C),A&8){const te=p.dynamicProps;for(let de=0;de{Y&&it(Y,g,p,v),X&&Zt(p,v,g,"updated")},F)},V=(v,p,g,F,C,k,M)=>{for(let I=0;I{if(p!==g){if(p!==me)for(const k in p)!Er(k)&&!(k in g)&&a(v,k,p[k],null,C,F);for(const k in g){if(Er(k))continue;const M=g[k],I=p[k];M!==I&&k!=="value"&&a(v,k,I,M,C,F)}"value"in g&&a(v,"value",p.value,g.value,C)}},ne=(v,p,g,F,C,k,M,I,A)=>{const L=p.el=v?v.el:o(""),X=p.anchor=v?v.anchor:o("");let{patchFlag:G,dynamicChildren:j,slotScopeIds:Y}=p;Y&&(I=I?I.concat(Y):Y),v==null?(n(L,g,F),n(X,g,F),O(p.children||[],g,X,C,k,M,I,A)):G>0&&G&64&&j&&v.dynamicChildren&&v.dynamicChildren.length===j.length?(V(v.dynamicChildren,j,g,C,k,M,I),(p.key!=null||C&&p===C.subTree)&&Wo(v,p,!0)):W(v,p,g,X,C,k,M,I,A)},ae=(v,p,g,F,C,k,M,I,A)=>{p.slotScopeIds=I,v==null?p.shapeFlag&512?C.ctx.activate(p,g,F,M,A):ie(p,g,F,C,k,M,A):_(v,p,A)},ie=(v,p,g,F,C,k,M)=>{const I=v.component=Yu(v,F,C);if(Eo(v)&&(I.ctx.renderer=Lt),Ku(I,!1,M),I.asyncDep){if(C&&C.registerDep(I,z,M),!v.el){const A=I.subTree=Ze(Ht);S(null,A,p,g),v.placeholder=A.el}}else z(I,v,p,g,C,k,M)},_=(v,p,g)=>{const F=p.component=v.component;if(Lu(v,p,g))if(F.asyncDep&&!F.asyncResolved){B(F,p,g);return}else F.next=p,F.update();else p.el=v.el,F.vnode=p},z=(v,p,g,F,C,k,M)=>{const I=()=>{if(v.isMounted){let{next:G,bu:j,u:Y,parent:te,vnode:de}=v;{const st=Zo(v);if(st){G&&(G.el=de.el,B(v,G,M)),st.asyncDep.then(()=>{v.isUnmounted||I()});return}}let pe=G,Me;$t(v,!1),G?(G.el=de.el,B(v,G,M)):G=de,j&&hn(j),(Me=G.props&&G.props.onVnodeBeforeUpdate)&&it(Me,te,G,de),$t(v,!0);const Pe=_a(v),nt=v.subTree;v.subTree=Pe,y(nt,Pe,h(nt.el),mt(nt),v,C,k),G.el=Pe.el,pe===null&&_u(v,Pe.el),Y&&Ne(Y,C),(Me=G.props&&G.props.onVnodeUpdated)&&Ne(()=>it(Me,te,G,de),C)}else{let G;const{el:j,props:Y}=p,{bm:te,m:de,parent:pe,root:Me,type:Pe}=v,nt=Rr(p);$t(v,!1),te&&hn(te),!nt&&(G=Y&&Y.onVnodeBeforeMount)&&it(G,pe,p),$t(v,!0);{Me.ce&&Me.ce._def.shadowRoot!==!1&&Me.ce._injectChildStyle(Pe);const st=v.subTree=_a(v);y(null,st,g,F,v,C,k),p.el=st.el}if(de&&Ne(de,C),!nt&&(G=Y&&Y.onVnodeMounted)){const st=p;Ne(()=>it(G,pe,st),C)}(p.shapeFlag&256||pe&&Rr(pe.vnode)&&pe.vnode.shapeFlag&256)&&v.a&&Ne(v.a,C),v.isMounted=!0,p=g=F=null}};v.scope.on();const A=v.effect=new no(I);v.scope.off();const L=v.update=A.run.bind(A),X=v.job=A.runIfDirty.bind(A);X.i=v,X.id=v.uid,A.scheduler=()=>ta(X),$t(v,!0),L()},B=(v,p,g)=>{p.component=v;const F=v.vnode.props;v.vnode=p,v.next=null,Au(v,p.props,F,g),Du(v,p.children,g),Ct(),Fa(v),kt()},W=(v,p,g,F,C,k,M,I,A=!1)=>{const L=v&&v.children,X=v?v.shapeFlag:0,G=p.children,{patchFlag:j,shapeFlag:Y}=p;if(j>0){if(j&128){ge(L,G,g,F,C,k,M,I,A);return}else if(j&256){se(L,G,g,F,C,k,M,I,A);return}}Y&8?(X&16&&je(L,C,k),G!==L&&u(g,G)):X&16?Y&16?ge(L,G,g,F,C,k,M,I,A):je(L,C,k,!0):(X&8&&u(g,""),Y&16&&O(G,g,F,C,k,M,I,A))},se=(v,p,g,F,C,k,M,I,A)=>{v=v||cr,p=p||cr;const L=v.length,X=p.length,G=Math.min(L,X);let j;for(j=0;jX?je(v,C,k,!0,!1,G):O(p,g,F,C,k,M,I,A,G)},ge=(v,p,g,F,C,k,M,I,A)=>{let L=0;const X=p.length;let G=v.length-1,j=X-1;for(;L<=G&&L<=j;){const Y=v[L],te=p[L]=A?Dt(p[L]):ct(p[L]);if(Tr(Y,te))y(Y,te,g,null,C,k,M,I,A);else break;L++}for(;L<=G&&L<=j;){const Y=v[G],te=p[j]=A?Dt(p[j]):ct(p[j]);if(Tr(Y,te))y(Y,te,g,null,C,k,M,I,A);else break;G--,j--}if(L>G){if(L<=j){const Y=j+1,te=Yj)for(;L<=G;)ce(v[L],C,k,!0),L++;else{const Y=L,te=L,de=new Map;for(L=te;L<=j;L++){const Be=p[L]=A?Dt(p[L]):ct(p[L]);Be.key!=null&&de.set(Be.key,L)}let pe,Me=0;const Pe=j-te+1;let nt=!1,st=0;const Sr=new Array(Pe);for(L=0;L=Pe){ce(Be,C,k,!0);continue}let at;if(Be.key!=null)at=de.get(Be.key);else for(pe=te;pe<=j;pe++)if(Sr[pe-te]===0&&Tr(Be,p[pe])){at=pe;break}at===void 0?ce(Be,C,k,!0):(Sr[at-te]=L+1,at>=st?st=at:nt=!0,y(Be,p[at],g,null,C,k,M,I,A),Me++)}const xa=nt?Hu(Sr):cr;for(pe=xa.length-1,L=Pe-1;L>=0;L--){const Be=te+L,at=p[Be],ya=p[Be+1],ba=Be+1{const{el:k,type:M,transition:I,children:A,shapeFlag:L}=v;if(L&6){oe(v.component.subTree,p,g,F);return}if(L&128){v.suspense.move(p,g,F);return}if(L&64){M.move(v,p,g,Lt);return}if(M===De){n(k,p,g);for(let G=0;GI.enter(k),C);else{const{leave:G,delayLeave:j,afterLeave:Y}=I,te=()=>{v.ctx.isUnmounted?s(k):n(k,p,g)},de=()=>{k._isLeaving&&k[ru](!0),G(k,()=>{te(),Y&&Y()})};j?j(k,te,de):de()}else n(k,p,g)},ce=(v,p,g,F=!1,C=!1)=>{const{type:k,props:M,ref:I,children:A,dynamicChildren:L,shapeFlag:X,patchFlag:G,dirs:j,cacheIndex:Y}=v;if(G===-2&&(C=!1),I!=null&&(Ct(),_r(I,null,g,v,!0),kt()),Y!=null&&(p.renderCache[Y]=void 0),X&256){p.ctx.deactivate(v);return}const te=X&1&&j,de=!Rr(v);let pe;if(de&&(pe=M&&M.onVnodeBeforeUnmount)&&it(pe,p,v),X&6)br(v.component,g,F);else{if(X&128){v.suspense.unmount(g,F);return}te&&Zt(v,null,p,"beforeUnmount"),X&64?v.type.remove(v,p,g,Lt,F):L&&!L.hasOnce&&(k!==De||G>0&&G&64)?je(L,p,g,!1,!0):(k===De&&G&384||!C&&X&16)&&je(A,p,g),F&&Ut(v)}(de&&(pe=M&&M.onVnodeUnmounted)||te)&&Ne(()=>{pe&&it(pe,p,v),te&&Zt(v,null,p,"unmounted")},g)},Ut=v=>{const{type:p,el:g,anchor:F,transition:C}=v;if(p===De){sr(g,F);return}if(p===ss){E(v);return}const k=()=>{s(g),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(v.shapeFlag&1&&C&&!C.persisted){const{leave:M,delayLeave:I}=C,A=()=>M(g,k);I?I(v.el,k,A):A()}else k()},sr=(v,p)=>{let g;for(;v!==p;)g=f(v),s(v),v=g;s(p)},br=(v,p,g)=>{const{bum:F,scope:C,job:k,subTree:M,um:I,m:A,a:L}=v;Ia(A),Ia(L),F&&hn(F),C.stop(),k&&(k.flags|=8,ce(M,v,p,g)),I&&Ne(I,p),Ne(()=>{v.isUnmounted=!0},p)},je=(v,p,g,F=!1,C=!1,k=0)=>{for(let M=k;M{if(v.shapeFlag&6)return mt(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const p=f(v.anchor||v.el),g=p&&p[eu];return g?f(g):p};let qe=!1;const tn=(v,p,g)=>{let F;v==null?p._vnode&&(ce(p._vnode,null,null,!0),F=p._vnode.component):y(p._vnode||null,v,p,null,null,null,g),p._vnode=v,qe||(qe=!0,Fa(F),So(),qe=!1)},Lt={p:y,um:ce,m:oe,r:Ut,mt:ie,mc:O,pc:W,pbc:V,n:mt,o:e};return{render:tn,hydrate:void 0,createApp:Fu(tn)}}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 $t({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wo(e,t,r=!1){const n=e.children,s=t.children;if(ee(n)&&ee(s))for(let a=0;a>1,e[r[o]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,i=r[a-1];a-- >0;)r[a]=i,i=t[i];return r}function Zo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zo(t)}function Ia(e){if(e)for(let t=0;te.__isSuspense;function zu(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):j0(e)}const De=Symbol.for("v-fgt"),Vn=Symbol.for("v-txt"),Ht=Symbol.for("v-cmt"),ss=Symbol.for("v-stc"),Ir=[];let He=null;function ue(e=!1){Ir.push(He=e?null:[])}function Vu(){Ir.pop(),He=Ir[Ir.length-1]||null}let Hr=1;function Ma(e,t=!1){Hr+=e,e<0&&He&&t&&(He.hasOnce=!0)}function qo(e){return e.dynamicChildren=Hr>0?He||cr:null,Vu(),Hr>0&&He&&He.push(e),e}function he(e,t,r,n,s,a){return qo(P(e,t,r,n,s,a,!0))}function Xo(e,t,r,n,s){return qo(Ze(e,t,r,n,s,!0))}function Yo(e){return e?e.__v_isVNode===!0:!1}function Tr(e,t){return e.type===t.type&&e.key===t.key}const Ko=({key:e})=>e??null,dn=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ce(e)||we(e)||re(e)?{i:Ge,r:e,k:t,f:!!r}:e:null);function P(e,t=null,r=null,n=0,s=null,a=e===De?0:1,i=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ko(t),ref:t&&dn(t),scopeId:To,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:Ge};return o?(aa(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Ce(r)?8:16),Hr>0&&!i&&He&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&He.push(l),l}const Ze=Wu;function Wu(e,t=null,r=null,n=0,s=null,a=!1){if((!e||e===du)&&(e=Ht),Yo(e)){const o=vr(e,t,!0);return r&&aa(o,r),Hr>0&&!a&&He&&(o.shapeFlag&6?He[He.indexOf(e)]=o:He.push(o)),o.patchFlag=-2,o}if(tc(e)&&(e=e.__vccOpts),t){t=Zu(t);let{class:o,style:l}=t;o&&!Ce(o)&&(t.class=ft(o)),Se(l)&&(Nn(l)&&!ee(l)&&(l=Oe({},l)),t.style=Dr(l))}const i=Ce(e)?1:jo(e)?128:tu(e)?64:Se(e)?4:re(e)?2:0;return P(e,t,r,n,s,i,a,!0)}function Zu(e){return e?Nn(e)||Bo(e)?Oe({},e):e:null}function vr(e,t,r=!1,n=!1){const{props:s,ref:a,patchFlag:i,children:o,transition:l}=e,c=t?ju(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ko(c),ref:t&&t.ref?r&&a?ee(a)?a.concat(dn(t)):[a,dn(t)]:dn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vr(e.ssContent),ssFallback:e.ssFallback&&vr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&ra(u,l.clone(u)),u}function $u(e=" ",t=0){return Ze(Vn,null,e,t)}function Kt(e="",t=!1){return t?(ue(),Xo(Ht,null,e)):Ze(Ht,null,e)}function ct(e){return e==null||typeof e=="boolean"?Ze(Ht):ee(e)?Ze(De,null,e.slice()):Yo(e)?Dt(e):Ze(Vn,null,String(e))}function Dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vr(e)}function aa(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ee(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),aa(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Bo(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Ge},r=32):(t=String(t),n&64?(r=16,t=[$u(t)]):r=8);e.children=t,e.shapeFlag|=r}function ju(...e){const t={};for(let r=0;rRe||Ge;let Cn,Es;{const e=Pn(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),a=>{s.length>1?s.forEach(i=>i(a)):s[0](a)}};Cn=t("__VUE_INSTANCE_SETTERS__",r=>Re=r),Es=t("__VUE_SSR_SETTERS__",r=>zr=r)}const Xr=e=>{const t=Re;return Cn(e),e.scope.on(),()=>{e.scope.off(),Cn(t)}},Pa=()=>{Re&&Re.scope.off(),Cn(null)};function Qo(e){return e.vnode.shapeFlag&4}let zr=!1;function Ku(e,t=!1,r=!1){t&&Es(t);const{props:n,children:s}=e.vnode,a=Qo(e);Ru(e,n,a,t),Pu(e,s,r||t);const i=a?Ju(e,t):void 0;return t&&Es(!1),i}function Ju(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mu);const{setup:n}=r;if(n){Ct();const s=e.setupContext=n.length>1?ec(e):null,a=Xr(e),i=jr(n,e,0,[e.props,s]),o=ji(i);if(kt(),a(),(o||e.sp)&&!Rr(e)&&ko(e),o){if(i.then(Pa,Pa),t)return i.then(l=>{Da(e,l)}).catch(l=>{Gn(l,e,0)});e.asyncDep=i}else Da(e,i)}else el(e)}function Da(e,t,r){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=xo(t)),el(e)}function el(e,t,r){const n=e.type;e.render||(e.render=n.render||pt);{const s=Xr(e);Ct();try{xu(e)}finally{kt(),s()}}}const Qu={get(e,t){return _e(e,"get",""),e[t]}};function ec(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Qu),slots:e.slots,emit:e.emit,expose:t}}function Wn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(xo(Qs(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 tc(e){return re(e)&&"__vccOpts"in e}const ve=(e,t)=>z0(e,t,zr),rc="3.5.27";let Os;const Ba=typeof window<"u"&&window.trustedTypes;if(Ba)try{Os=Ba.createPolicy("vue",{createHTML:e=>e})}catch{}const tl=Os?e=>Os.createHTML(e):e=>e,nc="http://www.w3.org/2000/svg",sc="http://www.w3.org/1998/Math/MathML",yt=typeof document<"u"?document:null,Na=yt&&yt.createElement("template"),ac={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"?yt.createElementNS(nc,e):t==="mathml"?yt.createElementNS(sc,e):r?yt.createElement(e,{is:r}):yt.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>yt.createTextNode(e),createComment:e=>yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,a){const i=r?r.previousSibling:t.lastChild;if(s&&(s===a||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===a||!(s=s.nextSibling)););else{Na.innerHTML=tl(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=Na.content;if(n==="svg"||n==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},ic=Symbol("_vtc");function oc(e,t,r){const n=e[ic];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Ga=Symbol("_vod"),lc=Symbol("_vsh"),uc=Symbol(""),cc=/(?:^|;)\s*display\s*:/;function fc(e,t,r){const n=e.style,s=Ce(r);let a=!1;if(r&&!s){if(t)if(Ce(t))for(const i of t.split(";")){const o=i.slice(0,i.indexOf(":")).trim();r[o]==null&&vn(n,o,"")}else for(const i in t)r[i]==null&&vn(n,i,"");for(const i in r)i==="display"&&(a=!0),vn(n,i,r[i])}else if(s){if(t!==r){const i=n[uc];i&&(r+=";"+i),n.cssText=r,a=cc.test(r)}}else t&&e.removeAttribute("style");Ga in e&&(e[Ga]=a?n.display:"",e[lc]&&(n.display="none"))}const Ha=/\s*!important$/;function vn(e,t,r){if(ee(r))r.forEach(n=>vn(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=hc(e,t);Ha.test(r)?e.setProperty(nr(n),r.replace(Ha,""),"important"):e[n]=r}}const za=["Webkit","Moz","ms"],as={};function hc(e,t){const r=as[t];if(r)return r;let n=vt(t);if(n!=="filter"&&n in e)return as[t]=n;n=Zs(n);for(let s=0;sis||(gc.then(()=>is=0),is=Date.now());function xc(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;gt(yc(n,r.value),t,5,[n])};return r.value=e,r.attached=mc(),r}function yc(e,t){if(ee(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 qa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bc=(e,t,r,n,s,a)=>{const i=s==="svg";t==="class"?oc(e,n,i):t==="style"?fc(e,r,n):Rn(t)?Vs(t)||dc(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Sc(e,t,n,i))?(Za(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Wa(e,t,n,i,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ce(n))?Za(e,vt(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Wa(e,t,n,i))};function Sc(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&qa(t)&&re(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 qa(t)&&Ce(r)?!1:t in e}const Xa=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?r=>hn(t,r):t};function wc(e){e.target.composing=!0}function Ya(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const os=Symbol("_assign");function Ka(e,t,r){return t&&(e=e.trim()),r&&(e=$s(e)),e}const Tc={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[os]=Xa(s);const a=n||s.props&&s.props.type==="number";ur(e,t?"change":"input",i=>{i.target.composing||e[os](Ka(e.value,r,a))}),(r||a)&&ur(e,"change",()=>{e.value=Ka(e.value,r,a)}),t||(ur(e,"compositionstart",wc),ur(e,"compositionend",Ya),ur(e,"change",Ya))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:s,number:a}},i){if(e[os]=Xa(i),e.composing)return;const o=(a||e.type==="number")&&!/^0\d/.test(e.value)?$s(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||s&&e.value.trim()===l)||(e.value=l))}},Fc=Oe({patchProp:bc},ac);let Ja;function Cc(){return Ja||(Ja=Bu(Fc))}const kc=((...e)=>{const t=Cc().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=Oc(n);if(!s)return;const a=t._component;!re(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=r(s,!1,Ec(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function Ec(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Oc(e){return Ce(e)?document.querySelector(e):e}let rl;const Zn=e=>rl=e,nl=Symbol();function Us(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mr||(Mr={}));function Uc(){const e=to(!0),t=e.run(()=>be({}));let r=[],n=[];const s=Qs({install(a){Zn(s),s._a=a,a.provide(nl,s),a.config.globalProperties.$pinia=s,n.forEach(i=>r.push(i)),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 sl=()=>{};function Qa(e,t,r,n=sl){e.add(t);const s=()=>{e.delete(t)&&n()};return!r&&ro()&&d0(s),s}function ir(e,...t){e.forEach(r=>{r(...t)})}const Lc=e=>e(),ei=Symbol(),ls=Symbol();function Ls(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];Us(s)&&Us(n)&&e.hasOwnProperty(r)&&!we(n)&&!Tt(n)?e[r]=Ls(s,n):e[r]=n}return e}const _c=Symbol();function Rc(e){return!Us(e)||!Object.prototype.hasOwnProperty.call(e,_c)}const{assign:At}=Object;function Ac(e){return!!(we(e)&&e.effect)}function Ic(e,t,r,n){const{state:s,actions:a,getters:i}=t,o=r.state.value[e];let l;function c(){o||(r.state.value[e]=s?s():{});const u=B0(r.state.value[e]);return At(u,a,Object.keys(i||{}).reduce((h,f)=>(h[f]=Qs(ve(()=>{Zn(r);const d=r._s.get(e);return i[f].call(d,d)})),h),{}))}return l=al(e,c,t,r,n,!0),l}function al(e,t,r={},n,s,a){let i;const o=At({actions:{}},r),l={deep:!0};let c,u,h=new Set,f=new Set,d;const x=n.state.value[e];!a&&!x&&(n.state.value[e]={});let y;function m(O){let R;c=u=!1,typeof O=="function"?(O(n.state.value[e]),R={type:Mr.patchFunction,storeId:e,events:d}):(Ls(n.state.value[e],O),R={type:Mr.patchObject,payload:O,storeId:e,events:d});const V=y=Symbol();ea().then(()=>{y===V&&(c=!0)}),u=!0,ir(h,R,n.state.value[e])}const S=a?function(){const{state:R}=r,V=R?R():{};this.$patch(Q=>{At(Q,V)})}:sl;function w(){i.stop(),h.clear(),f.clear(),n._s.delete(e)}const T=(O,R="")=>{if(ei in O)return O[ls]=R,O;const V=function(){Zn(n);const Q=Array.from(arguments),ne=new Set,ae=new Set;function ie(B){ne.add(B)}function _(B){ae.add(B)}ir(f,{args:Q,name:V[ls],store:U,after:ie,onError:_});let z;try{z=O.apply(this&&this.$id===e?this:U,Q)}catch(B){throw ir(ae,B),B}return z instanceof Promise?z.then(B=>(ir(ne,B),B)).catch(B=>(ir(ae,B),Promise.reject(B))):(ir(ne,z),z)};return V[ei]=!0,V[ls]=R,V},E={_p:n,$id:e,$onAction:Qa.bind(null,f),$patch:m,$reset:S,$subscribe(O,R={}){const V=Qa(h,O,R.detached,()=>Q()),Q=i.run(()=>Qt(()=>n.state.value[e],ne=>{(R.flush==="sync"?u:c)&&O({storeId:e,type:Mr.direct,events:d},ne)},At({},l,R)));return V},$dispose:w},U=Bn(E);n._s.set(e,U);const N=(n._a&&n._a.runWithContext||Lc)(()=>n._e.run(()=>(i=to()).run(()=>t({action:T}))));for(const O in N){const R=N[O];if(we(R)&&!Ac(R)||Tt(R))a||(x&&Rc(R)&&(we(R)?R.value=x[O]:Ls(R,x[O])),n.state.value[e][O]=R);else if(typeof R=="function"){const V=T(R,O);N[O]=V,o.actions[O]=R}}return At(U,N),At(le(U),N),Object.defineProperty(U,"$state",{get:()=>n.state.value[e],set:O=>{m(R=>{At(R,O)})}}),n._p.forEach(O=>{At(U,i.run(()=>O({store:U,app:n._a,pinia:n,options:o})))}),x&&a&&r.hydrate&&r.hydrate(U.$state,x),c=!0,u=!0,U}function il(e,t,r){let n;const s=typeof t=="function";n=s?r:t;function a(i,o){const l=Y0();return i=i||(l?Lr(nl,null):null),i&&Zn(i),i=rl,i._s.has(e)||(s?al(e,t,n,i):Ic(e,n,i)),i._s.get(e)}return a.$id=e,a}const Mc="modulepreload",Pc=function(e){return"/"+e},ti={},ri=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 i=document.querySelector("meta[property=csp-nonce]"),o=i?.nonce||i?.getAttribute("nonce");s=l(r.map(c=>{if(c=Pc(c),c in ti)return;ti[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":Mc,u||(f.as="script"),f.crossOrigin="",f.href=c,o&&f.setAttribute("nonce",o),document.head.appendChild(f),u)return new Promise((d,x)=>{f.addEventListener("load",d),f.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(i){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i}return s.then(i=>{for(const o of i||[])o.status==="rejected"&&a(o.reason);return t().catch(a)})},Dc="/assets/webicon-K25S575h.svg",Bc="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",Nc="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",Gc="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",Hc="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",zc="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",Vc="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",Wc="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 i=n.charCodeAt(a),o;return i>=55296&&i<=56319&&s>a+1&&(o=n.charCodeAt(a+1),o>=56320&&o<=57343)?(i-55296)*1024+o-56320+65536:i}};e?e(String.prototype,"codePointAt",{value:t,configurable:!0,writable:!0}):String.prototype.codePointAt=t})();var ia=0,ol=-3;function Vr(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function Zc(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new Vr,this.dtree=new Vr}var ll=new Vr,ul=new Vr,oa=new Uint8Array(30),la=new Uint16Array(30),cl=new Uint8Array(30),fl=new Uint16Array(30),$c=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ni=new Vr,ot=new Uint8Array(320);function hl(e,t,r,n){var s,a;for(s=0;s>>=1,t}function ut(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>16-t;return e.tag>>>=t,e.bitcount-=t,n+r}function _s(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>=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 Xc(e,t,r){var n,s,a,i,o,l;for(n=ut(e,5,257),s=ut(e,5,1),a=ut(e,4,4),i=0;i<19;++i)ot[i]=0;for(i=0;i8;)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 ol;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,ia}function Kc(e,t){var r=new Zc(e,t),n,s,a;do{switch(n=qc(r),s=ut(r,2,0),s){case 0:a=Yc(r);break;case 1:a=ai(r,ll,ul);break;case 2:Xc(r,r.ltree,r.dtree),a=ai(r,r.ltree,r.dtree);break;default:a=ol}if(a!==ia)throw new Error("Data error")}while(!n);return r.destLenthis.x2&&(this.x2=e)),typeof t=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))};Wt.prototype.addX=function(e){this.addPoint(e,null)};Wt.prototype.addY=function(e){this.addPoint(null,e)};Wt.prototype.addBezier=function(e,t,r,n,s,a,i,o){var l=[e,t],c=[r,n],u=[s,a],h=[i,o];this.addPoint(e,t),this.addPoint(i,o);for(var f=0;f<=1;f++){var d=6*l[f]-12*c[f]+6*u[f],x=-3*l[f]+9*c[f]-9*u[f]+3*h[f],y=3*c[f]-3*l[f];if(x===0){if(d===0)continue;var m=-y/d;0=0&&l>0&&(o+=" "),o+=t(c)}return o}for(var n="",s=0;s=0&&e<=255,"Byte value should be between 0 and 255."),[e]};J.BYTE=tt(1);D.CHAR=function(e){return[e.charCodeAt(0)]};J.CHAR=tt(1);D.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"u"?0:e.length};D.USHORT=function(e){return[e>>8&255,e&255]};J.USHORT=tt(2);D.SHORT=function(e){return e>=oi&&(e=-(2*oi-e)),[e>>8&255,e&255]};J.SHORT=tt(2);D.UINT24=function(e){return[e>>16&255,e>>8&255,e&255]};J.UINT24=tt(3);D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]};J.ULONG=tt(4);D.LONG=function(e){return e>=li&&(e=-(2*li-e)),[e>>24&255,e>>16&255,e>>8&255,e&255]};J.LONG=tt(4);D.FIXED=D.ULONG;J.FIXED=J.ULONG;D.FWORD=D.SHORT;J.FWORD=J.SHORT;D.UFWORD=D.USHORT;J.UFWORD=J.USHORT;D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,e&255]};J.LONGDATETIME=tt(8);D.TAG=function(e){return K.argument(e.length===4,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]};J.TAG=tt(4);D.Card8=D.BYTE;J.Card8=J.BYTE;D.Card16=D.USHORT;J.Card16=J.USHORT;D.OffSize=D.BYTE;J.OffSize=J.BYTE;D.SID=D.USHORT;J.SID=J.USHORT;D.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?D.NUMBER16(e):D.NUMBER32(e)};J.NUMBER=function(e){return D.NUMBER(e).length};D.NUMBER16=function(e){return[28,e>>8&255,e&255]};J.NUMBER16=tt(3);D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,e&255]};J.NUMBER32=tt(5);D.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,i=t.length;a>8&255,t[t.length]=n&255}return t};J.UTF16=function(e){return e.length*2};var Rs={"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":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};gr.MACSTRING=function(e,t,r,n){var s=Rs[n];if(s!==void 0){for(var a="",i=0;i=128&&(a=r[a],a===void 0))return;n[s]=a}return n}};J.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return r!==void 0?r.length:0};function As(e){return e>=-128&&e<=127}function ef(e,t,r){for(var n=0,s=e.length;t>8&255,l+256&255)}return a}D.VARDELTAS=function(e){for(var t=0,r=[];t=-128&&n<=127?t=tf(e,t,r):t=rf(e,t,r)}return r};D.INDEX=function(e){for(var t=1,r=[t],n=[],s=0;s>8,t[h+1]=f&255,t=t.concat(n[u])}return t};J.TABLE=function(e){for(var t=0,r=e.fields.length,n=0;n0)return new b(this.data,this.offset+t).parseStruct(e)};b.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new b(this.data,this.offset+t).parseStruct(e)};b.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),r=t.length,n=this.relativeOffset,s=new Array(r),a=0;a>1,t.skip("uShort",3),e.glyphIndexMap={};for(var i=new $.Parser(r,n+s+14),o=new $.Parser(r,n+s+16+a*2),l=new $.Parser(r,n+s+16+a*4),c=new $.Parser(r,n+s+16+a*6),u=n+s+16+a*8,h=0;h=0;s-=1){var a=$.getUShort(e,t+4+s*8),i=$.getUShort(e,t+4+s*8+2);if(a===3&&(i===0||i===1||i===10)||a===0&&(i===0||i===1||i===2||i===3||i===4)){n=$.getULong(e,t+4+s*8+4);break}}if(n===-1)throw new Error("No valid cmap sub-tables found.");var o=new $.Parser(e,t+n);if(r.format=o.parseUShort(),r.format===12)cf(r,o);else if(r.format===4)ff(r,o,e,t,n);else throw new Error("Only format 4 and 12 cmap tables are supported (found format "+r.format+").");return r}function pf(e,t,r){e.segments.push({end:t,start:t,delta:-(t-r),offset:0,glyphIndex:r})}function df(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}function vf(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 H.Table("cmap",s);for(a.segments=[],r=0;r>4,i=s&15;if(a===r||(t+=n[a],i===r))break;t+=n[i]}return parseFloat(t)}function Uf(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 Of(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 Lf(e){for(var t={},r=0;r>1,l.length=0,u=!0}function N(O){for(var R,V,Q,ne,ae,ie,_,z,B,W,se,ge,oe=0;oe1&&!u&&(E=l.shift()+S,u=!0),d+=l.pop(),U(f,d);break;case 5:for(;l.length>0;)f+=l.shift(),d+=l.shift(),o.lineTo(f,d);break;case 6:for(;l.length>0&&(f+=l.shift(),o.lineTo(f,d),l.length!==0);)d+=l.shift(),o.lineTo(f,d);break;case 7:for(;l.length>0&&(d+=l.shift(),o.lineTo(f,d),l.length!==0);)f+=l.shift(),o.lineTo(f,d);break;case 8:for(;l.length>0;)n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+l.shift(),o.curveTo(n,s,a,i,f,d);break;case 10:ae=l.pop()+y,ie=x[ae],ie&&N(ie);break;case 11:return;case 12:switch(ce=O[oe],oe+=1,ce){case 35:n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),_=a+l.shift(),z=i+l.shift(),B=_+l.shift(),W=z+l.shift(),se=B+l.shift(),ge=W+l.shift(),f=se+l.shift(),d=ge+l.shift(),l.shift(),o.curveTo(n,s,a,i,_,z),o.curveTo(B,W,se,ge,f,d);break;case 34:n=f+l.shift(),s=d,a=n+l.shift(),i=s+l.shift(),_=a+l.shift(),z=i,B=_+l.shift(),W=i,se=B+l.shift(),ge=d,f=se+l.shift(),o.curveTo(n,s,a,i,_,z),o.curveTo(B,W,se,ge,f,d);break;case 36:n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),_=a+l.shift(),z=i,B=_+l.shift(),W=i,se=B+l.shift(),ge=W+l.shift(),f=se+l.shift(),o.curveTo(n,s,a,i,_,z),o.curveTo(B,W,se,ge,f,d);break;case 37:n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),_=a+l.shift(),z=i+l.shift(),B=_+l.shift(),W=z+l.shift(),se=B+l.shift(),ge=W+l.shift(),Math.abs(se-f)>Math.abs(ge-d)?f=se+l.shift():d=ge+l.shift(),o.curveTo(n,s,a,i,_,z),o.curveTo(B,W,se,ge,f,d);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+ce),l.length=0}break;case 14:l.length>0&&!u&&(E=l.shift()+S,u=!0),h&&(o.closePath(),h=!1);break;case 18:q();break;case 19:case 20:q(),oe+=c+7>>3;break;case 21:l.length>2&&!u&&(E=l.shift()+S,u=!0),d+=l.pop(),f+=l.pop(),U(f,d);break;case 22:l.length>1&&!u&&(E=l.shift()+S,u=!0),f+=l.pop(),U(f,d);break;case 23:q();break;case 24:for(;l.length>2;)n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+l.shift(),o.curveTo(n,s,a,i,f,d);f+=l.shift(),d+=l.shift(),o.lineTo(f,d);break;case 25:for(;l.length>6;)f+=l.shift(),d+=l.shift(),o.lineTo(f,d);n=f+l.shift(),s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+l.shift(),o.curveTo(n,s,a,i,f,d);break;case 26:for(l.length%2&&(f+=l.shift());l.length>0;)n=f,s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a,d=i+l.shift(),o.curveTo(n,s,a,i,f,d);break;case 27:for(l.length%2&&(d+=l.shift());l.length>0;)n=f+l.shift(),s=d,a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i,o.curveTo(n,s,a,i,f,d);break;case 28:R=O[oe],V=O[oe+1],l.push((R<<24|V<<16)>>16),oe+=2;break;case 29:ae=l.pop()+e.gsubrsBias,ie=e.gsubrs[ae],ie&&N(ie);break;case 30:for(;l.length>0&&(n=f,s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+(l.length===1?l.shift():0),o.curveTo(n,s,a,i,f,d),l.length!==0);)n=f+l.shift(),s=d,a=n+l.shift(),i=s+l.shift(),d=i+l.shift(),f=a+(l.length===1?l.shift():0),o.curveTo(n,s,a,i,f,d);break;case 31:for(;l.length>0&&(n=f+l.shift(),s=d,a=n+l.shift(),i=s+l.shift(),d=i+l.shift(),f=a+(l.length===1?l.shift():0),o.curveTo(n,s,a,i,f,d),l.length!==0);)n=f,s=d+l.shift(),a=n+l.shift(),i=s+l.shift(),f=a+l.shift(),d=i+(l.length===1?l.shift():0),o.curveTo(n,s,a,i,f,d);break;default:ce<32?console.log("Glyph "+t.index+": unknown operator "+ce):ce<247?l.push(ce-139):ce<251?(R=O[oe],oe+=1,l.push((ce-247)*256+R+108)):ce<255?(R=O[oe],oe+=1,l.push(-(ce-251)*256-R-108)):(R=O[oe],V=O[oe+1],Q=O[oe+2],ne=O[oe+3],oe+=4,l.push((R<<24|V<<16|Q<<8|ne)/65536))}}}return N(r),t.advanceWidth=E,o}function Mf(e,t,r,n){var s=[],a,i=new $.Parser(e,t),o=i.parseCard8();if(o===0)for(var l=0;l=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");s.push(a)}else if(o===3){var c=i.parseCard16(),u=i.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=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=0&&(r=n),n=t.indexOf(e),n>=0?r=n+gn.length:(r=gn.length+t.length,t.push(e)),r}function Df(){return new H.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 Bf(e){var t=new H.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var r=0;r=r.begin&&e=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 ph(e){return new H.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 Bs={parse:hh,make:ph,unicodeRanges:Ds,getUnicodeRange:fh};function dh(e,t){var r={},n=new $.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=Xt.slice();break;case 2:r.numberOfGlyphs=n.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var s=0;s=Xt.length){var i=n.parseChar();r.names.push(n.parseString(i))}break;case 2.5:r.numberOfGlyphs=n.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var o=0;oh.value.tag?1:-1}),t.fields=t.fields.concat(n),t.fields=t.fields.concat(s),t}function yi(e,t,r){for(var n=0;n0){var a=e.glyphs.get(s);return a.getMetrics()}}return r}function bh(e){for(var t=0,r=0;rm||l===void 0)&&m>0&&(l=m),c 123 are reserved for internal usage");if(y.name!==".notdef"){var w=y.getMetrics();t.push(w.xMin),r.push(w.yMin),n.push(w.xMax),s.push(w.yMax),i.push(w.leftSideBearing),o.push(w.rightSideBearing),a.push(y.advanceWidth)}}var T={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:bh(a),minLeftSideBearing:Math.min.apply(null,i),maxLeftSideBearing:Math.max.apply(null,i),minRightSideBearing:Math.min.apply(null,o)};T.ascender=e.ascender,T.descender=e.descender;var E=El.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:T.xMin,yMin:T.yMin,xMax:T.xMax,yMax:T.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),U=Ol.make({ascender:T.ascender,descender:T.descender,advanceWidthMax:T.advanceWidthMax,minLeftSideBearing:T.minLeftSideBearing,minRightSideBearing:T.minRightSideBearing,xMaxExtent:T.maxLeftSideBearing+(T.xMax-T.xMin),numberOfHMetrics:e.glyphs.length}),q=_l.make(e.glyphs.length),N=Bs.make(Object.assign({xAvgCharWidth:Math.round(T.advanceWidthAvg),usFirstCharIndex:l,usLastCharIndex:c,ulUnicodeRange1:u,ulUnicodeRange2:h,ulUnicodeRange3:f,ulUnicodeRange4:d,sTypoAscender:T.ascender,sTypoDescender:T.descender,sTypoLineGap:0,usWinAscent:T.yMax,usWinDescent:Math.abs(T.yMin),ulCodePageRange1:1,sxHeight:yi(e,"xyvw",{yMax:Math.round(T.ascender/2)}).yMax,sCapHeight:yi(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",T).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0},e.tables.os2)),O=Ul.make(e.glyphs),R=vl.make(e.glyphs),V=e.getEnglishName("fontFamily"),Q=e.getEnglishName("fontSubfamily"),ne=V+" "+Q,ae=e.getEnglishName("postScriptName");ae||(ae=V.replace(/\s/g,"")+"-"+Q);var ie={};for(var _ in e.names)ie[_]=e.names[_];ie.uniqueID||(ie.uniqueID={en:e.getEnglishName("manufacturer")+":"+ne}),ie.postScriptName||(ie.postScriptName={en:ae}),ie.preferredFamily||(ie.preferredFamily=e.names.fontFamily),ie.preferredSubfamily||(ie.preferredSubfamily=e.names.fontSubfamily);var z=[],B=Pl.make(ie,z),W=z.length>0?Ll.make(z):void 0,se=Dl.make(),ge=kl.make(e.glyphs,{version:e.getEnglishName("version"),fullName:ne,familyName:V,weightName:Q,postScriptName:ae,unitsPerEm:e.unitsPerEm,fontBBox:[0,T.yMin,T.ascender,T.advanceWidthMax]}),oe=e.metas&&Object.keys(e.metas).length>0?Nl.make(e.metas):void 0,ce=[E,U,q,N,B,R,se,ge,O];W&&ce.push(W),e.tables.gsub&&ce.push(Bl.make(e.tables.gsub)),oe&&ce.push(oe);for(var Ut=Gl(ce),sr=Ut.encode(),br=ha(sr),je=Ut.fields,mt=!1,qe=0;qe>>1,a=e[s].tag;if(a===t)return s;a>>1,a=e[s];if(a===t)return s;a>>1;r=e[a];var i=r.start;if(i===t)return r;i0)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:bi,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=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,i=s.featureIndexes,o=this.font.tables[this.tableName].features,l=0;l=o[c-1].tag,"Features must be added in alphabetical order."),a={tag:r,feature:{params:0,lookupListIndexes:[]}},o.push(a),i.push(c),a.feature}}},getLookupTables:function(e,t,r,n,s){var a=this.getFeatureTable(e,t,r,s),i=[];if(a){for(var o,l=a.lookupListIndexes,c=this.font.tables[this.tableName].lookups,u=0;u=0?r:-1;case 2:var n=Si(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;n1,'Multiple: "by" must be an array of two or more ids');var s=this.getLookupTables(r,n,e,2,!0)[0],a=pa(s,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});K.assert(a.coverage.format===1,"Multiple: unable to modify coverage table format "+a.coverage.format);var i=t.sub,o=this.binSearch(a.coverage.glyphs,i);o<0&&(o=-1-o,a.coverage.glyphs.splice(o,0,i),a.sequences.splice(o,0,0)),a.sequences[o]=t.by};Ve.prototype.addAlternate=function(e,t,r,n){var s=this.getLookupTables(r,n,e,3,!0)[0],a=pa(s,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});K.assert(a.coverage.format===1,"Alternate: unable to modify coverage table format "+a.coverage.format);var i=t.sub,o=this.binSearch(a.coverage.glyphs,i);o<0&&(o=-1-o,a.coverage.glyphs.splice(o,0,i),a.alternateSets.splice(o,0,0)),a.alternateSets[o]=t.by};Ve.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),K.assert(a.coverage.format===1,"Ligature: unable to modify coverage table format "+a.coverage.format);var i=t.sub[0],o=t.sub.slice(1),l={ligGlyph:t.by,components:o},c=this.binSearch(a.coverage.glyphs,i);if(c>=0){for(var u=a.ligatureSets[c],h=0;h0?(a=e.parseByte(),(t&s)===0&&(a=-a),a=r+a):(t&s)>0?a=r:a=r+e.parseShort(),a}function Hl(e,t,r){var n=new $.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 i=e.endPointIndices=[],o=0;o0)for(var h=n.parseByte(),f=0;f0){var d=[],x;if(c>0){for(var y=0;y=0,d.push(x);for(var m=0,S=0;S0?(s&2)>0?(U.dx=n.parseShort(),U.dy=n.parseShort()):U.matchedPoints=[n.parseUShort(),n.parseUShort()]:(s&2)>0?(U.dx=n.parseChar(),U.dy=n.parseChar()):U.matchedPoints=[n.parseByte(),n.parseByte()],(s&8)>0?U.xScale=U.yScale=n.parseF2Dot14():(s&64)>0?(U.xScale=n.parseF2Dot14(),U.yScale=n.parseF2Dot14()):(s&128)>0&&(U.xScale=n.parseF2Dot14(),U.scale01=n.parseF2Dot14(),U.scale10=n.parseF2Dot14(),U.yScale=n.parseF2Dot14()),e.components.push(U),E=!!(s&32)}if(s&256){e.instructionLength=n.parseUShort(),e.instructions=[];for(var q=0;qt.points.length-1||n.matchedPoints[1]>s.points.length-1)throw Error("Matched points out of range in "+t.name);var i=t.points[n.matchedPoints[0]],o=s.points[n.matchedPoints[1]],l={xScale:n.xScale,scale01:n.scale01,scale10:n.scale10,yScale:n.yScale,dx:0,dy:0};o=hs([o],l)[0],l.dx=i.x-o.x,l.dy=i.y-o.y,a=hs(s.points,l)}t.points=t.points.concat(a)}}return zl(t.points)}function Eh(e,t,r,n){for(var s=new dt.GlyphSet(n),a=0;a2)){var r=this.font,n=this._prepState;if(!n||n.ppem!==t){var s=this._fpgmState;if(!s){Bt.prototype=Mh,s=this._fpgmState=new Bt("fpgm",r.tables.fpgm),s.funcs=[],s.font=r,exports.DEBUG&&(console.log("---EXEC FPGM---"),s.step=-1);try{rr(s)}catch(c){console.log("Hinting error in FPGM:"+c),this._errorState=3;return}}Bt.prototype=s,n=this._prepState=new Bt("prep",r.tables.prep),n.ppem=t;var a=r.tables.cvt;if(a)for(var i=n.cvt=new Array(a.length),o=t/r.unitsPerEm,l=0;l1))try{return $l(e,n)}catch(c){this._errorState<1&&(console.log("Hinting error:"+c),console.log("Note: further hinting errors are silenced")),this._errorState=1;return}}};$l=function(e,t){var r=t.ppem/t.font.unitsPerEm,n=r,s=e.components,a,i,o;if(Bt.prototype=t,!s)o=new Bt("glyf",e.instructions),exports.DEBUG&&(console.log("---EXEC GLYPH---"),o.step=-1),Ns(e,o,r,n),i=o.gZone;else{var l=t.font;i=[],a=[];for(var c=0;c=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 Ti(e,t){exports.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function Fi(e,t){exports.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function Ci(e,t){exports.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function ki(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z2[n],i=t.z1[s];exports.DEBUG&&console.log("SPVTL["+e+"]",n,s);var o,l;e?(o=a.y-i.y,l=i.x-a.x):(o=i.x-a.x,l=i.y-a.y),t.pv=t.dpv=Qr(o,l)}function Ei(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z2[n],i=t.z1[s];exports.DEBUG&&console.log("SFVTL["+e+"]",n,s);var o,l;e?(o=a.y-i.y,l=i.x-a.x):(o=i.x-a.x,l=i.y-a.y),t.fv=Qr(o,l)}function Ph(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 Dh(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 Bh(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 Nh(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 Gh(e){e.fv=e.pv,exports.DEBUG&&console.log(e.step,"SFVTPV[]")}function Hh(e){var t=e.stack,r=t.pop(),n=t.pop(),s=t.pop(),a=t.pop(),i=t.pop(),o=e.z0,l=e.z1,c=o[r],u=o[n],h=l[s],f=l[a],d=e.z2[i];exports.DEBUG&&console.log("ISECT[], ",r,n,s,a,i);var x=c.x,y=c.y,m=u.x,S=u.y,w=h.x,T=h.y,E=f.x,U=f.y,q=(x-m)*(T-U)-(y-S)*(w-E),N=x*S-y*m,O=w*U-T*E;d.x=(N*(w-E)-O*(x-m))/q,d.y=(N*(T-U)-O*(y-S))/q}function zh(e){e.rp0=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP0[]",e.rp0)}function Vh(e){e.rp1=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP1[]",e.rp1)}function Wh(e){e.rp2=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP2[]",e.rp2)}function Zh(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 $h(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 jh(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 qh(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 Xh(e){e.loop=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SLOOP[]",e.loop)}function Yh(e){exports.DEBUG&&console.log(e.step,"RTG[]"),e.round=ql}function Kh(e){exports.DEBUG&&console.log(e.step,"RTHG[]"),e.round=Rh}function Jh(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SMD[]",t),e.minDis=t/64}function Qh(e){exports.DEBUG&&console.log(e.step,"ELSE[]"),Yl(e,!1)}function ep(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"JMPR[]",t),e.ip+=t-1}function tp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCVTCI[]",t),e.cvCutIn=t/64}function rp(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 np(e){exports.DEBUG&&console.log(e.step,"CLEAR[]"),e.stack.length=0}function sp(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 ap(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DEPTH[]"),t.push(t.length)}function ip(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 i=0;i1?"loop "+(t.loop-o)+": ":"")+"SHP["+(e?"rp1":"rp2")+"]",c)}t.loop=1}function _i(e,t){var r=t.stack,n=e?t.rp1:t.rp2,s=(e?t.z0:t.z1)[n],a=t.fv,i=t.pv,o=r.pop(),l=t.z2[t.contours[o]],c=l;exports.DEBUG&&console.log(t.step,"SHC["+e+"]",o);var u=i.distance(s,s,!1,!0);do c!==s&&a.setRelative(c,c,u,i),c=c.nextPointOnContour;while(c!==l)}function Ri(e,t){var r=t.stack,n=e?t.rp1:t.rp2,s=(e?t.z0:t.z1)[n],a=t.fv,i=t.pv,o=r.pop();exports.DEBUG&&console.log(t.step,"SHZ["+e+"]",o);var l;switch(o){case 0:l=t.tZone;break;case 1:l=t.gZone;break;default:throw new Error("Invalid zone")}for(var c,u=i.distance(s,s,!1,!0),h=l.length-2,f=0;f1?"loop "+(e.loop-r)+": ":"")+"SHPIX[]",i,s),n.setRelative(o,o,s),n.touch(o)}e.loop=1}function hp(e){for(var t=e.stack,r=e.rp1,n=e.rp2,s=e.loop,a=e.z0[r],i=e.z1[n],o=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),o.interpolate(h,a,i,l),o.touch(h)}e.loop=1}function Ai(e,t){var r=t.stack,n=r.pop()/64,s=r.pop(),a=t.z1[s],i=t.z0[t.rp0],o=t.fv,l=t.pv;o.setRelative(a,i,n,l),o.touch(a),exports.DEBUG&&console.log(t.step,"MSIRP["+e+"]",n,s),t.rp1=t.rp0,t.rp2=s,e&&(t.rp0=s)}function pp(e){for(var t=e.stack,r=e.rp0,n=e.z0[r],s=e.loop,a=e.fv,i=e.pv,o=e.z1;s--;){var l=t.pop(),c=o[l];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-s)+": ":"")+"ALIGNRP[]",l),a.setRelative(c,n,0,i),a.touch(c)}e.loop=1}function dp(e){exports.DEBUG&&console.log(e.step,"RTDG[]"),e.round=_h}function Ii(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z0[s],i=t.fv,o=t.pv,l=t.cvt[n];exports.DEBUG&&console.log(t.step,"MIAP["+e+"]",n,"(",l,")",s);var c=o.distance(a,$r);e&&(Math.abs(c-l)",o),t.stack.push(Math.round(o*64))}function Sp(e){exports.DEBUG&&console.log(e.step,"MPPEM[]"),e.stack.push(e.ppem)}function wp(e){exports.DEBUG&&console.log(e.step,"FLIPON[]"),e.autoFlip=!0}function Tp(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LT[]",r,n),t.push(nr?1:0)}function kp(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 Ep(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 Op(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 Up(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 Lp(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 _p(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"IF[]",t),t||(Yl(e,!0),exports.DEBUG&&console.log(e.step,"EIF[]"))}function Rp(e){exports.DEBUG&&console.log(e.step,"EIF[]")}function Ap(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 Ip(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 Mp(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,i=t.ppem,o=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>4);if(d===i){var x=(f&15)-8;x>=0&&x++,exports.DEBUG&&console.log(t.step,"DELTAPFIX",h,"by",x*l);var y=c[h];s.setRelative(y,y,x*l,a)}}}function Pp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDB[]",r),e.deltaBase=r}function Dp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDS[]",r),e.deltaShift=Math.pow(.5,r)}function Bp(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 Np(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 Gp(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 Hp(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 zp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ABS[]",r),t.push(Math.abs(r))}function Vp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NEG[]",r),t.push(-r)}function Wp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"FLOOR[]",r),t.push(Math.floor(r/64)*64)}function Zp(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CEILING[]",r),t.push(Math.ceil(r/64)*64)}function cn(e,t){var r=t.stack,n=r.pop();exports.DEBUG&&console.log(t.step,"ROUND[]"),r.push(t.round(n/64)*64)}function $p(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,i=t.deltaShift;exports.DEBUG&&console.log(t.step,"DELTAC["+e+"]",n,r);for(var o=0;o>4);if(u===s){var h=(c&15)-8;h>=0&&h++;var f=h*i;exports.DEBUG&&console.log(t.step,"DELTACFIX",l,"by",f),t.cvt[l]+=f}}}function jp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SROUND[]",t),e.round=Xl;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 qp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"S45ROUND[]",t),e.round=Xl;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 Xp(e){exports.DEBUG&&console.log(e.step,"ROFF[]"),e.round=Lh}function Yp(e){exports.DEBUG&&console.log(e.step,"RUTG[]"),e.round=Ah}function Kp(e){exports.DEBUG&&console.log(e.step,"RDTG[]"),e.round=Ih}function Jp(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANCTRL[]",t)}function Di(e,t){var r=t.stack,n=r.pop(),s=r.pop(),a=t.z2[n],i=t.z1[s];exports.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",n,s);var o,l;e?(o=a.y-i.y,l=i.x-a.x):(o=i.x-a.x,l=i.y-a.y),t.dpv=Qr(o,l)}function Qp(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 e2(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 t2(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 r2(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 n2(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANTYPE[]",t)}function s2(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 _t(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=0?1:-1,m=Math.abs(m),e&&(w=a.cvt[o],n&&Math.abs(m-w)":"_")+(n?"R":"_")+(s===0?"Gr":s===1?"Bl":s===2?"Wh":"")+"]",e?o+"("+a.cvt[o]+","+w+")":"",l,"(d =",y,"->",S*m,")"),a.rp1=a.rp0,a.rp2=l,t&&(a.rp0=l)}Zl=[Ti.bind(void 0,wt),Ti.bind(void 0,ht),Fi.bind(void 0,wt),Fi.bind(void 0,ht),Ci.bind(void 0,wt),Ci.bind(void 0,ht),ki.bind(void 0,0),ki.bind(void 0,1),Ei.bind(void 0,0),Ei.bind(void 0,1),Ph,Dh,Bh,Nh,Gh,Hh,zh,Vh,Wh,Zh,$h,jh,qh,Xh,Yh,Kh,Jh,Qh,ep,tp,void 0,void 0,rp,ps,np,sp,ap,lp,up,void 0,void 0,void 0,ip,op,cp,void 0,Oi.bind(void 0,0),Oi.bind(void 0,1),Ui.bind(void 0,wt),Ui.bind(void 0,ht),Li.bind(void 0,0),Li.bind(void 0,1),_i.bind(void 0,0),_i.bind(void 0,1),Ri.bind(void 0,0),Ri.bind(void 0,1),fp,hp,Ai.bind(void 0,0),Ai.bind(void 0,1),pp,dp,Ii.bind(void 0,0),Ii.bind(void 0,1),vp,gp,mp,xp,yp,bp,Mi.bind(void 0,0),Mi.bind(void 0,1),void 0,Pi.bind(void 0,0),Pi.bind(void 0,1),Sp,void 0,wp,void 0,void 0,Tp,Fp,Cp,kp,Ep,Op,Up,Lp,_p,Rp,Ap,Ip,Mp,ds.bind(void 0,1),Pp,Dp,Bp,Np,Gp,Hp,zp,Vp,Wp,Zp,cn.bind(void 0,0),cn.bind(void 0,1),cn.bind(void 0,2),cn.bind(void 0,3),void 0,void 0,void 0,void 0,$p,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),jp,qp,void 0,void 0,Xp,void 0,Yp,Kp,ps,ps,void 0,void 0,void 0,void 0,void 0,Jp,Di.bind(void 0,0),Di.bind(void 0,1),Qp,void 0,e2,t2,r2,n2,s2,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,_t.bind(void 0,1),_t.bind(void 0,2),_t.bind(void 0,3),_t.bind(void 0,4),_t.bind(void 0,5),_t.bind(void 0,6),_t.bind(void 0,7),_t.bind(void 0,8),Rt.bind(void 0,1),Rt.bind(void 0,2),Rt.bind(void 0,3),Rt.bind(void 0,4),Rt.bind(void 0,5),Rt.bind(void 0,6),Rt.bind(void 0,7),Rt.bind(void 0,8),Z.bind(void 0,0,0,0,0,0),Z.bind(void 0,0,0,0,0,1),Z.bind(void 0,0,0,0,0,2),Z.bind(void 0,0,0,0,0,3),Z.bind(void 0,0,0,0,1,0),Z.bind(void 0,0,0,0,1,1),Z.bind(void 0,0,0,0,1,2),Z.bind(void 0,0,0,0,1,3),Z.bind(void 0,0,0,1,0,0),Z.bind(void 0,0,0,1,0,1),Z.bind(void 0,0,0,1,0,2),Z.bind(void 0,0,0,1,0,3),Z.bind(void 0,0,0,1,1,0),Z.bind(void 0,0,0,1,1,1),Z.bind(void 0,0,0,1,1,2),Z.bind(void 0,0,0,1,1,3),Z.bind(void 0,0,1,0,0,0),Z.bind(void 0,0,1,0,0,1),Z.bind(void 0,0,1,0,0,2),Z.bind(void 0,0,1,0,0,3),Z.bind(void 0,0,1,0,1,0),Z.bind(void 0,0,1,0,1,1),Z.bind(void 0,0,1,0,1,2),Z.bind(void 0,0,1,0,1,3),Z.bind(void 0,0,1,1,0,0),Z.bind(void 0,0,1,1,0,1),Z.bind(void 0,0,1,1,0,2),Z.bind(void 0,0,1,1,0,3),Z.bind(void 0,0,1,1,1,0),Z.bind(void 0,0,1,1,1,1),Z.bind(void 0,0,1,1,1,2),Z.bind(void 0,0,1,1,1,3),Z.bind(void 0,1,0,0,0,0),Z.bind(void 0,1,0,0,0,1),Z.bind(void 0,1,0,0,0,2),Z.bind(void 0,1,0,0,0,3),Z.bind(void 0,1,0,0,1,0),Z.bind(void 0,1,0,0,1,1),Z.bind(void 0,1,0,0,1,2),Z.bind(void 0,1,0,0,1,3),Z.bind(void 0,1,0,1,0,0),Z.bind(void 0,1,0,1,0,1),Z.bind(void 0,1,0,1,0,2),Z.bind(void 0,1,0,1,0,3),Z.bind(void 0,1,0,1,1,0),Z.bind(void 0,1,0,1,1,1),Z.bind(void 0,1,0,1,1,2),Z.bind(void 0,1,0,1,1,3),Z.bind(void 0,1,1,0,0,0),Z.bind(void 0,1,1,0,0,1),Z.bind(void 0,1,1,0,0,2),Z.bind(void 0,1,1,0,0,3),Z.bind(void 0,1,1,0,1,0),Z.bind(void 0,1,1,0,1,1),Z.bind(void 0,1,1,0,1,2),Z.bind(void 0,1,1,0,1,3),Z.bind(void 0,1,1,1,0,0),Z.bind(void 0,1,1,1,0,1),Z.bind(void 0,1,1,1,0,2),Z.bind(void 0,1,1,1,0,3),Z.bind(void 0,1,1,1,1,0),Z.bind(void 0,1,1,1,1,1),Z.bind(void 0,1,1,1,1,2),Z.bind(void 0,1,1,1,1,3)];function xr(e){this.char=e,this.state={},this.activeState=null}function da(e,t,r){this.contextName=r,this.startIndex=e,this.endOffset=t}function a2(e,t,r){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=r}function Qe(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 i2(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 Te(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],i2.call(this,e)}xr.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState};xr.prototype.getState=function(e){return this.state[e]||null};Te.prototype.inboundIndex=function(e){return e>=0&&e0&&e<=this.lookahead.length):return this.lookahead[e-1];default:return null}};Te.prototype.rangeToText=function(e){if(e instanceof da)return this.getRangeTokens(e).map(function(t){return t.char}).join("")};Te.prototype.getText=function(){return this.tokens.map(function(e){return e.char}).join("")};Te.prototype.getContext=function(e){var t=this.registeredContexts[e];return t||null};Te.prototype.on=function(e,t){var r=this.events[e];return r?r.subscribe(t):null};Te.prototype.dispatch=function(e,t){var r=this,n=this.events[e];n instanceof jn&&n.subscribers.forEach(function(s){s.apply(r,t||[])})};Te.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 a2(e,t,r);return this.registeredContexts[e]=n,this.contextCheckers.push(n),n};Te.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))};Te.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}};Te.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];r.ranges=[]}};Te.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map(function(n){return n.char}),t=0;t=s.start&&e<=s.end){var a=e-s.start;return s.index+a}}break;default:return-1}return-1}function l2(e,t){var r=en(e,t.coverage);return r===-1?null:e+t.deltaGlyphId}function u2(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=0;r--){var n=t[r],s=Kl(n),a=zt(n);if(!s&&!a)return!0;if(s)return!1}return!1}function F2(e){if(Kl(e.current))return!1;for(var t=0;t0}r("fontFamily"),r("weightName"),r("manufacturer"),r("copyright"),r("version"),this.unitsPerEm>0};xe.prototype.toTables=function(){return wh.fontToTable(this)};xe.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()};xe.prototype.toArrayBuffer=function(){for(var e=this.toTables(),t=e.encode(),r=new ArrayBuffer(t.length),n=new Uint8Array(r),s=0;s=1.2&&(s.markGlyphSets=r.parsePointer(j2)),s}var X2={parse:q2},et=new Array(10);et[1]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();if(r===1)return{posFormat:1,coverage:this.parsePointer(b.coverage),value:this.parseValueRecord()};if(r===2)return{posFormat:2,coverage:this.parsePointer(b.coverage),values:this.parseValueRecordList()};K.assert(!1,"0x"+t.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};et[2]=function(){var t=this.offset+this.relativeOffset,r=this.parseUShort();K.assert(r===1||r===2,"0x"+t.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(b.coverage),s=this.parseUShort(),a=this.parseUShort();if(r===1)return{posFormat:r,coverage:n,valueFormat1:s,valueFormat2:a,pairSets:this.parseList(b.pointer(b.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(s),value2:this.parseValueRecord(a)}})))};if(r===2){var i=this.parsePointer(b.classDef),o=this.parsePointer(b.classDef),l=this.parseUShort(),c=this.parseUShort();return{posFormat:r,coverage:n,valueFormat1:s,valueFormat2:a,classDef1:i,classDef2:o,class1Count:l,class2Count:c,classRecords:this.parseList(l,b.list(c,function(){return{value1:this.parseValueRecord(s),value2:this.parseValueRecord(a)}}))}}};et[3]=function(){return{error:"GPOS Lookup 3 not supported"}};et[4]=function(){return{error:"GPOS Lookup 4 not supported"}};et[5]=function(){return{error:"GPOS Lookup 5 not supported"}};et[6]=function(){return{error:"GPOS Lookup 6 not supported"}};et[7]=function(){return{error:"GPOS Lookup 7 not supported"}};et[8]=function(){return{error:"GPOS Lookup 8 not supported"}};et[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function Y2(e,t){t=t||0;var r=new b(e,t),n=r.parseVersion(1);return K.argument(n===1||n===1.1,"Unsupported GPOS table version "+n),n===1?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(et)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(et),variations:r.parseFeatureVariationsList()}}var K2=new Array(10);function J2(e){return new H.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new H.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new H.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new H.LookupList(e.lookups,K2)}])}var Q2={parse:Y2,make:J2};function ed(e){var t={};e.skip("uShort");var r=e.parseUShort();K.argument(r===0,"Unsupported kern sub-table version."),e.skip("uShort",2);var n=e.parseUShort();e.skip("uShort",3);for(var s=0;s1&&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 i=0;i0&&t&&t(Math.round(o/s*100))}const l=i.reduce((h,f)=>h+f.length,0),c=new Uint8Array(l);let u=0;for(const h of i)c.set(h,u),u+=h.length;return od(c.buffer)}catch(r){throw new Error(`Failed to load font from ${e}: ${r}`)}}const yr=il("font",()=>{function e(_){try{const z=localStorage.getItem(_);if(!z)return new Set;const B=JSON.parse(z);return Array.isArray(B)?new Set(B.map(String)):new Set}catch{return new Set}}function t(_,z){try{localStorage.setItem(_,JSON.stringify(Array.from(z)))}catch{}}const r=be([]),n=be(new Set),s=be(e("font.favoriteFontIds")),a=be(e("font.previewFontIds")),i=be(e("font.expandedCategories")),o=be([]),l=be(!1),c=new Map,u=ve(()=>r.value.filter(_=>n.value.has(_.id))),h=ve(()=>r.value.filter(_=>s.value.has(_.id))),f=ve(()=>r.value.filter(_=>a.value.has(_.id))),d=ve(()=>ae(h.value));function x(_){r.value.push(_)}function y(_){const z=r.value.findIndex(B=>B.id===_);z!==-1&&r.value.splice(z,1),n.value.delete(_),s.value.delete(_),t("font.favoriteFontIds",s.value),a.value.delete(_),t("font.previewFontIds",a.value)}function m(_){n.value.add(_)}function S(_){n.value.delete(_)}function w(_){n.value.has(_)?S(_):m(_)}function T(){n.value.clear()}function E(_){const z=r.value.find(B=>B.id===_);z&&(z.isFavorite=!0,s.value.add(_),t("font.favoriteFontIds",s.value))}function U(_){const z=r.value.find(B=>B.id===_);z&&(z.isFavorite=!1,s.value.delete(_),t("font.favoriteFontIds",s.value))}function q(_){s.value.has(_)?U(_):E(_)}function N(_){a.value.add(_),t("font.previewFontIds",a.value)}function O(_){a.value.delete(_),t("font.previewFontIds",a.value)}function R(_){a.value.has(_)?O(_):N(_)}function V(){a.value.clear(),t("font.previewFontIds",a.value)}function Q(_,z){const B=new Set(i.value);z?B.add(_):B.delete(_),i.value=B,t("font.expandedCategories",i.value)}async function ne(_){if(_.loaded||!_.path)return;const z=c.get(_.id);if(z){await z;return}const B=(async()=>{try{const W=await ld(_.path,se=>{_.progress=se});_.font=W,_.loaded=!0,_.progress=100}catch(W){throw console.error(`Failed to load font ${_.name}:`,W),W}finally{c.delete(_.id)}})();c.set(_.id,B),await B}function ae(_){const z=[],B=new Map;for(const W of _){let se=B.get(W.category);se||(se={name:W.category,type:"category",children:[],expanded:i.value.has(W.category),selected:!1},B.set(W.category,se),z.push(se));const ge={name:W.name,type:"font",fontInfo:W,expanded:!1,selected:n.value.has(W.id)};se.children.push(ge)}z.sort((W,se)=>W.name.localeCompare(se.name,"zh-CN"));for(const W of z)W.children&&W.children.sort((se,ge)=>se.name.localeCompare(ge.name,"zh-CN"));return z}function ie(){o.value=ae(r.value)}return{fonts:r,selectedFontIds:n,favoriteFontIds:s,previewFontIds:a,expandedCategoryNames:i,fontTree:o,isLoadingFonts:l,selectedFonts:u,favoriteFonts:h,previewFonts:f,favoriteTree:d,addFont:x,removeFont:y,selectFont:m,unselectFont:S,toggleSelectFont:w,clearSelection:T,favoriteFont:E,unfavoriteFont:U,toggleFavorite:q,addToPreview:N,removeFromPreview:O,togglePreview:R,clearPreview:V,setCategoryExpanded:Q,loadFont:ne,updateFontTree:ie}});function ud(){const e=yr();async function t(){const n=["/frontend/public/fonts.json","/fonts.json"],s=[];for(const a of n){const i=`${a}?_ts=${Date.now()}`;try{console.log(`Fetching ${i}...`);const o=await fetch(i,{cache:"no-store"});if(console.log(`${a} response:`,o.status,o.statusText),!o.ok){s.push(`${a}: HTTP ${o.status}`);continue}const l=await o.json();if(!Array.isArray(l)){s.push(`${a}: JSON 不是数组`);continue}return l}catch(o){s.push(`${a}: ${o instanceof Error?o.message:String(o)}`)}}throw new Error(s.join(" | "))}async function r(){console.log("Starting to load font list..."),e.isLoadingFonts=!0;try{const n=await t();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(n){console.error("Failed to load font list:",n),alert(`加载字体列表失败:${n instanceof Error?n.message:"未知错误"}`)}finally{e.isLoadingFonts=!1,console.log("Font loading finished")}}return Uo(()=>{console.log("useFontLoader: onMounted called"),r()}),{loadFontList:r}}const Ql=il("ui",()=>{function e(R){return Math.max(10,Math.min(500,R))}const t=(()=>{try{const R=localStorage.getItem("ui.fontSize"),V=R?Number(R):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 R=localStorage.getItem("ui.selectedExportItems");return R?JSON.parse(R):[]}catch{return[]}})(),a=be(r),i=be(t),o=be(n),l=be(0),c=be(!0),u=be(s),h=be(!1),f=be(!0),d=be(!0);function x(R){a.value=R;try{localStorage.setItem("ui.inputText",R)}catch{}}function y(R){const V=e(R);i.value=V;try{localStorage.setItem("ui.fontSize",String(V))}catch{}}function m(R){o.value=R;try{localStorage.setItem("ui.textColor",R)}catch{}}function S(R){l.value=R}function w(){c.value=!c.value}function T(R){const V=u.value.findIndex(Q=>Q.fontInfo.id===R.fontInfo.id);V>=0?u.value.splice(V,1):u.value.push(R);try{localStorage.setItem("ui.selectedExportItems",JSON.stringify(u.value))}catch{}}function E(R){const V=u.value.filter(Q=>R.has(Q.fontInfo.id));if(V.length!==u.value.length){u.value=V;try{localStorage.setItem("ui.selectedExportItems",JSON.stringify(u.value))}catch{}}}function U(){u.value=[];try{localStorage.setItem("ui.selectedExportItems",JSON.stringify([]))}catch{}}function q(R){u.value=[...R];try{localStorage.setItem("ui.selectedExportItems",JSON.stringify(u.value))}catch{}}function N(){f.value=!f.value}function O(){d.value=!d.value}return{inputText:a,fontSize:i,textColor:o,letterSpacing:l,enableLigatures:c,selectedExportItems:u,isExporting:h,isFontSelectorExpanded:f,isFavoritesExpanded:d,setInputText:x,setFontSize:y,setTextColor:m,setLetterSpacing:S,toggleLigatures:w,toggleExportItem:T,retainExportItemsByFontIds:E,clearExportSelection:U,selectAllExportItems:q,toggleFontSelectorExpanded:N,toggleFavoritesExpanded:O}}),tr=45;function zi(e){return e.replace(/\r\n?/g,` `)}function Vi(e,t=tr){if(t<=0)return zi(e);const n=zi(e).split(` `),s=[];for(const a of n){const i=Array.from(a);if(i.length===0){s.push("");continue}for(let o=0;o(t.searchKeyword??"").trim().toLowerCase()),s=ve(()=>n.value.length>0),a=ve(()=>s.value||t.selectedOnly===!0);function i(w){if(w.type!=="category"||!w.children)return[];const T=w.children.filter(q=>q.type==="font"&&!!q.fontInfo),E=t.selectedOnly?T.filter(q=>r.previewFontIds.has(q.fontInfo.id)):T;if(!s.value)return E;const U=n.value;return w.name.toLowerCase().includes(U)?E:E.filter(q=>q.name.toLowerCase().includes(U))}function o(w){return w.type==="category"&&i(w).length>0}function l(w){return a.value?!0:!!w.expanded}function c(w){if(a.value)return;const T=!w.expanded;w.expanded=T,r.setCategoryExpanded(w.name,T)}function u(w,T){T.stopPropagation(),w.type==="font"&&w.fontInfo&&r.togglePreview(w.fontInfo.id)}function h(w,T){T.stopPropagation(),w.type==="font"&&w.fontInfo&&r.toggleFavorite(w.fontInfo.id)}function f(w){return w.type==="font"&&w.fontInfo?r.favoriteFontIds.has(w.fontInfo.id):!1}function d(w){return w.type==="font"&&w.fontInfo?r.previewFontIds.has(w.fontInfo.id):!1}function x(w){return i(w).map(T=>T.fontInfo.id)}function y(w){return i(w).length}function m(w){const T=x(w);return T.length>0&&T.every(E=>r.previewFontIds.has(E))}function S(w,T){T.stopPropagation();const E=x(w);E.length!==0&&(m(w)?E.forEach(U=>r.removeFromPreview(U)):E.forEach(U=>r.addToPreview(U)))}return(w,T)=>(ue(),he("div",hd,[(ue(!0),he(De,null,Tn(e.nodes,E=>(ue(),he("div",{key:E.name},[o(E)?(ue(),he("div",pd,[P("div",dd,[P("div",vd,[P("button",{onClick:U=>c(E),class:"tree-toggle",disabled:a.value},[l(E)?(ue(),he("img",{key:0,src:cd,alt:"收起",class:ft(["w-[15px] h-[15px]",{"opacity-70":a.value}])},null,2)):(ue(),he("img",md))],8,gd)]),P("div",{onClick:U=>c(E),class:ft(["text-base font-medium text-black flex-1 ml-2",a.value?"cursor-default":"cursor-pointer"])},Xe(E.name)+"("+Xe(y(E))+"字体) ",11,xd),P("div",yd,[P("button",{onClick:U=>S(E,U),class:"w-4 h-4 shrink-0 p-0 border-0 bg-transparent cursor-pointer hover:opacity-85 transition-opacity",title:"分类全选/全不选"},[P("img",{src:m(E)?Ue(Hs):Ue(Gs),alt:"分类全选/全不选",class:"w-full h-full"},null,8,Sd)],8,bd),T[0]||(T[0]=P("div",{class:"w-[18px] h-[17px] shrink-0","aria-hidden":"true"},null,-1))])]),l(E)&&i(E).length>0?(ue(),he("div",wd)):Kt("",!0),l(E)&&i(E).length>0?(ue(),he("div",Td,[(ue(!0),he(De,null,Tn(i(E),U=>(ue(),he("div",{key:U.name,class:"flex items-center gap-2 border-b border-[#c9cdd4] pb-2 relative"},[T[1]||(T[1]=P("div",{class:"tree-horizontal-line"},null,-1)),T[2]||(T[2]=P("div",{class:"w-4 h-4 shrink-0 ml-[17px]"},[P("img",{src:e0,alt:"font",class:"w-full h-full"})],-1)),P("div",Fd,Xe(U.name),1),P("button",{onClick:q=>u(U,q),class:ft(["w-[18px] h-[18px] shrink-0 border rounded-full flex items-center justify-center p-0 bg-transparent",d(U)?"bg-[#9b6bc2] border-[#9b6bc2]":"border-[#c9cdd4]"])},[d(U)?(ue(),he("img",kd)):Kt("",!0)],10,Cd),P("button",{onClick:q=>h(U,q),class:"w-[18px] h-[17px] shrink-0 p-0 border-0 bg-transparent"},[P("img",{src:t0,alt:"收藏",class:ft(["w-full h-full",f(U)?"favorite-active":""])},null,2)],8,Ed)]))),128))])):Kt("",!0)])):Kt("",!0)]))),128))]))}}),qn=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Ud=qn(Od,[["__scopeId","data-v-1709e607"]]),Ld="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",_d={class:"space-y-2 pb-1"},Rd={class:"sticky top-0 z-10 bg-white pt-1 pb-1"},Ad={class:"flex items-center gap-3"},Id={class:"flex-1 min-w-0"},Md={class:"h-8 rounded-[10px] bg-[#F3EDF7] pl-2 flex items-center"},Pd={type:"button",class:"w-8 h-8 shrink-0 p-0 border-0 bg-transparent flex items-center justify-center","aria-hidden":"true"},Dd=["src"],Bd={key:0,class:"text-sm text-gray-500 text-center py-8"},Nd=qr({__name:"FontSelector",setup(e){const t=yr(),r=be(""),n=ve(()=>t.fontTree),s=ve(()=>r.value.trim().toLowerCase()),a=ve(()=>{const u=s.value;return u.includes("选中")||u.includes("选择")||u.includes("已选")||u.includes("xuan")}),i=ve(()=>a.value?"":s.value),o=ve(()=>s.value.length>0);function l(u){if(u.type!=="category")return!1;const h=(u.children??[]).filter(x=>x.type==="font"&&!!x.fontInfo),f=a.value?h.filter(x=>!!x.fontInfo&&t.previewFontIds.has(x.fontInfo.id)):h;if(i.value.length===0)return f.length>0;const d=i.value;return u.name.toLowerCase().includes(d)?f.length>0:f.some(x=>x.name.toLowerCase().includes(d))}const c=ve(()=>o.value?n.value.some(u=>l(u)):n.value.length>0);return(u,h)=>(ue(),he("div",_d,[P("div",Rd,[P("div",Ad,[h[1]||(h[1]=P("div",{class:"text-[16px] leading-none text-black font-bold shrink-0"}," 选择预览字体 ",-1)),P("div",Id,[P("div",Md,[pn(P("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),[[Tc,r.value]]),P("button",Pd,[P("img",{src:Ue(Ld),alt:"",class:"w-[24px] h-[24px]"},null,8,Dd)])])])])]),c.value?(ue(),Xo(Ud,{key:1,nodes:n.value,"search-keyword":i.value,"selected-only":a.value},null,8,["nodes","search-keyword","selected-only"])):(ue(),he("div",Bd,Xe(o.value?"未找到匹配字体":"暂无字体"),1))]))}}),Gd={class:"space-y-2"},Hd={key:0,class:"text-sm text-gray-500 text-center py-8"},zd={key:1,class:"flex flex-col gap-3 favorite-indent"},Vd={class:"flex-1 text-xs text-[#86909c]"},Wd=["onClick"],Zd={key:0,src:ma,alt:"选中",class:"w-[11px] h-[9px]"},$d=["onClick"],jd=qr({__name:"FavoritesList",setup(e){const t=yr(),r=ve(()=>t.favoriteFonts);function n(o,l){l.stopPropagation(),t.togglePreview(o)}function s(o,l){l.stopPropagation(),t.toggleFavorite(o)}function a(o){return t.favoriteFontIds.has(o)}function i(o){return t.previewFontIds.has(o)}return(o,l)=>(ue(),he("div",Gd,[r.value.length===0?(ue(),he("div",Hd," 暂无收藏字体 ")):(ue(),he("div",zd,[(ue(!0),he(De,null,Tn(r.value,c=>(ue(),he("div",{key:c.id,class:"flex items-center gap-2 border-b border-[#c9cdd4] pb-2"},[l[0]||(l[0]=P("div",{class:"w-4 h-4 shrink-0"},[P("img",{src:e0,alt:"font",class:"w-full h-full"})],-1)),P("div",Vd,Xe(c.name),1),P("button",{onClick:u=>n(c.id,u),class:ft(["w-[18px] h-[18px] shrink-0 border rounded-full flex items-center justify-center p-0 bg-transparent",i(c.id)?"bg-[#9b6bc2] border-[#9b6bc2]":"border-[#c9cdd4]"])},[i(c.id)?(ue(),he("img",Zd)):Kt("",!0)],10,Wd),P("button",{onClick:u=>s(c.id,u),class:"w-[18px] h-[17px] shrink-0 p-0 border-0 bg-transparent"},[P("img",{src:t0,alt:"收藏",class:ft(["w-full h-full",a(c.id)?"favorite-active":""])},null,2)],8,$d)]))),128))]))]))}}),qd=qn(jd,[["__scopeId","data-v-e8bbd3fa"]]),Xd="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",Yd="/api/render-svg",Kd=3e4;function Jd(){if(typeof window<"u"){const e=window.__FONT2SVG_API_URL__;if(typeof e=="string"&&e.trim())return e.trim()}return Yd}function Qd(e){if(!e||typeof e!="object")throw new Error("渲染服务返回格式无效");const t=typeof e.svg=="string"?e.svg:"";if(!t.trim())throw new Error("渲染服务未返回有效 SVG");return{svg:t,width:Number(e.width)||0,height:Number(e.height)||0,fontName:e.fontName||"Unknown",fontId:e.fontId||""}}function e1(e){const t=String(e.fontId||"").trim(),r=String(e.text||"");if(!t)throw new Error("缺少字体 ID");if(!r.trim())throw new Error("文本内容不能为空");return{fontId:t,text:r,fontSize:Number(e.fontSize)||120,fillColor:e.fillColor||"#000000",letterSpacing:Number(e.letterSpacing)||0,maxCharsPerLine:Number(e.maxCharsPerLine)||tr}}async function r0(e){const t=e1(e),r=new AbortController,n=setTimeout(()=>r.abort(),Kd);let s;try{s=await fetch(Jd(),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t),signal:r.signal})}catch(i){throw i instanceof DOMException&&i.name==="AbortError"?new Error("渲染服务请求超时"):new Error(`渲染服务请求失败:${i instanceof Error?i.message:String(i)}`)}finally{clearTimeout(n)}let a=null;try{a=await s.json()}catch{a=null}if(!s.ok){const i=a&&typeof a.error=="string"&&a.error.trim()?a.error:`渲染服务请求失败(HTTP ${s.status})`;throw new Error(i)}if(!a||!a.ok)throw new Error(a&&a.error||"渲染服务返回错误");return Qd(a.data)}const t1=Object.freeze(Object.defineProperty({__proto__:null,renderSvgByApi:r0},Symbol.toStringTag,{value:"Module"})),r1={class:"flex flex-col gap-2"},n1={key:0,class:"text-[#86909c] text-center py-20"},s1={key:1,class:"flex flex-col gap-2"},a1={class:"flex items-center gap-[8px] border-b border-[#c9cdd4] pb-[8px] pr-[8px]"},i1={class:"flex-1 text-xs text-[#86909c]"},o1=["onClick"],l1={key:0,src:ma,alt:"选中",class:"w-[11px] h-[9px]"},u1=["onClick"],c1=["innerHTML"],f1={key:0,class:"text-xs text-[#86909c] text-center py-2"},h1=240,p1=4,d1=600,fn=20,v1=10,Cr=120,g1=qr({__name:"SvgPreview",setup(e,{expose:t}){const r=yr(),n=Ql(),s=be([]),a=be(!1),i=be(!1),o=be([]),l=be(0),c=be(0),u=be(null),h=ve(()=>r.previewFonts),f=ve(()=>n.inputText),d=ve(()=>n.fontSize),x=ve(()=>n.textColor);let y=null,m=0,S=!1,w=null;const T=new Map,E=ve(()=>s.value.length>0&&s.value.every(p=>p.selected)),U=ve(()=>c.values.value.slice(0,c.value)),N=ve(()=>!U.value||q.value.length<=0?-1:Math.max(0,q.value.length-v1));function O(p){return p!==m}function R(p=!0){if(y!==null&&(clearTimeout(y),y=null),!p){Lt();return}y=setTimeout(()=>{y=null,Lt()},h1)}function V(p){let g=p.parentElement;for(;g;){const C=window.getComputedStyle(g).overflowY;if((C==="auto"||C==="scroll")&&g.scrollHeight>g.clientHeight)return g;g=g.parentElement}return null}function Q(){w&&(w.disconnect(),w=null)}function ne(){if(Q(),!U.value||!u.value)return;const p=V(u.value);w=new IntersectionObserver(g=>{g.some(C=>C.isIntersecting)&&tn()},{root:p,threshold:.01}),w.observe(u.value)}function ae(p,g){g===N.value&&(u.value=p instanceof HTMLElement?p:null)}function ie(p,g="#000000"){const F=String(p||"").trim();return/^#[0-9a-fA-F]{6}$/.test(F)?F:g}function _(p,g=Cr){return Number.isFinite(p)?Math.max(1,Math.min(2048,Math.round(p))):g}function z(p){return Number(p).toFixed(2).replace(/\.?0+$/,"")}function B(p,g){const F=ie(g);return p?/]*\sfill="[^"]*"/.test(p)?p.replace(/(]*\sfill=")[^"]*(")/,`$1${F}$2`):p.replace(/]*)>/,``):""}function W(p,g){return!p||!Number.isFinite(g)||g<=0?p:p.replace(/width="([0-9]+(?:\.[0-9]+)?)"/,(F,C)=>{const k=Number(C)*g;return`width="${z(k)}"`}).replace(/height="([0-9]+(?:\.[0-9]+)?)"/,(F,C)=>{const k=Number(C)*g;return`height="${z(k)}"`})}function se(p,g,F,C){const k=Number.isFinite(F)?F.toFixed(4):"0.0000";return[p,k,String(C),g].join("::")}function ge(p){return se(p.id,String(f.value||""),Number(n.letterSpacing)||0,tr)}function oe(p){const g=T.get(p);return g?(T.delete(p),T.set(p,g),g):null}function ce(p,g){for(T.has(p)&&T.delete(p),T.set(p,g);T.size>d1;){const F=T.keys().next().value;if(F===void 0)break;T.delete(F)}}function Ut(p){const g=_(Number(d.value),Cr),F=Number(p.renderFontSize)>0?Number(p.renderFontSize):Cr,C=g/F;return{svg:W(B(p.baseSvg,x.value),C),width:Number(p.baseWidth)>0?Number(p.baseWidth)*C:0,height:Number(p.baseHeight)>0?Number(p.baseHeight)*C:0,fontName:p.svgResult.fontName||p.fontInfo.name}}function sr(p){return{...p,svgResult:Ut(p)}}function br(){s.value.length!==0&&(s.value=s.value.map(p=>sr(p)))}async function je(p){const g=ge(p),F=oe(g);if(F)return F;const C=await r0({fontId:p.id,text:f.value,fontSize:Cr,fillColor:"#000000",letterSpacing:Number(n.letterSpacing)||0,maxCharsPerLine:tr}),k={svg:C.svg,width:C.width,height:C.height,fontName:C.fontName||p.name,renderFontSize:Cr};return ce(g,k),k}async function mt(p,g,F,C){const k=Math.min(g+F,p.length),M=p.slice(g,k);if(M.length===0)return[];const I=new Set(n.selectedExportItems.map(j=>j.fontInfo.id)),A=new Array(M.length).fill(null),L=Math.min(p1,M.length);let X=0;const G=async()=>{for(;;){if(O(C))return;const j=X;if(X+=1,j>=M.length)return;const Y=M[j];if(Y)try{const te=await je(Y);if(!te||O(C))continue;const de={fontInfo:Y,selected:I.has(Y.id),baseSvg:te.svg,baseWidth:te.width,baseHeight:te.height,renderFontSize:te.renderFontSize,svgResult:{svg:"",width:0,height:0,fontName:te.fontName||Y.name}};A[j]=sr(de)}catch(te){console.error(`Failed to render preview for ${Y.name}:`,te)}}};return await Promise.all(Array.from({length:L},()=>G())),O(C)?[]:A.filter(j=>j!==null)}async function qe(p){if(i.value||O(p))return;const g=l.value;if(!(g>=o.value.length)){i.value=!0;try{const F=await mt(o.value,g,fn,p);if(O(p))return;l.value=Math.min(g+fn,o.value.length),s.value=[...s.value,...F],c.value=Math.min(c.value+fn,s.value.length)}catch(F){console.error("Failed to load preview batch:",F)}finally{O(p)||(i.value=!1)}}}async function tn(){const p=m;if(!(i.value||O(p))){if(c.valueC.id));if(n.retainExportItemsByFontIds(F),o.value=g,l.value=0,s.value=[],c.value=0,!f.value||f.value.trim()===""||g.length===0){a.value=!1;return}a.value=!0;try{await qe(p)}catch(C){console.error("Failed to regenerate previews:",C)}finally{O(p)||(a.value=!1)}}Qt([h,f,()=>n.letterSpacing],()=>{R(S),S=!0},{immediate:!0}),Qt([d,x],()=>{br()}),Qt([N,U],async()=>{u.value=null,await ea(),ne()},{immediate:!0}),Lo(()=>{y!==null&&(clearTimeout(y),y=null),Q(),m+=1});function Yn(p){p.selected=!p.selected,n.toggleExportItem(p)}function v(){if(s.value.length!==0){if(E.value){n.clearExportSelection(),s.value.forEach(p=>{p.selected=!1});return}s.value.forEach(p=>{p.selected=!0}),n.selectAllExportItems(s.value)}}return t({toggleSelectAllPreviewItems:v}),(p,g)=>(ue(),he("div",r1,[s.value.length===0?(ue(),he("div",n1,Xe(a.value?"生成预览中...":"请选择字体并输入内容"),1)):(ue(),he("div",s1,[(ue(!0),he(De,null,Tn(q.value,(F,C)=>(ue(),he("div",{key:F.fontInfo.id,ref_for:!0,ref:k=>ae(k,C),class:"flex flex-col gap-2"},[P("div",a1,[g[0]||(g[0]=P("div",{class:"w-[24px] h-[24px] shrink-0"},[P("img",{src:Xd,alt:"字体",class:"w-full h-full"})],-1)),P("div",i1,Xe(F.fontInfo.name),1),P("button",{onClick:k=>Yn(F),class:ft(["w-[18px] h-[18px] shrink-0 border rounded-full flex items-center justify-center p-0 bg-transparent",F.selected?"bg-[#9b6bc2] border-[#9b6bc2]":"border-[#c9cdd4]"])},[F.selected?(ue(),he("img",l1)):Kt("",!0)],10,o1)]),P("div",{onClick:k=>Yn(F),class:"bg-white px-[8px] py-[8px] cursor-pointer"},[P("div",{innerHTML:F.svgResult.svg,class:"svg-preview-container"},null,8,c1)],8,u1)]))),128)),U.value?(ue(),he("div",f1,Xe(i.value?"加载中...":`继续下滑加载更多(${q.value.length}/${o.value.length})`),1)):Kt("",!0)]))]))}}),m1=qn(g1,[["__scopeId","data-v-db8834e1"]]),x1={class:"w-screen h-screen box-border p-8px bg-white flex flex-col overflow-hidden"},y1={class:"flex gap-2 items-center shrink-0 h-24 px-2 py-1"},b1={class:"flex items-center gap-3 px-2 shrink-0 relative",style:{width:"280px",height:"32px"}},S1={class:"flex-1 h-6 flex items-center relative"},w1=["value"],T1={class:"text-[#8552A1] text-[12px] font-medium text-center w-6"},F1={class:"shrink-0 relative w-9 h-9"},C1={class:"w-full h-full flex items-center justify-center cursor-pointer"},k1=["value"],E1={class:"flex-1 min-w-[80px] bg-[#f7f8fa] rounded-lg px-2 py-1 h-12"},O1=["value"],U1={class:"flex items-center gap-1 shrink-0 border border-[#8552A1] rounded-lg px-1 py-1 bg-[#f7f8fa] shadow-sm"},L1={class:"flex-1 flex gap-2 min-h-0 overflow-hidden px-2"},_1={class:"flex flex-col gap-2 shrink-0 overflow-hidden",style:{"flex-basis":"400px","max-width":"480px","min-width":"320px"}},R1={class:"flex-[2] border border-solid border-[#f7e0e0] rounded-lg p-1.5 flex flex-col gap-2 overflow-hidden min-h-0"},A1={class:"scrollbar-hover flex-1 overflow-y-auto overflow-x-hidden pr-2"},I1={class:"border border-solid border-[#f7e0e0] rounded-lg p-1.5 flex flex-col gap-2 flex-1 overflow-hidden min-h-[120px]"},M1={class:"flex items-center pr-[9px]"},P1={class:"text-base text-black shrink-0 leading-none flex-1"},D1=["src"],B1={class:"scrollbar-hover flex-1 overflow-y-auto overflow-x-hidden pr-2"},N1={class:"flex-1 border border-solid border-[#f7e0e0] rounded-lg p-1.5 flex flex-col gap-2 overflow-hidden min-w-0"},G1={class:"flex items-center pr-[9px]"},H1=["src"],z1={class:"scrollbar-hover flex-1 min-h-0 py-2 overflow-y-auto overflow-x-hidden"},V1=qr({__name:"App",setup(e){console.log("App.vue: script setup running...");const t=Ql(),r=yr(),n=be(null),s=ve(()=>{const y=(t.fontSize-10)/490*100;return Math.max(0,Math.min(100,y))}),a=ve(()=>{const y=r.previewFonts.map(S=>S.id);if(y.length===0)return!1;const m=new Set(t.selectedExportItems.map(S=>S.fontInfo.id));return y.every(S=>m.has(S))}),i=ve(()=>{const y=r.favoriteFonts.map(m=>m.id);return y.length===0?!1:y.every(m=>r.previewFontIds.has(m))}),o=ve(()=>r.favoriteFonts.length);try{ud(),console.log("App.vue: useFontLoader called successfully")}catch(y){console.error("App.vue: Error in useFontLoader:",y)}const l=Vi(t.inputText,tr);l!==t.inputText&&t.setInputText(l);async function c(y){t.retainExportItemsByFontIds(r.previewFontIds);const m=t.selectedExportItems,S=t.inputText.trim();if(m.length===0){alert("请选择需要导出的效果");return}if(!S){alert("请输入要导出的文字");return}try{const{renderSvgByApi:w}=await ri(async()=>{const{renderSvgByApi:V}=await Promise.resolve().then(()=>t1);return{renderSvgByApi:V}},void 0),{convertSvgToPngBlob:T,downloadSvg:E,downloadMultipleFiles:U,downloadPngFromSvg:q,generatePngFilename:N,generateSvgFilename:O}=await ri(async()=>{const{convertSvgToPngBlob:V,downloadSvg:Q,downloadMultipleFiles:ne,downloadPngFromSvg:ae,generatePngFilename:ie,generateSvgFilename:_}=await import("./download-CIoIfzj1.js");return{convertSvgToPngBlob:V,downloadSvg:Q,downloadMultipleFiles:ne,downloadPngFromSvg:ae,generatePngFilename:ie,generateSvgFilename:_}},[]),R=async V=>w({fontId:V,text:S,fontSize:t.fontSize,fillColor:t.textColor,letterSpacing:Number(t.letterSpacing)||0,maxCharsPerLine:tr});if(m.length===1){const Q=m[0]?.fontInfo?.id;if(!Q){alert("选中字体信息无效,请重新选择后重试");return}const ne=await R(Q);if(y==="svg"){const ae=O(S,ne.fontName);E(ne.svg,ae)}else{const ae=N(S,ne.fontName);await q(ne.svg,ae,{width:ne.width,height:ne.height})}}else{const V=[];for(const Q of m)try{const ne=Q?.fontInfo?.id;if(!ne){console.warn("发现无效字体项,已跳过");continue}const ae=await R(ne);if(y==="svg"){const ie=O(S,ae.fontName);V.push({name:ie,content:ae.svg})}else{const ie=N(S,ae.fontName),_=await T(ae.svg,{width:ae.width,height:ae.height});V.push({name:ie,content:_})}}catch(ne){console.warn(`字体 ${Q.fontInfo.name} 导出失败:`,ne)}V.length>0?await U(V,y==="svg"?"font2svg-svg-export.zip":"font2svg-png-export.zip"):alert(`所有字体${y.toUpperCase()}导出都失败了`)}}catch(w){console.error("导出失败:",w),alert(`导出失败: ${w instanceof Error?w.message:"未知错误"}`)}}function u(y){t.setFontSize(y)}function h(y){const m=y.target,S=Number(m.value);Number.isNaN(S)||t.setFontSize(S)}function f(y){const m=y.target,S=Vi(m.value,tr);S!==m.value&&(m.value=S),t.setInputText(S)}function d(){n.value?.toggleSelectAllPreviewItems()}function x(){const y=r.favoriteFonts.map(m=>m.id);if(y.length!==0){if(i.value){y.forEach(m=>r.removeFromPreview(m));return}y.forEach(m=>r.addToPreview(m))}}return console.log("App.vue: script setup completed"),(y,m)=>{const S=vu("overflow-aware");return ue(),he("div",x1,[P("div",y1,[m[11]||(m[11]=P("div",{class:"w-12 h-12 rounded-xl overflow-hidden shrink-0"},[P("img",{src:Dc,alt:"logo",class:"w-full h-full object-cover"})],-1)),m[12]||(m[12]=P("div",{class:"shrink-0 max-w-[225px] min-w-[120px]",style:{height:"72px"}},[P("img",{src:Bc,alt:"星程SVG文字生成 TEXT to SVG",class:"w-full h-full object-contain"})],-1)),P("div",b1,[P("button",{onClick:m[0]||(m[0]=w=>u(Ue(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:"减小字体"},[...m[5]||(m[5]=[P("img",{src:Nc,alt:"A-",class:"w-4 h-4 object-contain"},null,-1)])]),P("div",S1,[P("input",{type:"range",min:"10",max:"500",step:"1",value:Ue(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,w1),P("div",{class:"absolute pointer-events-none -top-4",style:Dr({left:`calc(${s.value}% - 7px)`})},[P("div",T1,Xe(Ue(t).fontSize),1)],4)]),P("button",{onClick:m[1]||(m[1]=w=>u(Ue(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:"增大字体"},[...m[6]||(m[6]=[P("img",{src:Gc,alt:"A+",class:"w-6 h-6 object-contain"},null,-1)])])]),P("div",F1,[P("label",C1,[m[7]||(m[7]=P("img",{src:Hc,alt:"颜色",class:"w-9 h-9 object-contain"},null,-1)),P("input",{type:"color",value:Ue(t).textColor,onInput:m[2]||(m[2]=w=>Ue(t).setTextColor(w.target.value)),class:"absolute inset-0 opacity-0 cursor-pointer","aria-label":"选择文字颜色"},null,40,k1)])]),P("div",E1,[P("textarea",{value:Ue(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,O1)]),P("div",U1,[m[10]||(m[10]=P("div",{class:"w-[18px] h-[42px] shrink-0 pointer-events-none"},[P("img",{src:zc,alt:"导出",class:"w-full h-full object-contain"})],-1)),P("button",{onClick:m[3]||(m[3]=w=>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"},[...m[8]||(m[8]=[P("img",{src:Vc,alt:"导出SVG",class:"w-12 h-12 object-contain"},null,-1)])]),P("button",{onClick:m[4]||(m[4]=w=>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"},[...m[9]||(m[9]=[P("img",{src:Wc,alt:"导出PNG",class:"w-12 h-12 object-contain"},null,-1)])])])]),P("div",L1,[P("div",_1,[P("div",R1,[pn((ue(),he("div",A1,[Ze(Nd)])),[[S]])]),P("div",I1,[P("div",M1,[P("h2",P1," 已收藏字体("+Xe(o.value)+"字体) ",1),P("button",{onClick:x,class:"w-4 h-4 shrink-0 p-0 border-0 bg-transparent cursor-pointer hover:opacity-85 transition-opacity",title:"已收藏字体全选/全不选"},[P("img",{src:i.value?Ue(Hs):Ue(Gs),alt:"已收藏字体全选/全不选",class:"w-full h-full"},null,8,D1)])]),pn((ue(),he("div",B1,[Ze(qd)])),[[S]])])]),P("div",N1,[P("div",G1,[m[13]||(m[13]=P("h2",{class:"text-base text-black shrink-0 leading-none flex-1"},"效果预览",-1)),P("button",{onClick:d,class:"w-4 h-4 shrink-0 p-0 border-0 bg-transparent cursor-pointer hover:opacity-85 transition-opacity",title:"效果预览全选/全不选"},[P("img",{src:a.value?Ue(Hs):Ue(Gs),alt:"效果预览全选/全不选",class:"w-full h-full"},null,8,H1)])]),pn((ue(),he("div",z1,[Ze(m1,{ref_key:"svgPreviewRef",ref:n},null,512)])),[[S]])])]),m[14]||(m[14]=P("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))])}}}),n0=qn(V1,[["__scopeId","data-v-50c1a689"]]);console.log("main.ts is loading...");console.log("App component:",n0);const Xn=kc(n0);Xn.use(Uc());const xs=new WeakMap;function Wi(e){const t=e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;e.dataset.overflowing=t?"true":"false"}const W1={mounted(e){const t=()=>Wi(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),xs.set(e,{resizeObserver:r,mutationObserver:n,onMouseEnter:s,onWindowResize:a})},updated(e){Wi(e)},unmounted(e){const t=xs.get(e);t&&(t.resizeObserver.disconnect(),t.mutationObserver.disconnect(),e.removeEventListener("mouseenter",t.onMouseEnter),window.removeEventListener("resize",t.onWindowResize),xs.delete(e))}};Xn.directive("overflow-aware",W1);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{ri as _}; +`)}const cd="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",fd="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",e0="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",ma="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",t0="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",Gs="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",Hs="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",hd={class:"space-y-0"},pd={key:0,class:"relative mb-3"},dd={class:"flex items-center gap-2"},vd={class:"tree-icon-wrapper"},gd=["onClick","disabled"],md={key:1,src:fd,alt:"展开",class:"w-[15px] h-[15px]"},xd=["onClick"],yd={class:"flex items-center gap-2 shrink-0 mr-[1px]"},bd=["onClick"],Sd=["src"],wd={key:0,class:"tree-vertical-line"},Td={key:1,class:"flex flex-col gap-3 mt-3"},Fd={class:"flex-1 text-xs text-[#86909c]"},Cd=["onClick"],kd={key:0,src:ma,alt:"选中",class:"w-[11px] h-[9px]"},Ed=["onClick"],Od=qr({__name:"FontTree",props:{nodes:{},searchKeyword:{},selectedOnly:{type:Boolean}},setup(e){const t=e,r=yr(),n=ve(()=>(t.searchKeyword??"").trim().toLowerCase()),s=ve(()=>n.value.length>0),a=ve(()=>s.value||t.selectedOnly===!0);function i(w){if(w.type!=="category"||!w.children)return[];const T=w.children.filter(q=>q.type==="font"&&!!q.fontInfo),E=t.selectedOnly?T.filter(q=>r.previewFontIds.has(q.fontInfo.id)):T;if(!s.value)return E;const U=n.value;return w.name.toLowerCase().includes(U)?E:E.filter(q=>q.name.toLowerCase().includes(U))}function o(w){return w.type==="category"&&i(w).length>0}function l(w){return a.value?!0:!!w.expanded}function c(w){if(a.value)return;const T=!w.expanded;w.expanded=T,r.setCategoryExpanded(w.name,T)}function u(w,T){T.stopPropagation(),w.type==="font"&&w.fontInfo&&r.togglePreview(w.fontInfo.id)}function h(w,T){T.stopPropagation(),w.type==="font"&&w.fontInfo&&r.toggleFavorite(w.fontInfo.id)}function f(w){return w.type==="font"&&w.fontInfo?r.favoriteFontIds.has(w.fontInfo.id):!1}function d(w){return w.type==="font"&&w.fontInfo?r.previewFontIds.has(w.fontInfo.id):!1}function x(w){return i(w).map(T=>T.fontInfo.id)}function y(w){return i(w).length}function m(w){const T=x(w);return T.length>0&&T.every(E=>r.previewFontIds.has(E))}function S(w,T){T.stopPropagation();const E=x(w);E.length!==0&&(m(w)?E.forEach(U=>r.removeFromPreview(U)):E.forEach(U=>r.addToPreview(U)))}return(w,T)=>(ue(),he("div",hd,[(ue(!0),he(De,null,Tn(e.nodes,E=>(ue(),he("div",{key:E.name},[o(E)?(ue(),he("div",pd,[P("div",dd,[P("div",vd,[P("button",{onClick:U=>c(E),class:"tree-toggle",disabled:a.value},[l(E)?(ue(),he("img",{key:0,src:cd,alt:"收起",class:ft(["w-[15px] h-[15px]",{"opacity-70":a.value}])},null,2)):(ue(),he("img",md))],8,gd)]),P("div",{onClick:U=>c(E),class:ft(["text-base font-medium text-black flex-1 ml-2",a.value?"cursor-default":"cursor-pointer"])},Xe(E.name)+"("+Xe(y(E))+"字体) ",11,xd),P("div",yd,[P("button",{onClick:U=>S(E,U),class:"w-4 h-4 shrink-0 p-0 border-0 bg-transparent cursor-pointer hover:opacity-85 transition-opacity",title:"分类全选/全不选"},[P("img",{src:m(E)?Ue(Hs):Ue(Gs),alt:"分类全选/全不选",class:"w-full h-full"},null,8,Sd)],8,bd),T[0]||(T[0]=P("div",{class:"w-[18px] h-[17px] shrink-0","aria-hidden":"true"},null,-1))])]),l(E)&&i(E).length>0?(ue(),he("div",wd)):Kt("",!0),l(E)&&i(E).length>0?(ue(),he("div",Td,[(ue(!0),he(De,null,Tn(i(E),U=>(ue(),he("div",{key:U.name,class:"flex items-center gap-2 border-b border-[#c9cdd4] pb-2 relative"},[T[1]||(T[1]=P("div",{class:"tree-horizontal-line"},null,-1)),T[2]||(T[2]=P("div",{class:"w-4 h-4 shrink-0 ml-[17px]"},[P("img",{src:e0,alt:"font",class:"w-full h-full"})],-1)),P("div",Fd,Xe(U.name),1),P("button",{onClick:q=>u(U,q),class:ft(["w-[18px] h-[18px] shrink-0 border rounded-full flex items-center justify-center p-0 bg-transparent",d(U)?"bg-[#9b6bc2] border-[#9b6bc2]":"border-[#c9cdd4]"])},[d(U)?(ue(),he("img",kd)):Kt("",!0)],10,Cd),P("button",{onClick:q=>h(U,q),class:"w-[18px] h-[17px] shrink-0 p-0 border-0 bg-transparent"},[P("img",{src:t0,alt:"收藏",class:ft(["w-full h-full",f(U)?"favorite-active":""])},null,2)],8,Ed)]))),128))])):Kt("",!0)])):Kt("",!0)]))),128))]))}}),qn=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Ud=qn(Od,[["__scopeId","data-v-1709e607"]]),Ld="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",_d={class:"space-y-2 pb-1"},Rd={class:"sticky top-0 z-10 bg-white pt-1 pb-1"},Ad={class:"flex items-center gap-3"},Id={class:"flex-1 min-w-0"},Md={class:"h-8 rounded-[10px] bg-[#F3EDF7] pl-2 flex items-center"},Pd={type:"button",class:"w-8 h-8 shrink-0 p-0 border-0 bg-transparent flex items-center justify-center","aria-hidden":"true"},Dd=["src"],Bd={key:0,class:"text-sm text-gray-500 text-center py-8"},Nd=qr({__name:"FontSelector",setup(e){const t=yr(),r=be(""),n=ve(()=>t.fontTree),s=ve(()=>r.value.trim().toLowerCase()),a=ve(()=>{const u=s.value;return u.includes("选中")||u.includes("选择")||u.includes("已选")||u.includes("xuan")}),i=ve(()=>a.value?"":s.value),o=ve(()=>s.value.length>0);function l(u){if(u.type!=="category")return!1;const h=(u.children??[]).filter(x=>x.type==="font"&&!!x.fontInfo),f=a.value?h.filter(x=>!!x.fontInfo&&t.previewFontIds.has(x.fontInfo.id)):h;if(i.value.length===0)return f.length>0;const d=i.value;return u.name.toLowerCase().includes(d)?f.length>0:f.some(x=>x.name.toLowerCase().includes(d))}const c=ve(()=>o.value?n.value.some(u=>l(u)):n.value.length>0);return(u,h)=>(ue(),he("div",_d,[P("div",Rd,[P("div",Ad,[h[1]||(h[1]=P("div",{class:"text-[16px] leading-none text-black font-bold shrink-0"}," 选择预览字体 ",-1)),P("div",Id,[P("div",Md,[pn(P("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),[[Tc,r.value]]),P("button",Pd,[P("img",{src:Ue(Ld),alt:"",class:"w-[24px] h-[24px]"},null,8,Dd)])])])])]),c.value?(ue(),Xo(Ud,{key:1,nodes:n.value,"search-keyword":i.value,"selected-only":a.value},null,8,["nodes","search-keyword","selected-only"])):(ue(),he("div",Bd,Xe(o.value?"未找到匹配字体":"暂无字体"),1))]))}}),Gd={class:"space-y-2"},Hd={key:0,class:"text-sm text-gray-500 text-center py-8"},zd={key:1,class:"flex flex-col gap-3 favorite-indent"},Vd={class:"flex-1 text-xs text-[#86909c]"},Wd=["onClick"],Zd={key:0,src:ma,alt:"选中",class:"w-[11px] h-[9px]"},$d=["onClick"],jd=qr({__name:"FavoritesList",setup(e){const t=yr(),r=ve(()=>t.favoriteFonts);function n(o,l){l.stopPropagation(),t.togglePreview(o)}function s(o,l){l.stopPropagation(),t.toggleFavorite(o)}function a(o){return t.favoriteFontIds.has(o)}function i(o){return t.previewFontIds.has(o)}return(o,l)=>(ue(),he("div",Gd,[r.value.length===0?(ue(),he("div",Hd," 暂无收藏字体 ")):(ue(),he("div",zd,[(ue(!0),he(De,null,Tn(r.value,c=>(ue(),he("div",{key:c.id,class:"flex items-center gap-2 border-b border-[#c9cdd4] pb-2"},[l[0]||(l[0]=P("div",{class:"w-4 h-4 shrink-0"},[P("img",{src:e0,alt:"font",class:"w-full h-full"})],-1)),P("div",Vd,Xe(c.name),1),P("button",{onClick:u=>n(c.id,u),class:ft(["w-[18px] h-[18px] shrink-0 border rounded-full flex items-center justify-center p-0 bg-transparent",i(c.id)?"bg-[#9b6bc2] border-[#9b6bc2]":"border-[#c9cdd4]"])},[i(c.id)?(ue(),he("img",Zd)):Kt("",!0)],10,Wd),P("button",{onClick:u=>s(c.id,u),class:"w-[18px] h-[17px] shrink-0 p-0 border-0 bg-transparent"},[P("img",{src:t0,alt:"收藏",class:ft(["w-full h-full",a(c.id)?"favorite-active":""])},null,2)],8,$d)]))),128))]))]))}}),qd=qn(jd,[["__scopeId","data-v-e8bbd3fa"]]),Xd="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",Yd="/api/render-svg",Kd=3e4;function Jd(){if(typeof window<"u"){const e=window.__FONT2SVG_API_URL__;if(typeof e=="string"&&e.trim())return e.trim()}return Yd}function Qd(e){if(!e||typeof e!="object")throw new Error("渲染服务返回格式无效");const t=typeof e.svg=="string"?e.svg:"";if(!t.trim())throw new Error("渲染服务未返回有效 SVG");return{svg:t,width:Number(e.width)||0,height:Number(e.height)||0,fontName:e.fontName||"Unknown",fontId:e.fontId||""}}function e1(e){const t=String(e.fontId||"").trim(),r=String(e.text||"");if(!t)throw new Error("缺少字体 ID");if(!r.trim())throw new Error("文本内容不能为空");return{fontId:t,text:r,fontSize:Number(e.fontSize)||120,fillColor:e.fillColor||"#000000",letterSpacing:Number(e.letterSpacing)||0,maxCharsPerLine:Number(e.maxCharsPerLine)||tr}}async function r0(e){const t=e1(e),r=new AbortController,n=setTimeout(()=>r.abort(),Kd);let s;try{s=await fetch(Jd(),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t),signal:r.signal})}catch(i){throw i instanceof DOMException&&i.name==="AbortError"?new Error("渲染服务请求超时"):new Error(`渲染服务请求失败:${i instanceof Error?i.message:String(i)}`)}finally{clearTimeout(n)}let a=null;try{a=await s.json()}catch{a=null}if(!s.ok){const i=a&&typeof a.error=="string"&&a.error.trim()?a.error:`渲染服务请求失败(HTTP ${s.status})`;throw new Error(i)}if(!a||!a.ok)throw new Error(a&&a.error||"渲染服务返回错误");return Qd(a.data)}const t1=Object.freeze(Object.defineProperty({__proto__:null,renderSvgByApi:r0},Symbol.toStringTag,{value:"Module"})),r1={class:"flex flex-col gap-2"},n1={key:0,class:"text-[#86909c] text-center py-20"},s1={key:1,class:"flex flex-col gap-2"},a1={class:"flex items-center gap-[8px] border-b border-[#c9cdd4] pb-[8px] pr-[8px]"},i1={class:"flex-1 text-xs text-[#86909c]"},o1=["onClick"],l1={key:0,src:ma,alt:"选中",class:"w-[11px] h-[9px]"},u1=["onClick"],c1=["innerHTML"],f1={key:0,class:"text-xs text-[#86909c] text-center py-2"},h1=240,p1=4,d1=600,fn=20,v1=10,Cr=120,g1=qr({__name:"SvgPreview",setup(e,{expose:t}){const r=yr(),n=Ql(),s=be([]),a=be(!1),i=be(!1),o=be([]),l=be(0),c=be(0),u=be(null),h=ve(()=>r.previewFonts),f=ve(()=>n.inputText),d=ve(()=>n.fontSize),x=ve(()=>n.textColor);let y=null,m=0,S=!1,w=null;const T=new Map,E=ve(()=>s.value.length>0&&s.value.every(p=>p.selected)),U=ve(()=>c.values.value.slice(0,c.value)),N=ve(()=>!U.value||q.value.length<=0?-1:Math.max(0,q.value.length-v1));function O(p){return p!==m}function R(p=!0){if(y!==null&&(clearTimeout(y),y=null),!p){Lt();return}y=setTimeout(()=>{y=null,Lt()},h1)}function V(p){let g=p.parentElement;for(;g;){const C=window.getComputedStyle(g).overflowY;if((C==="auto"||C==="scroll")&&g.scrollHeight>g.clientHeight)return g;g=g.parentElement}return null}function Q(){w&&(w.disconnect(),w=null)}function ne(){if(Q(),!U.value||!u.value)return;const p=V(u.value);w=new IntersectionObserver(g=>{g.some(C=>C.isIntersecting)&&tn()},{root:p,threshold:.01}),w.observe(u.value)}function ae(p,g){g===N.value&&(u.value=p instanceof HTMLElement?p:null)}function ie(p,g="#000000"){const F=String(p||"").trim();return/^#[0-9a-fA-F]{6}$/.test(F)?F:g}function _(p,g=Cr){return Number.isFinite(p)?Math.max(1,Math.min(2048,Math.round(p))):g}function z(p){return Number(p).toFixed(2).replace(/\.?0+$/,"")}function B(p,g){const F=ie(g);return p?/]*\sfill="[^"]*"/.test(p)?p.replace(/(]*\sfill=")[^"]*(")/,`$1${F}$2`):p.replace(/]*)>/,``):""}function W(p,g){return!p||!Number.isFinite(g)||g<=0?p:p.replace(/width="([0-9]+(?:\.[0-9]+)?)"/,(F,C)=>{const k=Number(C)*g;return`width="${z(k)}"`}).replace(/height="([0-9]+(?:\.[0-9]+)?)"/,(F,C)=>{const k=Number(C)*g;return`height="${z(k)}"`})}function se(p,g,F,C){const k=Number.isFinite(F)?F.toFixed(4):"0.0000";return[p,k,String(C),g].join("::")}function ge(p){return se(p.id,String(f.value||""),Number(n.letterSpacing)||0,tr)}function oe(p){const g=T.get(p);return g?(T.delete(p),T.set(p,g),g):null}function ce(p,g){for(T.has(p)&&T.delete(p),T.set(p,g);T.size>d1;){const F=T.keys().next().value;if(F===void 0)break;T.delete(F)}}function Ut(p){const g=_(Number(d.value),Cr),F=Number(p.renderFontSize)>0?Number(p.renderFontSize):Cr,C=g/F;return{svg:W(B(p.baseSvg,x.value),C),width:Number(p.baseWidth)>0?Number(p.baseWidth)*C:0,height:Number(p.baseHeight)>0?Number(p.baseHeight)*C:0,fontName:p.svgResult.fontName||p.fontInfo.name}}function sr(p){return{...p,svgResult:Ut(p)}}function br(){s.value.length!==0&&(s.value=s.value.map(p=>sr(p)))}async function je(p){const g=ge(p),F=oe(g);if(F)return F;const C=await r0({fontId:p.id,text:f.value,fontSize:Cr,fillColor:"#000000",letterSpacing:Number(n.letterSpacing)||0,maxCharsPerLine:tr}),k={svg:C.svg,width:C.width,height:C.height,fontName:C.fontName||p.name,renderFontSize:Cr};return ce(g,k),k}async function mt(p,g,F,C){const k=Math.min(g+F,p.length),M=p.slice(g,k);if(M.length===0)return[];const I=new Set(n.selectedExportItems.map(j=>j.fontInfo.id)),A=new Array(M.length).fill(null),L=Math.min(p1,M.length);let X=0;const G=async()=>{for(;;){if(O(C))return;const j=X;if(X+=1,j>=M.length)return;const Y=M[j];if(Y)try{const te=await je(Y);if(!te||O(C))continue;const de={fontInfo:Y,selected:I.has(Y.id),baseSvg:te.svg,baseWidth:te.width,baseHeight:te.height,renderFontSize:te.renderFontSize,svgResult:{svg:"",width:0,height:0,fontName:te.fontName||Y.name}};A[j]=sr(de)}catch(te){console.error(`Failed to render preview for ${Y.name}:`,te)}}};return await Promise.all(Array.from({length:L},()=>G())),O(C)?[]:A.filter(j=>j!==null)}async function qe(p){if(i.value||O(p))return;const g=l.value;if(!(g>=o.value.length)){i.value=!0;try{const F=await mt(o.value,g,fn,p);if(O(p))return;l.value=Math.min(g+fn,o.value.length),s.value=[...s.value,...F],c.value=Math.min(c.value+fn,s.value.length)}catch(F){console.error("Failed to load preview batch:",F)}finally{O(p)||(i.value=!1)}}}async function tn(){const p=m;if(!(i.value||O(p))){if(c.valueC.id));if(n.retainExportItemsByFontIds(F),o.value=g,l.value=0,s.value=[],c.value=0,!f.value||f.value.trim()===""||g.length===0){a.value=!1;return}a.value=!0;try{await qe(p)}catch(C){console.error("Failed to regenerate previews:",C)}finally{O(p)||(a.value=!1)}}Qt([h,f,()=>n.letterSpacing],()=>{R(S),S=!0},{immediate:!0}),Qt([d,x],()=>{br()}),Qt([N,U],async()=>{u.value=null,await ea(),ne()},{immediate:!0}),Lo(()=>{y!==null&&(clearTimeout(y),y=null),Q(),m+=1});function Yn(p){p.selected=!p.selected,n.toggleExportItem(p)}function v(){if(s.value.length!==0){if(E.value){n.clearExportSelection(),s.value.forEach(p=>{p.selected=!1});return}s.value.forEach(p=>{p.selected=!0}),n.selectAllExportItems(s.value)}}return t({toggleSelectAllPreviewItems:v}),(p,g)=>(ue(),he("div",r1,[s.value.length===0?(ue(),he("div",n1,Xe(a.value?"生成预览中...":"请选择字体并输入内容"),1)):(ue(),he("div",s1,[(ue(!0),he(De,null,Tn(q.value,(F,C)=>(ue(),he("div",{key:F.fontInfo.id,ref_for:!0,ref:k=>ae(k,C),class:"flex flex-col gap-2"},[P("div",a1,[g[0]||(g[0]=P("div",{class:"w-[24px] h-[24px] shrink-0"},[P("img",{src:Xd,alt:"字体",class:"w-full h-full"})],-1)),P("div",i1,Xe(F.fontInfo.name),1),P("button",{onClick:k=>Yn(F),class:ft(["w-[18px] h-[18px] shrink-0 border rounded-full flex items-center justify-center p-0 bg-transparent",F.selected?"bg-[#9b6bc2] border-[#9b6bc2]":"border-[#c9cdd4]"])},[F.selected?(ue(),he("img",l1)):Kt("",!0)],10,o1)]),P("div",{onClick:k=>Yn(F),class:"bg-white px-[8px] py-[8px] cursor-pointer"},[P("div",{innerHTML:F.svgResult.svg,class:"svg-preview-container"},null,8,c1)],8,u1)]))),128)),U.value?(ue(),he("div",f1,Xe(i.value?"加载中...":`继续下滑加载更多(${q.value.length}/${o.value.length})`),1)):Kt("",!0)]))]))}}),m1=qn(g1,[["__scopeId","data-v-db8834e1"]]),x1={class:"w-screen h-screen box-border p-8px bg-white flex flex-col overflow-hidden"},y1={class:"flex gap-2 items-center shrink-0 h-24 px-2 py-1"},b1={class:"flex items-center gap-3 px-2 shrink-0 relative",style:{width:"280px",height:"32px"}},S1={class:"flex-1 h-6 flex items-center relative"},w1=["value"],T1={class:"text-[#8552A1] text-[12px] font-medium text-center w-6"},F1={class:"shrink-0 relative w-9 h-9"},C1={class:"w-full h-full flex items-center justify-center cursor-pointer"},k1=["value"],E1={class:"flex-1 min-w-[80px] bg-[#f7f8fa] rounded-lg px-2 py-1 h-12"},O1=["value"],U1={class:"flex items-center gap-1 shrink-0 border border-[#8552A1] rounded-lg px-1 py-1 bg-[#f7f8fa] shadow-sm"},L1={class:"flex-1 flex gap-2 min-h-0 overflow-hidden px-2"},_1={class:"flex flex-col gap-2 shrink-0 overflow-hidden",style:{"flex-basis":"400px","max-width":"480px","min-width":"320px"}},R1={class:"flex-[2] border border-solid border-[#f7e0e0] rounded-lg p-1.5 flex flex-col gap-2 overflow-hidden min-h-0"},A1={class:"scrollbar-hover flex-1 overflow-y-auto overflow-x-hidden pr-2"},I1={class:"border border-solid border-[#f7e0e0] rounded-lg p-1.5 flex flex-col gap-2 flex-1 overflow-hidden min-h-[120px]"},M1={class:"flex items-center pr-[9px]"},P1={class:"text-base text-black shrink-0 leading-none flex-1"},D1=["src"],B1={class:"scrollbar-hover flex-1 overflow-y-auto overflow-x-hidden pr-2"},N1={class:"flex-1 border border-solid border-[#f7e0e0] rounded-lg p-1.5 flex flex-col gap-2 overflow-hidden min-w-0"},G1={class:"flex items-center pr-[9px]"},H1=["src"],z1={class:"scrollbar-hover flex-1 min-h-0 py-2 overflow-y-auto overflow-x-hidden"},V1=qr({__name:"App",setup(e){console.log("App.vue: script setup running...");const t=Ql(),r=yr(),n=be(null),s=ve(()=>{const y=(t.fontSize-10)/490*100;return Math.max(0,Math.min(100,y))}),a=ve(()=>{const y=r.previewFonts.map(S=>S.id);if(y.length===0)return!1;const m=new Set(t.selectedExportItems.map(S=>S.fontInfo.id));return y.every(S=>m.has(S))}),i=ve(()=>{const y=r.favoriteFonts.map(m=>m.id);return y.length===0?!1:y.every(m=>r.previewFontIds.has(m))}),o=ve(()=>r.favoriteFonts.length);try{ud(),console.log("App.vue: useFontLoader called successfully")}catch(y){console.error("App.vue: Error in useFontLoader:",y)}const l=Vi(t.inputText,tr);l!==t.inputText&&t.setInputText(l);async function c(y){t.retainExportItemsByFontIds(r.previewFontIds);const m=t.selectedExportItems,S=t.inputText.trim();if(m.length===0){alert("请选择需要导出的效果");return}if(!S){alert("请输入要导出的文字");return}try{const{renderSvgByApi:w}=await ri(async()=>{const{renderSvgByApi:V}=await Promise.resolve().then(()=>t1);return{renderSvgByApi:V}},void 0),{convertSvgToPngBlob:T,downloadSvg:E,downloadMultipleFiles:U,downloadPngFromSvg:q,generatePngFilename:N,generateSvgFilename:O}=await ri(async()=>{const{convertSvgToPngBlob:V,downloadSvg:Q,downloadMultipleFiles:ne,downloadPngFromSvg:ae,generatePngFilename:ie,generateSvgFilename:_}=await import("./download-DMVEIKyj.js");return{convertSvgToPngBlob:V,downloadSvg:Q,downloadMultipleFiles:ne,downloadPngFromSvg:ae,generatePngFilename:ie,generateSvgFilename:_}},[]),R=async V=>w({fontId:V,text:S,fontSize:t.fontSize,fillColor:t.textColor,letterSpacing:Number(t.letterSpacing)||0,maxCharsPerLine:tr});if(m.length===1){const Q=m[0]?.fontInfo?.id;if(!Q){alert("选中字体信息无效,请重新选择后重试");return}const ne=await R(Q);if(y==="svg"){const ae=O(S,ne.fontName);E(ne.svg,ae)}else{const ae=N(S,ne.fontName);await q(ne.svg,ae,{width:ne.width,height:ne.height})}}else{const V=[];for(const Q of m)try{const ne=Q?.fontInfo?.id;if(!ne){console.warn("发现无效字体项,已跳过");continue}const ae=await R(ne);if(y==="svg"){const ie=O(S,ae.fontName);V.push({name:ie,content:ae.svg})}else{const ie=N(S,ae.fontName),_=await T(ae.svg,{width:ae.width,height:ae.height});V.push({name:ie,content:_})}}catch(ne){console.warn(`字体 ${Q.fontInfo.name} 导出失败:`,ne)}V.length>0?await U(V,y==="svg"?"font2svg-svg-export.zip":"font2svg-png-export.zip"):alert(`所有字体${y.toUpperCase()}导出都失败了`)}}catch(w){console.error("导出失败:",w),alert(`导出失败: ${w instanceof Error?w.message:"未知错误"}`)}}function u(y){t.setFontSize(y)}function h(y){const m=y.target,S=Number(m.value);Number.isNaN(S)||t.setFontSize(S)}function f(y){const m=y.target,S=Vi(m.value,tr);S!==m.value&&(m.value=S),t.setInputText(S)}function d(){n.value?.toggleSelectAllPreviewItems()}function x(){const y=r.favoriteFonts.map(m=>m.id);if(y.length!==0){if(i.value){y.forEach(m=>r.removeFromPreview(m));return}y.forEach(m=>r.addToPreview(m))}}return console.log("App.vue: script setup completed"),(y,m)=>{const S=vu("overflow-aware");return ue(),he("div",x1,[P("div",y1,[m[11]||(m[11]=P("div",{class:"w-12 h-12 rounded-xl overflow-hidden shrink-0"},[P("img",{src:Dc,alt:"logo",class:"w-full h-full object-cover"})],-1)),m[12]||(m[12]=P("div",{class:"shrink-0 max-w-[225px] min-w-[120px]",style:{height:"72px"}},[P("img",{src:Bc,alt:"星程SVG文字生成 TEXT to SVG",class:"w-full h-full object-contain"})],-1)),P("div",b1,[P("button",{onClick:m[0]||(m[0]=w=>u(Ue(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:"减小字体"},[...m[5]||(m[5]=[P("img",{src:Nc,alt:"A-",class:"w-4 h-4 object-contain"},null,-1)])]),P("div",S1,[P("input",{type:"range",min:"10",max:"500",step:"1",value:Ue(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,w1),P("div",{class:"absolute pointer-events-none -top-4",style:Dr({left:`calc(${s.value}% - 7px)`})},[P("div",T1,Xe(Ue(t).fontSize),1)],4)]),P("button",{onClick:m[1]||(m[1]=w=>u(Ue(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:"增大字体"},[...m[6]||(m[6]=[P("img",{src:Gc,alt:"A+",class:"w-6 h-6 object-contain"},null,-1)])])]),P("div",F1,[P("label",C1,[m[7]||(m[7]=P("img",{src:Hc,alt:"颜色",class:"w-9 h-9 object-contain"},null,-1)),P("input",{type:"color",value:Ue(t).textColor,onInput:m[2]||(m[2]=w=>Ue(t).setTextColor(w.target.value)),class:"absolute inset-0 opacity-0 cursor-pointer","aria-label":"选择文字颜色"},null,40,k1)])]),P("div",E1,[P("textarea",{value:Ue(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,O1)]),P("div",U1,[m[10]||(m[10]=P("div",{class:"w-[18px] h-[42px] shrink-0 pointer-events-none"},[P("img",{src:zc,alt:"导出",class:"w-full h-full object-contain"})],-1)),P("button",{onClick:m[3]||(m[3]=w=>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"},[...m[8]||(m[8]=[P("img",{src:Vc,alt:"导出SVG",class:"w-12 h-12 object-contain"},null,-1)])]),P("button",{onClick:m[4]||(m[4]=w=>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"},[...m[9]||(m[9]=[P("img",{src:Wc,alt:"导出PNG",class:"w-12 h-12 object-contain"},null,-1)])])])]),P("div",L1,[P("div",_1,[P("div",R1,[pn((ue(),he("div",A1,[Ze(Nd)])),[[S]])]),P("div",I1,[P("div",M1,[P("h2",P1," 已收藏字体("+Xe(o.value)+"字体) ",1),P("button",{onClick:x,class:"w-4 h-4 shrink-0 p-0 border-0 bg-transparent cursor-pointer hover:opacity-85 transition-opacity",title:"已收藏字体全选/全不选"},[P("img",{src:i.value?Ue(Hs):Ue(Gs),alt:"已收藏字体全选/全不选",class:"w-full h-full"},null,8,D1)])]),pn((ue(),he("div",B1,[Ze(qd)])),[[S]])])]),P("div",N1,[P("div",G1,[m[13]||(m[13]=P("h2",{class:"text-base text-black shrink-0 leading-none flex-1"},"效果预览",-1)),P("button",{onClick:d,class:"w-4 h-4 shrink-0 p-0 border-0 bg-transparent cursor-pointer hover:opacity-85 transition-opacity",title:"效果预览全选/全不选"},[P("img",{src:a.value?Ue(Hs):Ue(Gs),alt:"效果预览全选/全不选",class:"w-full h-full"},null,8,H1)])]),pn((ue(),he("div",z1,[Ze(m1,{ref_key:"svgPreviewRef",ref:n},null,512)])),[[S]])])]),m[14]||(m[14]=P("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))])}}}),n0=qn(V1,[["__scopeId","data-v-50c1a689"]]);console.log("main.ts is loading...");console.log("App component:",n0);const Xn=kc(n0);Xn.use(Uc());const xs=new WeakMap;function Wi(e){const t=e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;e.dataset.overflowing=t?"true":"false"}const W1={mounted(e){const t=()=>Wi(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),xs.set(e,{resizeObserver:r,mutationObserver:n,onMouseEnter:s,onWindowResize:a})},updated(e){Wi(e)},unmounted(e){const t=xs.get(e);t&&(t.resizeObserver.disconnect(),t.mutationObserver.disconnect(),e.removeEventListener("mouseenter",t.onMouseEnter),window.removeEventListener("resize",t.onWindowResize),xs.delete(e))}};Xn.directive("overflow-aware",W1);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{ri as _}; diff --git a/frontend/dist/index.html b/frontend/dist/index.html index cb13d42..3fc51f2 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -8,7 +8,7 @@ Font2SVG - 字体转SVG工具 - + diff --git a/frontend/src/components/SvgPreview.vue b/frontend/src/components/SvgPreview.vue index 5ee9747..9633b98 100644 --- a/frontend/src/components/SvgPreview.vue +++ b/frontend/src/components/SvgPreview.vue @@ -32,6 +32,7 @@ const activePreviewFonts = ref([]) const processedFontCount = ref(0) const renderedPreviewCount = ref(0) const previewTriggerItemEl = ref(null) +const previewErrorMessage = ref('') const previewFonts = computed(() => fontStore.previewFonts) const inputText = computed(() => uiStore.inputText) @@ -302,17 +303,18 @@ async function generatePreviewBatch( startIndex: number, batchSize: number, generationToken: number, -): Promise { +): Promise<{ items: PreviewRenderItem[]; errors: string[] }> { const endIndex = Math.min(startIndex + batchSize, fonts.length) const batchFonts = fonts.slice(startIndex, endIndex) if (batchFonts.length === 0) { - return [] + return { items: [], errors: [] } } const selectedFontIdSet = new Set(uiStore.selectedExportItems.map(item => item.fontInfo.id)) const items = new Array(batchFonts.length).fill(null) const workerCount = Math.min(PREVIEW_CONCURRENCY, batchFonts.length) let nextIndex = 0 + const errors: string[] = [] const worker = async () => { while (true) { @@ -353,7 +355,9 @@ async function generatePreviewBatch( } items[localIndex] = applyLocalStyleToPreviewItem(item) } catch (error) { + const message = error instanceof Error ? error.message : String(error) console.error(`Failed to render preview for ${fontInfo.name}:`, error) + errors.push(`${fontInfo.name}: ${message}`) } } } @@ -361,10 +365,13 @@ async function generatePreviewBatch( await Promise.all(Array.from({ length: workerCount }, () => worker())) if (isStaleGeneration(generationToken)) { - return [] + return { items: [], errors: [] } } - return items.filter((item): item is PreviewRenderItem => item !== null) + return { + items: items.filter((item): item is PreviewRenderItem => item !== null), + errors, + } } async function loadNextPreviewBatch(generationToken: number) { @@ -396,13 +403,20 @@ async function loadNextPreviewBatch(generationToken: number) { activePreviewFonts.value.length, ) - previewItems.value = [...previewItems.value, ...batchItems] + previewItems.value = [...previewItems.value, ...batchItems.items] renderedPreviewCount.value = Math.min( renderedPreviewCount.value + PREVIEW_BATCH_SIZE, previewItems.value.length, ) + + if (batchItems.errors.length > 0 && previewItems.value.length === 0) { + previewErrorMessage.value = `预览生成失败:${batchItems.errors[0]}` + } else if (previewItems.value.length > 0) { + previewErrorMessage.value = '' + } } catch (error) { console.error('Failed to load preview batch:', error) + previewErrorMessage.value = `预览生成失败:${error instanceof Error ? error.message : String(error)}` } finally { if (!isStaleGeneration(generationToken)) { isBatchGenerating.value = false @@ -440,6 +454,7 @@ async function regeneratePreviews() { processedFontCount.value = 0 previewItems.value = [] renderedPreviewCount.value = 0 + previewErrorMessage.value = '' if (!inputText.value || inputText.value.trim() === '' || nextPreviewFonts.length === 0) { isGenerating.value = false @@ -450,8 +465,18 @@ async function regeneratePreviews() { try { await loadNextPreviewBatch(generationToken) + if ( + !isStaleGeneration(generationToken) && + previewItems.value.length === 0 && + nextPreviewFonts.length > 0 && + inputText.value.trim() !== '' && + !previewErrorMessage.value + ) { + previewErrorMessage.value = '预览生成失败:服务未返回可用结果' + } } catch (error) { console.error('Failed to regenerate previews:', error) + previewErrorMessage.value = `预览生成失败:${error instanceof Error ? error.message : String(error)}` } finally { if (!isStaleGeneration(generationToken)) { isGenerating.value = false @@ -526,7 +551,19 @@ defineExpose({