@lamplitisles/codex-for-love 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vendor/IMPORTS.md +3 -2
- package/vendor/build/_app/immutable/assets/0._f6eIGbJ.css +2 -0
- package/vendor/build/_app/immutable/chunks/DdacV1pJ.js +1 -0
- package/vendor/build/_app/immutable/entry/{app.goDpBvd6.js → app.ROL0GFnN.js} +2 -2
- package/vendor/build/_app/immutable/entry/start.D1dr4Kbn.js +1 -0
- package/vendor/build/_app/immutable/nodes/{1.Bbb012Gw.js → 1.B1qFIsWm.js} +1 -1
- package/vendor/build/_app/immutable/nodes/2.TXBnv1oE.js +326 -0
- package/vendor/build/_app/version.json +1 -1
- package/vendor/build/index.html +8 -8
- package/vendor/config.example.toml +13 -8
- package/vendor/runtime/cli.mjs +500 -177
- package/vendor/runtime/companion-mcp.mjs +1114 -10
- package/vendor/build/_app/immutable/assets/0.D3rCUG9u.css +0 -2
- package/vendor/build/_app/immutable/chunks/BLOTIi3k.js +0 -1
- package/vendor/build/_app/immutable/entry/start.B48_EwAa.js +0 -1
- package/vendor/build/_app/immutable/nodes/2.sq1lZZ-7.js +0 -326
- /package/vendor/build/_app/immutable/nodes/{0.Wk08-krq.js → 0.-C44RqM4.js} +0 -0
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import{$ as e,A as t,B as n,C as r,Ct as i,D as a,E as o,F as s,G as c,H as l,I as u,J as d,K as f,L as p,M as m,N as h,O as g,P as _,Q as v,R as y,S as b,St as x,T as S,V as C,W as ee,X as w,Y as T,_ as E,_t as te,at as D,b as ne,bt as re,c as ie,ct as ae,d as oe,dt as O,et as k,f as se,ft as ce,g as le,gt as ue,h as A,ht as de,i as fe,it as pe,j as me,k as he,l as ge,lt as _e,m as ve,mt as ye,nt as j,o as be,ot as xe,p as Se,q as Ce,r as we,rt as M,s as N,st as P,t as Te,tt as F,u as Ee,ut as De,v as Oe,vt as ke,w as Ae,wt as je,x as Me,xt as I,y as Ne,yt as Pe,z as Fe}from"../chunks/DtqGwW3l.js";import"../chunks/xihTtKlq.js";function Ie(e,t){let n=new Map(e.map(e=>[e.id,e]));for(let e of t){let t=n.get(e.id);(!t||e.revision>t.revision)&&n.set(e.id,e)}return[...n.values()].sort((e,t)=>e.sequence-t.sequence)}function Le(e,t){let n=new Map(e.map(e=>[e.id,e]));for(let e of t){let t=n.get(e.id);(!t||e.revision>t.revision)&&n.set(e.id,e)}return[...n.values()].sort((e,t)=>e.sequence-t.sequence||e.revision-t.revision)}var Re=`image/png,image/jpeg,image/webp,image/gif`,ze=new Set([`image/png`,`image/jpeg`,`image/webp`,`image/gif`]);function Be(e,t,n){if(t.length!==0){if(!n)return{key:`image.unavailable`};if(t.some(e=>!ze.has(e.type)||!n.mediaTypes.includes(e.type)))return{key:`image.types`};if(e.length+t.length>n.maxImagesPerMessage)return{key:`image.countLimit`,params:{count:n.maxImagesPerMessage}};if(t.some(e=>e.size>n.maxImageBytes))return{key:`image.tooLarge`};if(e.reduce((e,t)=>e+t.file.size,0)+t.reduce((e,t)=>e+t.size,0)>n.maxMessageImageBytes)return{key:`image.totalTooLarge`}}}function Ve(e){return e.map(e=>({id:crypto.randomUUID(),file:e,previewUrl:URL.createObjectURL(e)}))}function He(e){for(let t of e)t.previewUrl.startsWith(`blob:`)&&URL.revokeObjectURL(t.previewUrl)}function Ue(e){if(!e)return[];let t=[];for(let n=0;n<e.items.length;n+=1){let r=e.items[n];if(r.kind!==`file`||!r.type.startsWith(`image/`))continue;let i=r.getAsFile();i&&t.push(i)}return t.length>0?t:Array.from(e.files).filter(e=>e.type.startsWith(`image/`))}async function We(e,t=fetch){let n=e.webPath;if(!n)throw Error(`camera-media-missing-url`);try{let r=await t(n);if(!r.ok)throw Error(`camera-media-fetch-failed`);let i=await r.blob(),a=qe(i.type)??qe(e.metadata?.format)??qe(n);if(!a)throw Error(`camera-media-unsupported-type`);let o=a.slice(6);return new File([i],`camera-photo.${o}`,{type:a})}finally{n.startsWith(`blob:`)&&URL.revokeObjectURL(n)}}async function Ge(e){return Promise.all(e.map(async e=>({type:`image`,mediaType:e.file.type,data:await Ke(e.file),...e.file.name?{name:e.file.name}:{}})))}function Ke(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=typeof r.result==`string`?r.result:``,i=e.indexOf(`,`);if(i<0){n(Error(`image-read-failed`));return}t(e.slice(i+1))},r.onerror=()=>n(r.error??Error(`image-read-failed`)),r.readAsDataURL(e)})}function qe(e){let t=e?.trim().toLowerCase().replace(/^\./u,``);if(t){if(t===`jpg`||t===`jpeg`||t===`image/jpg`||t===`image/jpeg`)return`image/jpeg`;if(t===`png`||t===`image/png`)return`image/png`;if(t===`webp`||t===`image/webp`)return`image/webp`;if(t===`gif`||t===`image/gif`)return`image/gif`}}function Je(e,t){let n=new Map;for(let r of t){let t=0;if(r.anchorId){let n=e.findIndex(e=>e.id===`${r.anchorId}:user`);if(n<0)continue;if(r.position===`before`)t=n;else if(r.position===`after-user`)t=n+1;else for(t=n+1;e[t]?.side===`incoming`;)t+=1}let i=n.get(t)??[];i.push({id:r.id,side:`incoming`,items:[{id:r.id,messageKey:r.id,kind:`continuity`,side:`incoming`,tone:`success`,compactionId:r.id,text:``,time:r.time,anchorSeq:t}]}),n.set(t,i)}return Array.from({length:e.length+1},(t,r)=>[...n.get(r)??[],...e[r]?[e[r]]:[]]).flat()}Pe();var Ye=16e3,Xe=10485760,Ze=3e5,Qe=[`audio/aac`,`audio/amr`,`audio/aiff`,`audio/flac`,`audio/mpeg`,`audio/mp3`,`audio/ogg`,`audio/opus`,`audio/wav`,`audio/x-wav`,`audio/webm`,`audio/x-ms-wma`],$e=[`surprised`,`neutral`,`happy`,`sad`,`disgusted`,`angry`,`fearful`],et=`[a-z0-9!#$&^_.+-]+`,tt=RegExp(`^audio\\/[a-z0-9][a-z0-9.+-]*(?:\\s*;\\s*${et}=${et})*$`,`u`);function nt(e){if(typeof e!=`string`||e.length>256)return;let t=e.trim().toLowerCase();if(!/^[\x00-\x7F]*$/u.test(t))return;let n=t.split(`;`,1)[0]?.trim();if(n&&tt.test(t))return Qe.includes(n)?t:void 0}function rt(e){return typeof e==`string`&&$e.includes(e.trim().toLowerCase())}function it(e){if(rt(e))return e.trim().toLowerCase()}function at(e){let t=nt(e);return t?`data:${t};base64,`:void 0}function ot(e){if(!Number.isSafeInteger(e)||e<0)return;let t=Math.ceil(e/3)*4;return Number.isSafeInteger(t)?t:void 0}function st(e,t){let n=at(e),r=ot(t);return n===void 0||r===void 0?void 0:n.length+r}function ct(e,t=Xe){let n=at(e);if(n===void 0||!Number.isSafeInteger(t)||t<0)return;let r=t-n.length;return r<4?0:Math.floor(r/4)*3}function lt(e,t,n=Xe){let r=st(e,t);return r!==void 0&&r<=n}var ut=class extends Error{code;constructor(e,t){super(t??e),this.name=`VoiceRecordingError`,this.code=e}};function dt(){let e=globalThis;return{mediaDevices:e.navigator?.mediaDevices,mediaRecorder:e.MediaRecorder,...typeof e.isSecureContext==`boolean`?{isSecureContext:e.isSecureContext}:{}}}function ft(e){return e.setTimeout??globalThis.setTimeout.bind(globalThis)}function pt(e,t){t!==void 0&&(e.clearTimeout??globalThis.clearTimeout.bind(globalThis))(t)}function mt(e){try{for(let t of e?.getTracks?.()??[])t.stop?.()}catch{}}function ht(e){return e.isSecureContext!==!1&&typeof e.mediaDevices?.getUserMedia==`function`&&!!e.mediaRecorder}function gt(e=dt()){return ht(e)}function _t(e=dt().mediaRecorder){if(e)for(let t of[`audio/webm;codecs=opus`,`audio/webm`,`audio/ogg;codecs=opus`,`audio/ogg`,`audio/mp4`,`audio/mpeg`])try{if((!e.isTypeSupported||e.isTypeSupported(t))&&nt(t))return t}catch{}}function vt(e,t,n){if(!(e instanceof Blob))throw new ut(`empty`,`录音内容无效。`);let r=nt(e.type||t);if(!r)throw new ut(`media-type`,`浏览器生成了不支持的录音格式。`);if(!Number.isSafeInteger(e.size)||e.size<=0)throw new ut(`empty`,`没有录到声音,请再试一次。`);let i=ct(r),a=i===void 0?0:n===void 0?i:Math.min(i,n);if(e.size>a||!lt(r,e.size))throw new ut(`size-limit`,`录音超过语音大小限制。`);return{blob:e,mediaType:r,bytes:e.size,durationMs:0}}function yt(e){if(Array.isArray(e)){for(let t of e){let e=yt(t);if(e)return e}return}if(typeof e==`object`&&e){let t=e;return it(t.expression??t.speechExpression??t.speech_expression??t.emotion)}return it(e)}function bt(e){if(typeof e!=`object`||!e||Array.isArray(e))throw new ut(`transcript-invalid`,`语音转写结果无效。`);let t=e,n=typeof t.text==`string`?t.text.trim():``;if(!n)throw new ut(`transcript-empty`,`没有听清内容,请再试一次。`);if(Array.from(n).length>2e4)throw new ut(`transcript-invalid`,`语音转写内容过长。`);let r;for(let e of[t.expression,t.speechExpression,t.speech_expression,t.sentences,t.expressions])if(r=yt(e),r)break;return r?{text:n,expression:r}:{text:n}}function xt(e){let t=bt(e);return t.expression?`🎙️ ${t.text} [${t.expression}]`:`🎙️ ${t.text}`}var St=class{options;maxDurationMs;configuredMaxBytes;statusValue=`idle`;operation;generation=0;disposed=!1;constructor(e={}){this.options={...dt(),...e},this.maxDurationMs=Number.isFinite(e.maxDurationMs)&&(e.maxDurationMs??0)>0?e.maxDurationMs:Ze,this.configuredMaxBytes=Number.isSafeInteger(e.maxBytes)&&(e.maxBytes??0)>0?e.maxBytes:Xe}get status(){return this.statusValue}get busy(){return this.statusValue===`recording`||this.statusValue===`stopping`||this.statusValue===`transcribing`}get elapsedMs(){let e=this.operation;return e?Math.max(0,(this.options.now??Date.now)()-e.startedAt):0}setStatus(e){this.statusValue=e;try{this.options.onStatus?.(e)}catch{}}async start(){if(this.disposed||this.busy)return!1;if(!ht(this.options))throw this.setStatus(`unavailable`),new ut(this.options.isSecureContext===!1?`insecure-context`:`unsupported`,`当前环境不支持麦克风录音。`);let e=_t(this.options.mediaRecorder);if(!e)throw this.setStatus(`unavailable`),new ut(`unsupported`,`当前浏览器没有可用的录音格式。`);let t=nt(e),n=t===void 0?void 0:ct(t),r=n===void 0?0:Math.min(this.configuredMaxBytes,n);if(r<=0)throw this.setStatus(`unavailable`),new ut(`unsupported`,`当前浏览器没有可用的录音格式。`);let i=++this.generation,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(()=>void 0);let c={generation:i,mediaType:t,maxBytes:r,chunks:[],bytes:0,startedAt:0,completion:s,resolve:a,reject:o};this.operation=c,this.setStatus(`recording`);try{if(c.stream=await this.options.mediaDevices.getUserMedia({audio:!0}),this.disposed||this.operation!==c||i!==this.generation)throw mt(c.stream),new ut(`cancelled`,`录音已取消。`);let t=this.options.mediaRecorder;return c.recorder=new t(c.stream,{mimeType:e}),c.recorder.ondataavailable=e=>this.onData(c,e.data),c.recorder.onerror=e=>this.fail(c,new ut(`capture-failed`,e.error instanceof Error?e.error.message:`录音失败,请重试。`)),c.recorder.onstop=()=>this.finish(c),c.recorder.start(1e3),c.startedAt=(this.options.now??Date.now)(),c.timer=ft(this.options)(()=>this.requestStop(c,`duration-limit`),this.maxDurationMs),!0}catch(e){let t=e instanceof Error||typeof e==`object`&&e&&`name`in e&&typeof e.name==`string`?e.name:``,n=e instanceof ut?e:t===`NotAllowedError`||t===`PermissionDeniedError`?new ut(`permission-denied`,`麦克风权限被拒绝,请允许后重试。`):new ut(`capture-failed`,`无法开始录音,请重试。`);throw this.fail(c,n),n}}async stop(){return this.stopAndGet()}async stopAndGet(){let e=this.operation;if(e){if(this.statusValue===`stopping`)return e.completion;if(this.statusValue===`recording`&&this.setStatus(`stopping`),e.stopReason??=`user`,!e.recorder)this.fail(e,new ut(`cancelled`,`录音已取消。`));else try{e.recorder.stop()}catch{this.fail(e,new ut(`capture-failed`,`录音失败,请重试。`))}return e.completion}}markTranscribing(){return this.disposed||this.operation||this.statusValue===`recording`||this.statusValue===`stopping`?!1:(this.setStatus(`transcribing`),!0)}finishTranscribing(){this.statusValue===`transcribing`&&this.setStatus(`idle`)}async cancel(){let e=this.operation;if(!e){this.statusValue===`transcribing`&&this.setStatus(`idle`);return}if(e.stopReason=`cancelled`,this.statusValue===`recording`&&this.setStatus(`stopping`),e.recorder)try{e.recorder.stop()}catch{this.fail(e,new ut(`cancelled`,`录音已取消。`))}else this.fail(e,new ut(`cancelled`,`录音已取消。`))}dispose(){this.disposed=!0,this.cancel(),this.setStatus(`idle`)}requestStop(e,t){if(!(this.operation!==e||e.stopReason)){e.stopReason=t,this.statusValue===`recording`&&this.setStatus(`stopping`);try{e.recorder?.stop()}catch{this.fail(e,new ut(`capture-failed`,`录音失败,请重试。`))}}}onData(e,t){if(this.operation!==e||!t||t.size<=0)return;let n=nt(t.type),r=n===void 0?void 0:ct(n);r!==void 0&&(e.maxBytes=Math.min(e.maxBytes,r)),e.bytes+=t.size,e.chunks.push(t),e.bytes>e.maxBytes&&this.requestStop(e,`size-limit`)}finish(e){if(this.operation!==e)return;let t=e.stopReason;if(t===`cancelled`){this.fail(e,new ut(`cancelled`,`录音已取消。`));return}if(t===`duration-limit`){this.fail(e,new ut(`duration-limit`,`录音最长 5 分钟,已停止。`));return}if(t===`size-limit`||e.bytes>e.maxBytes){this.fail(e,new ut(`size-limit`,`录音超过语音大小限制,已停止。`));return}try{let t=e.chunks.find(e=>e.type)?.type||e.recorder?.mimeType||e.mediaType,n=vt(new Blob(e.chunks,{type:t??``}),t,e.maxBytes);this.complete(e,{...n,durationMs:Math.max(0,(this.options.now??Date.now)()-e.startedAt)})}catch(t){this.fail(e,t)}}complete(e,t){this.operation===e&&(pt(this.options,e.timer),mt(e.stream),this.operation=void 0,this.setStatus(`idle`),e.resolve(t))}fail(e,t){if(this.operation!==e)return;let n=t instanceof ut?t:new ut(`capture-failed`,`录音失败,请重试。`);pt(this.options,e.timer),mt(e.stream),this.operation=void 0,this.setStatus(`idle`);try{this.options.onError?.(n)}catch{}e.reject(n)}},Ct={},wt=[`en`,`zh`],Tt=`PARAGLIDE_LOCALE`,Et=[`globalVariable`,`preferredLanguage`,`baseLocale`],Dt=[],Ot=typeof window>`u`;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var kt,At=!1,L=()=>{let e=Et;!Ot&&typeof window<`u`&&window.location?.href&&(e=Kt(window.location.href));let t=jt(e,typeof window<`u`?window.location?.href:void 0);if(t)return At||(kt=t,At=!0,Nt(t,{reload:!1})),t;throw Error(`No locale found. Read the docs https://paraglidejs.com/errors#no-locale-found`)};function jt(e,t){let n;for(let t of e){if(t===`baseLocale`)n=`en`;else if(t===`globalVariable`&&kt!==void 0)n=kt;else if(t===`preferredLanguage`&&!Ot)n=Bt();else if(Jt(t)&&qt.has(t)){let e=qt.get(t);if(e){let t=e.getLocale();if(t instanceof Promise)continue;if(t!==void 0)return It(t)}}let e=Ft(n);if(e)return e}}var Mt=e=>{e?window.location.href=e:window.location.reload()},Nt=(e,t)=>{let n={reload:!0,...t},r;try{r=L()}catch{}let i=[],a=Et;!Ot&&typeof window<`u`&&window.location?.href&&(a=Kt(window.location.href));for(let t of a)if(t===`globalVariable`)kt=e;else if(t===`baseLocale`)continue;else if(Jt(t)&&qt.has(t)){let n=qt.get(t);if(n){let r=n.setLocale(e);r instanceof Promise&&(r=r.catch(e=>{throw Error(`Custom strategy "${t}" setLocale failed.`,{cause:e})}),i.push(r))}}let o=()=>{!Ot&&n.reload&&window.location&&e!==r&&Mt(void 0)};if(i.length)return Promise.all(i).then(()=>{o()});o()},Pt=()=>typeof window<`u`?window.location.origin:`http://fallback.com`;function Ft(e){if(typeof e!=`string`)return;let t=e.toLowerCase();for(let e of wt)if(e.toLowerCase()===t)return e}function It(e){let t=Ft(e);if(t)return t;throw Error(`Invalid locale: ${e}. Expected one of: ${wt.join(`, `)}`)}function Lt(e){return e}function Rt(e,t){return e.exec(t.href)}var zt=Tt.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);RegExp(`(?:^|;\\s*)${zt}=([^;]*)`);function Bt(){if(!navigator?.languages?.length)return;let e=navigator.languages.map(e=>({fullTag:e,baseTag:e.split(`-`)[0]}));for(let t of e){let e=Ft(t.fullTag);if(e)return e;let n=Ft(t.baseTag);if(n)return n}}function Vt(e){return Ht(e)}function Ht(e){let t=Lt(typeof e==`string`?new URL(e,Pt()):new URL(e)),n=t.pathname.split(`/`).filter(Boolean);return n.length>0&&Ft(n[0])&&(t.pathname=`/`+n.slice(1).join(`/`)),Lt(t)}var Ut,Wt;function Gt(e){if(Dt.length===0)return;let t=typeof e==`string`?e:e.href;if(Ut===t)return Wt;let n=Lt(new URL(t,`http://example.com`)),r=Vt(n),i=r.href===n.href?[n]:[n,r],a;for(let e of i){for(let t of Dt)if(Rt(new Ct(t.match,e.href),e)){a=t;break}if(a)break}return Ut=t,Wt=a,a}function Kt(e){let t=Gt(e);return t&&t.exclude!==!0&&Array.isArray(t.strategy)?t.strategy:Et}var qt=new Map;function Jt(e){return typeof e==`string`&&/^custom-[A-Za-z0-9_-]+$/.test(e)}var Yt=()=>`Adjust closeness`,Xt=()=>`校正亲近度`,Zt=((e={},t={})=>(t.locale??L())===`zh`?Xt(e):Yt(e)),Qt=()=>`Close`,$t=()=>`亲近`,en=((e={},t={})=>(t.locale??L())===`zh`?$t(e):Qt(e)),tn=()=>`Deep bond`,nn=()=>`深厚`,rn=((e={},t={})=>(t.locale??L())===`zh`?nn(e):tn(e)),an=()=>`Distant`,on=()=>`疏离`,sn=((e={},t={})=>(t.locale??L())===`zh`?on(e):an(e)),cn=()=>`Familiar`,ln=()=>`熟悉`,un=((e={},t={})=>(t.locale??L())===`zh`?ln(e):cn(e)),dn=()=>`Enter a whole number from 0 to 100.`,fn=()=>`输入 0 到 100 的整数。`,pn=((e={},t={})=>(t.locale??L())===`zh`?fn(e):dn(e)),mn=()=>`Closeness`,hn=()=>`亲近度`,gn=((e={},t={})=>(t.locale??L())===`zh`?hn(e):mn(e)),_n=()=>`Reset closeness`,vn=()=>`重置亲近度`,yn=((e={},t={})=>(t.locale??L())===`zh`?vn(e):_n(e)),bn=()=>`Getting acquainted`,xn=()=>`生疏`,Sn=((e={},t={})=>(t.locale??L())===`zh`?xn(e):bn(e)),Cn=()=>`Apply`,wn=()=>`应用`,Tn=((e={},t={})=>(t.locale??L())===`zh`?wn(e):Cn(e)),En=()=>`Choose image`,Dn=()=>`选择图片`,On=((e={},t={})=>(t.locale??L())===`zh`?Dn(e):En(e)),kn=()=>`Companion avatar`,An=()=>`Companion 头像`,jn=((e={},t={})=>(t.locale??L())===`zh`?An(e):kn(e)),Mn=()=>`Companion avatar preview`,Nn=()=>`Companion 头像预览`,Pn=((e={},t={})=>(t.locale??L())===`zh`?Nn(e):Mn(e)),Fn=()=>`Couldn’t decode the avatar image.`,In=()=>`头像解码失败。`,Ln=((e={},t={})=>(t.locale??L())===`zh`?In(e):Fn(e)),Rn=()=>`Avatar dimensions must be between 1 and 4096 pixels.`,zn=()=>`头像尺寸需要在 1 到 4096 像素之间。`,Bn=((e={},t={})=>(t.locale??L())===`zh`?zn(e):Rn(e)),Vn=()=>`Choose a PNG, JPEG, WebP, or GIF avatar up to 5 MB.`,Hn=()=>`头像必须是 5 MB 以内的 PNG、JPEG、WebP 或 GIF。`,Un=((e={},t={})=>(t.locale??L())===`zh`?Hn(e):Vn(e)),Wn=()=>`Local PNG, JPEG, WebP, or GIF image, up to 5 MB.`,Gn=()=>`本地图片,PNG/JPEG/WebP/GIF,5 MB 以内。`,Kn=((e={},t={})=>(t.locale??L())===`zh`?Gn(e):Wn(e)),qn=()=>`Invalid avatar.`,Jn=()=>`头像无效。`,Yn=((e={},t={})=>(t.locale??L())===`zh`?Jn(e):qn(e)),Xn=()=>`No image selected`,Zn=()=>`未选择图片`,Qn=((e={},t={})=>(t.locale??L())===`zh`?Zn(e):Xn(e)),$n=()=>`Couldn’t read the avatar image.`,er=()=>`头像读取失败。`,tr=((e={},t={})=>(t.locale??L())===`zh`?er(e):$n(e)),nr=()=>`Avatar ready. Save to apply it.`,rr=()=>`头像已准备,点击保存后生效`,ir=((e={},t={})=>(t.locale??L())===`zh`?rr(e):nr(e)),ar=()=>`Image selected`,or=()=>`已选择图片`,sr=((e={},t={})=>(t.locale??L())===`zh`?or(e):ar(e)),cr=()=>`Your avatar`,lr=()=>`你的头像`,ur=((e={},t={})=>(t.locale??L())===`zh`?lr(e):cr(e)),dr=()=>`Your avatar preview`,fr=()=>`用户头像预览`,pr=((e={},t={})=>(t.locale??L())===`zh`?fr(e):dr(e)),mr=()=>`Couldn’t take a photo. Please try again.`,hr=()=>`拍照失败,请重试。`,gr=((e={},t={})=>(t.locale??L())===`zh`?hr(e):mr(e)),_r=()=>`Companion private chat`,vr=()=>`Companion 私聊`,yr=((e={},t={})=>(t.locale??L())===`zh`?vr(e):_r(e)),br=()=>`Close`,xr=()=>`关闭`,Sr=((e={},t={})=>(t.locale??L())===`zh`?xr(e):br(e)),Cr=()=>`Command suggestions`,wr=()=>`命令补全`,Tr=((e={},t={})=>(t.locale??L())===`zh`?wr(e):Cr(e)),Er=()=>`Conversation memory could not be organized right now.`,Dr=()=>`暂时无法整理对话`,Or=((e={},t={})=>(t.locale??L())===`zh`?Dr(e):Er(e)),kr=()=>`Organize conversation memory`,Ar=()=>`整理当前对话`,jr=((e={},t={})=>(t.locale??L())===`zh`?Ar(e):kr(e)),Mr=()=>`Organize memory to keep the conversation flowing`,Nr=()=>`整理记忆,让下一段对话自然接续`,Pr=((e={},t={})=>(t.locale??L())===`zh`?Nr(e):Mr(e)),Fr=()=>`Memory organized`,Ir=()=>`整理记忆已完成`,Lr=((e={},t={})=>(t.locale??L())===`zh`?Ir(e):Fr(e)),Rr=()=>`Memory wasn’t organized. You can keep chatting.`,zr=()=>`本次整理未完成,仍可继续对话`,Br=((e={},t={})=>(t.locale??L())===`zh`?zr(e):Rr(e)),Vr=()=>`Conversation memory organized`,Hr=()=>`已整理对话`,Ur=((e={},t={})=>(t.locale??L())===`zh`?Hr(e):Vr(e)),Wr=()=>`Organizing memory…`,Gr=()=>`正在整理记忆…`,Kr=((e={},t={})=>(t.locale??L())===`zh`?Gr(e):Wr(e)),qr=()=>`Open Companion`,Jr=()=>`打开 Companion`,Yr=((e={},t={})=>(t.locale??L())===`zh`?Jr(e):qr(e)),Xr=()=>`Write a message`,Zr=()=>`写消息`,Qr=((e={},t={})=>(t.locale??L())===`zh`?Zr(e):Xr(e)),$r=e=>`Message ${e?.name}…`,ei=e=>`写给 ${e?.name}…`,ti=((e,t={})=>(t.locale??L())===`zh`?ei(e):$r(e)),ni=()=>`Enter to send · Shift+Enter for a new line`,ri=()=>`Enter 发送 · Shift+Enter 换行`,ii=((e={},t={})=>(t.locale??L())===`zh`?ri(e):ni(e)),ai=()=>`Connection interrupted.`,oi=()=>`连接暂时中断`,si=((e={},t={})=>(t.locale??L())===`zh`?oi(e):ai(e)),ci=()=>`Conversation capacity`,li=()=>`对话容量`,ui=((e={},t={})=>(t.locale??L())===`zh`?li(e):ci(e)),di=e=>`Conversation capacity: ${e?.percentage}%`,fi=e=>`对话容量:${e?.percentage}%`,pi=((e,t={})=>(t.locale??L())===`zh`?fi(e):di(e)),mi=()=>`Queued`,hi=()=>`排队中`,gi=((e={},t={})=>(t.locale??L())===`zh`?hi(e):mi(e)),_i=()=>`Sending…`,vi=()=>`正在发送…`,yi=((e={},t={})=>(t.locale??L())===`zh`?vi(e):_i(e)),bi=()=>`Delivery not yet confirmed…`,xi=()=>`尚未确认送达…`,Si=((e={},t={})=>(t.locale??L())===`zh`?xi(e):bi(e)),Ci=()=>`Back to diary`,wi=()=>`返回日记`,Ti=((e={},t={})=>(t.locale??L())===`zh`?wi(e):Ci(e)),Ei=()=>`No diary entries yet.`,Di=()=>`还没有日记。`,Oi=((e={},t={})=>(t.locale??L())===`zh`?Di(e):Ei(e)),ki=()=>`The diary is unavailable right now.`,Ai=()=>`日记暂时无法读取。`,ji=((e={},t={})=>(t.locale??L())===`zh`?Ai(e):ki(e)),Mi=()=>`This diary entry is too large to display.`,Ni=()=>`这篇日记太长,暂时无法显示。`,Pi=((e={},t={})=>(t.locale??L())===`zh`?Ni(e):Mi(e)),Fi=()=>`Discard`,Ii=()=>`撤销`,Li=((e={},t={})=>(t.locale??L())===`zh`?Ii(e):Fi(e)),Ri=()=>`Diary`,zi=()=>`日记`,Bi=((e={},t={})=>(t.locale??L())===`zh`?zi(e):Ri(e)),Vi=()=>`Relationship`,Hi=()=>`关系历史`,Ui=((e={},t={})=>(t.locale??L())===`zh`?Hi(e):Vi(e)),Wi=()=>`More features`,Gi=()=>`更多功能`,Ki=((e={},t={})=>(t.locale??L())===`zh`?Gi(e):Wi(e)),qi=()=>`Open full DSH`,Ji=()=>`打开完整 DSH`,Yi=((e={},t={})=>(t.locale??L())===`zh`?Ji(e):qi(e)),Xi=()=>`Audio is unavailable. You can still read the text.`,Zi=()=>`语音暂时无法播放,文字内容仍可查看。`,Qi=((e={},t={})=>(t.locale??L())===`zh`?Zi(e):Xi(e)),$i=()=>`Remove the images before organizing memory.`,ea=()=>`整理时请先移除图片。`,ta=((e={},t={})=>(t.locale??L())===`zh`?ea(e):$i(e)),na=()=>`This image can’t be displayed right now.`,ra=()=>`图片暂时无法显示。`,ia=((e={},t={})=>(t.locale??L())===`zh`?ra(e):na(e)),aa=()=>`Your message wasn’t sent. It’s back in the message box.`,oa=()=>`没有发出去,内容已放回输入框。`,sa=((e={},t={})=>(t.locale??L())===`zh`?oa(e):aa(e)),ca=()=>`This message wasn’t sent. Please try again.`,la=()=>`这条消息没发出去,可以再试一次。`,ua=((e={},t={})=>(t.locale??L())===`zh`?la(e):ca(e)),da=()=>`Couldn’t stop the reply. Please try again.`,fa=()=>`暂时停不下来,请再试一次。`,pa=((e={},t={})=>(t.locale??L())===`zh`?fa(e):da(e)),ma=()=>`Messages could not be saved right now.`,ha=()=>`暂时无法保存消息。`,ga=((e={},t={})=>(t.locale??L())===`zh`?ha(e):ma(e)),_a=()=>`Closeness`,va=()=>`亲近度`,ya=((e={},t={})=>(t.locale??L())===`zh`?va(e):_a(e)),ba=()=>`After`,xa=()=>`变化后`,Sa=((e={},t={})=>(t.locale??L())===`zh`?xa(e):ba(e)),Ca=()=>`Before`,wa=()=>`变化前`,Ta=((e={},t={})=>(t.locale??L())===`zh`?wa(e):Ca(e)),Ea=()=>`Current relationship`,Da=()=>`当前关系`,Oa=((e={},t={})=>(t.locale??L())===`zh`?Da(e):Ea(e)),ka=()=>`Load earlier changes`,Aa=()=>`加载更早的变化`,ja=((e={},t={})=>(t.locale??L())===`zh`?Aa(e):ka(e)),Ma=()=>`No relationship changes have been recorded yet.`,Na=()=>`还没有记录过关系变化。`,Pa=((e={},t={})=>(t.locale??L())===`zh`?Na(e):Ma(e)),Fa=()=>`Relationship history is unavailable.`,Ia=()=>`关系记录暂时无法读取。`,La=((e={},t={})=>(t.locale??L())===`zh`?Ia(e):Fa(e)),Ra=()=>`Initial state`,za=()=>`初始状态`,Ba=((e={},t={})=>(t.locale??L())===`zh`?za(e):Ra(e)),Va=()=>`Changes`,Ha=()=>`变化记录`,Ua=((e={},t={})=>(t.locale??L())===`zh`?Ha(e):Va(e)),Wa=()=>`Earlier messages could not be loaded. Please try again.`,Ga=()=>`暂时无法加载更早消息,请重试。`,Ka=((e={},t={})=>(t.locale??L())===`zh`?Ga(e):Wa(e)),qa=()=>`Loading relationship history…`,Ja=()=>`正在加载关系记录…`,Ya=((e={},t={})=>(t.locale??L())===`zh`?Ja(e):qa(e)),Xa=()=>`Loading earlier changes…`,Za=()=>`正在加载更早的变化…`,Qa=((e={},t={})=>(t.locale??L())===`zh`?Za(e):Xa(e)),$a=()=>`Mood`,eo=()=>`状态`,to=((e={},t={})=>(t.locale??L())===`zh`?eo(e):$a(e)),no=()=>`View earlier messages`,ro=()=>`查看更早的消息`,io=((e={},t={})=>(t.locale??L())===`zh`?ro(e):no(e)),ao=()=>`Reason`,oo=()=>`原因`,so=((e={},t={})=>(t.locale??L())===`zh`?oo(e):ao(e)),co=()=>`Try again`,lo=()=>`重试`,uo=((e={},t={})=>(t.locale??L())===`zh`?lo(e):co(e)),fo=()=>`Signature`,po=()=>`签名`,mo=((e={},t={})=>(t.locale??L())===`zh`?po(e):fo(e)),ho=()=>`Relationship history`,go=()=>`关系变化记录`,_o=((e={},t={})=>(t.locale??L())===`zh`?go(e):ho(e)),vo=()=>`Choose a photo; hold to take one`,yo=()=>`选择照片;长按拍照`,bo=((e={},t={})=>(t.locale??L())===`zh`?yo(e):vo(e)),xo=()=>`Close full-size image`,So=()=>`关闭大图`,Co=((e={},t={})=>(t.locale??L())===`zh`?So(e):xo(e)),wo=()=>`Close image preview backdrop`,To=()=>`关闭图片预览背景`,Eo=((e={},t={})=>(t.locale??L())===`zh`?To(e):wo(e)),Do=e=>`Up to ${e?.count} images per message.`,Oo=e=>`一次最多 ${e?.count} 张图片。`,ko=((e,t={})=>(t.locale??L())===`zh`?Oo(e):Do(e)),Ao=()=>`Image generation didn’t finish.`,jo=()=>`图片生成没有完成。`,Mo=((e={},t={})=>(t.locale??L())===`zh`?jo(e):Ao(e)),No=()=>`Creating an image…`,Po=()=>`正在画一张图…`,Fo=((e={},t={})=>(t.locale??L())===`zh`?Po(e):No(e)),Io=()=>`Pending image`,Lo=()=>`待发送图片`,Ro=((e={},t={})=>(t.locale??L())===`zh`?Lo(e):Io(e)),zo=()=>`Image preview`,Bo=()=>`图片预览`,Vo=((e={},t={})=>(t.locale??L())===`zh`?Bo(e):zo(e)),Ho=()=>`Image preview`,Uo=()=>`预览图片`,Wo=((e={},t={})=>(t.locale??L())===`zh`?Uo(e):Ho(e)),Go=()=>`Remove image`,Ko=()=>`移除图片`,qo=((e={},t={})=>(t.locale??L())===`zh`?Ko(e):Go(e)),Jo=()=>`This image is too large.`,Yo=()=>`图片太大了。`,Xo=((e={},t={})=>(t.locale??L())===`zh`?Yo(e):Jo(e)),Zo=()=>`The images exceed the total size limit.`,Qo=()=>`图片总大小超出限制。`,$o=((e={},t={})=>(t.locale??L())===`zh`?Qo(e):Zo(e)),es=()=>`Only PNG, JPEG, WebP, and GIF are supported.`,ts=()=>`只支持 PNG、JPEG、WebP 或 GIF。`,ns=((e={},t={})=>(t.locale??L())===`zh`?ts(e):es(e)),rs=()=>`Images can’t be sent right now.`,is=()=>`当前无法发送图片。`,as=((e={},t={})=>(t.locale??L())===`zh`?is(e):rs(e)),os=e=>`View full-size image: ${e?.name}`,ss=e=>`查看大图:${e?.name}`,cs=((e,t={})=>(t.locale??L())===`zh`?ss(e):os(e)),ls=e=>`Keet could not recover messages ${e?.ranges}; affected group context was cleared.`,us=e=>`Keet 未能恢复消息 ${e?.ranges};受影响的群组上下文已清除。`,ds=((e,t={})=>(t.locale??L())===`zh`?us(e):ls(e)),fs=()=>`Loading…`,ps=()=>`加载中…`,ms=((e={},t={})=>(t.locale??L())===`zh`?ps(e):fs(e)),hs=()=>`Loading`,gs=()=>`正在加载`,_s=((e={},t={})=>(t.locale??L())===`zh`?gs(e):hs(e)),vs=()=>`Loading…`,ys=()=>`正在加载…`,bs=((e={},t={})=>(t.locale??L())===`zh`?ys(e):vs(e)),xs=()=>`This message is invalid. Check its text and images, then try again.`,Ss=()=>`消息内容无效,请检查文字长度和图片后重新发送。`,Cs=((e={},t={})=>(t.locale??L())===`zh`?Ss(e):xs(e)),ws=()=>`Send message`,Ts=()=>`发送消息`,Es=((e={},t={})=>(t.locale??L())===`zh`?Ts(e):ws(e)),Ds=e=>`Message too long (${e?.count}/${e?.limit}). Shorten it before sending; your draft is kept.`,Os=e=>`消息过长(${e?.count}/${e?.limit}),请缩短后发送;草稿已保留。`,ks=((e,t={})=>(t.locale??L())===`zh`?Os(e):Ds(e)),As=()=>`Delivery has not been confirmed. Please try again.`,js=()=>`尚未确认送达,请重试。`,Ms=((e={},t={})=>(t.locale??L())===`zh`?js(e):As(e)),Ns=()=>`Delivery has not been confirmed. Check the pending draft in the conversation.`,Ps=()=>`尚未确认送达,请检查对话中的待确认草稿。`,Fs=((e={},t={})=>(t.locale??L())===`zh`?Ps(e):Ns(e)),Is=()=>`New messages ↓`,Ls=()=>`有新消息 ↓`,Rs=((e={},t={})=>(t.locale??L())===`zh`?Ls(e):Is(e)),zs=()=>`Cheerful`,Bs=()=>`愉快`,Vs=((e={},t={})=>(t.locale??L())===`zh`?Bs(e):zs(e)),Hs=()=>`Current mood`,Us=()=>`此刻状态`,Ws=((e={},t={})=>(t.locale??L())===`zh`?Us(e):Hs(e)),Gs=()=>`Low`,Ks=()=>`低落`,qs=((e={},t={})=>(t.locale??L())===`zh`?Ks(e):Gs(e)),Js=()=>`As usual`,Ys=()=>`如常`,Xs=((e={},t={})=>(t.locale??L())===`zh`?Ys(e):Js(e)),Zs=()=>`Mood note`,Qs=()=>`状态短句`,$s=((e={},t={})=>(t.locale??L())===`zh`?Qs(e):Zs(e)),ec=()=>`Thoughtful`,tc=()=>`若有所思`,nc=((e={},t={})=>(t.locale??L())===`zh`?tc(e):ec(e)),rc=()=>`Playful`,ic=()=>`俏皮`,ac=((e={},t={})=>(t.locale??L())===`zh`?ic(e):rc(e)),oc=()=>`Calm`,sc=()=>`平静`,cc=((e={},t={})=>(t.locale??L())===`zh`?sc(e):oc(e)),lc=()=>`Tender`,uc=()=>`柔和`,dc=((e={},t={})=>(t.locale??L())===`zh`?uc(e):lc(e)),fc=()=>`Tired`,pc=()=>`疲惫`,mc=((e={},t={})=>(t.locale??L())===`zh`?pc(e):fc(e)),hc=()=>`Dark`,gc=()=>`深色`,_c=((e={},t={})=>(t.locale??L())===`zh`?gc(e):hc(e)),vc=()=>`Language`,yc=()=>`语言`,bc=((e={},t={})=>(t.locale??L())===`zh`?yc(e):vc(e)),xc=()=>`Light`,Sc=()=>`浅色`,Cc=((e={},t={})=>(t.locale??L())===`zh`?Sc(e):xc(e)),wc=()=>`Appearance and language`,Tc=()=>`外观与语言`,Ec=((e={},t={})=>(t.locale??L())===`zh`?Tc(e):wc(e)),Dc=()=>`System`,Oc=()=>`跟随系统`,kc=((e={},t={})=>(t.locale??L())===`zh`?Oc(e):Dc(e)),Ac=()=>`Appearance`,jc=()=>`外观`,Mc=((e={},t={})=>(t.locale??L())===`zh`?jc(e):Ac(e)),Nc=()=>`Reconnect`,Pc=()=>`重新连接`,Fc=((e={},t={})=>(t.locale??L())===`zh`?Pc(e):Nc(e)),Ic=()=>`Close relationship details`,Lc=()=>`关闭关系资料`,Rc=((e={},t={})=>(t.locale??L())===`zh`?Lc(e):Ic(e)),zc=()=>`Current relationship`,Bc=()=>`当前关系`,Vc=((e={},t={})=>(t.locale??L())===`zh`?Bc(e):zc(e)),Hc=()=>`Relationship details unavailable`,Uc=()=>`关系资料暂时打不开`,Wc=((e={},t={})=>(t.locale??L())===`zh`?Uc(e):Hc(e)),Gc=e=>`${e?.name}’s relationship details`,Kc=e=>`${e?.name}的关系资料`,qc=((e,t={})=>(t.locale??L())===`zh`?Kc(e):Gc(e)),Jc=()=>`Your workspace is still here. Continue when the connection returns.`,Yc=()=>`聊天空间还在,连接恢复后可以继续。`,Xc=((e={},t={})=>(t.locale??L())===`zh`?Yc(e):Jc(e)),Zc=()=>`Couldn’t update the relationship.`,Qc=()=>`关系更新失败。`,$c=((e={},t={})=>(t.locale??L())===`zh`?Qc(e):Zc(e)),el=()=>`View Companion relationship`,tl=()=>`查看 Companion 关系资料`,nl=((e={},t={})=>(t.locale??L())===`zh`?tl(e):el(e)),rl=()=>`This reply did not finish.`,il=()=>`这次未能回应。`,al=((e={},t={})=>(t.locale??L())===`zh`?il(e):rl(e)),ol=()=>`Replying`,sl=()=>`正在回复`,cl=((e={},t={})=>(t.locale??L())===`zh`?sl(e):ol(e)),ll=()=>`Stop current reply`,ul=()=>`停止当前回复`,dl=((e={},t={})=>(t.locale??L())===`zh`?ul(e):ll(e)),fl=()=>`This reply was stopped.`,pl=()=>`这次回应已停止。`,ml=((e={},t={})=>(t.locale??L())===`zh`?pl(e):fl(e)),hl=()=>`Couldn’t reset closeness.`,gl=()=>`重置失败。`,_l=((e={},t={})=>(t.locale??L())===`zh`?gl(e):hl(e)),vl=()=>`Retry`,yl=()=>`重试`,bl=((e={},t={})=>(t.locale??L())===`zh`?yl(e):vl(e)),xl=()=>`Save`,Sl=()=>`保存`,Cl=((e={},t={})=>(t.locale??L())===`zh`?Sl(e):xl(e)),wl=()=>`Conversation unavailable`,Tl=()=>`这段对话暂时打不开`,El=((e={},t={})=>(t.locale??L())===`zh`?Tl(e):wl(e)),Dl=()=>`New conversation`,Ol=()=>`新对话`,kl=((e={},t={})=>(t.locale??L())===`zh`?Ol(e):Dl(e)),Al=()=>`No conversations to continue yet`,jl=()=>`还没有可以继续的对话`,Ml=((e={},t={})=>(t.locale??L())===`zh`?jl(e):Al(e)),Nl=()=>`Your messages are kept. Continue when the connection returns, or check the status in DSH.`,Pl=()=>`你的消息不会被悄悄丢掉。连接恢复后可以继续,或回到 DSH 检查状态。`,Fl=((e={},t={})=>(t.locale??L())===`zh`?Pl(e):Nl(e)),Il=e=>`Switch to conversation: ${e?.title}`,Ll=e=>`切换到对话:${e?.title}`,Rl=((e,t={})=>(t.locale??L())===`zh`?Ll(e):Il(e)),zl=()=>`Untitled conversation`,Bl=()=>`未命名对话`,Vl=((e={},t={})=>(t.locale??L())===`zh`?Bl(e):zl(e)),Hl=()=>`How Companion addresses you`,Ul=()=>`Companion 对你的称呼`,Wl=((e={},t={})=>(t.locale??L())===`zh`?Ul(e):Hl(e)),Gl=()=>`For example, “Alex”. Used when Companion greets or addresses you.`,Kl=()=>`例如“小岛”;用于 Companion 对你的问候和称呼。`,ql=((e={},t={})=>(t.locale??L())===`zh`?Kl(e):Gl(e)),Jl=()=>`Couldn’t update closeness.`,Yl=()=>`亲近度更新失败。`,Xl=((e={},t={})=>(t.locale??L())===`zh`?Yl(e):Jl(e)),Zl=()=>`Closeness must be a whole number from 0 to 100.`,Ql=()=>`亲近度必须是 0 到 100 的整数。`,$l=((e={},t={})=>(t.locale??L())===`zh`?Ql(e):Zl(e)),eu=()=>`Closeness updated`,tu=()=>`亲近度已更新`,nu=((e={},t={})=>(t.locale??L())===`zh`?tu(e):eu(e)),ru=()=>`Collapse Companion chat settings`,iu=()=>`收起:Companion 日常聊天`,au=((e={},t={})=>(t.locale??L())===`zh`?iu(e):ru(e)),ou=()=>`Companion name`,su=()=>`Companion 名称`,cu=((e={},t={})=>(t.locale??L())===`zh`?su(e):ou(e)),lu=()=>`Default closeness for new relationships (0–100)`,uu=()=>`新关系的默认亲近度(0–100)`,du=((e={},t={})=>(t.locale??L())===`zh`?uu(e):lu(e)),fu=()=>`Used when a relationship is first created or explicitly reset.`,pu=()=>`只在首次创建或显式重置时使用。`,mu=((e={},t={})=>(t.locale??L())===`zh`?pu(e):fu(e)),hu=()=>`One workspace, two identities, and an ongoing relationship`,gu=()=>`一个 Workspace、两个身份和一段持续的关系`,_u=((e={},t={})=>(t.locale??L())===`zh`?gu(e):hu(e)),vu=()=>`Unsaved changes discarded`,yu=()=>`已撤销未保存的更改`,bu=((e={},t={})=>(t.locale??L())===`zh`?yu(e):vu(e)),xu=()=>`Expand Companion chat settings`,Su=()=>`展开:Companion 日常聊天`,Cu=((e={},t={})=>(t.locale??L())===`zh`?Su(e):xu(e)),wu=()=>`Couldn’t save. Check the settings and try again.`,Tu=()=>`保存失败,请检查设置后重试。`,Eu=((e={},t={})=>(t.locale??L())===`zh`?Tu(e):wu(e)),Du=()=>`Up to 80 characters.`,Ou=()=>`最多 80 个字符。`,ku=((e={},t={})=>(t.locale??L())===`zh`?Ou(e):Du(e)),Au=()=>`Open settings`,ju=()=>`去设置`,Mu=((e={},t={})=>(t.locale??L())===`zh`?ju(e):Au(e)),Nu=()=>`Settings are read-only`,Pu=()=>`当前设置为只读`,Fu=((e={},t={})=>(t.locale??L())===`zh`?Pu(e):Nu(e)),Iu=()=>`These settings are read-only. Changes cannot be saved.`,Lu=()=>`当前设置为只读,暂时不能保存更改。`,Ru=((e={},t={})=>(t.locale??L())===`zh`?Lu(e):Iu(e)),zu=()=>`The host rejected these changes. Your draft is kept; check it and try again.`,Bu=()=>`保存未被 Host 接受;你的更改仍保留在此处,可以检查后重试。`,Vu=((e={},t={})=>(t.locale??L())===`zh`?Bu(e):zu(e)),Hu=()=>`Saved`,Uu=()=>`已保存`,Wu=((e={},t={})=>(t.locale??L())===`zh`?Uu(e):Hu(e)),Gu=()=>`Saving…`,Ku=()=>`正在保存…`,qu=((e={},t={})=>(t.locale??L())===`zh`?Ku(e):Gu(e)),Ju=()=>`Companion chat`,Yu=()=>`Companion 日常聊天`,Xu=((e={},t={})=>(t.locale??L())===`zh`?Yu(e):Ju(e)),Zu=()=>`Unsaved`,Qu=()=>`未保存`,$u=((e={},t={})=>(t.locale??L())===`zh`?Qu(e):Zu(e)),ed=()=>`Your display name`,td=()=>`你的显示名称`,nd=((e={},t={})=>(t.locale??L())===`zh`?td(e):ed(e)),rd=()=>`Close conversations`,id=()=>`关闭对话列表`,ad=((e={},t={})=>(t.locale??L())===`zh`?id(e):rd(e)),od=()=>`Close sidebar`,sd=()=>`关闭侧栏`,cd=((e={},t={})=>(t.locale??L())===`zh`?sd(e):od(e)),ld=()=>`Collapse conversations`,ud=()=>`收起对话列表`,dd=((e={},t={})=>(t.locale??L())===`zh`?ud(e):ld(e)),fd=()=>`Expand conversations`,pd=()=>`展开对话列表`,md=((e={},t={})=>(t.locale??L())===`zh`?pd(e):fd(e)),hd=()=>`Conversations`,gd=()=>`对话列表`,_d=((e={},t={})=>(t.locale??L())===`zh`?gd(e):hd(e)),vd=()=>`Show conversations`,yd=()=>`显示对话列表`,bd=((e={},t={})=>(t.locale??L())===`zh`?yd(e):vd(e)),xd=()=>`Our conversations`,Sd=()=>`我们的对话`,Cd=((e={},t={})=>(t.locale??L())===`zh`?Sd(e):xd(e)),wd=()=>`Clear signature`,Td=()=>`清除签名`,Ed=((e={},t={})=>(t.locale??L())===`zh`?Td(e):wd(e)),Dd=()=>`Signature cleared`,Od=()=>`签名已清除`,kd=((e={},t={})=>(t.locale??L())===`zh`?Od(e):Dd(e)),Ad=()=>`No signature yet`,jd=()=>`还没有签名`,Md=((e={},t={})=>(t.locale??L())===`zh`?jd(e):Ad(e)),Nd=()=>`Couldn’t clear the signature.`,Pd=()=>`签名清除失败。`,Fd=((e={},t={})=>(t.locale??L())===`zh`?Pd(e):Nd(e)),Id=()=>`Connecting…`,Ld=()=>`连接中…`,Rd=((e={},t={})=>(t.locale??L())===`zh`?Ld(e):Id(e)),zd=e=>`${e?.name} is typing`,Bd=e=>`${e?.name}正在输入`,Vd=((e,t={})=>(t.locale??L())===`zh`?Bd(e):zd(e)),Hd=()=>`Offline`,Ud=()=>`离线`,Wd=((e={},t={})=>(t.locale??L())===`zh`?Ud(e):Hd(e)),Gd=()=>`Online`,Kd=()=>`在线`,qd=((e={},t={})=>(t.locale??L())===`zh`?Kd(e):Gd(e)),Jd=()=>`Typing…`,Yd=()=>`正在输入…`,Xd=((e={},t={})=>(t.locale??L())===`zh`?Yd(e):Jd(e)),Zd=()=>`Recording stopped at the 5-minute limit. Try a shorter message.`,Qd=()=>`录音最长 5 分钟,已停止;请说短一点再试。`,$d=((e={},t={})=>(t.locale??L())===`zh`?Qd(e):Zd(e)),ef=()=>`No audio was recorded. Please try again.`,tf=()=>`没有录到声音,请再试一次。`,nf=((e={},t={})=>(t.locale??L())===`zh`?tf(e):ef(e)),rf=()=>`Voice is unavailable right now. Please try again.`,af=()=>`语音暂时无法使用,请再试一次。`,of=((e={},t={})=>(t.locale??L())===`zh`?af(e):rf(e)),sf=()=>`To use voice, install and configure a speech service.`,cf=()=>`语音功能不可用,请安装并配置 语音服务。`,lf=((e={},t={})=>(t.locale??L())===`zh`?cf(e):sf(e)),uf=()=>`Microphone recording unavailable`,df=()=>`麦克风录音不可用`,ff=((e={},t={})=>(t.locale??L())===`zh`?df(e):uf(e)),pf=()=>`Pause audio`,mf=()=>`暂停语音`,hf=((e={},t={})=>(t.locale??L())===`zh`?mf(e):pf(e)),gf=()=>`Microphone access was denied. Allow access and try again.`,_f=()=>`麦克风权限被拒绝,请允许后重试。`,vf=((e={},t={})=>(t.locale??L())===`zh`?_f(e):gf(e)),yf=()=>`Play audio`,bf=()=>`播放语音`,xf=((e={},t={})=>(t.locale??L())===`zh`?bf(e):yf(e)),Sf=()=>`Playback failed`,Cf=()=>`播放失败`,wf=((e={},t={})=>(t.locale??L())===`zh`?Cf(e):Sf(e)),Tf=()=>`Audio player`,Ef=()=>`语音播放器`,Df=((e={},t={})=>(t.locale??L())===`zh`?Ef(e):Tf(e)),Of=()=>`Preparing audio`,kf=()=>`正在准备语音`,Af=((e={},t={})=>(t.locale??L())===`zh`?kf(e):Of(e)),jf=()=>`Audio progress`,Mf=()=>`语音进度`,Nf=((e={},t={})=>(t.locale??L())===`zh`?Mf(e):jf(e)),Pf=e=>`Recording · ${e?.elapsed} / 05:00`,Ff=e=>`正在录音 · ${e?.elapsed} / 05:00`,If=((e,t={})=>(t.locale??L())===`zh`?Ff(e):Pf(e)),Lf=()=>`Retry audio`,Rf=()=>`重试语音`,zf=((e={},t={})=>(t.locale??L())===`zh`?Rf(e):Lf(e)),Bf=()=>`Use a secure connection to access the microphone.`,Vf=()=>`请在安全连接中使用麦克风。`,Hf=((e={},t={})=>(t.locale??L())===`zh`?Vf(e):Bf(e)),Uf=()=>`Voice message sent.`,Wf=()=>`语音消息已发送。`,Gf=((e={},t={})=>(t.locale??L())===`zh`?Wf(e):Uf(e)),Kf=()=>`The recording is too large. Try a shorter message.`,qf=()=>`录音超过语音大小限制,请说短一点再试。`,Jf=((e={},t={})=>(t.locale??L())===`zh`?qf(e):Kf(e)),Yf=()=>`Start recording`,Xf=()=>`开始录音`,Zf=((e={},t={})=>(t.locale??L())===`zh`?Xf(e):Yf(e)),Qf=()=>`Stop recording`,$f=()=>`结束录音`,ep=((e={},t={})=>(t.locale??L())===`zh`?$f(e):Qf(e)),tp=()=>`Stopping recording…`,np=()=>`正在结束录音…`,rp=((e={},t={})=>(t.locale??L())===`zh`?np(e):tp(e)),ip=()=>`Transcribing audio`,ap=()=>`正在转写语音`,op=((e={},t={})=>(t.locale??L())===`zh`?ap(e):ip(e)),sp=()=>`Transcribing audio…`,cp=()=>`正在转写语音…`,lp=((e={},t={})=>(t.locale??L())===`zh`?cp(e):sp(e)),up=()=>`Transcript`,dp=()=>`转文字`,fp=((e={},t={})=>(t.locale??L())===`zh`?dp(e):up(e)),pp=()=>`Transcription is unavailable. Please try again.`,mp=()=>`语音转写暂时不可用,请再试一次。`,hp=((e={},t={})=>(t.locale??L())===`zh`?mp(e):pp(e)),gp=()=>`Microphone recording is unavailable in this environment.`,_p=()=>`当前环境不支持麦克风录音。`,vp=((e={},t={})=>(t.locale??L())===`zh`?_p(e):gp(e)),yp=()=>`No speech was recognized. Please try again.`,bp=()=>`没有听清内容,请再试一次。`,xp=((e={},t={})=>(t.locale??L())===`zh`?bp(e):yp(e)),Sp=()=>`This browser doesn’t support recording.`,Cp=()=>`当前浏览器不支持录音。`,wp=((e={},t={})=>(t.locale??L())===`zh`?Cp(e):Sp(e)),Tp=()=>`Voice is getting ready. Please wait.`,Ep=()=>`语音功能正在准备,请稍候。`,Dp=((e={},t={})=>(t.locale??L())===`zh`?Ep(e):Tp(e)),Op=()=>`I’m giving this some thought. Thank you for waiting.`,kp=()=>`这次想认真一点,不让你久等`,Ap=((e={},t={})=>(t.locale??L())===`zh`?kp(e):Op(e)),jp=()=>`I’m here, thinking about how best to say it.`,Mp=()=>`我在这里,只是还在想怎么说更好`,Np=((e={},t={})=>(t.locale??L())===`zh`?Mp(e):jp(e)),Pp=()=>`Just a little longer. I’ll be back soon.`,Fp=()=>`再给我一点点时间,很快就回来`,Ip=((e={},t={})=>(t.locale??L())===`zh`?Fp(e):Pp(e)),Lp=()=>`I’m still thinking. Stay with me a little longer.`,Rp=()=>`我还在认真想,陪我再等一小会儿呀`,zp=((e={},t={})=>(t.locale??L())===`zh`?Rp(e):Lp(e)),Bp=()=>`Finding the right words…`,Vp=()=>`正在把想说的话轻轻理好……`,Hp=((e={},t={})=>(t.locale??L())===`zh`?Vp(e):Bp(e)),Up=e=>`Hi, ${e?.name}`,Wp=e=>`嗨,${e?.name}`,Gp=((e,t={})=>(t.locale??L())===`zh`?Wp(e):Up(e)),Kp=()=>`What would you like to talk about today?`,qp=()=>`今天想聊点什么?`,Jp=((e={},t={})=>(t.locale??L())===`zh`?qp(e):Kp(e)),Yp=()=>`Choose a workspace in DSH settings to start chatting.`,Xp=()=>`请在 DSH 设置中选择一个 Workspace。我们不会替你自动切换。`,Zp=((e={},t={})=>(t.locale??L())===`zh`?Xp(e):Yp(e)),Qp=()=>`No workspace selected`,$p=()=>`还没有设置聊天空间`,em=((e={},t={})=>(t.locale??L())===`zh`?$p(e):Qp(e)),tm=()=>`Workspace unavailable`,nm=()=>`聊天空间暂时打不开`,rm=((e={},t={})=>(t.locale??L())===`zh`?nm(e):tm(e)),im=()=>`Companion uses the workspace selected here.`,am=()=>`Companion 只会使用这里选择的 Workspace。`,om=((e={},t={})=>(t.locale??L())===`zh`?am(e):im(e)),sm=()=>`Loading workspaces…`,cm=()=>`正在加载 Workspace…`,lm=((e={},t={})=>(t.locale??L())===`zh`?cm(e):sm(e)),um=()=>`The selected workspace no longer exists. Choose another one.`,dm=()=>`之前选择的 Workspace 已不存在,请重新选择。`,fm=((e={},t={})=>(t.locale??L())===`zh`?dm(e):um(e)),pm=()=>`No workspaces available`,mm=()=>`还没有可用的 Workspace`,hm=((e={},t={})=>(t.locale??L())===`zh`?mm(e):pm(e)),gm=()=>`Check the connection in DSH settings, then try again.`,_m=()=>`请回到 DSH 设置检查连接,然后再试一次。`,vm=((e={},t={})=>(t.locale??L())===`zh`?_m(e):gm(e)),ym=()=>`Select a Companion workspace first.`,bm=()=>`请先配置 Companion Workspace。`,xm=((e={},t={})=>(t.locale??L())===`zh`?bm(e):ym(e)),Sm=()=>`Select a workspace`,Cm=()=>`请选择 Workspace`,wm=((e={},t={})=>(t.locale??L())===`zh`?Cm(e):Sm(e)),Tm=()=>`Choose a workspace in DSH settings`,Em=()=>`去 DSH 设置选择聊天空间`,Dm=((e={},t={})=>(t.locale??L())===`zh`?Em(e):Tm(e)),Om=()=>`You`,km=()=>`你`,Am=((e={},t={})=>(t.locale??L())===`zh`?km(e):Om(e)),jm=je({"affinity.adjust":()=>Zt,"affinity.close":()=>en,"affinity.deep":()=>rn,"affinity.distant":()=>sn,"affinity.familiar":()=>un,"affinity.hint":()=>pn,"affinity.label":()=>gn,"affinity.reset":()=>yn,"affinity.unfamiliar":()=>Sn,apply:()=>Tn,"avatar.choose":()=>On,"avatar.companion":()=>jn,"avatar.companionPreview":()=>Pn,"avatar.decodeFailed":()=>Ln,"avatar.dimensions":()=>Bn,"avatar.format":()=>Un,"avatar.hint":()=>Kn,"avatar.invalid":()=>Yn,"avatar.none":()=>Qn,"avatar.readFailed":()=>tr,"avatar.ready":()=>ir,"avatar.selected":()=>sr,"avatar.user":()=>ur,"avatar.userPreview":()=>pr,"camera.failed":()=>gr,"chat.label":()=>yr,close:()=>Sr,"command.label":()=>Tr,"compact.admissionFailed":()=>Or,"compact.command":()=>jr,"compact.description":()=>Pr,"compact.done":()=>Lr,"compact.failed":()=>Br,"compact.record":()=>Ur,"compact.running":()=>Kr,"companion.open":()=>Yr,"composer.label":()=>Qr,"composer.placeholder":()=>ti,"composer.shortcut":()=>ii,"connection.interrupted":()=>si,"context.label":()=>ui,"context.percentage":()=>pi,"delivery.queued":()=>gi,"delivery.sending":()=>yi,"delivery.unresolved":()=>Si,"diary.back":()=>Ti,"diary.empty":()=>Oi,"diary.failed":()=>ji,"diary.tooLarge":()=>Pi,discard:()=>Li,"drawer.diary":()=>Bi,"drawer.history":()=>Ui,"dsh.more":()=>Ki,"dsh.open":()=>Yi,"error.audio":()=>Qi,"error.compactImages":()=>ta,"error.image":()=>ia,"error.restored":()=>sa,"error.send":()=>ua,"error.stop":()=>pa,"error.storage":()=>ga,"history.affinity":()=>ya,"history.after":()=>Sa,"history.before":()=>Ta,"history.current":()=>Oa,"history.earlier":()=>ja,"history.empty":()=>Pa,"history.failed":()=>La,"history.initial":()=>Ba,"history.list":()=>Ua,"history.loadFailed":()=>Ka,"history.loading":()=>Ya,"history.loadingEarlier":()=>Qa,"history.mood":()=>to,"history.older":()=>io,"history.reason":()=>so,"history.retry":()=>uo,"history.signature":()=>mo,"history.title":()=>_o,"image.choose":()=>bo,"image.close":()=>Co,"image.closeBackdrop":()=>Eo,"image.countLimit":()=>ko,"image.failed":()=>Mo,"image.generating":()=>Fo,"image.pending":()=>Ro,"image.preview":()=>Vo,"image.previewAlt":()=>Wo,"image.remove":()=>qo,"image.tooLarge":()=>Xo,"image.totalTooLarge":()=>$o,"image.types":()=>ns,"image.unavailable":()=>as,"image.view":()=>cs,"keet.recoveryLoss":()=>ds,loading:()=>ms,"loading.label":()=>_s,"loading.progress":()=>bs,"message.invalid":()=>Cs,"message.send":()=>Es,"message.tooLong":()=>ks,"message.unconfirmed":()=>Ms,"message.unconfirmedDraft":()=>Fs,"messages.new":()=>Rs,"mood.bright":()=>Vs,"mood.label":()=>Ws,"mood.low":()=>qs,"mood.neutral":()=>Xs,"mood.note":()=>$s,"mood.pensive":()=>nc,"mood.playful":()=>ac,"mood.serene":()=>cc,"mood.tender":()=>dc,"mood.tired":()=>mc,"preferences.dark":()=>_c,"preferences.language":()=>bc,"preferences.light":()=>Cc,"preferences.open":()=>Ec,"preferences.system":()=>kc,"preferences.theme":()=>Mc,reconnect:()=>Fc,"relationship.close":()=>Rc,"relationship.current":()=>Vc,"relationship.failed":()=>Wc,"relationship.named":()=>qc,"relationship.reconnectHint":()=>Xc,"relationship.updateFailed":()=>$c,"relationship.view":()=>nl,"reply.failed":()=>al,"reply.running":()=>cl,"reply.stop":()=>dl,"reply.stopped":()=>ml,"reset.failed":()=>_l,retry:()=>bl,save:()=>Cl,"session.failed":()=>El,"session.new":()=>kl,"session.none":()=>Ml,"session.reconnectHint":()=>Fl,"session.switch":()=>Rl,"session.untitled":()=>Vl,"settings.address":()=>Wl,"settings.addressHint":()=>ql,"settings.affinityFailed":()=>Xl,"settings.affinityInvalid":()=>$l,"settings.affinityUpdated":()=>nu,"settings.collapse":()=>au,"settings.companionName":()=>cu,"settings.defaultAffinity":()=>du,"settings.defaultAffinityHint":()=>mu,"settings.description":()=>_u,"settings.discarded":()=>bu,"settings.expand":()=>Cu,"settings.failed":()=>Eu,"settings.nameLimit":()=>ku,"settings.open":()=>Mu,"settings.readOnly":()=>Fu,"settings.readOnlyHint":()=>Ru,"settings.rejected":()=>Vu,"settings.saved":()=>Wu,"settings.saving":()=>qu,"settings.title":()=>Xu,"settings.unsaved":()=>$u,"settings.userName":()=>nd,"sidebar.close":()=>ad,"sidebar.closePanel":()=>cd,"sidebar.collapse":()=>dd,"sidebar.expand":()=>md,"sidebar.label":()=>_d,"sidebar.show":()=>bd,"sidebar.title":()=>Cd,"signature.clear":()=>Ed,"signature.cleared":()=>kd,"signature.empty":()=>Md,"signature.failed":()=>Fd,"status.connecting":()=>Rd,"status.namedTyping":()=>Vd,"status.offline":()=>Wd,"status.online":()=>qd,"status.typing":()=>Xd,"voice.duration":()=>$d,"voice.empty":()=>nf,"voice.failed":()=>of,"voice.install":()=>lf,"voice.micUnavailable":()=>ff,"voice.pause":()=>hf,"voice.permission":()=>vf,"voice.play":()=>xf,"voice.playFailed":()=>wf,"voice.player":()=>Df,"voice.preparing":()=>Af,"voice.progress":()=>Nf,"voice.recording":()=>If,"voice.retry":()=>zf,"voice.secure":()=>Hf,"voice.sent":()=>Gf,"voice.size":()=>Jf,"voice.start":()=>Zf,"voice.stop":()=>ep,"voice.stopping":()=>rp,"voice.transcribing":()=>op,"voice.transcribingProgress":()=>lp,"voice.transcript":()=>fp,"voice.transcriptionFailed":()=>hp,"voice.unavailable":()=>vp,"voice.unclear":()=>xp,"voice.unsupported":()=>wp,"voice.wait":()=>Dp,"wait.care":()=>Ap,"wait.here":()=>Np,"wait.soon":()=>Ip,"wait.thinking":()=>zp,"wait.words":()=>Hp,"welcome.greeting":()=>Gp,"welcome.prompt":()=>Jp,"workspace.chooseHint":()=>Zp,"workspace.empty":()=>em,"workspace.failed":()=>rm,"workspace.hint":()=>om,"workspace.loading":()=>lm,"workspace.missing":()=>fm,"workspace.none":()=>hm,"workspace.reconnectHint":()=>vm,"workspace.required":()=>xm,"workspace.select":()=>wm,"workspace.settingsLabel":()=>Dm,you:()=>Am}),Mm=je({"affinity.adjust":()=>Zt,"affinity.close":()=>en,"affinity.deep":()=>rn,"affinity.distant":()=>sn,"affinity.familiar":()=>un,"affinity.hint":()=>pn,"affinity.label":()=>gn,"affinity.reset":()=>yn,"affinity.unfamiliar":()=>Sn,apply:()=>Tn,"avatar.choose":()=>On,"avatar.companion":()=>jn,"avatar.companionPreview":()=>Pn,"avatar.decodeFailed":()=>Ln,"avatar.dimensions":()=>Bn,"avatar.format":()=>Un,"avatar.hint":()=>Kn,"avatar.invalid":()=>Yn,"avatar.none":()=>Qn,"avatar.readFailed":()=>tr,"avatar.ready":()=>ir,"avatar.selected":()=>sr,"avatar.user":()=>ur,"avatar.userPreview":()=>pr,"camera.failed":()=>gr,"chat.label":()=>yr,close:()=>Sr,"command.label":()=>Tr,"compact.admissionFailed":()=>Or,"compact.command":()=>jr,"compact.description":()=>Pr,"compact.done":()=>Lr,"compact.failed":()=>Br,"compact.record":()=>Ur,"compact.running":()=>Kr,"companion.open":()=>Yr,"composer.label":()=>Qr,"composer.placeholder":()=>ti,"composer.shortcut":()=>ii,"connection.interrupted":()=>si,"context.label":()=>ui,"context.percentage":()=>pi,"delivery.queued":()=>gi,"delivery.sending":()=>yi,"delivery.unresolved":()=>Si,"diary.back":()=>Ti,"diary.empty":()=>Oi,"diary.failed":()=>ji,"diary.tooLarge":()=>Pi,discard:()=>Li,"drawer.diary":()=>Bi,"drawer.history":()=>Ui,"dsh.more":()=>Ki,"dsh.open":()=>Yi,"error.audio":()=>Qi,"error.compactImages":()=>ta,"error.image":()=>ia,"error.restored":()=>sa,"error.send":()=>ua,"error.stop":()=>pa,"error.storage":()=>ga,"history.affinity":()=>ya,"history.after":()=>Sa,"history.before":()=>Ta,"history.current":()=>Oa,"history.earlier":()=>ja,"history.empty":()=>Pa,"history.failed":()=>La,"history.initial":()=>Ba,"history.list":()=>Ua,"history.loadFailed":()=>Ka,"history.loading":()=>Ya,"history.loadingEarlier":()=>Qa,"history.mood":()=>to,"history.older":()=>io,"history.reason":()=>so,"history.retry":()=>uo,"history.signature":()=>mo,"history.title":()=>_o,"image.choose":()=>bo,"image.close":()=>Co,"image.closeBackdrop":()=>Eo,"image.countLimit":()=>ko,"image.failed":()=>Mo,"image.generating":()=>Fo,"image.pending":()=>Ro,"image.preview":()=>Vo,"image.previewAlt":()=>Wo,"image.remove":()=>qo,"image.tooLarge":()=>Xo,"image.totalTooLarge":()=>$o,"image.types":()=>ns,"image.unavailable":()=>as,"image.view":()=>cs,"keet.recoveryLoss":()=>ds,loading:()=>ms,"loading.label":()=>_s,"loading.progress":()=>bs,m:()=>jm,"message.invalid":()=>Cs,"message.send":()=>Es,"message.tooLong":()=>ks,"message.unconfirmed":()=>Ms,"message.unconfirmedDraft":()=>Fs,"messages.new":()=>Rs,"mood.bright":()=>Vs,"mood.label":()=>Ws,"mood.low":()=>qs,"mood.neutral":()=>Xs,"mood.note":()=>$s,"mood.pensive":()=>nc,"mood.playful":()=>ac,"mood.serene":()=>cc,"mood.tender":()=>dc,"mood.tired":()=>mc,"preferences.dark":()=>_c,"preferences.language":()=>bc,"preferences.light":()=>Cc,"preferences.open":()=>Ec,"preferences.system":()=>kc,"preferences.theme":()=>Mc,reconnect:()=>Fc,"relationship.close":()=>Rc,"relationship.current":()=>Vc,"relationship.failed":()=>Wc,"relationship.named":()=>qc,"relationship.reconnectHint":()=>Xc,"relationship.updateFailed":()=>$c,"relationship.view":()=>nl,"reply.failed":()=>al,"reply.running":()=>cl,"reply.stop":()=>dl,"reply.stopped":()=>ml,"reset.failed":()=>_l,retry:()=>bl,save:()=>Cl,"session.failed":()=>El,"session.new":()=>kl,"session.none":()=>Ml,"session.reconnectHint":()=>Fl,"session.switch":()=>Rl,"session.untitled":()=>Vl,"settings.address":()=>Wl,"settings.addressHint":()=>ql,"settings.affinityFailed":()=>Xl,"settings.affinityInvalid":()=>$l,"settings.affinityUpdated":()=>nu,"settings.collapse":()=>au,"settings.companionName":()=>cu,"settings.defaultAffinity":()=>du,"settings.defaultAffinityHint":()=>mu,"settings.description":()=>_u,"settings.discarded":()=>bu,"settings.expand":()=>Cu,"settings.failed":()=>Eu,"settings.nameLimit":()=>ku,"settings.open":()=>Mu,"settings.readOnly":()=>Fu,"settings.readOnlyHint":()=>Ru,"settings.rejected":()=>Vu,"settings.saved":()=>Wu,"settings.saving":()=>qu,"settings.title":()=>Xu,"settings.unsaved":()=>$u,"settings.userName":()=>nd,"sidebar.close":()=>ad,"sidebar.closePanel":()=>cd,"sidebar.collapse":()=>dd,"sidebar.expand":()=>md,"sidebar.label":()=>_d,"sidebar.show":()=>bd,"sidebar.title":()=>Cd,"signature.clear":()=>Ed,"signature.cleared":()=>kd,"signature.empty":()=>Md,"signature.failed":()=>Fd,"status.connecting":()=>Rd,"status.namedTyping":()=>Vd,"status.offline":()=>Wd,"status.online":()=>qd,"status.typing":()=>Xd,"voice.duration":()=>$d,"voice.empty":()=>nf,"voice.failed":()=>of,"voice.install":()=>lf,"voice.micUnavailable":()=>ff,"voice.pause":()=>hf,"voice.permission":()=>vf,"voice.play":()=>xf,"voice.playFailed":()=>wf,"voice.player":()=>Df,"voice.preparing":()=>Af,"voice.progress":()=>Nf,"voice.recording":()=>If,"voice.retry":()=>zf,"voice.secure":()=>Hf,"voice.sent":()=>Gf,"voice.size":()=>Jf,"voice.start":()=>Zf,"voice.stop":()=>ep,"voice.stopping":()=>rp,"voice.transcribing":()=>op,"voice.transcribingProgress":()=>lp,"voice.transcript":()=>fp,"voice.transcriptionFailed":()=>hp,"voice.unavailable":()=>vp,"voice.unclear":()=>xp,"voice.unsupported":()=>wp,"voice.wait":()=>Dp,"wait.care":()=>Ap,"wait.here":()=>Np,"wait.soon":()=>Ip,"wait.thinking":()=>zp,"wait.words":()=>Hp,"welcome.greeting":()=>Gp,"welcome.prompt":()=>Jp,"workspace.chooseHint":()=>Zp,"workspace.empty":()=>em,"workspace.failed":()=>rm,"workspace.hint":()=>om,"workspace.loading":()=>lm,"workspace.missing":()=>fm,"workspace.none":()=>hm,"workspace.reconnectHint":()=>vm,"workspace.required":()=>xm,"workspace.select":()=>wm,"workspace.settingsLabel":()=>Dm,you:()=>Am});function Nm(e){return(t,n)=>{let r=Mm[t];return r?.(n,{locale:e})??t}}var Pm=Nm(`en`),Fm;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(Fm||={});var Im=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},Lm=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,Rm=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?Lm(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new Im(`"${e}" plugin is not implemented on ${c}`,Fm.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}throw new Im(`"${e}.${t}()" is not implemented on ${c}`,Fm.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,"name",{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{let r=await n;g({eventName:e,callbackId:r},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=Im,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},zm=(e=>e.Capacitor=Rm(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),Bm=zm.registerPlugin,Vm=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new zm.Exception(e,Fm.Unimplemented)}unavailable(e=`not available`){return new zm.Exception(e,Fm.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);r!==-1&&this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},Hm=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Um=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),Wm=class extends Vm{async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=Um(n).trim(),r=Um(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=Hm(e.key),n=Hm(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};Bm(`CapacitorCookies`,{web:()=>new Wm});var Gm=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),Km=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},qm=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,Jm=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=Km(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else(r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},Ym=class extends Vm{async request(e){let t=Jm(e,e.webFetchExtra),n=qm(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await Gm(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};Bm(`CapacitorHttp`,{web:()=>new Ym});var Xm;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(Xm||={});var Zm;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(Zm||={});var Qm=class extends Vm{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};Bm(`SystemBars`,{web:()=>new Qm});var $m;(function(e){e.Prompt=`PROMPT`,e.Camera=`CAMERA`,e.Photos=`PHOTOS`})($m||={});var eh;(function(e){e.Rear=`REAR`,e.Front=`FRONT`})(eh||={});var th;(function(e){e.Uri=`uri`,e.Base64=`base64`,e.DataUrl=`dataUrl`})(th||={});var nh;(function(e){e[e.Photo=0]=`Photo`,e[e.Video=1]=`Video`})(nh||={});var rh;(function(e){e[e.Photo=0]=`Photo`,e[e.Video=1]=`Video`,e[e.All=2]=`All`})(rh||={});var ih;(function(e){e[e.JPEG=0]=`JPEG`,e[e.PNG=1]=`PNG`})(ih||={});var ah;(function(e){e.CameraPermissionDenied=`OS-PLUG-CAMR-0003`,e.GalleryPermissionDenied=`OS-PLUG-CAMR-0005`,e.NoCameraAvailable=`OS-PLUG-CAMR-0007`,e.TakePhotoCancelled=`OS-PLUG-CAMR-0006`,e.TakePhotoFailed=`OS-PLUG-CAMR-0010`,e.TakePhotoInvalidArguments=`OS-PLUG-CAMR-0014`,e.InvalidImageData=`OS-PLUG-CAMR-0008`,e.EditPhotoFailed=`OS-PLUG-CAMR-0009`,e.EditPhotoCancelled=`OS-PLUG-CAMR-0013`,e.EditPhotoEmptyUri=`OS-PLUG-CAMR-0024`,e.ImageNotFound=`OS-PLUG-CAMR-0011`,e.ProcessImageFailed=`OS-PLUG-CAMR-0012`,e.ChooseMediaFailed=`OS-PLUG-CAMR-0018`,e.ChooseMediaCancelled=`OS-PLUG-CAMR-0020`,e.MediaPathError=`OS-PLUG-CAMR-0021`,e.FetchImageFromUriFailed=`OS-PLUG-CAMR-0028`,e.RecordVideoFailed=`OS-PLUG-CAMR-0016`,e.RecordVideoCancelled=`OS-PLUG-CAMR-0017`,e.VideoNotFound=`OS-PLUG-CAMR-0025`,e.PlayVideoFailed=`OS-PLUG-CAMR-0023`,e.EncodeResultFailed=`OS-PLUG-CAMR-0019`,e.FileNotFound=`OS-PLUG-CAMR-0027`,e.InvalidArgument=`OS-PLUG-CAMR-0031`,e.GeneralError=`OS-PLUG-CAMR-0026`})(ah||={});var oh=class extends Vm{async takePhoto(e){return new Promise(async(t,n)=>{e.webUseInput?this.takePhotoCameraInputExperience(e,t,n):this.takePhotoCameraExperience(e,t,n)})}async recordVideo(e){throw this.unimplemented(`recordVideo is not implemented on Web.`)}async playVideo(e){throw this.unimplemented(`playVideo is not implemented on Web.`)}async chooseFromGallery(e){return new Promise(async(t,n)=>{this.galleryInputExperience(e,t,n)})}async editPhoto(e){throw this.unimplemented(`editPhoto is not implemented on Web.`)}async editURIPhoto(e){throw this.unimplemented(`editURIPhoto is not implemented on Web.`)}async getPhoto(e){return new Promise(async(t,n)=>{if(e.webUseInput||e.source===$m.Photos)this.fileInputExperience(e,t,n);else if(e.source===$m.Prompt){let r=document.querySelector(`pwa-action-sheet`);r||(r=document.createElement(`pwa-action-sheet`),document.body.appendChild(r)),r.header=e.promptLabelHeader||`Photo`,r.cancelable=!1,r.options=[{title:e.promptLabelPhoto||`From Photos`},{title:e.promptLabelPicture||`Take Picture`}],r.addEventListener(`onSelection`,async r=>{r.detail===0?this.fileInputExperience(e,t,n):this.cameraExperience(e,t,n)})}else this.cameraExperience(e,t,n)})}async pickImages(e){return new Promise(async(e,t)=>{this.multipleFileInputExperience(e,t)})}async cameraExperience(e,t,n){await this._setupPWACameraModal(e.direction,t=>this._getCameraPhoto(t,e),()=>this.fileInputExperience(e,t,n),t,n)}fileInputExperience(e,t,n){let r=document.querySelector(`#_capacitor-camera-input`),i=()=>{var e;(e=r.parentNode)==null||e.removeChild(r)};r||(r=document.createElement(`input`),r.id=`_capacitor-camera-input`,r.type=`file`,r.hidden=!0,document.body.appendChild(r),r.addEventListener(`change`,n=>{let a=r.files[0],o=`jpeg`;if(a.type===`image/png`?o=`png`:a.type===`image/gif`&&(o=`gif`),e.resultType===`dataUrl`||e.resultType===`base64`){let n=new FileReader;n.addEventListener(`load`,()=>{if(e.resultType===`dataUrl`)t({dataUrl:n.result,format:o});else if(e.resultType===`base64`){let e=n.result.split(`,`)[1];t({base64String:e,format:o})}i()}),n.readAsDataURL(a)}else t({webPath:URL.createObjectURL(a),format:o}),i()}),r.addEventListener(`cancel`,e=>{n(new Im(`User cancelled photos app`)),i()})),r.accept=`image/*`,r.capture=!0,e.source===$m.Photos||e.source===$m.Prompt?r.removeAttribute(`capture`):e.direction===eh.Front?r.capture=`user`:e.direction===eh.Rear&&(r.capture=`environment`),r.click()}multipleFileInputExperience(e,t){let n=document.querySelector(`#_capacitor-camera-input-multiple`),r=()=>{var e;(e=n.parentNode)==null||e.removeChild(n)};n||(n=document.createElement(`input`),n.id=`_capacitor-camera-input-multiple`,n.type=`file`,n.hidden=!0,n.multiple=!0,document.body.appendChild(n),n.addEventListener(`change`,t=>{let i=[];for(let e=0;e<n.files.length;e++){let t=n.files[e],r=`jpeg`;t.type===`image/png`?r=`png`:t.type===`image/gif`&&(r=`gif`),i.push({webPath:URL.createObjectURL(t),format:r})}e({photos:i}),r()}),n.addEventListener(`cancel`,e=>{t(new Im(`User cancelled photos app`)),r()})),n.accept=`image/*`,n.click()}_getCameraPhoto(e,t){return new Promise((n,r)=>{let i=new FileReader,a=this._getFileFormat(e);t.resultType===`uri`?n({webPath:URL.createObjectURL(e),format:a,saved:!1}):(i.readAsDataURL(e),i.onloadend=()=>{let e=i.result;t.resultType===`dataUrl`?n({dataUrl:e,format:a,saved:!1}):n({base64String:e.split(`,`)[1],format:a,saved:!1})},i.onerror=e=>{r(e)})})}async takePhotoCameraExperience(e,t,n){await this._setupPWACameraModal(e.cameraDirection,t=>this._buildPhotoMediaResult(t,e.includeMetadata??!1),()=>this.takePhotoCameraInputExperience(e,t,n),t,n)}takePhotoCameraInputExperience(e,t,n){let r=this._createFileInput(`_capacitor-camera-input-takephoto`),i=()=>{var e;(e=r.parentNode)==null||e.removeChild(r)};r.onchange=async a=>{if(!this._validateFileInput(r,n,i))return;let o=r.files[0];t(await this._buildPhotoMediaResult(o,e.includeMetadata??!1)),i()},r.oncancel=()=>{n(new Im(`User cancelled photos app`)),i()},r.accept=`image/*`,r.capture=e.cameraDirection===eh.Front?`user`:`environment`,r.click()}galleryInputExperience(e,t,n){let r=this._createFileInput(`_capacitor-camera-input-gallery`);r.multiple=e.allowMultipleSelection??!1;let i=()=>{var e;(e=r.parentNode)==null||e.removeChild(r)};r.onchange=async a=>{if(!this._validateFileInput(r,n,i))return;let o=[];for(let t=0;t<r.files.length;t++){let n=r.files[t];if(n.type.startsWith(`image/`))o.push(await this._buildPhotoMediaResult(n,e.includeMetadata??!1));else if(n.type.startsWith(`video/`)){let t=this._getFileFormat(n),r,i,a;try{let t=await this._getVideoMetadata(n);r=t.thumbnail,e.includeMetadata&&(i=t.resolution,a=t.duration)}catch(e){console.warn(`Failed to get video metadata:`,e)}let s={type:nh.Video,thumbnail:r,webPath:URL.createObjectURL(n),saved:!1};e.includeMetadata&&(s.metadata={format:t,resolution:i,size:n.size,creationDate:new Date(n.lastModified).toISOString(),duration:a}),o.push(s)}}t({results:o}),i()},r.oncancel=()=>{n(new Im(`User cancelled photos app`)),i()};let a=e.mediaType??rh.Photo;r.accept=a===rh.Photo?`image/*`:a===rh.Video?`video/*`:`image/*,video/*`,r.click()}_getFileFormat(e){return e.type===`image/png`?`png`:e.type===`image/gif`?`gif`:e.type.startsWith(`video/`)?e.type.split(`/`)[1]:e.type.startsWith(`image/`)?`jpeg`:e.type.split(`/`)[1]||`jpeg`}async _buildPhotoMediaResult(e,t){let n=this._getFileFormat(e),r=await this._getBase64FromFile(e),i={type:nh.Photo,thumbnail:r,webPath:URL.createObjectURL(e),saved:!1};return t&&(i.metadata={format:n,resolution:await this._getImageResolution(e),size:e.size,creationDate:`lastModified`in e?new Date(e.lastModified).toISOString():new Date().toISOString()}),i}_validateFileInput(e,t,n){return!e.files||e.files.length===0?(t(new Im(e.multiple?`No files selected`:`No file selected`)),n(),!1):!0}async _setupPWACameraModal(e,t,n,r,i){if(customElements.get(`pwa-camera-modal`)){let a=document.createElement(`pwa-camera-modal`);a.facingMode=e===eh.Front?`user`:`environment`,document.body.appendChild(a);try{await a.componentOnReady(),a.addEventListener(`onPhoto`,async e=>{let n=e.detail;n===null?i(new Im(`User cancelled photos app`)):n instanceof Error?i(n):r(await t(n)),a.dismiss(),document.body.removeChild(a)}),a.present()}catch{n()}}else console.error(`Unable to load PWA Element 'pwa-camera-modal'. See the docs: https://capacitorjs.com/docs/web/pwa-elements.`),n()}_createFileInput(e){let t=document.querySelector(`#${e}`);return t||(t=document.createElement(`input`),t.id=e,t.type=`file`,t.hidden=!0,document.body.appendChild(t)),t}async _getImageResolution(e){try{let t=await createImageBitmap(e),n=`${t.width}x${t.height}`;return t.close(),n}catch(e){console.warn(`Failed to get image resolution:`,e);return}}_getBase64FromFile(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{let e=r.result.split(`,`)[1];t(e)},r.onerror=e=>{n(e)},r.readAsDataURL(e)})}_getVideoMetadata(e){return new Promise(t=>{let n=document.createElement(`video`);n.preload=`metadata`,n.muted=!0,n.onloadedmetadata=()=>{let e=Math.min(1,n.duration*.1);n.currentTime=e},n.onseeked=()=>{let e={resolution:`${n.videoWidth}x${n.videoHeight}`,duration:n.duration};try{let t=document.createElement(`canvas`);t.width=n.videoWidth,t.height=n.videoHeight;let r=t.getContext(`2d`);r&&(r.drawImage(n,0,0,t.width,t.height),e.thumbnail=t.toDataURL(`image/jpeg`,.8).split(`,`)[1])}catch(e){console.warn(`Failed to generate video thumbnail:`,e)}URL.revokeObjectURL(n.src),t(e)},n.onerror=()=>{URL.revokeObjectURL(n.src),t({})},n.src=URL.createObjectURL(e)})}async checkPermissions(){if(typeof navigator>`u`||!navigator.permissions)throw this.unavailable(`Permissions API not available in this browser`);try{return{camera:(await window.navigator.permissions.query({name:`camera`})).state,photos:`granted`}}catch{throw this.unavailable(`Camera permissions are not available in this browser`)}}async requestPermissions(){throw this.unimplemented(`Not implemented on web.`)}async pickLimitedLibraryPhotos(){throw this.unavailable(`Not implemented on web.`)}async getLimitedLibraryPhotos(){throw this.unavailable(`Not implemented on web.`)}};new oh;var sh=Bm(`Camera`,{web:()=>new oh}),ch={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},lh=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},uh=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),dh=p(`<svg><!><!></svg>`);function fh(e,n){let r=be(n,[`children`,`$$slots`,`$$events`,`$$legacy`]),a=be(r,[`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`]);te(n,!1);let o=N(n,`name`,8,void 0),u=N(n,`color`,8,`currentColor`),d=N(n,`size`,8,24),f=N(n,`strokeWidth`,8,2),p=N(n,`absoluteStrokeWidth`,8,!1),m=N(n,`iconNode`,24,()=>[]);oe();var h=dh();A(h,(e,t,n)=>({...ch,...e,...a,width:d(),height:d(),stroke:u(),"stroke-width":t,class:n}),[()=>lh(a)?void 0:{"aria-hidden":`true`},()=>(C(p()),C(f()),C(d()),c(()=>p()?Number(f())*24/Number(d()):f())),()=>(C(uh),C(o()),C(r),c(()=>uh(`lucide-icon`,`lucide`,o()?`lucide-${o()}`:``,r.class)))]);var v=k(h);t(v,1,m,me,(e,t)=>{var n=O(()=>i(l(t),2));let r=()=>l(n)[0],a=()=>l(n)[1];var o=s(),c=F(o);S(c,r,!0,(e,t)=>{A(e,()=>({...a()}))}),_(e,o)});var y=M(v);g(y,n,`default`,{},null),I(h),_(e,h),ue()}function ph(e,t){let n=be(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M16 5h6`}],[`path`,{d:`M19 2v6`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}]];fh(e,ge({name:`image-plus`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=s(),i=F(r);g(i,t,`default`,{},null),_(e,r)},$$slots:{default:!0}}))}function mh(e,t){let n=be(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M4 5h16`}],[`path`,{d:`M4 12h16`}],[`path`,{d:`M4 19h16`}]];fh(e,ge({name:`menu`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=s(),i=F(r);g(i,t,`default`,{},null),_(e,r)},$$slots:{default:!0}}))}function hh(e,t){let n=be(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]];fh(e,ge({name:`settings`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=s(),i=F(r);g(i,t,`default`,{},null),_(e,r)},$$slots:{default:!0}}))}function gh(e,t){let n=be(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];fh(e,ge({name:`pause`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=s(),i=F(r);g(i,t,`default`,{},null),_(e,r)},$$slots:{default:!0}}))}function _h(e,t){let n=be(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`}]];fh(e,ge({name:`play`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=s(),i=F(r);g(i,t,`default`,{},null),_(e,r)},$$slots:{default:!0}}))}function vh(e,t){let n=be(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}]];fh(e,ge({name:`square`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=s(),i=F(r);g(i,t,`default`,{},null),_(e,r)},$$slots:{default:!0}}))}function yh(e,t){let n=be(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M12 19v3`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`}]];fh(e,ge({name:`mic`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=s(),i=F(r);g(i,t,`default`,{},null),_(e,r)},$$slots:{default:!0}}))}function bh(e,t){let n=be(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];fh(e,ge({name:`x`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=s(),i=F(r);g(i,t,`default`,{},null),_(e,r)},$$slots:{default:!0}}))}var xh=8e3;function Sh(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function Ch(e){return typeof e==`number`&&Number.isFinite(e)&&e>0}function wh(e){let t=Sh(e);if(!t||!Ch(t.contextWindow))return;let n=Object.hasOwn(t,`projectedTokens`)&&t.projectedTokens!==void 0?t.projectedTokens:t.pressureTokens;if(!(typeof n!=`number`||!Number.isFinite(n)||n<0))return{usedTokens:n,contextWindow:t.contextWindow,percentage:Math.min(100,Math.max(0,Math.round(n/t.contextWindow*100)))}}function Th(e){if(typeof e!=`number`||!Number.isFinite(e)||e<0)return;let t=e>=1e3?1e3:100;return Math.round(e/t)*t}function Eh(e){let t=Th(e);if(t!==void 0)return t>=1e3?`${Math.round(t/1e3)}k`:String(t)}var Dh=class extends Error{constructor(e){super(e),this.name=`CompanionPreControllerError`}};function Oh(e,t=43,n=150){let r=Number.isFinite(t)&&t>0?t:43,i=Number.isFinite(n)&&n>=r?n:150,a=Number.isFinite(e)&&e>0?e:r;return{height:Math.min(i,Math.max(r,a)),scrollable:a>i}}function kh(e){return[{command:`/compact`,label:e(`compact.command`),description:e(`compact.description`)}]}function Ah(e=``){return{draft:e,composing:!1}}function jh(e,t){switch(t.type){case`input`:return{...e,draft:t.value};case`compositionstart`:return{...e,composing:!0};case`compositionend`:return{...e,composing:!1,draft:t.value};case`submit`:return e.composing||!e.draft.trim()?e:{draft:``,composing:!1,lastSubmitted:e.draft}}}function Mh(e,t){return e.key===`Enter`&&!e.shiftKey&&!e.isComposing&&!t}function Nh(e,t=Pm){if(e.startsWith(`/`)&&!/\s/u.test(e))return kh(t).find(t=>t.command.startsWith(e))}function Ph(e,t){if(e.length)return t(`keet.recoveryLoss`,{ranges:e.map(({first:e,last:t})=>e===t?`${e}`:`${e}\u2013${t}`).join(`, `)})}function Fh(e,t){if(e.changes.seed)return[];let n=[];return e.changes.mood&&n.push({dimension:`mood`,after:{value:e.state.mood,...e.state.note===void 0?{}:{note:e.state.note}},...e.changes.mood.reason===void 0?{}:{reason:e.changes.mood.reason}}),e.changes.affinity&&n.push({dimension:`affinity`,after:{value:e.state.affinity},...t&&e.state.affinity>t.state.affinity?{delta:e.state.affinity-t.state.affinity}:{},...e.changes.affinity.reason===void 0?{}:{reason:e.changes.affinity.reason}}),e.changes.signature&&n.push({dimension:`signature`,after:{value:e.state.signature},...e.changes.signature.reason===void 0?{}:{reason:e.changes.signature.reason}}),n}var Ih=u(`<a><!></a>`);function Lh(e,t){var n=Ih();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Rh=u(`<abbr><!></abbr>`);function zh(e,t){var n=Rh();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Bh=u(`<address><!></address>`);function Vh(e,t){var n=Bh();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Hh=u(`<article><!></article>`);function Uh(e,t){var n=Hh();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Wh=u(`<aside><!></aside>`);function Gh(e,t){var n=Wh();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Kh=u(`<audio><!></audio>`);function qh(e,t){var n=Kh();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Jh=u(`<b><!></b>`);function Yh(e,t){var n=Jh();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Xh=u(`<bdi><!></bdi>`);function Zh(e,t){var n=Xh();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Qh=u(`<bdo><!></bdo>`);function $h(e,t){var n=Qh();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var eg=u(`<blockquote><!></blockquote>`);function tg(e,t){var n=eg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var ng=u(`<br/>`);function rg(e,t){let n=N(t,`attributes`,19,()=>({}));var r=ng();A(r,()=>({...n()})),_(e,r)}var ig=u(`<button><!></button>`);function ag(e,t){var n=ig();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var og=u(`<canvas><!></canvas>`);function sg(e,t){var n=og();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var cg=u(`<cite><!></cite>`);function lg(e,t){var n=cg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var ug=u(`<code><!></code>`);function dg(e,t){var n=ug();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var fg=u(`<datalist><!></datalist>`);function pg(e,t){var n=fg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var mg=u(`<dd><!></dd>`);function hg(e,t){var n=mg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var gg=u(`<del><!></del>`);function _g(e,t){var n=gg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var vg=u(`<details><!></details>`);function yg(e,t){var n=vg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var bg=u(`<dfn><!></dfn>`);function xg(e,t){var n=bg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Sg=u(`<dialog><!></dialog>`);function Cg(e,t){var n=Sg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var wg=u(`<div><!></div>`);function Tg(e,t){var n=wg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Eg=u(`<dl><!></dl>`);function Dg(e,t){var n=Eg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Og=u(`<dt><!></dt>`);function kg(e,t){var n=Og();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Ag=u(`<em><!></em>`);function jg(e,t){var n=Ag();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Mg=u(`<embed/>`);function Ng(e,t){var r=Mg();A(r,()=>({...t.attributes})),n(r),_(e,r)}var Pg=u(`<fieldset><!></fieldset>`);function Fg(e,t){var n=Pg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Ig=u(`<footer><!></footer>`);function Lg(e,t){var n=Ig();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Rg=u(`<form><!></form>`);function zg(e,t){var n=Rg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Bg=u(`<h1><!></h1>`);function Vg(e,t){var n=Bg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Hg=u(`<h2><!></h2>`);function Ug(e,t){var n=Hg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Wg=u(`<h3><!></h3>`);function Gg(e,t){var n=Wg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Kg=u(`<h4><!></h4>`);function qg(e,t){var n=Kg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Jg=u(`<h5><!></h5>`);function Yg(e,t){var n=Jg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Xg=u(`<h6><!></h6>`);function Zg(e,t){var n=Xg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Qg=u(`<header><!></header>`);function $g(e,t){var n=Qg();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var e_=u(`<hgroup><!></hgroup>`);function t_(e,t){var n=e_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var n_=u(`<hr/>`);function r_(e,t){var n=n_();A(n,()=>({...t.attributes})),_(e,n)}var i_=u(`<i><!></i>`);function a_(e,t){var n=i_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var o_=u(`<iframe><!></iframe>`);function s_(e,t){var r=o_();A(r,()=>({...t.attributes}));var i=k(r);a(i,()=>t.children??x),I(r),n(r),_(e,r)}var c_=u(`<img/>`);function l_(e,t){var r=c_();A(r,()=>({...t.attributes})),n(r),_(e,r)}var u_=u(`<input/>`);function d_(e,t){var n=u_();A(n,()=>({...t.attributes}),void 0,void 0,void 0,void 0,!0),_(e,n)}var f_=u(`<kbd><!></kbd>`);function p_(e,t){var n=f_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var m_=u(`<label><!></label>`);function h_(e,t){var n=m_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var g_=u(`<legend><!></legend>`);function __(e,t){var n=g_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var v_=u(`<li><!></li>`);function y_(e,t){var n=v_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var b_=u(`<main><!></main>`);function x_(e,t){var n=b_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var S_=u(`<mark><!></mark>`);function C_(e,t){var n=S_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var w_=u(`<menu><!></menu>`);function T_(e,t){var n=w_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var E_=u(`<meter><!></meter>`);function D_(e,t){var n=E_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var O_=u(`<nav><!></nav>`);function k_(e,t){var n=O_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var A_=u(`<ol><!></ol>`);function j_(e,t){var n=A_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var M_=u(`<optgroup><!></optgroup>`);function N_(e,t){var n=M_();A(n,()=>({...t.attributes})),ve(n,()=>{var e=k(n),r=s(),i=F(r);a(i,()=>t.children??x),_(e,r)}),_(e,n)}var P_=u(`<option><!></option>`);function F_(e,t){var n=P_();A(n,()=>({...t.attributes})),ve(n,()=>{var e=k(n),r=s(),i=F(r);a(i,()=>t.children??x),_(e,r)}),_(e,n)}var I_=u(`<output><!></output>`);function L_(e,t){var n=I_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var R_=u(`<p><!></p>`);function z_(e,t){var n=R_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var B_=u(`<param/>`);function V_(e,t){var n=B_();A(n,()=>({...t.attributes})),_(e,n)}var H_=u(`<picture><!></picture>`);function U_(e,t){var n=H_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var W_=u(`<pre><!></pre>`);function G_(e,t){var n=W_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var K_=u(`<progress><!></progress>`);function q_(e,t){var n=K_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var J_=u(`<s><!></s>`);function Y_(e,t){var n=J_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var X_=u(`<samp><!></samp>`);function Z_(e,t){var n=X_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Q_=u(`<section><!></section>`);function $_(e,t){var n=Q_();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var ev=u(`<select><!></select>`);function tv(e,t){var n=ev();A(n,()=>({...t.attributes})),ve(n,()=>{var e=k(n),r=s(),i=F(r);a(i,()=>t.children??x),_(e,r)}),_(e,n)}var nv=u(`<small><!></small>`);function rv(e,t){var n=nv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var iv=u(`<source/>`);function av(e,t){var n=iv();A(n,()=>({...t.attributes})),_(e,n)}var ov=u(`<span><!></span>`);function sv(e,t){var n=ov();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var cv=u(`<strong><!></strong>`);function lv(e,t){var n=cv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var uv=u(`<sub><!></sub>`);function dv(e,t){var n=uv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var fv=u(`<summary><!></summary>`);function pv(e,t){var n=fv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var mv=u(`<sup><!></sup>`);function hv(e,t){var n=mv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var gv=u(`<table><!></table>`);function _v(e,t){var n=gv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var vv=u(`<tbody><!></tbody>`);function yv(e,t){var n=vv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var bv=u(`<td><!></td>`);function xv(e,t){var n=bv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Sv=u(`<textarea></textarea>`);function Cv(e,t){var n=Sv();ce(n),A(n,()=>({...t.attributes})),_(e,n)}var wv=u(`<tfoot><!></tfoot>`);function Tv(e,t){var n=wv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Ev=u(`<th><!></th>`);function Dv(e,t){var n=Ev();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Ov=u(`<thead><!></thead>`);function kv(e,t){var n=Ov();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Av=u(`<tr><!></tr>`);function jv(e,t){var n=Av();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Mv=u(`<track/>`);function Nv(e,t){var r=Mv();A(r,()=>({...t.attributes})),n(r),_(e,r)}var Pv=u(`<u><!></u>`);function Fv(e,t){var n=Pv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Iv=u(`<ul><!></ul>`);function Lv(e,t){var n=Iv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Rv=u(`<var><!></var>`);function zv(e,t){var n=Rv();A(n,()=>({...t.attributes}));var r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Bv=u(` <!> `,1);function Vv(e,t){te(t,!0);let n=Object.entries(t.attributes||{}).map(([e,t])=>`${e}="${t}"`).join(` `)||``;re();var r=Bv(),i=F(r),o=M(i);a(o,()=>t.children??x);var s=M(o);T(()=>{h(i,`<${t.tag??``}${n?` ${n}`:``}>`),h(s,`</${t.tag??``}>`)}),_(e,r),ue()}var Hv={a:Lh,abbr:zh,address:Vh,article:Uh,aside:Gh,audio:qh,b:Yh,bdi:Zh,bdo:$h,blockquote:tg,br:rg,button:ag,canvas:sg,cite:lg,code:dg,datalist:pg,dd:hg,del:_g,details:yg,dfn:xg,dialog:Cg,div:Tg,dl:Dg,dt:kg,em:jg,embed:Ng,fieldset:Fg,footer:Lg,form:zg,h1:Vg,h2:Ug,h3:Gg,h4:qg,h5:Yg,h6:Zg,header:$g,hgroup:t_,hr:r_,i:a_,iframe:s_,img:l_,input:d_,kbd:p_,label:h_,legend:__,li:y_,main:x_,mark:C_,menu:T_,meter:D_,nav:k_,ol:j_,optgroup:N_,option:F_,output:L_,p:z_,param:V_,picture:U_,pre:G_,progress:q_,s:Y_,samp:Z_,section:$_,select:tv,small:rv,source:av,span:sv,strong:lv,sub:dv,summary:pv,sup:hv,table:_v,tbody:yv,td:xv,textarea:Cv,tfoot:Tv,th:Dv,thead:kv,tr:jv,track:Nv,u:Fv,ul:Lv,var:zv},Uv=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Wv=Object.hasOwnProperty,Gv=class{constructor(){this.occurrences,this.reset()}slug(e,t){let n=this,r=Kv(e,t===!0),i=r;for(;Wv.call(n.occurrences,r);)n.occurrences[i]++,r=i+`-`+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};function Kv(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(Uv,``).replace(/ /g,`-`)):``}function qv(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Jv=qv();function Yv(e){Jv=e}var Xv={exec:()=>null};function Zv(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Qv(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(ey.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var $v=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),ey={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Zv(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Zv(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Zv(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Zv(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Zv(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:Zv(e=>RegExp(`^ {0,${e}}>`))},ty=/^(?:[ \t]*(?:\n|$))+/,ny=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ry=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,iy=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ay=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,oy=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,sy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,cy=Qv(sy).replace(/bull/g,oy).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),ly=Qv(sy).replace(/bull/g,oy).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),uy=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,dy=/^[^\n]+/,fy=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,py=Qv(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,fy).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),my=Qv(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,oy).getRegex(),hy=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,gy=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_y=Qv(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,gy).replace(`tag`,hy).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vy=e=>Qv(uy).replace(`hr`,iy).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,hy).getRegex(),yy=vy(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),by=vy(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),xy={blockquote:Qv(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,by).getRegex(),code:ny,def:py,fences:ry,heading:ay,hr:iy,html:_y,lheading:cy,list:my,newline:ty,paragraph:yy,table:Xv,text:dy},Sy=Qv(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,iy).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,hy).getRegex(),Cy={...xy,lheading:ly,table:Sy,paragraph:Qv(uy).replace(`hr`,iy).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Sy).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,hy).getRegex()},wy={...xy,html:Qv(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,gy).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Xv,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Qv(uy).replace(`hr`,iy).replace(`heading`,` *#{1,6} *[^
|
|
2
|
+
]`).replace(`lheading`,cy).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Ty=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ey=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dy=/^( {2,}|\\)\n(?!\s*$)/,Oy=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ky=/[\p{P}\p{S}]/u,Ay=/[\s\p{P}\p{S}]/u,jy=/[^\s\p{P}\p{S}]/u,My=Qv(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Ay).getRegex(),Ny=/[\p{Pi}\p{Ps}"']/u,Py=/(?!~)[\p{P}\p{S}]/u,Fy=/(?!~)[\s\p{P}\p{S}]/u,Iy=/(?:[^\s\p{P}\p{S}]|~)/u,Ly=Qv(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,$v?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Ry=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,zy=Qv(Ry,`u`).replace(/punct/g,ky).getRegex(),By=Qv(Ry,`u`).replace(/punct/g,Py).getRegex(),Vy=Qv(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,Ny).replace(/punct/g,ky).getRegex(),Hy=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Uy=Qv(Hy,`gu`).replace(/notPunctSpace/g,jy).replace(/punctSpace/g,Ay).replace(/punct/g,ky).getRegex(),Wy=Qv(Hy,`gu`).replace(/notPunctSpace/g,Iy).replace(/punctSpace/g,Fy).replace(/punct/g,Py).getRegex(),Gy=Qv(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,jy).replace(/punctSpace/g,Ay).replace(/punct/g,ky).getRegex(),Ky=Qv(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,jy).replace(/punctSpace/g,Ay).replace(/punct/g,ky).getRegex(),qy=Qv(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,jy).replace(/punctSpace/g,Ay).replace(/punct/g,ky).getRegex(),Jy=Qv(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,ky).getRegex(),Yy=Qv(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,jy).replace(/punctSpace/g,Ay).replace(/punct/g,ky).getRegex(),Xy=Qv(/\\(punct)/,`gu`).replace(/punct/g,ky).getRegex(),Zy=Qv(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Qy=Qv(gy).replace(`(?:-->|$)`,`-->`).getRegex(),$y=Qv(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Qy).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eb=Qv(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,/\[(?:\\[\s\S]|[^\[\]\\])*\]/).getRegex(),tb=Qv(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,eb).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nb=Qv(/^!?\[(label)\]\[(ref)\]/).replace(`label`,eb).replace(`ref`,fy).getRegex(),rb=Qv(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,fy).getRegex(),ib=Qv(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,nb).replace(`nolink`,rb).getRegex(),ab=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ob={_backpedal:Xv,anyPunctuation:Xy,autolink:Zy,blockSkip:Ly,br:Dy,code:Ey,del:Xv,delLDelim:Xv,delRDelim:Xv,emStrongLDelim:zy,emStrongRDelimAst:Uy,emStrongRDelimUnd:Ky,escape:Ty,link:tb,nolink:rb,punctuation:My,reflink:nb,reflinkSearch:ib,tag:$y,text:Oy,url:Xv},sb={...ob,emStrongLDelim:Vy,emStrongRDelimAst:Gy,emStrongRDelimUnd:qy,link:Qv(/^!?\[(label)\]\((.*?)\)/).replace(`label`,eb).getRegex(),reflink:Qv(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,eb).getRegex()},cb={...ob,emStrongRDelimAst:Wy,emStrongLDelim:By,delLDelim:Jy,delRDelim:Yy,url:Qv(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,ab).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Qv(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,ab).getRegex()},lb={...cb,br:Qv(Dy).replace(`{2,}`,`*`).getRegex(),text:Qv(cb.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},ub={normal:xy,gfm:Cy,pedantic:wy},db={normal:ob,gfm:cb,breaks:lb,pedantic:sb},fb={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},pb=e=>fb[e];function mb(e,t){if(t){if(ey.escapeTest.test(e))return e.replace(ey.escapeReplace,pb)}else if(ey.escapeTestNoEncode.test(e))return e.replace(ey.escapeReplaceNoEncode,pb);return e}function hb(e){try{e=encodeURI(e).replace(ey.percentDecode,`%`)}catch{return null}return e}function gb(e,t){let n=e.replace(ey.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(ey.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(ey.slashPipe,`|`);return n}function _b(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function vb(e){let t=e.split(`
|
|
3
|
+
`),n=t.length-1;for(;n>=0&&ey.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
4
|
+
`)}function yb(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function bb(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function xb(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function Sb(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
5
|
+
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
|
|
6
|
+
`)}var Cb=class{options;rules;lexer;constructor(e){this.options=e||Jv}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:vb(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Sb(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=_b(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:_b(t[0],`
|
|
7
|
+
`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:_b(t[0],`
|
|
8
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=_b(t[0],`
|
|
9
|
+
`).split(`
|
|
10
|
+
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
|
|
11
|
+
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
12
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
|
|
13
|
+
${s}`:s,r=r?`${r}
|
|
14
|
+
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
|
|
15
|
+
`),o=t.raw+`
|
|
16
|
+
`+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s,n=`${n}
|
|
17
|
+
${a}`,r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
|
|
18
|
+
`+e.join(`
|
|
19
|
+
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
|
|
20
|
+
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=bb(t[2].split(`
|
|
21
|
+
`,1)[0],t[1].length),l=e.split(`
|
|
22
|
+
`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
|
|
23
|
+
`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
|
|
24
|
+
`,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
|
|
25
|
+
`+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
|
|
26
|
+
`+l}u=!l.trim(),r+=p+`
|
|
27
|
+
`,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=vb(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:_b(t[0],`
|
|
28
|
+
`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=gb(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
|
|
29
|
+
`):[],a={type:`table`,raw:_b(t[0],`
|
|
30
|
+
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(gb(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:_b(t[0],`
|
|
31
|
+
`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
32
|
+
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=_b(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=yb(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),xb(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return xb(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},wb=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Jv,this.options.tokenizer=this.options.tokenizer||new Cb,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let t={other:ey,block:ub.normal,inline:db.normal};this.options.pedantic?(t.block=ub.pedantic,t.inline=db.pedantic):this.options.gfm&&(t.block=ub.gfm,t.inline=this.options.breaks?db.breaks:db.gfm),this.tokenizer.rules=t}static get rules(){return{block:ub,inline:db}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(ey.carriageReturn,`
|
|
33
|
+
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(ey.tabCharGlobal,` `).replace(ey.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
|
|
34
|
+
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
35
|
+
`)?``:`
|
|
36
|
+
`)+i.raw,n.text+=`
|
|
37
|
+
`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
38
|
+
`)?``:`
|
|
39
|
+
`)+i.raw,n.text+=`
|
|
40
|
+
`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
|
|
41
|
+
`)?``:`
|
|
42
|
+
`)+i.raw,r.text+=`
|
|
43
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
44
|
+
`)?``:`
|
|
45
|
+
`)+i.raw,n.text+=`
|
|
46
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,e.slice(n+1,-1))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,n.slice(r+1,-1)))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Tb=class{options;parser;constructor(e){this.options=e||Jv}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(ey.notSpaceStart)?.[0],i=e?e.replace(ey.endingNewline,``)+`
|
|
47
|
+
`:``;return r?`<pre><code class="language-`+mb(r)+`">`+(n?i:mb(i,!0))+`</code></pre>
|
|
48
|
+
`:`<pre><code>`+(n?i:mb(i,!0))+`</code></pre>
|
|
49
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
50
|
+
${this.parser.parse(e)}</blockquote>
|
|
51
|
+
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
52
|
+
`}hr(e){return`<hr>
|
|
53
|
+
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
|
|
54
|
+
`+r+`</`+i+`>
|
|
55
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
56
|
+
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
57
|
+
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|
58
|
+
<thead>
|
|
59
|
+
`+t+`</thead>
|
|
60
|
+
`+r+`</table>
|
|
61
|
+
`}tablerow({text:e}){return`<tr>
|
|
62
|
+
${e}</tr>
|
|
63
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
64
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${mb(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?mb(n,!0):this.parser.parseInline(r),o=hb(e);if(o===null)return a;e=mb(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+mb(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=hb(e);if(i===null)return mb(n);e=i;let a=`<img src="${mb(e)}" alt="${mb(n)}"`;return t&&(a+=` title="${mb(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:mb(e.text)}},Eb=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Db=class e{options;renderer;textRenderer;constructor(e){this.options=e||Jv,this.options.renderer=this.options.renderer||new Tb,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Eb}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Ob=class{options;block;constructor(e){this.options=e||Jv}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?wb.lex:wb.lexInline}provideParser(e=this.block){return e?Db.parse:Db.parseInline}},kb=class{defaults=qv();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Db;Renderer=Tb;TextRenderer=Eb;Lexer=wb;Tokenizer=Cb;Hooks=Ob;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Tb(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Cb(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Ob;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Ob.passThroughHooks.has(n)?e=>{if(this.defaults.async&&Ob.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return wb.lex(e,t??this.defaults)}parser(e,t){return Db.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?wb.lex:wb.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Db.parse:Db.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?wb.lex:wb.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Db.parse:Db.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
65
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+mb(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Ab=new kb;function jb(e,t){return Ab.parse(e,t)}jb.options=jb.setOptions=function(e){return Ab.setOptions(e),jb.defaults=Ab.defaults,Yv(jb.defaults),jb},jb.getDefaults=qv,jb.defaults=Jv;function Mb(...e){return Ab.use(...e),jb.defaults=Ab.defaults,Yv(jb.defaults),jb}jb.use=Mb,jb.walkTokens=function(e,t){return Ab.walkTokens(e,t)},jb.parseInline=Ab.parseInline,jb.Parser=Db,jb.parser=Db.parse,jb.Renderer=Tb,jb.TextRenderer=Eb,jb.Lexer=wb,jb.lexer=wb.lex,jb.Tokenizer=Cb,jb.Hooks=Ob,jb.parse=jb,jb.options,jb.setOptions,jb.walkTokens,jb.parseInline,Db.parse,wb.lex;var Nb=u(`<blockquote><!></blockquote>`);function Pb(e,t){var n=Nb(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Fb=u(`<br/>`);function Ib(e){var t=Fb();_(e,t)}var Lb=u(`<pre><code> </code></pre>`);function Rb(e,t){var n=Lb(),r=k(n),i=j(r,!0);I(n),T(()=>{Me(n,1,b(t.lang)),h(i,t.text)}),_(e,n)}var zb=u(`<code> </code>`);function Bb(e,t){te(t,!0);var n=zb(),r=j(n,!0);T(e=>h(r,e),[()=>t.raw.replace(/`/g,``)]),_(e,n),ue()}var Vb=u(`<del><!></del>`);function Hb(e,t){var n=Vb(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var Ub=u(`<em><!></em>`);function Wb(e,t){var n=Ub(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}function Gb(e,t){re();var n=y();T(()=>h(n,t.text)),_(e,n)}var Kb=u(`<h1><!></h1>`),qb=u(`<h2><!></h2>`),Jb=u(`<h3><!></h3>`),Yb=u(`<h4><!></h4>`),Xb=u(`<h5><!></h5>`),Zb=u(`<h6><!></h6>`);function Qb(e,t){te(t,!0);let n=N(t,`id`,3,void 0),r=O(()=>t.options.headerIds?n()??`${t.options.headerPrefix}${t.slug(t.text)}`:void 0);var i=s(),o=F(i),c=e=>{var n=Kb(),i=k(n);a(i,()=>t.children??x),I(n),T(()=>E(n,`id`,l(r))),_(e,n)},u=e=>{var n=qb(),i=k(n);a(i,()=>t.children??x),I(n),T(()=>E(n,`id`,l(r))),_(e,n)},d=e=>{var n=Jb(),i=k(n);a(i,()=>t.children??x),I(n),T(()=>E(n,`id`,l(r))),_(e,n)},f=e=>{var n=Yb(),i=k(n);a(i,()=>t.children??x),I(n),T(()=>E(n,`id`,l(r))),_(e,n)},p=e=>{var n=Xb(),i=k(n);a(i,()=>t.children??x),I(n),T(()=>E(n,`id`,l(r))),_(e,n)},g=e=>{var n=Zb(),i=k(n);a(i,()=>t.children??x),I(n),T(()=>E(n,`id`,l(r))),_(e,n)},v=e=>{var n=y();T(()=>h(n,t.raw)),_(e,n)};m(o,e=>{t.depth===1?e(c):t.depth===2?e(u,1):t.depth===3?e(d,2):t.depth===4?e(f,3):t.depth===5?e(p,4):t.depth===6?e(g,5):e(v,-1)}),_(e,i),ue()}var $b=u(`<hr/>`);function ex(e){var t=$b();_(e,t)}var tx=u(`<img/>`);function nx(e,t){te(t,!0);let r=N(t,`href`,3,void 0),i=N(t,`title`,3,void 0),a=N(t,`text`,3,``),o=N(t,`lazy`,3,!0),s=N(t,`fadeIn`,3,!0),c,u=ae(!1),d=ae(!o()),f=ae(!1);fe(()=>{if(!o())return;if(typeof IntersectionObserver>`u`){P(d,!0);return}let e=new IntersectionObserver(t=>{t[0]?.isIntersecting&&(P(d,!0),e.disconnect())},{rootMargin:`50px`});return c&&e.observe(c),()=>{e?.disconnect()}});let p=()=>{l(f)||P(u,!0)},m=()=>{P(f,!0),P(u,!0)};var h=tx();let g;Se(h,e=>c=e,()=>c),T(()=>{E(h,`src`,l(d)?r():void 0),E(h,`data-src`,r()),E(h,`title`,i()),E(h,`alt`,a()),E(h,`loading`,o()?`lazy`:`eager`),g=Me(h,1,`svelte-1ojo7n2`,null,g,{"fade-in":s()&&l(u)&&!l(f),visible:!s()&&l(u)&&!l(f),error:l(f)})}),Fe(`load`,h,p),Fe(`error`,h,m),n(h),_(e,h),ue()}var rx=u(`<a><!></a>`);function ix(e,t){let n=N(t,`href`,3,void 0),r=N(t,`title`,3,void 0);var i=rx(),o=k(i);a(o,()=>t.children??x),I(i),T(()=>{E(i,`href`,n()),E(i,`title`,r())}),_(e,i)}var ax=u(`<ol><!></ol>`),ox=u(`<ul><!></ul>`);function sx(e,t){let n=N(t,`ordered`,3,!1),r=N(t,`start`,3,1);var i=s(),o=F(i),c=e=>{var n=ax(),i=k(n);a(i,()=>t.children??x),I(n),T(()=>E(n,`start`,r())),_(e,n)},l=e=>{var n=ox(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)};m(o,e=>{n()?e(c):e(l,-1)}),_(e,i)}var cx=u(`<li><!></li>`);function lx(e,t){N(t,`listItemIndex`,3,void 0);var n=cx(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var ux=u(`<p><!></p>`);function dx(e,t){var n=ux(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}function fx(e,t){re();var n=y();T(()=>h(n,t.text)),_(e,n)}var px=u(`<strong><!></strong>`);function mx(e,t){var n=px(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var hx=u(`<table><!></table>`);function gx(e,t){var n=hx(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var _x=u(`<tbody><!></tbody>`);function vx(e,t){var n=_x(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var yx=u(`<th><!></th>`),bx=u(`<td><!></td>`);function xx(e,t){let n=O(()=>t.align?`text-align: ${t.align}`:void 0);var r=s(),i=F(r),o=e=>{var r=yx(),i=k(r);a(i,()=>t.children??x),I(r),T(()=>ne(r,l(n))),_(e,r)},c=e=>{var r=bx(),i=k(r);a(i,()=>t.children??x),I(r),T(()=>ne(r,l(n))),_(e,r)};m(i,e=>{t.header?e(o):e(c,-1)}),_(e,r)}var Sx=u(`<thead><!></thead>`);function Cx(e,t){var n=Sx(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}var wx=u(`<tr><!></tr>`);function Tx(e,t){var n=wx(),r=k(n);a(r,()=>t.children??x),I(n),_(e,n)}function Ex(e,t){var n=s(),r=F(n);a(r,()=>t.children??x),_(e,n)}var Dx={heading:Qb,paragraph:dx,text:Ex,image:nx,link:ix,em:Wb,escape:Gb,strong:mx,codespan:Bb,del:Hb,table:gx,tablehead:Cx,tablebody:vx,tablerow:Tx,tablecell:xx,list:sx,orderedlistitem:null,unorderedlistitem:null,listitem:lx,hr:ex,html:Hv,blockquote:Pb,code:Rb,br:Ib,rawtext:fx},Ox={async:!1,breaks:!1,gfm:!0,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null,headerIds:!0,headerPrefix:``},kx=new Set([`http:`,`https:`,`mailto:`,`tel:`]),Ax=new Set([`href`,`src`,`action`,`formaction`,`cite`,`data`,`poster`]),jx=/^https?:/i,Mx=/^\s+/,Nx=/^[#/?.]/,Px=(e,t)=>{if(!e)return``;let n=e.replace(Mx,``);if(Nx.test(n)||!n.includes(`:`)||jx.test(n))return n;try{let e=new URL(n,`http://localhost`);if(kx.has(e.protocol))return n}catch{}return``},Fx=(e,t,n)=>{let r={};for(let[i,a]of Object.entries(e)){let e=i.toLowerCase();if(!(e.startsWith(`on`)||e===`srcdoc`)){if(Ax.has(e)){let e=n(a,t);e&&(r[i]=e);continue}r[i]=a}}return r},Ix=Symbol(`svelte-markdown.renderMetadata`),Lx=e=>Array.isArray(e)?e:void 0,Rx=e=>typeof e.raw==`string`?e.raw:typeof e.text==`string`?e.text:``,zx=e=>typeof e.sourceLength==`number`?e.sourceLength:Rx(e).length,Bx=e=>({...e}),Vx=e=>({headerIds:e.headerIds,headerPrefix:e.headerPrefix}),Hx=(e,t)=>e!==void 0&&e.headerIds===t.headerIds&&e.headerPrefix===t.headerPrefix,Ux=()=>{let e=new WeakMap,t=new WeakMap,n=new WeakMap,r=[],i=[],a,o=[],s=(t,n)=>{e.set(t,n)},c=t=>typeof t==`object`&&t?e.get(t):void 0,l=(e,t)=>{let n=c(e);return n===void 0?typeof e==`object`&&e?e:`${t}:${String(e)}`:n},u=e=>n.get(e),d=(e,t=0,r=0,i=0)=>{if(!e)return;let a=i;for(let i=r;i<e.length;i++){let r=e[i],o=zx(r),c=t+a;n.set(r,c),o===0?s(r,`src:${c}:zero:${i}`):s(r,`src:${c}`),g(r,c),a+=o}},f=(e,t=new Set)=>{if(typeof e!=`object`||!e)return t;if(t.add(e),Array.isArray(e)){for(let n of e)f(n,t);return t}let n=e;return f(n.tokens,t),f(n.items,t),f(n.header,t),f(n.rows,t),t},p=(e,t)=>{let n=0,[r,i]=e.size<=t.size?[e,t]:[t,e];for(let e of r)i.has(e)&&n++;return n},m=(e,t,n)=>{let r=-1,i=0;for(let a=0;a<o.length;a++){if(n.has(a))continue;let s=o[a];if(s.type!==e.type)continue;let c=p(t,s.identities);c>i&&(r=a,i=c)}return r===-1?void 0:{index:r,record:o[r]}},h=e=>{if(!e){o=[];return}let t=[],n=new Set;for(let r of e){let e=f(r),i=c(r),a=i===void 0?m(r,e,n):void 0,o=i??a?.record.key??r;a&&n.add(a.index),i===void 0&&s(r,o),t.push({key:o,identities:e,type:r.type})}o=t},g=(e,t)=>{d(Lx(e.tokens),t),d(Lx(e.items),t),d(Lx(e.header),t);let n=Lx(e.rows);if(n)for(let e=0;e<n.length;e++){let r=n[e];s(r,`src:${t}:row:${e}`),d(Lx(r),t)}},_=(e,t,n,r,i,a=0)=>{if(e)for(let o=a;o<e.length;o++){let a=e[o];a.type===`heading`&&(v(a,t,n),y(a,n,r,i)),_(Lx(a.tokens),t,n,r,i),_(Lx(a.items),t,n,r,i),_(Lx(a.header),t,n,r,i);let s=Lx(a.rows);if(s)for(let e of s)_(Lx(e),t,n,r,i)}},v=(e,n,r)=>{t.set(e,n.headerIds&&typeof e.text==`string`?`${n.headerPrefix}${r.slug(e.text)}`:void 0)},y=(e,t,n,r)=>{n.push(e);let i=u(e);r.push(i===void 0?void 0:{offset:i,occurrences:Bx(t.occurrences)})},b=e=>{let t=0;for(let n of r){let r=u(n);if(r===void 0)return;if(r>=e)break;let a=i[t];if(!a||a.offset!==r)return;t++}return t},x=(e,t,n,o,s)=>{let c=Vx(t);if(!Hx(a,c))return!1;let l=b(n);if(l===void 0)return!1;if(o.push(...r.slice(0,l)),s.push(...i.slice(0,l)),l===0)return!0;let u=i[l-1];return u?(e.occurrences=Bx(u.occurrences),!0):!1},S=(e,t,n,i,a)=>{for(let o of r){let r=u(o);r===void 0||r>=n||(v(o,t,e),y(o,e,i,a))}},C=(e,t,n)=>{let o=new Gv,s=[],c=[];n?.source!==void 0&&n.startOffset!==void 0&&(x(o,t,n.startOffset,s,c)||S(o,t,n.startOffset,s,c)),_(e,t,o,s,c,n?.startIndex??0),r=s,i=c,a=Vx(t)};return{prepareTokensForRender:(e,t,n)=>{if(!e)return e;let r=e;return n?.source===void 0?h(r):(o=[],d(r,0,n.startIndex??0,n.startOffset??0)),C(r,t,n),e},getPreparedHeadingId:e=>typeof e==`object`&&e?t.get(e):void 0,getStableNodeKey:l,getStableRowKey:(e,t)=>{let n=c(e);return n===void 0?e&&e.length>0?l(e[0],t):e||t:n}}},Wx=new Set([`br`,`hr`,`img`,`input`,`link`,`meta`,`area`,`base`,`col`,`embed`,`keygen`,`param`,`source`,`track`,`wbr`]),Gx=Object.freeze({}),Kx=new Set([`$$slots`,`$$events`,`$$legacy`,`type`,`tokens`,`header`,`rows`,`ordered`,`renderers`,`snippetOverrides`,`htmlSnippetOverrides`,`sanitizeUrl`,`sanitizeAttributes`]),qx=u(`<!> <!>`,1);function Jx(e,n){te(n,!0);let r=(e,i=x,a=x)=>{let o=O(i),c=O(()=>i().type===`html`&&!!l(o).tag&&!!n.renderers.html&&l(o).tag in Hv&&n.renderers.html[l(o).tag]===Hv[l(o).tag]&&!g()[l(o).tag]);var u=s(),d=F(u),f=e=>{},C=e=>{var t=y();T(()=>h(t,i().text??i().raw)),_(e,t)},ee=e=>{let n=O(()=>l(o).attributes?b()(l(o).attributes,{type:`html`,tag:l(o).tag},v()):void 0);var i=s(),c=F(i),u=e=>{var t=s(),r=F(t);S(r,()=>l(o).tag,!1,(e,t)=>{A(e,()=>({...l(n)}))}),_(e,t)},d=O(()=>Wx.has(l(o).tag)),f=e=>{var i=s(),c=F(i);S(c,()=>l(o).tag,!1,(e,i)=>{A(e,()=>({...l(n)}));var c=s(),u=F(c),d=e=>{var n=s(),i=F(n);t(i,19,()=>l(o).tokens,(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),a)}),_(e,n)};m(u,e=>{l(o).tokens&&l(o).tokens.length&&e(d)}),_(i,c)}),_(e,i)};m(c,e=>{l(d)?e(u):e(f,-1)}),_(e,i)},te=e=>{let t=O(()=>i().type===`heading`?{id:w.getPreparedHeadingId(i())??i().id}:Gx);Jx(e,ge(a,i,()=>l(t),{get renderers(){return n.renderers},get snippetOverrides(){return p()},get htmlSnippetOverrides(){return g()},get sanitizeUrl(){return v()},get sanitizeAttributes(){return b()}}))};m(d,e=>{i().type===`space`&&l(D)?e(f):i().type===`text`&&l(E)&&!i().tokens?e(C,1):l(c)&&l(o).tag?e(ee,2):e(te,-1)}),_(e,u)},i=N(n,`type`,3,void 0),c=N(n,`tokens`,3,void 0),u=N(n,`header`,3,void 0),d=N(n,`rows`,3,void 0),f=N(n,`ordered`,3,!1),p=N(n,`snippetOverrides`,19,()=>({})),g=N(n,`htmlSnippetOverrides`,19,()=>({})),v=N(n,`sanitizeUrl`,3,Px),b=N(n,`sanitizeAttributes`,3,Fx),C=ie(n,Kx),ee=de(Ix),w=ee?ye(Ix):Ux();ee||ke(Ix,w);let E=O(()=>n.renderers.text===Dx.text&&!p().text&&n.renderers.rawtext===Dx.rawtext&&!p().rawtext),D=O(()=>!n.renderers.space&&!p().space),ne=O(()=>{if((i()===`link`||i()===`image`)&&typeof n.href==`string`){let e=i()===`link`?`a`:`img`,t=v()(n.href,{type:i(),tag:e});return{...C,href:t||void 0}}if(i()===`html`&&n.attributes){let e=n.tag??``;return{...C,attributes:b()(n.attributes,{type:i(),tag:e},v())}}return C});var re=s(),ae=F(re),oe=e=>{var n=s(),i=F(n),a=e=>{let n=O(()=>{let{text:e,raw:t,tokens:n,...r}=C;return{_text:e,_raw:t,_tokens:n,parserRest:r}});var i=s(),a=F(i);t(a,19,c,(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),()=>l(n).parserRest)}),_(e,i)};m(i,e=>{c()&&e(a)}),_(e,n)},k=e=>{var h=s(),v=F(h),y=e=>{var c=s(),f=F(c),h=e=>{let c=e=>{var i=qx(),c=F(i),f=e=>{let i=e=>{let i=e=>{var i=s(),c=F(i);t(c,19,()=>u()??[],(e,t)=>w.getStableNodeKey(e,t),(e,i,c)=>{let u=e=>{var n=s(),a=F(n);t(a,19,()=>l(i).tokens??[],(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),()=>({}))}),_(e,n)},d=O(()=>{let{align:e,...t}=l(ne);return{_align:e,cellRest:t}});var f=s(),p=F(f),h=e=>{var t=s(),n=F(t);{let e=O(()=>({header:!0,align:l(ne).align?.[l(c)]??null,...l(d).cellRest,children:u}));a(n,()=>l(y),()=>l(e))}_(e,t)},g=e=>{var t=s(),r=F(t);{let e=O(()=>l(ne).align?.[l(c)]??null);o(r,()=>n.renderers.tablecell,(t,n)=>{n(t,ge({header:!0,get align(){return l(e)}},()=>l(d).cellRest,{children:(e,t)=>{u(e)},$$slots:{default:!0}}))})}_(e,t)};m(p,e=>{l(y)?e(h):e(g,-1)}),_(e,f)}),_(e,i)};var c=s(),d=F(c),f=e=>{var t=s(),n=F(t);{let e=O(()=>({...l(ne),children:i}));a(n,()=>l(v),()=>l(e))}_(e,t)},p=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.tablerow,(e,t)=>{t(e,ge(()=>l(ne),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),_(e,t)};m(d,e=>{l(v)?e(f):e(p,-1)}),_(e,c)};var c=s(),d=F(c),f=e=>{var t=s(),n=F(t);{let e=O(()=>({...l(ne),children:i}));a(n,()=>l(h),()=>l(e))}_(e,t)},p=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.tablehead,(e,t)=>{t(e,ge(()=>l(ne),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),_(e,t)};m(d,e=>{l(h)?e(f):e(p,-1)}),_(e,c)};m(c,e=>{n.renderers.tablehead&&e(f)});var p=M(c,2),b=e=>{let i=e=>{var i=s(),c=F(i);t(c,19,()=>d()??[],(e,t)=>w.getStableRowKey(e,t),(e,i)=>{let c=e=>{var c=s(),u=F(c);t(u,19,()=>l(i)??[],(e,t)=>w.getStableNodeKey(e,t),(e,i,c)=>{let u=e=>{var n=s(),a=F(n);t(a,19,()=>l(i).tokens??[],(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),()=>l(d).cellRest)}),_(e,n)},d=O(()=>{let{align:e,...t}=l(ne);return{_align:e,cellRest:t}});var f=s(),p=F(f),h=e=>{var t=s(),n=F(t);{let e=O(()=>({header:!1,align:l(ne).align?.[l(c)]??null,...l(d).cellRest,children:u}));a(n,()=>l(y),()=>l(e))}_(e,t)},g=e=>{var t=s(),r=F(t);{let e=O(()=>l(ne).align?.[l(c)]??null);o(r,()=>n.renderers.tablecell,(t,n)=>{n(t,ge(()=>l(d).cellRest,{header:!1,get align(){return l(e)},children:(e,t)=>{u(e)},$$slots:{default:!0}}))})}_(e,t)};m(p,e=>{l(y)?e(h):e(g,-1)}),_(e,f)}),_(e,c)};var u=s(),d=F(u),f=e=>{var t=s(),n=F(t);{let e=O(()=>({...l(ne),children:c}));a(n,()=>l(v),()=>l(e))}_(e,t)},p=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.tablerow,(e,t)=>{t(e,ge(()=>l(ne),{children:(e,t)=>{c(e)},$$slots:{default:!0}}))}),_(e,t)};m(d,e=>{l(v)?e(f):e(p,-1)}),_(e,u)}),_(e,i)};var c=s(),u=F(c),f=e=>{var t=s(),n=F(t);{let e=O(()=>({...l(ne),children:i}));a(n,()=>l(g),()=>l(e))}_(e,t)},p=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.tablebody,(e,t)=>{t(e,ge(()=>l(ne),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),_(e,t)};m(u,e=>{l(g)?e(f):e(p,-1)}),_(e,c)};m(p,e=>{n.renderers.tablebody&&e(b)}),_(e,i)},f=O(()=>p()[i()]),h=O(()=>p().tablehead),g=O(()=>p().tablebody),v=O(()=>p().tablerow),y=O(()=>p().tablecell);var b=s(),x=F(b),S=e=>{var t=s(),n=F(t);{let e=O(()=>({...l(ne),children:c}));a(n,()=>l(f),()=>l(e))}_(e,t)},C=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.table,(e,t)=>{t(e,ge(()=>l(ne),{children:(e,t)=>{c(e)},$$slots:{default:!0}}))}),_(e,t)};m(x,e=>{l(f)?e(S):e(C,-1)}),_(e,b)};m(f,e=>{n.renderers.table&&n.renderers.tablerow&&n.renderers.tablecell&&e(h)}),_(e,c)},b=e=>{let i=O(()=>p().list);var c=s(),u=F(c),d=e=>{let c=e=>{let i=O(()=>{let{items:e,...t}=l(ne);return{_items:e,parserRest:t}}),c=O(()=>l(i)._items??[]);var u=s(),d=F(u);t(d,19,()=>l(c),(e,t)=>w.getStableNodeKey(e,t),(e,c)=>{let u=e=>{var n=s(),a=F(n);t(a,19,()=>l(c).tokens??[],(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),()=>l(i).parserRest)}),_(e,n)},d=O(()=>n.renderers.orderedlistitem||n.renderers.listitem),f=O(()=>p().orderedlistitem||p().listitem);var h=s(),g=F(h),v=e=>{var t=s(),n=F(t);{let e=O(()=>({...l(c),children:u}));a(n,()=>l(f),()=>l(e))}_(e,t)},y=e=>{var t=s(),n=F(t);o(n,()=>l(d),(e,t)=>{t(e,ge(()=>l(c),{children:(e,t)=>{u(e)},$$slots:{default:!0}}))}),_(e,t)};m(g,e=>{l(f)?e(v):l(d)&&e(y,1)}),_(e,h)}),_(e,u)};var u=s(),d=F(u),h=e=>{var t=s(),n=F(t);{let e=O(()=>({ordered:f(),...l(ne),children:c}));a(n,()=>l(i),()=>l(e))}_(e,t)},g=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.list,(e,t)=>{t(e,ge({get ordered(){return f()}},()=>l(ne),{children:(e,t)=>{c(e)},$$slots:{default:!0}}))}),_(e,t)};m(d,e=>{l(i)?e(h):e(g,-1)}),_(e,u)},h=e=>{let c=e=>{let i=O(()=>{let{items:e,...t}=l(ne);return{_items:e,parserRest:t}}),c=O(()=>l(i)._items??[]);var u=s(),d=F(u);t(d,19,()=>l(c),(e,t)=>w.getStableNodeKey(e,t),(e,c)=>{let u=e=>{var n=s(),a=F(n);t(a,19,()=>l(c).tokens??[],(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),()=>l(i).parserRest)}),_(e,n)},d=O(()=>n.renderers.unorderedlistitem||n.renderers.listitem),f=O(()=>p().unorderedlistitem||p().listitem);var h=s(),g=F(h),v=e=>{var t=s(),n=F(t);{let e=O(()=>({...l(c),children:u}));a(n,()=>l(f),()=>l(e))}_(e,t)},y=e=>{var t=s(),n=F(t);o(n,()=>l(d),(e,t)=>{t(e,ge(()=>l(c),{children:(e,t)=>{u(e)},$$slots:{default:!0}}))}),_(e,t)};m(g,e=>{l(f)?e(v):l(d)&&e(y,1)}),_(e,h)}),_(e,u)};var u=s(),d=F(u),h=e=>{var t=s(),n=F(t);{let e=O(()=>({ordered:f(),...l(ne),children:c}));a(n,()=>l(i),()=>l(e))}_(e,t)},g=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.list,(e,t)=>{t(e,ge({get ordered(){return f()}},()=>l(ne),{children:(e,t)=>{c(e)},$$slots:{default:!0}}))}),_(e,t)};m(d,e=>{l(i)?e(h):e(g,-1)}),_(e,u)};m(u,e=>{f()?e(d):e(h,-1)}),_(e,c)},x=e=>{let i=O(()=>{let{tag:e,...t}=l(ne);return{tag:e,localRest:t}}),u=O(()=>l(ne).tag),d=O(()=>g()[l(u)]),f=O(()=>Object.fromEntries(Object.entries(l(i).localRest).filter(([e])=>e!==`attributes`)));var p=s(),h=F(p),v=e=>{let i=e=>{var i=s(),a=F(i),u=e=>{var n=s(),i=F(n);t(i,19,c,(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),()=>l(f))}),_(e,n)},d=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.rawtext,(e,t)=>{t(e,ge({get text(){return l(ne).raw}},()=>l(ne)))}),_(e,t)};m(a,e=>{c()&&c().length?e(u):e(d,-1)}),_(e,i)};var u=s(),p=F(u);a(p,()=>l(d),()=>({attributes:l(ne).attributes,children:i})),_(e,u)},y=e=>{let i=O(()=>n.renderers.html[l(u)]);var a=s(),d=F(a),p=e=>{var a=s(),u=F(a);o(u,()=>l(i),(e,i)=>{i(e,ge(()=>l(ne),{children:(e,i)=>{var a=s(),u=F(a),d=e=>{var n=s(),i=F(n);t(i,19,c,(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),()=>l(f))}),_(e,n)},p=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.rawtext,(e,t)=>{t(e,ge({get text(){return l(ne).raw}},()=>l(ne)))}),_(e,t)};m(u,e=>{c()&&c().length?e(d):e(p,-1)}),_(e,a)},$$slots:{default:!0}}))}),_(e,a)};m(d,e=>{l(i)&&e(p)}),_(e,a)},b=e=>{let n=O(()=>Object.fromEntries(Object.entries(l(i).localRest).filter(([e])=>e!==`tokens`))),a=O(()=>c()??[]);var o=s(),u=F(o);t(u,19,()=>l(a),(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),()=>l(n))}),_(e,o)};m(h,e=>{l(d)?e(v):n.renderers.html&&l(u)in n.renderers.html?e(y,1):e(b,-1)}),_(e,p)},S=e=>{let u=e=>{var i=s(),a=F(i),u=e=>{let n=O(()=>{let{text:e,raw:t,...n}=l(ne);return{_text:e,_raw:t,parserRest:n}});var i=s(),a=F(i);t(a,19,c,(e,t)=>w.getStableNodeKey(e,t),(e,t)=>{r(e,()=>l(t),()=>l(n).parserRest)}),_(e,i)},d=e=>{var t=s(),r=F(t);o(r,()=>n.renderers.rawtext,(e,t)=>{t(e,ge({get text(){return l(ne).raw}},()=>l(ne)))}),_(e,t)};m(a,e=>{c()?e(u):e(d,-1)}),_(e,i)},d=O(()=>n.renderers[i()]),f=O(()=>p()[i()]);var h=s(),g=F(h),v=e=>{var t=s(),n=F(t);{let e=O(()=>({...l(ne),children:u}));a(n,()=>l(f),()=>l(e))}_(e,t)},y=e=>{var t=s(),n=F(t);o(n,()=>l(d),(e,t)=>{t(e,ge(()=>l(ne),{children:(e,t)=>{u(e)},$$slots:{default:!0}}))}),_(e,t)};m(g,e=>{l(f)?e(v):l(d)&&e(y,1)}),_(e,h)};m(v,e=>{i()===`table`?e(y):i()===`list`&&n.renderers.list?e(b,1):i()===`html`?e(x,2):e(S,-1)}),_(e,h)};m(ae,e=>{i()?(i()in n.renderers||i()in p())&&e(k,1):e(oe)}),_(e,re),ue()}var Yx=Object.keys(Dx).filter(e=>e!==`html`),Xx=Object.keys(Hv),Zx=e=>({...Dx,...e,html:e.html?{...Dx.html,...e.html}:Dx.html}),Qx=e=>[...Yx,...e],$x=(e,t)=>Object.fromEntries(t.filter(t=>t in e&&e[t]!=null).map(t=>[t,e[t]])),eS=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>e.startsWith(`html_`)&&t!=null).map(([e,t])=>[e.slice(5),t])),tS=(e,t)=>{let n=new Set([...t,...Object.keys(e).filter(e=>e.startsWith(`html_`))]);return Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)))},nS=0,rS=new WeakMap,iS=e=>{let t=rS.get(e);return t||(t=++nS,rS.set(e,t)),t},aS=e=>typeof e==`function`?iS(e):null,oS=e=>e.flatMap(e=>e.extensions?.map(e=>e.name)??[]),sS=e=>e.length>0?new kb(...e).defaults:{},cS=e=>e.some(e=>e.async===!0),lS=e=>e.map(e=>({extension:iS(e),async:e.async??!1,extensions:e.extensions?.map(e=>{let t=e;return{token:iS(e),name:e.name,level:t.level??null,childTokens:t.childTokens??null,start:aS(t.start),tokenizer:aS(t.tokenizer),renderer:aS(t.renderer)}})??null,hooks:e.hooks?iS(e.hooks):null,renderer:e.renderer?iS(e.renderer):null,tokenizer:e.tokenizer?iS(e.tokenizer):null,walkTokens:aS(e.walkTokens)})),uS=(e,t)=>{let n=sS(t),r=t.length>0?lS(t):void 0;return{...Ox,...n,...e,...r?{_svelteMarkdownExtensionCacheSignature:r}:{}}},dS=class e extends Error{constructor(t){super(t),this.name=`CacheConfigError`,Object.setPrototypeOf(this,e.prototype)}},fS=Symbol(`CACHED_UNDEFINED`),pS=Symbol(`CACHED_NULL`),mS=class{constructor(e={}){this.cache=new Map,this.inFlight=new Map,this.totalWeight=0,this.stats={hits:0,misses:0,evictions:0,expirations:0},this.expirationQueue=[],this.compactionScheduled=!1;let t=e.maxSize??100,n=e.maxWeight??0,r=e.ttl??3e5;if(t<0)throw new dS(`maxSize must be a non-negative number`);if(r<0)throw new dS(`ttl must be a non-negative number`);if(n<0||Number.isNaN(n))throw new dS(`maxWeight must be a non-negative number`);if(n>0&&!e.sizeCalculation)throw new dS(`sizeCalculation is required when maxWeight is greater than 0`);this.maxSize=t,this.maxWeight=n,this.sizeCalculation=e.sizeCalculation,this.ttl=r,this.hooks=e.hooks??{}}callHook(e,t){if(e)try{e(t)}catch{}}unwrapValue(e){if(e!==fS)return e===pS?null:e}removeEntry(e){let t=this.cache.get(e);if(t&&this.cache.delete(e))return this.totalWeight-=t.weight,this.cache.size===0&&(this.totalWeight=0),t}evictEntry(e){let t=this.removeEntry(e);return t?(this.stats.evictions++,this.callHook(this.hooks.onEvict,{key:e,value:this.unwrapValue(t.value)}),!0):!1}exceedsCapacity(e,t){let n=this.cache.size+ +(t===void 0),r=this.totalWeight-(t??0)+e;return this.maxSize>0&&n>this.maxSize||this.maxWeight>0&&r>this.maxWeight}read(e,t,n){let r=this.cache.get(e);if(!r)return n&&(this.stats.misses++,this.callHook(this.hooks.onMiss,{key:e,reason:`not_found`})),{found:!1,reason:`not_found`};if(this.ttl>0&&Date.now()-r.timestamp>this.ttl){let i=this.unwrapValue(r.value);return this.removeEntry(e),this.stats.expirations++,this.callHook(this.hooks.onExpire,{key:e,value:i,source:t}),n&&(this.stats.misses++,this.callHook(this.hooks.onMiss,{key:e,reason:`expired`})),{found:!1,reason:`expired`}}n&&(this.cache.delete(e),this.cache.set(e,r),this.stats.hits++);let i=this.unwrapValue(r.value);return n&&this.callHook(this.hooks.onHit,{key:e,value:i}),{found:!0,value:i}}get(e){let t=this.read(e,`get`,!0);return t.found?t.value:void 0}async getOrSet(e,t){let n=this.inFlight.get(e);if(n)return n;let r=this.read(e,`get`,!0);if(r.found)return r.value;let i=(async()=>{try{let n=await t();return this.set(e,n),n}finally{this.inFlight.delete(e)}})();return this.inFlight.set(e,i),i}has(e){return this.read(e,`has`,!1).found}set(e,t){let n=0;if(this.maxWeight>0&&(n=this.sizeCalculation(t,e),!Number.isFinite(n)||n<0))throw RangeError(`sizeCalculation must return a finite, non-negative number`);let r=this.cache.get(e);if(this.maxWeight>0&&n>this.maxWeight){r&&this.evictEntry(e);return}this.exceedsCapacity(n,r?.weight)&&this.prune();let i=this.cache.get(e);for(;this.exceedsCapacity(n,i?.weight);){let t;for(let n of this.cache.keys())if(n!==e){t=n;break}if(t===void 0||!this.evictEntry(t))break;i=this.cache.get(e)}let a=i!==void 0;a&&this.removeEntry(e);let o;o=t===void 0?fS:t===null?pS:t;let s=Date.now();if(this.cache.set(e,{value:o,timestamp:s,weight:n}),this.totalWeight+=n,this.ttl>0){let t=this.expirationQueue,n=t[t.length-1];n?.key===e?n.timestamp=s:t.push({key:e,timestamp:s})}this.callHook(this.hooks.onSet,{key:e,value:t,isUpdate:a})}delete(e){let t=this.removeEntry(e);if(t){let n=this.unwrapValue(t.value);this.callHook(this.hooks.onDelete,{key:e,value:n,source:`delete`})}return t!==void 0}async deleteAsync(e){let t=this.removeEntry(e);if(t){let n=this.unwrapValue(t.value);this.callHook(this.hooks.onDelete,{key:e,value:n,source:`deleteAsync`})}return Promise.resolve(t!==void 0)}clear(){for(let[e,t]of this.cache.entries()){let n=this.unwrapValue(t.value);this.removeEntry(e),this.callHook(this.hooks.onDelete,{key:e,value:n,source:`clear`})}this.expirationQueue=[],this.compactionScheduled=!1}deleteByPrefix(e){let t=0;for(let[n,r]of this.cache.entries())if(n.startsWith(e)){let e=this.unwrapValue(r.value);this.removeEntry(n),this.callHook(this.hooks.onDelete,{key:n,value:e,source:`deleteByPrefix`}),t++}return t}deleteByMagicString(e){let t=0,n=e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`).replace(/\*/g,`.*`),r=RegExp(`^${n}$`);for(let[e,n]of this.cache.entries())if(r.test(e)){let r=this.unwrapValue(n.value);this.removeEntry(e),this.callHook(this.hooks.onDelete,{key:e,value:r,source:`deleteByMagicString`}),t++}return t}size(){return this.prune(),this.cache.size}keys(){return this.prune(),Array.from(this.cache.keys())}values(){this.prune();let e=[];for(let t of this.cache.values())t.value===fS?e.push(void 0):t.value===pS?e.push(null):e.push(t.value);return e}entries(){this.prune();let e=[];for(let[t,n]of this.cache.entries()){let r;r=n.value===fS?void 0:n.value===pS?null:n.value,e.push([t,r])}return e}getStats(){return this.prune(),{hits:this.stats.hits,misses:this.stats.misses,evictions:this.stats.evictions,expirations:this.stats.expirations,size:this.cache.size,weight:this.totalWeight}}resetStats(){this.stats.hits=0,this.stats.misses=0,this.stats.evictions=0,this.stats.expirations=0}prune(){if(this.ttl<=0)return 0;let e=0,t=Date.now(),n=this.expirationQueue,r=0;for(;r<n.length&&t-n[r].timestamp>this.ttl;){let{key:t,timestamp:i}=n[r];r++;let a=this.cache.get(t);if(a&&a.timestamp===i){let n=this.unwrapValue(a.value);this.removeEntry(t),this.stats.expirations++,this.callHook(this.hooks.onExpire,{key:t,value:n,source:`prune`}),e++}}return r>0&&n.splice(0,r),!this.compactionScheduled&&this.expirationQueue.length>2*this.cache.size&&(this.compactionScheduled=!0,queueMicrotask(()=>{this.compactionScheduled=!1,this.expirationQueue=this.expirationQueue.filter(e=>{let t=this.cache.get(e.key);return t!==void 0&&t.timestamp===e.timestamp})})),e}},hS=e=>{let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return(t>>>0).toString(36)},gS=new WeakMap,_S=(e,t)=>{let n=hS(e),r=gS.get(t);if(!r){let e=new WeakSet;r=hS(JSON.stringify(t,(t,n)=>{if(typeof n==`function`)return n.name||n.toString();if(n&&typeof n==`object`){if(e.has(n))return`[Circular]`;e.add(n)}return n})),gS.set(t,r)}return`${n}:${r}`},vS=new class extends mS{constructor(e){super({maxSize:50,ttl:3e5,...e})}getTokens(e,t){let n=_S(e,t),r=this.get(n);if(r!==void 0&&r.source===e)return r.tokens}setTokens(e,t,n){let r=_S(e,t);this.set(r,{source:e,tokens:n})}hasTokens(e,t){return this.getTokens(e,t)!==void 0}deleteTokens(e,t){let n=_S(e,t);return this.delete(n)}clearAllTokens(){this.clear()}},yS=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function bS(e){return e===0||e>=55296&&e<=57343||e>1114111}function xS(e){return bS(e)?65533:e>=128&&e<=159&&yS[e-128]||e}function SS(e){return bS(e)?65533:e}var CS=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})();function wS(e,t,n,r,i,a){let o=e.length,s=a*90,c=0,l=()=>{let t=CS[e.charCodeAt(c++)];return t<a?t:t*91-s+CS[e.charCodeAt(c++)]},u=n-r,d=n+i,f=new Int32Array(d);f.fill(-1,r,a),f.fill(-1,a+u,d);let p=new Int32Array(d),m=new Int32Array(d);function h(t,n){let r=0,i=n,a=n+t;for(;i<a;){let t=CS[e.charCodeAt(c++)];if(t<89)r+=t,f[i++]=r;else if(t===89){let t=CS[e.charCodeAt(c++)]+2;for(;t--;)f[i++]=++r}else{let t=CS[e.charCodeAt(c++)];r+=89+(t<90?t*91+CS[e.charCodeAt(c++)]:CS[e.charCodeAt(c++)]*8281+CS[e.charCodeAt(c++)]*91+CS[e.charCodeAt(c++)]),f[i++]=r}}}h(r,0),h(u,a);let g=new Int32Array(i*2),_=0,v=0;function y(e,t){for(let n=0;n<e;n++){let e=t+n,r=l(),i=l();g[v*2]=r,g[v*2+1]=i,v+=1,p[e]=_;let a=(f[r]<0?m[r]:1)+(f[i]<0?m[i]:1);m[e]=a,_+=a}}y(i-a+r,a+u),y(a-r,r);let b=new Uint16Array(_),x=0;for(let e=0;e<v;e++)for(let t=0;t<2;t++){let n=g[e*2+t],r=f[n];if(r<0){let e=p[n],t=e+m[n];for(;e<t;)b[x++]=b[e++]}else b[x++]=r}let S=new Uint16Array(t),C=0;for(;c<o;){let t=CS[e.charCodeAt(c++)];t>=a&&(t=t*91-s+CS[e.charCodeAt(c++)]);let n=f[t];if(n<0){let e=p[t],n=e+m[t];for(;e<n;)S[C++]=b[e++]}else S[C++]=n}return S}var TS=wS("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%}-&}6&#&}-,%}#%})-(~+`~,=?~I9'9%~!,#%})%})%}@%}?%}(~!?~#<~#pP~#BG~#=1#%K+~#?#~%;)~#A~#mF1~#A'~'X%'~#lR~#N~'N~#r~#m#-~#i'?%#'%~#B%##%,%#~#_%#0%~#]732~,w~2+#:&#%&'0%&>%}#>##F+)#%&&#(+_}4&}-%}(&}@&}O7Fdf0@+/v4}&WU##&/0#&'('B#%}.%}'+#%}#%%&#&%#%##+#&#)#6#'#.},%}c%},%#%##%&#&%#&~#>'*-.%##%##%}#%%}%'~#)D1}#%*&~#_%%'(~#S2%'.}#~#=##*'*-%}&'%'##&&~'E%.#&~#M4}%%##&'%#~#O1##%&#'+~#<B%##%%'%+~#;#@%}#&%#&&%#(~#H1}'%'##&&~#?A}&'~#D#%32}'&&&&~#[}'(#%}'~#;C})&}%%#%~#=&%,3}%'(#%%~#^'#&&)#%'~#Y%-~#d-%'~#^%%&#&&&}#~#b~2t*&'~&(~&@~0%~e~3}%*''0})&}+~!9##-}#%-hD*)1fC#%/&/fB#40~!+#)*4~!+~!K'&:~!/*7~!.#~!H~!L':~%x&~!H#~!*~%1~!I#~!+A~#p'~!F~~#-#~,,(~.Z~!V~%;'B'mq-W~!N~%I%#&&#&}#%},%%}'%}+X#%}#&}(%}'%}<%}#%}%%'}'%}:~![)9@~%>~#UA%-%##&~!C%~!-.9:~!1~!-^2/:a~!y,D*J#-5)/4~%23,~#G~!L1~!0X3`~!2+~!!0-~&E~!W~!o,>Y&]~%cZx_&~#O*9#A#'#+I'%#)~!0B*-5A+-((F&*M#)(-7-5+'-3a5Vi~!Y~!?+[)%3),ERHm~!+:D,VG.+)?fB%%*(%)'(#&80%1'8`K8?`+'Z#&O&'H5#*9)A%%5&3))0%39+.*7#()&&*=4@**L)<'_&*+..;(#*+)./&0#3)%')-8(4ixD(&.}%,('aI:,)%,k2231T)I'#/-W7,/'Q#.'Y24+h')37</31&83##&0#),H(?'&?/1##%#&&#%''-%&&&#(&''&#.-'%#%%(,')*'&#&#'##%(%(#%('#&##%%%%('%#%#%%#%#&%##h>w+v<ayvyvcg.uuhKr}g/v|g>u9i[~>g5uI~=RvdwEg;v/g;uk!!TTSx]@RT!U!#!@VBRUU!'UTe-d0c`e&gSdicedFcrdTaqb.kYcAohdYd@a3e+d}dMdtd.aJ#bqcK`dle/e.e'dwdPdodddjbEb}ogd^ofdpduc6j?l%d{drdqc)d7bacOdQ%T#Y)X.sR[yH>6Vyv3[xwLu>vo'!*.[yBacahoj>6Rew3[xqdZa#!a&#^(X-[yG>6Vyu3[xvg3sEr|g.u/Ri9db0T#^(Xa)!-[y;>6Vylg4wKs{JwNZt3@3r=c4Z([xlg;wKt!cpq's@v7A'*a(a+!-a#[y<3Dt?3Dt'>6Vym3[xmg9rxsNJwLZt4~?r?db1T#`-!(Xa,!0[yS>6Vz%NuQs.g4wKtnJwNZtS@3r>c4Z([y%g;wKtrdga8!a(!#&T*Y-Xa#!a0<or[yc3Dtq>6Vz43[y3JwNZtf@3s!Ju}!%Dti:pm3c_%X#tjB5pkd6q!r]u?voC'*-a.a2!0a&a+[yI3DtI3Ds~3DtH>6Vyw3[xx;:s#~<5pKJwNZtE@3r~d`a)!a2T#a.(!+U.X1[yT3Dt`3Dtv>6Vz&3[y&g9rxwzcxstPu.<rAJwLZtT~?r@dZa%!a.&^*Za(/Reu[ya>6Vz23[y1g3sEr}wkg{NuQRg{ci(U#5@b`~,cg#U(2WnH5wugcRh7dX#T(Y,a'Ta!!a,[yZ<]mj>6Vz,3[y+Pv#5ReZKu+=,%!H}7ABwkaS?Rh:BcW(X#<]mrj:ubv/ARekdg%!(!a.*Ta(Y.X1!#sP>Rl*Dt6[y>>6Vyo3Wf*jOvuumvuRgRJuq*!:9<B@bX~3jVv&v@s@5Re[d/rQt{uAvo&a&a*)a2!,0Wf!3Dt0=Bs'>6Re}3[xy~<5s%JwJZt1~Gs)c;&!#2sJkNuXvzq7rxu,Re8dka4!a8(aEZ+a@Y.X1Xa)[yd=Bs(3DtP>6Vz53[y4cX#X&Re:avRe9~<5s&JwJZtQ~Gs*i^rzvdRg+Jv{%!2sbB@bX}kdga,!Za?&^*T1/!a'Dt+[y6>6Vyf3Wf%g/u;s4hGu6?Rh-JvZ,!c%#&RoX54Rivj7uyvf8RgTKvZB%*!2sGh<vu5Rgq<=C::9bb~#dZ#T&Ta6Y.X*Dt>[y93Wf)coZ(T,6VyifluvRgC@95@B@bX~/hFu34cC#T,k/unq8w8Q5RkUklwQuzunq8w8Q5Rk8d/rJu?v8w9)-&!a0a;a&aIWejg3sEr/h1s<DtDJvyZqY5aws3Jvy!&Wei~Hr1:au5@Bag>23E~5c:Z&bX};kKv?w&unuVu5Rjc;>bs)#~@:Rh.=ay<a]C;b`}Vd6s/t{uAvoaxa()!a,a7%-a#a2Dt,[yF2Wo[>6Vyt3[xuNuPRi&NuPwpi#RoWh?vf8Ri%Jv]!%Ri:KvxD!.'2WeAjZu`q9rxu,Re7woeAg-unLq(qA_/*2Wg_g3u5q^9:4E}/jTrxrzv=Wkkd~0UX#^^Xa-a1a5T&a=U1a'*aEa]!a*aPaA-adok[y54Rn>;:p3~Dp5g9rpsFNvZqjg3uJp4~<5p0Pw;5qlJwNZt*@3p1Pw:5p/Ou!5p2JvG'!6Vye=<qnJvh_[xhg3v,Rh3kOwOw-sDuev/Re^dha[a%!%!a+#Ta7)-5TaCaO!aka!a)sf[yb2>Rl!9ARiq5E}Qg=ucRkBE|oJrJ_@Wk~@Wk{JrJ_@Wk|@WkyJrJ_@Wk}@WkzJvO_[y2g-vMRmiKuYC!)&>Ri;>Ri<@3RkNc](X#@9Rk=g5vuRmhKvDB!+'=]meg3u4Rmgd)#Y'Vz3CARmfd`a+!%T'!+#Ta1Ta6TaM-sTDt9[yA9sYd'%Y#s[[xpj:ueunaXRgEjRq,v-vuqdd2'`#6Rev<32@5>:2<E}5xIo9a*X#Y(;5RePJvD_g>vyRgNj8w)v8<wggs:RgXiZt|vjx,hSq3ah!-(~@:Ro/Ou!5RhWj^v(pyw8unRhUdx-UY#^Ua.a3a70!)%UX1TaDa)'omRiRRhE[y:3Dsz=Br,>6Vyj3[xkg6ruwjcqsrPw;5r*Ku]D'Zt-@3r(~?r.i[vwv]dU1a--U#`a4(g/vsRhPOu!5RhLj:rmu9Wo!~@:wdh@g/vsRiTjXuvvNr}:RhBj^v(pyw8unRn]dz1UYa'a+^Y(!aETZalaRY.Ta?a4[yDJw1!#qLsW>6Vyrfzq-pLflpwRe|Js>%!Dt@3Dt&Jvy_[xs~HrnjMuwpsw'RecKu+D#'!t<~Grl~?rjg5u-x,gwp{ah!-(~@:Rg~Ou!5Rh'jXuvvNr}:Rh#cW#X/c;&!#2sLi[v7u7RgpJv)(!iLrxu,Re6j7v@s@5Se[e7d`aW!Za(a`T.a#!a3!&aDa-!9)Dt_=6s+3[x~~DR|h~DS6avhGun5RkZj3w)v-]mkKunB!&*]kb97R|i<ARk<c:Z(6Vy}Juh'!wziMRoS:F|vkLuauJv5vtvQRh1d='T+Y#VyO~DR|jcF#T'7R|g97R|kJv3'!ay<Rj,Jvh&!:ReXcsa6*a+#a#_aIRf9aLRf?c,Z&Rf5Rf7c.Z&Rf;Rf>cQ#%T'p-Rf8Rf=ct#%'(*!,p,Rf4p+Rf6Rf:Rf<d~'Ua%U*^UYa(!a,-!#a4YaTalaEX0a8a<Weo3Dt/3Dsx=Br93Wen~Dr;~<5p<JwNZt2@3p=Pw:5p;Ou!5r3c7&!#:p>3Ds}KvGB)_6Vyk2sM=<r7x'eovA(!hFu1ARf}cV#X&@r5j6rvwQa^Rf3c=Za'wkghJv__g;unRggA53B9=b^}%j6uduo5Jq;!(hIv%2Re`Ou4ARe_e%a#^^^Xa&!a*a2!&a6YaP!*ad!#a:aE/5Rn?[y@>6Vyp;:pE~DrY~<5pBJwNZt8@3pCh=rt3rWPw:5pAJup_[xoNuPpF9c!#'45pD5ARn)d8#X'X*3@rU72s]h>v<<sSjJpqvewOJq/(!hNw'5ReBk0s2u3w/w'5ReE5@Jq.!a+JQ!&WeU23d(#Y&RjG5]jBk!u7w&u0udARjEe#+^^^Ub#!a2/a`Z(agT1!a-a;|@TaG!aS[yV=Re~fow'RguNuPRe?bz#'>RoUWeL>:Cbb|?JwPZtVg6ruRmzJvD'!6Vz(g/vmRh~Jvy_[y(g9voRgyx*cy(#2>Ri2B9b]~9kIw9u7rluJu3Rg]dI#a%UY'@=p%CAx.gQZ&RhwwygtRm{x5g_Z'+ABqR9Woa=Bp&dV#^*Xa'!&@o{g4v]Rk;Jv{!%Rk[wkkiA5RkiwwfUB=x,fUuqC&*!>RfTg8v0RfV~ARfSd;rJsAuAv9wR'ae+/aO!a@aza/a#[yQ@Wg!2Wemg3sEr0JvB_g>uvReWg2v+Re=KupB_+[y!2AbY~-~Hr2AJwD!(h<~El>h<~El?Kun@+_:9b`}Kg-v/Ri3g;vtwyk_9]k_d=&T#*U.6qh@Ab`|K9:H|CJv[!&3Dtex'fDwC%!Rf[9WlMd[(^X,!a%Z06Vz!@WgBg=v~Rgvg,QRe@awd,#Y+jTv|Q~EfWj]uNr|~FRfXdy#Y&^Ua%!aO.!(a)Ua;=!a@aKap!a-,a!Ta]a[rSa]p?[y82sK=Bq~;:p:~<5p8Pw:5p7d'#Y'Wf(;RnRi[u4w&RgJJvG'!6Vyh=<r#ijuuv/sIKuYD'ZtG@3p9~Gr&d2#`(g<vtRgFj`u5w&rqpxRf2CJuY!+:wfnTOu!5Rg}jNs1ucv&RfwJvA!&3@q|BDcC#T,k/unq8w8Q5RkTklwQuzunq8w8Q5Rk9dga#!a'!a=#a0!:+Tb*b@aO.a4!aba8aFJv^}?!VyR~Dr<g;u%Rn.~<5p[x'e`wNZtR@3p]Pw:5pZhNvjBp.woe_g5u-r4JwF!%DtO3:ooc7&!#:p^3DtpLuGw(!+%)Dtk6Vz#2sd=<r8d'#Y([y#<x3gJt`w@!)%}MRiowzikRij=]ilxAf3,U(#B2Rf#g0v-Rm[ck{`U#]giKv3>)!&6Ri154s,KuGB_%@r68r:dJ|t`#X(9<E|u2@H|rx3gJu?w'!+'1Nu7Reg4=H~+9<wxgY95Rm]xLggZ-`(X}U2:Ri4h<uOawRmsJv__5@bb{jbV~3dka#a'a]!,#a+U=a>b6a3b%!/aKa/)!arwve^VyJ;:pR~DpTg3uJpS~<5pOPw;5qmPw:5pNOu!5pQJvG'!6Vyx=<qoJvA!{~Jup!%@qk7Rn/KvyD!}''[xz;>wkh'?Rh,x8gyt`w5D!&),(SgyccRgztJ@3pPB5p#d'(Y#<]mmifubw&RgoJvE&!82s^JvF&!8Rf,ADb]~;x=h'rNu]vK!,%'*0RnORh)4Rh*AqQg-vaRnNg;wHwkh'ba~4cE#Ta*x3gctyw@'!+%RnFRnD<4Rn@hFvK5RnCxWg[#`&a0Ua()`1Rm75Rg[c]%X#qi8Rg^NvdRj>BwzgZauwji7Rm6A4wgg]d1#&(*,.0a#Rm;Rm<Rm=Rm>Rm?Rm@RmARmBe%#^^^Xaea?aC/b+(,!a+a#!a/!>a&Ta<aKbD!2wphBRnk[yPw}hE|.=Br-3Dtm>6Vy~g6urRf.x,hPrNav!%'RnqRo%Ro#Nu;q[Pw;5r+JwNZtM@3r)d'#Y'Weh;xChL#`&RnmRnoKu}>%(!Rne~Bs-;2wjcussJv+'!aYSO}6@B<5?ba~8LrNvj!.%*ROwungw~ng~:9;Ri^>wtnig;wHRnixDh@|(UZ.x1h@|)!#:2<H|*xHn]#-UX'3Ro)z=iT}6ARns=Bwsn_wpnaRncw]aR(#UXa&Ua*a/=]iPd'#Y&Ro'WnXf{QRm2hNvj]nZd`'T~&1`{|`#9b]{}c:'!#Wl{>@=be}]?cl{{U#:5Abb}Jds#^YaF!a*b4a#a3aPa>&Tb!bH!*a_!Eau?/a&RjY<]gj>6Vz*;:pe~DrZg,QRj1JwNZtX@wihspcJvZ&!VyX9WmOJu|!|N2WmHJvh&!]ht~Bpbcn&T(!#RmQ<s7Nu;padH#X'`+WmJ@>RmKCARhnKup=!)&Wf+:RhqNuPpf9c!#'45pd5AwghpARn(Ls@w!%,)!RmP@Wfe<E|IJva!&WmNg8vsRmLd`*.`#Y'Xa!axRn*]hrA8Rhug5s@rXg8u!RmMd8#X'X*3@rV72smdI*#UY&RmICARho~GsgxVgd)Ta'U-Y&Xa!T#RnEWnA@Wffg1uDRi0hFvK5RnBxGnG&#`%owp)@wsf+bX}Ze-*1!a*^^^Ua|!#a.aq&Ya2!a>.a6!a:aO`aJDtL[y`@Wg#>6Vz12@wzoYRoZNuPRi!NuPRhzg=ucRi,@=b`{Yg=ucRi-ACJvB!&Sh[ebSh]ebi`wUuFRm4Jw2_[y0JvB!.<Ju(!&SoG}6Shd}6<Ju(!&SoH}6She}6Kur@._g5vHRieJvx!{L2G{Kx6gd'T#?Rh82Wi5cZ#X(g1w)Rm5dW-Y(Ta#!a)!#aYa=wnfE=su2>>bU{0j9udv:<svj8uQv-7RgHdE%#^'sq9sp=>Bb_{TJv`!&g/r|snj6v(us5d,#Y(56H}[978H}]Jw5!&g1rushJvB!+j;v{u5?zDhd}6}bj;v{u5?zDhe}6}ce*#`(^^^a[aea!=!a6a*aoXb1a.!aAbL!b>,b'aL!aV@Wf|2Wlg3[y/JwNZt^@3piPw:5pgJunZou3@rsJva&!Vy_g<v~Rm#JvG'!6Vz0=<r{Ju{%!:pj@WfsiXuJu3Rm:JvZ&!WfA~Bph@c4Z&Dtwax5rubx(#:awRk1@d,#Y&RfjRfid1#,Y(@Wfp2Wlrg5s@ryKu[@!,'=]ig9wlk?Rk>g5u-rqJvy'!@9RkQcH(T#=>Ri~@<wkj(Wj(KuZB*!&<7rw@9RkRcH(T#=>Ri}@<wkj)Wj)dg(Ta2Xa9X#`-!a*CARhg@@=I}d9x;c~#X%so=<sj>2@@=aybb}XjWv0Q~EfEj3vLv;<d,#Y(56H}`978H}_dgaPaFa'a/!#a3Y0a_a;a|!1(a7-[yE3[xt;:pJNvZrrg3uJrvJwNZt=@3pIh=rt3rxPw:5pGOu!5rpJvG'!6Vys=<rz@c4Z&Dt(ax5rtJvZ!&~BpH@wsfNg-vaRlNci*U#=<wei<F}a5@Jq.!a*JQ!%@qZ23d(#Y&RjH5]jCk!u7w&u0udARjFd/prq=tyvpaEa(a:.!a1aZ(@@=I}:9wpd%=<sX55w_h}@@=I{t=ay<aU@@=I}T=ay<2@@=I})?C9:9au@9Cb]}DP~=x-fAZ(2Wl1=ay<aU@@=I}>5@d##Y+jTv|vV~EfFj]uNpn~FRfGdgaK!Z2&!a8a-Tb({E!acTbM*!a(DtY[yYd'%Y#sl[y*hHvh>Re5x2c{Z}.j4uCvcawRiMd+#X+_x&d!},<5RkX;2Hzw@x,gavfB-!{CcF&T#Roe;RodwWbBg5urRgaKvHC*_6Vz+<4opieuew&Rmq@d]&Y)X,T#X0Rh}<BqP=4qS9:ReMg/ujReNJw0!/<Jui%!bd{kawwnemRelAxUa?a3#*.&UX(Ya+a/RhvRnQ<o}9Wmtd-#Y&RgSRmw9;Rmxay=Rmyg-vaRmuxEhSrNu,v-voC!%(aR.a(a7+1Ro1>Ro5CE{A9b]{@;5x#eO{:g;urRi+KrNA!%(Ro3>Ro79;Ri_Ku@>{;&!x%gX|{KunA_+g5QRj/g3u5Rj#g>uERj%wio/xRhS&!,!#^1U}wba{8>>@=be}qC@:D5ba{7Ku+A&!}x?ba}t>>@=be}se(aA^^^Uat!b0#{pa+awUazbGa#aLb9bgaWac'a5TbS=Br!d1#`%scp_Jvl!#rT>Re0JvX&!VyN=H{Fcm#U&:pY=ReaJv2&!]h0=]nUJvG'!6Vy|=<r%JrM_=]h2@Wlud'#)U'Wf'b]{i=]h/Jvh!&~BpWg=v]RnMx+ny#'Nu;pVwjnu=]nwxJnx,T#`&Reqwjnt=]nvieu9vrRjLLuYwP(#+!th@wih5pX~Gr'g5v/Rh4KunA'!-CARnP@wwiN:Rm_9x'cvw>!|l=<saKvAA!0&3@q}>w^e1bp#&Re2Re3BDx7gH#T|f5H|eKuZ>!%(:qNAH{]Jv6!+3B2B9=b^{X<5<B92:E{ZLvhwA(a;a%!igQuyRmad+#Y}m@3Rh5d8#X'X*:AqUAHzmaxwbh<aXRnVcF}RT#Nw&cj#U(BWnug/vsRntdka)(a3+.Zb7aYYan1!bVa@Xa}[y^@b[{G=H{+hFu73Rj&Pv#5ReQcK%T#sig1v{Rj'Ku+D#'!t]~Grm~?rkKuMB!01d5#`'Vy.ta3Dtu~Hroc8#'{^45s85AwZbP&!#Rn!wghxWn#KvEA!)&2RlA2RlBx:h|#(T,=]j09Wobz>x]z/@awRoTd+#Y(az]hFhCrm4d,#Y+jTv|Q~EfMj]uNr|~FRfOdCa!Xa9_X#@<plJvf!%b`{(9;Rgwc;.!#2x7cw#T|UDb]|T5Ju={(!=@E{&Jv)&!Ab`{'awJvf!~*>>@=be{#KuY>!+&4Ezyi[ugv&RjIdea+T)#UXa&T-T&a!Rh9auRmW=]kLg5vuRn+g3u4Rn-Ow6ARn,hHus5xNk?#UX(U~)/g8v0RkD~AwkkF?Ri.OuNBwkkA?Ri/d|a2`a*^UYa.!aBTZaTa'Xa;!(!2!-a#b2[yC>6Vyq3[xr2Wi?g1rusVh%s?DtF~<5rbJs;%!DtBfswKtCj[uvuSsEu3RgVx3o:u+wN'*Zt;@3rd~Grh~?rfg8w)Lq)qE&-a%!>bI|`jWv0vV~EfCjTv|vV~Ef@j]uNpn~FRfBcK#T']gWNu7x,k7q4ai(0!hHv8<RhmkMu9vrsBuev/RhlCJvB!,g<v{wchh~@:Rhji[vrv{wchi~@:RhkdS&a5UY#Ta!RgPwwiI5BwciI~@:Rh`x'iJvj'!5]iJPu8Bwch]~@:Rhach)U#h3rp]gLh@t|Ax,hTq3ah!-(~@:Ro0Ou!5RhXj^v(pyw8unRhVd|)`,^UYas!a?/a2Z'a^Ta{Tb7Ta(a#!a,Wf&9sZ3DtAadamov=Bqt3[xig8vsRm~>waiL2b`{QJv*_Ouv2qgj<v]v2BqfdR'X*X#Y-@3qr~Gqv~?p6hHv-]glPup5Lq+q?_%*b_{qF{n9b^{rOu4ARhpKvCD!+&~Bqp:5Dbb}nwoiKl&unuTuBv]v+ueunaXRf0=Jvh!0nKufu8v1w&w7q%w&uHrz:Rgnj5w,uxDJq/(!hNw'5ReCk0s2u3w/w'5ReFd>Za&!*UaA=<wkgsRnSJv^!%Refifw3vyRgOKu_B'!,<]gkiiu:w&Rh<=C@a^<B57@2F{[<B5@aW:=3away9A5aW=<B=C@a^<B57@2F{Ie-#`(^^^bCara.b8aza6!/bZ,!adTbnTbOb+aFaS!aAT9@Wf~2Wli3Dtl2@d,#Y&RfnRfmJwJZtN~GqyJva&!VyMg<v~Rm%iXuJu3Rm9Jv[_=]ih9wlkDRkCd1#`(@Wg>2Wls3cH#T(@<Rj*=>Ri|b~'#23s9h<~El.d'#Y&Dtxi^rzvdRl#d*#U%(o|B2s`hJwSaxRmDKv4B&!1:Rmdd5#`'Vx}to~Hq{x'f1v3(!BA5ba|bJv_&!Wfug1v]ReIdO+U/Y#&G}-8wze=Rh{g1v]ReHg/uQRf/by#)ibQwERl/cH#T(@<Rj+=>Ri{cNu+vlax-!(#a0qa9<Rii2;;bU{H;x<i=&X#Rk`<4wwi=C9H~8xAI(Y#<azRi@45wXI<B9;5bb~7dL(X#Xa(+!aL6Vy{g5QqOau:5au2@ay547EzbxOcU(UX-T#Ta#:Cbb|A?wjh/b_|SOw6ARgtihr}u7Rhy<d1#T)X1@@=I|~=ay<2@@=aybb}Sj3vLv;<d,#Y(56H}A978H}@dGpvs@uAu`vcw9*!aFa+ai%(b!aXa8.a?a[ozWey=sU2@G}Nch&U#Rf_WexKu+D#'!t:~Gr`~?r^j]uNr|~FRg*j^psurwJt|RmcKv)@&!)7Rkv~Br[@wxfO:Rl3co#U'6Rezj_q#vIuavjRltwzeyh@vr5JqD0!>aY?C9:9au@9Cb]}9cl#U*5;5<H||jbuus1ucv&Rfvg1v~d/pppzqFr^a--a~!aMat1(hFv;Wiz@@=Izoj5uuv-7Rix~Cw`fk2WlVcZ#X,k)u3vWs@u2]ktg;wEx'fBq(_2Wg/jTv|vV~EfoJv]!15x'hzqG!(P~EfU~CRl_j6v(us5x4i-#T(2WmZ?C2F|d>Kq<aj1!*jTqIsBv=Wl`~Cw`fi2WlWj`v0u*~>RlR=c>Z,k#u3vWs@u2]kr<c1Z+jTqIsBv=Wla~Cw`fm2WlXdmb3!a{(arZa`bkTa%TbQTa-a9+c'!aM!/[yL=Bqug.w'RifhFvyDRj.g>vgwyk^9]k^Jv3_@WfbAARkhJw2_[x|JvB_wkoIRoKwkoJRoLd'(Y#<]gm=<9<H|yd'%_X#skDtb3awwqkgNulRkgdB#^',9:p'hJwSaxRmEBwVb8@4=H|qLu+w50&!)@3qs~?pU>Awwn;;Rn=c:Z'ARn<=<qwKvC@!/&~BqqJv6!&]eVb^z^xRge'/a%+^`#Sge}6<4Rn3=]n0Pw2>Rn8Jw0!&>Rn:>Rn6cY#a7+!a&=<wkaNw~h3z_c5Z{=wjh#=]nLKv^D!&)Vyz=bW|swYb<WetcG#T(2wxa@qVx@gD#Y&b^|V5JwG&!5bb|pg/w&RgD@x=kHs=uAvn!a%%/'+RmSRh694Ro`g-vaRmRhHv-]mlxCcS#`&ba~.5cD#Ta)P~=d,#Y(56H{>978H{Dd_#{2^Y%_+qbbb{6g3sERhsbU{?dfa.,`a(Xa<!aiX#(55RiG54RiHcI#T'WiU3RiVNvdwtfcRlKNvdd,#Y&RlHRlExQgf.1*^T'X#Sgf}6Wn4=]hfPrk>Rn7Jw0!&>Rn5>Rn9Lunw?&a2!,5<oq@@wqfdRlJj5Q~=d,#Y(~ARfcOuN]fdDKw;ay(}i!547E}j?cI#T(@5bV}iCbV}hdv(^^Tb?a40,b##Tbo!a*bR!a<b|a/!aKai!aU[yK=]o^g:v>ReGJwPZtK<7Rh+h<~El,Pv#5ReR@awwxjCg,ulRjDJv6&!]j!z?aQeeg>w=Sh<eeJw;!&axEzOg,Qosc!#*:wkeJ]eJ>x'h-u(!%Ro.w~h.zPdNZ(X,Ya![x{;9ReY;wkgxRiF:x?ap#Y&RmUg<s2Rkod]+UY0TZ'!a&A9sw<=bczLNvuw{gqzNhJwSaxRmCKuLay!#&s_Rf-55b^{uJvZa!!c%#(55Ri654wmiu5RiuawLu,vp!+}^%b_}Y9;wkgxba}o>A9:=b^}zKuh=a''!3awRk3c*'!#aHRk6c+Z&Rk5Rk4Jv)&!awRjSawd9*`#0?C2@EzMj8u<uJ5RmbjQrquJu3x,k>uq@_+=ayb^|W~ARkEOuN]k@7dhzV^X/X&a-#zRzSb`zXcJzTT#2WkVKvDBzW!%FzY9;5bbzWjQrquJu3Jw3%!b`zU=ayb^zQd:#X(T-a!6Vyywxh}=b]{Jg=u1RiAdGp~qHtzv!w(wA+a+a;<!aJaYai'anasb(=azRmV:Cbb{MLq2vb!%')RjuRjrRjtRjqx3jnqCw3!%')Rk(Rk+Rk&Rk)Lq2vb!%')Rj{RjxRjzRjwLq2vb!%')RjsRjpRjfRjex3jcqCw3!%')Rk'Rk*RjkRjl9<CbbzfOu4ARhxLq2vb!%')RjyRjvRjhRjgx=joq*uKvb!%')+-Rk.Rk%Rj~Rk-Rk#Rj}x=jdq*uKvb!%')+-Rk,Rk!Rj|RjmRjjRjidAq&qKs@uAv8Aa.'*-a@a&0!aM@a5[y73Dsy3Ds|3Dt):wxgI2sHJwJZt.~Gqxwsf0ikrzt}Rl0Jvy_[xj~HqzKv_A|D!&WfP8axRoVcf,U#k(v]v+ueunaXRf1Ju}'!g8u#Ri=jQw!sCunLprq>!,')~<5qeGzq9F{W=c##%s5au:5aU3CBE|;d4#X(D!a&6Vygx(b;#(=]ed?C2F{N<capoq2r[a&!aPa9,'Pw;5s:@@=I|,55w_h|@@=IzcP~=x'fCqB_2Wl2>aU@@=I|1OuNBc1Z+jTqIsBv=Wlc~Cw`fl2WlZ~AcTa%!Z+jTqIsBv=Wlb~Cw`fh2WlYk+uNqJsBv=WlSg,u3dca3#UXaMYa)TaB-=cM|7T#<bI}l5@B932:aV2G{BOuNBJq:|M!5Ezt=<B=C@a^<B57@2F{v>cB{/T#=ay<bI{3Jv6!a.6BKq0ah&+!5E}HP~Ef{978BaU@@=Iza<7d#.Y#978BaU@@=IzH~AJq0!(@@=IzG978BaU@@=IzFe,aU*Y&^^^bvJb,b:bFad!a,c2Ta>aL.bo6!a#CbTa'T#Re{2Wlh2@G{yg6t~Ro_NvdRfticuRQRllJv3&!x&c|zs@Jw3!%RflwpfkRlpKuL;%(!Re<@G|C2GzdhIvuBwgjAg-u0RjAKQB%!(GzZ@G|5NuuRl7d='T+Y#Vy[g<v~Rm!==G|>JvA!)@wma=]m1ifuaw&RmnLs@vT'!|/+[y,g:v>ReTJw1!#qX=x!eC{bLu+wT&)ZtZauq_~Graci&U#F|89:r_Lupvq!.)&2RlG8RfaC=x!eF{_h?rpWlmd&'!#X|&]k::xJey#`'T|+<E|&2@H|%dE#(^,g;u.RiEg6vjRiC9xCkA{O|zY#g=ucRmXKs0@!&*@G|m@awRknJuh!,3d(}gY}eJvj!%Rm):Jw3!%Rm+Rm-Ls0w(&!a(a#@b[|6cZ#X'7RkxWgAOu4ARn'dH'U#Y*Vz-Wm'CARm}d]*#a%^a*T'aK!a<9bV{PC=p*Jw4!&SgxcbB5r]idw(wBRmF7xFkt#&`(Rm/Rm8E|!JuY_9:Rl5=wrgr2:bbxd@xXfB(a*#T+!.X0X1Ta/a'T&RlDRfL>RlyARl9b[z[>RfZ:RlL:RfRwlg/ARl;9;RlxKv,A/!%7s69<74=BA5ba{-8Bde#`a<XaKYa1,a'P~=wxfB2bZ}}?C972@@=I}r8@55B9;5bb}G978B2@@=aybb}3j3vLv;<Jw3&!>Rfk=ayb^}4~Ad1#`*@@=aybb{w2@>==<bbz]dx+UY#^UaF!a9!bB'Ya1.!ajXa#%olRhD[y=3Dt#Ov5BrHKuMB%!(Rf^Wep~HrJwkiQjKr|~FRg)Ku+D#'!t5~GrF~?rDdV)UY,Z/_7RkuG{<~BrBg,rlsO:235B@bX}|d?a1!#`(6Vyn5@d##Y+jTv|vV~EfIj]uNpn~FRfH7Lq2vb1!a9-978BaU@@=Iz9978BbU}#~AJq0!(@@=Iz8978BaU@@=Iz7~AJQ|}!978BbU}!JvkaK!AdUa21-U#`a+(g/vsRn~Ou!5RPj:rmu9WhOjXuvvNr}:RhAj^v(pyw8unRn[kPr}p|u7vwv]RiSBd;pppzq@qHQa?(b.!a.a`@.|xa(hFv;Wiyj5uuv-7Riw~Cw`fg2WlU978BbU|wOuNBJqG!(P~EfD~CRlQcZ#X,k)u3vWs@u2]ksg;wEx'f@q1_2Wg.j]uNpn~FRfqJv]!15x'h{qG!(@@=IzK~CRl^j6v(us5x4i,#T(2WmY?C2F{1>Kq<aj1!*jTqIsBv=Wld~Cw`fj2Wl[j`v0u*~>RlT=c>Z,k#u3vWs@u2]kq<c1Z+jTqIsBv=Wle~Cw`fn2Wl]dn1#c(a(b^a2!b/bAT(bj!aDa7bu,a_a{c0!2T0g:v>ReD2@G{42@G{5~DpM~<5rc=Bx6i>{RT#RnI@zCx]y]z:2Jv[!zr5Awyk]9]k]dD(Y+X#6Vz.g=wKtgwhaCwgmTWj2Lu,w%_+/[y-B;b^xeg3u3Rj-2@bX{*KrJ<!+'@Wg(g?QRlC@Jv`!%b[zIwsfII}8JQ_@w|kW|=Jv(%!AqcOuNBJvEzh!bYzjLs@wP#(0!oy@>RkdJwMZtc3Dtd@BcG#T'9bWxg2@2Fznd*#Y+;2x'c}w<zizixNgwa#Z'U+!/!a'!a+w~g~z6wcn{Rn}wcnzRn|5Rh%=]nJg5vuRmvNvdRlvcprJu}w*az*a#!%.a.'Bot9qT]kj@Wg'ay2Gzv@Jv`!%b[zEwsfHI}1;ck#Ux`<Cbbx_Lu+w!a&0*!wko*wwo,So,}6Juqxf!E}PigQuyRm`d3(`#8>Rn%:A5B;bZ~%KvhCa!a2!x>k7#Uxb@b{#xaRk7Jw0!)>wwhlShl}6>wwhmShm}6CJvB!.x'hhvj{!!5Bwkhhbaz}x'hivjz~!5Bwkhibaz|xEhTrNu,v-vpD!a%&/)a3a.,%Ro2t[CE{)@3re9b]{%wjo09:rgc:Z&Ro6=<riifuaw&RmoKrNA!%(Ro4>Ro89;Ri`dSaL'UYzxZb)7Rka3xRhT&!,!#^1U}vbaz{>>@=be}yC@:D5bazzKu+A&!}{?ba}y>>@=be}wxBh[t`u~vJvr!%a!a()a,a0a4RoC=]o;Ju(!%RoGRhdwjh`=]oAg>w#Ro?g5vuRo=NvdRl|Ku]C.!&;RoEJvB!%RoORoMBx'h[v+_?w~h`}~5?w~hd~!xKh]oiptu-utv.vp!#%&a30a@a'a+(a/aOp(o~p!RoDJu(!%RoHRhewjha=]oBNvdRl}g>w#Ro@g5vuRo>c[#X']o<CauRoRAd-#Y':RkpauRoQKu]C.!&;RoFJvB!%RoNRoPBx'h]v+_?w~ha}t5?w~he}ue!/UbhYacXaW^Tc&a;b:a-c/#b&aja1(!cL+!bKbt!bmcRc9aIc?8[yW3Dtt94Rg`Jv}!&SiRMzBhEebShEMNuPRe>x7gL#TzuwjirRipc<Z&>on;>z=h-MSh.Mwqczx'a7vj&!>Re4@=ResJt__NuPRi*NuPRi)j]uNr|~FRfzKrJ>_+@Wfy@Wf]2WocKrJ<!+'@Wg%g/QRl@@Jv`!&awRl<wsfFIzgLu(w*!.*&ShBMwvhIRhI9;RhNx1hK'!#Sn]Mx1hK~0!#:2<H~7cNu+w7D*'1ZtW>Rn1~?rOc:Z&Rn2=<rQ<7wjh&=BSnLMc]#X(6Vz)w[b=a!U#9wzgMc3#&(RgMRitRis<x,gKt`ax!&+SioM=BSilMc3#&(RgKRinRimKurB,!&SiQMzBhDebShDM6BJQ!(P~Efx978B2@@=I}WLrJw!!,a*&@G}O@9wkibRid@@x'fKwC!&SlDMSfLMjUv~Q~EfKKv3@a+!(hFv-]mpx/hYZ(C5RiWz<o/MwkhY?So/M@x,gbvfB*&!SgEM:SoeeehFu3:Rgbda(,^TZa)X/7Sg[eb:2RgI~BrMC@wgkc:wwkcRerx3h(uUvK!&*,SnOM4Sh*MArRg;wHRh(x=h;rJvPwI!a4',a'0@Wg&=BSh/Mg>w=Rh=g3w*wwgGRgGcW(X#;Sg}M2Gzk@Jv`!&awRl=wsfGIz`dKZ*T'Y-:RhR7RhQg5u-p`j6v(us5d,#Y+~Awkia?RicOuNBwkibba}Ld6p~tyu_vbAa'a+!a/'a3aEa8a!>Sh,ebJv{!&Sh@ebSaReb9;SgwebNuPRi(NvdRl)NuPRi'hHu^<Rm^Jvv_@Wl(g;u1Si/ebKu'B&!*Sh?eb@Wl'z@aPeb95Si.ebcpputyvjB)!,&a+0a%ShAMWeK@G}C@WfJ9;RhMwvhH9w{ia}ix,hJvRA1(!zAn[MRhHx1hJ~*!#hFv(BSn[MBJQ!(@@=I~'978B2@@=I}2db.Ua<'X}+T#a0XaG2G}E;wkg|wuh!Rh!x,hZu,@)!&So0MVy)C5RiXACJvB!&5RiY5RiZg8w)cG}*T#2@bU}=KsA>(!a.3wkhZba~(x,h^u(A!&(SoCMRhb5Bz=h[eb?w~hb~6x,h_u(A!&(SoDMRhc5Bz=h]eb?w~hc~6e)aA1T#T,^^^c-bMb&blcPaP(a/!0!bA=b5c@a(!bfbrc#2afwmhARnjwchORnp2Wlf3DtsNvdRl-2@wpa<]m0bx(#:awRk2@Jw3!%RfhwpfgRlnKQB%!(G{V@G|'NuuRl6d='T+Y#VyUg<v~Rl~==G|<Jv+'!aYShC}6@B<5?ba~8@Jw3'!g2QRljhLrpWlOd+#Y'g.w'rIg>w*wgj@g-u0Rj@Lu+wT&)ZtUauq]~GrGci&U#F|39:rELrNvj!.%*RhCwunfw~nf~:9;Ri]>wtnhg;wHRnhx3hDs@v~!/+'@Wfr@9RkSNu&Rlo=@<5GzoKs0@_+@Wl+@awRkmJuh!-3d(}pY#qWJvj!%Rm(:Jw3!%Rm,Rm*de&!1U-U#`)Re;@G|.@9Ri82@wjfvRlq=@<5GzpLvOvr!).&2RlF8Rf`C=x!eE{.Jw3_g2QRlkhLrpWlPde(!#U{s,UXa*Ta'[y'g:v>ReS;x0PZ&RnlRnn~HrKJw1}f!=x!eB|2w]aP(#Xa&a*Ta.Ua2a7=]iOd'#Y&Ro&WnWg;u.RiDg6vjRiBNvdRlzhNvj]nYJuW_2Wm3x)kFze{9d])!a.!,Y01!#&aC!a3RndC=ox~BrC@2b^{pg,rlse7x'ksuq!%Rm.E{xidw(wBRmGx9o+)X#wwo-So-}69:Rl4@xSf@a#XZ'X)X,Ta(/ARl8b[xc>RfY:RlI:RfQwlg.ARl:9;Rlwdn'#^XafaQa1X1TaHTa)@b[{zcZ#X'7RkwWg@Ou4ARn&x)kG#{,g7u/RkGdH'U#Y*Vz'Wm&CARm|bx#(A]gUbUzJj9Q~=d,#Y(56H}l978H{U7d,0#U*2>ABb_xZ978BbU{e~AJQ{g!978BbU{hxMh?ad{oUYZ.x1h?{l!#:2<H{mx3n[t{vl!,&a%3Ro(z=iS}6ARnr=Bwsn^wvn`Rnbd`*T}B0!#^X'BG{c9b]{a>>@=be}F?JvS!&BG{d7BG}(Bde#`a1X,Ya@!a'P~=wxf@2bZ}I56B2@@=aybb}08@55B9;5bb}<j3vLv;<Jw3&!>Rfg=ayb^}&OuNBKuLA!)a!P~=x#fD{f2@>==<bbzl?C972@@=Ix^d6rSu,v7w*C(0a)a6#B+a%!sQ[y?3Dt%3[xn~<5rLOu!5p@Ku+D#'!t7~GrP~?rNKvlaya7'!h+v-5qMg=t|cd,U#5AAaa5Abb{S@52B5@a[@52B5Gx[iXueu;d<#`a(!/549C;ag>23ExY5@Dah89b^~689Jv)!~2b[~1Lv'w(%*!a#bX|aPrmawRe]keu7uhv-q6rxu,q`xTo]/a5aU!bNaDXbi!b-!ao!b<bwA!#5@B932:aV2G|:d-)Y#hJrL>RhG<7@C5<H|_=Cau:5aj5@B932:bJ|ng>vIbs)#?C2F|9jPv0w.vISh-MKvUaz(.!9ABbb|[5;5<H|Eg>unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2<BaY?C2F|GOu!5x,g|p{ah!-(?C2F|c9:4E|OjXuvvNr}:Rh&i[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61),ES=new Uint16Array([512,26465,29036,7,0,2,4,116,24638,116,24636,8693,29807,24610,621,1,0,0,3,112,24614,111,115,24615]),DS;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(DS||={});var OS;(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(OS||={});var kS=32;function AS(e){return e-OS.ZERO>>>0<=9}function jS(e){return(e|kS)-OS.LOWER_A>>>0<=5}function MS(e){return(e|kS)-OS.LOWER_A>>>0<=25}function NS(e){return e===OS.EQUALS||MS(e)||AS(e)}var PS;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(PS||={});var FS;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(FS||={});var IS=class{decodeTree;emitCodePoint;errors;state=PS.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=FS.Strict;runConsumed=0;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}startEntity(e){this.decodeMode=e,this.state=PS.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case PS.EntityStart:return e.charCodeAt(t)===OS.NUM?(this.state=PS.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=PS.NamedEntity,this.stateNamedEntity(e,t));case PS.NumericStart:return this.stateNumericStart(e,t);case PS.NumericDecimal:return this.stateNumericDecimal(e,t);case PS.NumericHex:return this.stateNumericHex(e,t);default:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|kS)===OS.LOWER_X?(this.state=PS.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=PS.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t);if(AS(n)||jS(n)){let e=n<=OS.NINE?n-OS.ZERO:(n|kS)-OS.LOWER_A+10;r=r*16+e,i+=1,t+=1}else return this.result=r,this.consumed=i,this.emitNumericEntity(n,3)}return this.result=r,this.consumed=i,-1}stateNumericDecimal(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t)-OS.ZERO;if(n>>>0>9)return this.result=r,this.consumed=i,this.emitNumericEntity(n+OS.ZERO,2);r=r*10+n,i+=1,t+=1}return this.result=r,this.consumed=i,-1}emitNumericEntity(e,t){if(this.consumed<=t)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===OS.SEMI)this.consumed+=1;else if(this.decodeMode===FS.Strict)return 0;return this.emitCodePoint((this.decodeTree===ES?SS:xS)(this.result),this.consumed),this.errors&&(e!==OS.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}flushAndEmitLegacyOrReject(e,t,n,r){return this.consumed=e,this.excess=t,this.result===0||this.decodeMode===FS.Attribute&&(r===0||t>1||NS(n))?0:this.emitNotTerminatedNamedEntity()}stateNamedEntity(e,t){let{decodeTree:n}=this,r=e.length,i=this.decodeMode===FS.Strict,{treeIndex:a}=this,{excess:o}=this,{consumed:s}=this,c=n[a];for(;t<r;){for(;(c&(DS.VALUE_LENGTH|DS.FLAG13))===0&&(c&DS.JUMP_TABLE)!==0;){let i=e.charCodeAt(t),l=c&DS.JUMP_TABLE,u=(c&DS.BRANCH_LENGTH)>>7;if(u===0){if(i!==l)return this.flushAndEmitLegacyOrReject(s,o,i,0);a+=1}else{let e=i-l;if(e>>>0>=u)return this.flushAndEmitLegacyOrReject(s,o,i,0);let t=n[a+1+e];if(t===0)return this.flushAndEmitLegacyOrReject(s,o,i,0);a=a+u+t&65535}if(c=n[a],t+=1,o+=1,t>=r)break}if(t>=r)break;if((c&(DS.VALUE_LENGTH|DS.FLAG13))===DS.FLAG13){let i=(c&DS.BRANCH_LENGTH)>>7,{runConsumed:l}=this;if(l===0){let n=e.charCodeAt(t);if(n!==(c&DS.JUMP_TABLE))return this.flushAndEmitLegacyOrReject(s,o,n,0);t+=1,o+=1,l=1}for(;l<i;){if(t>=r)return this.treeIndex=a,this.excess=o,this.consumed=s,this.runConsumed=l,-1;let i=l-1,c=n[a+1+(i>>1)]>>((i&1)<<3)&255,u=e.charCodeAt(t);if(u!==c)return this.runConsumed=0,this.flushAndEmitLegacyOrReject(s,o,u,0);t+=1,o+=1,l+=1}this.runConsumed=0,a+=1+(i>>1),c=n[a];continue}let l=c>>>14,u=e.charCodeAt(t);if(l!==0){if(!i&&(c&DS.FLAG13)===0&&(this.result=a,s+=o-1,o=1),u===OS.SEMI)return this.emitNamedEntityData(a,l,s+o);if(l===1)return this.flushAndEmitLegacyOrReject(s,o,u,l)}let d=LS(n,c,a+(l||1),u);if(d<0)return this.flushAndEmitLegacyOrReject(s,o,u,l);a=d,c=n[a],t+=1,o+=1}return!i&&c>>>14&&(c&DS.FLAG13)===0&&(this.result=a,s+=o-1,o=1),this.treeIndex=a,this.excess=o,this.consumed=s,-1}emitNotTerminatedNamedEntity(){let{result:e,decodeTree:t}=this,n=t[e]>>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&DS.VALUE_MASK:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){switch(this.state){case PS.NamedEntity:return this.result!==0&&(this.decodeMode!==FS.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case PS.NumericDecimal:return this.emitNumericEntity(0,2);case PS.NumericHex:return this.emitNumericEntity(0,3);case PS.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;default:return 0}}};function LS(e,t,n,r){let i=(t&DS.BRANCH_LENGTH)>>7,a=t&DS.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t<i;t++){let i=e[n+(t>>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}var R;(function(e){e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`,e[e.Space=32]=`Space`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Number=35]=`Number`,e[e.Amp=38]=`Amp`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Dash=45]=`Dash`,e[e.Slash=47]=`Slash`,e[e.Zero=48]=`Zero`,e[e.Nine=57]=`Nine`,e[e.Semi=59]=`Semi`,e[e.Lt=60]=`Lt`,e[e.Eq=61]=`Eq`,e[e.Gt=62]=`Gt`,e[e.Questionmark=63]=`Questionmark`,e[e.UpperA=65]=`UpperA`,e[e.LowerA=97]=`LowerA`,e[e.UpperF=70]=`UpperF`,e[e.LowerF=102]=`LowerF`,e[e.UpperZ=90]=`UpperZ`,e[e.LowerZ=122]=`LowerZ`,e[e.LowerX=120]=`LowerX`,e[e.OpeningSquareBracket=91]=`OpeningSquareBracket`})(R||={});var z;(function(e){e[e.Text=1]=`Text`,e[e.BeforeTagName=2]=`BeforeTagName`,e[e.InTagName=3]=`InTagName`,e[e.InSelfClosingTag=4]=`InSelfClosingTag`,e[e.BeforeClosingTagName=5]=`BeforeClosingTagName`,e[e.InClosingTagName=6]=`InClosingTagName`,e[e.AfterClosingTagName=7]=`AfterClosingTagName`,e[e.BeforeAttributeName=8]=`BeforeAttributeName`,e[e.InAttributeName=9]=`InAttributeName`,e[e.AfterAttributeName=10]=`AfterAttributeName`,e[e.BeforeAttributeValue=11]=`BeforeAttributeValue`,e[e.InAttributeValueDq=12]=`InAttributeValueDq`,e[e.InAttributeValueSq=13]=`InAttributeValueSq`,e[e.InAttributeValueNq=14]=`InAttributeValueNq`,e[e.BeforeDeclaration=15]=`BeforeDeclaration`,e[e.InDeclaration=16]=`InDeclaration`,e[e.InProcessingInstruction=17]=`InProcessingInstruction`,e[e.BeforeComment=18]=`BeforeComment`,e[e.CDATASequence=19]=`CDATASequence`,e[e.DeclarationSequence=20]=`DeclarationSequence`,e[e.InSpecialComment=21]=`InSpecialComment`,e[e.InCommentLike=22]=`InCommentLike`,e[e.SpecialStartSequence=23]=`SpecialStartSequence`,e[e.InSpecialTag=24]=`InSpecialTag`,e[e.InPlainText=25]=`InPlainText`,e[e.InEntity=26]=`InEntity`})(z||={});function RS(e){return e===R.Space||e===R.NewLine||e===R.Tab||e===R.FormFeed||e===R.CarriageReturn}function zS(e){return e===R.Slash||e===R.Gt||RS(e)}function BS(e){return e>=R.LowerA&&e<=R.LowerZ||e>=R.UpperA&&e<=R.UpperZ}var VS;(function(e){e[e.NoValue=0]=`NoValue`,e[e.Unquoted=1]=`Unquoted`,e[e.Single=2]=`Single`,e[e.Double=3]=`Double`})(VS||={});var HS={Empty:new Uint8Array,Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,33,62]),Doctype:new Uint8Array([100,111,99,116,121,112,101]),IframeEnd:new Uint8Array([60,47,105,102,114,97,109,101]),NoembedEnd:new Uint8Array([60,47,110,111,101,109,98,101,100]),NoframesEnd:new Uint8Array([60,47,110,111,102,114,97,109,101,115]),Plaintext:new Uint8Array([60,47,112,108,97,105,110,116,101,120,116]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},US=new Map([[HS.IframeEnd[2],HS.IframeEnd],[HS.NoembedEnd[2],HS.NoembedEnd],[HS.Plaintext[2],HS.Plaintext],[HS.ScriptEnd[2],HS.ScriptEnd],[HS.TitleEnd[2],HS.TitleEnd],[HS.XmpEnd[2],HS.XmpEnd]]),WS=class{cbs;state=z.Text;buffer=``;sectionStart=0;index=0;entityStart=0;baseState=z.Text;isSpecial=!1;running=!0;offset=0;xmlMode;decodeEntities;recognizeSelfClosing;entityDecoder;constructor({xmlMode:e=!1,decodeEntities:t=!0,recognizeSelfClosing:n=e},r){this.cbs=r,this.xmlMode=e,this.decodeEntities=t,this.recognizeSelfClosing=n,this.entityDecoder=new IS(e?ES:TS,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=z.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=z.Text,this.isSpecial=!1,this.currentSequence=HS.Empty,this.sequenceIndex=0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===R.Lt||!this.decodeEntities&&this.fastForwardTo(R.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=z.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===R.Amp&&this.startEntity()}currentSequence=HS.Empty;sequenceIndex=0;enterTagBody(){this.currentSequence===HS.Plaintext?(this.currentSequence=HS.Empty,this.state=z.InPlainText):this.isSpecial?(this.state=z.InSpecialTag,this.sequenceIndex=0):this.state=z.Text}stateSpecialStartSequence(e){let t=e|32;if(this.sequenceIndex<this.currentSequence.length){if(t===this.currentSequence[this.sequenceIndex]){this.sequenceIndex++;return}if(this.sequenceIndex===3){if(this.currentSequence===HS.ScriptEnd&&t===HS.StyleEnd[3]){this.currentSequence=HS.StyleEnd,this.sequenceIndex=4;return}if(this.currentSequence===HS.TitleEnd&&t===HS.TextareaEnd[3]){this.currentSequence=HS.TextareaEnd,this.sequenceIndex=4;return}}else if(this.sequenceIndex===4&&this.currentSequence===HS.NoembedEnd&&t===HS.NoframesEnd[4]){this.currentSequence=HS.NoframesEnd,this.sequenceIndex=5;return}}else if(zS(e)){this.sequenceIndex=0,this.state=z.InTagName,this.stateInTagName(e);return}this.isSpecial=!1,this.currentSequence=HS.Empty,this.sequenceIndex=0,this.state=z.InTagName,this.stateInTagName(e)}stateCDATASequence(e){e===HS.Cdata[this.sequenceIndex]?++this.sequenceIndex===HS.Cdata.length&&(this.state=z.InCommentLike,this.currentSequence=HS.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.xmlMode?(this.state=z.InDeclaration,this.stateInDeclaration(e)):(this.state=z.InSpecialComment,this.stateInSpecialComment(e)))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}emitComment(e){this.cbs.oncomment(this.sectionStart,this.index,e),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=z.Text}stateInCommentLike(e){!this.xmlMode&&this.currentSequence===HS.CommentEnd&&this.sequenceIndex<=1&&this.index===this.sectionStart+this.sequenceIndex&&e===R.Gt?this.emitComment(this.sequenceIndex):this.currentSequence===HS.CommentEnd&&this.sequenceIndex===2&&e===R.Gt?this.emitComment(2):this.currentSequence===HS.CommentEnd&&this.sequenceIndex===this.currentSequence.length-1&&e!==R.Gt?this.sequenceIndex=Number(e===R.Dash):e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===HS.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,3),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=z.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!zS(e):BS(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(zS(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===HS.TitleEnd||this.currentSequence===HS.TextareaEnd?this.decodeEntities&&e===R.Amp&&this.startEntity():this.fastForwardTo(R.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===R.Lt)}stateBeforeTagName(e){if(e===R.ExclamationMark)this.state=z.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===R.Questionmark)this.xmlMode?(this.state=z.InProcessingInstruction,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.state=z.InSpecialComment,this.sectionStart=this.index);else if(this.isTagStartChar(e)){this.sectionStart=this.index;let t=this.xmlMode||this.cbs.isInForeignContext?.()?void 0:US.get(e|32);t===void 0?this.state=z.InTagName:(this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=3,this.state=z.SpecialStartSequence)}else e===R.Slash?this.state=z.BeforeClosingTagName:(this.state=z.Text,this.stateText(e))}stateInTagName(e){zS(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=z.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){RS(e)?this.xmlMode||(this.state=z.InSpecialComment,this.sectionStart=this.index):e===R.Gt?(this.state=z.Text,this.xmlMode||(this.sectionStart=this.index+1)):(this.state=this.isTagStartChar(e)?z.InClosingTagName:z.InSpecialComment,this.sectionStart=this.index)}stateInClosingTagName(e){zS(e)&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=z.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===R.Gt||this.fastForwardTo(R.Gt))&&(this.state=z.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===R.Gt?(this.cbs.onopentagend(this.index),this.enterTagBody(),this.sectionStart=this.index+1):e===R.Slash?this.state=z.InSelfClosingTag:RS(e)||(this.state=z.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){if(e===R.Gt){if(this.cbs.onselfclosingtag(this.index),this.sectionStart=this.index+1,!this.recognizeSelfClosing){this.enterTagBody();return}this.state=z.Text,this.isSpecial=!1,this.currentSequence=HS.Empty}else RS(e)||(this.state=z.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===R.Eq||zS(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=z.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===R.Eq?this.state=z.BeforeAttributeValue:e===R.Slash||e===R.Gt?(this.cbs.onattribend(VS.NoValue,this.sectionStart),this.sectionStart=-1,this.state=z.BeforeAttributeName,this.stateBeforeAttributeName(e)):RS(e)||(this.cbs.onattribend(VS.NoValue,this.sectionStart),this.state=z.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===R.DoubleQuote?(this.state=z.InAttributeValueDq,this.sectionStart=this.index+1):e===R.SingleQuote?(this.state=z.InAttributeValueSq,this.sectionStart=this.index+1):RS(e)||(this.sectionStart=this.index,this.state=z.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===R.DoubleQuote?VS.Double:VS.Single,this.index+1),this.state=z.BeforeAttributeName):this.decodeEntities&&e===R.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,R.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,R.SingleQuote)}stateInAttributeValueNoQuotes(e){RS(e)||e===R.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(VS.Unquoted,this.index),this.state=z.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===R.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===R.OpeningSquareBracket?(this.state=z.CDATASequence,this.sequenceIndex=0):this.xmlMode?this.state=e===R.Dash?z.BeforeComment:z.InDeclaration:(e|32)===HS.Doctype[0]?(this.state=z.DeclarationSequence,this.currentSequence=HS.Doctype,this.sequenceIndex=1):e===R.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=z.Text,this.sectionStart=this.index+1):this.state=e===R.Dash?z.BeforeComment:z.InSpecialComment}stateDeclarationSequence(e){this.sequenceIndex===this.currentSequence.length?(this.state=z.InDeclaration,this.stateInDeclaration(e)):(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:e===R.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=z.Text,this.sectionStart=this.index+1):this.state=z.InSpecialComment}stateInDeclaration(e){(e===R.Gt||this.fastForwardTo(R.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=z.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){e===R.Questionmark?this.sequenceIndex=1:e===R.Gt&&this.sequenceIndex===1?(this.cbs.onprocessinginstruction(this.sectionStart,this.index-1),this.sequenceIndex=0,this.state=z.Text,this.sectionStart=this.index+1):this.sequenceIndex=Number(this.fastForwardTo(R.Questionmark))}stateBeforeComment(e){e===R.Dash?(this.state=z.InCommentLike,this.currentSequence=HS.CommentEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):this.xmlMode?this.state=z.InDeclaration:e===R.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=z.Text,this.sectionStart=this.index+1):this.state=z.InSpecialComment}stateInSpecialComment(e){(e===R.Gt||this.fastForwardTo(R.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=z.Text,this.sectionStart=this.index+1)}startEntity(){this.baseState=this.state,this.state=z.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?FS.Strict:this.baseState===z.Text||this.baseState===z.InSpecialTag?FS.Legacy:FS.Attribute)}stateInEntity(){let e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,t===0&&--this.index;else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===R.Amp){this.state=this.baseState,--this.index;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===z.Text||this.state===z.InPlainText||this.state===z.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===z.InAttributeValueDq||this.state===z.InAttributeValueSq||this.state===z.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case z.Text:this.stateText(e);break;case z.InPlainText:this.index=this.buffer.length+this.offset-1;break;case z.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case z.InSpecialTag:this.stateInSpecialTag(e);break;case z.CDATASequence:this.stateCDATASequence(e);break;case z.DeclarationSequence:this.stateDeclarationSequence(e);break;case z.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case z.InAttributeName:this.stateInAttributeName(e);break;case z.InCommentLike:this.stateInCommentLike(e);break;case z.InSpecialComment:this.stateInSpecialComment(e);break;case z.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case z.InTagName:this.stateInTagName(e);break;case z.InClosingTagName:this.stateInClosingTagName(e);break;case z.BeforeTagName:this.stateBeforeTagName(e);break;case z.AfterAttributeName:this.stateAfterAttributeName(e);break;case z.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case z.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case z.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case z.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case z.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case z.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case z.InDeclaration:this.stateInDeclaration(e);break;case z.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case z.BeforeComment:this.stateBeforeComment(e);break;case z.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case z.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===z.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingCommentLikeData(e){if(this.state!==z.InCommentLike)return!1;if(this.currentSequence===HS.CdataEnd){if(this.xmlMode)this.sectionStart<e&&this.cbs.oncdata(this.sectionStart,e,0);else{let t=this.sectionStart-HS.Cdata.length-1;this.cbs.oncomment(t,e,0)}}else{let t=this.xmlMode?0:Math.min(this.sequenceIndex,HS.CommentEnd.length-1);this.cbs.oncomment(this.sectionStart,e,t)}return!0}handleTrailingMarkupDeclaration(e){if(this.xmlMode)switch(this.state){case z.InSpecialComment:case z.BeforeComment:case z.CDATASequence:case z.DeclarationSequence:case z.InDeclaration:return this.cbs.ontext(this.sectionStart,e),!0;default:return!1}switch(this.state){case z.BeforeDeclaration:case z.InSpecialComment:case z.BeforeComment:case z.CDATASequence:return this.cbs.oncomment(this.sectionStart,e,0),!0;case z.DeclarationSequence:return this.sequenceIndex!==HS.Doctype.length&&this.cbs.oncomment(this.sectionStart,e,0),!0;case z.InDeclaration:return!0;default:return!1}}handleTrailingData(){let e=this.buffer.length+this.offset;if(!(this.handleTrailingCommentLikeData(e)||this.handleTrailingMarkupDeclaration(e))&&!(this.sectionStart>=e))switch(this.state){case z.InTagName:case z.BeforeAttributeName:case z.BeforeAttributeValue:case z.AfterAttributeName:case z.InAttributeName:case z.InAttributeValueSq:case z.InAttributeValueDq:case z.InAttributeValueNq:case z.InClosingTagName:break;default:this.cbs.ontext(this.sectionStart,e)}}emitCodePoint(e,t){this.baseState!==z.Text&&this.baseState!==z.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}},{fromCodePoint:GS}=String,KS=new Set([`input`,`option`,`optgroup`,`select`,`button`,`datalist`,`textarea`]),qS=new Set([`p`]),JS=new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`p`]),YS=new Set([`thead`,`tbody`]),XS=new Set([`dd`,`dt`]),ZS=new Set([`rt`,`rp`]),QS=new Map([[`tr`,new Set([`tr`,`th`,`td`])],[`th`,new Set([`th`])],[`td`,new Set([`thead`,`th`,`td`])],[`body`,new Set([`head`,`link`,`script`])],[`a`,new Set([`a`])],[`li`,new Set([`li`])],[`p`,qS],[`h1`,JS],[`h2`,JS],[`h3`,JS],[`h4`,JS],[`h5`,JS],[`h6`,JS],[`select`,KS],[`input`,KS],[`output`,KS],[`button`,KS],[`datalist`,KS],[`textarea`,KS],[`option`,new Set([`option`])],[`optgroup`,new Set([`optgroup`,`option`])],[`dd`,XS],[`dt`,XS],[`address`,qS],[`article`,qS],[`aside`,qS],[`blockquote`,qS],[`details`,qS],[`div`,qS],[`dl`,qS],[`fieldset`,qS],[`figcaption`,qS],[`figure`,qS],[`footer`,qS],[`form`,qS],[`header`,qS],[`hr`,qS],[`main`,qS],[`nav`,qS],[`ol`,qS],[`pre`,qS],[`section`,qS],[`table`,qS],[`ul`,qS],[`rt`,ZS],[`rp`,ZS],[`tbody`,YS],[`tfoot`,YS]]),$S=`doctype`,eC=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),tC=new Set([`math`,`svg`]),nC=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),rC=new Map([[`altglyph`,`altGlyph`],[`altglyphdef`,`altGlyphDef`],[`altglyphitem`,`altGlyphItem`],[`animatecolor`,`animateColor`],[`animatemotion`,`animateMotion`],[`animatetransform`,`animateTransform`],[`clippath`,`clipPath`],[`feblend`,`feBlend`],[`fecolormatrix`,`feColorMatrix`],[`fecomponenttransfer`,`feComponentTransfer`],[`fecomposite`,`feComposite`],[`feconvolvematrix`,`feConvolveMatrix`],[`fediffuselighting`,`feDiffuseLighting`],[`fedisplacementmap`,`feDisplacementMap`],[`fedistantlight`,`feDistantLight`],[`fedropshadow`,`feDropShadow`],[`feflood`,`feFlood`],[`fefunca`,`feFuncA`],[`fefuncb`,`feFuncB`],[`fefuncg`,`feFuncG`],[`fefuncr`,`feFuncR`],[`fegaussianblur`,`feGaussianBlur`],[`feimage`,`feImage`],[`femerge`,`feMerge`],[`femergenode`,`feMergeNode`],[`femorphology`,`feMorphology`],[`feoffset`,`feOffset`],[`fepointlight`,`fePointLight`],[`fespecularlighting`,`feSpecularLighting`],[`fespotlight`,`feSpotLight`],[`fetile`,`feTile`],[`feturbulence`,`feTurbulence`],[`foreignobject`,`foreignObject`],[`glyphref`,`glyphRef`],[`lineargradient`,`linearGradient`],[`radialgradient`,`radialGradient`],[`textpath`,`textPath`]]),iC;(function(e){e[e.None=0]=`None`,e[e.Svg=1]=`Svg`,e[e.MathML=2]=`MathML`})(iC||={});var aC=/\s|\//,oC=class{options;startIndex=0;endIndex=0;openTagStart=0;tagname=``;attribname=``;attribvalue=``;attribs=null;stack=[];foreignContext;cbs;lowerCaseTagNames;lowerCaseAttributeNames;recognizeSelfClosing;htmlMode;tokenizer;buffers=[];bufferOffset=0;writeIndex=0;ended=!1;constructor(e,t={}){this.options=t,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=t.lowerCaseTags??this.htmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??this.htmlMode,this.recognizeSelfClosing=t.recognizeSelfClosing??!this.htmlMode,this.tokenizer=new(t.Tokenizer??WS)(this.options,this),this.foreignContext=[iC.None],this.cbs.onparserinit?.(this)}ontext(e,t){let n=this.getSlice(e,t);this.endIndex=t-1,this.cbs.ontext?.(n),this.startIndex=t}ontextentity(e,t){this.endIndex=t-1,this.cbs.ontext?.(GS(e)),this.startIndex=t}isInForeignContext(){return this.foreignContext[0]!==iC.None}isVoidElement(e){return this.htmlMode&&eC.has(e)}readTagName(e,t){let n=this.lowerCaseTagNames?this.getSlice(e,t).toLowerCase():this.getSlice(e,t);if(!(this.lowerCaseTagNames&&this.htmlMode))return n;if(this.foreignContext[0]===iC.Svg)return rC.get(n)??n;if(this.foreignContext.length>1){let e=rC.get(n);if(e!==void 0&&this.stack.includes(e))return e}return this.isInForeignContext()?n:n===`image`?`img`:n}onopentagname(e,t){this.endIndex=t,this.emitOpenTag(this.readTagName(e,t))}emitOpenTag(e){if(this.openTagStart=this.startIndex,this.tagname=e,this.htmlMode&&e===`form`&&this.stack.includes(`form`)){this.tagname=``;return}let t=this.htmlMode&&QS.get(e);if(t)for(;this.stack.length>0&&t.has(this.stack[0]);)this.popElement(!0);this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(e===`svg`?this.foreignContext.unshift(iC.Svg):e===`math`?this.foreignContext.unshift(iC.MathML):nC.has(e)&&this.foreignContext.unshift(iC.None))),this.cbs.onopentagname?.(e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){this.startIndex=this.openTagStart,this.attribs&&=(this.cbs.onopentag?.(this.tagname,this.attribs,e),null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=``}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){this.endIndex=t;let n=this.readTagName(e,t);if(this.isVoidElement(n))this.htmlMode&&n===`br`&&(this.cbs.onopentagname?.(`br`),this.cbs.onopentag?.(`br`,{},!0),this.cbs.onclosetag?.(`br`,!1));else{let e=this.stack.indexOf(n);if(e!==-1){for(let t=0;t<e;t++)this.popElement(!0);this.popElement(!1)}else this.htmlMode&&n===`p`&&(this.emitOpenTag(`p`),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.isInForeignContext()?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}popElement(e){let t=this.stack.shift();this.htmlMode&&(tC.has(t)||nC.has(t))&&this.foreignContext.shift(),this.cbs.onclosetag?.(t,e)}closeCurrentTag(e){let t=this.tagname;this.endOpenTag(e),this.stack[0]===t&&this.popElement(!e)}onattribname(e,t){this.startIndex=e;let n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=GS(e)}onattribend(e,t){this.endIndex=t,this.cbs.onattribute?.(this.attribname,this.attribvalue,e===VS.Double?`"`:e===VS.Single?`'`:e===VS.NoValue?void 0:null),this.attribs&&!Object.hasOwn(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=``}getInstructionName(e){let t=e.search(aC),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.htmlMode?this.lowerCaseTagNames?$S:n.slice(0,7):this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){this.endIndex=t,this.cbs.oncomment?.(this.getSlice(e,t-n)),this.cbs.oncommentend?.(),this.startIndex=t+1}oncdata(e,t,n){this.endIndex=t;let r=this.getSlice(e,t-n);!this.htmlMode||this.options.recognizeCDATA?(this.cbs.oncdatastart?.(),this.cbs.ontext?.(r),this.cbs.oncdataend?.()):this.isInForeignContext()?this.cbs.ontext?.(r):(this.cbs.oncomment?.(`[CDATA[${r}]]`),this.cbs.oncommentend?.()),this.startIndex=t+1}onend(){if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}this.cbs.onend?.()}reset(){this.cbs.onreset?.(),this.tokenizer.reset(),this.tagname=``,this.attribname=``,this.attribvalue=``,this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,this.cbs.onparserinit?.(this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(iC.None),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){if(e===t)return``;for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){if(this.ended){this.cbs.onerror?.(Error(`.write() after done!`));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){if(this.ended){this.cbs.onerror?.(Error(`.end() after done!`));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}},sC=/<\/?([a-zA-Z][a-zA-Z0-9-]{0,})(?:\s+[^>]*)?>/,cC=/^(br|hr|img|input|link|meta|area|base|col|embed|keygen|param|source|track|wbr)$/i,lC=e=>{let t=sC.exec(e);return t?{tag:t[1],isOpening:!e.startsWith(`</`)}:null},uC=e=>{let t=e.raw.match(/<\/?([a-zA-Z][a-zA-Z0-9-]*)/i);if(!t)return e;let n=t[1];if(!cC.test(n))return e;let r=e.raw.endsWith(`/>`)?e.raw:e.raw.replace(/\s*>$/,`/>`);return{...e,raw:r,tag:n,attributes:dC(e.raw)}},dC=e=>{let t={},n=/([a-zA-Z][\w-]*)=(?:"([^"]*)(?:"|$)|'([^']*)(?:'|$))/g,r;for(;(r=n.exec(e))!==null;){let e=r[1];t[e]=(r[2]??r[3]??``).trim()}let i=e.replace(/[a-zA-Z][\w-]*=(?:"[^"]*(?:"|$)|'[^']*(?:'|$))/g,` `),a=/(?:^|\s)([a-zA-Z][\w-]*?)(?=[\s>]|$)/g;for(;(r=a.exec(i))!==null;){let[,e]=r;e&&!t[e]&&(t[e]=``)}return t},fC=e=>Object.entries(e).map(([e,t])=>` ${e}="${t.replace(/"/g,`"`)}"`).join(``),pC=e=>{let t=e.indexOf(`>`);return t!==-1&&e.indexOf(`<`,t+1)!==-1},mC=e=>{let t=[],n=[t],r=[],i=``,a=()=>{i.length!==0&&(i.trim()&&n[n.length-1].push({type:`text`,raw:i,text:i}),i=``)},o=new oC({onopentag:(e,t)=>{if(a(),cC.test(e)){n[n.length-1].push({type:`html`,raw:`<${e}${fC(t)}/>`,tag:e,attributes:t});return}let i=[],s={type:`html`,raw:`<${e}${fC(t)}>`,tag:e,attributes:t};n[n.length-1].push(s),n.push(i),r.push({tag:e,opening:s,childTokens:i,startIndex:o.startIndex})},ontext:e=>{i+=e},onclosetag:(e,t)=>{if(a(),r.length===0)return;let i=r[r.length-1];if(i.tag===e){if(r.pop(),n.pop(),t){let e=n[n.length-1];for(let t of i.childTokens)e.push(t)}else{let e=i.opening;e.sourceLength=o.endIndex-i.startIndex+1,e.tokens=i.childTokens}}}},{xmlMode:!1,recognizeSelfClosing:!0});return o.write(e),o.end(),a(),t},hC=e=>pC(e.raw)?mC(e.raw):[uC(e)],gC=e=>{let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.type!==`html`){t.push(i);continue}if(`tokens`in i&&Array.isArray(i.tokens)){t.push(i);continue}let a=lC(i.raw);if(!a){t.push(i);continue}if(i.raw.endsWith(`/>`)){t.push(i);continue}if(a.isOpening)n.push({tag:a.tag,startIndex:t.length}),t.push(i);else{let e=n.pop();if(!e||e.tag!==a.tag){t.push(i);continue}let r=e.startIndex,o=t.splice(r+1,t.length-r-1),s=t.pop(),c=s.raw.length+o.reduce((e,t)=>e+(t.sourceLength??t.raw.length),0)+i.raw.length;t.push({type:`html`,raw:s.raw,tag:a.tag,tokens:o,attributes:dC(s.raw),sourceLength:c})}}return t},_C=(e,t)=>!e||e.length!==t.length?!1:e.every((e,n)=>e===t[n]),vC=(e,t)=>{let n=e.tokens?bC(e.tokens):[],r=e;return r.listItemIndex===t&&_C(e.tokens,n)?r:{...e,listItemIndex:t,tokens:n}},yC=e=>{let t=e.tokens?bC(e.tokens):[];return _C(e.tokens,t)?e:{...e,tokens:t}},bC=e=>{let t=[];for(let n of e)if(n.type!==`html`&&`tokens`in n&&Array.isArray(n.tokens)){let e=n;e.tokens=bC(e.tokens),t.push(n)}else if(n.type===`list`)n.items=n.items.map(vC),t.push(n);else if(n.type===`table`){let e=n;e.header&&=e.header.map(yC),e.rows&&=e.rows.map(e=>e.map(yC)),t.push(n)}else if(n.type===`html`){let e=hC(n);for(let n of e)t.push(n)}else t.push(n);return gC(t)},xC=(e,t,n)=>{let r=new wb(t);return bC(n?r.inlineTokens(e):r.lex(e))},SC=(e,t,n)=>{let r=vS.getTokens(e,t);if(r)return r;let i=xC(e,t,n);if(typeof t.walkTokens==`function`)for(let e of i)t.walkTokens(e);return vS.setTokens(e,t,i),i},CC=async(e,t,n)=>{let r=vS.getTokens(e,t);if(r)return r;let i=xC(e,t,n);if(typeof t.walkTokens==`function`){let e=new kb;e.defaults={...e.defaults,...t};let n=e.walkTokens(i,t.walkTokens);await Promise.all(n)}return vS.setTokens(e,t,i),i},wC=e=>typeof e==`object`&&!!e&&!Array.isArray(e),TC=e=>Array.isArray(e)&&e.every(e=>Array.isArray(e)?TC(e):wC(e)),EC=(e,t)=>e.length===t.length&&e.every((e,n)=>{let r=t[n];return Array.isArray(e)||Array.isArray(r)?Array.isArray(e)&&Array.isArray(r)&&EC(e,r):OC(e,r)}),DC=(e,t)=>{let n=new Set([...Object.keys(e),...Object.keys(t)]),r=e,i=t;for(let e of n){let t=r[e],n=i[e],a=TC(t),o=TC(n);if((a||o)&&(!a||!o||!EC(t,n)))return!1}return!0},OC=(e,t)=>{if(e.type!==t.type)return!1;if(typeof e.raw==`string`||typeof t.raw==`string`){if(e.raw!==t.raw)return!1}else if(typeof e.text==`string`||typeof t.text==`string`){if(e.text!==t.text)return!1}else return!1;return DC(e,t)},kC=(e,t)=>{let n=Math.min(e.length,t.length),r;for(let i=0;i<n;i++){let n=e[i],a=t[i],o=a;Array.isArray(n)&&Array.isArray(a)?o=kC(n,a):wC(n)&&wC(a)&&(o=AC(n,a)),o!==a&&(r??=t.slice(),r[i]=o)}return r??t},AC=(e,t)=>{if(OC(e,t))return e;let n,r=e,i=t;for(let e of Object.keys(t)){let a=r[e],o=i[e];if(!TC(a)||!TC(o))continue;let s=kC(a,o);if(s!==o){n??={...t};let r=n;r[e]=s}}return n??t},jC=(e,t,n)=>{let r=Math.min(n,e.length,t.length),i;if(r>0){i=Array(t.length);for(let t=0;t<r;t++)i[t]=e[t];for(let e=r;e<t.length;e++)i[e]=t[e]}if(r<e.length&&r<t.length){let n=AC(e[r],t[r]);n!==t[r]&&(i??=t.slice(),i[r]=n)}return i??t},MC=Symbol.for(`svelte-markdown.tailWindowSafe`),NC=e=>{e[MC]=!0},PC=e=>{for(let t of e.extensions??[])`tokenizer`in t&&typeof t.tokenizer==`function`&&NC(t.tokenizer);return e},FC=e=>typeof e==`function`&&e[MC]===!0,IC=/^ {0,3}(`{3,}|~{3,}).*\n[\s\S]*\n {0,3}\1[ \t]*\n*$/,LC=/\[[^\]\n]+\]\[[^\]\n]*\]/,RC=/\[[^\]\n]+\](?![[(])/,zC=/^\s{0,3}\[[^\]\n]+\]:/m,BC=class{prevTokens=[];prevSource=``;options;tailWindowDisabled;prevHasHtmlSpanMismatch=!1;prevTailWindowBoundary={prefixCount:0,reparseOffset:0};prevHasPotentialReferenceUse=!1;prevHasReferenceDefinition=!1;constructor(e){this.options=e;let t=e.extensions,n=[...t?.block??[],...t?.inline??[]];this.tailWindowDisabled=typeof e.walkTokens==`function`||e.tokenizer!=null||n.some(e=>!FC(e))}getTailWindowBoundary=()=>this.prevTailWindowBoundary;hasHtmlSpanMismatch=e=>{if(e.type!==`html`)return!1;let t=e;return!t.tag||t.raw.endsWith(`/>`)||t.raw.startsWith(`</`)?!1:t.sourceLength==null};getTokenSourceLength=e=>e.sourceLength??e.raw.length;isStableAtSourceEnd=e=>{if(e.type===`space`)return!1;if(e.raw.endsWith(`
|
|
66
|
+
|
|
67
|
+
`))return!0;switch(e.type){case`heading`:case`hr`:return e.raw.endsWith(`
|
|
68
|
+
`);case`code`:return IC.test(e.raw);default:return!1}};hasPotentialReferenceUse=e=>!e.includes(`[`)||!e.includes(`]`)?!1:LC.test(e)||RC.test(e);hasPotentialReferenceUseOutsideDefinitions=e=>{if(!e.includes(`[`)||!e.includes(`]`))return!1;for(let t of e.split(`
|
|
69
|
+
`))if(!zC.test(t)&&this.hasPotentialReferenceUse(t))return!0;return!1};hasReferenceDefinition=e=>!e.includes(`[`)||!e.includes(`]`)?!1:zC.test(e);appendIntroducesMatch=(e,t)=>{if(t(e.slice(this.prevSource.length)))return!0;let n=this.prevSource.lastIndexOf(`
|
|
70
|
+
`)+1;return!t(this.prevSource.slice(n))&&t(e.slice(n))};isAppendOnlyUpdate=e=>this.prevSource!==``&&e.startsWith(this.prevSource);hasNewReferenceDefinition=e=>e.startsWith(this.prevSource)?this.appendIntroducesMatch(e,this.hasReferenceDefinition):!1;appendedDefinitionInvalidatesTail=e=>this.prevHasPotentialReferenceUse&&this.hasNewReferenceDefinition(e);canUseTailWindow=(e,t,n=this.isAppendOnlyUpdate(e),r=this.appendedDefinitionInvalidatesTail(e))=>{if(this.tailWindowDisabled||this.prevSource===``||this.prevTokens.length===0||!n||t.reparseOffset<=0||r)return!1;if(this.prevHasReferenceDefinition){let n=e.slice(t.reparseOffset);if(this.hasPotentialReferenceUseOutsideDefinitions(n))return!1}return!0};parseSource=(e,t,n,r)=>{if(!this.canUseTailWindow(e,t,n,r))return{tokens:xC(e,this.options,!1),tailTokens:[],usedTailWindow:!1};let i=xC(e.slice(t.reparseOffset),this.options,!1);return{tokens:[...this.prevTokens.slice(0,t.prefixCount),...i],tailTokens:i,usedTailWindow:!0}};hasAnyHtmlSpanMismatch=e=>e.some(this.hasHtmlSpanMismatch);getNextTailWindowBoundary=(e,t,n)=>{if(e.length===0||n)return{prefixCount:0,reparseOffset:0};let r=e[e.length-1];return this.isStableAtSourceEnd(r)?{prefixCount:e.length,reparseOffset:t}:{prefixCount:e.length-1,reparseOffset:t-this.getTokenSourceLength(r)}};updateCachedState=(e,t,n,r)=>{let i=t.usedTailWindow?this.prevHasHtmlSpanMismatch||this.hasAnyHtmlSpanMismatch(t.tailTokens):this.hasAnyHtmlSpanMismatch(t.tokens);this.prevHasPotentialReferenceUse=n?this.prevHasPotentialReferenceUse||this.appendIntroducesMatch(e,this.hasPotentialReferenceUseOutsideDefinitions):this.hasPotentialReferenceUseOutsideDefinitions(e),this.prevHasReferenceDefinition=n?this.prevHasReferenceDefinition||r:this.hasReferenceDefinition(e),this.prevSource=e,this.prevTokens=t.tokens,this.prevHasHtmlSpanMismatch=i,this.prevTailWindowBoundary=this.getNextTailWindowBoundary(t.tokens,e.length,i)};update=e=>{let t=this.getTailWindowBoundary(),n=this.isAppendOnlyUpdate(e),r=n&&this.appendIntroducesMatch(e,this.hasReferenceDefinition),i=this.prevHasPotentialReferenceUse&&r,a=this.parseSource(e,t,n,i),o=a.tokens;if(typeof this.options.walkTokens==`function`)for(let e of o)this.options.walkTokens(e);let s=n?i:(this.prevHasReferenceDefinition||this.hasReferenceDefinition(e))&&(this.hasPotentialReferenceUse(this.prevSource)||this.hasPotentialReferenceUse(e)),c=n&&!s,l=0,u=a.usedTailWindow?t.reparseOffset:0;if(!s){let e=Math.min(this.prevTokens.length,o.length);for(;l<e;){let e=this.prevTokens[l],n=o[l];if(!OC(e,n))break;a.usedTailWindow?u!==void 0&&l>=t.prefixCount&&(u+=this.getTokenSourceLength(n)):u!==void 0&&(this.hasHtmlSpanMismatch(n)?u=void 0:u+=this.getTokenSourceLength(n)),l++}}return this.updateCachedState(e,a,n,r),{tokens:o,divergeAt:l,divergeOffset:u,canReuse:c,usedTailWindow:a.usedTailWindow}}},VC=1e6,HC=e=>typeof e==`object`&&!!e&&`offset`in e,UC=(e,t,{currentBufferLength:n=0,maxOffsetGap:r=VC}={})=>typeof e==`string`?t===`offset`?{kind:`drop`,message:`offset mode active, string chunk dropped. Call resetStream() before switching streaming input modes.`}:{kind:`append`,value:e,nextMode:`append`}:!HC(e)||typeof e.value!=`string`?{kind:`drop`,message:`Invalid chunk object passed to writeChunk(); expected { value: string, offset: number }.`}:!Number.isSafeInteger(e.offset)||e.offset<0?{kind:`drop`,message:`Invalid offset chunk passed to writeChunk(); offset must be a non-negative safe integer.`}:t===`append`?{kind:`drop`,message:`append mode active, offset chunk dropped. Call resetStream() before switching streaming input modes.`}:e.offset-n>r?{kind:`drop`,message:`offset chunk skipped: offset ${e.offset} is more than ${r} chars beyond the current buffer length (${n}).`}:{kind:`offset`,chunk:e,nextMode:`offset`},WC=(e,t)=>e+t,GC=(e,t)=>t===``?{committed:!1,sourceBuffer:e,pendingBuffer:t}:{committed:!0,sourceBuffer:e+t,pendingBuffer:``},KC=(e,t=256)=>e.length>=t,qC=(e,{value:t,offset:n},{maxOffsetGap:r=VC}={})=>{let i=Math.max(0,n-e.length),a=Math.min(i,Math.max(0,r)),o=n>e.length?e.length+a:n,s=a>0?e+` `.repeat(a):e,c=s.slice(0,o),l=s.slice(o+t.length);return c+t+l},JC=new Set([`$$slots`,`$$events`,`$$legacy`,`source`,`streaming`,`streamId`,`renderers`,`options`,`isInline`,`parsed`,`extensions`,`sanitizeUrl`,`sanitizeAttributes`]);function YC(e,t){te(t,!0);let n=N(t,`source`,19,()=>[]),r=N(t,`streaming`,3,!1),i=N(t,`streamId`,3,void 0),a=N(t,`renderers`,19,()=>({})),o=N(t,`options`,19,()=>({})),s=N(t,`isInline`,3,!1),c=N(t,`parsed`,3,()=>{}),u=N(t,`extensions`,19,()=>[]),d=N(t,`sanitizeUrl`,3,Px),f=N(t,`sanitizeAttributes`,3,Fx),p=ie(t,JC),m=O(()=>oS(u())),h=O(()=>uS(o(),u())),g=new Gv,_=Ux();ke(Ix,_);let v=O(()=>cS(u())),y,b,x,S,C,ee=``,T=``,E=null,D=null,ne=null,re=ae(pe([])),oe=0,k=0,se=e=>{console.warn(`[svelte-markdown] ${e}`)},ce=()=>{y=void 0,b=void 0,x=void 0},le=()=>{D&&=(D.kind===`raf`&&typeof cancelAnimationFrame==`function`?cancelAnimationFrame(D.id):D.kind===`timeout`&&clearTimeout(D.id),null)},A=()=>!y||b!==o()||x!==u(),de=(e,t=!1)=>{(t||A())&&(y=new BC(l(h)),b=o(),x=u());let n=y;if(!n)return;let{tokens:r,divergeAt:i,divergeOffset:a,canReuse:s}=n.update(e);P(re,s?jC(l(re),r,i):r,!0);let c=s&&a!==void 0;oe=c?i:0,k=c?a:0},fe=()=>{let e=GC(ee,T);return e.committed?(ee=e.sourceBuffer,T=e.pendingBuffer,!0):!1},me=(e=!1)=>{if(le(),E!==null){let t=E;E=null,T=``,ee=t,de(t,e);return}fe()&&de(ee,e)},he=()=>{if(!(D||T===``&&E===null)){if(typeof window<`u`&&typeof window.requestAnimationFrame==`function`){D={kind:`raf`,id:window.requestAnimationFrame(()=>{D=null,me()})};return}D={kind:`timeout`,id:setTimeout(()=>{D=null,me()},16)}}},_e=()=>{le(),T=``,E=null,ne=null,ee=``,oe=0,k=0},ve=(e=``)=>{if(_e(),ee=e,e===``){ce(),P(re,[],!0);return}de(e,!0)},ye=e=>{if(S=e,Array.isArray(e)){_e(),ce(),P(re,[...e],!0);return}let t=e,n=y!==void 0&&ee!==``&&t!==``&&t.length>ee.length&&t.startsWith(ee);if(n){T=``,E=t,he();return}if(_e(),t===``){ce(),P(re,[],!0);return}ee=t,de(t,!n)},j=()=>{if(Array.isArray(n())){ye(n());return}S=n(),ve(n())},be=e=>r()?l(v)?(se(`${e}() is unavailable when async extensions are used; call dropped.`),!1):!Array.isArray(n())||(se(`${e}() requires a string-backed source; token array sources are not supported.`),!1):(se(`${e}() is only available when streaming={true}; call dropped.`),!1),xe=e=>{if(E!==null&&me(),T=WC(T,e),KC(T)){me();return}he()},Se=e=>{ee=qC(ee,e,{maxOffsetGap:VC}),de(ee)};function Ce(e){if(!be(`writeChunk`))return;C!==i()&&(C=i(),j()),E!==null&&me();let t=UC(e,ne,{currentBufferLength:ee.length,maxOffsetGap:VC});if(t.kind===`drop`){se(t.message);return}if(ne=t.nextMode,t.kind===`append`){xe(t.value);return}Se(t.chunk)}function we(e=``){be(`resetStream`)&&ve(e)}w(()=>()=>{le()}),w(()=>{if(!r()||l(v)){_e(),y&&ce(),S=n(),C=i(),r()&&l(v)&&se(`streaming prop is ignored when async extensions are used. Remove async extensions or set streaming={false} to silence this warning.`);return}if(C!==i()){C=i(),j();return}if(S!==n()){ye(n());return}if(!Array.isArray(n())&&A()){if(E!==null){me(!0);return}if(T!==``){me(!0);return}if(ee===``){ce(),P(re,[],!0);return}de(ee,!0)}});let M=O(()=>{if(!l(v)&&!r())return Array.isArray(n())?n():n()===``?[]:SC(n(),l(h),s())}),Te=ae(void 0),F=0;w(()=>{if(!l(v))return;if(Array.isArray(n())){P(Te,n(),!0);return}if(n()===``){P(Te,[],!0);return}let e=n(),t=l(h),r=s(),i=++F;CC(e,t,r).then(e=>{i===F&&P(Te,e,!0)}).catch(e=>{i===F&&(console.error(`[svelte-markdown] async walkTokens failed:`,e),P(Te,[],!0))})});let Ee=O(()=>r()&&!l(v)?l(re):l(v)?l(Te):l(M)),De=O(()=>{if(!l(Ee))return l(Ee);let e=Array.isArray(n())?void 0:r()&&!l(v)?ee:n(),t=r()&&!l(v)?{startIndex:oe,startOffset:k}:{};return _.prepareTokensForRender(l(Ee),l(h),{source:e,...t})});w(()=>{l(De)&&c()(l(De))});let Oe=O(()=>Zx(a())),Ae=O(()=>Qx(l(m))),je=O(()=>$x(p,l(Ae))),Me=O(()=>eS(p)),I=O(()=>tS(p,l(Ae)));var Ne={writeChunk:Ce,resetStream:we};return Jx(e,ge({get tokens(){return l(De)}},()=>l(I),{get options(){return l(h)},slug:e=>g.slug(e),get renderers(){return l(Oe)},get snippetOverrides(){return l(je)},get htmlSnippetOverrides(){return l(Me)},get sanitizeUrl(){return d()},get sanitizeAttributes(){return f()}})),ue(Ne)}var XC=((e,t,n)=>{let r=t=>e.includes(t),i=()=>{let r={};for(let i of e)r[i]=n[i]===null?null:t;return r};return{buildUnsupported:i,allowOnly:e=>{let t=i();for(let i of e)if(Array.isArray(i)){let[e,n]=i;r(e)&&(t[e]=n)}else{let e=i;r(e)&&(t[e]=n[e])}return t},excludeOnly:(i,a)=>{let o={};for(let t of e)o[t]=n[t];for(let e of i)r(e)&&(o[e]=t);if(a)for(let[e,t]of a)i.includes(e)||r(e)&&(o[e]=t);return o}}})(Xx,Vv,Hv),ZC=XC.buildUnsupported;XC.allowOnly,XC.excludeOnly;var QC=YC,B=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},$C=/([A-Z])/g,ew=e=>e.replace($C,`-$1`).toLowerCase(),tw={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},nw=/[&><"']/g,rw=e=>String(e).replace(nw,e=>tw[e]),iw=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?iw(e.body[0]):e:e.type===`font`?iw(e.body):e,aw=new Set([`mathord`,`textord`,`atom`]),ow=e=>aw.has(iw(e).type),sw=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},cw={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function lw(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function uw(e){return e.default===void 0?lw(Array.isArray(e.type)?e.type[0]:e.type):e.default}function dw(e,t,n,r){var i=n[t];e[t]=i===void 0?uw(r):r.processor?r.processor(i):i}var fw=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(cw)){var n=cw[t];n&&dw(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new B(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=sw(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},pw=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Sw[Cw[this.id]]}sub(){return Sw[ww[this.id]]}fracNum(){return Sw[Tw[this.id]]}fracDen(){return Sw[Ew[this.id]]}cramp(){return Sw[Dw[this.id]]}text(){return Sw[Ow[this.id]]}isTight(){return this.size>=2}},mw=0,hw=1,gw=2,_w=3,vw=4,yw=5,bw=6,xw=7,Sw=[new pw(mw,0,!1),new pw(hw,0,!0),new pw(gw,1,!1),new pw(_w,1,!0),new pw(vw,2,!1),new pw(yw,2,!0),new pw(bw,3,!1),new pw(xw,3,!0)],Cw=[vw,yw,vw,yw,bw,xw,bw,xw],ww=[yw,yw,yw,yw,xw,xw,xw,xw],Tw=[gw,_w,vw,yw,bw,xw,bw,xw],Ew=[_w,_w,yw,yw,xw,xw,xw,xw],Dw=[hw,hw,_w,_w,yw,yw,xw,xw],Ow=[mw,hw,gw,_w,gw,_w,gw,_w],kw={DISPLAY:Sw[mw],TEXT:Sw[gw],SCRIPT:Sw[vw],SCRIPTSCRIPT:Sw[bw]},Aw=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function jw(e){for(var t=0;t<Aw.length;t++)for(var n=Aw[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Mw=[];Aw.forEach(e=>e.blocks.forEach(e=>Mw.push(...e)));function Nw(e){for(var t=0;t<Mw.length;t+=2)if(e>=Mw[t]&&e<=Mw[t+1])return!0;return!1}var Pw=e=>e+` `+e,Fw=80,Iw=function(e,t){return`M95,`+(622+e+t)+`
|
|
71
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
72
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
73
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
74
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
75
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
76
|
+
l`+e/2.075+` -`+e+`
|
|
77
|
+
c5.3,-9.3,12,-14,20,-14
|
|
78
|
+
H400000v`+(40+e)+`H845.2724
|
|
79
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
80
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
81
|
+
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Lw=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
82
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
83
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
84
|
+
l`+e/2.084+` -`+e+`
|
|
85
|
+
c4.7,-7.3,11,-11,19,-11
|
|
86
|
+
H40000v`+(40+e)+`H1012.3
|
|
87
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
88
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
89
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
90
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
91
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Rw=function(e,t){return`M983 `+(10+e+t)+`
|
|
92
|
+
l`+e/3.13+` -`+e+`
|
|
93
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
94
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
95
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
96
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
97
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
98
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
99
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
100
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},zw=function(e,t){return`M424,`+(2398+e+t)+`
|
|
101
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
102
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
103
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
104
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
105
|
+
l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000
|
|
106
|
+
v`+(40+e)+`H1014.6
|
|
107
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
108
|
+
c-2,6,-10,9,-24,9
|
|
109
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
|
|
110
|
+
h400000v`+(40+e)+`h-400000z`},Bw=function(e,t){return`M473,`+(2713+e+t)+`
|
|
111
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
|
|
112
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
113
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
114
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
115
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
116
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
117
|
+
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},Vw=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},Hw=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
|
|
118
|
+
H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
119
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
120
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
121
|
+
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},Uw=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=Iw(t,Fw);break;case`sqrtSize1`:r=Lw(t,Fw);break;case`sqrtSize2`:r=Rw(t,Fw);break;case`sqrtSize3`:r=zw(t,Fw);break;case`sqrtSize4`:r=Bw(t,Fw);break;case`sqrtTall`:r=Hw(t,Fw,n)}return r},Ww=function(e,t){switch(e){case`⎜`:return Pw(`M291 0 H417 V`+t+` H291z`);case`∣`:return Pw(`M145 0 H188 V`+t+` H145z`);case`∥`:return Pw(`M145 0 H188 V`+t+` H145z`)+Pw(`M367 0 H410 V`+t+` H367z`);case`⎟`:return Pw(`M457 0 H583 V`+t+` H457z`);case`⎢`:return Pw(`M319 0 H403 V`+t+` H319z`);case`⎥`:return Pw(`M263 0 H347 V`+t+` H263z`);case`⎪`:return Pw(`M384 0 H504 V`+t+` H384z`);case`⏐`:return Pw(`M312 0 H355 V`+t+` H312z`);case`‖`:return Pw(`M257 0 H300 V`+t+` H257z`)+Pw(`M478 0 H521 V`+t+` H478z`);default:return``}},Gw={doubleleftarrow:`M262 157
|
|
122
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
123
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
124
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
125
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
126
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
127
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
128
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
129
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
130
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
131
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
132
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
133
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
134
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
135
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
136
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
137
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
138
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
139
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
140
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
141
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
142
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
143
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
144
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
145
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
146
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
147
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
148
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
149
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
150
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
151
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
152
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
153
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
154
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
155
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
156
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
157
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
158
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
159
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
160
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
161
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
162
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
163
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
164
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
165
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
166
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
167
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Pw(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:Pw(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:Pw(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:Pw(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
168
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
169
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
170
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Pw(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
|
|
171
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
172
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
173
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
174
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
175
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
176
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
177
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
178
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
179
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
180
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
181
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
182
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
183
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
184
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
185
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
186
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
187
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
188
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
189
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
190
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
191
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
192
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
193
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
194
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
195
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
196
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
197
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
198
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
199
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
200
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
201
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
202
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
203
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
204
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
205
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
206
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
207
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
208
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
209
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
210
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
211
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
212
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
213
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
214
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
215
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
216
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
217
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
218
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
219
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Pw(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:Pw(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:Pw(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
220
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
221
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
222
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
223
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
224
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
225
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
226
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
227
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
228
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
229
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
230
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
231
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
232
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
233
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
234
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
235
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
236
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
237
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
238
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
239
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
240
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
241
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
242
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
243
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
244
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
245
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
246
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
247
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
248
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
249
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
250
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
251
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
252
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
253
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
254
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
255
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
256
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
257
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
258
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
259
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
260
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
261
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
262
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
263
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
264
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
265
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
266
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
267
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
268
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
269
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
270
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
271
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
272
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
273
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
274
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
275
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
276
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
277
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
278
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
279
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
280
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
281
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
282
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
283
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
284
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
285
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
286
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
287
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
288
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
289
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
290
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
291
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
292
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Kw=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
|
|
293
|
+
H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
|
|
294
|
+
M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
295
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
296
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
297
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
298
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
|
|
299
|
+
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
300
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
301
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z
|
|
302
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z
|
|
303
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z
|
|
304
|
+
M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z
|
|
305
|
+
M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
306
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
307
|
+
-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
308
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
309
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
310
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
311
|
+
l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
312
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
313
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
314
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
|
|
315
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
316
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
317
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
318
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
319
|
+
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
320
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function qw(e){return`toText`in e}var Jw=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(qw(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Yw={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Xw={ex:!0,em:!0,mu:!0},Zw=function(e){return typeof e!=`string`&&(e=e.unit),e in Yw||e in Xw||e===`ex`},Qw=function(e,t){var n;if(e.unit in Yw)n=Yw[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new B(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},V=function(e){return+e.toFixed(4)+`em`},$w=function(e){return e.filter(e=>e).join(` `)},eT=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=ew(n)+`:`+r+`;`)}return t},tT=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},nT=function(e){var t=document.createElement(e);t.className=$w(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},rT=/[\s"'>/=\x00-\x1f]/,iT=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+rw($w(this.classes))+`"`);var n=eT(this.style);n&&(t+=` style="`+rw(n)+`"`);for(var r of Object.keys(this.attributes)){if(rT.test(r))throw new B(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+rw(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},aT=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,tT.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return nT.call(this,`span`)}toMarkup(){return iT.call(this,`span`)}},oT=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,tT.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return nT.call(this,`a`)}toMarkup(){return iT.call(this,`a`)}},sT=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+rw(this.src)+`"`+(` alt="`+rw(this.alt)+`"`),t=eT(this.style);return t&&(e+=` style="`+rw(t)+`"`),e+=`'/>`,e}},cT={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},lT=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=jw(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=cT[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=V(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=$w(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=rw($w(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+V(this.italic)+`;`),n+=eT(this.style),n&&(e=!0,t+=` style="`+rw(n)+`"`);var r=rw(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},uT=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+rw(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},dT=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,Gw[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+rw(this.alternate)+`"/>`:`<path d="`+rw(Gw[this.pathName])+`"/>`}},fT=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+rw(this.attributes[t])+`"`;return e+=`/>`,e}};function pT(e){if(e instanceof lT)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function mT(e){if(e instanceof aT)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var hT=e=>e instanceof aT||e instanceof oT||e instanceof Jw,gT={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},_T={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},vT={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function yT(e,t){gT[e]=t}function bT(e,t,n){if(!gT[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=gT[t][r];if(!i&&e[0]in vT&&(r=vT[e[0]].charCodeAt(0),i=gT[t][r]),!i&&n===`text`&&Nw(r)&&(i=gT[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var xT={};function ST(e){var t=e>=5?0:e>=3?1:2;if(!xT[t]){var n=xT[t]={cssEmPerMu:_T.quad[t]/18};for(var r in _T)_T.hasOwnProperty(r)&&(n[r]=_T[r][t])}return xT[t]}var CT={math:{},text:{}};function H(e,t,n,r,i,a){CT[e][i]={font:t,group:n,replace:r},a&&r&&(CT[e][r]=CT[e][i])}var U=`math`,W=`text`,G=`main`,K=`ams`,wT=`accent-token`,q=`bin`,TT=`close`,ET=`inner`,DT=`mathord`,OT=`op-token`,kT=`open`,AT=`punct`,J=`rel`,jT=`spacing`,Y=`textord`;H(U,G,J,`≡`,`\\equiv`,!0),H(U,G,J,`≺`,`\\prec`,!0),H(U,G,J,`≻`,`\\succ`,!0),H(U,G,J,`∼`,`\\sim`,!0),H(U,G,J,`⊥`,`\\perp`),H(U,G,J,`⪯`,`\\preceq`,!0),H(U,G,J,`⪰`,`\\succeq`,!0),H(U,G,J,`≃`,`\\simeq`,!0),H(U,G,J,`∣`,`\\mid`,!0),H(U,G,J,`≪`,`\\ll`,!0),H(U,G,J,`≫`,`\\gg`,!0),H(U,G,J,`≍`,`\\asymp`,!0),H(U,G,J,`∥`,`\\parallel`),H(U,G,J,`⋈`,`\\bowtie`,!0),H(U,G,J,`⌣`,`\\smile`,!0),H(U,G,J,`⊑`,`\\sqsubseteq`,!0),H(U,G,J,`⊒`,`\\sqsupseteq`,!0),H(U,G,J,`≐`,`\\doteq`,!0),H(U,G,J,`⌢`,`\\frown`,!0),H(U,G,J,`∋`,`\\ni`,!0),H(U,G,J,`∝`,`\\propto`,!0),H(U,G,J,`⊢`,`\\vdash`,!0),H(U,G,J,`⊣`,`\\dashv`,!0),H(U,G,J,`∋`,`\\owns`),H(U,G,AT,`.`,`\\ldotp`),H(U,G,AT,`⋅`,`\\cdotp`),H(U,G,AT,`⋅`,`·`),H(W,G,Y,`⋅`,`·`),H(U,G,Y,`#`,`\\#`),H(W,G,Y,`#`,`\\#`),H(U,G,Y,`&`,`\\&`),H(W,G,Y,`&`,`\\&`),H(U,G,Y,`ℵ`,`\\aleph`,!0),H(U,G,Y,`∀`,`\\forall`,!0),H(U,G,Y,`ℏ`,`\\hbar`,!0),H(U,G,Y,`∃`,`\\exists`,!0),H(U,G,Y,`∇`,`\\nabla`,!0),H(U,G,Y,`♭`,`\\flat`,!0),H(U,G,Y,`ℓ`,`\\ell`,!0),H(U,G,Y,`♮`,`\\natural`,!0),H(U,G,Y,`♣`,`\\clubsuit`,!0),H(U,G,Y,`℘`,`\\wp`,!0),H(U,G,Y,`♯`,`\\sharp`,!0),H(U,G,Y,`♢`,`\\diamondsuit`,!0),H(U,G,Y,`ℜ`,`\\Re`,!0),H(U,G,Y,`♡`,`\\heartsuit`,!0),H(U,G,Y,`ℑ`,`\\Im`,!0),H(U,G,Y,`♠`,`\\spadesuit`,!0),H(U,G,Y,`§`,`\\S`,!0),H(W,G,Y,`§`,`\\S`),H(U,G,Y,`¶`,`\\P`,!0),H(W,G,Y,`¶`,`\\P`),H(U,G,Y,`†`,`\\dag`),H(W,G,Y,`†`,`\\dag`),H(W,G,Y,`†`,`\\textdagger`),H(U,G,Y,`‡`,`\\ddag`),H(W,G,Y,`‡`,`\\ddag`),H(W,G,Y,`‡`,`\\textdaggerdbl`),H(U,G,TT,`⎱`,`\\rmoustache`,!0),H(U,G,kT,`⎰`,`\\lmoustache`,!0),H(U,G,TT,`⟯`,`\\rgroup`,!0),H(U,G,kT,`⟮`,`\\lgroup`,!0),H(U,G,q,`∓`,`\\mp`,!0),H(U,G,q,`⊖`,`\\ominus`,!0),H(U,G,q,`⊎`,`\\uplus`,!0),H(U,G,q,`⊓`,`\\sqcap`,!0),H(U,G,q,`∗`,`\\ast`),H(U,G,q,`⊔`,`\\sqcup`,!0),H(U,G,q,`◯`,`\\bigcirc`,!0),H(U,G,q,`∙`,`\\bullet`,!0),H(U,G,q,`‡`,`\\ddagger`),H(U,G,q,`≀`,`\\wr`,!0),H(U,G,q,`⨿`,`\\amalg`),H(U,G,q,`&`,`\\And`),H(U,G,J,`⟵`,`\\longleftarrow`,!0),H(U,G,J,`⇐`,`\\Leftarrow`,!0),H(U,G,J,`⟸`,`\\Longleftarrow`,!0),H(U,G,J,`⟶`,`\\longrightarrow`,!0),H(U,G,J,`⇒`,`\\Rightarrow`,!0),H(U,G,J,`⟹`,`\\Longrightarrow`,!0),H(U,G,J,`↔`,`\\leftrightarrow`,!0),H(U,G,J,`⟷`,`\\longleftrightarrow`,!0),H(U,G,J,`⇔`,`\\Leftrightarrow`,!0),H(U,G,J,`⟺`,`\\Longleftrightarrow`,!0),H(U,G,J,`↦`,`\\mapsto`,!0),H(U,G,J,`⟼`,`\\longmapsto`,!0),H(U,G,J,`↗`,`\\nearrow`,!0),H(U,G,J,`↩`,`\\hookleftarrow`,!0),H(U,G,J,`↪`,`\\hookrightarrow`,!0),H(U,G,J,`↘`,`\\searrow`,!0),H(U,G,J,`↼`,`\\leftharpoonup`,!0),H(U,G,J,`⇀`,`\\rightharpoonup`,!0),H(U,G,J,`↙`,`\\swarrow`,!0),H(U,G,J,`↽`,`\\leftharpoondown`,!0),H(U,G,J,`⇁`,`\\rightharpoondown`,!0),H(U,G,J,`↖`,`\\nwarrow`,!0),H(U,G,J,`⇌`,`\\rightleftharpoons`,!0),H(U,K,J,`≮`,`\\nless`,!0),H(U,K,J,``,`\\@nleqslant`),H(U,K,J,``,`\\@nleqq`),H(U,K,J,`⪇`,`\\lneq`,!0),H(U,K,J,`≨`,`\\lneqq`,!0),H(U,K,J,``,`\\@lvertneqq`),H(U,K,J,`⋦`,`\\lnsim`,!0),H(U,K,J,`⪉`,`\\lnapprox`,!0),H(U,K,J,`⊀`,`\\nprec`,!0),H(U,K,J,`⋠`,`\\npreceq`,!0),H(U,K,J,`⋨`,`\\precnsim`,!0),H(U,K,J,`⪹`,`\\precnapprox`,!0),H(U,K,J,`≁`,`\\nsim`,!0),H(U,K,J,``,`\\@nshortmid`),H(U,K,J,`∤`,`\\nmid`,!0),H(U,K,J,`⊬`,`\\nvdash`,!0),H(U,K,J,`⊭`,`\\nvDash`,!0),H(U,K,J,`⋪`,`\\ntriangleleft`),H(U,K,J,`⋬`,`\\ntrianglelefteq`,!0),H(U,K,J,`⊊`,`\\subsetneq`,!0),H(U,K,J,``,`\\@varsubsetneq`),H(U,K,J,`⫋`,`\\subsetneqq`,!0),H(U,K,J,``,`\\@varsubsetneqq`),H(U,K,J,`≯`,`\\ngtr`,!0),H(U,K,J,``,`\\@ngeqslant`),H(U,K,J,``,`\\@ngeqq`),H(U,K,J,`⪈`,`\\gneq`,!0),H(U,K,J,`≩`,`\\gneqq`,!0),H(U,K,J,``,`\\@gvertneqq`),H(U,K,J,`⋧`,`\\gnsim`,!0),H(U,K,J,`⪊`,`\\gnapprox`,!0),H(U,K,J,`⊁`,`\\nsucc`,!0),H(U,K,J,`⋡`,`\\nsucceq`,!0),H(U,K,J,`⋩`,`\\succnsim`,!0),H(U,K,J,`⪺`,`\\succnapprox`,!0),H(U,K,J,`≆`,`\\ncong`,!0),H(U,K,J,``,`\\@nshortparallel`),H(U,K,J,`∦`,`\\nparallel`,!0),H(U,K,J,`⊯`,`\\nVDash`,!0),H(U,K,J,`⋫`,`\\ntriangleright`),H(U,K,J,`⋭`,`\\ntrianglerighteq`,!0),H(U,K,J,``,`\\@nsupseteqq`),H(U,K,J,`⊋`,`\\supsetneq`,!0),H(U,K,J,``,`\\@varsupsetneq`),H(U,K,J,`⫌`,`\\supsetneqq`,!0),H(U,K,J,``,`\\@varsupsetneqq`),H(U,K,J,`⊮`,`\\nVdash`,!0),H(U,K,J,`⪵`,`\\precneqq`,!0),H(U,K,J,`⪶`,`\\succneqq`,!0),H(U,K,J,``,`\\@nsubseteqq`),H(U,K,q,`⊴`,`\\unlhd`),H(U,K,q,`⊵`,`\\unrhd`),H(U,K,J,`↚`,`\\nleftarrow`,!0),H(U,K,J,`↛`,`\\nrightarrow`,!0),H(U,K,J,`⇍`,`\\nLeftarrow`,!0),H(U,K,J,`⇏`,`\\nRightarrow`,!0),H(U,K,J,`↮`,`\\nleftrightarrow`,!0),H(U,K,J,`⇎`,`\\nLeftrightarrow`,!0),H(U,K,J,`△`,`\\vartriangle`),H(U,K,Y,`ℏ`,`\\hslash`),H(U,K,Y,`▽`,`\\triangledown`),H(U,K,Y,`◊`,`\\lozenge`),H(U,K,Y,`Ⓢ`,`\\circledS`),H(U,K,Y,`®`,`\\circledR`),H(W,K,Y,`®`,`\\circledR`),H(U,K,Y,`∡`,`\\measuredangle`,!0),H(U,K,Y,`∄`,`\\nexists`),H(U,K,Y,`℧`,`\\mho`),H(U,K,Y,`Ⅎ`,`\\Finv`,!0),H(U,K,Y,`⅁`,`\\Game`,!0),H(U,K,Y,`‵`,`\\backprime`),H(U,K,Y,`▲`,`\\blacktriangle`),H(U,K,Y,`▼`,`\\blacktriangledown`),H(U,K,Y,`■`,`\\blacksquare`),H(U,K,Y,`⧫`,`\\blacklozenge`),H(U,K,Y,`★`,`\\bigstar`),H(U,K,Y,`∢`,`\\sphericalangle`,!0),H(U,K,Y,`∁`,`\\complement`,!0),H(U,K,Y,`ð`,`\\eth`,!0),H(W,G,Y,`ð`,`ð`),H(U,K,Y,`╱`,`\\diagup`),H(U,K,Y,`╲`,`\\diagdown`),H(U,K,Y,`□`,`\\square`),H(U,K,Y,`□`,`\\Box`),H(U,K,Y,`◊`,`\\Diamond`),H(U,K,Y,`¥`,`\\yen`,!0),H(W,K,Y,`¥`,`\\yen`,!0),H(U,K,Y,`✓`,`\\checkmark`,!0),H(W,K,Y,`✓`,`\\checkmark`),H(U,K,Y,`ℶ`,`\\beth`,!0),H(U,K,Y,`ℸ`,`\\daleth`,!0),H(U,K,Y,`ℷ`,`\\gimel`,!0),H(U,K,Y,`ϝ`,`\\digamma`,!0),H(U,K,Y,`ϰ`,`\\varkappa`),H(U,K,kT,`┌`,`\\@ulcorner`,!0),H(U,K,TT,`┐`,`\\@urcorner`,!0),H(U,K,kT,`└`,`\\@llcorner`,!0),H(U,K,TT,`┘`,`\\@lrcorner`,!0),H(U,K,J,`≦`,`\\leqq`,!0),H(U,K,J,`⩽`,`\\leqslant`,!0),H(U,K,J,`⪕`,`\\eqslantless`,!0),H(U,K,J,`≲`,`\\lesssim`,!0),H(U,K,J,`⪅`,`\\lessapprox`,!0),H(U,K,J,`≊`,`\\approxeq`,!0),H(U,K,q,`⋖`,`\\lessdot`),H(U,K,J,`⋘`,`\\lll`,!0),H(U,K,J,`≶`,`\\lessgtr`,!0),H(U,K,J,`⋚`,`\\lesseqgtr`,!0),H(U,K,J,`⪋`,`\\lesseqqgtr`,!0),H(U,K,J,`≑`,`\\doteqdot`),H(U,K,J,`≓`,`\\risingdotseq`,!0),H(U,K,J,`≒`,`\\fallingdotseq`,!0),H(U,K,J,`∽`,`\\backsim`,!0),H(U,K,J,`⋍`,`\\backsimeq`,!0),H(U,K,J,`⫅`,`\\subseteqq`,!0),H(U,K,J,`⋐`,`\\Subset`,!0),H(U,K,J,`⊏`,`\\sqsubset`,!0),H(U,K,J,`≼`,`\\preccurlyeq`,!0),H(U,K,J,`⋞`,`\\curlyeqprec`,!0),H(U,K,J,`≾`,`\\precsim`,!0),H(U,K,J,`⪷`,`\\precapprox`,!0),H(U,K,J,`⊲`,`\\vartriangleleft`),H(U,K,J,`⊴`,`\\trianglelefteq`),H(U,K,J,`⊨`,`\\vDash`,!0),H(U,K,J,`⊪`,`\\Vvdash`,!0),H(U,K,J,`⌣`,`\\smallsmile`),H(U,K,J,`⌢`,`\\smallfrown`),H(U,K,J,`≏`,`\\bumpeq`,!0),H(U,K,J,`≎`,`\\Bumpeq`,!0),H(U,K,J,`≧`,`\\geqq`,!0),H(U,K,J,`⩾`,`\\geqslant`,!0),H(U,K,J,`⪖`,`\\eqslantgtr`,!0),H(U,K,J,`≳`,`\\gtrsim`,!0),H(U,K,J,`⪆`,`\\gtrapprox`,!0),H(U,K,q,`⋗`,`\\gtrdot`),H(U,K,J,`⋙`,`\\ggg`,!0),H(U,K,J,`≷`,`\\gtrless`,!0),H(U,K,J,`⋛`,`\\gtreqless`,!0),H(U,K,J,`⪌`,`\\gtreqqless`,!0),H(U,K,J,`≖`,`\\eqcirc`,!0),H(U,K,J,`≗`,`\\circeq`,!0),H(U,K,J,`≜`,`\\triangleq`,!0),H(U,K,J,`∼`,`\\thicksim`),H(U,K,J,`≈`,`\\thickapprox`),H(U,K,J,`⫆`,`\\supseteqq`,!0),H(U,K,J,`⋑`,`\\Supset`,!0),H(U,K,J,`⊐`,`\\sqsupset`,!0),H(U,K,J,`≽`,`\\succcurlyeq`,!0),H(U,K,J,`⋟`,`\\curlyeqsucc`,!0),H(U,K,J,`≿`,`\\succsim`,!0),H(U,K,J,`⪸`,`\\succapprox`,!0),H(U,K,J,`⊳`,`\\vartriangleright`),H(U,K,J,`⊵`,`\\trianglerighteq`),H(U,K,J,`⊩`,`\\Vdash`,!0),H(U,K,J,`∣`,`\\shortmid`),H(U,K,J,`∥`,`\\shortparallel`),H(U,K,J,`≬`,`\\between`,!0),H(U,K,J,`⋔`,`\\pitchfork`,!0),H(U,K,J,`∝`,`\\varpropto`),H(U,K,J,`◀`,`\\blacktriangleleft`),H(U,K,J,`∴`,`\\therefore`,!0),H(U,K,J,`∍`,`\\backepsilon`),H(U,K,J,`▶`,`\\blacktriangleright`),H(U,K,J,`∵`,`\\because`,!0),H(U,K,J,`⋘`,`\\llless`),H(U,K,J,`⋙`,`\\gggtr`),H(U,K,q,`⊲`,`\\lhd`),H(U,K,q,`⊳`,`\\rhd`),H(U,K,J,`≂`,`\\eqsim`,!0),H(U,G,J,`⋈`,`\\Join`),H(U,K,J,`≑`,`\\Doteq`,!0),H(U,K,q,`∔`,`\\dotplus`,!0),H(U,K,q,`∖`,`\\smallsetminus`),H(U,K,q,`⋒`,`\\Cap`,!0),H(U,K,q,`⋓`,`\\Cup`,!0),H(U,K,q,`⩞`,`\\doublebarwedge`,!0),H(U,K,q,`⊟`,`\\boxminus`,!0),H(U,K,q,`⊞`,`\\boxplus`,!0),H(U,K,q,`⋇`,`\\divideontimes`,!0),H(U,K,q,`⋉`,`\\ltimes`,!0),H(U,K,q,`⋊`,`\\rtimes`,!0),H(U,K,q,`⋋`,`\\leftthreetimes`,!0),H(U,K,q,`⋌`,`\\rightthreetimes`,!0),H(U,K,q,`⋏`,`\\curlywedge`,!0),H(U,K,q,`⋎`,`\\curlyvee`,!0),H(U,K,q,`⊝`,`\\circleddash`,!0),H(U,K,q,`⊛`,`\\circledast`,!0),H(U,K,q,`⋅`,`\\centerdot`),H(U,K,q,`⊺`,`\\intercal`,!0),H(U,K,q,`⋒`,`\\doublecap`),H(U,K,q,`⋓`,`\\doublecup`),H(U,K,q,`⊠`,`\\boxtimes`,!0),H(U,K,J,`⇢`,`\\dashrightarrow`,!0),H(U,K,J,`⇠`,`\\dashleftarrow`,!0),H(U,K,J,`⇇`,`\\leftleftarrows`,!0),H(U,K,J,`⇆`,`\\leftrightarrows`,!0),H(U,K,J,`⇚`,`\\Lleftarrow`,!0),H(U,K,J,`↞`,`\\twoheadleftarrow`,!0),H(U,K,J,`↢`,`\\leftarrowtail`,!0),H(U,K,J,`↫`,`\\looparrowleft`,!0),H(U,K,J,`⇋`,`\\leftrightharpoons`,!0),H(U,K,J,`↶`,`\\curvearrowleft`,!0),H(U,K,J,`↺`,`\\circlearrowleft`,!0),H(U,K,J,`↰`,`\\Lsh`,!0),H(U,K,J,`⇈`,`\\upuparrows`,!0),H(U,K,J,`↿`,`\\upharpoonleft`,!0),H(U,K,J,`⇃`,`\\downharpoonleft`,!0),H(U,G,J,`⊶`,`\\origof`,!0),H(U,G,J,`⊷`,`\\imageof`,!0),H(U,K,J,`⊸`,`\\multimap`,!0),H(U,K,J,`↭`,`\\leftrightsquigarrow`,!0),H(U,K,J,`⇉`,`\\rightrightarrows`,!0),H(U,K,J,`⇄`,`\\rightleftarrows`,!0),H(U,K,J,`↠`,`\\twoheadrightarrow`,!0),H(U,K,J,`↣`,`\\rightarrowtail`,!0),H(U,K,J,`↬`,`\\looparrowright`,!0),H(U,K,J,`↷`,`\\curvearrowright`,!0),H(U,K,J,`↻`,`\\circlearrowright`,!0),H(U,K,J,`↱`,`\\Rsh`,!0),H(U,K,J,`⇊`,`\\downdownarrows`,!0),H(U,K,J,`↾`,`\\upharpoonright`,!0),H(U,K,J,`⇂`,`\\downharpoonright`,!0),H(U,K,J,`⇝`,`\\rightsquigarrow`,!0),H(U,K,J,`⇝`,`\\leadsto`),H(U,K,J,`⇛`,`\\Rrightarrow`,!0),H(U,K,J,`↾`,`\\restriction`),H(U,G,Y,`‘`,"`"),H(U,G,Y,`$`,`\\$`),H(W,G,Y,`$`,`\\$`),H(W,G,Y,`$`,`\\textdollar`),H(U,G,Y,`%`,`\\%`),H(W,G,Y,`%`,`\\%`),H(U,G,Y,`_`,`\\_`),H(W,G,Y,`_`,`\\_`),H(W,G,Y,`_`,`\\textunderscore`),H(U,G,Y,`∠`,`\\angle`,!0),H(U,G,Y,`∞`,`\\infty`,!0),H(U,G,Y,`′`,`\\prime`),H(U,G,Y,`△`,`\\triangle`),H(U,G,Y,`Γ`,`\\Gamma`,!0),H(U,G,Y,`Δ`,`\\Delta`,!0),H(U,G,Y,`Θ`,`\\Theta`,!0),H(U,G,Y,`Λ`,`\\Lambda`,!0),H(U,G,Y,`Ξ`,`\\Xi`,!0),H(U,G,Y,`Π`,`\\Pi`,!0),H(U,G,Y,`Σ`,`\\Sigma`,!0),H(U,G,Y,`Υ`,`\\Upsilon`,!0),H(U,G,Y,`Φ`,`\\Phi`,!0),H(U,G,Y,`Ψ`,`\\Psi`,!0),H(U,G,Y,`Ω`,`\\Omega`,!0),H(U,G,Y,`A`,`Α`),H(U,G,Y,`B`,`Β`),H(U,G,Y,`E`,`Ε`),H(U,G,Y,`Z`,`Ζ`),H(U,G,Y,`H`,`Η`),H(U,G,Y,`I`,`Ι`),H(U,G,Y,`K`,`Κ`),H(U,G,Y,`M`,`Μ`),H(U,G,Y,`N`,`Ν`),H(U,G,Y,`O`,`Ο`),H(U,G,Y,`P`,`Ρ`),H(U,G,Y,`T`,`Τ`),H(U,G,Y,`X`,`Χ`),H(U,G,Y,`¬`,`\\neg`,!0),H(U,G,Y,`¬`,`\\lnot`),H(U,G,Y,`⊤`,`\\top`),H(U,G,Y,`⊥`,`\\bot`),H(U,G,Y,`∅`,`\\emptyset`),H(U,K,Y,`∅`,`\\varnothing`),H(U,G,DT,`α`,`\\alpha`,!0),H(U,G,DT,`β`,`\\beta`,!0),H(U,G,DT,`γ`,`\\gamma`,!0),H(U,G,DT,`δ`,`\\delta`,!0),H(U,G,DT,`ϵ`,`\\epsilon`,!0),H(U,G,DT,`ζ`,`\\zeta`,!0),H(U,G,DT,`η`,`\\eta`,!0),H(U,G,DT,`θ`,`\\theta`,!0),H(U,G,DT,`ι`,`\\iota`,!0),H(U,G,DT,`κ`,`\\kappa`,!0),H(U,G,DT,`λ`,`\\lambda`,!0),H(U,G,DT,`μ`,`\\mu`,!0),H(U,G,DT,`ν`,`\\nu`,!0),H(U,G,DT,`ξ`,`\\xi`,!0),H(U,G,DT,`ο`,`\\omicron`,!0),H(U,G,DT,`π`,`\\pi`,!0),H(U,G,DT,`ρ`,`\\rho`,!0),H(U,G,DT,`σ`,`\\sigma`,!0),H(U,G,DT,`τ`,`\\tau`,!0),H(U,G,DT,`υ`,`\\upsilon`,!0),H(U,G,DT,`ϕ`,`\\phi`,!0),H(U,G,DT,`χ`,`\\chi`,!0),H(U,G,DT,`ψ`,`\\psi`,!0),H(U,G,DT,`ω`,`\\omega`,!0),H(U,G,DT,`ε`,`\\varepsilon`,!0),H(U,G,DT,`ϑ`,`\\vartheta`,!0),H(U,G,DT,`ϖ`,`\\varpi`,!0),H(U,G,DT,`ϱ`,`\\varrho`,!0),H(U,G,DT,`ς`,`\\varsigma`,!0),H(U,G,DT,`φ`,`\\varphi`,!0),H(U,G,q,`∗`,`*`,!0),H(U,G,q,`+`,`+`),H(U,G,q,`−`,`-`,!0),H(U,G,q,`⋅`,`\\cdot`,!0),H(U,G,q,`∘`,`\\circ`,!0),H(U,G,q,`÷`,`\\div`,!0),H(U,G,q,`±`,`\\pm`,!0),H(U,G,q,`×`,`\\times`,!0),H(U,G,q,`∩`,`\\cap`,!0),H(U,G,q,`∪`,`\\cup`,!0),H(U,G,q,`∖`,`\\setminus`,!0),H(U,G,q,`∧`,`\\land`),H(U,G,q,`∨`,`\\lor`),H(U,G,q,`∧`,`\\wedge`,!0),H(U,G,q,`∨`,`\\vee`,!0),H(U,G,Y,`√`,`\\surd`),H(U,G,kT,`⟨`,`\\langle`,!0),H(U,G,kT,`∣`,`\\lvert`),H(U,G,kT,`∥`,`\\lVert`),H(U,G,TT,`?`,`?`),H(U,G,TT,`!`,`!`),H(U,G,TT,`⟩`,`\\rangle`,!0),H(U,G,TT,`∣`,`\\rvert`),H(U,G,TT,`∥`,`\\rVert`),H(U,G,J,`=`,`=`),H(U,G,J,`:`,`:`),H(U,G,J,`≈`,`\\approx`,!0),H(U,G,J,`≅`,`\\cong`,!0),H(U,G,J,`≥`,`\\ge`),H(U,G,J,`≥`,`\\geq`,!0),H(U,G,J,`←`,`\\gets`),H(U,G,J,`>`,`\\gt`,!0),H(U,G,J,`∈`,`\\in`,!0),H(U,G,J,``,`\\@not`),H(U,G,J,`⊂`,`\\subset`,!0),H(U,G,J,`⊃`,`\\supset`,!0),H(U,G,J,`⊆`,`\\subseteq`,!0),H(U,G,J,`⊇`,`\\supseteq`,!0),H(U,K,J,`⊈`,`\\nsubseteq`,!0),H(U,K,J,`⊉`,`\\nsupseteq`,!0),H(U,G,J,`⊨`,`\\models`),H(U,G,J,`←`,`\\leftarrow`,!0),H(U,G,J,`≤`,`\\le`),H(U,G,J,`≤`,`\\leq`,!0),H(U,G,J,`<`,`\\lt`,!0),H(U,G,J,`→`,`\\rightarrow`,!0),H(U,G,J,`→`,`\\to`),H(U,K,J,`≱`,`\\ngeq`,!0),H(U,K,J,`≰`,`\\nleq`,!0),H(U,G,jT,`\xA0`,`\\ `),H(U,G,jT,`\xA0`,`\\space`),H(U,G,jT,`\xA0`,`\\nobreakspace`),H(W,G,jT,`\xA0`,`\\ `),H(W,G,jT,`\xA0`,` `),H(W,G,jT,`\xA0`,`\\space`),H(W,G,jT,`\xA0`,`\\nobreakspace`),H(U,G,jT,``,`\\nobreak`),H(U,G,jT,``,`\\allowbreak`),H(U,G,AT,`,`,`,`),H(U,G,AT,`;`,`;`),H(U,K,q,`⊼`,`\\barwedge`,!0),H(U,K,q,`⊻`,`\\veebar`,!0),H(U,G,q,`⊙`,`\\odot`,!0),H(U,G,q,`⊕`,`\\oplus`,!0),H(U,G,q,`⊗`,`\\otimes`,!0),H(U,G,Y,`∂`,`\\partial`,!0),H(U,G,q,`⊘`,`\\oslash`,!0),H(U,K,q,`⊚`,`\\circledcirc`,!0),H(U,K,q,`⊡`,`\\boxdot`,!0),H(U,G,q,`△`,`\\bigtriangleup`),H(U,G,q,`▽`,`\\bigtriangledown`),H(U,G,q,`†`,`\\dagger`),H(U,G,q,`⋄`,`\\diamond`),H(U,G,q,`⋆`,`\\star`),H(U,G,q,`◃`,`\\triangleleft`),H(U,G,q,`▹`,`\\triangleright`),H(U,G,kT,`{`,`\\{`),H(W,G,Y,`{`,`\\{`),H(W,G,Y,`{`,`\\textbraceleft`),H(U,G,TT,`}`,`\\}`),H(W,G,Y,`}`,`\\}`),H(W,G,Y,`}`,`\\textbraceright`),H(U,G,kT,`{`,`\\lbrace`),H(U,G,TT,`}`,`\\rbrace`),H(U,G,kT,`[`,`\\lbrack`,!0),H(W,G,Y,`[`,`\\lbrack`,!0),H(U,G,TT,`]`,`\\rbrack`,!0),H(W,G,Y,`]`,`\\rbrack`,!0),H(U,G,kT,`(`,`\\lparen`,!0),H(U,G,TT,`)`,`\\rparen`,!0),H(W,G,Y,`<`,`\\textless`,!0),H(W,G,Y,`>`,`\\textgreater`,!0),H(U,G,kT,`⌊`,`\\lfloor`,!0),H(U,G,TT,`⌋`,`\\rfloor`,!0),H(U,G,kT,`⌈`,`\\lceil`,!0),H(U,G,TT,`⌉`,`\\rceil`,!0),H(U,G,Y,`\\`,`\\backslash`),H(U,G,Y,`∣`,`|`),H(U,G,Y,`∣`,`\\vert`),H(W,G,Y,`|`,`\\textbar`,!0),H(U,G,Y,`∥`,`\\|`),H(U,G,Y,`∥`,`\\Vert`),H(W,G,Y,`∥`,`\\textbardbl`),H(W,G,Y,`~`,`\\textasciitilde`),H(W,G,Y,`\\`,`\\textbackslash`),H(W,G,Y,`^`,`\\textasciicircum`),H(U,G,J,`↑`,`\\uparrow`,!0),H(U,G,J,`⇑`,`\\Uparrow`,!0),H(U,G,J,`↓`,`\\downarrow`,!0),H(U,G,J,`⇓`,`\\Downarrow`,!0),H(U,G,J,`↕`,`\\updownarrow`,!0),H(U,G,J,`⇕`,`\\Updownarrow`,!0),H(U,G,OT,`∐`,`\\coprod`),H(U,G,OT,`⋁`,`\\bigvee`),H(U,G,OT,`⋀`,`\\bigwedge`),H(U,G,OT,`⨄`,`\\biguplus`),H(U,G,OT,`⋂`,`\\bigcap`),H(U,G,OT,`⋃`,`\\bigcup`),H(U,G,OT,`∫`,`\\int`),H(U,G,OT,`∫`,`\\intop`),H(U,G,OT,`∬`,`\\iint`),H(U,G,OT,`∭`,`\\iiint`),H(U,G,OT,`∏`,`\\prod`),H(U,G,OT,`∑`,`\\sum`),H(U,G,OT,`⨂`,`\\bigotimes`),H(U,G,OT,`⨁`,`\\bigoplus`),H(U,G,OT,`⨀`,`\\bigodot`),H(U,G,OT,`∮`,`\\oint`),H(U,G,OT,`∯`,`\\oiint`),H(U,G,OT,`∰`,`\\oiiint`),H(U,G,OT,`⨆`,`\\bigsqcup`),H(U,G,OT,`∫`,`\\smallint`),H(W,G,ET,`…`,`\\textellipsis`),H(U,G,ET,`…`,`\\mathellipsis`),H(W,G,ET,`…`,`\\ldots`,!0),H(U,G,ET,`…`,`\\ldots`,!0),H(U,G,ET,`⋯`,`\\@cdots`,!0),H(U,G,ET,`⋱`,`\\ddots`,!0),H(U,G,Y,`⋮`,`\\varvdots`),H(W,G,Y,`⋮`,`\\varvdots`),H(U,G,wT,`ˊ`,`\\acute`),H(U,G,wT,`ˋ`,`\\grave`),H(U,G,wT,`¨`,`\\ddot`),H(U,G,wT,`~`,`\\tilde`),H(U,G,wT,`ˉ`,`\\bar`),H(U,G,wT,`˘`,`\\breve`),H(U,G,wT,`ˇ`,`\\check`),H(U,G,wT,`^`,`\\hat`),H(U,G,wT,`⃗`,`\\vec`),H(U,G,wT,`˙`,`\\dot`),H(U,G,wT,`˚`,`\\mathring`),H(U,G,DT,``,`\\@imath`),H(U,G,DT,``,`\\@jmath`),H(U,G,Y,`ı`,`ı`),H(U,G,Y,`ȷ`,`ȷ`),H(W,G,Y,`ı`,`\\i`,!0),H(W,G,Y,`ȷ`,`\\j`,!0),H(W,G,Y,`ß`,`\\ss`,!0),H(W,G,Y,`æ`,`\\ae`,!0),H(W,G,Y,`œ`,`\\oe`,!0),H(W,G,Y,`ø`,`\\o`,!0),H(W,G,Y,`Æ`,`\\AE`,!0),H(W,G,Y,`Œ`,`\\OE`,!0),H(W,G,Y,`Ø`,`\\O`,!0),H(W,G,wT,`ˊ`,`\\'`),H(W,G,wT,`ˋ`,"\\`"),H(W,G,wT,`ˆ`,`\\^`),H(W,G,wT,`˜`,`\\~`),H(W,G,wT,`ˉ`,`\\=`),H(W,G,wT,`˘`,`\\u`),H(W,G,wT,`˙`,`\\.`),H(W,G,wT,`¸`,`\\c`),H(W,G,wT,`˚`,`\\r`),H(W,G,wT,`ˇ`,`\\v`),H(W,G,wT,`¨`,`\\"`),H(W,G,wT,`˝`,`\\H`),H(W,G,wT,`◯`,`\\textcircled`);var MT={"--":!0,"---":!0,"``":!0,"''":!0};H(W,G,Y,`–`,`--`,!0),H(W,G,Y,`–`,`\\textendash`),H(W,G,Y,`—`,`---`,!0),H(W,G,Y,`—`,`\\textemdash`),H(W,G,Y,`‘`,"`",!0),H(W,G,Y,`‘`,`\\textquoteleft`),H(W,G,Y,`’`,`'`,!0),H(W,G,Y,`’`,`\\textquoteright`),H(W,G,Y,`“`,"``",!0),H(W,G,Y,`“`,`\\textquotedblleft`),H(W,G,Y,`”`,`''`,!0),H(W,G,Y,`”`,`\\textquotedblright`),H(U,G,Y,`°`,`\\degree`,!0),H(W,G,Y,`°`,`\\degree`),H(W,G,Y,`°`,`\\textdegree`,!0),H(U,G,Y,`£`,`\\pounds`),H(U,G,Y,`£`,`\\mathsterling`,!0),H(W,G,Y,`£`,`\\pounds`),H(W,G,Y,`£`,`\\textsterling`,!0),H(U,K,Y,`✠`,`\\maltese`),H(W,K,Y,`✠`,`\\maltese`);for(var NT=`0123456789/@."`,PT=0;PT<NT.length;PT++){var FT=NT.charAt(PT);H(U,G,Y,FT,FT)}for(var IT=`0123456789!@*()-=+";:?/.,`,LT=0;LT<IT.length;LT++){var RT=IT.charAt(LT);H(W,G,Y,RT,RT)}for(var zT=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,BT=0;BT<zT.length;BT++){var VT=zT.charAt(BT);H(U,G,DT,VT,VT),H(W,G,Y,VT,VT)}H(U,K,Y,`C`,`ℂ`),H(W,K,Y,`C`,`ℂ`),H(U,K,Y,`H`,`ℍ`),H(W,K,Y,`H`,`ℍ`),H(U,K,Y,`N`,`ℕ`),H(W,K,Y,`N`,`ℕ`),H(U,K,Y,`P`,`ℙ`),H(W,K,Y,`P`,`ℙ`),H(U,K,Y,`Q`,`ℚ`),H(W,K,Y,`Q`,`ℚ`),H(U,K,Y,`R`,`ℝ`),H(W,K,Y,`R`,`ℝ`),H(U,K,Y,`Z`,`ℤ`),H(W,K,Y,`Z`,`ℤ`),H(U,G,DT,`h`,`ℎ`),H(W,G,DT,`h`,`ℎ`);for(var HT,UT=0;UT<zT.length;UT++){var WT=zT.charAt(UT);HT=String.fromCharCode(55349,56320+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),HT=String.fromCharCode(55349,56372+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),HT=String.fromCharCode(55349,56424+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),HT=String.fromCharCode(55349,56580+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),HT=String.fromCharCode(55349,56684+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),HT=String.fromCharCode(55349,56736+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),HT=String.fromCharCode(55349,56788+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),HT=String.fromCharCode(55349,56840+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),HT=String.fromCharCode(55349,56944+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),UT<26&&(HT=String.fromCharCode(55349,56632+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT),HT=String.fromCharCode(55349,56476+UT),H(U,G,DT,WT,HT),H(W,G,Y,WT,HT))}HT=String.fromCharCode(55349,56668),H(U,G,DT,`k`,HT),H(W,G,Y,`k`,HT);for(var GT=0;GT<10;GT++){var KT=GT.toString();HT=String.fromCharCode(55349,57294+GT),H(U,G,DT,KT,HT),H(W,G,Y,KT,HT),HT=String.fromCharCode(55349,57314+GT),H(U,G,DT,KT,HT),H(W,G,Y,KT,HT),HT=String.fromCharCode(55349,57324+GT),H(U,G,DT,KT,HT),H(W,G,Y,KT,HT),HT=String.fromCharCode(55349,57334+GT),H(U,G,DT,KT,HT),H(W,G,Y,KT,HT)}for(var qT=`ÐÞþ`,JT=0;JT<qT.length;JT++){var YT=qT.charAt(JT);H(U,G,DT,YT,YT),H(W,G,Y,YT,YT)}var XT={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},ZT={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},QT={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},$T={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},eE={mathClass:``,textClass:``,font:``},tE={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},nE={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},rE={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},iE={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},aE={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},oE={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},sE={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},cE=[XT,XT,ZT,ZT,QT,QT,$T,eE,eE,eE,tE,tE,nE,nE,rE,rE,iE,iE,aE,aE,oE,oE,eE,eE,sE,sE],lE=[XT,eE,iE,aE,sE],uE=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return cE[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return lE[Math.floor((r-120782)/10)];if(r===120485||r===120486)return cE[0];if(120486<r&&r<120782)return eE;throw new B(`Unsupported character: `+e)},dE=function(e,t,n){if(CT[n][e]){var r=CT[n][e].replace;r&&(e=r)}return{value:e,metrics:bT(e,t,n)}},fE=function(e,t,n,r,i){var a=dE(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new lT(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new lT(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},pE=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&dE(e,`Main-Bold`,t).metrics?fE(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||CT[t][e].font===`main`?fE(e,`Main-Regular`,t,n,r):fE(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},mE=function(e,t,n){return n!==`textord`&&dE(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},hE=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=uE(i);f=m.font,p=m[r+`Class`]}if(f)return fE(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=mE(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=OE[o].fontName,g=[o]):(h=DE(s,c,l),g=[s,c,l]);if(dE(i,h,r).metrics)return fE(i,h,r,t,a.concat(g));if(MT.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(fE(i[y],h,r,t,a.concat(g)));return SE(v)}}if(n===`mathord`)return fE(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=CT[r][i]&&CT[r][i].font;if(b===`ams`)return fE(i,DE(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return fE(i,DE(`textrm`,c,l),r,t,a.concat(c,l));var x=DE(b,c,l);return fE(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},gE=(e,t)=>{if($w(e.classes)!==$w(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},_E=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof lT&&r instanceof lT&&gE(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},vE=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},X=function(e,t,n,r){var i=new aT(e,t,n,r);return vE(i),i},yE=(e,t,n,r)=>new aT(e,t,n,r),bE=function(e,t,n){var r=X([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=V(r.height),r.maxFontSize=1,r},xE=function(e,t,n,r){var i=new oT(e,t,n,r);return vE(i),i},SE=function(e){var t=new Jw(e);return vE(t),t},CE=function(e,t){return e instanceof Jw?X([],[e],t):e},wE=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},TE=function(e,t){for(var{children:n,depth:r}=wE(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=X([`pstrut`],[]);c.style.height=V(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=X(g,[c,h],void 0,_);v.style.top=V(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=X([`vlist`],l);y.style.height=V(d);var b;if(u<0){var x=X([`vlist`],[X([],[])]);x.style.height=V(-u),b=[X([`vlist-r`],[y,X([`vlist-s`],[new lT(``)])]),X([`vlist-r`],[x])]}else b=[X([`vlist-r`],[y])];var S=X([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},EE=(e,t)=>{var n=X([`mspace`],[],t),r=Qw(e,t);return n.style.marginRight=V(r),n},DE=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},OE={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},kE={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},AE=function(e,t){var[n,r,i]=kE[e],a=yE([`overlay`],[new uT([new dT(n)],{width:V(r),height:V(i),style:`width:`+V(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=V(i),a.style.width=V(r),a},jE={number:3,unit:`mu`},ME={number:4,unit:`mu`},NE={number:5,unit:`mu`},PE={mord:{mop:jE,mbin:ME,mrel:NE,minner:jE},mop:{mord:jE,mop:jE,mrel:NE,minner:jE},mbin:{mord:ME,mop:ME,mopen:ME,minner:ME},mrel:{mord:NE,mop:NE,mopen:NE,minner:NE},mopen:{},mclose:{mop:jE,mbin:ME,mrel:NE,minner:jE},mpunct:{mord:jE,mop:jE,mrel:NE,mopen:jE,mclose:jE,mpunct:jE,minner:jE},minner:{mord:jE,mop:jE,mbin:ME,mrel:NE,mopen:jE,mpunct:jE,minner:jE}},FE={mord:{mop:jE},mop:{mord:jE,mop:jE},mbin:{},mrel:{},mopen:{},mclose:{mop:jE},mpunct:{},minner:{mop:jE}},IE={},LE={},RE={};function Z(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)IE[n[c]]=s;t&&(a&&(LE[t]=a),o&&(RE[t]=o))}function zE(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Z({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var BE=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},VE=function(e){return e.type===`ordgroup`?e.body:[e]},HE=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),UE=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),WE={display:kw.DISPLAY,text:kw.TEXT,script:kw.SCRIPT,scriptscript:kw.SCRIPTSCRIPT},GE={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},KE=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=QE(e[a],t);if(o instanceof Jw){var s=o.children;i.push(...s)}else i.push(o)}if(_E(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(WE[l.style]))}var u=X([r[0]||`leftmost`],[],t),d=X([r[1]||`rightmost`],[],t),f=n===`root`;return qE(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&UE.has(r)?t.classes[0]=`mord`:r===`mbin`&&HE.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),qE(i,(e,t)=>{var n=XE(t),r=XE(e),i=n&&r?e.hasClass(`mtight`)?FE[n]?.[r]:PE[n]?.[r]:null;if(i)return EE(i,c)},{node:u},d,f),i},qE=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=JE(o);if(s){qE(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=X([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},JE=function(e){return e instanceof Jw||e instanceof oT||e instanceof aT&&e.hasClass(`enclosing`)?e:null},YE=function(e,t){var n=JE(e);if(n){var r=n.children;if(r.length){if(t===`right`)return YE(r[r.length-1],`right`);if(t===`left`)return YE(r[0],`left`)}}return e},XE=function(e,t){return e?(t&&(e=YE(e,t)),GE[e.classes[0]]||null):null},ZE=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return X(t.concat(n))},QE=function(e,t,n){if(!e)return X();if(LE[e.type]){var r=LE[e.type](e,t);if(n&&t.size!==n.size){r=X(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new B(`Got group of unknown type: '`+e.type+`'`)};function $E(e,t){var n=X([`base`],e,t),r=X([`strut`]);return r.style.height=V(n.height+n.depth),n.depth&&(r.style.verticalAlign=V(-n.depth)),n.children.unshift(r),n}function eD(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=KE(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push($E(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push($E(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push($E(o,t));var l;n?(l=$E(KE(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=X([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=V(u.height+u.depth),u.depth&&(d.style.verticalAlign=V(-u.depth))}return u}function tD(e){return new Jw(e)}var Q=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=$w(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof nD&&this.children[n+1]instanceof nD){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof nD;)r+=this.children[++n].toText();e.appendChild(new nD(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=rw(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+rw($w(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},nD=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return rw(this.toText())}toText(){return this.text}},rD=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?` `:e>=-.05556&&e<=-.05555?` `:e>=-.1667&&e<=-.1666?` `:e>=-.2223&&e<=-.2222?` `:e>=-.2778&&e<=-.2777?` `:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,V(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+V(this.width)+`"/>`}toText(){return this.character?this.character:` `}},iD=new Set([`\\imath`,`\\jmath`]),aD=new Set([`mrow`,`mtable`]),oD=function(e,t,n){return CT[t][e]&&CT[t][e].replace&&e.charCodeAt(0)!==55349&&!(MT.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=CT[t][e].replace),new nD(e)},sD=function(e){return e.length===1?e[0]:new Q(`mrow`,e)},cD={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},lD=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=cD[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(iD.has(a))return null;if(CT[r][a]){var o=CT[r][a].replace;o&&(a=o)}var s=OE[n].fontName;return bT(a,s,r)?OE[n].variant:null};function uD(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof nD&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof nD&&n.text===`,`}return!1}var dD=function(e,t,n){if(e.length===1){var r=pD(e[0],t);return n&&r instanceof Q&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=pD(e[o],t);if(s instanceof Q&&a instanceof Q){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}if(uD(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&uD(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||uD(a))){var c=s.children[0];c instanceof Q&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof nD&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof nD&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},fD=function(e,t,n){return sD(dD(e,t,n))},pD=function(e,t){if(!e)return new Q(`mrow`);if(RE[e.type])return RE[e.type](e,t);throw new B(`Got group of unknown type: '`+e.type+`'`)};function mD(e,t,n,r,i){var a=dD(e,n),o=a.length===1&&a[0]instanceof Q&&aD.has(a[0].type)?a[0]:new Q(`mrow`,a),s=new Q(`annotation`,[new nD(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Q(`math`,[new Q(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),X([i?`katex`:`katex-mathml`],[c])}var hD=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],gD=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],_D=function(e,t){return t.size<2?e:hD[e-1][t.size-1]},vD=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=gD[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:_D(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:gD[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=_D(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=ST(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};vD.BASESIZE=6;var yD=function(e){return new vD({style:e.displayMode?kw.DISPLAY:kw.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},bD=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=X(n,[e])}return e},xD=function(e,t,n){var r=yD(n),i;return n.output===`mathml`?mD(e,t,r,n.displayMode,!0):(i=n.output===`html`?X([`katex`],[eD(e,r)]):X([`katex`],[mD(e,t,r,n.displayMode,!1),eD(e,r)]),bD(i,n))},SD=function(e,t,n){return bD(X([`katex`],[eD(e,yD(n))]),n)},CD={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},wD=function(e){var t=new Q(`mo`,[new nD(CD[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},TD={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},ED=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),DD=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(ED.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:yE([],[new uT([new dT(o)],{width:`100%`,height:V(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=TD[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
321
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new uT([new dT(d[v])],{width:`400em`,height:V(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=yE([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=V(m),l.push(b)}return{span:X([`stretchy`],l,t),minWidth:f,height:m}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=V(a),i>0&&(r.style.minWidth=V(i)),r},OD=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=X([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new fT({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new fT({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=yE([],[new uT(c,{width:`100%`,height:V(o)})],i)}return a.height=o,a.style.height=V(o),a},kD={bin:1,close:1,inner:1,open:1,punct:1,rel:1},AD={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function jD(e){return e in kD}function MD(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function ND(e){var t=PD(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function PD(e){return e&&(e.type===`atom`||AD.hasOwnProperty(e.type))?e:null}var FD=e=>{if(e instanceof lT)return e;if(hT(e)&&e.children.length===1)return FD(e.children[0])},ID=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=MD(e.base,`accent`),n=r.base,e.base=n,i=mT(QE(e,t)),e.base=r):(r=MD(e,`accent`),n=r.base);var a=QE(n,t.havingCrampedStyle()),o=r.isShifty&&ow(n),s=0;o&&(s=FD(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=DD(r,t),u=TE({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+V(2*s)+`)`,marginLeft:V(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=AE(`vec`,t),f=kE.vec[1]):(d=hE({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=pT(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=X([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=V(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=TE({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=X([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},LD=(e,t)=>{var n=e.isStretchy?wD(e.label):new Q(`mo`,[oD(e.label,e.mode)]),r=new Q(`mover`,[pD(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},RD=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Z({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=BE(t[0]),r=!RD.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:ID,mathmlBuilder:LD}),Z({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:ID,mathmlBuilder:LD}),Z({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=QE(e.base,t),r=DD(e,t),i=e.label===`\\utilde`?.12:0;return X([`mord`,`accentunder`],[TE({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=wD(e.label),r=new Q(`munder`,[pD(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var zD=e=>{var t=new Q(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Z({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=CE(QE(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=CE(QE(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=DD(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=TE({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=TE({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return X([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=wD(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=zD(pD(e.body,t));r=e.below?new Q(`munderover`,[n,zD(pD(e.below,t)),i]):new Q(`mover`,[n,i])}else e.below?r=new Q(`munder`,[n,zD(pD(e.below,t))]):(r=zD(),r=new Q(`mover`,[n,r]));return r}});function BD(e,t){var n=KE(e.body,t,!0);return X([e.mclass],n,t)}function VD(e,t){var n,r=dD(e.body,t);return e.mclass===`minner`?n=new Q(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Q(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Q(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}Z({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:VE(i),isCharacterBox:ow(i)}},htmlBuilder:BD,mathmlBuilder:VD});var HD=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};Z({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:HD(t[0]),body:VE(t[1]),isCharacterBox:ow(t[1])}}}),Z({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:HD(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:VE(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:ow(c)}},htmlBuilder:BD,mathmlBuilder:VD}),Z({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:HD(t[0]),body:VE(t[0])}},htmlBuilder(e,t){var n=KE(e.body,t,!0),r=X([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new Q(`mstyle`,dD(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var UD={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},WD=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),GD=e=>e.type===`textord`&&e.text===`@`,KD=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function qD(e,t,n){var r=UD[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function JD(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new B(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=WD(),c=0;c<o.length;c++)if(!GD(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=ND(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l)){if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(KD(o[p],l)){f=!1,c=p;break}if(GD(o[p]))throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new B(`Expected one of "<>AV=|." after @`,o[c])}var m={type:`styling`,body:[qD(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=WD()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}Z({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=CE(QE(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=V(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Q(`mrow`,[pD(e.label,t)]);return n=new Q(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Q(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Z({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=CE(QE(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Q(`mrow`,[pD(e.fragment,t)])}}),Z({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=MD(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=MD(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new B(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new B(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var YD=(e,t)=>SE(KE(e.body,t.withColor(e.color),!1)),XD=(e,t)=>{var n=new Q(`mstyle`,dD(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};Z({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=MD(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:VE(i)}},htmlBuilder:YD,mathmlBuilder:XD}),Z({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=MD(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:YD,mathmlBuilder:XD}),Z({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&MD(i,`size`).value}},htmlBuilder(e,t){var n=X([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=V(Qw(e.size,t)))),n},mathmlBuilder(e,t){var n=new Q(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,V(Qw(e.size,t)))),n}});var ZD={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},QD=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new B(`Expected a control sequence`,e);return t},$D=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},eO=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Z({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(ZD[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=ZD[r.text]),MD(t.parseFunction(),`internal`);throw new B(`Invalid token after macro prefix`,r)}}),Z({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new B(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new B(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new B(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new B(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===ZD[n]),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=QD(t.gullet.popToken());return t.gullet.consumeSpaces(),eO(t,r,$D(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=QD(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return eO(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var tO=function(e,t,n){var r=bT(CT.math[e]&&CT.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},nO=function(e,t,n,r){var i=n.havingBaseStyle(t),a=X(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},rO=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=V(i),e.height-=i,e.depth+=i},iO=function(e,t,n,r,i,a){var o=nO(fE(e,`Main-Regular`,i,r),t,r,a);return n&&rO(o,r,t),o},aO=function(e,t,n,r){return fE(e,`Size`+t+`-Regular`,n,r)},oO=function(e,t,n,r,i,a){var o=aO(e,t,i,r),s=nO(X([`delimsizing`,`size`+t],[o],r),kw.TEXT,r,a);return n&&rO(s,r,kw.TEXT),s},sO=function(e,t,n){return{type:`elem`,elem:X([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[X([],[fE(e,t,n)])])}},cO=function(e,t,n){var r=gT[`Size4-Regular`][e.charCodeAt(0)]?gT[`Size4-Regular`][e.charCodeAt(0)][4]:gT[`Size1-Regular`][e.charCodeAt(0)][4],i=yE([],[new uT([new dT(`inner`,Ww(e,Math.round(1e3*t)))],{width:V(r),height:V(t),style:`width:`+V(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=V(t),i.style.width=V(r),{type:`elem`,elem:i}},lO=.008,uO={type:`kern`,size:-1*lO},dO=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),fO=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),pO=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):dO.has(e)?(c=`∣`,u=`vert`,d=333):fO.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=tO(o,f,i),m=p.height+p.depth,h=tO(c,f,i),g=h.height+h.depth,_=tO(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=tO(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,ee=r.fontMetrics().axisHeight;n&&(ee*=r.sizeMultiplier);var w=C/2-ee,T=[];if(u.length>0){var E=C-m-v,te=Math.round(C*1e3),D=Kw(u,Math.round(E*1e3)),ne=new dT(u,D),re=V(d/1e3),ie=V(te/1e3),ae=yE([],[new uT([ne],{width:re,height:ie,viewBox:`0 0 `+d+` `+te})],r);ae.height=te/1e3,ae.style.width=re,ae.style.height=ie,T.push({type:`elem`,elem:ae})}else{if(T.push(sO(l,f,i)),T.push(uO),s===null){var oe=C-m-v+2*lO;T.push(cO(c,oe,r))}else{var O=(C-m-v-y)/2+2*lO;T.push(cO(c,O,r)),T.push(uO),T.push(sO(s,f,i)),T.push(uO),T.push(cO(c,O,r))}T.push(uO),T.push(sO(o,f,i))}var k=r.havingBaseStyle(kw.TEXT);return nO(X([`delimsizing`,`mult`],[TE({positionType:`bottom`,positionData:w,children:T})],k),kw.TEXT,r,a)},mO=80,hO=.08,gO=function(e,t,n,r,i){return yE([`hide-tail`],[new uT([new dT(e,Uw(e,r,n))],{width:`400em`,height:V(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},_O=function(e,t){var n=t.havingBaseSizing(),r=DO(`\\surd`,e*n.sizeMultiplier,TO,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+mO,e<1?i=1:e<1.4&&(i=.7),s=(1+a+hO)/i,c=(1+a)/i,o=gO(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+mO)*xO[r.size],c=(xO[r.size]+a)/i,s=(xO[r.size]+a+hO)/i,o=gO(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+hO,c=e+a,l=Math.floor(1e3*e+a)+mO,o=gO(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=V(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},vO=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),yO=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),bO=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),xO=[0,1.2,1.8,2.4,3],SO=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),vO.has(e)||bO.has(e))return oO(e,t,!1,n,r,i);if(yO.has(e))return pO(e,xO[t],!1,n,r,i);throw new B(`Illegal delimiter: '`+e+`'`)},CO=[{type:`small`,style:kw.SCRIPTSCRIPT},{type:`small`,style:kw.SCRIPT},{type:`small`,style:kw.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],wO=[{type:`small`,style:kw.SCRIPTSCRIPT},{type:`small`,style:kw.SCRIPT},{type:`small`,style:kw.TEXT},{type:`stack`}],TO=[{type:`small`,style:kw.SCRIPTSCRIPT},{type:`small`,style:kw.SCRIPT},{type:`small`,style:kw.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],EO=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},DO=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=tO(e,EO(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},OO=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=bO.has(e)?CO:vO.has(e)?TO:wO,s=DO(e,t,o,r);return s.type===`small`?iO(e,s.style,n,r,i,a):s.type===`large`?oO(e,s.size,n,r,i,a):pO(e,t,n,r,i,a)},kO=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return OO(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},AO={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},jO=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function MO(e){return`isMiddle`in e}function NO(e,t){var n=PD(e);if(n&&jO.has(n.text))return n;throw n?new B(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new B(`Invalid delimiter type '`+e.type+`'`,e)}Z({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=NO(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:AO[e.funcName].size,mclass:AO[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?X([e.mclass]):SO(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(oD(e.delim,e.mode));var n=new Q(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=V(xO[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function PO(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Z({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new B(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:NO(t[0],e).text,color:n}}}),Z({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=NO(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=MD(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{PO(e);for(var n=KE(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];MO(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?ZE(t,[`mopen`]):kO(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(MO(u)){var d=u.isMiddle;n[l]=kO(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=ZE(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=kO(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),X([`minner`],n,t)},mathmlBuilder:(e,t)=>{PO(e);var n=dD(e.body,t);if(e.left!==`.`){var r=new Q(`mo`,[oD(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Q(`mo`,[oD(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return sD(n)}}),Z({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=NO(t[0],e);if(!e.parser.leftrightDepth)throw new B(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=ZE(t,[]):(n=SO(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new Q(`mo`,[e.delim===`\\vert`||e.delim===`|`?oD(`|`,`text`):oD(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var FO=(e,t)=>{var n=CE(QE(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=ow(e.body);if(r===`sout`)a=X([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Qw({number:.6,unit:`pt`},t),l=Qw({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=V(d/2+c);var f=Math.floor(1e3*d*i);a=yE([`hide-tail`],[new uT([new dT(`phase`,Vw(f))],{width:`400em`,height:V(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=V(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=OD(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=V(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=V(h),a.style.borderRightWidth=V(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=TE({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=TE({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?X([`mord`,`cancel-lap`],[g],t):X([`mord`],[g],t)},IO=(e,t)=>{var n,r=new Q(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[pD(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+V(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};Z({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=MD(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:FO,mathmlBuilder:IO}),Z({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=MD(t[0],`color-token`).color,o=MD(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:FO,mathmlBuilder:IO}),Z({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),Z({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:FO,mathmlBuilder:IO}),Z({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:FO,mathmlBuilder:IO}),Z({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var LO={};function RO(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)LO[n[c]]=s;a&&(LE[t]=a),o&&(RE[t]=o)}var zO={};function $(e,t){zO[e]=t}var BO=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},VO=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,BO.range(this,t))}};function HO(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var UO=e=>{if(!e.parser.settings.displayMode)throw new B(`{`+e.envName+`} can be used only in display mode.`)},WO=new Set([`gather`,`gather*`]);function GO(e){if(!e.includes(`ed`))return!e.includes(`*`)}function KO(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new B(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new VO(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(HO(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new B(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var ee=void 0;e.gullet.future().text!==` `&&(ee=e.parseSizeGroup(!0)),g.push(ee?ee.value:null),b(),_.push(HO(e)),m=[],h.push(m),y()}else throw new B(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function qO(e){return e.slice(0,1)===`d`?`display`:`text`}var JO=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(kw.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Qw({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=QE(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var ee=e.rowGaps[n],w=0;ee&&(w=Qw(ee,t),w>0&&(w+=g,x<w&&(x=w),w=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+w,s[n]=S,v(a[n+1])}var T=_/2+t.fontMetrics().axisHeight,E=e.cols||[],te=[],D,ne,re=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var ie=s[n],ae=ie.pos-T,oe=e.tags[n],O=void 0;O=oe===!0?X([`eqn-num`],[],t):oe===!1?X([],[],t):X([],KE(oe,t,!0),t),O.depth=ie.depth,O.height=ie.height,re.push({type:`elem`,elem:O,shift:ae})}for(r=0,ne=0;r<o||ne<E.length;++r,++ne){for(var k=E[ne],se=!0;(ce=k)?.type===`separator`;){var ce;if(se||(D=X([`arraycolsep`],[]),D.style.width=V(t.fontMetrics().doubleRuleSep),te.push(D)),k.separator===`|`||k.separator===`:`){var le=k.separator===`|`?`solid`:`dashed`,ue=X([`vertical-separator`],[],t);ue.style.height=V(_),ue.style.borderRightWidth=V(l),ue.style.borderRightStyle=le,ue.style.margin=`0 `+V(-l/2);var A=_-T;A&&(ue.style.verticalAlign=V(-A)),te.push(ue)}else throw new B(`Invalid separator type: `+k.separator);ne++,k=E[ne],se=!1}if(!(r>=o)){var de=void 0;(r>0||e.hskipBeforeAndAfter)&&(de=k?.pregap??d,de!==0&&(D=X([`arraycolsep`],[]),D.style.width=V(de),te.push(D)));var fe=[];for(n=0;n<i;++n){var pe=s[n],me=pe.cells[r];if(me){var he=pe.pos-T;me.depth=pe.depth,me.height=pe.height,fe.push({type:`elem`,elem:me,shift:he})}}var ge=TE({positionType:`individualShift`,children:fe}),_e=X([`col-align-`+(k?.align||`c`)],[ge]);te.push(_e),(r<o-1||e.hskipBeforeAndAfter)&&(de=k?.postgap??d,de!==0&&(D=X([`arraycolsep`],[]),D.style.width=V(de),te.push(D)))}}var ve=X([`mtable`],te);if(c.length>0){for(var ye=bE(`hline`,t,l),j=bE(`hdashline`,t,l),be=[{type:`elem`,elem:ve,shift:0}];c.length>0;){var xe=c.pop(),Se=xe.pos-T;xe.isDashed?be.push({type:`elem`,elem:j,shift:Se}):be.push({type:`elem`,elem:ye,shift:Se})}ve=TE({positionType:`individualShift`,children:be})}if(re.length===0)return X([`mord`],[ve],t);var Ce=X([`tag`],[TE({positionType:`individualShift`,children:re})],t);return SE([ve,Ce])},YO={c:`center `,l:`left `,r:`right `},XO=function(e,t){for(var n=[],r=new Q(`mtd`,[],[`mtr-glue`]),i=new Q(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new Q(`mtd`,[pD(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new Q(`mtr`,s))}var l=new Q(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,V(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=YO[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,ee=e.hLinesBeforeRow;d+=ee[0].length>0?`left `:``,d+=ee[ee.length-1].length>0?`right `:``;for(var w=1;w<ee.length-1;w++)C+=ee[w].length===0?`none `:ee[w][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new Q(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new Q(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},ZO=function(e,t){e.envName.includes(`ed`)||UO(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=KO(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:GO(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=MD(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)MD(MD(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new B(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};RO({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(PD(t[0])?[t[0]]:MD(t[0],`ordgroup`).body).map(function(e){var t=ND(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new B(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return KO(e.parser,r,qO(e.envName))},htmlBuilder:JO,mathmlBuilder:XO}),RO({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new B(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=KO(e.parser,r,qO(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:JO,mathmlBuilder:XO}),RO({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=KO(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:JO,mathmlBuilder:XO}),RO({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(PD(t[0])?[t[0]]:MD(t[0],`ordgroup`).body).map(function(e){var t=ND(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new B(`Unknown column alignment: `+t,e)});if(n.length>1)throw new B(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=KO(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new B(`{subarray} can contain only one column`);return i},htmlBuilder:JO,mathmlBuilder:XO}),RO({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=KO(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},qO(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:JO,mathmlBuilder:XO}),RO({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:ZO,htmlBuilder:JO,mathmlBuilder:XO}),RO({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){WO.has(e.envName)&&UO(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:GO(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return KO(e.parser,t,`display`)},htmlBuilder:JO,mathmlBuilder:XO}),RO({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:ZO,htmlBuilder:JO,mathmlBuilder:XO}),RO({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){UO(e);var t={autoTag:GO(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return KO(e.parser,t,`display`)},htmlBuilder:JO,mathmlBuilder:XO}),RO({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return UO(e),JD(e.parser)},htmlBuilder:JO,mathmlBuilder:XO}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),Z({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new B(e.funcName+` valid only within array environment`)}});var QO=LO;Z({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new B(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=MD(i.body[o],`textord`).text;if(r===`\\begin`){if(!QO.hasOwnProperty(a))throw new B(`No such environment: `+a,i);var s=QO[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=MD(n.parseFunction(),`environment`);if(p.name!==a)throw new B(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var $O=(e,t)=>{var n=e.font,r=t.withFont(n);return QE(e.body,r)},ek=(e,t)=>{var n=e.font,r=t.withFont(n);return pD(e.body,r)},tk={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};Z({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=BE(t[0]),a=r;return a in tk&&(a=tk[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:$O,mathmlBuilder:ek}),Z({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:HD(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:ow(r)}}}),Z({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:$O,mathmlBuilder:ek});var nk=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=QE(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=QE(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Qw(e.barSize,t),u=bE(`frac-line`,t,d)):u=bE(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===kw.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=TE({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=TE({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===kw.DISPLAY.size?t.fontMetrics().delim1:n.size===kw.SCRIPTSCRIPT.size?t.havingStyle(kw.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?ZE(t,[`mopen`]):OO(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?X([]):e.rightDelim==null?ZE(t,[`mclose`]):OO(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return X([`mord`].concat(a.sizingClasses(t)),[x,X([`mfrac`],[g]),S],t)},rk=(e,t)=>{var n=new Q(`mfrac`,[pD(e.numer,t),pD(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Qw(e.barSize,t);n.setAttribute(`linethickness`,V(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Q(`mo`,[new nD(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Q(`mo`,[new nD(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return sD(i)}return n},ik=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Z({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),ik({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:nk,mathmlBuilder:rk}),Z({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var ak=[`display`,`text`,`script`,`scriptscript`],ok=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Z({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=BE(t[0]),o=a.type===`atom`&&a.family===`open`?ok(a.text):null,s=BE(t[1]),c=s.type===`atom`&&s.family===`close`?ok(s.text):null,l=MD(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=MD(p.body[0],`textord`);f=ak[Number(m.text)]}}else p=MD(p,`textord`),f=ak[Number(p.text)];return ik({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Z({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:MD(t[0],`size`).value,token:i}}}),Z({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=MD(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var sk=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?QE(e.sup,t.havingStyle(n.sup()),t):QE(e.sub,t.havingStyle(n.sub()),t),i=MD(e.base,`horizBrace`)):i=MD(e,`horizBrace`);var a=QE(i.base,t.havingBaseStyle(kw.DISPLAY)),o=DD(i,t),s=i.isOver?TE({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):TE({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=X([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?TE({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):TE({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return X([`minner`,i.isOver?`mover`:`munder`],[s],t)};Z({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:sk,mathmlBuilder:(e,t)=>{var n=wD(e.label);return new Q(e.isOver?`mover`:`munder`,[pD(e.base,t),n])}}),Z({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=MD(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:VE(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=KE(e.body,t,!1);return xE(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=fD(e.body,t);return n instanceof Q||(n=new Q(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Z({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=MD(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:VE(s)}}}),Z({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:VE(t[0])}},htmlBuilder(e,t){return SE(KE(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new Q(`mrow`,dD(e.body,t.withFont(``)))}}),Z({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=MD(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new B(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:VE(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=KE(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=X(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>fD(e.body,t)}),Z({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:VE(t[0]),mathml:VE(t[1])}},htmlBuilder:(e,t)=>SE(KE(e.html,t,!1)),mathmlBuilder:(e,t)=>fD(e.mathml,t)});var ck=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new B(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!Zw(n))throw new B(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Z({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=MD(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=ck(d);break;case`height`:a=ck(d);break;case`totalheight`:o=ck(d);break;default:throw new B(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=MD(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=Qw(e.height,t),r=0;e.totalheight.number>0&&(r=Qw(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Qw(e.width,t));var a={height:V(n+r)};i>0&&(a.width=V(i)),r>0&&(a.verticalAlign=V(-r));var o=new sT(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Q(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Qw(e.height,t),i=0;if(e.totalheight.number>0&&(i=Qw(e.totalheight,t)-r,n.setAttribute(`valign`,V(-i))),n.setAttribute(`height`,V(r+i)),e.width.number>0){var a=Qw(e.width,t);n.setAttribute(`width`,V(a))}return n.setAttribute(`src`,e.src),n}}),Z({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=MD(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return EE(e.dimension,t)},mathmlBuilder(e,t){return new rD(Qw(e.dimension,t))}}),Z({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=X([],[QE(e.body,t)]),n=X([`inner`],[n],t)):n=X([`inner`],[QE(e.body,t)]);var r=X([`fix`],[]),i=X([e.alignment],[n,r],t),a=X([`strut`]);return a.style.height=V(i.height+i.depth),i.depth&&(a.style.verticalAlign=V(-i.depth)),i.children.unshift(a),i=X([`thinbox`],[i],t),X([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[pD(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),Z({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),Z({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new B(`Mismatched `+e.funcName)}});var lk=(e,t)=>{switch(t.style.size){case kw.DISPLAY.size:return e.display;case kw.TEXT.size:return e.text;case kw.SCRIPT.size:return e.script;case kw.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Z({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:VE(t[0]),text:VE(t[1]),script:VE(t[2]),scriptscript:VE(t[3])}},htmlBuilder:(e,t)=>SE(KE(lk(e,t),t,!1)),mathmlBuilder:(e,t)=>fD(lk(e,t),t)});var uk=(e,t,n,r,i,a,o)=>{e=X([],[e]);var s=n&&ow(n),c,l;if(t){var u=QE(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=QE(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=TE({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:V(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:V(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=TE({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:V(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=TE({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:V(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=X([`mspace`],[],r);m.style.marginRight=V(a),p.unshift(m)}return X([`mop`,`op-limits`],p,r)},dk=new Set([`\\smallint`]),fk=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=MD(e.base,`op`),i=!0):a=MD(e,`op`);var o=t.style,s=!1;o.size===kw.DISPLAY.size&&a.symbol&&!dk.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=fE(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=AE(d+`Size`+(s?`2`:`1`),t);c=TE({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=KE(a.body,t,!0);p.length===1&&p[0]instanceof lT?(c=p[0],c.classes[0]=`mop`):c=X([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(pE(a.name[h],a.mode,t));c=X([`mop`],m,t)}var g=0,_=0;return(c instanceof lT||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?uk(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=V(g)),c)},pk=(e,t)=>{var n;if(e.symbol)n=new Q(`mo`,[oD(e.name,e.mode)]),dk.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Q(`mo`,dD(e.body,t));else{n=new Q(`mi`,[new nD(e.name.slice(1))]);var r=new Q(`mo`,[oD(``,`text`)]);n=e.parentIsSupSub?new Q(`mrow`,[n,r]):tD([n,r])}return n},mk={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Z({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=mk[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:fk,mathmlBuilder:pk}),Z({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:VE(r)}},htmlBuilder:fk,mathmlBuilder:pk});var hk={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Z({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:fk,mathmlBuilder:pk}),Z({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:fk,mathmlBuilder:pk}),Z({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=hk[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:fk,mathmlBuilder:pk});var gk=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=MD(e.base,`operatorname`),i=!0):a=MD(e,`operatorname`);var o;if(a.body.length>0){for(var s=KE(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof lT&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=X([`mop`],s,t)}else o=X([`mop`],[],t);return i?uk(o,n,r,t,t.style,0,0):o};Z({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:VE(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:gk,mathmlBuilder:(e,t)=>{for(var n=dD(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof rD)){if(a instanceof Q)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof nD?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new nD(n.map(e=>e.toText()).join(``))]);var s=new Q(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new Q(`mo`,[oD(``,`text`)]);return e.parentIsSupSub?new Q(`mrow`,[s,c]):tD([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),zE({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?SE(KE(e.body,t,!1)):X([`mord`],KE(e.body,t,!0),t)},mathmlBuilder(e,t){return fD(e.body,t,!0)}}),Z({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=QE(e.body,t.havingCrampedStyle()),r=bE(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`overline`],[TE({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new nD(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`mover`,[pD(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Z({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:VE(r)}},htmlBuilder:(e,t)=>SE(KE(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new Q(`mphantom`,dD(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),Z({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>X([`mord`,`rlap`],[X([`inner`],[QE(e.body,t.withPhantom())]),X([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[new Q(`mphantom`,dD(VE(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Z({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=MD(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=QE(e.body,t);return TE({positionType:`shift`,positionData:-Qw(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Q(`mpadded`,[pD(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Z({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Z({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=MD(t[0],`size`),o=MD(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&MD(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=X([`mord`,`rule`],[],t),r=Qw(e.width,t),i=Qw(e.height,t),a=e.shift?Qw(e.shift,t):0;return n.style.borderRightWidth=V(r),n.style.borderTopWidth=V(i),n.style.bottom=V(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Qw(e.width,t),r=Qw(e.height,t),i=e.shift?Qw(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Q(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,V(n)),o.setAttribute(`height`,V(r));var s=new Q(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,V(i)):(s.setAttribute(`height`,V(i)),s.setAttribute(`depth`,V(-i))),s.setAttribute(`voffset`,V(i)),s}});function _k(e,t,n){for(var r=KE(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return SE(r)}var vk=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Z({type:`sizing`,names:vk,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:vk.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return _k(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new Q(`mstyle`,dD(e.body,n));return r.setAttribute(`mathsize`,V(n.sizeMultiplier)),r}}),Z({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&MD(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=ND(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=X([],[QE(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return X([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return X([`mord`],[TE({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[pD(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Z({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=QE(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=CE(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<kw.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=_O(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=V(c);var d=TE({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(kw.SCRIPTSCRIPT),p=QE(e.index,f,t);return X([`mord`,`sqrt`],[X([`root`],[TE({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}return X([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Q(`mroot`,[pD(n,t),pD(r,t)]):new Q(`msqrt`,[pD(n,t)])}});var yk={display:kw.DISPLAY,text:kw.TEXT,script:kw.SCRIPT,scriptscript:kw.SCRIPTSCRIPT};function bk(e){return e in yk}Z({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!bk(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=yk[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),_k(e.body,r,t)},mathmlBuilder(e,t){var n=yk[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new Q(`mstyle`,dD(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var xk=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===kw.DISPLAY.size||n.alwaysHandleSupSub)?fk:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===kw.DISPLAY.size||n.limits)?gk:null:n.type===`accent`?ow(n.base)?ID:null:n.type===`horizBrace`&&!e.sub===n.isOver?sk:null:null};zE({type:`supsub`,htmlBuilder(e,t){var n=xk(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=QE(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&ow(r);if(i){var p=t.havingStyle(t.style.sup());s=QE(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=QE(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===kw.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=V(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof lT||y)&&(v=V(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=TE({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=TE({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=TE({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return X([XE(o,`right`)||`mord`],[o,X([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[pD(e.base,t)];e.sub&&a.push(pD(e.sub,t)),e.sup&&a.push(pD(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===kw.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===kw.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===kw.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===kw.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===kw.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===kw.DISPLAY)?`munder`:`msub`}return new Q(o,a)}}),zE({type:`atom`,htmlBuilder(e,t){return pE(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Q(`mo`,[oD(e.text,e.mode)]);if(e.family===`bin`){var r=lD(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var Sk={mi:`italic`,mn:`normal`,mtext:`normal`};zE({type:`mathord`,htmlBuilder(e,t){return hE(e,t,`mathord`)},mathmlBuilder(e,t){var n=new Q(`mi`,[oD(e.text,e.mode,t)]),r=lD(e,t)||`italic`;return r!==Sk[n.type]&&n.setAttribute(`mathvariant`,r),n}}),zE({type:`textord`,htmlBuilder(e,t){return hE(e,t,`textord`)},mathmlBuilder(e,t){var n=oD(e.text,e.mode,t),r=lD(e,t)||`normal`,i=e.mode===`text`?new Q(`mtext`,[n]):/[0-9]/.test(e.text)?new Q(`mn`,[n]):e.text===`\\prime`?new Q(`mo`,[n]):new Q(`mi`,[n]);return r!==Sk[i.type]&&i.setAttribute(`mathvariant`,r),i}});var Ck={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},wk={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};zE({type:`spacing`,htmlBuilder(e,t){if(wk.hasOwnProperty(e.text)){var n=wk[e.text].className||``;if(e.mode===`text`){var r=hE(e,t,`textord`);return r.classes.push(n),r}return X([`mspace`,n],[pE(e.text,e.mode,t)],t)}if(Ck.hasOwnProperty(e.text))return X([`mspace`,Ck[e.text]],[],t);throw new B(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(wk.hasOwnProperty(e.text))n=new Q(`mtext`,[new nD(`\xA0`)]);else if(Ck.hasOwnProperty(e.text))return new Q(`mspace`);else throw new B(`Unknown type of space "`+e.text+`"`);return n}});var Tk=()=>{var e=new Q(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};zE({type:`tag`,mathmlBuilder(e,t){var n=new Q(`mtable`,[new Q(`mtr`,[Tk(),new Q(`mtd`,[fD(e.body,t)]),Tk(),new Q(`mtd`,[fD(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Ek={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Dk={"\\textbf":`textbf`,"\\textmd":`textmd`},Ok={"\\textit":`textit`,"\\textup":`textup`},kk=(e,t)=>{var n=e.font;return n?Ek[n]?t.withTextFontFamily(Ek[n]):Dk[n]?t.withTextFontWeight(Dk[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Ok[n]):t};Z({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:VE(i),font:r}},htmlBuilder(e,t){var n=kk(e,t);return X([`mord`,`text`],KE(e.body,n,!0),n)},mathmlBuilder(e,t){var n=kk(e,t);return fD(e.body,n)}}),Z({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=QE(e.body,t),r=bE(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`underline`],[TE({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new nD(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`munder`,[pD(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Z({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=QE(e.body,t),r=t.fontMetrics().axisHeight;return TE({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new Q(`mrow`,[new Q(`mpadded`,[pD(e.body,t)],[`vcenter`])])}}),Z({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new B(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Ak(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(fE(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return X([`mord`,`text`].concat(i.sizingClasses(t)),_E(r),i)},mathmlBuilder(e,t){var n=new Q(`mtext`,[new nD(Ak(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var Ak=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),jk=IE,Mk=`[ \r
|
|
322
|
+
]`,Nk=`\\\\[a-zA-Z@]+`,Pk=`\\\\[^\ud800-\udfff]`,Fk=`(`+Nk+`)`+Mk+`*`,Ik=`\\\\(
|
|
323
|
+
|[ \r ]+
|
|
324
|
+
?)[ \r ]*`,Lk=`[̀-ͯ]`,Rk=RegExp(Lk+`+$`),zk=`(`+Mk+`+)|`+(Ik+`|`)+`([!-\\[\\]-‧-豈-]`+(Lk+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Lk+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Fk)+(`|`+Pk+`)`),Bk=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(zk,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new VO(`EOF`,new BO(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new B(`Unexpected character: '`+e[t]+`'`,new VO(e[t],new BO(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
325
|
+
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new VO(r,new BO(this,t,this.tokenRegex.lastIndex))}},Vk=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new B(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},Hk=zO;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Uk={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new B("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Uk[t.text],r==null||r>=n)throw new B(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Uk[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var Wk=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new B(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new B(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new B(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new B(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>Wk(e,!1,!0,!1)),$(`\\renewcommand`,e=>Wk(e,!0,!1,!1)),$(`\\providecommand`,e=>Wk(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),jk[n],CT.math[n],CT.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var Gk={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},Kk=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Gk?t=Gk[n]:(n.slice(0,4)===`\\not`||n in CT.math&&Kk.has(CT.math[n].group))&&(t=`\\dotsb`),t});var qk={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in qk?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in qk&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in qk?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new B(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Jk=V(gT[`Main-Regular`][84][1]-.7*gT[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Jk+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Jk+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var Yk=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,Yk(!1)),$(`\\bra@set`,Yk(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Xk={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Zk=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Vk(Hk,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Bk(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new VO(`EOF`,n.loc)),this.pushTokens(r),new VO(``,BO.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new B(`Extra }`,i)}else if(i.text===`EOF`)throw new B(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new B(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new B(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new B(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new B(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new B(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new B(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new VO(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Bk(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||jk.hasOwnProperty(e)||CT.math.hasOwnProperty(e)||CT.text.hasOwnProperty(e)||Xk.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?jk.hasOwnProperty(e)&&!jk[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Qk=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,$k=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),eA={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},tA={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},nA=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Zk(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new B(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new VO(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&jk[i.text]&&jk[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new B(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new B(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new B(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new B(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new B(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new B(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if($k[i.text]){var s=Qk.test(i.text),c=[];for(c.push(new VO($k[i.text])),this.consume();;){var l=this.fetch().text;if(!$k[l]||Qk.test(l)!==s)break;c.unshift(new VO($k[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=jk[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new B(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new B(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new B(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=jk[e];if(o&&o.handler)return o.handler(a,t,n);throw new B(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new B(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new B(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new B(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new B(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new B(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new B(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new B(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!Zw(i))throw new B(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:BO.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Xk.hasOwnProperty(r)){if(this.settings.throwOnError)throw new B(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(a&&a.type===`textord`){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:BO.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:BO.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:BO.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new B(`\\verb assertion failed --
|
|
326
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}tA.hasOwnProperty(t[0])&&!CT[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=tA[t[0]]+t.slice(1));var i=Rk.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(CT[this.mode][t]){this.settings.strict&&this.mode===`math`&&qT.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=CT[this.mode][t].group,s=BO.range(e);a=jD(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(Nw(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:BO.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!eA[l])throw new B(`Unknown accent ' `+l+`'`,e);var u=eA[l][this.mode]||eA[l].text;if(!u)throw new B(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:BO.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};nA.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var rA=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new nA(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new B(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new VO(`\\df@tag`)])}]}return r},iA=function(e,t,n){t.textContent=``;var r=cA(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),iA=function(){throw new B(`KaTeX doesn't work in quirks mode.`)});var aA=function(e,t){return cA(e,t).toMarkup()},oA=function(e,t){return rA(e,new fw(t))},sA=function(e,t,n){if(n.throwOnError||!(e instanceof B))throw e;var r=X([`katex-error`],[new lT(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},cA=function(e,t){var n=new fw(t);try{return xD(rA(e,n),e,n)}catch(t){return sA(t,e,n)}},lA={version:`0.16.47`,render:iA,renderToString:aA,ParseError:B,SETTINGS_SCHEMA:cw,__parse:oA,__renderToDomTree:cA,__renderToHTMLTree:function(e,t){var n=new fw(t);try{return SD(rA(e,n),e,n)}catch(t){return sA(t,e,n)}},__setFontMetrics:yT,__defineSymbol:H,__defineFunction:Z,__defineMacro:$,__domTree:{Span:aT,Anchor:oT,SymbolNode:lT,SvgNode:uT,PathNode:dT,LineNode:fT}};function uA(e,t){te(t,!0);let n=N(t,`displayMode`,3,!1),r=O(()=>lA.renderToString(t.text,{throwOnError:!1,displayMode:n()}));var i=s(),a=F(i);he(a,()=>l(r)),_(e,i),ue()}var dA=`inlineKatex`,fA=`blockKatex`,pA=[`equation`,`align`,`alignat`,`gather`,`CD`].flatMap(e=>[e,`${e}\\*`]).join(`|`),mA=/^\\\[\s*([\s\S]+?)\s*\\\](?:\n|$)/,hA=/^\$\$\s*([\s\S]+?)\s*\$\$(?:\n|$)/,gA=RegExp(`^\\\\begin\\{(${pA})\\}[\\s\\S]+?\\\\end\\{\\1\\}(?:\\n|$)?`),_A=/^\\\(([\s\S]+?)\\\)/,vA=/^\$(?!\$)((?:\\.|[^\\\n$])+?)\$(?=[\s?!.,:)\]}?!。,:]|$)/,yA=(e,t)=>{let n=-1;for(let r of t){let t=e.indexOf(r);t!==-1&&(n===-1||t<n)&&(n=t)}return n===-1?void 0:n};function bA(e={}){let{singleDollarInline:t=!1}=e;return PC({_humanspeakKatexConfig:JSON.stringify({singleDollarInline:t}),extensions:[{name:fA,level:`block`,start(e){return yA(e,[`\\[`,`$$`,`\\begin{`])},tokenizer(e){let t=e.match(mA);if(t)return{type:fA,raw:t[0],text:t[1].trim(),displayMode:!0};let n=e.match(hA);if(n)return{type:fA,raw:n[0],text:n[1].trim(),displayMode:!0};let r=e.match(gA);if(r)return{type:fA,raw:r[0],text:r[0].replace(/\n$/,``).trim(),displayMode:!0}}},{name:dA,level:`inline`,start(e){let n=[`\\(`];return t&&n.push(`$`),yA(e,n)},tokenizer(e){let n=e.match(_A);if(n)return{type:dA,raw:n[0],text:n[1].trim(),displayMode:!1};if(t){let t=e.match(vA);if(t)return{type:dA,raw:t[0],text:t[1].trim(),displayMode:!1}}}}]})}var xA=u(`<div class="markdown"><!></div>`);function SA(e,t){te(t,!1);let n=N(t,`text`,8,``),r={...Dx,html:ZC(),inlineKatex:uA,blockKatex:uA},i=[bA({singleDollarInline:!0})];oe();var a=xA();QC(k(a),{get source(){return n()},get renderers(){return r},get extensions(){return i}}),I(a),_(e,a),ue()}function CA(e,t,n=240){let r=typeof e==`number`&&Number.isFinite(e)&&e>0,i=typeof t==`number`&&Number.isFinite(t)&&t>0,a=Number.isFinite(n)&&n>0?n:240;if(!r||!i)return{width:a,height:Math.round(a*.75),cropped:!1};let o=e,s=t,c=o/s,l=Math.min(1,a/Math.max(o,s)),u=Math.max(1,Math.round(o*l)),d=Math.max(1,Math.round(s*l)),f=!1,p=u/d;return p<.25?(u=Math.max(1,Math.round(d*.25)),f=!0):p>4&&(d=Math.max(1,Math.round(u/4)),f=!0),{width:u,height:d,sourceAspectRatio:c,cropped:f}}var wA=u(`<img alt=""/>`),TA=u(`<span aria-hidden="true">✦</span>`),EA=u(`<label><input class="cmp-radio cmp-radio-primary" type="radio" name="companion-appearance"/><span> </span></label>`),DA=u(`<label><input class="cmp-radio cmp-radio-primary" type="radio" name="companion-language"/><span> </span></label>`),OA=u(`<section id="companion-preferences-panel" class="companion-preferences-panel"><fieldset><legend> </legend> <!></fieldset> <fieldset><legend> </legend> <!></fieldset></section>`),kA=u(`<section class="companion-loading-shell" role="status"><span class="cmp-loading cmp-loading-spinner cmp-loading-sm" aria-hidden="true"></span><span> </span></section>`),AA=u(`<section class="companion-recovery" role="alert"><div class="companion-mood-orb cmp-mask cmp-mask-circle" aria-hidden="true"></div> <h1> </h1> <p> </p> <a class="cmp-btn cmp-btn-primary" href="/"> </a></section>`),jA=u(`<section class="companion-recovery" role="alert"><div class="companion-mood-orb cmp-mask cmp-mask-circle" aria-hidden="true"></div> <h1> </h1> <p> </p> <button class="cmp-btn cmp-btn-primary"> </button></section>`),MA=u(`<div data-testid="keet-recovery-notice" role="status" class="cmp-alert cmp-alert-warning"><span> </span></div>`),NA=u(`<button class="cmp-btn cmp-btn-ghost cmp-btn-sm" style="display:block;margin:0 auto 18px"> </button>`),PA=u(`<div class="companion-recovery"><div class="companion-mood-orb cmp-mask cmp-mask-circle" aria-hidden="true"></div> <h1> </h1> <p> </p></div>`),FA=u(`<div class="companion-continuity-record" aria-live="off"> </div>`),IA=u(`<div class="companion-recovery"><p> </p></div>`),LA=u(`<span aria-hidden="true"> </span>`),RA=u(`<div class="cmp-skeleton companion-media-loading" aria-hidden="true"></div> <div class="companion-media-status" role="status"> </div>`,1),zA=u(`<button class="companion-media-button"><img/></button>`),BA=u(`<div class="companion-media-failure" role="alert"><span> </span><button class="cmp-btn cmp-btn-ghost cmp-btn-sm" type="button"> </button></div>`),VA=u(`<div class="companion-media-failure" role="alert"><span> </span></div>`),HA=u(`<div class="cmp-loading cmp-loading-spinner companion-media-spinner" role="status"></div>`),UA=u(`<div><div><!></div></div>`),WA=u(`<div></div>`),GA=u(`<div><!></div>`),KA=u(`<span aria-hidden="true"></span>`),qA=u(`<span role="timer" aria-live="off"> </span>`),JA=u(`<span role="status"> </span>`),YA=u(`<span role="alert"> </span>`),XA=u(`<audio class="companion-audio" preload="metadata" aria-hidden="true" tabindex="-1"></audio> <button class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-voice-control"><!></button> <div class="companion-voice-player"><div class="companion-voice-waveform"><!> <input class="companion-voice-seek" type="range" min="0" step="0.1"/></div> <div class="companion-voice-meta"><!><!></div></div>`,1),ZA=u(`<div class="cmp-chat-bubble companion-bubble companion-voice" role="region"><!></div>`),QA=u(`<div class="companion-meta" role="status"> </div>`),$A=u(`<article><div class="cmp-chat-image cmp-avatar cmp-avatar-placeholder message-avatar"><div class="companion-avatar-crop cmp-mask cmp-mask-circle"><!></div></div> <div class="companion-message-stack"><!> <!></div></article>`),ej=u(`<span class="companion-waiting-copy"> </span>`),tj=u(`<article class="cmp-chat cmp-chat-start companion-row incoming" data-testid="companion-typing-indicator" role="status"><div class="cmp-chat-image cmp-avatar cmp-avatar-placeholder message-avatar"><div class="companion-avatar-crop cmp-mask cmp-mask-circle"><!></div></div> <div class="cmp-chat-bubble companion-bubble companion-typing-bubble"><span class="cmp-loading cmp-loading-dots cmp-loading-sm" aria-hidden="true"></span><!></div></article>`),nj=u(`<button class="cmp-btn cmp-btn-primary cmp-btn-sm companion-new-message" style="position:sticky;bottom:10px;left:50%;transform:translateX(-50%)"> </button>`),rj=u(`<div id="companion-command-suggestions" class="companion-command-suggestions" role="listbox"><button id="companion-command-compact" class="cmp-btn cmp-btn-ghost companion-command-suggestion" type="button" role="option" aria-selected="true"><span class="companion-command-name"> </span> <span class="companion-command-description"> </span> <span class="companion-command-tab" aria-hidden="true">Tab</span></button></div>`),ij=u(`<div class="companion-continuity-status" data-testid="companion-continuity-status" aria-live="polite"><!></div>`),aj=u(`<div class="companion-image-draft"><button class="companion-image-draft-preview" type="button"><img/></button> <button class="cmp-btn cmp-btn-neutral cmp-btn-circle cmp-btn-xs companion-image-draft-remove" type="button"><!></button></div>`),oj=u(`<div class="companion-image-drafts" role="group"></div>`),sj=u(`<span class="cmp-loading cmp-loading-spinner cmp-loading-sm" aria-hidden="true"></span>`),cj=u(`<div id="companion-context-popover" class="cmp-card companion-context-popover" role="dialog" aria-labelledby="companion-context-popover-title" tabindex="-1"><h2 id="companion-context-popover-title"> </h2> <p class="companion-context-percent"> </p> <p> </p></div>`),lj=u(`<div class="companion-context-meter-wrap"><button type="button" aria-controls="companion-context-popover"><svg viewBox="0 0 28 28" aria-hidden="true"><circle class="companion-context-meter-track" cx="14" cy="14" r="11"></circle><circle class="companion-context-meter-value" cx="14" cy="14" r="11" pathLength="100"></circle></svg></button> <!></div>`),uj=u(`<button class="cmp-btn cmp-btn-primary cmp-btn-circle companion-send"><!></button>`),dj=u(`<button class="cmp-btn cmp-btn-primary cmp-btn-circle companion-send"><span aria-hidden="true">↑</span></button>`),fj=u(`<button class="cmp-btn cmp-btn-neutral cmp-btn-circle companion-stop-inline" data-testid="companion-stop"><!></button>`),pj=u(`<div class="companion-voice-input-status companion-voice-input-error" role="alert"> </div>`),mj=u(`<div class="companion-voice-input-status" data-testid="companion-voice-recording-status" role="status" aria-live="polite"> </div>`),hj=u(`<div class="companion-voice-input-status" data-testid="companion-voice-transcribing-status" role="status" aria-live="polite"> </div>`),gj=u(`<div class="companion-voice-input-status companion-voice-input-unavailable" data-testid="companion-voice-unavailable-status" role="status"> </div>`),_j=u(`<div class="companion-voice-input-status companion-voice-input-error" data-testid="companion-voice-error-status" role="status"> </div>`),vj=u(`<div role="log" aria-live="polite" aria-relevant="additions text"><div class="companion-timeline-content"><!> <!> <!> <!> <!> <!></div></div> <div class="companion-composer"><!> <!> <!> <div class="companion-compose-row"><input id="companion-image-library" class="companion-image-input" type="file" multiple="" tabindex="-1" aria-hidden="true"/> <button class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-attach" type="button"><!></button> <textarea class="companion-textarea" rows="1"></textarea> <button type="button"><!></button> <!> <!> <!></div> <!> <!> <div class="companion-compose-hint"> </div></div>`,1),yj=u(`<button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm companion-diary-back"> </button> <article class="companion-diary-page"><time> </time> <!></article>`,1),bj=u(`<p class="companion-history-state" role="status"> </p>`),xj=u(`<p class="companion-history-state" role="alert"> </p>`),Sj=u(`<div class="companion-history-state" role="alert"><p> </p> <button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm"> </button></div>`),Cj=u(`<p class="companion-history-state"> </p>`),wj=u(`<button type="button" class="companion-diary-list-entry"><time> </time> <span aria-hidden="true">›</span></button>`),Tj=u(`<div class="companion-diary-list"></div>`),Ej=u(`<section class="companion-diary"><!></section>`),Dj=u(`<div class="companion-history-state" role="status"><span class="cmp-loading cmp-loading-spinner cmp-loading-sm" aria-hidden="true"></span> <span> </span></div>`),Oj=u(`<button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm companion-history-earlier"> </button>`),kj=u(`<p class="companion-history-initial"> </p>`),Aj=u(`<strong class="companion-history-growth"> </strong>`),jj=u(`<p class="companion-history-reason"> </p>`),Mj=u(`<li><strong> </strong> <div class="companion-history-values"><span> </span><!></div> <!></li>`),Nj=u(`<ul></ul>`),Pj=u(`<article class="companion-history-entry"><time> </time> <!></article>`),Fj=u(`<!> <div class="companion-history-entries"></div>`,1),Ij=u(`<section class="companion-history-current" aria-labelledby="companion-history-current-title"><h3 id="companion-history-current-title"> </h3> <dl class="companion-history-current-list"><dt> </dt> <dd> </dd> <dt> </dt> <dd> </dd> <dt> </dt> <dd> </dd></dl></section> <section class="companion-history-list" aria-labelledby="companion-history-list-title"><h3 id="companion-history-list-title"> </h3> <!></section>`,1),Lj=u(`<div class="companion-history-backdrop"><button type="button" tabindex="-1"></button></div> <div id="companion-relationship-drawer" class="companion-history-drawer" role="dialog" aria-modal="true" data-testid="companion-relationship-drawer"><div class="companion-history-controls"><button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-circle cmp-btn-sm"><!></button></div> <div class="companion-diary-tabs" role="tablist"><button type="button" role="tab" id="companion-history-tab" aria-controls="companion-drawer-panel"> </button> <button type="button" role="tab" id="companion-diary-tab" aria-controls="companion-drawer-panel"> </button></div> <div id="companion-drawer-panel" class="companion-history-scroll" role="tabpanel"><!></div></div>`,1),Rj=u(`<img/>`),zj=u(`<div class="cmp-loading cmp-loading-spinner"></div>`),Bj=u(`<dialog id="companion-image-lightbox" class="cmp-modal companion-lightbox"><div class="cmp-modal-box companion-lightbox-dialog"><!></div> <button class="cmp-btn cmp-btn-circle companion-lightbox-close"><!></button> <form method="dialog" class="cmp-modal-backdrop companion-lightbox-backdrop"><button type="submit"> </button></form></dialog>`),Vj=u(`<div id="dsh-companion" class="companion-shell" data-testid="companion-root"><div class="companion-app"><div class="companion-content"><main class="companion-main"><header class="companion-header"><div><button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-history-toggle" aria-controls="companion-relationship-drawer"><!></button></div> <div class="companion-avatar-anchor" aria-hidden="true"><div class="cmp-avatar cmp-avatar-placeholder companion-avatar"><div class="companion-avatar-crop cmp-mask cmp-mask-circle"><!></div></div></div> <div class="companion-header-copy"><div class="companion-name"> </div> <div class="companion-presence" aria-live="polite"><span></span> </div></div> <div class="companion-preferences"><button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-preferences-trigger" aria-controls="companion-preferences-panel"><!></button> <!></div></header> <!></main></div></div> <!> <!></div> <div class="companion-sr-only" aria-live="assertive"> </div>`,1);function Hj(n,i){te(i,!1);let a=D(),o=D(),u=D(),f=D(),p=D(),g=D(),v=N(i,`t`,8,Pm),b=N(i,`locale`,8,`en`),x=N(i,`projection`,24,()=>({items:[],messageUnits:[],pendingCount:0,running:!1,status:`ready`,openState:`open`,hasMore:!1,loadingOlder:!1})),S=N(i,`identity`,24,()=>({companionName:`Companion`,userName:v()(`you`),preferredAddress:v()(`you`),signature:``,moodLabel:v()(`mood.neutral`),mood:`neutral`,affinity:50,affinityStage:v()(`affinity.familiar`)})),w=N(i,`actions`,24,()=>({send:async()=>void 0})),ie=N(i,`workspaceReadiness`,8,`loading`),ae=N(i,`sessionReadiness`,8,`loading`),A=N(i,`relationshipReadiness`,8,`loading`),de=N(i,`sessionId`,8),pe=N(i,`imageLimits`,8),he=N(i,`voiceCapability`,8,`unavailable`),ge=N(i,`continuity`,24,()=>({})),ve=N(i,`keetLosses`,24,()=>[]),ye=N(i,`recoveredDraft`,8),be=N(i,`history`,24,()=>({status:`loading`,records:[],hasEarlier:!1})),ke=N(i,`onHistoryOpenChange`,8),Ae=N(i,`appearance`,8,`system`),je=N(i,`onAppearanceChange`,8,()=>void 0),Pe=N(i,`onLanguageChange`,8,()=>void 0),Ie=Te(),Le={current:0,duration:0,playing:!1},ze=[`wait.thinking`,`wait.words`,`wait.soon`,`wait.care`,`wait.here`],Ge=D(Ah()),Ke=D(),qe=D(),Je=D(),Xe=D(!1),Ze=D(),Qe=D(!1),$e=0,et=D(!1),tt=D(!1),nt=D(),rt=D(`history`),it=D([]),at=D(),ot=D(!1),st=D(!1),ct=D(!1),lt,dt=D(),ft=D(``),pt=D({}),mt=D({}),ht=D({}),_t=D({}),vt=D({}),yt={},bt={},Ct={},wt=D(!0),Tt=D(``),Et,Dt,Ot=D(),kt=D(),At=!1,L=!1,jt=D(``),Mt=D(!1),Nt=D(!1),Pt=D(``),Ft=``,It,Lt,Rt=D(!1),zt=D(),Bt=D(),Vt,Ht=D(),Ut=``,Wt,Gt=D([]),Kt=D(),qt=D(``),Jt=D(0),Yt=[],Xt=new Set,Zt=D(x()),Qt=D(0),$t,en=!1,tn=0,nn=D(`idle`),rn=gt(),an=D(0),on,sn=D(``),cn=new St({onStatus:e=>{P(nn,e)},onError:e=>{lr(),P(an,0),e.code!==`cancelled`&&(P(sn,sr(e)),P(Tt,{key:l(sn)}))}}),ln=D(),un;async function dn(){let e=++tn;if(await ee(),e!==tn||!l(Ke))return;xe(Ke,l(Ke).style.height=`auto`);let t=Oh(l(Ke).scrollHeight,43,150);xe(Ke,l(Ke).style.height=`${t.height}px`),xe(Ke,l(Ke).style.overflowY=t.scrollable?`auto`:`hidden`)}async function fn(e){let t=_e(Jt);if(P(qt,e.key),de()!==l(Kt))return;let n=l(Ge).draft.trim();P(Ge,{...l(Ge),draft:n?`${e.input}\n${l(Ge).draft}`:e.input,composing:!1});let r=[];for(let t of e.images)try{let e=await fetch(t.url);if(!e.ok)continue;let n=await e.blob();r.push(new File([n],t.name,{type:n.type||`image/png`}))}catch{}t===l(Jt)&&de()===l(Kt)&&(r.length&&P(Gt,[...l(Gt),...Ve(r)]),dn(),P(Tt,{key:`error.restored`}))}function pn(e){let t=e.items.filter(e=>e.kind===`text`||e.kind===`image`||e.kind===`voice`);if(e.side===`outgoing`){let e=t.filter(e=>e.kind===`image`),n=t.filter(e=>e.kind!==`image`);return[...e.length?[{kind:`images`,items:e}]:[],...n.map(e=>({kind:`item`,item:e}))]}let n=[];for(let e of t)if(e.kind===`image`){let t=n.at(-1);t?.kind===`images`?t.items.push(e):n.push({kind:`images`,items:[e]})}else n.push({kind:`item`,item:e});return n}function mn(e){let t=e.attachment?.width,n=e.attachment?.height;return typeof t==`number`&&t>0&&typeof n==`number`&&n>0}function hn(e,t){if(t)return`width:64px;height:64px`;let n=Ct[e.id],r=n?.width??e.attachment?.width,i=n?.height??e.attachment?.height;if(!mn(e)&&!n)return`max-width:100%;max-height:240px;width:auto;height:auto`;let a=CA(r,i,240);return`width:${a.width}px;height:${a.height}px;object-fit:${a.cropped?`cover`:`contain`}`}function gn(e,t){if(mn(e))return;let n=t.currentTarget;if(n.naturalWidth<=0||n.naturalHeight<=0)return;let r=Ct[e.id];(r?.width!==n.naturalWidth||r.height!==n.naturalHeight)&&(Ct={...Ct,[e.id]:{width:n.naturalWidth,height:n.naturalHeight}})}function _n(e){let t=e.items.find(e=>e.kind===`voice`);return t?`voice-${t.id}`:`message-${e.id}`}function vn(e,t){return t===`stop`?{key:`error.stop`}:t===`send`?{key:`error.send`}:e}function yn(e,t){return e.id===`prompt-error`?t(x().promptErrorOp===`stop`?`error.stop`:`error.send`):e.text}function bn(){let e=Yt;if(Yt=[],e.length&&He(e),Xt.size){for(let e of Xt)e.startsWith(`blob:`)&&URL.revokeObjectURL(e);Xt.clear()}}function xn(e){let t=l(ft)&&l(dt)?.previewUrl===l(ft)?l(ft):void 0,n=t?e.filter(e=>e.previewUrl===t):[],r=n.length?e.filter(e=>e.previewUrl!==t):e;if(n.length){let e=new Set(Yt.map(e=>e.previewUrl));Yt=[...Yt,...n.filter(t=>!e.has(t.previewUrl))]}r.length&&ee().then(()=>He(r))}function Sn(e){for(let t=e.items.length-1;t>=0;--t){let n=e.items[t];if(n.side===`incoming`&&(n.kind!==`image`||n.state===`ready`||n.state===`failed`))return(`projectionKey`in n?n.projectionKey:void 0)??n.id}return`empty`}function Cn(e,t,n,r){if(t.reason===`observed`){xn(e);return}if(de()===r&&de()===l(Kt)){P(Ge,{...l(Ge),draft:l(Ge).draft?`${n}\n${l(Ge).draft}`:n,composing:!1}),P(Gt,[...l(Gt),...e]),dn(),P(Tt,{key:`error.restored`});return}xn(e)}function wn(){It!==void 0&&clearTimeout(It),Lt!==void 0&&clearInterval(Lt),It=void 0,Lt=void 0}function Tn(e){return[...e?.lifecycles??(e?.latest?[e.latest]:[])].sort((e,t)=>(e.endSeq??e.startSeq)-(t.endSeq??t.startSeq)||e.startSeq-t.startSeq).at(-1)}function En(){Wt!==void 0&&clearTimeout(Wt),Wt=void 0}function Dn(e){let t=e?`${e.compactionId}:${e.status}:${e.endSeq??``}:${e.endedAt??``}`:``;if(t===Ut||(En(),Ut=t,P(Ht,void 0),!e))return;if(e.status===`running`){P(Ht,e);return}let n=(typeof e.endedAt==`number`&&Number.isFinite(e.endedAt)?e.endedAt:Date.now())+xh-Date.now();n<=0||(P(Ht,e),Wt=setTimeout(()=>{P(Ht,void 0),Ut=t,Wt=void 0},n))}function On(){l(p)&&(Vt=document.activeElement,P(Rt,!0),ee().then(()=>l(Bt)?.focus()))}function kn(e=!0){P(Rt,!1);let t=Vt;Vt=void 0,e&&t?.focus()}function An(){l(Rt)?kn():On()}function jn(e){let t=e.target;l(Rt)&&(!t||!t.closest?.(`.companion-context-meter-wrap`))&&kn(!1),l(tt)&&(!t||!t.closest?.(`.companion-preferences`))&&P(tt,!1)}function Mn(){let e=ze.filter(e=>e!==l(Pt));P(Pt,e[Math.floor(Math.random()*e.length)]??ze[0])}function Nn(e,t){let n=e?t:``;n!==Ft&&(Ft=n,wn(),P(Pt,``),e&&(It=setTimeout(()=>{Mn(),Lt=setInterval(Mn,9e3)},12e3)))}async function Pn(e){if(await ee(),!l(Ze))return;if(e.openState!==`open`){$e&&cancelAnimationFrame($e),$e=0,P(Qe,!1);return}let t=l(Ze).scrollHeight-l(Ze).clientHeight-l(Ze).scrollTop,n=l(wt)||t<96;n&&!e.loadingOlder&&xe(Ze,l(Ze).scrollTop=l(Ze).scrollHeight),l(Qe)||($e&&cancelAnimationFrame($e),$e=requestAnimationFrame(()=>{l(Ze)&&(xe(Ze,l(Ze).scrollTop=l(Ze).scrollHeight),P(Qe,!0),$e=0)})),P(wt,n),P(Tt,e.promptError?vn(e.promptError,e.promptErrorOp):e.lastAgentError??``);let r=new Map;for(let t of e.items)t.kind===`image`&&t.state===`ready`&&t.attachment&&r.set(t.id,t);for(let[e,t]of Object.entries(l(_t))){let n=r.get(e);(!n||yt[e]!==Fn(n))&&Ln(e,t)}for(let e of r.values()){let t=Fn(e);!l(_t)[e.id]&&bt[e.id]!==t&&w().attachmentUrl&&Rn(e,t)}for(let t of e.items)t.kind===`voice`&&l(pt)[t.id]!==t.url&&P(pt,{...l(pt),[t.id]:t.url})}function Fn(e){return`${e.attachment?.attachmentId??``}:${e.attachment?.mediaType??``}`}function In(e){if(e?.startsWith(`blob:`)){if(e===l(ft)){Xt.add(e);return}URL.revokeObjectURL(e)}}function Ln(e,t=l(_t)[e]){In(t);let n={...l(_t)},r={...yt},i={...l(vt)};delete n[e],delete r[e],delete i[e],P(_t,n),yt=r,P(vt,i);let a={...Ct};delete a[e],Ct=a}async function Rn(e,t){if(w().attachmentUrl&&bt[e.id]!==t){bt={...bt,[e.id]:t};try{let n=await w().attachmentUrl(e.attachment),r=l(Zt).items.find(t=>t.kind===`image`&&t.id===e.id);if(r&&Fn(r)===t){if(l(_t)[e.id]&&l(_t)[e.id]!==n&&Ln(e.id),P(_t,{...l(_t),[e.id]:n}),yt={...yt,[e.id]:t},l(dt)?.id===e.id){let e=l(ft);P(ft,n),e&&e!==n&&(Xt.delete(e),In(e))}}else n.startsWith(`blob:`)&&URL.revokeObjectURL(n)}catch{let n=l(Zt).items.find(t=>t.kind===`image`&&t.id===e.id);n&&Fn(n)===t&&P(vt,{...l(vt),[e.id]:!0})}finally{let t={...bt};delete t[e.id],bt=t}}}function zn(e){if(!w().attachmentUrl||!e.attachment)return;let t={...l(vt)};delete t[e.id],P(vt,t);let n={...bt};delete n[e.id],bt=n,Rn(e,Fn(e))}function Bn(e,t){P(ht,{...l(ht),[e]:{...l(ht)[e]??Le,...t}})}function Vn(e){return l(ht)[e]??Le}function Hn(e,t=`floor`){if(!Number.isFinite(e)||e<=0)return`0:00`;let n=t===`ceil`?Math.ceil(e):Math.floor(e);return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`}function Un(e){return e.duration>0}function Wn(e){if(!(e.duration<=0))return e.current>0&&e.current<e.duration?Hn(e.current):Hn(e.duration,`ceil`)}function Gn(e){return e.duration>0?Math.min(1,Math.max(0,e.current/e.duration)):0}function Kn(e){let t=2166136261;for(let n of e)t=Math.imul(t^n.codePointAt(0),16777619);return Array.from({length:28},(e,n)=>(t=Math.imul(t^n,2246822519),28+Math.abs(t)%69))}function qn(e){return e.closest(`.companion-voice`)?.querySelector(`audio`)??void 0}function Jn(e,t){let n=e=>tr(t,e),r=e=>nr(t,e),i=()=>Qn(t),a=()=>$n(t),o=e=>er(t,e),s=()=>Yn(t);return e.addEventListener(`loadedmetadata`,n),e.addEventListener(`timeupdate`,r),e.addEventListener(`play`,i),e.addEventListener(`pause`,a),e.addEventListener(`ended`,o),e.addEventListener(`error`,s),{destroy(){e.removeEventListener(`loadedmetadata`,n),e.removeEventListener(`timeupdate`,r),e.removeEventListener(`play`,i),e.removeEventListener(`pause`,a),e.removeEventListener(`ended`,o),e.removeEventListener(`error`,s)}}}function Yn(e){let t={...l(pt)};delete t[e],P(pt,t),P(mt,{...l(mt),[e]:!0})}async function Xn(e,t){l(pt)[e.id]||(P(pt,{...l(pt),[e.id]:e.url}),await ee());let n=qn(t);if(n){for(let e of document.querySelectorAll(`#dsh-companion .companion-voice audio`))e!==n&&!e.paused&&e.pause();try{n.ended&&(n.currentTime=0),n.paused?await n.play():n.pause()}catch{Yn(e.id)}}}function Zn(e,t){let n=qn(e.currentTarget),r=Number(e.currentTarget.value);n&&Number.isFinite(r)&&(n.currentTime=r,Bn(t,{current:r}))}function Qn(e){Bn(e,{playing:!0})}function $n(e){Bn(e,{playing:!1})}function er(e,t){let n=t.target,r=Number.isFinite(n.duration)&&n.duration>0?n.duration:Vn(e).duration;Bn(e,{current:r,duration:r,playing:!1})}function tr(e,t){let n=t.target;if(!Number.isFinite(n.duration)||n.duration<=0){Yn(e);return}Bn(e,{duration:n.duration,current:n.currentTime})}function nr(e,t){let n=t.target,r=Number.isFinite(n.duration)&&n.duration>0?n.duration:Vn(e).duration;Bn(e,{current:n.currentTime,duration:r})}function rr(){l(Ze)&&P(wt,l(Ze).scrollHeight-l(Ze).clientHeight-l(Ze).scrollTop<96)}function ir(e){let t=new ResizeObserver(()=>{l(Qe)&&l(wt)&&l(Ze)&&xe(Ze,l(Ze).scrollTop=l(Ze).scrollHeight)});return t.observe(e),{destroy:()=>t.disconnect()}}function ar(){if(x().canSubmit===!1)return;let e=l(Ge).draft,t=e.trim();if(t.length>16e3||!t&&l(Gt).length===0||l(Ge).composing)return;let n=[...l(Gt)],r=de();P(Ge,{...jh(l(Ge),{type:`submit`}),draft:``,composing:!1}),P(Gt,[]),dn();let i=_e(Qt),a=t=>{Cn(n,t,e,r)};Promise.resolve().then(()=>w().send(t,n,a)).catch(t=>{t instanceof Dh&&i===l(Qt)&&de()===r&&(P(Ge,{...l(Ge),draft:l(Ge).draft?`${e}\n${l(Ge).draft}`:e,composing:!1}),P(Gt,[...l(Gt),...n]),dn()),P(Tt,t instanceof Error&&t.message===`compact-with-images`?{key:`error.compactImages`}:{key:`error.restored`})})}function or(e){let t=Math.max(0,Math.floor(e/1e3));return`${Math.floor(t/60).toString().padStart(2,`0`)}:${(t%60).toString().padStart(2,`0`)}`}function sr(e){if(e instanceof ut){if(e.code===`insecure-context`)return`voice.secure`;if(e.code===`unsupported`||e.code===`media-type`)return`voice.unsupported`;if(e.code===`permission-denied`)return`voice.permission`;if(e.code===`duration-limit`)return`voice.duration`;if(e.code===`size-limit`)return`voice.size`;if(e.code===`empty`)return`voice.empty`;if(e.code===`transcript-empty`)return`voice.unclear`}return`voice.failed`}function cr(e){return e(rn?`voice.install`:`voice.unavailable`)}function lr(){on!==void 0&&clearInterval(on),on=void 0}async function ur(){lr(),un?.abort(),un=void 0;try{await cn.cancel()}catch{}P(an,0),P(sn,``)}async function dr(){lr();let e;try{e=await cn.stopAndGet()}catch(e){P(sn,sr(e)),P(Tt,{key:l(sn)}),P(an,0);return}if(P(an,0),P(sn,``),!e||!w().transcribeVoice||!cn.markTranscribing())return;let t=new AbortController,n=de();un=t;try{let r=await w().transcribeVoice(e,t.signal);if(t.signal.aborted||de()!==n)return;let i=xt(r);await w().send(i,[]),P(Tt,{key:`voice.sent`})}catch(e){P(sn,sr(e)),P(Tt,{key:l(sn)})}finally{un===t&&(un=void 0),cn.finishTranscribing()}}async function fr(){if(x().canSubmit!==!1||l(nn)===`recording`||l(nn)===`stopping`){if(l(nn)===`recording`||l(nn)===`stopping`){l(nn)===`recording`&&await dr();return}if(l(nn)!==`transcribing`){if(he()===`loading`){P(Tt,{key:`voice.wait`});return}if(he()!==`available`||!w().transcribeVoice||!rn){P(Tt,{key:rn?`voice.install`:`voice.unavailable`});return}P(an,0),P(sn,``),lr();try{await cn.start(),on=setInterval(()=>{P(an,cn.elapsedMs)},250)}catch(e){lr(),P(sn,sr(e)),P(Tt,{key:l(sn)})}}}}async function pr(){if(w().stop&&!l(Xe)){P(Xe,!0);try{await w().stop()}catch{P(Tt,{key:`error.stop`})}finally{P(Xe,!1)}}}function mr(e){if(l(Je)&&(e.key===`Tab`||e.key===`Enter`)&&!e.shiftKey&&!e.isComposing&&!l(Ge).composing){e.preventDefault(),gr();return}Mh(e,l(Ge).composing)&&(e.preventDefault(),ar())}function hr(e){P(Ge,jh(l(Ge),{type:`input`,value:e})),dn()}function gr(){l(Je)&&(hr(l(Je).command),ee().then(()=>l(Ke)?.focus()))}function _r(e){hr(e.currentTarget.value)}function vr(e){P(Ge,jh(l(Ge),{type:`compositionend`,value:e.currentTarget.value})),dn()}function yr(){P(Ge,jh(l(Ge),{type:`compositionstart`}))}function br(e){let t=Be(l(Gt),e,pe());if(t){P(Tt,t);return}P(Gt,[...l(Gt),...Ve(e)])}function xr(e){let t=e.currentTarget;br(Array.from(t.files??[])),t.value=``}function Sr(e){let t=Ue(e.clipboardData);t.length!==0&&(e.preventDefault(),br(t))}function Cr(e){if(!e||typeof e!=`object`)return!1;let t=`code`in e?e.code:void 0;if(t!==void 0)return t===ah.TakePhotoCancelled;let n=`message`in e?e.message:void 0;return typeof n==`string`&&/(?:user\s+)?cancel(?:led|ed)\s+photos\s+app|取消(?:了)?拍照/iu.test(n)}async function wr(){try{br([await We(await sh.takePhoto({saveToGallery:!1,includeMetadata:!0}))])}catch(e){Cr(e)||P(Tt,{key:`camera.failed`})}}function Tr(e){xn([e]),P(Gt,l(Gt).filter(t=>t!==e))}function Er(e){e.pointerType===`touch`&&($t={id:e.pointerId,startedAt:Date.now()})}function Dr(e){if(!$t||$t.id!==e.pointerId)return;let t=Date.now()-$t.startedAt>=450;$t=void 0,t&&(en=!0,e.preventDefault(),wr())}function Or(){$t=void 0}function kr(){if(en){en=!1;return}l(qe)?.click()}function Ar(e,t){let n=new Date(e);return Number.isFinite(n.getTime())?n.toLocaleString(t,{dateStyle:`medium`,timeStyle:`short`}):e}function jr(e){switch(e){case`mood`:return v()(`history.mood`);case`affinity`:return v()(`history.affinity`);case`signature`:return v()(`history.signature`)}}function Mr(e,t){if(e===`mood`){let e=v()(`mood.${t.value}`);return`note`in t&&t.note?`${e} · ${t.note}`:e}return e===`affinity`||t.value?String(t.value):v()(`signature.empty`)}function Nr(e){let t=be().records[e];return t?Fh(t,be().records[e+1]??(e===be().records.length-1?be().predecessor:void 0)):[]}async function Pr(){if(w().loadEarlierHistory)try{await w().loadEarlierHistory()}catch{}}function Fr(e){ee().then(()=>{let t=e();(t?.querySelector(`button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])`)??t)?.focus()})}function Ir(e,t){if(e.key!==`Tab`)return;let n=[...t.querySelectorAll(`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])`)].filter(e=>!e.hasAttribute(`hidden`));if(!n.length){e.preventDefault(),t.focus();return}let r=n[0],i=n[n.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):!e.shiftKey&&document.activeElement===i&&(e.preventDefault(),r.focus())}function Lr(){At&&(At=!1,globalThis.history.back())}function Rr(){Et=document.activeElement,P(et,!0),ke()?.(!0),ee().then(()=>{Fr(()=>l(Ot))})}function zr(e=!0){P(et,!1),ke()?.(!1);let t=Et;Et=void 0,e&&t?.focus()}function Br(e=!0){lt?.abort(),lt=void 0,zr(e)}function Vr(e){Dt=document.activeElement,P(dt,e),P(ft,e.previewUrl??l(_t)[e.id]??``),ee().then(()=>{l(kt)&&!l(kt).open&&l(kt).showModal(),Fr(()=>l(kt))})}function Hr(e){let t=Dt,n=At;P(dt,void 0),P(ft,``),Dt=void 0,bn(),t&&t.focus(),!e&&n&&Lr()}function Ur(e=!1){if(l(dt)){if(L=e,l(kt)?.open){l(kt).close();return}Hr(e)}}function Wr(){let e=L;L=!1,Hr(e)}function Gr(e){if(e.key===`Escape`){if(l(tt)){e.preventDefault(),P(tt,!1),l(nt)?.focus();return}if(l(Rt)){e.preventDefault(),kn();return}if(l(et)){e.preventDefault(),Br();return}return}if(l(et)&&l(Ot)){Ir(e,l(Ot));return}l(dt)&&l(kt)&&Ir(e,l(kt))}function Kr(){At=!1,l(dt)&&Ur(!0)}function qr(){At||=(globalThis.history.pushState({companionOverlay:!0},``),!0)}function Jr(){l(et)?Br():Rr()}function Yr(e){qr(),Vr({id:e.id,alt:e.alt||v()(`image.preview`),previewUrl:e.previewUrl??l(_t)[e.id]})}function Xr(e){qr(),Vr({id:`draft:${e.id}`,alt:e.file.name||v()(`image.pending`),previewUrl:e.previewUrl})}async function Zr(){if(!w().loadOlder||x().loadingOlder)return;let e=l(Ze)?.scrollHeight??0;await w().loadOlder(),await ee(),l(Ze)&&xe(Ze,l(Ze).scrollTop+=l(Ze).scrollHeight-e)}function Qr(){lt?.abort();let e=new AbortController;return lt=e,P(ot,!0),P(st,!1),P(ct,!1),e}async function $r(){P(rt,`diary`),P(at,void 0);let e=Qr();try{let t=await fetch(`/api/diary`,{signal:e.signal});if(!t.ok)throw Error();lt===e&&P(it,(await t.json()).entries)}catch(t){lt===e&&t.name!==`AbortError`&&P(st,!0)}finally{lt===e&&P(ot,!1)}}async function ei(e){let t=Qr();try{let n=await fetch(`/api/diary/${encodeURIComponent(e)}`,{signal:t.signal});if(n.status===413){lt===t&&P(ct,!0);return}if(!n.ok)throw Error();lt===t&&P(at,await n.json())}catch(e){lt===t&&e.name!==`AbortError`&&P(st,!0)}finally{lt===t&&P(ot,!1)}}fe(()=>{dn()}),we(()=>{$e&&cancelAnimationFrame($e),bn(),xn(l(Gt)),wn(),En(),lr(),un?.abort(),lt?.abort(),un=void 0,cn.dispose();for(let e of document.querySelectorAll(`#dsh-companion .companion-voice audio`))e.pause();for(let e of Object.values(l(_t)))In(e);bn()}),Ce(()=>(C(ve()),C(v())),()=>{P(a,Ph(ve(),v()))}),Ce(()=>C(ie()),()=>{P(o,ie())}),Ce(()=>C(ae()),()=>{P(u,ae())}),Ce(()=>C(A()),()=>{P(f,A())}),Ce(()=>(l(et),l(o),l(f)),()=>{l(et)&&(l(o)!==`ready`||l(f)!==`ready`)&&zr(!1)}),Ce(()=>(C(x()),C(v())),()=>{P(jt,x().status===`offline`?v()(`status.offline`):x().status===`working`?v()(`status.typing`):v()(`status.online`))}),Ce(()=>C(x()),()=>{P(Mt,x().items.some(e=>e.kind===`image`&&(e.state===`running`||e.state===`loading`)))}),Ce(()=>(C(x()),l(Mt)),()=>{P(Nt,x().running&&!l(Mt))}),Ce(()=>(C(de()),l(Kt),l(Gt),l(Jt),l(Qt)),()=>{de()!==l(Kt)&&(xn(l(Gt)),P(Gt,[]),P(Kt,de()),P(qt,``),P(Jt,l(Jt)+1),P(Ge,Ah()),P(Qt,l(Qt)+1),dn())}),Ce(()=>(l(Gt),l(Ge),C(v())),()=>{P(Je,l(Gt).length?void 0:Nh(l(Ge).draft,v()))}),Ce(()=>C(ge()),()=>{P(p,wh(ge()?.contextPressure))}),Ce(()=>C(ge()),()=>{P(g,Tn(ge()?.lifecycle))}),Ce(()=>l(g),()=>{Dn(l(g))}),Ce(()=>(l(p),l(Rt)),()=>{!l(p)&&l(Rt)&&kn(!1)}),Ce(()=>(l(Nt),C(de()),C(x())),()=>{Nn(l(Nt),`${de()??`none`}:${Sn(x())}`)}),Ce(()=>C(x()),()=>{P(Zt,x())}),Ce(()=>l(Zt),()=>{l(Zt)&&Pn(l(Zt))}),Ce(()=>(C(de()),l(ln)),()=>{de()!==l(ln)&&(P(ln,de()),ur())}),Ce(()=>(C(ye()),l(qt),C(de()),l(Kt)),()=>{ye()&&ye().key!==l(qt)&&de()===l(Kt)&&fn(ye())}),d(),oe();var ti=Vj();Fe(`keydown`,e,Gr),Fe(`pointerdown`,e,jn),Fe(`popstate`,e,Kr);var ni=F(ti),ri=k(ni),ii=k(ri),ai=k(ii),oi=k(ai),si=k(oi),ci=k(si);mh(k(ci),{size:18,strokeWidth:1.8,"aria-hidden":`true`}),I(ci),I(si);var li=M(si,2),ui=k(li),di=k(ui),fi=k(di),pi=e=>{var t=wA();T(()=>E(t,`src`,(C(S()),c(()=>S().companionAvatar)))),_(e,t)},mi=e=>{var t=TA();_(e,t)};m(fi,e=>{C(S()),c(()=>S().companionAvatar)?e(pi):e(mi,-1)}),I(di),I(ui),I(li);var hi=M(li,2),gi=k(hi),_i=j(gi,!0),vi=M(gi,2),yi=k(vi),bi=M(yi);I(vi),I(hi);var xi=M(hi,2),Si=k(xi);hh(k(Si),{size:18,strokeWidth:1.8,"aria-hidden":`true`}),I(Si),Se(Si,e=>P(nt,e),()=>l(nt));var Ci=M(Si,2),wi=e=>{var n=OA(),r=k(n),i=k(r),a=j(i,!0),o=M(i,2);t(o,0,()=>[[`light`,`preferences.light`],[`dark`,`preferences.dark`],[`system`,`preferences.system`]],me,(e,t)=>{var n=EA(),r=k(n);le(r);var i=M(r),a=j(i,!0);I(n),T(e=>{Oe(r,(C(Ae()),c(()=>Ae()===t[0]))),h(a,e)},[()=>(C(v()),c(()=>v()(t[1])))]),Fe(`change`,r,()=>je()(t[0])),_(e,n)}),I(r);var s=M(r,2),l=k(s),u=j(l,!0),d=M(l,2);t(d,0,()=>[[`zh`,`中文`],[`en`,`English`]],me,(e,t)=>{var n=DA(),r=k(n);le(r);var i=M(r),a=j(i,!0);I(n),T(()=>{Oe(r,(C(b()),c(()=>b()===t[0]))),h(a,c(()=>t[1]))}),Fe(`change`,r,()=>Pe()(t[0])),_(e,n)}),I(s),I(n),T((e,t,r)=>{E(n,`aria-label`,e),h(a,t),h(u,r)},[()=>(C(v()),c(()=>v()(`preferences.open`))),()=>(C(v()),c(()=>v()(`preferences.theme`))),()=>(C(v()),c(()=>v()(`preferences.language`)))]),_(e,n)};m(Ci,e=>{l(tt)&&e(wi)}),I(xi),I(oi);var Ti=M(oi,2),Ei=e=>{var t=kA(),n=M(k(t)),r=j(n,!0);I(t),T((e,n)=>{E(t,`aria-label`,e),h(r,n)},[()=>(C(v()),c(()=>v()(`loading.label`))),()=>(C(v()),c(()=>v()(`loading.progress`)))]),_(e,t)},Di=e=>{var t=AA(),n=M(k(t),2),r=j(n,!0),i=M(n,2),a=j(i,!0),o=M(i,2),s=j(o,!0);I(t),T((e,t,n,i)=>{h(r,e),h(a,t),E(o,`aria-label`,n),h(s,i)},[()=>(C(v()),c(()=>v()(`workspace.empty`))),()=>(C(v()),c(()=>v()(`workspace.chooseHint`))),()=>(C(v()),c(()=>v()(`workspace.settingsLabel`))),()=>(C(v()),c(()=>v()(`settings.open`)))]),Fe(`click`,o,()=>Ie(`recovery`)),_(e,t)},Oi=e=>{var t=jA(),n=M(k(t),2),r=j(n,!0),i=M(n,2),a=j(i,!0),o=M(i,2),s=j(o,!0);I(t),T((e,t,n)=>{h(r,e),h(a,t),h(s,n)},[()=>(C(v()),c(()=>v()(`workspace.failed`))),()=>(C(v()),c(()=>v()(`workspace.reconnectHint`))),()=>(C(v()),c(()=>v()(`reconnect`)))]),Fe(`click`,o,()=>Ie(`recovery`)),_(e,t)},ki=e=>{var t=kA(),n=M(k(t)),r=j(n,!0);I(t),T((e,n)=>{E(t,`aria-label`,e),h(r,n)},[()=>(C(v()),c(()=>v()(`loading.label`))),()=>(C(v()),c(()=>v()(`loading.progress`)))]),_(e,t)},Ai=e=>{var t=AA(),n=M(k(t),2),r=j(n,!0),i=M(n,2),a=j(i,!0),o=M(i,2),s=j(o,!0);I(t),T((e,t,n,i)=>{h(r,e),h(a,t),E(o,`aria-label`,n),h(s,i)},[()=>(C(v()),c(()=>v()(`workspace.empty`))),()=>(C(v()),c(()=>v()(`workspace.chooseHint`))),()=>(C(v()),c(()=>v()(`workspace.settingsLabel`))),()=>(C(v()),c(()=>v()(`settings.open`)))]),Fe(`click`,o,()=>Ie(`recovery`)),_(e,t)},ji=e=>{var t=jA(),n=M(k(t),2),r=j(n,!0),i=M(n,2),a=j(i,!0),o=M(i,2),s=j(o,!0);I(t),T((e,t,n)=>{h(r,e),h(a,t),h(s,n)},[()=>(C(v()),c(()=>v()(`relationship.failed`))),()=>(C(v()),c(()=>v()(`relationship.reconnectHint`))),()=>(C(v()),c(()=>v()(`reconnect`)))]),Fe(`click`,o,()=>Ie(`recovery`)),_(e,t)},Mi=e=>{var t=kA(),n=M(k(t)),r=j(n,!0);I(t),T((e,n)=>{E(t,`aria-label`,e),h(r,n)},[()=>(C(v()),c(()=>v()(`loading.label`))),()=>(C(v()),c(()=>v()(`loading.progress`)))]),_(e,t)},Ni=e=>{var t=jA(),n=M(k(t),2),r=j(n,!0),i=M(n,2),a=j(i,!0),o=M(i,2),s=j(o,!0);I(t),T((e,t,n)=>{h(r,e),h(a,t),h(s,n)},[()=>(C(v()),c(()=>v()(`session.failed`))),()=>(C(v()),c(()=>v()(`session.reconnectHint`))),()=>(C(v()),c(()=>v()(`reconnect`)))]),Fe(`click`,o,()=>Ie(`recovery`)),_(e,t)},Pi=e=>{var n=vj(),o=F(n);let u;var d=k(o),f=k(d),g=e=>{var t=MA(),n=k(t),r=j(n,!0);I(t),T(()=>h(r,l(a))),_(e,t)};m(f,e=>{l(a)&&e(g)});var b=M(f,2),ee=e=>{var t=NA(),n=j(t,!0);T(e=>{t.disabled=(l(Zt),c(()=>l(Zt).loadingOlder)),h(n,e)},[()=>(l(Zt),C(v()),c(()=>l(Zt).loadingOlder?v()(`loading.progress`):v()(`history.older`)))]),Fe(`click`,t,Zr),_(e,t)};m(b,e=>{l(Zt),c(()=>l(Zt).hasMore)&&e(ee)});var te=M(b,2),D=e=>{var t=PA(),n=M(k(t),2),r=j(n,!0),i=M(n,2),a=j(i,!0);I(t),T((e,t)=>{h(r,e),h(a,t)},[()=>(C(v()),C(S()),c(()=>v()(`welcome.greeting`,{name:S().preferredAddress}))),()=>(C(v()),c(()=>v()(`welcome.prompt`)))]),_(e,t)};m(te,e=>{l(Zt),c(()=>l(Zt).items.length===0)&&e(D)});var ie=M(te,2);t(ie,1,()=>(l(Zt),c(()=>l(Zt).messageUnits)),e=>e.id,(e,n)=>{let i=De(()=>(l(n),c(()=>l(n).items[0])));var a=s(),o=F(a),u=e=>{var t=FA(),n=j(t,!0);T(e=>{E(t,`data-testid`,(C(l(i)),c(()=>`continuity-record-${l(i).compactionId}`))),h(n,e)},[()=>(C(v()),c(()=>v()(`compact.record`)))]),_(e,t)},d=e=>{var t=IA(),n=k(t),r=j(n,!0);I(t),T(e=>{E(t,`role`,(C(l(i)),c(()=>l(i).tone===`error`?`alert`:`status`))),h(r,e)},[()=>(C(l(i)),C(v()),c(()=>yn(l(i),v())))]),_(e,t)},f=e=>{let i=De(()=>(l(n),c(()=>pn(l(n)))));var a=$A();let o;var u=k(a),d=k(u),f=k(d),p=e=>{var t=wA();T(()=>E(t,`src`,(C(S()),c(()=>S().companionAvatar)))),_(e,t)},g=e=>{var t=wA();T(()=>E(t,`src`,(C(S()),c(()=>S().userAvatar)))),_(e,t)},y=e=>{var t=LA(),r=j(t,!0);T(e=>h(r,e),[()=>(l(n),C(v()),c(()=>l(n).side===`incoming`?`✦`:v()(`you`)))]),_(e,t)};m(f,e=>{l(n),C(S()),c(()=>l(n).side===`incoming`&&S().companionAvatar)?e(p):(l(n),C(S()),c(()=>l(n).side===`outgoing`&&S().userAvatar)?e(g,1):e(y,-1))}),I(d),I(u);var b=M(u,2),x=k(b);t(x,1,()=>l(i),me,(e,i)=>{var a=s(),o=F(a),u=e=>{var r=WA();let a;t(r,5,()=>(l(i),c(()=>l(i).items)),e=>e.id,(e,t)=>{var n=UA();let r;var a=k(n);let o;var s=k(a),u=e=>{var t=RA(),n=M(F(t),2),r=j(n,!0);T(e=>h(r,e),[()=>(C(v()),c(()=>v()(`image.generating`)))]),_(e,t)},d=e=>{var n=zA(),r=j(n);T((e,i,a)=>{E(n,`aria-label`,e),E(r,`src`,(l(t),l(_t),c(()=>l(t).previewUrl??l(_t)[l(t).id]))),E(r,`alt`,i),ne(r,a)},[()=>(C(v()),l(t),c(()=>v()(`image.view`,{name:l(t).alt||v()(`image.preview`)}))),()=>(l(t),C(v()),c(()=>l(t).alt||v()(`image.preview`))),()=>(l(t),l(i),c(()=>hn(l(t),l(i).items.length>1)))]),Fe(`load`,r,e=>gn(l(t),e)),Fe(`click`,n,()=>Yr(l(t))),_(e,n)},f=e=>{var n=BA(),r=k(n),a=j(r,!0),o=M(r),s=j(o,!0);I(n),T((e,t,r)=>{ne(n,e),h(a,t),h(s,r)},[()=>(l(t),l(i),c(()=>hn(l(t),l(i).items.length>1))),()=>(C(v()),c(()=>v()(`error.image`))),()=>(C(v()),c(()=>v()(`retry`)))]),Fe(`click`,o,()=>zn(l(t))),_(e,n)},p=e=>{var n=VA(),r=k(n),a=j(r,!0);I(n),T((e,t)=>{ne(n,e),h(a,t)},[()=>(l(t),l(i),c(()=>hn(l(t),l(i).items.length>1))),()=>(C(v()),c(()=>v()(`image.failed`)))]),_(e,n)},g=e=>{var t=HA();T(e=>E(t,`aria-label`,e),[()=>(C(v()),c(()=>v()(`loading.progress`)))]),_(e,t)};m(s,e=>{l(t),c(()=>l(t).state===`running`||l(t).state===`loading`)?e(u):(l(t),l(_t),c(()=>l(t).previewUrl||l(_t)[l(t).id])?e(d,1):(l(vt),l(t),c(()=>l(vt)[l(t).id])?e(f,2):(l(t),c(()=>l(t).state===`failed`)?e(p,3):e(g,-1))))}),I(a),I(n),T(()=>{r=Me(n,1,`companion-image-entry`,null,r,{"companion-image-entry-tile":l(i).items.length>1}),E(n,`data-testid`,(l(t),c(()=>`image-${l(t).id}`))),o=Me(a,1,`companion-media`,null,o,{"companion-media-tile":l(i).items.length>1,"companion-media-single":l(i).items.length===1})}),_(e,n)}),I(r),T(()=>{a=Me(r,1,`companion-image-group`,null,a,{"companion-image-group-many":l(i).items.length>1}),E(r,`data-testid`,(l(n),c(()=>`image-group-${l(n).id}`)))}),_(e,r)},d=e=>{var t=GA();let n;SA(k(t),{get text(){return l(i),c(()=>l(i).item.text)}}),I(t),T(()=>n=Me(t,1,`cmp-chat-bubble companion-bubble`,null,n,{"cmp-skeleton":l(i).item.pending&&!l(i).item.text})),_(e,t)},f=e=>{let n=De(()=>(l(i),c(()=>l(i).item))),a=De(()=>(l(ht),C(l(n)),c(()=>l(ht)[l(n).id]??Le)));var o=ZA(),s=k(o),u=e=>{var i=XA(),o=F(i);r(o,(e,t)=>Jn?.(e,t),()=>l(n).id);var s=M(o,2),u=k(s),d=e=>{gh(e,{size:18,fill:`currentColor`,"aria-hidden":`true`})},f=e=>{_h(e,{size:18,fill:`currentColor`,"aria-hidden":`true`})};m(u,e=>{C(l(a)),c(()=>l(a).playing)?e(d):e(f,-1)}),I(s);var p=M(s,2),g=k(p),y=k(g);t(y,1,()=>(C(l(n)),c(()=>Kn(l(n).id))),me,(e,t,n)=>{var r=KA();let i;T(e=>{ne(r,`--voice-bar:${l(t)}%`),i=Me(r,1,``,null,i,{played:e})},[()=>(n+1)/28<=Gn(l(a))]),_(e,r)});var b=M(y,2);le(b),I(g);var x=M(g,2),S=k(x),ee=e=>{var t=qA(),n=j(t,!0);T(e=>h(n,e),[()=>(C(l(a)),c(()=>Wn(l(a))))]),_(e,t)},w=O(()=>(C(l(a)),c(()=>Wn(l(a))))),te=e=>{var t=JA(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`loading.progress`)))]),_(e,t)};m(S,e=>{l(w)?e(ee):e(te,-1)});var D=M(S),re=e=>{var t=YA(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`voice.playFailed`)))]),_(e,t)};m(D,e=>{l(mt),C(l(n)),c(()=>l(mt)[l(n).id])&&e(re)}),I(x),I(p),T((e,t,r,i)=>{E(o,`src`,(l(pt),C(l(n)),c(()=>l(pt)[l(n).id]))),E(s,`aria-label`,e),E(b,`max`,(C(l(a)),c(()=>l(a).duration||0))),Ne(b,(C(l(a)),c(()=>l(a).current))),b.disabled=t,E(b,`aria-label`,r),E(b,`aria-valuetext`,i)},[()=>(C(l(a)),C(v()),c(()=>l(a).playing?v()(`voice.pause`):v()(`voice.play`))),()=>(C(l(a)),c(()=>!Un(l(a)))),()=>(C(v()),c(()=>v()(`voice.progress`))),()=>(C(l(a)),C(v()),c(()=>Un(l(a))?`${Hn(l(a).current)} / ${Hn(l(a).duration,`ceil`)}`:v()(`loading.progress`)))]),Fe(`click`,s,e=>void Xn(l(n),e.currentTarget)),Fe(`input`,b,e=>Zn(e,l(n).id)),_(e,i)};m(s,e=>{l(pt),C(l(n)),c(()=>l(pt)[l(n).id])&&e(u)}),I(o),T(e=>E(o,`aria-label`,e),[()=>(C(v()),c(()=>v()(`voice.player`)))]),_(e,o)};m(o,e=>{l(i),c(()=>l(i).kind===`images`)?e(u):(l(i),c(()=>l(i).item.kind===`text`)?e(d,1):(l(i),c(()=>l(i).item.kind===`voice`)&&e(f,2)))}),_(e,a)});var ee=M(x,2),w=e=>{var t=QA(),r=j(t,!0);T(()=>h(r,(l(n),c(()=>l(n).pendingLabel)))),_(e,t)};m(ee,e=>{l(n),c(()=>l(n).pendingLabel)&&e(w)}),I(b),I(a),T(e=>{o=Me(a,1,`cmp-chat companion-row`,null,o,{"cmp-chat-start":l(n).side===`incoming`,"cmp-chat-end":l(n).side===`outgoing`,outgoing:l(n).side===`outgoing`,incoming:l(n).side===`incoming`,"companion-row-pending":l(n).pending}),E(a,`data-pending`,(l(n),c(()=>l(n).pending||void 0))),E(a,`data-testid`,e)},[()=>(l(n),c(()=>_n(l(n))))]),_(e,a)};m(o,e=>{C(l(i)),c(()=>l(i)?.kind===`continuity`)?e(u):(C(l(i)),c(()=>l(i)?.kind===`notice`)?e(d,1):e(f,-1))}),_(e,a)});var ae=M(ie,2),oe=e=>{var t=tj(),n=k(t),r=k(n),i=k(r),a=e=>{var t=wA();T(()=>E(t,`src`,(C(S()),c(()=>S().companionAvatar)))),_(e,t)},o=e=>{var t=TA();_(e,t)};m(i,e=>{C(S()),c(()=>S().companionAvatar)?e(a):e(o,-1)}),I(r),I(n);var s=M(n,2),u=M(k(s)),d=e=>{var t=ej(),n=j(t,!0);T(e=>h(n,e),[()=>(l(Pt),C(v()),c(()=>l(Pt)?v()(l(Pt)):``))]),_(e,t)};m(u,e=>{l(Pt)&&e(d)}),I(s),I(t),T(e=>E(t,`aria-label`,e),[()=>(C(v()),C(S()),c(()=>v()(`status.namedTyping`,{name:S().companionName})))]),_(e,t)};m(ae,e=>{l(Nt)&&e(oe)});var ue=M(ae,2),A=e=>{var t=nj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`messages.new`)))]),Fe(`click`,t,()=>xe(Ze,l(Ze).scrollTop=l(Ze).scrollHeight)),_(e,t)};m(ue,e=>{l(wt),l(Zt),c(()=>!l(wt)&&l(Zt).items.length>0)&&e(A)}),I(d),r(d,e=>ir?.(e)),I(o),Se(o,e=>P(Ze,e),()=>l(Ze));var de=M(o,2),fe=k(de),ge=e=>{var t=rj(),n=k(t),r=k(n),i=j(r,!0),a=M(r,2),o=j(a,!0);re(2),I(n),I(t),T(e=>{E(t,`aria-label`,e),h(i,(l(Je),c(()=>l(Je).command))),h(o,(l(Je),c(()=>l(Je).description)))},[()=>(C(v()),c(()=>v()(`command.label`)))]),Fe(`click`,n,gr),_(e,t)};m(fe,e=>{l(Je)&&e(ge)});var _e=M(fe,2),ve=e=>{var t=ij(),n=k(t),r=e=>{var t=y();T(e=>h(t,e),[()=>(C(v()),c(()=>v()(`compact.running`)))]),_(e,t)},i=e=>{var t=y();T(e=>h(t,e),[()=>(C(v()),c(()=>v()(`compact.failed`)))]),_(e,t)},a=e=>{var t=y();T(e=>h(t,e),[()=>(C(v()),c(()=>v()(`compact.done`)))]),_(e,t)};m(n,e=>{l(Ht),c(()=>l(Ht).status===`running`)?e(r):(l(Ht),c(()=>l(Ht).status===`failed`)?e(i,1):e(a,-1))}),I(t),T(()=>{E(t,`data-state`,(l(Ht),c(()=>l(Ht).status))),E(t,`role`,(l(Ht),c(()=>l(Ht).status===`failed`?`alert`:`status`)))}),_(e,t)};m(_e,e=>{l(Ht)&&e(ve)});var ye=M(_e,2),be=e=>{var n=oj();t(n,5,()=>l(Gt),e=>e.id,(e,t)=>{var n=aj(),r=k(n),i=j(r),a=M(r,2);bh(k(a),{size:13,strokeWidth:2.5,"aria-hidden":`true`}),I(a),I(n),T((e,n,o)=>{E(r,`aria-label`,e),E(i,`src`,(l(t),c(()=>l(t).previewUrl))),E(i,`alt`,n),E(a,`aria-label`,o)},[()=>(C(v()),l(t),c(()=>v()(`image.view`,{name:l(t).file.name||v()(`image.pending`)}))),()=>(l(t),C(v()),c(()=>l(t).file.name||v()(`image.pending`))),()=>(C(v()),c(()=>v()(`image.remove`)))]),Fe(`click`,r,()=>Xr(l(t))),Fe(`click`,a,()=>Tr(l(t))),_(e,n)}),I(n),T(e=>E(n,`aria-label`,e),[()=>(C(v()),c(()=>v()(`image.pending`)))]),_(e,n)};m(ye,e=>{l(Gt),c(()=>l(Gt).length>0)&&e(be)});var Ce=M(ye,2),we=k(Ce);Se(we,e=>P(qe,e),()=>l(qe));var N=M(we,2);ph(k(N),{size:19,strokeWidth:2,"aria-hidden":`true`}),I(N);var Te=M(N,2);ce(Te),Se(Te,e=>P(Ke,e),()=>l(Ke));var Oe=M(Te,2);let ke;var Ae=k(Oe),je=e=>{var t=sj();_(e,t)},Pe=e=>{{let t=De(()=>l(nn)===`recording`?2.6:2);yh(e,{size:19,get strokeWidth(){return l(t)},"aria-hidden":`true`})}};m(Ae,e=>{l(nn)===`transcribing`||l(nn)===`stopping`?e(je):e(Pe,-1)}),I(Oe);var Ie=M(Oe,2),ze=e=>{var t=lj(),n=k(t);let r;var i=k(n),a=M(k(i));I(i),I(n),Se(n,e=>P(zt,e),()=>l(zt));var o=M(n,2),s=e=>{var t=cj(),n=k(t),r=j(n,!0),i=M(n,2),a=j(i),o=M(i,2),s=j(o);I(t),Se(t,e=>P(Bt,e),()=>l(Bt)),T((e,t,n)=>{h(r,e),h(a,`${l(p),c(()=>l(p).percentage)??``}%`),h(s,`${t??``} / ${n??``}`)},[()=>(C(v()),c(()=>v()(`context.label`))),()=>(C(Eh),l(p),c(()=>Eh(l(p).usedTokens))),()=>(C(Eh),l(p),c(()=>Eh(l(p).contextWindow)))]),_(e,t)};m(o,e=>{l(Rt)&&e(s)}),I(t),T(e=>{r=Me(n,1,`cmp-btn cmp-btn-ghost cmp-btn-circle companion-context-meter`,null,r,{"companion-context-meter-open":l(Rt)}),E(n,`data-state`,(l(Ht),l(p),c(()=>l(Ht)?.status===`running`?`active`:l(Ht)?.status===`complete`?`complete`:l(Ht)?.status===`failed`?`failed`:l(p).percentage>=80?`warning`:`idle`))),E(n,`aria-label`,e),E(n,`aria-expanded`,l(Rt)),ne(a,(l(p),c(()=>`stroke-dashoffset:${100-l(p).percentage}`)))},[()=>(C(v()),l(p),c(()=>v()(`context.percentage`,{percentage:l(p).percentage})))]),Fe(`click`,n,An),_(e,t)};m(Ie,e=>{l(p)&&e(ze)});var Be=M(Ie,2),Ve=e=>{var t=uj();vh(k(t),{size:15,fill:`currentColor`,"aria-hidden":`true`}),I(t),T(e=>{E(t,`aria-label`,e),t.disabled=(C(w()),l(Xe),c(()=>!w().stop||l(Xe)))},[()=>(C(v()),c(()=>v()(`reply.stop`)))]),Fe(`click`,t,()=>void pr()),_(e,t)},He=O(()=>(C(x()),l(Ge),l(Gt),c(()=>x().running&&!l(Ge).draft.trim()&&l(Gt).length===0))),Ue=e=>{var t=dj();T((e,n)=>{E(t,`aria-label`,e),t.disabled=n},[()=>(C(v()),c(()=>v()(`message.send`))),()=>(C(x()),l(Ge),C(Ye),l(Gt),c(()=>x().canSubmit===!1||l(Ge).draft.trim().length>16e3||!l(Ge).draft.trim()&&l(Gt).length===0))]),Fe(`click`,t,ar),_(e,t)};m(Be,e=>{l(He)?e(Ve):e(Ue,-1)});var We=M(Be,2),$e=e=>{var t=fj();vh(k(t),{size:13,fill:`currentColor`,"aria-hidden":`true`}),I(t),T(e=>{E(t,`aria-label`,e),t.disabled=l(Xe)},[()=>(C(v()),c(()=>v()(`reply.stop`)))]),Fe(`click`,t,()=>void pr()),_(e,t)},et=O(()=>(C(x()),l(Ge),l(Gt),C(w()),c(()=>x().running&&(l(Ge).draft.trim()||l(Gt).length>0)&&w().stop)));m(We,e=>{l(et)&&e($e)}),I(Ce);var tt=M(Ce,2),nt=e=>{var t=pj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),C(Ye),l(Ge),c(()=>v()(`message.tooLong`,{limit:Ye,count:l(Ge).draft.trim().length})))]),_(e,t)},rt=O(()=>(l(Ge),C(Ye),c(()=>l(Ge).draft.trim().length>Ye)));m(tt,e=>{l(rt)&&e(nt)});var it=M(tt,2),at=e=>{var t=mj(),n=j(t,!0);T(e=>h(n,e),[()=>(l(nn),C(v()),l(an),c(()=>l(nn)===`stopping`?v()(`voice.stopping`):v()(`voice.recording`,{elapsed:or(l(an))})))]),_(e,t)},ot=e=>{var t=hj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`voice.transcribingProgress`)))]),_(e,t)},st=e=>{var t=gj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>cr(v())))]),_(e,t)},ct=e=>{var t=_j(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),l(sn),c(()=>v()(l(sn)||`voice.failed`)))]),_(e,t)};m(it,e=>{l(nn)===`recording`||l(nn)===`stopping`?e(at):l(nn)===`transcribing`?e(ot,1):he()===`unavailable`||!rn?e(st,2):(l(sn)||l(nn)===`unavailable`)&&e(ct,3)});var lt=M(it,2),ut=j(lt,!0);I(de),T((e,t,n,r,i,a,s)=>{u=Me(o,1,`companion-timeline`,null,u,{"timeline-ready":l(Qe)}),E(we,`accept`,Re),E(N,`aria-label`,e),E(N,`title`,t),N.disabled=!pe(),E(Te,`aria-label`,n),E(Te,`aria-autocomplete`,l(Je)?`list`:void 0),E(Te,`aria-controls`,l(Je)?`companion-command-suggestions`:void 0),E(Te,`placeholder`,r),Ne(Te,(l(Ge),c(()=>l(Ge).draft))),ke=Me(Oe,1,`cmp-btn cmp-btn-ghost cmp-btn-circle companion-microphone`,null,ke,{"companion-microphone-recording":l(nn)===`recording`,"companion-microphone-stopping":l(nn)===`stopping`}),E(Oe,`data-state`,l(nn)),E(Oe,`aria-label`,i),E(Oe,`title`,a),Oe.disabled=(l(nn),C(x()),C(he()),C(w()),c(()=>l(nn)===`stopping`||l(nn)===`transcribing`||x().canSubmit===!1||he()!==`available`||!w().transcribeVoice||!rn)),h(ut,s)},[()=>(C(v()),c(()=>v()(`image.choose`))),()=>(C(v()),c(()=>v()(`image.choose`))),()=>(C(v()),c(()=>v()(`composer.label`))),()=>(C(v()),C(S()),c(()=>v()(`composer.placeholder`,{name:S().companionName}))),()=>(l(nn),C(v()),C(he()),c(()=>l(nn)===`recording`?v()(`voice.stop`):l(nn)===`transcribing`?v()(`voice.transcribing`):he()===`loading`?v()(`voice.preparing`):he()===`available`&&rn?v()(`voice.start`):v()(`voice.micUnavailable`))),()=>(l(nn),C(v()),C(he()),c(()=>l(nn)===`recording`?v()(`voice.stop`):he()===`available`&&rn?v()(`voice.start`):cr(v()))),()=>(C(v()),c(()=>v()(`composer.shortcut`)))]),Fe(`scroll`,o,rr),Fe(`change`,we,xr),Fe(`pointerdown`,N,Er),Fe(`pointerup`,N,Dr),Fe(`pointercancel`,N,Or),Fe(`contextmenu`,N,se(function(e){Ee.call(this,i,e)})),Fe(`click`,N,kr),Fe(`input`,Te,_r),Fe(`paste`,Te,Sr),Fe(`compositionstart`,Te,yr),Fe(`compositionend`,Te,vr),Fe(`keydown`,Te,mr),Fe(`click`,Oe,()=>void fr()),_(e,n)};m(Ti,e=>{l(o)===`loading`?e(Ei):l(o)===`missing`?e(Di,1):l(o)===`error`?e(Oi,2):l(f)===`loading`?e(ki,3):l(f)===`missing`?e(Ai,4):l(f)===`error`?e(ji,5):l(u)===`loading`?e(Mi,6):(l(u),C(x()),c(()=>l(u)===`error`||x().openState===`error`)?e(Ni,7):e(Pi,-1))}),I(ai),I(ii),I(ri);var Fi=M(ri,2),Ii=e=>{var n=Lj(),r=F(n),i=j(r),a=M(r,2),o=k(a),s=k(o);bh(k(s),{size:16,strokeWidth:2,"aria-hidden":`true`}),I(s),I(o);var u=M(o,2),d=k(u);let f;var p=j(d,!0),g=M(d,2);let y;var x=j(g,!0);I(u);var ee=M(u,2),te=k(ee),D=e=>{var n=Ej(),r=k(n),i=e=>{var t=yj(),n=F(t),r=j(n),i=M(n,2),a=k(i),o=j(a,!0);SA(M(a,2),{get text(){return l(at),c(()=>l(at).text)}}),I(i),T((e,t,n)=>{h(r,`← ${e??``}`),E(a,`datetime`,t),h(o,n)},[()=>(C(v()),c(()=>v()(`diary.back`))),()=>(l(at),c(()=>l(at).name.slice(0,-3))),()=>(l(at),c(()=>l(at).name.slice(0,-3)))]),Fe(`click`,n,()=>P(at,void 0)),_(e,t)},a=e=>{var t=bj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`loading`)))]),_(e,t)},o=e=>{var t=xj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`diary.tooLarge`)))]),_(e,t)},s=e=>{var t=Sj(),n=k(t),r=j(n,!0),i=M(n,2),a=j(i,!0);I(t),T((e,t)=>{h(r,e),h(a,t)},[()=>(C(v()),c(()=>v()(`diary.failed`))),()=>(C(v()),c(()=>v()(`retry`)))]),Fe(`click`,i,()=>void $r()),_(e,t)},u=e=>{var t=Cj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`diary.empty`)))]),_(e,t)},d=e=>{var n=Tj();t(n,5,()=>l(it),me,(e,t)=>{var n=wj(),r=k(n),i=j(r,!0);re(2),I(n),T((e,t)=>{E(r,`datetime`,e),h(i,t)},[()=>(l(t),c(()=>l(t).slice(0,-3))),()=>(l(t),c(()=>l(t).slice(0,-3)))]),Fe(`click`,n,()=>void ei(l(t))),_(e,n)}),I(n),_(e,n)};m(r,e=>{l(at)?e(i):l(ot)?e(a,1):l(ct)?e(o,2):l(st)?e(s,3):(l(it),c(()=>!l(it).length)?e(u,4):e(d,-1))}),I(n),_(e,n)},ne=e=>{var n=Ij(),r=F(n),i=k(r),a=j(i,!0),o=M(i,2),s=k(o),u=j(s,!0),d=M(s,2),f=j(d),p=M(d,2),g=j(p,!0),y=M(p,2),x=j(y,!0),ee=M(y,2),te=j(ee,!0),D=M(ee,2),ne=j(D,!0);I(o),I(r);var re=M(r,2),ie=k(re),ae=j(ie,!0),oe=M(ie,2),O=e=>{var t=Dj(),n=M(k(t),2),r=j(n,!0);I(t),T(e=>h(r,e),[()=>(C(v()),c(()=>v()(`history.loading`)))]),_(e,t)},se=e=>{var t=Sj(),n=k(t),r=j(n,!0),i=M(n,2),a=j(i,!0);I(t),T((e,t)=>{h(r,e),h(a,t)},[()=>(C(v()),c(()=>v()(`history.failed`))),()=>(C(v()),c(()=>v()(`history.retry`)))]),Fe(`click`,i,()=>w().retryHistory?.()),_(e,t)},ce=e=>{var t=Cj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`history.empty`)))]),_(e,t)},le=e=>{var n=Fj(),r=F(n),i=e=>{var t=Oj(),n=j(t,!0);T(e=>{t.disabled=(C(be()),c(()=>be().loadingEarlier)),h(n,e)},[()=>(C(be()),C(v()),c(()=>be().loadingEarlier?v()(`history.loadingEarlier`):v()(`history.earlier`)))]),Fe(`click`,t,()=>void Pr()),_(e,t)};m(r,e=>{C(be()),c(()=>be().hasEarlier)&&e(i)});var a=M(r,2);t(a,7,()=>(C(be()),c(()=>be().records)),(e,t)=>`${e.at}:${t}`,(e,n,r)=>{let i=De(()=>(C(l(r)),c(()=>Nr(l(r)))));var a=Pj(),o=k(a),s=j(o,!0),u=M(o,2),d=e=>{var t=kj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`history.initial`)))]),_(e,t)},f=e=>{var t=kj(),n=j(t,!0);T(e=>h(n,e),[()=>(C(v()),c(()=>v()(`history.initial`)))]),_(e,t)},p=e=>{var n=Nj();t(n,5,()=>l(i),me,(e,t)=>{var n=Mj(),r=k(n),i=j(r,!0),a=M(r,2),o=k(a),s=j(o,!0),u=M(o),d=e=>{var n=Aj(),r=j(n);T(()=>h(r,`+${l(t),c(()=>l(t).delta)??``}`)),_(e,n)};m(u,e=>{l(t),c(()=>l(t).dimension===`affinity`&&l(t).delta)&&e(d)}),I(a);var f=M(a,2),p=e=>{var n=jj(),r=j(n);T(e=>h(r,`${e??``}: ${l(t),c(()=>l(t).reason)??``}`),[()=>(C(v()),c(()=>v()(`history.reason`)))]),_(e,n)};m(f,e=>{l(t),c(()=>l(t).reason)&&e(p)}),I(n),T((e,t)=>{h(i,e),h(s,t)},[()=>(l(t),c(()=>jr(l(t).dimension))),()=>(l(t),c(()=>Mr(l(t).dimension,l(t).after)))]),_(e,n)}),I(n),_(e,n)};m(u,e=>{l(n),c(()=>l(n).changes.seed)?e(d):(C(l(i)),c(()=>l(i).length===0)?e(f,1):e(p,-1))}),I(a),T(e=>{E(o,`datetime`,(l(n),c(()=>l(n).at))),h(s,e)},[()=>(l(n),C(b()),c(()=>Ar(l(n).at,b())))]),_(e,a)}),I(a),_(e,n)};m(oe,e=>{C(be()),c(()=>be().status===`loading`)?e(O):(C(be()),c(()=>be().status===`error`)?e(se,1):(C(be()),c(()=>be().records.length===0)?e(ce,2):e(le,-1)))}),I(re),T((e,t,n,r,i,o,s)=>{h(a,e),h(u,t),h(f,`${C(S()),c(()=>S().moodLabel)??``}${C(S()),c(()=>S().moodNote?` · ${S().moodNote}`:``)??``}`),h(g,n),h(x,r),h(te,i),h(ne,o),h(ae,s)},[()=>(C(v()),c(()=>v()(`history.current`))),()=>(C(v()),c(()=>v()(`mood.label`))),()=>(C(v()),c(()=>v()(`affinity.label`))),()=>(C(S()),C(v()),c(()=>S().affinity===void 0?v()(`loading`):`${S().affinity} · ${S().affinityStage}`)),()=>(C(v()),c(()=>v()(`history.signature`))),()=>(C(S()),C(v()),c(()=>S().signature||v()(`signature.empty`))),()=>(C(v()),c(()=>v()(`history.list`)))]),_(e,n)};m(te,e=>{l(rt)===`diary`?e(D):e(ne,-1)}),I(ee),I(a),Se(a,e=>P(Ot,e),()=>l(Ot)),T((e,t,n,r,o)=>{E(i,`aria-label`,e),E(a,`aria-label`,t),E(s,`aria-label`,n),E(d,`aria-selected`,l(rt)===`history`),f=Me(d,1,`cmp-btn cmp-btn-ghost cmp-btn-sm`,null,f,{"cmp-btn-active":l(rt)===`history`}),h(p,r),E(g,`aria-selected`,l(rt)===`diary`),y=Me(g,1,`cmp-btn cmp-btn-ghost cmp-btn-sm`,null,y,{"cmp-btn-active":l(rt)===`diary`}),h(x,o),E(ee,`aria-labelledby`,l(rt)===`history`?`companion-history-tab`:`companion-diary-tab`)},[()=>(C(v()),c(()=>v()(`relationship.close`))),()=>(C(v()),C(S()),c(()=>v()(`relationship.named`,{name:S().companionName}))),()=>(C(v()),c(()=>v()(`relationship.close`))),()=>(C(v()),c(()=>v()(`drawer.history`))),()=>(C(v()),c(()=>v()(`drawer.diary`)))]),Fe(`click`,i,()=>Br()),Fe(`click`,s,()=>Br()),Fe(`click`,d,()=>P(rt,`history`)),Fe(`click`,g,()=>void $r()),_(e,n)};m(Fi,e=>{l(et)&&e(Ii)});var Li=M(Fi,2),Ri=e=>{var t=Bj(),n=k(t),r=k(n),i=e=>{var t=Rj();T(e=>{E(t,`src`,l(ft)),E(t,`alt`,e)},[()=>(C(v()),c(()=>v()(`image.previewAlt`)))]),_(e,t)},a=e=>{var t=zj();_(e,t)};m(r,e=>{l(ft)?e(i):e(a,-1)}),I(n);var o=M(n,2);bh(k(o),{size:16,strokeWidth:2,"aria-hidden":`true`}),I(o);var s=M(o,2),u=k(s),d=j(u,!0);I(s),I(t),Se(t,e=>P(kt,e),()=>l(kt)),T((e,n,r,i)=>{E(t,`aria-label`,e),E(o,`aria-label`,n),E(u,`aria-label`,r),h(d,i)},[()=>(C(v()),c(()=>v()(`image.preview`))),()=>(C(v()),c(()=>v()(`image.close`))),()=>(C(v()),c(()=>v()(`image.closeBackdrop`))),()=>(C(v()),c(()=>v()(`close`)))]),Fe(`click`,o,()=>Ur()),Fe(`close`,t,Wr),_(e,t)};m(Li,e=>{l(dt)&&e(Ri)}),I(ni);var zi=M(ni,2),Bi=j(zi,!0);T((e,t,n,r)=>{E(ai,`aria-label`,e),E(ci,`aria-label`,t),E(ci,`aria-expanded`,l(et)),h(_i,(C(S()),c(()=>S().companionName))),Me(yi,1,`cmp-status ${C(x()),c(()=>x().status===`offline`?`cmp-status-error`:x().status===`working`?`cmp-status-warning`:`cmp-status-success`)??``}`),h(bi,`${l(jt)??``} · ${C(S()),c(()=>S().moodLabel)??``}`),E(Si,`aria-label`,n),E(Si,`aria-expanded`,l(tt)),h(Bi,r)},[()=>(C(v()),c(()=>v()(`chat.label`))),()=>(C(v()),c(()=>v()(`relationship.view`))),()=>(C(v()),c(()=>v()(`preferences.open`))),()=>(l(Tt),C(v()),c(()=>typeof l(Tt)==`string`?l(Tt):v()(l(Tt).key,l(Tt).params)))]),Fe(`click`,ci,Jr),Fe(`click`,Si,()=>P(tt,!l(tt))),_(n,ti),ue()}var Uj=`lamplitisles.companion.language`,Wj=`lamplitisles.companion.appearance`;function Gj(e){return e===`en`||e===`zh`?e:void 0}function Kj(e){return e===`light`||e===`dark`||e===`system`?e:void 0}function qj(e){for(let t of e??[]){let e=t.toLowerCase();if(e.startsWith(`zh`))return`zh`;if(e.startsWith(`en`))return`en`}return`en`}function Jj(e,t){return e===`system`?t?`dark`:`light`:e}function Yj(e){try{return globalThis.localStorage?.getItem(e)??void 0}catch{return}}function Xj(e,t){try{globalThis.localStorage?.setItem(e,t)}catch{}}function Zj(){let e=Gj(Yj(`lamplitisles.companion.language`))??qj(globalThis.navigator?.languages),t=Kj(Yj(`lamplitisles.companion.appearance`))??`system`,n=!1;try{n=globalThis.matchMedia?.(`(prefers-color-scheme: dark)`).matches??!1}catch{}return{language:e,appearance:t,systemDark:n}}var Qj=class{stream;abort;retry;watchdog;timeout;generation=0;invalidatedGeneration=0;failures=0;disposed=!1;synced=!1;lastEvent=0;syncing;refreshAgain=!1;off;options;constructor(e){this.options=e,this.off=[`online`,`pageshow`].map(t=>e.window.on(t,()=>this.foreground())),this.off.push(e.window.on(`visibilitychange`,()=>e.window.visible()?this.foreground():this.pause()))}start(){this.replace()}pause(){this.retry&&this.options.window.clearTimeout(this.retry),this.watchdog&&this.options.window.clearTimeout(this.watchdog),this.retry=this.watchdog=void 0}foreground(){!this.disposed&&this.options.window.visible()&&this.replace()}event=()=>{this.lastEvent=this.options.now(),this.watchdog&&this.options.window.clearTimeout(this.watchdog),this.watchdog=void 0,this.synced&&this.watch()};replace(){if(this.disposed||!this.options.window.visible())return;this.pause(),this.timeout&&this.options.window.clearTimeout(this.timeout),this.timeout=void 0,this.generation+=1;let e=this.generation;this.lastEvent=this.options.now(),this.abort?.abort(),this.stream?.close(),this.synced=!1,this.options.changed(!1);let t=this.stream=this.options.open();t.onopen=this.event,t.onmessage=()=>{this.event(),this.catchUp(e)},t.addEventListener(`heartbeat`,this.event),t.onerror=()=>{!this.disposed&&e===this.generation&&(this.watchdog&&this.options.window.clearTimeout(this.watchdog),this.watchdog=void 0,this.invalidatedGeneration=e,this.abort?.abort(),this.options.changed(!1),this.synced=!1,this.schedule())},this.catchUp(e)}catchUp(e){if(this.disposed||e!==this.generation)return Promise.resolve();if(this.refreshAgain=!0,this.syncing){let t=this.syncing;return t.finally(()=>void 0).then(()=>(this.syncing===t&&(this.syncing=void 0),this.catchUp(e)))}return this.syncing=(async()=>{for(;this.refreshAgain&&!this.disposed&&e===this.generation;){this.refreshAgain=!1,this.abort?.abort();let t=this.abort=new AbortController;this.timeout=this.options.window.setTimeout(()=>t.abort(),15e3);try{await this.options.sync(t.signal,e)}finally{this.timeout&&this.options.window.clearTimeout(this.timeout),this.timeout=void 0}}!this.disposed&&e===this.generation&&this.invalidatedGeneration!==e&&(this.failures=0,this.synced=!0,this.options.changed(!0),this.watch())})().catch(()=>{!this.disposed&&e===this.generation&&this.schedule()}).finally(()=>{this.syncing=void 0}),this.syncing}schedule(){if(this.retry||this.disposed||!this.options.window.visible())return;let e=[1e3,2e3,4e3,8e3,15e3][Math.min(this.failures++,4)];this.retry=this.options.window.setTimeout(()=>{this.retry=void 0,this.replace()},e)}watch(){if(this.watchdog||this.disposed||!this.options.window.visible())return;let e=Math.max(0,this.lastEvent+45e3-this.options.now());this.watchdog=this.options.window.setTimeout(()=>{this.watchdog=void 0,this.options.now()-this.lastEvent>=45e3?this.replace():this.watch()},e)}close(){this.disposed=!0,this.abort?.abort(),this.stream?.close(),this.pause(),this.timeout&&this.options.window.clearTimeout(this.timeout),this.off.forEach(e=>e())}};function $j(e){return e===`sending`?{pending:!0,labelKey:`delivery.sending`}:e===`queued`?{pending:!0,labelKey:`delivery.queued`}:e===`unresolved`?{pending:!0,labelKey:`delivery.unresolved`}:{pending:!1,labelKey:void 0}}Object.freeze({neutral:`如常`,serene:`平静`,bright:`愉快`,playful:`俏皮`,tender:`柔和`,pensive:`若有所思`,tired:`疲惫`,low:`低落`}),Object.freeze({mood:`neutral`});function eM(e){return Number.isFinite(e)?Math.max(0,Math.min(100,Math.trunc(e))):0}function tM(e){let t=eM(e);return t<20?`疏离`:t<40?`生疏`:t<60?`熟悉`:t<80?`亲近`:`深厚`}function nM(e,t){te(t,!0);let n=ae(pe({cursor:0,before:null,hasMore:!1,hasChangesMore:!1,pendingCount:0,cancellable:[],name:`Lamplit`,typing:!1,messages:[],storageError:!1,results:[]})),r=ae(null),i=ae(!1),a=ae(!1),o,s=ae(!1),c=ae(!1),u=ae(``),d=!1,p=!1,m=0,h,g=0,_,y=new AbortController,b=ae(pe([])),x=new Map;function S(){let e=new Set(l(n).messages.map(e=>e.id));P(b,l(b).filter(t=>!e.has(t.id)),!0);for(let[t,n]of x)e.has(t)&&(x.delete(t),n())}let C=Zj(),ee=ae(pe(C.language)),T=ae(pe(C.appearance)),E=ae(pe(C.systemDark)),D=O(()=>Nm(l(ee))),ne=O(()=>Jj(l(T),l(E)));w(()=>{document.documentElement.lang=l(ee)===`zh`?`zh-Hans`:`en`,document.documentElement.dataset.theme=l(ne)===`dark`?`night-voyage`:`sticker-messenger`});function re(e){P(ee,e,!0),Xj(Uj,e)}function ie(e){P(T,e,!0),Xj(Wj,e)}function oe(e){return l(D)(`mood.${e}`)}function k(e){let t={疏离:`affinity.distant`,生疏:`affinity.unfamiliar`,熟悉:`affinity.familiar`,亲近:`affinity.close`,深厚:`affinity.deep`}[tM(e)];return l(D)(t)}let se=O(()=>{let e=[],t=l(n).results??[],r=new Map(t.flatMap(e=>e.sourceIds.map(t=>[t,e]))),o=new Set(t.map(e=>e.sourceIds.at(-1)).filter(e=>!!e)),d=[...l(n).messages.filter(e=>e.delivery!==`replaced`),...l(b).filter(e=>e.delivery!==`replaced`&&!l(n).messages.some(t=>t.id===e.id))],f=e=>{let t=e.answers.map((t,n)=>{let r=n===0?``:`:${n}`,i=`${e.id}:answer${r}`;return{id:i,side:`incoming`,items:[{id:i,messageKey:i,kind:`text`,side:`incoming`,text:t}]}});for(let n of e.voices)t.unshift({id:`${e.id}:voice:${n.id}`,side:`incoming`,items:[{id:`${e.id}:voice:${n.id}`,messageKey:`${e.id}:voice:${n.id}`,kind:`voice`,side:`incoming`,url:n.url}]});let n=[];for(let t of e.images)n.push({id:t.id,messageKey:e.id,kind:`image`,side:`incoming`,state:`ready`,previewUrl:t.url,alt:t.name});let r=e.status===`interrupted`||e.status===`cancelled`;if((e.error||e.status===`failed`||r)&&n.push({id:`${e.id}:error`,messageKey:e.id,kind:`notice`,side:`incoming`,tone:`error`,text:e.error===`cancelled`||r?l(D)(`reply.stopped`):l(D)(`reply.failed`)}),n.length&&t.length){let e=t.at(-1);t[t.length-1]={...e,items:[...e.items,...n]}}else n.length&&t.push({id:`${e.id}:answer`,side:`incoming`,items:n});return t};for(let[t,n]of d.entries()){let i=$j(n.delivery),a=n.sequence>0?n.sequence*2:2**53-1-(d.length-t)*2,s={id:`${n.id}:user`,messageKey:`${n.id}:user`,kind:`text`,side:`outgoing`,text:n.input,time:n.created,pending:[`sending`,`pending`,`unresolved`].includes(n.delivery),waitsForCurrentReply:n.delivery===`pending`};e.push({order:a,unit:{id:s.id,side:`outgoing`,items:[...n.input?[s]:[],...(n.inputImages??[]).map(e=>({id:e.id,messageKey:s.messageKey,kind:`image`,side:`outgoing`,state:`ready`,previewUrl:e.url,alt:e.name}))],time:n.created,pending:i.pending,pendingLabel:i.labelKey?l(D)(i.labelKey):void 0}});let c=r.get(n.id),u=[];c&&o.has(n.id)&&(u=f(c)),n.inputError&&(u=[...u,{id:`${n.id}:input-error`,side:`incoming`,items:[{id:`${n.id}:input-error`,messageKey:n.id,kind:`notice`,side:`incoming`,tone:`error`,text:n.inputError}]}]),u.forEach((t,n)=>e.push({order:a+1+n/1e3,unit:t}))}for(let n of t)d.some(e=>e.id===n.sourceIds.at(-1))||f(n).forEach((t,r)=>e.push({order:n.sequence*2+1+r/1e3,unit:t}));e.sort((e,t)=>e.order-t.order);let p=Je(e.map(({unit:e})=>e),l(n).compactions??[]);return{items:p.flatMap(e=>e.items),messageUnits:p,pendingCount:l(n).pendingCount,canSubmit:l(s)&&l(c),running:l(n).typing,status:!l(s)&&l(c)?`offline`:l(n).typing?`working`:`ready`,openState:l(c)?`open`:`loading`,hasMore:l(i),loadingOlder:l(a),promptError:l(u)||(l(n).storageError?l(D)(`error.storage`):void 0)}});async function ce(e,t=0){if(t&&(m=Math.max(m,t)),h)return t&&t!==g?h.catch(()=>void 0).then(()=>ce(e,t)):(p=!0,h);let a=(async()=>{try{do{p=!1;let a=await fetch(o===void 0?`/api/session`:`/api/session?after=${o}`,{signal:e?AbortSignal.any([y.signal,e]):y.signal});if(!a.ok)throw Error(l(D)(`connection.interrupted`));let s=await a.json();d||t&&t!==m||(o===void 0&&(P(r,s.before,!0),P(i,s.hasMore,!0)),P(n,{...s,messages:Ie(l(n).messages,s.messages),results:Le(l(n).results??[],s.results??[])},!0),S(),o=s.cursor,P(c,!0),s.hasChangesMore&&(p=!0))}while(p&&!d)}catch{throw Error(l(D)(`connection.interrupted`))}})();h=a,g=t;try{await a}finally{h===a&&(h=void 0)}}class le extends Error{}async function A(e,t){let n=await fetch(e,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(t),signal:y.signal});if(n.status===422)throw new le(l(D)(`message.invalid`));if(!n.ok)throw Error(l(D)(`message.unconfirmed`))}let de={async loadOlder(){if(!l(a)&&l(i)&&l(r)!==null){P(a,!0);try{let e=await fetch(`/api/session?before=${l(r)}`,{signal:y.signal});if(!e.ok)throw Error(l(D)(`history.loadFailed`));let t=await e.json();P(n,{...l(n),messages:Ie(l(n).messages,t.messages),results:Le(l(n).results??[],t.results??[])},!0),P(r,t.before,!0),P(i,t.hasMore,!0)}catch{d||P(u,l(D)(`history.loadFailed`),!0)}finally{P(a,!1)}}},async transcribeVoice(e,t){let n=await fetch(`/api/voice/transcribe`,{method:`POST`,headers:{"content-type":e.mediaType},body:e.blob,signal:t?AbortSignal.any([t,y.signal]):y.signal});if(!n.ok)throw Error(`Transcription failed`);return n.json()},async send(e,t,r){if(!l(s))throw new Dh(l(D)(`connection.interrupted`));if(e===`/compact`&&!t.length){try{await A(`/api/compact`,{}),await ce()}catch{throw new Dh(l(D)(`compact.admissionFailed`))}return}let i=crypto.randomUUID(),a={id:i,input:e,delivery:`sending`,inputError:null,created:Date.now(),sequence:0,revision:0,inputImages:t.map(e=>({id:e.id,name:e.file.name,url:e.previewUrl}))};P(b,[...l(b),a],!0),P(u,``);let o=!1;try{let a=await Ge(t),s=i;P(b,l(b).map(e=>e.id===s?{...e,id:i}:e),!0),x.set(i,()=>{o=!0,r?.({reason:`observed`})}),S(),await A(`/api/messages`,{id:i,input:e,images:a,replaces:l(n).draft?.sourceIds??[]}),P(b,l(b).map(e=>e.id===i?{...e,delivery:`pending`}:e),!0),await ce()}catch(e){if(o)return;throw P(b,l(b).filter(e=>e.id!==i),!0),x.delete(i),P(u,e instanceof le?e.message:l(D)(`message.unconfirmedDraft`),!0),r?.({reason:`failed`}),e}},async stop(){for(let e of l(n).cancellable)await A(`/api/cancel`,{id:e});await ce()}};fe(()=>{let e=matchMedia(`(prefers-color-scheme: dark)`),t=()=>{P(E,e.matches,!0)};return t(),e.addEventListener(`change`,t),_=new Qj({open:()=>new EventSource(`/api/events`),sync:(e,t)=>ce(e,t),now:()=>Date.now(),changed:e=>{P(s,e,!0)},window:{visible:()=>document.visibilityState!==`hidden`,on:(e,t)=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),setTimeout:(e,t)=>window.setTimeout(e,t),clearTimeout:e=>window.clearTimeout(e)}}),_.start(),()=>{d=!0,_?.close(),y.abort(),x.clear(),e.removeEventListener(`change`,t)}}),Ae(`1uha8ag`,e=>{f(()=>{v.title=`${l(n).name??``} · Lamplit`})});{let t=O(()=>l(n).speech?`available`:`unavailable`),r=O(()=>l(n).keetLosses??[]),i=O(()=>({companionName:l(n).name,userName:`你`,preferredAddress:`你`,companionAvatar:l(n).avatars?.companion,userAvatar:l(n).avatars?.user,signature:l(n).relationship?.signature??``,mood:l(n).relationship?.mood??`neutral`,moodLabel:oe(l(n).relationship?.mood??`neutral`),moodNote:l(n).relationship?.note,affinity:l(n).relationship?.affinity,affinityStage:k(l(n).relationship?.affinity??50)})),a=O(()=>l(c)?`ready`:`loading`),o=O(()=>l(c)?`ready`:`loading`),s=O(()=>l(n).relationship?`ready`:`loading`),u=O(()=>({lifecycle:l(n).lifecycle,contextPressure:l(n).context&&l(n).context.activeTokens!==null&&l(n).context.windowTokens!==null?{contextWindow:l(n).context.windowTokens,projectedTokens:l(n).context.activeTokens}:void 0})),d=O(()=>({status:l(c)?`ready`:`loading`,records:l(n).history??[],hasEarlier:!1}));Hj(e,{get projection(){return l(se)},get actions(){return de},get t(){return l(D)},get locale(){return l(ee)},get appearance(){return l(T)},onLanguageChange:re,onAppearanceChange:ie,sessionId:`partner`,get voiceCapability(){return l(t)},get imageLimits(){return l(n).imageLimits},onHistoryOpenChange:void 0,get keetLosses(){return l(r)},get identity(){return l(i)},get workspaceReadiness(){return l(a)},get sessionReadiness(){return l(o)},get relationshipReadiness(){return l(s)},get continuity(){return l(u)},get history(){return l(d)},get recoveredDraft(){return l(n).draft}})}ue()}export{nM as component};
|