457 lines
700 KiB
JavaScript
457 lines
700 KiB
JavaScript
import{e as gg,w as xs,i as Rd,r as Ge,s as Dd,c as ht,d as Er,h as Pd,F as fr,g as ui,a as yg,o as mo,b as X0,f as bg,j as pe,T as wg,k as dt,l as at,m as ke,t as Vt,n as Se,p as Ke,q as fi,u as ii,v as ks,x as bt,y as Ht,z as $d,A as s0,E as Fd,B as i0,C as a0,D as vg,G as o0,H as Bd,I as _g,J as xg,K as da,L as ma,M as kg,N as Sg,O as Ag,P as Tg,Q as Eg,R as Ng}from"./vendor-DwrfALIr.js";import{M as Va}from"./markdown-_Dy2zPzC.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/*!
|
||
* shared v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function Cg(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ja=typeof window<"u",Nr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ig=(e,t,n)=>Mg({l:e,k:t,s:n}),Mg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Tt=e=>typeof e=="number"&&isFinite(e),Og=e=>qd(e)==="[object Date]",Tr=e=>qd(e)==="[object RegExp]",po=e=>ze(e)&&Object.keys(e).length===0,Xt=Object.assign,Lg=Object.create,ot=(e=null)=>Lg(e);let _f;const lr=()=>_f||(_f=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ot());function xf(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function kf(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Rg(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${kf(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${kf(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const Dg=Object.prototype.hasOwnProperty;function Pn(e,t){return Dg.call(e,t)}const mt=Array.isArray,ct=e=>typeof e=="function",be=e=>typeof e=="string",Ve=e=>typeof e=="boolean",Ye=e=>e!==null&&typeof e=="object",Pg=e=>Ye(e)&&ct(e.then)&&ct(e.catch),zd=Object.prototype.toString,qd=e=>zd.call(e),ze=e=>{if(!Ye(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},$g=e=>e==null?"":mt(e)||ze(e)&&e.toString===zd?JSON.stringify(e,null,2):String(e);function Fg(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function go(e){let t=e;return()=>++t}const pa=e=>!Ye(e)||mt(e);function Oa(e,t){if(pa(e)||pa(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Ye(r[i])&&!Ye(s[i])&&(s[i]=Array.isArray(r[i])?[]:ot()),pa(s[i])||pa(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}/*!
|
||
* message-compiler v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function Bg(e,t,n){return{line:e,column:t,offset:n}}function Wa(e,t,n){return{start:e,end:t}}const zg=/\{([0-9a-zA-Z]+)\}/g;function Ud(e,...t){return t.length===1&&qg(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(zg,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Hd=Object.assign,Sf=e=>typeof e=="string",qg=e=>e!==null&&typeof e=="object";function Vd(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const Y0={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Ug={[Y0.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Hg(e,t,...n){const r=Ud(Ug[e],...n||[]),s={message:String(r),code:e};return t&&(s.location=t),s}const Le={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Vg={[Le.EXPECTED_TOKEN]:"Expected token: '{0}'",[Le.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Le.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Le.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Le.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Le.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Le.EMPTY_PLACEHOLDER]:"Empty placeholder",[Le.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Le.INVALID_LINKED_FORMAT]:"Invalid linked format",[Le.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Le.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Le.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Le.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Le.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Le.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Os(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=Ud((s||Vg)[e]||"",...i||[]),u=new SyntaxError(String(o));return u.code=e,t&&(u.location=t),u.domain=r,u}function jg(e){throw e}const sr=" ",Wg="\r",nn=`
|
||
`,Gg="\u2028",Kg="\u2029";function Xg(e){const t=e;let n=0,r=1,s=1,i=0;const o=j=>t[j]===Wg&&t[j+1]===nn,u=j=>t[j]===nn,h=j=>t[j]===Kg,d=j=>t[j]===Gg,p=j=>o(j)||u(j)||h(j)||d(j),b=()=>n,v=()=>r,k=()=>s,x=()=>i,A=j=>o(j)||h(j)||d(j)?nn:t[j],E=()=>A(n),M=()=>A(n+i);function q(){return i=0,p(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function L(){return o(n+i)&&i++,i++,t[n+i]}function O(){n=0,r=1,s=1,i=0}function F(j=0){i=j}function z(){const j=n+i;for(;j!==n;)q();i=0}return{index:b,line:v,column:k,peekOffset:x,charAt:A,currentChar:E,currentPeek:M,next:q,peek:L,reset:O,resetPeek:F,skipToPeek:z}}const wr=void 0,Yg=".",Af="'",Jg="tokenizer";function Qg(e,t={}){const n=t.location!==!1,r=Xg(e),s=()=>r.index(),i=()=>Bg(r.line(),r.column(),r.index()),o=i(),u=s(),h={currentType:14,offset:u,startLoc:o,endLoc:o,lastType:14,lastOffset:u,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},d=()=>h,{onError:p}=t;function b(C,$,Z,..._e){const Xe=d();if($.column+=Z,$.offset+=Z,p){const Pe=n?Wa(Xe.startLoc,$):null,J=Os(C,Pe,{domain:Jg,args:_e});p(J)}}function v(C,$,Z){C.endLoc=i(),C.currentType=$;const _e={type:$};return n&&(_e.loc=Wa(C.startLoc,C.endLoc)),Z!=null&&(_e.value=Z),_e}const k=C=>v(C,14);function x(C,$){return C.currentChar()===$?(C.next(),$):(b(Le.EXPECTED_TOKEN,i(),0,$),"")}function A(C){let $="";for(;C.currentPeek()===sr||C.currentPeek()===nn;)$+=C.currentPeek(),C.peek();return $}function E(C){const $=A(C);return C.skipToPeek(),$}function M(C){if(C===wr)return!1;const $=C.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$===95}function q(C){if(C===wr)return!1;const $=C.charCodeAt(0);return $>=48&&$<=57}function L(C,$){const{currentType:Z}=$;if(Z!==2)return!1;A(C);const _e=M(C.currentPeek());return C.resetPeek(),_e}function O(C,$){const{currentType:Z}=$;if(Z!==2)return!1;A(C);const _e=C.currentPeek()==="-"?C.peek():C.currentPeek(),Xe=q(_e);return C.resetPeek(),Xe}function F(C,$){const{currentType:Z}=$;if(Z!==2)return!1;A(C);const _e=C.currentPeek()===Af;return C.resetPeek(),_e}function z(C,$){const{currentType:Z}=$;if(Z!==8)return!1;A(C);const _e=C.currentPeek()===".";return C.resetPeek(),_e}function j(C,$){const{currentType:Z}=$;if(Z!==9)return!1;A(C);const _e=M(C.currentPeek());return C.resetPeek(),_e}function G(C,$){const{currentType:Z}=$;if(!(Z===8||Z===12))return!1;A(C);const _e=C.currentPeek()===":";return C.resetPeek(),_e}function Q(C,$){const{currentType:Z}=$;if(Z!==10)return!1;const _e=()=>{const Pe=C.currentPeek();return Pe==="{"?M(C.peek()):Pe==="@"||Pe==="%"||Pe==="|"||Pe===":"||Pe==="."||Pe===sr||!Pe?!1:Pe===nn?(C.peek(),_e()):te(C,!1)},Xe=_e();return C.resetPeek(),Xe}function ye(C){A(C);const $=C.currentPeek()==="|";return C.resetPeek(),$}function ce(C){const $=A(C),Z=C.currentPeek()==="%"&&C.peek()==="{";return C.resetPeek(),{isModulo:Z,hasSpace:$.length>0}}function te(C,$=!0){const Z=(Xe=!1,Pe="",J=!1)=>{const se=C.currentPeek();return se==="{"?Pe==="%"?!1:Xe:se==="@"||!se?Pe==="%"?!0:Xe:se==="%"?(C.peek(),Z(Xe,"%",!0)):se==="|"?Pe==="%"||J?!0:!(Pe===sr||Pe===nn):se===sr?(C.peek(),Z(!0,sr,J)):se===nn?(C.peek(),Z(!0,nn,J)):!0},_e=Z();return $&&C.resetPeek(),_e}function he(C,$){const Z=C.currentChar();return Z===wr?wr:$(Z)?(C.next(),Z):null}function V(C){const $=C.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36}function oe(C){return he(C,V)}function Y(C){const $=C.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36||$===45}function fe(C){return he(C,Y)}function ee(C){const $=C.charCodeAt(0);return $>=48&&$<=57}function Ae(C){return he(C,ee)}function Oe(C){const $=C.charCodeAt(0);return $>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102}function Te(C){return he(C,Oe)}function H(C){let $="",Z="";for(;$=Ae(C);)Z+=$;return Z}function me(C){E(C);const $=C.currentChar();return $!=="%"&&b(Le.EXPECTED_TOKEN,i(),0,$),C.next(),"%"}function Ee(C){let $="";for(;;){const Z=C.currentChar();if(Z==="{"||Z==="}"||Z==="@"||Z==="|"||!Z)break;if(Z==="%")if(te(C))$+=Z,C.next();else break;else if(Z===sr||Z===nn)if(te(C))$+=Z,C.next();else{if(ye(C))break;$+=Z,C.next()}else $+=Z,C.next()}return $}function Je(C){E(C);let $="",Z="";for(;$=fe(C);)Z+=$;return C.currentChar()===wr&&b(Le.UNTERMINATED_CLOSING_BRACE,i(),0),Z}function _t(C){E(C);let $="";return C.currentChar()==="-"?(C.next(),$+=`-${H(C)}`):$+=H(C),C.currentChar()===wr&&b(Le.UNTERMINATED_CLOSING_BRACE,i(),0),$}function xt(C){return C!==Af&&C!==nn}function Pt(C){E(C),x(C,"'");let $="",Z="";for(;$=he(C,xt);)$==="\\"?Z+=dn(C):Z+=$;const _e=C.currentChar();return _e===nn||_e===wr?(b(Le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),_e===nn&&(C.next(),x(C,"'")),Z):(x(C,"'"),Z)}function dn(C){const $=C.currentChar();switch($){case"\\":case"'":return C.next(),`\\${$}`;case"u":return qn(C,$,4);case"U":return qn(C,$,6);default:return b(Le.UNKNOWN_ESCAPE_SEQUENCE,i(),0,$),""}}function qn(C,$,Z){x(C,$);let _e="";for(let Xe=0;Xe<Z;Xe++){const Pe=Te(C);if(!Pe){b(Le.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${$}${_e}${C.currentChar()}`);break}_e+=Pe}return`\\${$}${_e}`}function Ne(C){return C!=="{"&&C!=="}"&&C!==sr&&C!==nn}function ge(C){E(C);let $="",Z="";for(;$=he(C,Ne);)Z+=$;return Z}function kt(C){let $="",Z="";for(;$=oe(C);)Z+=$;return Z}function ue(C){const $=Z=>{const _e=C.currentChar();return _e==="{"||_e==="%"||_e==="@"||_e==="|"||_e==="("||_e===")"||!_e||_e===sr?Z:(Z+=_e,C.next(),$(Z))};return $("")}function Be(C){E(C);const $=x(C,"|");return E(C),$}function mn(C,$){let Z=null;switch(C.currentChar()){case"{":return $.braceNest>=1&&b(Le.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),C.next(),Z=v($,2,"{"),E(C),$.braceNest++,Z;case"}":return $.braceNest>0&&$.currentType===2&&b(Le.EMPTY_PLACEHOLDER,i(),0),C.next(),Z=v($,3,"}"),$.braceNest--,$.braceNest>0&&E(C),$.inLinked&&$.braceNest===0&&($.inLinked=!1),Z;case"@":return $.braceNest>0&&b(Le.UNTERMINATED_CLOSING_BRACE,i(),0),Z=Mn(C,$)||k($),$.braceNest=0,Z;default:{let Xe=!0,Pe=!0,J=!0;if(ye(C))return $.braceNest>0&&b(Le.UNTERMINATED_CLOSING_BRACE,i(),0),Z=v($,1,Be(C)),$.braceNest=0,$.inLinked=!1,Z;if($.braceNest>0&&($.currentType===5||$.currentType===6||$.currentType===7))return b(Le.UNTERMINATED_CLOSING_BRACE,i(),0),$.braceNest=0,vn(C,$);if(Xe=L(C,$))return Z=v($,5,Je(C)),E(C),Z;if(Pe=O(C,$))return Z=v($,6,_t(C)),E(C),Z;if(J=F(C,$))return Z=v($,7,Pt(C)),E(C),Z;if(!Xe&&!Pe&&!J)return Z=v($,13,ge(C)),b(Le.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,Z.value),E(C),Z;break}}return Z}function Mn(C,$){const{currentType:Z}=$;let _e=null;const Xe=C.currentChar();switch((Z===8||Z===9||Z===12||Z===10)&&(Xe===nn||Xe===sr)&&b(Le.INVALID_LINKED_FORMAT,i(),0),Xe){case"@":return C.next(),_e=v($,8,"@"),$.inLinked=!0,_e;case".":return E(C),C.next(),v($,9,".");case":":return E(C),C.next(),v($,10,":");default:return ye(C)?(_e=v($,1,Be(C)),$.braceNest=0,$.inLinked=!1,_e):z(C,$)||G(C,$)?(E(C),Mn(C,$)):j(C,$)?(E(C),v($,12,kt(C))):Q(C,$)?(E(C),Xe==="{"?mn(C,$)||_e:v($,11,ue(C))):(Z===8&&b(Le.INVALID_LINKED_FORMAT,i(),0),$.braceNest=0,$.inLinked=!1,vn(C,$))}}function vn(C,$){let Z={type:14};if($.braceNest>0)return mn(C,$)||k($);if($.inLinked)return Mn(C,$)||k($);switch(C.currentChar()){case"{":return mn(C,$)||k($);case"}":return b(Le.UNBALANCED_CLOSING_BRACE,i(),0),C.next(),v($,3,"}");case"@":return Mn(C,$)||k($);default:{if(ye(C))return Z=v($,1,Be(C)),$.braceNest=0,$.inLinked=!1,Z;const{isModulo:Xe,hasSpace:Pe}=ce(C);if(Xe)return Pe?v($,0,Ee(C)):v($,4,me(C));if(te(C))return v($,0,Ee(C));break}}return Z}function rt(){const{currentType:C,offset:$,startLoc:Z,endLoc:_e}=h;return h.lastType=C,h.lastOffset=$,h.lastStartLoc=Z,h.lastEndLoc=_e,h.offset=s(),h.startLoc=i(),r.currentChar()===wr?v(h,14):vn(r,h)}return{nextToken:rt,currentOffset:s,currentPosition:i,context:d}}const Zg="parser",e2=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function t2(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"<22>"}}}function n2(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function s(L,O,F,z,...j){const G=L.currentPosition();if(G.offset+=z,G.column+=z,n){const Q=t?Wa(F,G):null,ye=Os(O,Q,{domain:Zg,args:j});n(ye)}}function i(L,O,F,z,...j){const G=L.currentPosition();if(G.offset+=z,G.column+=z,r){const Q=t?Wa(F,G):null;r(Hg(O,Q,j))}}function o(L,O,F){const z={type:L};return t&&(z.start=O,z.end=O,z.loc={start:F,end:F}),z}function u(L,O,F,z){t&&(L.end=O,L.loc&&(L.loc.end=F))}function h(L,O){const F=L.context(),z=o(3,F.offset,F.startLoc);return z.value=O,u(z,L.currentOffset(),L.currentPosition()),z}function d(L,O){const F=L.context(),{lastOffset:z,lastStartLoc:j}=F,G=o(5,z,j);return G.index=parseInt(O,10),L.nextToken(),u(G,L.currentOffset(),L.currentPosition()),G}function p(L,O,F){const z=L.context(),{lastOffset:j,lastStartLoc:G}=z,Q=o(4,j,G);return Q.key=O,F===!0&&(Q.modulo=!0),L.nextToken(),u(Q,L.currentOffset(),L.currentPosition()),Q}function b(L,O){const F=L.context(),{lastOffset:z,lastStartLoc:j}=F,G=o(9,z,j);return G.value=O.replace(e2,t2),L.nextToken(),u(G,L.currentOffset(),L.currentPosition()),G}function v(L){const O=L.nextToken(),F=L.context(),{lastOffset:z,lastStartLoc:j}=F,G=o(8,z,j);return O.type!==12?(s(L,Le.UNEXPECTED_EMPTY_LINKED_MODIFIER,F.lastStartLoc,0),G.value="",u(G,z,j),{nextConsumeToken:O,node:G}):(O.value==null&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,Ln(O)),G.value=O.value||"",u(G,L.currentOffset(),L.currentPosition()),{node:G})}function k(L,O){const F=L.context(),z=o(7,F.offset,F.startLoc);return z.value=O,u(z,L.currentOffset(),L.currentPosition()),z}function x(L){const O=L.context(),F=o(6,O.offset,O.startLoc);let z=L.nextToken();if(z.type===9){const j=v(L);F.modifier=j.node,z=j.nextConsumeToken||L.nextToken()}switch(z.type!==10&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Ln(z)),z=L.nextToken(),z.type===2&&(z=L.nextToken()),z.type){case 11:z.value==null&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Ln(z)),F.key=k(L,z.value||"");break;case 5:z.value==null&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Ln(z)),F.key=p(L,z.value||"");break;case 6:z.value==null&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Ln(z)),F.key=d(L,z.value||"");break;case 7:z.value==null&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Ln(z)),F.key=b(L,z.value||"");break;default:{s(L,Le.UNEXPECTED_EMPTY_LINKED_KEY,O.lastStartLoc,0);const j=L.context(),G=o(7,j.offset,j.startLoc);return G.value="",u(G,j.offset,j.startLoc),F.key=G,u(F,j.offset,j.startLoc),{nextConsumeToken:z,node:F}}}return u(F,L.currentOffset(),L.currentPosition()),{node:F}}function A(L){const O=L.context(),F=O.currentType===1?L.currentOffset():O.offset,z=O.currentType===1?O.endLoc:O.startLoc,j=o(2,F,z);j.items=[];let G=null,Q=null;do{const te=G||L.nextToken();switch(G=null,te.type){case 0:te.value==null&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Ln(te)),j.items.push(h(L,te.value||""));break;case 6:te.value==null&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Ln(te)),j.items.push(d(L,te.value||""));break;case 4:Q=!0;break;case 5:te.value==null&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Ln(te)),j.items.push(p(L,te.value||"",!!Q)),Q&&(i(L,Y0.USE_MODULO_SYNTAX,O.lastStartLoc,0,Ln(te)),Q=null);break;case 7:te.value==null&&s(L,Le.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Ln(te)),j.items.push(b(L,te.value||""));break;case 8:{const he=x(L);j.items.push(he.node),G=he.nextConsumeToken||null;break}}}while(O.currentType!==14&&O.currentType!==1);const ye=O.currentType===1?O.lastOffset:L.currentOffset(),ce=O.currentType===1?O.lastEndLoc:L.currentPosition();return u(j,ye,ce),j}function E(L,O,F,z){const j=L.context();let G=z.items.length===0;const Q=o(1,O,F);Q.cases=[],Q.cases.push(z);do{const ye=A(L);G||(G=ye.items.length===0),Q.cases.push(ye)}while(j.currentType!==14);return G&&s(L,Le.MUST_HAVE_MESSAGES_IN_PLURAL,F,0),u(Q,L.currentOffset(),L.currentPosition()),Q}function M(L){const O=L.context(),{offset:F,startLoc:z}=O,j=A(L);return O.currentType===14?j:E(L,F,z,j)}function q(L){const O=Qg(L,Hd({},e)),F=O.context(),z=o(0,F.offset,F.startLoc);return t&&z.loc&&(z.loc.source=L),z.body=M(O),e.onCacheKey&&(z.cacheKey=e.onCacheKey(L)),F.currentType!==14&&s(O,Le.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,L[F.offset]||""),u(z,O.currentOffset(),O.currentPosition()),z}return{parse:q}}function Ln(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function r2(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Tf(e,t){for(let n=0;n<e.length;n++)J0(e[n],t)}function J0(e,t){switch(e.type){case 1:Tf(e.cases,t),t.helper("plural");break;case 2:Tf(e.items,t);break;case 6:{J0(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function s2(e,t={}){const n=r2(e);n.helper("normalize"),e.body&&J0(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function i2(e){const t=e.body;return t.type===2?Ef(t):t.cases.forEach(n=>Ef(n)),e}function Ef(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Vd(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const a2="minifier";function fs(e){switch(e.t=e.type,e.type){case 0:{const t=e;fs(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)fs(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)fs(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;fs(t.key),t.k=t.key,delete t.key,t.modifier&&(fs(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Os(Le.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:a2,args:[e.type]})}delete e.type}const o2="parser";function l2(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,i=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};i&&e.loc&&(o.source=e.loc.source);const u=()=>o;function h(A,E){o.code+=A}function d(A,E=!0){const M=E?r:"";h(s?M+" ".repeat(A):M)}function p(A=!0){const E=++o.indentLevel;A&&d(E)}function b(A=!0){const E=--o.indentLevel;A&&d(E)}function v(){d(o.indentLevel)}return{context:u,push:h,indent:p,deindent:b,newline:v,helper:A=>`_${A}`,needIndent:()=>o.needIndent}}function c2(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ss(e,t.key),t.modifier?(e.push(", "),Ss(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function u2(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(Ss(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function f2(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(Ss(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function h2(e,t){t.body?Ss(e,t.body):e.push("null")}function Ss(e,t){const{helper:n}=e;switch(t.type){case 0:h2(e,t);break;case 1:f2(e,t);break;case 2:u2(e,t);break;case 6:c2(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Os(Le.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:o2,args:[t.type]})}}const d2=(e,t={})=>{const n=Sf(t.mode)?t.mode:"normal",r=Sf(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
||
`,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],u=l2(e,{filename:r,breakLineCode:s,needIndent:i});u.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(i),o.length>0&&(u.push(`const { ${Vd(o.map(p=>`${p}: _${p}`),", ")} } = ctx`),u.newline()),u.push("return "),Ss(u,e),u.deindent(i),u.push("}"),delete e.helpers;const{code:h,map:d}=u.context();return{ast:e,code:h,map:d?d.toJSON():void 0}};function m2(e,t={}){const n=Hd({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,u=n2(n).parse(e);return r?(i&&i2(u),s&&fs(u),{ast:u,code:""}):(s2(u,n),d2(u,n))}/*!
|
||
* core-base v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function p2(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(lr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(lr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(lr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Xn(e){return Ye(e)&&Q0(e)===0&&(Pn(e,"b")||Pn(e,"body"))}const jd=["b","body"];function g2(e){return Cr(e,jd)}const Wd=["c","cases"];function y2(e){return Cr(e,Wd,[])}const Gd=["s","static"];function b2(e){return Cr(e,Gd)}const Kd=["i","items"];function w2(e){return Cr(e,Kd,[])}const Xd=["t","type"];function Q0(e){return Cr(e,Xd)}const Yd=["v","value"];function ga(e,t){const n=Cr(e,Yd);if(n!=null)return n;throw hi(t)}const Jd=["m","modifier"];function v2(e){return Cr(e,Jd)}const Qd=["k","key"];function _2(e){const t=Cr(e,Qd);if(t)return t;throw hi(6)}function Cr(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(Pn(e,s)&&e[s]!=null)return e[s]}return n}const Zd=[...jd,...Wd,...Gd,...Kd,...Qd,...Jd,...Yd,...Xd];function hi(e){return new Error(`unhandled node type: ${e}`)}const Ir=[];Ir[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ir[1]={w:[1],".":[2],"[":[4],o:[7]};Ir[2]={w:[2],i:[3,0],0:[3,0]};Ir[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ir[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ir[5]={"'":[4,0],o:8,l:[5,0]};Ir[6]={'"':[4,0],o:8,l:[6,0]};const x2=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function k2(e){return x2.test(e)}function S2(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function A2(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function T2(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:k2(t)?S2(t):"*"+t}function E2(e){const t=[];let n=-1,r=0,s=0,i,o,u,h,d,p,b;const v=[];v[0]=()=>{o===void 0?o=u:o+=u},v[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},v[2]=()=>{v[0](),s++},v[3]=()=>{if(s>0)s--,r=4,v[0]();else{if(s=0,o===void 0||(o=T2(o),o===!1))return!1;v[1]()}};function k(){const x=e[n+1];if(r===5&&x==="'"||r===6&&x==='"')return n++,u="\\"+x,v[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&k())){if(h=A2(i),b=Ir[r],d=b[h]||b.l||8,d===8||(r=d[0],d[1]!==void 0&&(p=v[d[1]],p&&(u=i,p()===!1))))return;if(r===7)return t}}const Nf=new Map;function N2(e,t){return Ye(e)?e[t]:null}function C2(e,t){if(!Ye(e))return null;let n=Nf.get(t);if(n||(n=E2(t),n&&Nf.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(Zd.includes(o)&&Xn(s))return null;const u=s[o];if(u===void 0||ct(s))return null;s=u,i++}return s}const I2=e=>e,M2=e=>"",O2="text",L2=e=>e.length===0?"":Fg(e),R2=$g;function Cf(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function D2(e){const t=Tt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Tt(e.named.count)||Tt(e.named.n))?Tt(e.named.count)?e.named.count:Tt(e.named.n)?e.named.n:t:t}function P2(e,t){t.count||(t.count=e),t.n||(t.n=e)}function $2(e={}){const t=e.locale,n=D2(e),r=Ye(e.pluralRules)&&be(t)&&ct(e.pluralRules[t])?e.pluralRules[t]:Cf,s=Ye(e.pluralRules)&&be(t)&&ct(e.pluralRules[t])?Cf:void 0,i=M=>M[r(n,M.length,s)],o=e.list||[],u=M=>o[M],h=e.named||ot();Tt(e.pluralIndex)&&P2(n,h);const d=M=>h[M];function p(M){const q=ct(e.messages)?e.messages(M):Ye(e.messages)?e.messages[M]:!1;return q||(e.parent?e.parent.message(M):M2)}const b=M=>e.modifiers?e.modifiers[M]:I2,v=ze(e.processor)&&ct(e.processor.normalize)?e.processor.normalize:L2,k=ze(e.processor)&&ct(e.processor.interpolate)?e.processor.interpolate:R2,x=ze(e.processor)&&be(e.processor.type)?e.processor.type:O2,E={list:u,named:d,plural:i,linked:(M,...q)=>{const[L,O]=q;let F="text",z="";q.length===1?Ye(L)?(z=L.modifier||z,F=L.type||F):be(L)&&(z=L||z):q.length===2&&(be(L)&&(z=L||z),be(O)&&(F=O||F));const j=p(M)(E),G=F==="vnode"&&mt(j)&&z?j[0]:j;return z?b(z)(G,F):G},message:p,type:x,interpolate:k,normalize:v,values:Xt(ot(),o,h)};return E}let di=null;function F2(e){di=e}function B2(e,t,n){di&&di.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const z2=q2("function:translate");function q2(e){return t=>di&&di.emit(e,t)}const U2=Y0.__EXTEND_POINT__,Rr=go(U2),H2={FALLBACK_TO_TRANSLATE:Rr(),CANNOT_FORMAT_NUMBER:Rr(),FALLBACK_TO_NUMBER_FORMAT:Rr(),CANNOT_FORMAT_DATE:Rr(),FALLBACK_TO_DATE_FORMAT:Rr(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Rr(),__EXTEND_POINT__:Rr()},e1=Le.__EXTEND_POINT__,Dr=go(e1),$n={INVALID_ARGUMENT:e1,INVALID_DATE_ARGUMENT:Dr(),INVALID_ISO_DATE_ARGUMENT:Dr(),NOT_SUPPORT_NON_STRING_MESSAGE:Dr(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Dr(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Dr(),NOT_SUPPORT_LOCALE_TYPE:Dr(),__EXTEND_POINT__:Dr()};function Kn(e){return Os(e,null,void 0)}function Z0(e,t){return t.locale!=null?If(t.locale):If(e.locale)}let Nl;function If(e){if(be(e))return e;if(ct(e)){if(e.resolvedOnce&&Nl!=null)return Nl;if(e.constructor.name==="Function"){const t=e();if(Pg(t))throw Kn($n.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Nl=t}else throw Kn($n.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Kn($n.NOT_SUPPORT_LOCALE_TYPE)}function V2(e,t,n){return[...new Set([n,...mt(t)?t:Ye(t)?Object.keys(t):be(t)?[t]:[n]])]}function t1(e,t,n){const r=be(n)?n:As,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;mt(o);)o=Mf(i,o,t);const u=mt(t)||!ze(t)?t:t.default?t.default:null;o=be(u)?[u]:u,mt(o)&&Mf(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Mf(e,t,n){let r=!0;for(let s=0;s<t.length&&Ve(r);s++){const i=t[s];be(i)&&(r=j2(e,t[s],n))}return r}function j2(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=W2(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function W2(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(mt(n)||ze(n))&&n[s]&&(r=n[s])}return r}const G2="9.14.5",yo=-1,As="en-US",Of="",Lf=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function K2(){return{upper:(e,t)=>t==="text"&&be(e)?e.toUpperCase():t==="vnode"&&Ye(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&be(e)?e.toLowerCase():t==="vnode"&&Ye(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&be(e)?Lf(e):t==="vnode"&&Ye(e)&&"__v_isVNode"in e?Lf(e.children):e}}let n1;function Rf(e){n1=e}let r1;function X2(e){r1=e}let s1;function Y2(e){s1=e}let i1=null;const J2=e=>{i1=e},Q2=()=>i1;let a1=null;const Df=e=>{a1=e},Z2=()=>a1;let Pf=0;function e5(e={}){const t=ct(e.onWarn)?e.onWarn:Cg,n=be(e.version)?e.version:G2,r=be(e.locale)||ct(e.locale)?e.locale:As,s=ct(r)?As:r,i=mt(e.fallbackLocale)||ze(e.fallbackLocale)||be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=ze(e.messages)?e.messages:Cl(s),u=ze(e.datetimeFormats)?e.datetimeFormats:Cl(s),h=ze(e.numberFormats)?e.numberFormats:Cl(s),d=Xt(ot(),e.modifiers,K2()),p=e.pluralRules||ot(),b=ct(e.missing)?e.missing:null,v=Ve(e.missingWarn)||Tr(e.missingWarn)?e.missingWarn:!0,k=Ve(e.fallbackWarn)||Tr(e.fallbackWarn)?e.fallbackWarn:!0,x=!!e.fallbackFormat,A=!!e.unresolving,E=ct(e.postTranslation)?e.postTranslation:null,M=ze(e.processor)?e.processor:null,q=Ve(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter,O=ct(e.messageCompiler)?e.messageCompiler:n1,F=ct(e.messageResolver)?e.messageResolver:r1||N2,z=ct(e.localeFallbacker)?e.localeFallbacker:s1||V2,j=Ye(e.fallbackContext)?e.fallbackContext:void 0,G=e,Q=Ye(G.__datetimeFormatters)?G.__datetimeFormatters:new Map,ye=Ye(G.__numberFormatters)?G.__numberFormatters:new Map,ce=Ye(G.__meta)?G.__meta:{};Pf++;const te={version:n,cid:Pf,locale:r,fallbackLocale:i,messages:o,modifiers:d,pluralRules:p,missing:b,missingWarn:v,fallbackWarn:k,fallbackFormat:x,unresolving:A,postTranslation:E,processor:M,warnHtmlMessage:q,escapeParameter:L,messageCompiler:O,messageResolver:F,localeFallbacker:z,fallbackContext:j,onWarn:t,__meta:ce};return te.datetimeFormats=u,te.numberFormats=h,te.__datetimeFormatters=Q,te.__numberFormatters=ye,__INTLIFY_PROD_DEVTOOLS__&&B2(te,n,ce),te}const Cl=e=>({[e]:ot()});function ec(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const u=i(e,n,t,s);return be(u)?u:t}else return t}function Ws(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function t5(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function n5(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(t5(e,t[r]))return!0;return!1}function Il(e){return n=>r5(n,e)}function r5(e,t){const n=g2(t);if(n==null)throw hi(0);if(Q0(n)===1){const i=y2(n);return e.plural(i.reduce((o,u)=>[...o,$f(e,u)],[]))}else return $f(e,n)}function $f(e,t){const n=b2(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=w2(t).reduce((s,i)=>[...s,l0(e,i)],[]);return e.normalize(r)}}function l0(e,t){const n=Q0(t);switch(n){case 3:return ga(t,n);case 9:return ga(t,n);case 4:{const r=t;if(Pn(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Pn(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw hi(n)}case 5:{const r=t;if(Pn(r,"i")&&Tt(r.i))return e.interpolate(e.list(r.i));if(Pn(r,"index")&&Tt(r.index))return e.interpolate(e.list(r.index));throw hi(n)}case 6:{const r=t,s=v2(r),i=_2(r);return e.linked(l0(e,i),s?l0(e,s):void 0,e.type)}case 7:return ga(t,n);case 8:return ga(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const o1=e=>e;let ds=ot();function l1(e,t={}){let n=!1;const r=t.onError||jg;return t.onError=s=>{n=!0,r(s)},{...m2(e,t),detectError:n}}const s5=(e,t)=>{if(!be(e))throw Kn($n.NOT_SUPPORT_NON_STRING_MESSAGE);{Ve(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||o1)(e),s=ds[r];if(s)return s;const{code:i,detectError:o}=l1(e,t),u=new Function(`return ${i}`)();return o?u:ds[r]=u}};function i5(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&be(e)){Ve(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||o1)(e),s=ds[r];if(s)return s;const{ast:i,detectError:o}=l1(e,{...t,location:!1,jit:!0}),u=Il(i);return o?u:ds[r]=u}else{const n=e.cacheKey;if(n){const r=ds[n];return r||(ds[n]=Il(e))}else return Il(e)}}const Ff=()=>"",En=e=>ct(e);function Bf(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:u}=e,[h,d]=c0(...t),p=Ve(d.missingWarn)?d.missingWarn:e.missingWarn,b=Ve(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,v=Ve(d.escapeParameter)?d.escapeParameter:e.escapeParameter,k=!!d.resolvedMessage,x=be(d.default)||Ve(d.default)?Ve(d.default)?i?h:()=>h:d.default:n?i?h:()=>h:"",A=n||x!=="",E=Z0(e,d);v&&a5(d);let[M,q,L]=k?[h,E,u[E]||ot()]:c1(e,h,E,o,b,p),O=M,F=h;if(!k&&!(be(O)||Xn(O)||En(O))&&A&&(O=x,F=O),!k&&(!(be(O)||Xn(O)||En(O))||!be(q)))return s?yo:h;let z=!1;const j=()=>{z=!0},G=En(O)?O:u1(e,h,q,O,F,j);if(z)return O;const Q=c5(e,q,L,d),ye=$2(Q),ce=o5(e,G,ye);let te=r?r(ce,h):ce;if(v&&be(te)&&(te=Rg(te)),__INTLIFY_PROD_DEVTOOLS__){const he={timestamp:Date.now(),key:be(h)?h:En(O)?O.key:"",locale:q||(En(O)?O.locale:""),format:be(O)?O:En(O)?O.source:"",message:te};he.meta=Xt({},e.__meta,Q2()||{}),z2(he)}return te}function a5(e){mt(e.list)?e.list=e.list.map(t=>be(t)?xf(t):t):Ye(e.named)&&Object.keys(e.named).forEach(t=>{be(e.named[t])&&(e.named[t]=xf(e.named[t]))})}function c1(e,t,n,r,s,i){const{messages:o,onWarn:u,messageResolver:h,localeFallbacker:d}=e,p=d(e,r,n);let b=ot(),v,k=null;const x="translate";for(let A=0;A<p.length&&(v=p[A],b=o[v]||ot(),(k=h(b,t))===null&&(k=b[t]),!(be(k)||Xn(k)||En(k)));A++)if(!n5(v,p)){const E=ec(e,t,v,i,x);E!==t&&(k=E)}return[k,v,b]}function u1(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:u}=e;if(En(r)){const d=r;return d.locale=d.locale||n,d.key=d.key||t,d}if(o==null){const d=()=>r;return d.locale=n,d.key=t,d}const h=o(r,l5(e,n,s,r,u,i));return h.locale=n,h.key=t,h.source=r,h}function o5(e,t,n){return t(n)}function c0(...e){const[t,n,r]=e,s=ot();if(!be(t)&&!Tt(t)&&!En(t)&&!Xn(t))throw Kn($n.INVALID_ARGUMENT);const i=Tt(t)?String(t):(En(t),t);return Tt(n)?s.plural=n:be(n)?s.default=n:ze(n)&&!po(n)?s.named=n:mt(n)&&(s.list=n),Tt(r)?s.plural=r:be(r)?s.default=r:ze(r)&&Xt(s,r),[i,s]}function l5(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>Ig(t,n,o)}}function c5(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:u,fallbackWarn:h,missingWarn:d,fallbackContext:p}=e,v={locale:t,modifiers:s,pluralRules:i,messages:k=>{let x=o(n,k);if(x==null&&p){const[,,A]=c1(p,k,t,u,h,d);x=o(A,k)}if(be(x)||Xn(x)){let A=!1;const M=u1(e,k,t,x,k,()=>{A=!0});return A?Ff:M}else return En(x)?x:Ff}};return e.processor&&(v.processor=e.processor),r.list&&(v.list=r.list),r.named&&(v.named=r.named),Tt(r.plural)&&(v.pluralIndex=r.plural),v}function zf(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:u}=e,[h,d,p,b]=u0(...t),v=Ve(p.missingWarn)?p.missingWarn:e.missingWarn;Ve(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const k=!!p.part,x=Z0(e,p),A=o(e,s,x);if(!be(h)||h==="")return new Intl.DateTimeFormat(x,b).format(d);let E={},M,q=null;const L="datetime format";for(let z=0;z<A.length&&(M=A[z],E=n[M]||{},q=E[h],!ze(q));z++)ec(e,h,M,v,L);if(!ze(q)||!be(M))return r?yo:h;let O=`${M}__${h}`;po(b)||(O=`${O}__${JSON.stringify(b)}`);let F=u.get(O);return F||(F=new Intl.DateTimeFormat(M,Xt({},q,b)),u.set(O,F)),k?F.formatToParts(d):F.format(d)}const f1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function u0(...e){const[t,n,r,s]=e,i=ot();let o=ot(),u;if(be(t)){const h=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!h)throw Kn($n.INVALID_ISO_DATE_ARGUMENT);const d=h[3]?h[3].trim().startsWith("T")?`${h[1].trim()}${h[3].trim()}`:`${h[1].trim()}T${h[3].trim()}`:h[1].trim();u=new Date(d);try{u.toISOString()}catch{throw Kn($n.INVALID_ISO_DATE_ARGUMENT)}}else if(Og(t)){if(isNaN(t.getTime()))throw Kn($n.INVALID_DATE_ARGUMENT);u=t}else if(Tt(t))u=t;else throw Kn($n.INVALID_ARGUMENT);return be(n)?i.key=n:ze(n)&&Object.keys(n).forEach(h=>{f1.includes(h)?o[h]=n[h]:i[h]=n[h]}),be(r)?i.locale=r:ze(r)&&(o=r),ze(s)&&(o=s),[i.key||"",u,i,o]}function qf(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function Uf(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:u}=e,[h,d,p,b]=f0(...t),v=Ve(p.missingWarn)?p.missingWarn:e.missingWarn;Ve(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const k=!!p.part,x=Z0(e,p),A=o(e,s,x);if(!be(h)||h==="")return new Intl.NumberFormat(x,b).format(d);let E={},M,q=null;const L="number format";for(let z=0;z<A.length&&(M=A[z],E=n[M]||{},q=E[h],!ze(q));z++)ec(e,h,M,v,L);if(!ze(q)||!be(M))return r?yo:h;let O=`${M}__${h}`;po(b)||(O=`${O}__${JSON.stringify(b)}`);let F=u.get(O);return F||(F=new Intl.NumberFormat(M,Xt({},q,b)),u.set(O,F)),k?F.formatToParts(d):F.format(d)}const h1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function f0(...e){const[t,n,r,s]=e,i=ot();let o=ot();if(!Tt(t))throw Kn($n.INVALID_ARGUMENT);const u=t;return be(n)?i.key=n:ze(n)&&Object.keys(n).forEach(h=>{h1.includes(h)?o[h]=n[h]:i[h]=n[h]}),be(r)?i.locale=r:ze(r)&&(o=r),ze(s)&&(o=s),[i.key||"",u,i,o]}function Hf(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}p2();/*!
|
||
* vue-i18n v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const u5="9.14.5";function f5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(lr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(lr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(lr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(lr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(lr().__INTLIFY_PROD_DEVTOOLS__=!1)}const h5=H2.__EXTEND_POINT__,ir=go(h5);ir(),ir(),ir(),ir(),ir(),ir(),ir(),ir(),ir();const d1=$n.__EXTEND_POINT__,ln=go(d1),qt={UNEXPECTED_RETURN_TYPE:d1,INVALID_ARGUMENT:ln(),MUST_BE_CALL_SETUP_TOP:ln(),NOT_INSTALLED:ln(),NOT_AVAILABLE_IN_LEGACY_MODE:ln(),REQUIRED_VALUE:ln(),INVALID_VALUE:ln(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ln(),NOT_INSTALLED_WITH_PROVIDE:ln(),UNEXPECTED_ERROR:ln(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ln(),BRIDGE_SUPPORT_VUE_2_ONLY:ln(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ln(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ln(),__EXTEND_POINT__:ln()};function Wt(e,...t){return Os(e,null,void 0)}const h0=Nr("__translateVNode"),d0=Nr("__datetimeParts"),m0=Nr("__numberParts"),m1=Nr("__setPluralRules"),p1=Nr("__injectWithOption"),p0=Nr("__dispose");function mi(e){if(!Ye(e)||Xn(e))return e;for(const t in e)if(Pn(e,t))if(!t.includes("."))Ye(e[t])&&mi(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=ot()),!Ye(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(Xn(s)?Zd.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!Xn(s)){const o=s[n[r]];Ye(o)&&mi(o)}}return e}function bo(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=ze(n)?n:mt(r)?ot():{[e]:ot()};if(mt(r)&&r.forEach(u=>{if("locale"in u&&"resource"in u){const{locale:h,resource:d}=u;h?(o[h]=o[h]||ot(),Oa(d,o[h])):Oa(d,o)}else be(u)&&Oa(JSON.parse(u),o)}),s==null&&i)for(const u in o)Pn(o,u)&&mi(o[u]);return o}function g1(e){return e.type}function y1(e,t,n){let r=Ye(t.messages)?t.messages:ot();"__i18nGlobal"in n&&(r=bo(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Ye(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Ye(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Vf(e){return pe(wg,null,e,0)}const jf="__INTLIFY_META__",Wf=()=>[],d5=()=>!1;let Gf=0;function Kf(e){return(t,n,r,s)=>e(n,r,ui()||void 0,s)}const m5=()=>{const e=ui();let t=null;return e&&(t=g1(e)[jf])?{[jf]:t}:null};function tc(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,i=e.flatJson,o=ja?Ge:Dd,u=!!e.translateExistCompatible;let h=Ve(e.inheritLocale)?e.inheritLocale:!0;const d=o(n&&h?n.locale.value:be(e.locale)?e.locale:As),p=o(n&&h?n.fallbackLocale.value:be(e.fallbackLocale)||mt(e.fallbackLocale)||ze(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:d.value),b=o(bo(d.value,e)),v=o(ze(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),k=o(ze(e.numberFormats)?e.numberFormats:{[d.value]:{}});let x=n?n.missingWarn:Ve(e.missingWarn)||Tr(e.missingWarn)?e.missingWarn:!0,A=n?n.fallbackWarn:Ve(e.fallbackWarn)||Tr(e.fallbackWarn)?e.fallbackWarn:!0,E=n?n.fallbackRoot:Ve(e.fallbackRoot)?e.fallbackRoot:!0,M=!!e.fallbackFormat,q=ct(e.missing)?e.missing:null,L=ct(e.missing)?Kf(e.missing):null,O=ct(e.postTranslation)?e.postTranslation:null,F=n?n.warnHtmlMessage:Ve(e.warnHtmlMessage)?e.warnHtmlMessage:!0,z=!!e.escapeParameter;const j=n?n.modifiers:ze(e.modifiers)?e.modifiers:{};let G=e.pluralRules||n&&n.pluralRules,Q;Q=(()=>{s&&Df(null);const J={version:u5,locale:d.value,fallbackLocale:p.value,messages:b.value,modifiers:j,pluralRules:G,missing:L===null?void 0:L,missingWarn:x,fallbackWarn:A,fallbackFormat:M,unresolving:!0,postTranslation:O===null?void 0:O,warnHtmlMessage:F,escapeParameter:z,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};J.datetimeFormats=v.value,J.numberFormats=k.value,J.__datetimeFormatters=ze(Q)?Q.__datetimeFormatters:void 0,J.__numberFormatters=ze(Q)?Q.__numberFormatters:void 0;const se=e5(J);return s&&Df(se),se})(),Ws(Q,d.value,p.value);function ce(){return[d.value,p.value,b.value,v.value,k.value]}const te=ht({get:()=>d.value,set:J=>{d.value=J,Q.locale=d.value}}),he=ht({get:()=>p.value,set:J=>{p.value=J,Q.fallbackLocale=p.value,Ws(Q,d.value,J)}}),V=ht(()=>b.value),oe=ht(()=>v.value),Y=ht(()=>k.value);function fe(){return ct(O)?O:null}function ee(J){O=J,Q.postTranslation=J}function Ae(){return q}function Oe(J){J!==null&&(L=Kf(J)),q=J,Q.missing=L}const Te=(J,se,st,gt,vt,an)=>{ce();let Qt;try{__INTLIFY_PROD_DEVTOOLS__,s||(Q.fallbackContext=n?Z2():void 0),Qt=J(Q)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(Q.fallbackContext=void 0)}if(st!=="translate exists"&&Tt(Qt)&&Qt===yo||st==="translate exists"&&!Qt){const[qs,Zc]=se();return n&&E?gt(n):vt(qs)}else{if(an(Qt))return Qt;throw Wt(qt.UNEXPECTED_RETURN_TYPE)}};function H(...J){return Te(se=>Reflect.apply(Bf,null,[se,...J]),()=>c0(...J),"translate",se=>Reflect.apply(se.t,se,[...J]),se=>se,se=>be(se))}function me(...J){const[se,st,gt]=J;if(gt&&!Ye(gt))throw Wt(qt.INVALID_ARGUMENT);return H(se,st,Xt({resolvedMessage:!0},gt||{}))}function Ee(...J){return Te(se=>Reflect.apply(zf,null,[se,...J]),()=>u0(...J),"datetime format",se=>Reflect.apply(se.d,se,[...J]),()=>Of,se=>be(se))}function Je(...J){return Te(se=>Reflect.apply(Uf,null,[se,...J]),()=>f0(...J),"number format",se=>Reflect.apply(se.n,se,[...J]),()=>Of,se=>be(se))}function _t(J){return J.map(se=>be(se)||Tt(se)||Ve(se)?Vf(String(se)):se)}const Pt={normalize:_t,interpolate:J=>J,type:"vnode"};function dn(...J){return Te(se=>{let st;const gt=se;try{gt.processor=Pt,st=Reflect.apply(Bf,null,[gt,...J])}finally{gt.processor=null}return st},()=>c0(...J),"translate",se=>se[h0](...J),se=>[Vf(se)],se=>mt(se))}function qn(...J){return Te(se=>Reflect.apply(Uf,null,[se,...J]),()=>f0(...J),"number format",se=>se[m0](...J),Wf,se=>be(se)||mt(se))}function Ne(...J){return Te(se=>Reflect.apply(zf,null,[se,...J]),()=>u0(...J),"datetime format",se=>se[d0](...J),Wf,se=>be(se)||mt(se))}function ge(J){G=J,Q.pluralRules=G}function kt(J,se){return Te(()=>{if(!J)return!1;const st=be(se)?se:d.value,gt=mn(st),vt=Q.messageResolver(gt,J);return u?vt!=null:Xn(vt)||En(vt)||be(vt)},()=>[J],"translate exists",st=>Reflect.apply(st.te,st,[J,se]),d5,st=>Ve(st))}function ue(J){let se=null;const st=t1(Q,p.value,d.value);for(let gt=0;gt<st.length;gt++){const vt=b.value[st[gt]]||{},an=Q.messageResolver(vt,J);if(an!=null){se=an;break}}return se}function Be(J){const se=ue(J);return se??(n?n.tm(J)||{}:{})}function mn(J){return b.value[J]||{}}function Mn(J,se){if(i){const st={[J]:se};for(const gt in st)Pn(st,gt)&&mi(st[gt]);se=st[J]}b.value[J]=se,Q.messages=b.value}function vn(J,se){b.value[J]=b.value[J]||{};const st={[J]:se};if(i)for(const gt in st)Pn(st,gt)&&mi(st[gt]);se=st[J],Oa(se,b.value[J]),Q.messages=b.value}function rt(J){return v.value[J]||{}}function C(J,se){v.value[J]=se,Q.datetimeFormats=v.value,qf(Q,J,se)}function $(J,se){v.value[J]=Xt(v.value[J]||{},se),Q.datetimeFormats=v.value,qf(Q,J,se)}function Z(J){return k.value[J]||{}}function _e(J,se){k.value[J]=se,Q.numberFormats=k.value,Hf(Q,J,se)}function Xe(J,se){k.value[J]=Xt(k.value[J]||{},se),Q.numberFormats=k.value,Hf(Q,J,se)}Gf++,n&&ja&&(xs(n.locale,J=>{h&&(d.value=J,Q.locale=J,Ws(Q,d.value,p.value))}),xs(n.fallbackLocale,J=>{h&&(p.value=J,Q.fallbackLocale=J,Ws(Q,d.value,p.value))}));const Pe={id:Gf,locale:te,fallbackLocale:he,get inheritLocale(){return h},set inheritLocale(J){h=J,J&&n&&(d.value=n.locale.value,p.value=n.fallbackLocale.value,Ws(Q,d.value,p.value))},get availableLocales(){return Object.keys(b.value).sort()},messages:V,get modifiers(){return j},get pluralRules(){return G||{}},get isGlobal(){return s},get missingWarn(){return x},set missingWarn(J){x=J,Q.missingWarn=x},get fallbackWarn(){return A},set fallbackWarn(J){A=J,Q.fallbackWarn=A},get fallbackRoot(){return E},set fallbackRoot(J){E=J},get fallbackFormat(){return M},set fallbackFormat(J){M=J,Q.fallbackFormat=M},get warnHtmlMessage(){return F},set warnHtmlMessage(J){F=J,Q.warnHtmlMessage=J},get escapeParameter(){return z},set escapeParameter(J){z=J,Q.escapeParameter=J},t:H,getLocaleMessage:mn,setLocaleMessage:Mn,mergeLocaleMessage:vn,getPostTranslationHandler:fe,setPostTranslationHandler:ee,getMissingHandler:Ae,setMissingHandler:Oe,[m1]:ge};return Pe.datetimeFormats=oe,Pe.numberFormats=Y,Pe.rt=me,Pe.te=kt,Pe.tm=Be,Pe.d=Ee,Pe.n=Je,Pe.getDateTimeFormat=rt,Pe.setDateTimeFormat=C,Pe.mergeDateTimeFormat=$,Pe.getNumberFormat=Z,Pe.setNumberFormat=_e,Pe.mergeNumberFormat=Xe,Pe[p1]=r,Pe[h0]=dn,Pe[d0]=Ne,Pe[m0]=qn,Pe}function p5(e){const t=be(e.locale)?e.locale:As,n=be(e.fallbackLocale)||mt(e.fallbackLocale)||ze(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ct(e.missing)?e.missing:void 0,s=Ve(e.silentTranslationWarn)||Tr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=Ve(e.silentFallbackWarn)||Tr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Ve(e.fallbackRoot)?e.fallbackRoot:!0,u=!!e.formatFallbackMessages,h=ze(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,p=ct(e.postTranslation)?e.postTranslation:void 0,b=be(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,v=!!e.escapeParameterHtml,k=Ve(e.sync)?e.sync:!0;let x=e.messages;if(ze(e.sharedMessages)){const z=e.sharedMessages;x=Object.keys(z).reduce((G,Q)=>{const ye=G[Q]||(G[Q]={});return Xt(ye,z[Q]),G},x||{})}const{__i18n:A,__root:E,__injectWithOption:M}=e,q=e.datetimeFormats,L=e.numberFormats,O=e.flatJson,F=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:x,flatJson:O,datetimeFormats:q,numberFormats:L,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:u,modifiers:h,pluralRules:d,postTranslation:p,warnHtmlMessage:b,escapeParameter:v,messageResolver:e.messageResolver,inheritLocale:k,translateExistCompatible:F,__i18n:A,__root:E,__injectWithOption:M}}function g0(e={},t){{const n=tc(p5(e)),{__extender:r}=e,s={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return Ve(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=Ve(i)?!i:i},get silentFallbackWarn(){return Ve(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=Ve(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[o,u,h]=i,d={};let p=null,b=null;if(!be(o))throw Wt(qt.INVALID_ARGUMENT);const v=o;return be(u)?d.locale=u:mt(u)?p=u:ze(u)&&(b=u),mt(h)?p=h:ze(h)&&(b=h),Reflect.apply(n.t,n,[v,p||b||{},d])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[o,u,h]=i,d={plural:1};let p=null,b=null;if(!be(o))throw Wt(qt.INVALID_ARGUMENT);const v=o;return be(u)?d.locale=u:Tt(u)?d.plural=u:mt(u)?p=u:ze(u)&&(b=u),be(h)?d.locale=h:mt(h)?p=h:ze(h)&&(b=h),Reflect.apply(n.t,n,[v,p||b||{},d])},te(i,o){return n.te(i,o)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,o){n.setLocaleMessage(i,o)},mergeLocaleMessage(i,o){n.mergeLocaleMessage(i,o)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,o){n.setDateTimeFormat(i,o)},mergeDateTimeFormat(i,o){n.mergeDateTimeFormat(i,o)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,o){n.setNumberFormat(i,o)},mergeNumberFormat(i,o){n.mergeNumberFormat(i,o)},getChoiceIndex(i,o){return-1}};return s.__extender=r,s}}const nc={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function g5({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===fr?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},ot())}function b1(e){return fr}const y5=Er({name:"i18n-t",props:Xt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Tt(e)||!isNaN(e)}},nc),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||rc({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(b=>b!=="_"),o=ot();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=be(e.plural)?+e.plural:e.plural);const u=g5(t,i),h=s[h0](e.keypath,u,o),d=Xt(ot(),r),p=be(e.tag)||Ye(e.tag)?e.tag:b1();return Pd(p,d,h)}}}),Xf=y5;function b5(e){return mt(e)&&!be(e[0])}function w1(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let u=ot();e.locale&&(o.locale=e.locale),be(e.format)?o.key=e.format:Ye(e.format)&&(be(e.format.key)&&(o.key=e.format.key),u=Object.keys(e.format).reduce((v,k)=>n.includes(k)?Xt(ot(),v,{[k]:e.format[k]}):v,ot()));const h=r(e.value,o,u);let d=[o.key];mt(h)?d=h.map((v,k)=>{const x=s[v.type],A=x?x({[v.type]:v.value,index:k,parts:h}):[v.value];return b5(A)&&(A[0].key=`${v.type}-${k}`),A}):be(h)&&(d=[h]);const p=Xt(ot(),i),b=be(e.tag)||Ye(e.tag)?e.tag:b1();return Pd(b,p,d)}}const w5=Er({name:"i18n-n",props:Xt({value:{type:Number,required:!0},format:{type:[String,Object]}},nc),setup(e,t){const n=e.i18n||rc({useScope:e.scope,__useComponent:!0});return w1(e,t,h1,(...r)=>n[m0](...r))}}),Yf=w5,v5=Er({name:"i18n-d",props:Xt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},nc),setup(e,t){const n=e.i18n||rc({useScope:e.scope,__useComponent:!0});return w1(e,t,f1,(...r)=>n[d0](...r))}}),Jf=v5;function _5(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function x5(e){const t=o=>{const{instance:u,modifiers:h,value:d}=o;if(!u||!u.$)throw Wt(qt.UNEXPECTED_ERROR);const p=_5(e,u.$),b=Qf(d);return[Reflect.apply(p.t,p,[...Zf(b)]),p]};return{created:(o,u)=>{const[h,d]=t(u);ja&&e.global===d&&(o.__i18nWatcher=xs(d.locale,()=>{u.instance&&u.instance.$forceUpdate()})),o.__composer=d,o.textContent=h},unmounted:o=>{ja&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:u})=>{if(o.__composer){const h=o.__composer,d=Qf(u);o.textContent=Reflect.apply(h.t,h,[...Zf(d)])}},getSSRProps:o=>{const[u]=t(o);return{textContent:u}}}}function Qf(e){if(be(e))return{path:e};if(ze(e)){if(!("path"in e))throw Wt(qt.REQUIRED_VALUE,"path");return e}else throw Wt(qt.INVALID_VALUE)}function Zf(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},u=r||{};return be(n)&&(o.locale=n),Tt(s)&&(o.plural=s),Tt(i)&&(o.plural=i),[t,u,o]}function k5(e,t,...n){const r=ze(n[0])?n[0]:{},s=!!r.useI18nComponentName;(Ve(r.globalInstall)?r.globalInstall:!0)&&([s?"i18n":Xf.name,"I18nT"].forEach(o=>e.component(o,Xf)),[Yf.name,"I18nN"].forEach(o=>e.component(o,Yf)),[Jf.name,"I18nD"].forEach(o=>e.component(o,Jf))),e.directive("t",x5(t))}function S5(e,t,n){return{beforeCreate(){const r=ui();if(!r)throw Wt(qt.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=t,this===this.$root)this.$i18n=eh(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=g0(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=eh(e,s);else{this.$i18n=g0({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&y1(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=ui();if(!r)throw Wt(qt.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function eh(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[m1](t.pluralizationRules||e.pluralizationRules);const n=bo(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const A5=Nr("global-vue-i18n");function T5(e={},t){const n=__VUE_I18N_LEGACY_API__&&Ve(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Ve(e.globalInjection)?e.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[o,u]=E5(e,n),h=Nr("");function d(v){return i.get(v)||null}function p(v,k){i.set(v,k)}function b(v){i.delete(v)}{const v={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(k,...x){if(k.__VUE_I18N_SYMBOL__=h,k.provide(k.__VUE_I18N_SYMBOL__,v),ze(x[0])){const M=x[0];v.__composerExtend=M.__composerExtend,v.__vueI18nExtend=M.__vueI18nExtend}let A=null;!n&&r&&(A=P5(k,v.global)),__VUE_I18N_FULL_INSTALL__&&k5(k,v,...x),__VUE_I18N_LEGACY_API__&&n&&k.mixin(S5(u,u.__composer,v));const E=k.unmount;k.unmount=()=>{A&&A(),v.dispose(),E()}},get global(){return u},dispose(){o.stop()},__instances:i,__getInstance:d,__setInstance:p,__deleteInstance:b};return v}}function rc(e={}){const t=ui();if(t==null)throw Wt(qt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Wt(qt.NOT_INSTALLED);const n=N5(t),r=I5(n),s=g1(t),i=C5(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Wt(qt.NOT_AVAILABLE_IN_LEGACY_MODE);return R5(t,i,r,e)}if(i==="global")return y1(r,e,s),r;if(i==="parent"){let h=M5(n,t,e.__useComponent);return h==null&&(h=r),h}const o=n;let u=o.__getInstance(t);if(u==null){const h=Xt({},e);"__i18n"in s&&(h.__i18n=s.__i18n),r&&(h.__root=r),u=tc(h),o.__composerExtend&&(u[p0]=o.__composerExtend(u)),L5(o,t,u),o.__setInstance(t,u)}return u}function E5(e,t,n){const r=gg();{const s=__VUE_I18N_LEGACY_API__&&t?r.run(()=>g0(e)):r.run(()=>tc(e));if(s==null)throw Wt(qt.UNEXPECTED_ERROR);return[r,s]}}function N5(e){{const t=yg(e.isCE?A5:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Wt(e.isCE?qt.NOT_INSTALLED_WITH_PROVIDE:qt.UNEXPECTED_ERROR);return t}}function C5(e,t){return po(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function I5(e){return e.mode==="composition"?e.global:e.global.__composer}function M5(e,t,n=!1){let r=null;const s=t.root;let i=O5(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const u=o.__getInstance(i);u!=null&&(r=u.__composer,n&&r&&!r[p1]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function O5(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function L5(e,t,n){mo(()=>{},t),X0(()=>{const r=n;e.__deleteInstance(t);const s=r[p0];s&&(s(),delete r[p0])},t)}function R5(e,t,n,r={}){const s=t==="local",i=Dd(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Wt(qt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Ve(r.inheritLocale)?r.inheritLocale:!be(r.locale),u=Ge(!s||o?n.locale.value:be(r.locale)?r.locale:As),h=Ge(!s||o?n.fallbackLocale.value:be(r.fallbackLocale)||mt(r.fallbackLocale)||ze(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:u.value),d=Ge(bo(u.value,r)),p=Ge(ze(r.datetimeFormats)?r.datetimeFormats:{[u.value]:{}}),b=Ge(ze(r.numberFormats)?r.numberFormats:{[u.value]:{}}),v=s?n.missingWarn:Ve(r.missingWarn)||Tr(r.missingWarn)?r.missingWarn:!0,k=s?n.fallbackWarn:Ve(r.fallbackWarn)||Tr(r.fallbackWarn)?r.fallbackWarn:!0,x=s?n.fallbackRoot:Ve(r.fallbackRoot)?r.fallbackRoot:!0,A=!!r.fallbackFormat,E=ct(r.missing)?r.missing:null,M=ct(r.postTranslation)?r.postTranslation:null,q=s?n.warnHtmlMessage:Ve(r.warnHtmlMessage)?r.warnHtmlMessage:!0,L=!!r.escapeParameter,O=s?n.modifiers:ze(r.modifiers)?r.modifiers:{},F=r.pluralRules||s&&n.pluralRules;function z(){return[u.value,h.value,d.value,p.value,b.value]}const j=ht({get:()=>i.value?i.value.locale.value:u.value,set:ue=>{i.value&&(i.value.locale.value=ue),u.value=ue}}),G=ht({get:()=>i.value?i.value.fallbackLocale.value:h.value,set:ue=>{i.value&&(i.value.fallbackLocale.value=ue),h.value=ue}}),Q=ht(()=>i.value?i.value.messages.value:d.value),ye=ht(()=>p.value),ce=ht(()=>b.value);function te(){return i.value?i.value.getPostTranslationHandler():M}function he(ue){i.value&&i.value.setPostTranslationHandler(ue)}function V(){return i.value?i.value.getMissingHandler():E}function oe(ue){i.value&&i.value.setMissingHandler(ue)}function Y(ue){return z(),ue()}function fe(...ue){return i.value?Y(()=>Reflect.apply(i.value.t,null,[...ue])):Y(()=>"")}function ee(...ue){return i.value?Reflect.apply(i.value.rt,null,[...ue]):""}function Ae(...ue){return i.value?Y(()=>Reflect.apply(i.value.d,null,[...ue])):Y(()=>"")}function Oe(...ue){return i.value?Y(()=>Reflect.apply(i.value.n,null,[...ue])):Y(()=>"")}function Te(ue){return i.value?i.value.tm(ue):{}}function H(ue,Be){return i.value?i.value.te(ue,Be):!1}function me(ue){return i.value?i.value.getLocaleMessage(ue):{}}function Ee(ue,Be){i.value&&(i.value.setLocaleMessage(ue,Be),d.value[ue]=Be)}function Je(ue,Be){i.value&&i.value.mergeLocaleMessage(ue,Be)}function _t(ue){return i.value?i.value.getDateTimeFormat(ue):{}}function xt(ue,Be){i.value&&(i.value.setDateTimeFormat(ue,Be),p.value[ue]=Be)}function Pt(ue,Be){i.value&&i.value.mergeDateTimeFormat(ue,Be)}function dn(ue){return i.value?i.value.getNumberFormat(ue):{}}function qn(ue,Be){i.value&&(i.value.setNumberFormat(ue,Be),b.value[ue]=Be)}function Ne(ue,Be){i.value&&i.value.mergeNumberFormat(ue,Be)}const ge={get id(){return i.value?i.value.id:-1},locale:j,fallbackLocale:G,messages:Q,datetimeFormats:ye,numberFormats:ce,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(ue){i.value&&(i.value.inheritLocale=ue)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:O},get pluralRules(){return i.value?i.value.pluralRules:F},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(ue){i.value&&(i.value.missingWarn=ue)},get fallbackWarn(){return i.value?i.value.fallbackWarn:k},set fallbackWarn(ue){i.value&&(i.value.missingWarn=ue)},get fallbackRoot(){return i.value?i.value.fallbackRoot:x},set fallbackRoot(ue){i.value&&(i.value.fallbackRoot=ue)},get fallbackFormat(){return i.value?i.value.fallbackFormat:A},set fallbackFormat(ue){i.value&&(i.value.fallbackFormat=ue)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:q},set warnHtmlMessage(ue){i.value&&(i.value.warnHtmlMessage=ue)},get escapeParameter(){return i.value?i.value.escapeParameter:L},set escapeParameter(ue){i.value&&(i.value.escapeParameter=ue)},t:fe,getPostTranslationHandler:te,setPostTranslationHandler:he,getMissingHandler:V,setMissingHandler:oe,rt:ee,d:Ae,n:Oe,tm:Te,te:H,getLocaleMessage:me,setLocaleMessage:Ee,mergeLocaleMessage:Je,getDateTimeFormat:_t,setDateTimeFormat:xt,mergeDateTimeFormat:Pt,getNumberFormat:dn,setNumberFormat:qn,mergeNumberFormat:Ne};function kt(ue){ue.locale.value=u.value,ue.fallbackLocale.value=h.value,Object.keys(d.value).forEach(Be=>{ue.mergeLocaleMessage(Be,d.value[Be])}),Object.keys(p.value).forEach(Be=>{ue.mergeDateTimeFormat(Be,p.value[Be])}),Object.keys(b.value).forEach(Be=>{ue.mergeNumberFormat(Be,b.value[Be])}),ue.escapeParameter=L,ue.fallbackFormat=A,ue.fallbackRoot=x,ue.fallbackWarn=k,ue.missingWarn=v,ue.warnHtmlMessage=q}return bg(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Wt(qt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const ue=i.value=e.proxy.$i18n.__composer;t==="global"?(u.value=ue.locale.value,h.value=ue.fallbackLocale.value,d.value=ue.messages.value,p.value=ue.datetimeFormats.value,b.value=ue.numberFormats.value):s&&kt(ue)}),ge}const D5=["locale","fallbackLocale","availableLocales"],th=["t","rt","d","n","tm","te"];function P5(e,t){const n=Object.create(null);return D5.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Wt(qt.UNEXPECTED_ERROR);const o=Rd(i.value)?{get(){return i.value.value},set(u){i.value.value=u}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,th.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Wt(qt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,th.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}f5();__INTLIFY_JIT_COMPILATION__?Rf(i5):Rf(s5);X2(C2);Y2(t1);if(__INTLIFY_PROD_DEVTOOLS__){const e=lr();e.__INTLIFY__=!0,F2(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const $5={class:"config-panel"},F5={class:"panel-title"},B5={class:"form-item-description"},z5={class:"form-item-description"},q5={class:"section-title"},U5={class:"form-item-description"},H5={class:"form-item-description"},V5={class:"form-item-description"},j5={class:"form-item-description"},W5=Er({__name:"ConfigPanel",props:{modelValue:{},backendOptions:{},languageOptions:{}},emits:["update:modelValue","backendChange"],setup(e,{emit:t}){const n=e,r=t,s=ht({get:()=>n.modelValue,set:b=>r("update:modelValue",b)}),i=ht(()=>n.modelValue.backend.includes("http-client")),o=ht(()=>n.modelValue.backend.startsWith("vlm")),u=b=>{r("backendChange",b)},h=b=>b.startsWith("vlm")?"启用行间公式识别":b==="pipeline"?"启用公式识别":b.startsWith("hybrid")?"启用行内公式识别":"启用公式识别",d=b=>b.startsWith("vlm")?"禁用后,行间公式将显示为图片。":b==="pipeline"?"禁用后,行间公式将显示为图片,行内公式将不会被检测或解析。":b.startsWith("hybrid")?"禁用后,行内公式将不会被检测或解析。":"",p=b=>({pipeline:"传统多模型管道解析,支持多语言,无幻觉。","vlm-auto-engine":"多模态大模型高精度解析,仅支持中英文文档。","hybrid-auto-engine":"高精度混合解析,支持多语言。","vlm-http-client":"多模态大模型高精度解析,通过远程服务器处理。","hybrid-http-client":"高精度混合解析,通过远程服务器处理。"})[b]||"选择文档解析的后端引擎。";return(b,v)=>{const k=dt("el-slider"),x=dt("el-form-item"),A=dt("el-option"),E=dt("el-select"),M=dt("el-input"),q=dt("el-checkbox"),L=dt("el-form");return Ke(),at("div",$5,[ke("h3",F5,Vt(b.$t("config.title")),1),pe(L,{model:s.value,"label-position":"top","label-width":"120px",class:"config-form"},{default:Se(()=>[pe(x,{label:b.$t("config.maxPages"),class:"form-item"},{default:Se(()=>[pe(k,{modelValue:s.value.maxPages,"onUpdate:modelValue":v[0]||(v[0]=O=>s.value.maxPages=O),min:1,max:1e3,"show-input":"",class:"slider"},null,8,["modelValue"])]),_:1},8,["label"]),pe(x,{label:b.$t("config.backend"),class:"form-item"},{default:Se(()=>[pe(E,{modelValue:s.value.backend,"onUpdate:modelValue":v[1]||(v[1]=O=>s.value.backend=O),style:{width:"100%"},onChange:u,class:"select"},{default:Se(()=>[(Ke(!0),at(fr,null,fi(e.backendOptions,O=>(Ke(),ii(A,{key:O.value,label:O.label,value:O.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),ke("div",B5,Vt(p(s.value.backend)),1)]),_:1},8,["label"]),i.value?(Ke(),ii(x,{key:0,label:b.$t("config.serverUrl"),class:"form-item"},{default:Se(()=>[pe(M,{modelValue:s.value.serverUrl,"onUpdate:modelValue":v[2]||(v[2]=O=>s.value.serverUrl=O),placeholder:"http://localhost:30000",class:"input"},null,8,["modelValue"]),ke("div",z5,Vt(b.$t("config.serverUrlInfo")),1)]),_:1},8,["label"])):ks("",!0),v[8]||(v[8]=ke("div",{class:"divider"},null,-1)),ke("div",q5,Vt(b.$t("config.recognitionOptions")),1),pe(x,{class:"form-item"},{default:Se(()=>[pe(q,{modelValue:s.value.tableEnable,"onUpdate:modelValue":v[3]||(v[3]=O=>s.value.tableEnable=O),class:"checkbox"},{default:Se(()=>[bt(Vt(b.$t("config.tableEnable")),1)]),_:1},8,["modelValue"]),ke("div",U5,Vt(b.$t("config.tableInfo")),1)]),_:1}),pe(x,{class:"form-item"},{default:Se(()=>[pe(q,{modelValue:s.value.formulaEnable,"onUpdate:modelValue":v[4]||(v[4]=O=>s.value.formulaEnable=O),class:"checkbox"},{default:Se(()=>[bt(Vt(h(s.value.backend)),1)]),_:1},8,["modelValue"]),ke("div",H5,Vt(d(s.value.backend)),1)]),_:1}),o.value?ks("",!0):(Ke(),at(fr,{key:1},[v[7]||(v[7]=ke("div",{class:"divider"},null,-1)),pe(x,{label:b.$t("config.ocrLanguage"),class:"form-item"},{default:Se(()=>[pe(E,{modelValue:s.value.language,"onUpdate:modelValue":v[5]||(v[5]=O=>s.value.language=O),style:{width:"100%"},class:"select"},{default:Se(()=>[(Ke(!0),at(fr,null,fi(e.languageOptions,O=>(Ke(),ii(A,{key:O.value,label:O.label,value:O.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),ke("div",V5,Vt(b.$t("config.ocrLanguageInfo")),1)]),_:1},8,["label"]),pe(x,{class:"form-item"},{default:Se(()=>[pe(q,{modelValue:s.value.forceOcr,"onUpdate:modelValue":v[6]||(v[6]=O=>s.value.forceOcr=O),class:"checkbox"},{default:Se(()=>[bt(Vt(b.$t("config.forceOcr")),1)]),_:1},8,["modelValue"]),ke("div",j5,Vt(b.$t("config.forceOcrInfo")),1)]),_:1})],64))]),_:1},8,["model"])])}}}),wo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},G5=wo(W5,[["__scopeId","data-v-ea8390cb"]]);async function K5(){if(typeof window.mammoth>"u")return new Promise((e,t)=>{const n=document.createElement("script");n.src="https://cdn.jsdelivr.net/npm/mammoth@1.6.0/mammoth.browser.min.js",n.onload=()=>e(),n.onerror=()=>t(new Error("Failed to load mammoth library")),document.head.appendChild(n)})}async function v1(){if(typeof window.html2pdf>"u")return new Promise((e,t)=>{const n=document.createElement("script");n.src="https://cdn.jsdelivr.net/npm/html2pdf.js@0.10.1/dist/html2pdf.bundle.min.js",n.onload=()=>e(),n.onerror=()=>t(new Error("Failed to load html2pdf library")),document.head.appendChild(n)})}async function X5(e,t){console.log("convertWordToPdf called with file:",e.name,e.size),console.log("Loading mammoth library..."),await K5(),console.log("Mammoth library loaded"),console.log("Loading html2pdf library..."),await v1(),console.log("html2pdf library loaded"),console.log("Reading Word file...");const n=await e.arrayBuffer();console.log("Word file read successfully"),console.log("Converting Word to HTML...");const r=await window.mammoth.convertToHtml({arrayBuffer:n});console.log("Word to HTML conversion successful, HTML length:",r.value.length);const s=r.value;console.log("Creating temporary container...");const i=document.createElement("div");i.innerHTML=`
|
||
<div style="font-family: 'Microsoft YaHei', Arial, sans-serif; padding: 20px;">
|
||
${s}
|
||
</div>
|
||
`,i.style.width="595px",document.body.appendChild(i),console.log("Temporary container created"),console.log("Generating PDF...");const o={margin:10,filename:e.name.replace(/\.(docx?|doc)$/i,".pdf"),image:{type:"jpeg",quality:.98},html2canvas:{scale:2,useCORS:!0},jsPDF:{unit:"mm",format:"a4",orientation:"portrait"}},u=await window.html2pdf().set(o).from(i).outputPdf("blob");console.log("PDF generated successfully, blob size:",u.size),document.body.removeChild(i),console.log("Temporary container removed");const h=new File([u],o.filename,{type:"application/pdf"});return console.log("PDF file created:",h.name,h.size),h}const Y5={class:"markdown-renderer"},J5={class:"render-actions"},Q5={class:"render-actions-left"},Z5={class:"render-content"},e3={key:0,class:"render-shell"},t3=["innerHTML"],n3={key:1,class:"render-shell"},r3=["innerHTML"],s3={key:2,class:"render-shell"},i3={class:"pdf-stage"},a3=["innerHTML"],o3=["innerHTML"],l3={key:3,class:"render-shell"},c3={class:"richtext-stage"},u3=["innerHTML"],f3={key:1,class:"empty-state"},h3=Er({__name:"MarkdownRenderer",props:{content:{type:String,default:""},mode:{type:String,default:"markdown"},flavor:{type:String,default:"gfm"}},setup(e){const t=e,n=Ge(t.flavor),r=Ge("word"),s=Ge(null),i=Ge(null),o=Ge(null),u=Ge(null),h=Ge(null),d=Ge([]);xs(()=>t.flavor,ce=>{n.value=ce});const p=[{label:"CommonMark",value:"commonmark"},{label:"GFM",value:"gfm"}],b=[{label:"Word",value:"word"},{label:"RTF",value:"rtf"}];function v(ce){ce.use(function(te){te.inline.ruler.after("escape","math_inline",function(he,V){const oe=he.pos;if(he.src.charCodeAt(oe)!==36||he.src.charCodeAt(oe+1)!==36)return!1;let Y=oe+2,fe=!1;for(;Y<he.posMax;){if(he.src.charCodeAt(Y)===36&&he.src.charCodeAt(Y+1)===36){fe=!0;break}Y++}if(!fe)return!1;if(!V){const ee=he.push("math_inline","span",0);ee.content=he.src.slice(oe+2,Y),ee.markup="$$"}return he.pos=Y+2,!0}),te.inline.ruler.after("escape","math_inline_single",function(he,V){const oe=he.pos;if(he.src.charCodeAt(oe)!==36||he.src.charCodeAt(oe+1)===36)return!1;let Y=oe+1,fe=!1;for(;Y<he.posMax;){if(he.src.charCodeAt(Y)===36){fe=!0;break}Y++}if(!fe)return!1;if(!V){const ee=he.push("math_inline_single","span",0);ee.content=he.src.slice(oe+1,Y),ee.markup="$"}return he.pos=Y+1,!0})}),ce.renderer.rules.math_inline=function(te,he){return`<span class="math-inline">$$${te[he].content}$$</span>`},ce.renderer.rules.math_inline_single=function(te,he){return`<span class="math-inline">$${te[he].content}$</span>`}}function k(ce){const te=ce==="commonmark"?new Va("commonmark",{html:!0,linkify:!0,typographer:!0,breaks:!1}):new Va({html:!0,linkify:!0,typographer:!0,breaks:!0});return v(te),te}const x=ht(()=>{if(!t.content)return"";const ce=t.mode==="markdown"?n.value:"gfm";return k(ce).render(t.content)});async function A(){if(t.mode!=="pdf"){d.value=[];return}await s0();const ce=u.value;if(!ce){d.value=x.value?[x.value]:[];return}const te=Array.from(ce.children);if(te.length===0){d.value=x.value?[x.value]:[];return}const he=980,V=[];let oe="",Y=0;te.forEach(fe=>{const ee=fe.offsetHeight||fe.scrollHeight||0,Ae=fe.outerHTML;if(oe&&Y+ee>he){V.push(oe),oe=Ae,Y=ee;return}oe+=Ae,Y+=ee}),oe&&V.push(oe),d.value=V.length>0?V:[x.value]}xs(()=>[t.mode,x.value],()=>{A()},{immediate:!0}),mo(()=>{A()});const E=ht(()=>`markdown_render_${new Date().getTime()}`);function M(ce,te){const he=URL.createObjectURL(ce),V=document.createElement("a");V.href=he,V.download=te,document.body.appendChild(V),V.click(),document.body.removeChild(V),URL.revokeObjectURL(he)}function q(ce,te){return`<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title>${te}</title>
|
||
<style>
|
||
body { font-family: "Microsoft YaHei", Arial, sans-serif; color: #1f2937; padding: 32px; line-height: 1.75; }
|
||
h1, h2, h3, h4, h5, h6 { color: #111827; }
|
||
pre { background: #f5f7fa; padding: 16px; border-radius: 8px; overflow: auto; }
|
||
code { background: #f5f7fa; padding: 2px 4px; border-radius: 4px; }
|
||
table { border-collapse: collapse; width: 100%; }
|
||
th, td { border: 1px solid #dcdfe6; padding: 8px 12px; text-align: left; }
|
||
blockquote { border-left: 4px solid #dcdfe6; margin: 1em 0; padding-left: 1em; color: #606266; }
|
||
img { max-width: 100%; }
|
||
</style>
|
||
</head>
|
||
<body>${ce}</body>
|
||
</html>`}function L(ce){const te=document.createElement("div");return te.innerHTML=ce,te.innerText||te.textContent||""}function O(ce){return ce.replace(/\\/g,"\\\\").replace(/\{/g,"\\{").replace(/\}/g,"\\}").replace(/\n/g,`\\par
|
||
`)}async function F(ce,te){const he=q(ce,te);M(new Blob([he],{type:"text/html;charset=utf-8"}),te)}async function z(ce,te){M(new Blob([ce],{type:"text/markdown;charset=utf-8"}),te)}async function j(ce,te){if(!ce){Fd.error("当前没有可导出的 PDF 内容");return}await s0(),await v1();const he=await window.html2pdf().set({margin:10,filename:te,image:{type:"jpeg",quality:.98},html2canvas:{scale:2,useCORS:!0},jsPDF:{unit:"mm",format:"a4",orientation:"portrait"}}).from(ce).outputPdf("blob");M(he,te)}async function G(ce,te){const he=q(ce,te);M(new Blob(["\uFEFF",he],{type:"application/msword"}),te)}async function Q(ce,te){const he=L(ce),V=`{\\rtf1\\ansi\\deff0 {\\fonttbl{\\f0 Calibri;}}
|
||
\\fs24 ${O(he)}}`;M(new Blob([V],{type:"application/rtf"}),te)}async function ye(){if(t.mode==="markdown"){const ce=n.value==="commonmark"?"_commonmark":"_gfm";await z(t.content,`${E.value}${ce}.md`);return}if(t.mode==="html"){await F(x.value,`${E.value}.html`);return}if(t.mode==="pdf"){await j(o.value,`${E.value}.pdf`);return}if(r.value==="word"){await G(x.value,`${E.value}.doc`);return}await Q(x.value,`${E.value}.rtf`)}return(ce,te)=>{const he=dt("el-segmented"),V=dt("el-icon"),oe=dt("el-button"),Y=dt("el-empty");return Ke(),at("div",Y5,[e.content?(Ke(),at(fr,{key:0},[ke("div",J5,[ke("div",Q5,[e.mode==="markdown"?(Ke(),ii(he,{key:0,modelValue:n.value,"onUpdate:modelValue":te[0]||(te[0]=fe=>n.value=fe),options:p,size:"small"},null,8,["modelValue"])):e.mode==="richtext"?(Ke(),ii(he,{key:1,modelValue:r.value,"onUpdate:modelValue":te[1]||(te[1]=fe=>r.value=fe),options:b,size:"small"},null,8,["modelValue"])):ks("",!0)]),pe(oe,{type:"primary",size:"small",class:"action-button primary",onClick:te[2]||(te[2]=fe=>ye())},{icon:Se(()=>[pe(V,null,{default:Se(()=>[pe(Ht($d))]),_:1})]),default:Se(()=>[te[3]||(te[3]=bt(" 下载 ",-1))]),_:1})]),ke("div",Z5,[e.mode==="markdown"?(Ke(),at("div",e3,[ke("div",{ref_key:"markdownRef",ref:s,class:"markdown-content rendered-html",innerHTML:x.value},null,8,t3)])):e.mode==="html"?(Ke(),at("div",n3,[ke("div",{ref_key:"htmlRef",ref:i,class:"markdown-content rendered-html",innerHTML:x.value},null,8,r3)])):e.mode==="pdf"?(Ke(),at("div",s3,[ke("div",i3,[ke("div",{ref_key:"pdfRef",ref:o,class:"pdf-preview-pages"},[(Ke(!0),at(fr,null,fi(d.value,(fe,ee)=>(Ke(),at("div",{key:`pdf-page-${ee}`,class:"pdf-page"},[ke("div",{class:"markdown-content pdf-content",innerHTML:fe},null,8,a3)]))),128))],512)]),ke("div",{ref_key:"pdfMeasureRef",ref:u,class:"pdf-measure markdown-content pdf-content",innerHTML:x.value},null,8,o3)])):(Ke(),at("div",l3,[ke("div",c3,[ke("article",{ref_key:"richtextRef",ref:h,class:"richtext-document"},[ke("div",{class:"markdown-content richtext-content",innerHTML:x.value},null,8,u3)],512)])]))])],64)):(Ke(),at("div",f3,[pe(Y,{description:ce.$t("results.noResults")},null,8,["description"])]))])}}}),d3=wo(h3,[["__scopeId","data-v-12093408"]]),m3="npm2url/dist/index.cjs",p3={jsdelivr:e=>`https://cdn.jsdelivr.net/npm/${e}`,unpkg:e=>`https://unpkg.com/${e}`};async function g3(e,t){const n=await fetch(e,{signal:t});if(!n.ok)throw n;await n.text()}class y3{constructor(){this.providers={...p3},this.provider="jsdelivr"}async getFastestProvider(t=5e3,n=m3){const r=new AbortController;let s=0;try{return await new Promise((i,o)=>{Promise.all(Object.entries(this.providers).map(async([u,h])=>{try{await g3(h(n),r.signal),i(u)}catch{}})).then(()=>o(new Error("All providers failed"))),s=setTimeout(o,t,new Error("Timed out"))})}finally{r.abort(),clearTimeout(s)}}async findFastestProvider(t,n){return this.provider=await this.getFastestProvider(t,n),this.provider}setProvider(t,n){n?this.providers[t]=n:delete this.providers[t]}getFullUrl(t,n=this.provider){if(t.includes("://"))return t;const r=this.providers[n];if(!r)throw new Error(`Provider ${n} not found`);return r(t)}}class Qs{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const n=this.listeners.indexOf(t);n>=0&&this.listeners.splice(n,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const n of this.listeners)n(...t)}}const b3=Math.random().toString(36).slice(2,8);let nh=0;function w3(){return nh+=1,`mm-${b3}-${nh}`}function ms(){}function Zs(e,t){const n=(r,s)=>t(r,()=>{var i;return(i=r.children)==null?void 0:i.map(o=>n(o,r))},s);return n(e)}function v3(e,...t){const n=(e||"").split(" ").filter(Boolean);return t.forEach(r=>{r&&n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function rh(e,t){return(...n)=>t(e,...n)}function _1(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function _3(e){const t={};return function(...r){const s=`${r[0]}`;let i=t[s];return i||(i={value:e(...r)},t[s]=i),i.value}}function x3(e,t){const n={timer:0};function r(){n.timer&&(window.clearTimeout(n.timer),n.timer=0)}function s(){r(),n.args&&(n.result=e(...n.args))}return function(...o){return r(),n.args=o,n.timer=window.setTimeout(s,t),n.result}}/*! @gera2ld/jsx-dom v2.2.2 | ISC License */const x1=1,k1=2,k3="http://www.w3.org/2000/svg",Ml="http://www.w3.org/1999/xlink",S3={show:Ml,actuate:Ml,href:Ml},A3=e=>typeof e=="string"||typeof e=="number",T3=e=>(e==null?void 0:e.vtype)===x1,E3=e=>(e==null?void 0:e.vtype)===k1;function N3(e,t,...n){return t=Object.assign({},t,{children:n.length===1?n[0]:n}),C3(e,t)}function C3(e,t){let n;if(typeof e=="string")n=x1;else if(typeof e=="function")n=k1;else throw new Error("Invalid VNode type");return{vtype:n,type:e,props:t}}function I3(e){return e.children}const M3={isSvg:!1};function sh(e,t){Array.isArray(t)||(t=[t]),t=t.filter(Boolean),t.length&&e.append(...t)}function O3(e,t,n){for(const r in t)if(!(r==="key"||r==="children"||r==="ref"))if(r==="dangerouslySetInnerHTML")e.innerHTML=t[r].__html;else if(r==="innerHTML"||r==="textContent"||r==="innerText"||r==="value"&&["textarea","select"].includes(e.tagName)){const s=t[r];s!=null&&(e[r]=s)}else r.startsWith("on")?e[r.toLowerCase()]=t[r]:R3(e,r,t[r],n.isSvg)}const L3={className:"class",labelFor:"for"};function R3(e,t,n,r){if(t=L3[t]||t,n===!0)e.setAttribute(t,"");else if(n===!1)e.removeAttribute(t);else{const s=r?S3[t]:void 0;s!==void 0?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}}function D3(e){return e.reduce((t,n)=>t.concat(n),[])}function y0(e,t){return Array.isArray(e)?D3(e.map(n=>y0(n,t))):sc(e,t)}function sc(e,t=M3){if(e==null||typeof e=="boolean")return null;if(e instanceof Node)return e;if(E3(e)){const{type:n,props:r}=e;if(n===I3){const i=document.createDocumentFragment();if(r.children){const o=y0(r.children,t);sh(i,o)}return i}const s=n(r);return sc(s,t)}if(A3(e))return document.createTextNode(`${e}`);if(T3(e)){let n;const{type:r,props:s}=e;if(!t.isSvg&&r==="svg"&&(t=Object.assign({},t,{isSvg:!0})),t.isSvg?n=document.createElementNS(k3,r):n=document.createElement(r),O3(n,s,t),s.children){let o=t;t.isSvg&&r==="foreignObject"&&(o=Object.assign({},o,{isSvg:!1}));const u=y0(s.children,o);u!=null&&sh(n,u)}const{ref:i}=s;return typeof i=="function"&&i(n),n}throw new Error("mount: Invalid Vnode!")}function P3(e){return sc(e)}function Ga(...e){return P3(N3(...e))}const $3=_3(e=>{document.head.append(Ga("link",{rel:"preload",as:"script",href:e}))}),ih={},ah={};async function F3(e,t){var n;const r=e.type==="script"&&((n=e.data)==null?void 0:n.src)||"";if(e.loaded||(e.loaded=ih[r]),!e.loaded){const s=_1();if(e.loaded=s.promise,e.type==="script"&&(document.head.append(Ga("script",{...e.data,onLoad:()=>s.resolve(),onError:s.reject})),r?ih[r]=e.loaded:s.resolve()),e.type==="iife"){const{fn:i,getParams:o}=e.data;i(...(o==null?void 0:o(t))||[]),s.resolve()}}await e.loaded}async function B3(e){const t=e.type==="stylesheet"&&e.data.href||"";if(e.loaded||(e.loaded=ah[t]),!e.loaded){const n=_1();e.loaded=n.promise,t&&(ah[t]=e.loaded),e.type==="style"?(document.head.append(Ga("style",{textContent:e.data})),n.resolve()):t&&(document.head.append(Ga("link",{rel:"stylesheet",...e.data})),fetch(t).then(r=>{if(r.ok)return r.text();throw r}).then(()=>n.resolve(),n.reject))}await e.loaded}async function ic(e,t){e.forEach(n=>{var r;n.type==="script"&&((r=n.data)!=null&&r.src)&&$3(n.data.src)}),t={getMarkmap:()=>window.markmap,...t};for(const n of e)await F3(n,t)}async function z3(e){await Promise.all(e.map(t=>B3(t)))}function ac(e){return{type:"script",data:{src:e}}}function S1(e){return{type:"stylesheet",data:{href:e}}}const q3={_useHtmlParser2:!1};function b0(e,t){if(!e)return t??q3;const n={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(n._useHtmlParser2=!0,n.xmlMode=!0,e.xml!==!0&&Object.assign(n,e.xml)):e.xmlMode&&(n._useHtmlParser2=!0),n}var tt;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(tt||(tt={}));function U3(e){return e.type===tt.Tag||e.type===tt.Script||e.type===tt.Style}const H3=tt.Root,V3=tt.Text,j3=tt.Directive,W3=tt.Comment,G3=tt.Script,K3=tt.Style,X3=tt.Tag,Y3=tt.CDATA,J3=tt.Doctype;let A1=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return gi(this,t)}};class oc extends A1{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class Ka extends oc{constructor(){super(...arguments),this.type=tt.Text}get nodeType(){return 3}}class T1 extends oc{constructor(){super(...arguments),this.type=tt.Comment}get nodeType(){return 8}}class E1 extends oc{constructor(t,n){super(n),this.name=t,this.type=tt.Directive}get nodeType(){return 1}}class lc extends A1{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class N1 extends lc{constructor(){super(...arguments),this.type=tt.CDATA}get nodeType(){return 4}}let pi=class extends lc{constructor(){super(...arguments),this.type=tt.Root}get nodeType(){return 9}};class C1 extends lc{constructor(t,n,r=[],s=t==="script"?tt.Script:t==="style"?tt.Style:tt.Tag){super(r),this.name=t,this.attribs=n,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var n,r;return{name:t,value:this.attribs[t],namespace:(n=this["x-attribsNamespace"])===null||n===void 0?void 0:n[t],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[t]}})}}function Fe(e){return U3(e)}function vo(e){return e.type===tt.CDATA}function Gr(e){return e.type===tt.Text}function cc(e){return e.type===tt.Comment}function Q3(e){return e.type===tt.Directive}function Qr(e){return e.type===tt.Root}function Gt(e){return Object.prototype.hasOwnProperty.call(e,"children")}function gi(e,t=!1){let n;if(Gr(e))n=new Ka(e.data);else if(cc(e))n=new T1(e.data);else if(Fe(e)){const r=t?Ol(e.children):[],s=new C1(e.name,{...e.attribs},r);r.forEach(i=>i.parent=s),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=s}else if(vo(e)){const r=t?Ol(e.children):[],s=new N1(r);r.forEach(i=>i.parent=s),n=s}else if(Qr(e)){const r=t?Ol(e.children):[],s=new pi(r);r.forEach(i=>i.parent=s),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(Q3(e)){const r=new E1(e.name,e.data);e["x-name"]!=null&&(r["x-name"]=e["x-name"],r["x-publicId"]=e["x-publicId"],r["x-systemId"]=e["x-systemId"]),n=r}else throw new Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function Ol(e){const t=e.map(n=>gi(n,!0));for(let n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}const oh={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class Z3{constructor(t,n,r){this.dom=[],this.root=new pi(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(r=n,n=oh),typeof t=="object"&&(n=t,t=void 0),this.callback=t??null,this.options=n??oh,this.elementCB=r??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new pi(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,n){const r=this.options.xmlMode?tt.Tag:void 0,s=new C1(t,n,void 0,r);this.addNode(s),this.tagStack.push(s)}ontext(t){const{lastNode:n}=this;if(n&&n.type===tt.Text)n.data+=t,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{const r=new Ka(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===tt.Comment){this.lastNode.data+=t;return}const n=new T1(t);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){const t=new Ka(""),n=new N1([t]);this.addNode(n),t.parent=n,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,n){const r=new E1(t,n);this.addNode(r)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const n=this.tagStack[this.tagStack.length-1],r=n.children[n.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),n.children.push(t),r&&(t.prev=r,r.next=t),t.parent=n,this.lastNode=null}}const I1=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),M1=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ll;const e6=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),w0=(Ll=String.fromCodePoint)!==null&&Ll!==void 0?Ll:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function t6(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=e6.get(e))!==null&&t!==void 0?t:e}var jt;(function(e){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_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(jt||(jt={}));const n6=32;var kr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(kr||(kr={}));function v0(e){return e>=jt.ZERO&&e<=jt.NINE}function r6(e){return e>=jt.UPPER_A&&e<=jt.UPPER_F||e>=jt.LOWER_A&&e<=jt.LOWER_F}function s6(e){return e>=jt.UPPER_A&&e<=jt.UPPER_Z||e>=jt.LOWER_A&&e<=jt.LOWER_Z||v0(e)}function i6(e){return e===jt.EQUALS||s6(e)}var Ut;(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"})(Ut||(Ut={}));var Wn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Wn||(Wn={}));class O1{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Ut.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Wn.Strict}startEntity(t){this.decodeMode=t,this.state=Ut.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ut.EntityStart:return t.charCodeAt(n)===jt.NUM?(this.state=Ut.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ut.NamedEntity,this.stateNamedEntity(t,n));case Ut.NumericStart:return this.stateNumericStart(t,n);case Ut.NumericDecimal:return this.stateNumericDecimal(t,n);case Ut.NumericHex:return this.stateNumericHex(t,n);case Ut.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|n6)===jt.LOWER_X?(this.state=Ut.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ut.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,s){if(n!==r){const i=r-n;this.result=this.result*Math.pow(s,i)+parseInt(t.substr(n,i),s),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(v0(s)||r6(s))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(v0(s))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===jt.SEMI)this.consumed+=1;else if(this.decodeMode===Wn.Strict)return 0;return this.emitCodePoint(t6(this.result),this.consumed),this.errors&&(t!==jt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let s=r[this.treeIndex],i=(s&kr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=a6(r,s,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===Wn.Attribute&&(i===0||i6(o))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],i=(s&kr.VALUE_LENGTH)>>14,i!==0){if(o===jt.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Wn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,s=(r[n]&kr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~kr.VALUE_LENGTH:s[t+1],r),n===3&&this.emitCodePoint(s[t+2],r),r}end(){var t;switch(this.state){case Ut.NamedEntity:return this.result!==0&&(this.decodeMode!==Wn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ut.NumericDecimal:return this.emitNumericEntity(0,2);case Ut.NumericHex:return this.emitNumericEntity(0,3);case Ut.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ut.EntityStart:return 0}}}function L1(e){let t="";const n=new O1(e,r=>t+=w0(r));return function(s,i){let o=0,u=0;for(;(u=s.indexOf("&",u))>=0;){t+=s.slice(o,u),n.startEntity(i);const d=n.write(s,u+1);if(d<0){o=u+n.end();break}o=u+d,u=d===0?o+1:o}const h=t+s.slice(o);return t="",h}}function a6(e,t,n,r){const s=(t&kr.BRANCH_LENGTH)>>7,i=t&kr.JUMP_TABLE;if(s===0)return i!==0&&r===i?n:-1;if(i){const h=r-i;return h<0||h>=s?-1:e[n+h]-1}let o=n,u=o+s-1;for(;o<=u;){const h=o+u>>>1,d=e[h];if(d<r)o=h+1;else if(d>r)u=h-1;else return e[h+s]}return-1}L1(I1);L1(M1);const lh=/["&'<>$\x80-\uFFFF]/g,o6=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),l6=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function R1(e){let t="",n=0,r;for(;(r=lh.exec(e))!==null;){const s=r.index,i=e.charCodeAt(s),o=o6.get(i);o!==void 0?(t+=e.substring(n,s)+o,n=s+1):(t+=`${e.substring(n,s)}&#x${l6(e,s).toString(16)};`,n=lh.lastIndex+=+((i&64512)===55296))}return t+e.substr(n)}function D1(e,t){return function(r){let s,i=0,o="";for(;s=e.exec(r);)i!==s.index&&(o+=r.substring(i,s.index)),o+=t.get(s[0].charCodeAt(0)),i=s.index+1;return o+r.substring(i)}}const c6=D1(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),u6=D1(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),f6=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),h6=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),d6=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function m6(e){return e.replace(/"/g,""")}function p6(e,t){var n;if(!e)return;const r=((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)===!1?m6:t.xmlMode||t.encodeEntities!=="utf8"?R1:c6;return Object.keys(e).map(s=>{var i,o;const u=(i=e[s])!==null&&i!==void 0?i:"";return t.xmlMode==="foreign"&&(s=(o=h6.get(s))!==null&&o!==void 0?o:s),!t.emptyAttrs&&!t.xmlMode&&u===""?s:`${s}="${r(u)}"`}).join(" ")}const ch=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function _o(e,t={}){const n="length"in e?e:[e];let r="";for(let s=0;s<n.length;s++)r+=g6(n[s],t);return r}function g6(e,t){switch(e.type){case H3:return _o(e.children,t);case J3:case j3:return v6(e);case W3:return k6(e);case Y3:return x6(e);case G3:case K3:case X3:return w6(e,t);case V3:return _6(e,t)}}const y6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),b6=new Set(["svg","math"]);function w6(e,t){var n;t.xmlMode==="foreign"&&(e.name=(n=f6.get(e.name))!==null&&n!==void 0?n:e.name,e.parent&&y6.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&b6.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const s=p6(e.attribs,t);return s&&(r+=` ${s}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&ch.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=_o(e.children,t)),(t.xmlMode||!ch.has(e.name))&&(r+=`</${e.name}>`)),r}function v6(e){return`<${e.data}>`}function _6(e,t){var n;let r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&d6.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?R1(r):u6(r)),r}function x6(e){return`<![CDATA[${e.children[0].data}]]>`}function k6(e){return`<!--${e.data}-->`}function P1(e,t){return _o(e,t)}function S6(e,t){return Gt(e)?e.children.map(n=>P1(n,t)).join(""):""}function La(e){return Array.isArray(e)?e.map(La).join(""):Fe(e)?e.name==="br"?`
|
||
`:La(e.children):vo(e)?La(e.children):Gr(e)?e.data:""}function Ts(e){return Array.isArray(e)?e.map(Ts).join(""):Gt(e)&&!cc(e)?Ts(e.children):Gr(e)?e.data:""}function Xa(e){return Array.isArray(e)?e.map(Xa).join(""):Gt(e)&&(e.type===tt.Tag||vo(e))?Xa(e.children):Gr(e)?e.data:""}function xo(e){return Gt(e)?e.children:[]}function $1(e){return e.parent||null}function F1(e){const t=$1(e);if(t!=null)return xo(t);const n=[e];let{prev:r,next:s}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;s!=null;)n.push(s),{next:s}=s;return n}function A6(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}function T6(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function E6(e){return e.name}function uc(e){let{next:t}=e;for(;t!==null&&!Fe(t);)({next:t}=t);return t}function fc(e){let{prev:t}=e;for(;t!==null&&!Fe(t);)({prev:t}=t);return t}function Zr(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function N6(e,t){const n=t.prev=e.prev;n&&(n.next=t);const r=t.next=e.next;r&&(r.prev=t);const s=t.parent=e.parent;if(s){const i=s.children;i[i.lastIndexOf(e)]=t,e.parent=null}}function C6(e,t){if(Zr(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function I6(e,t){Zr(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const s=n.children;s.splice(s.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function M6(e,t){if(Zr(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const n=e.children[1];n.prev=t,t.next=n}else t.next=null}function O6(e,t){Zr(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function ko(e,t,n=!0,r=1/0){return hc(e,Array.isArray(t)?t:[t],n,r)}function hc(e,t,n,r){const s=[],i=[t],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}const u=i[0][o[0]++];if(e(u)&&(s.push(u),--r<=0))return s;n&&Gt(u)&&u.children.length>0&&(o.unshift(0),i.unshift(u.children))}}function L6(e,t){return t.find(e)}function dc(e,t,n=!0){let r=null;for(let s=0;s<t.length&&!r;s++){const i=t[s];if(Fe(i))e(i)?r=i:n&&i.children.length>0&&(r=dc(e,i.children,!0));else continue}return r}function B1(e,t){return t.some(n=>Fe(n)&&(e(n)||B1(e,n.children)))}function R6(e,t){const n=[],r=[t],s=[0];for(;;){if(s[0]>=r[0].length){if(r.length===1)return n;r.shift(),s.shift();continue}const i=r[0][s[0]++];Fe(i)&&(e(i)&&n.push(i),i.children.length>0&&(s.unshift(0),r.unshift(i.children)))}}const Ya={tag_name(e){return typeof e=="function"?t=>Fe(t)&&e(t.name):e==="*"?Fe:t=>Fe(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>Gr(t)&&e(t.data):t=>Gr(t)&&t.data===e}};function z1(e,t){return typeof t=="function"?n=>Fe(n)&&t(n.attribs[e]):n=>Fe(n)&&n.attribs[e]===t}function D6(e,t){return n=>e(n)||t(n)}function q1(e){const t=Object.keys(e).map(n=>{const r=e[n];return Object.prototype.hasOwnProperty.call(Ya,n)?Ya[n](r):z1(n,r)});return t.length===0?null:t.reduce(D6)}function P6(e,t){const n=q1(e);return n?n(t):!0}function $6(e,t,n,r=1/0){const s=q1(e);return s?ko(s,t,n,r):[]}function F6(e,t,n=!0){return Array.isArray(t)||(t=[t]),dc(z1("id",e),t,n)}function Ls(e,t,n=!0,r=1/0){return ko(Ya.tag_name(e),t,n,r)}function B6(e,t,n=!0,r=1/0){return ko(Ya.tag_type(e),t,n,r)}function z6(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0){e.splice(t,1);continue}for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var Tn;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Tn||(Tn={}));function U1(e,t){const n=[],r=[];if(e===t)return 0;let s=Gt(e)?e:e.parent;for(;s;)n.unshift(s),s=s.parent;for(s=Gt(t)?t:t.parent;s;)r.unshift(s),s=s.parent;const i=Math.min(n.length,r.length);let o=0;for(;o<i&&n[o]===r[o];)o++;if(o===0)return Tn.DISCONNECTED;const u=n[o-1],h=u.children,d=n[o],p=r[o];return h.indexOf(d)>h.indexOf(p)?u===t?Tn.FOLLOWING|Tn.CONTAINED_BY:Tn.FOLLOWING:u===e?Tn.PRECEDING|Tn.CONTAINS:Tn.PRECEDING}function Rs(e){return e=e.filter((t,n,r)=>!r.includes(t,n+1)),e.sort((t,n)=>{const r=U1(t,n);return r&Tn.PRECEDING?-1:r&Tn.FOLLOWING?1:0}),e}function q6(e){const t=Ja(W6,e);return t?t.name==="feed"?U6(t):H6(t):null}function U6(e){var t;const n=e.children,r={type:"atom",items:Ls("entry",n).map(o=>{var u;const{children:h}=o,d={media:H1(h)};cn(d,"id","id",h),cn(d,"title","title",h);const p=(u=Ja("link",h))===null||u===void 0?void 0:u.attribs.href;p&&(d.link=p);const b=Sr("summary",h)||Sr("content",h);b&&(d.description=b);const v=Sr("updated",h);return v&&(d.pubDate=new Date(v)),d})};cn(r,"id","id",n),cn(r,"title","title",n);const s=(t=Ja("link",n))===null||t===void 0?void 0:t.attribs.href;s&&(r.link=s),cn(r,"description","subtitle",n);const i=Sr("updated",n);return i&&(r.updated=new Date(i)),cn(r,"author","email",n,!0),r}function H6(e){var t,n;const r=(n=(t=Ja("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],s={type:e.name.substr(0,3),id:"",items:Ls("item",e.children).map(o=>{const{children:u}=o,h={media:H1(u)};cn(h,"id","guid",u),cn(h,"title","title",u),cn(h,"link","link",u),cn(h,"description","description",u);const d=Sr("pubDate",u)||Sr("dc:date",u);return d&&(h.pubDate=new Date(d)),h})};cn(s,"title","title",r),cn(s,"link","link",r),cn(s,"description","description",r);const i=Sr("lastBuildDate",r);return i&&(s.updated=new Date(i)),cn(s,"author","managingEditor",r,!0),s}const V6=["url","type","lang"],j6=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function H1(e){return Ls("media:content",e).map(t=>{const{attribs:n}=t,r={medium:n.medium,isDefault:!!n.isDefault};for(const s of V6)n[s]&&(r[s]=n[s]);for(const s of j6)n[s]&&(r[s]=parseInt(n[s],10));return n.expression&&(r.expression=n.expression),r})}function Ja(e,t){return Ls(e,t,!0,1)[0]}function Sr(e,t,n=!1){return Ts(Ls(e,t,n,1)).trim()}function cn(e,t,n,r,s=!1){const i=Sr(n,r,s);i&&(e[t]=i)}function W6(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const So=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return Tn},append:I6,appendChild:C6,compareDocumentPosition:U1,existsOne:B1,filter:ko,find:hc,findAll:R6,findOne:dc,findOneChild:L6,getAttributeValue:A6,getChildren:xo,getElementById:F6,getElements:$6,getElementsByTagName:Ls,getElementsByTagType:B6,getFeed:q6,getInnerHTML:S6,getName:E6,getOuterHTML:P1,getParent:$1,getSiblings:F1,getText:La,hasAttrib:T6,hasChildren:Gt,innerText:Xa,isCDATA:vo,isComment:cc,isDocument:Qr,isTag:Fe,isText:Gr,nextElementSibling:uc,prepend:O6,prependChild:M6,prevElementSibling:fc,removeElement:Zr,removeSubsets:z6,replaceElement:N6,testElement:P6,textContent:Ts,uniqueSort:Rs},Symbol.toStringTag,{value:"Module"}));function V1(e,t,n){return e?e(t??e._root.children,null,void 0,n).toString():""}function G6(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function K6(e,t){const n=G6(e)?(t=e,void 0):e,r={...this===null||this===void 0?void 0:this._options,...b0(t)};return V1(this,n,r)}function X6(e){const t={...this._options,xmlMode:!0};return V1(this,e,t)}function yi(e){const t=e??(this?this.root():[]);let n="";for(let r=0;r<t.length;r++)n+=Ts(t[r]);return n}function Y6(e,t,n=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t);const r=this.load(e,this._options,!1);return n||r("script").remove(),[...r.root()[0].children]}function J6(){return this(this._root)}function j1(e,t){if(t===e)return!1;let n=t;for(;n&&n!==n.parent;)if(n=n.parent,n===e)return!0;return!1}function Q6(e){return this.root().extract(e)}function Z6(e,t){if(!uh(e)||!uh(t))return;let n=e.length;const r=+t.length;for(let s=0;s<r;s++)e[n++]=t[s];return e.length=n,e}function uh(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}const e7=Object.freeze(Object.defineProperty({__proto__:null,contains:j1,extract:Q6,html:K6,merge:Z6,parseHTML:Y6,root:J6,text:yi,xml:X6},Symbol.toStringTag,{value:"Module"}));function hr(e){return e.cheerio!=null}function t7(e){return e.replace(/[._-](\w|$)/g,(t,n)=>n.toUpperCase())}function n7(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function wt(e,t){const n=e.length;for(let r=0;r<n;r++)t(e[r],r);return e}var zr;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(zr||(zr={}));function _0(e){const t=e.indexOf("<");if(t<0||t>e.length-3)return!1;const n=e.charCodeAt(t+1);return(n>=zr.LowerA&&n<=zr.LowerZ||n>=zr.UpperA&&n<=zr.UpperZ||n===zr.Exclamation)&&e.includes(">",t+2)}const bi=Object.prototype.hasOwnProperty,wi=/\s+/,x0="data-",mc=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,r7=/^{[^]*}$|^\[[^]*]$/;function Qa(e,t,n){var r;if(!(!e||!Fe(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(bi.call(e.attribs,t))return!n&&mc.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return yi(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function bs(e,t,n){n===null?G1(e,t):e.attribs[t]=`${n}`}function s7(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return wt(this,(n,r)=>{Fe(n)&&bs(n,e,t.call(n,r,n.attribs[e]))})}return wt(this,n=>{if(Fe(n))if(typeof e=="object")for(const r of Object.keys(e)){const s=e[r];bs(n,r,s)}else bs(n,e,t)})}return arguments.length>1?this:Qa(this[0],e,this.options.xmlMode)}function fh(e,t,n){return t in e?e[t]:!n&&mc.test(t)?Qa(e,t,!1)!==void 0:Qa(e,t,n)}function Rl(e,t,n,r){t in e?e[t]=n:bs(e,t,!r&&mc.test(t)?n?"":null:`${n}`)}function i7(e,t){var n;if(typeof e=="string"&&t===void 0){const r=this[0];if(!r||!Fe(r))return;switch(e){case"style":{const s=this.css(),i=Object.keys(s);for(let o=0;o<i.length;o++)s[o]=i[o];return s.length=i.length,s}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{const s=(n=r.attribs)===null||n===void 0?void 0:n[e];return typeof URL<"u"&&(e==="href"&&(r.tagName==="a"||r.tagName==="link")||e==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&s!==void 0&&this.options.baseURI?new URL(s,this.options.baseURI).href:s}case"innerText":return Xa(r);case"textContent":return Ts(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return fh(r,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return wt(this,(r,s)=>{Fe(r)&&Rl(r,e,t.call(r,s,fh(r,e,this.options.xmlMode)),this.options.xmlMode)})}return wt(this,r=>{if(Fe(r))if(typeof e=="object")for(const s of Object.keys(e)){const i=e[s];Rl(r,s,i,this.options.xmlMode)}else Rl(r,e,t,this.options.xmlMode)})}}function hh(e,t,n){var r;(r=e.data)!==null&&r!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&n!==void 0&&(e.data[t]=n)}function a7(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(x0))continue;const n=t7(t.slice(x0.length));bi.call(e.data,n)||(e.data[n]=W1(e.attribs[t]))}return e.data}function o7(e,t){const n=x0+n7(t),r=e.data;if(bi.call(r,t))return r[t];if(bi.call(e.attribs,n))return r[t]=W1(e.attribs[n])}function W1(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);if(e===String(t))return t;if(r7.test(e))try{return JSON.parse(e)}catch{}return e}function l7(e,t){var n;const r=this[0];if(!r||!Fe(r))return;const s=r;return(n=s.data)!==null&&n!==void 0||(s.data={}),e==null?a7(s):typeof e=="object"||t!==void 0?(wt(this,i=>{Fe(i)&&(typeof e=="object"?hh(i,e):hh(i,e,t))}),this):o7(s,e)}function c7(e){const t=arguments.length===0,n=this[0];if(!n||!Fe(n))return t?void 0:this;switch(n.name){case"textarea":return this.text(e);case"select":{const r=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const s=typeof e=="object"?e:[e];for(const i of s)this.find(`option[value="${i}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(s=>yi(s.children)):r.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function G1(e,t){!e.attribs||!bi.call(e.attribs,t)||delete e.attribs[t]}function Za(e){return e?e.trim().split(wi):[]}function u7(e){const t=Za(e);for(const n of t)wt(this,r=>{Fe(r)&&G1(r,n)});return this}function f7(e){return this.toArray().some(t=>{const n=Fe(t)&&t.attribs.class;let r=-1;if(n&&e.length>0)for(;(r=n.indexOf(e,r+1))>-1;){const s=r+e.length;if((r===0||wi.test(n[r-1]))&&(s===n.length||wi.test(n[s])))return!0}return!1})}function K1(e){if(typeof e=="function")return wt(this,(r,s)=>{if(Fe(r)){const i=r.attribs.class||"";K1.call([r],e.call(r,s,i))}});if(!e||typeof e!="string")return this;const t=e.split(wi),n=this.length;for(let r=0;r<n;r++){const s=this[r];if(!Fe(s))continue;const i=Qa(s,"class",!1);if(i){let o=` ${i} `;for(const u of t){const h=`${u} `;o.includes(` ${h}`)||(o+=h)}bs(s,"class",o.trim())}else bs(s,"class",t.join(" ").trim())}return this}function X1(e){if(typeof e=="function")return wt(this,(s,i)=>{Fe(s)&&X1.call([s],e.call(s,i,s.attribs.class||""))});const t=Za(e),n=t.length,r=arguments.length===0;return wt(this,s=>{if(Fe(s))if(r)s.attribs.class="";else{const i=Za(s.attribs.class);let o=!1;for(let u=0;u<n;u++){const h=i.indexOf(t[u]);h>=0&&(i.splice(h,1),o=!0,u--)}o&&(s.attribs.class=i.join(" "))}})}function Y1(e,t){if(typeof e=="function")return wt(this,(o,u)=>{Fe(o)&&Y1.call([o],e.call(o,u,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const n=e.split(wi),r=n.length,s=typeof t=="boolean"?t?1:-1:0,i=this.length;for(let o=0;o<i;o++){const u=this[o];if(!Fe(u))continue;const h=Za(u.attribs.class);for(let d=0;d<r;d++){const p=h.indexOf(n[d]);s>=0&&p<0?h.push(n[d]):s<=0&&p>=0&&h.splice(p,1)}u.attribs.class=h.join(" ")}return this}const h7=Object.freeze(Object.defineProperty({__proto__:null,addClass:K1,attr:s7,data:l7,hasClass:f7,prop:i7,removeAttr:u7,removeClass:X1,toggleClass:Y1,val:c7},Symbol.toStringTag,{value:"Module"}));var Ie;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(Ie||(Ie={}));var zt;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(zt||(zt={}));const dh=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,d7=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,m7=new Map([[126,zt.Element],[94,zt.Start],[36,zt.End],[42,zt.Any],[33,zt.Not],[124,zt.Hyphen]]),p7=new Set(["has","not","matches","is","where","host","host-context"]);function ai(e){switch(e.type){case Ie.Adjacent:case Ie.Child:case Ie.Descendant:case Ie.Parent:case Ie.Sibling:case Ie.ColumnCombinator:return!0;default:return!1}}const g7=new Set(["contains","icontains"]);function y7(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Gs(e){return e.replace(d7,y7)}function Dl(e){return e===39||e===34}function mh(e){return e===32||e===9||e===10||e===12||e===13}function Ao(e){const t=[],n=J1(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function J1(e,t,n){let r=[];function s(v){const k=t.slice(n+v).match(dh);if(!k)throw new Error(`Expected name, found ${t.slice(n)}`);const[x]=k;return n+=v+x.length,Gs(x)}function i(v){for(n+=v;n<t.length&&mh(t.charCodeAt(n));)n++}function o(){n+=1;const v=n;let k=1;for(;k>0&&n<t.length;n++)t.charCodeAt(n)===40&&!u(n)?k++:t.charCodeAt(n)===41&&!u(n)&&k--;if(k)throw new Error("Parenthesis not matched");return Gs(t.slice(v,n-1))}function u(v){let k=0;for(;t.charCodeAt(--v)===92;)k++;return(k&1)===1}function h(){if(r.length>0&&ai(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function d(v){if(r.length>0&&r[r.length-1].type===Ie.Descendant){r[r.length-1].type=v;return}h(),r.push({type:v})}function p(v,k){r.push({type:Ie.Attribute,name:v,action:k,value:s(1),namespace:null,ignoreCase:"quirks"})}function b(){if(r.length&&r[r.length-1].type===Ie.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(i(0),t.length===n)return n;e:for(;n<t.length;){const v=t.charCodeAt(n);switch(v){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==Ie.Descendant)&&(h(),r.push({type:Ie.Descendant})),i(1);break}case 62:{d(Ie.Child),i(1);break}case 60:{d(Ie.Parent),i(1);break}case 126:{d(Ie.Sibling),i(1);break}case 43:{d(Ie.Adjacent),i(1);break}case 46:{p("class",zt.Element);break}case 35:{p("id",zt.Equals);break}case 91:{i(1);let k,x=null;t.charCodeAt(n)===124?k=s(1):t.startsWith("*|",n)?(x="*",k=s(2)):(k=s(0),t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==61&&(x=k,k=s(1))),i(0);let A=zt.Exists;const E=m7.get(t.charCodeAt(n));if(E){if(A=E,t.charCodeAt(n+1)!==61)throw new Error("Expected `=`");i(2)}else t.charCodeAt(n)===61&&(A=zt.Equals,i(1));let M="",q=null;if(A!=="exists"){if(Dl(t.charCodeAt(n))){const F=t.charCodeAt(n);let z=n+1;for(;z<t.length&&(t.charCodeAt(z)!==F||u(z));)z+=1;if(t.charCodeAt(z)!==F)throw new Error("Attribute value didn't end");M=Gs(t.slice(n+1,z)),n=z+1}else{const F=n;for(;n<t.length&&(!mh(t.charCodeAt(n))&&t.charCodeAt(n)!==93||u(n));)n+=1;M=Gs(t.slice(F,n))}i(0);const O=t.charCodeAt(n)|32;O===115?(q=!1,i(1)):O===105&&(q=!0,i(1))}if(t.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;const L={type:Ie.Attribute,name:k,action:A,value:M,namespace:x,ignoreCase:q};r.push(L);break}case 58:{if(t.charCodeAt(n+1)===58){r.push({type:Ie.PseudoElement,name:s(2).toLowerCase(),data:t.charCodeAt(n)===40?o():null});continue}const k=s(1).toLowerCase();let x=null;if(t.charCodeAt(n)===40)if(p7.has(k)){if(Dl(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${k} cannot be quoted`);if(x=[],n=J1(x,t,n+1),t.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${k} (${t})`);n+=1}else{if(x=o(),g7.has(k)){const A=x.charCodeAt(0);A===x.charCodeAt(x.length-1)&&Dl(A)&&(x=x.slice(1,-1))}x=Gs(x)}r.push({type:Ie.Pseudo,name:k,data:x});break}case 44:{b(),r=[],i(1);break}default:{if(t.startsWith("/*",n)){const A=t.indexOf("*/",n+2);if(A<0)throw new Error("Comment was not terminated");n=A+2,r.length===0&&i(0);break}let k=null,x;if(v===42)n+=1,x="*";else if(v===124){if(x="",t.charCodeAt(n+1)===124){d(Ie.ColumnCombinator),i(2);break}}else if(dh.test(t.slice(n)))x=s(0);else break e;t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==124&&(k=x,t.charCodeAt(n+1)===42?(x="*",n+=2):x=s(1)),r.push(x==="*"?{type:Ie.Universal,namespace:k}:{type:Ie.Tag,name:x,namespace:k})}}}return b(),n}function b7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pl,ph;function w7(){return ph||(ph=1,Pl={trueFunc:function(){return!0},falseFunc:function(){return!1}}),Pl}var eo=w7();const He=b7(eo),Q1=new Map([[Ie.Universal,50],[Ie.Tag,30],[Ie.Attribute,1],[Ie.Pseudo,0]]);function pc(e){return!Q1.has(e.type)}const v7=new Map([[zt.Exists,10],[zt.Equals,8],[zt.Not,7],[zt.Start,6],[zt.End,6],[zt.Any,5]]);function _7(e){const t=e.map(Z1);for(let n=1;n<e.length;n++){const r=t[n];if(!(r<0))for(let s=n-1;s>=0&&r<t[s];s--){const i=e[s+1];e[s+1]=e[s],e[s]=i,t[s+1]=t[s],t[s]=r}}}function Z1(e){var t,n;let r=(t=Q1.get(e.type))!==null&&t!==void 0?t:-1;return e.type===Ie.Attribute?(r=(n=v7.get(e.action))!==null&&n!==void 0?n:4,e.action===zt.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===Ie.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(s=>Math.min(...s.map(Z1)))),r<0&&(r=0)):r=2:r=3),r}const x7=/[-[\]{}()*+?.,\\^$|#\s]/g;function gh(e){return e.replace(x7,"\\$&")}const k7=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Pr(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&k7.has(e.name)}const S7={equals(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;return Pr(t,n)?(i=i.toLowerCase(),o=>{const u=r.getAttributeValue(o,s);return u!=null&&u.length===i.length&&u.toLowerCase()===i&&e(o)}):o=>r.getAttributeValue(o,s)===i&&e(o)},hyphen(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;const o=i.length;return Pr(t,n)?(i=i.toLowerCase(),function(h){const d=r.getAttributeValue(h,s);return d!=null&&(d.length===o||d.charAt(o)==="-")&&d.substr(0,o).toLowerCase()===i&&e(h)}):function(h){const d=r.getAttributeValue(h,s);return d!=null&&(d.length===o||d.charAt(o)==="-")&&d.substr(0,o)===i&&e(h)}},element(e,t,n){const{adapter:r}=n,{name:s,value:i}=t;if(/\s/.test(i))return He.falseFunc;const o=new RegExp(`(?:^|\\s)${gh(i)}(?:$|\\s)`,Pr(t,n)?"i":"");return function(h){const d=r.getAttributeValue(h,s);return d!=null&&d.length>=i.length&&o.test(d)&&e(h)}},exists(e,{name:t},{adapter:n}){return r=>n.hasAttrib(r,t)&&e(r)},start(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;const o=i.length;return o===0?He.falseFunc:Pr(t,n)?(i=i.toLowerCase(),u=>{const h=r.getAttributeValue(u,s);return h!=null&&h.length>=o&&h.substr(0,o).toLowerCase()===i&&e(u)}):u=>{var h;return!!(!((h=r.getAttributeValue(u,s))===null||h===void 0)&&h.startsWith(i))&&e(u)}},end(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;const o=-i.length;return o===0?He.falseFunc:Pr(t,n)?(i=i.toLowerCase(),u=>{var h;return((h=r.getAttributeValue(u,s))===null||h===void 0?void 0:h.substr(o).toLowerCase())===i&&e(u)}):u=>{var h;return!!(!((h=r.getAttributeValue(u,s))===null||h===void 0)&&h.endsWith(i))&&e(u)}},any(e,t,n){const{adapter:r}=n,{name:s,value:i}=t;if(i==="")return He.falseFunc;if(Pr(t,n)){const o=new RegExp(gh(i),"i");return function(h){const d=r.getAttributeValue(h,s);return d!=null&&d.length>=i.length&&o.test(d)&&e(h)}}return o=>{var u;return!!(!((u=r.getAttributeValue(o,s))===null||u===void 0)&&u.includes(i))&&e(o)}},not(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;return i===""?o=>!!r.getAttributeValue(o,s)&&e(o):Pr(t,n)?(i=i.toLowerCase(),o=>{const u=r.getAttributeValue(o,s);return(u==null||u.length!==i.length||u.toLowerCase()!==i)&&e(o)}):o=>r.getAttributeValue(o,s)!==i&&e(o)}},A7=new Set([9,10,12,13,32]),yh=48,T7=57;function E7(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=i(),s=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(s??1),u(),t<e.length?(r=i(),u(),s=o()):r=s=0),s===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*s];function i(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){const h=t;let d=0;for(;t<e.length&&e.charCodeAt(t)>=yh&&e.charCodeAt(t)<=T7;)d=d*10+(e.charCodeAt(t)-yh),t++;return t===h?null:d}function u(){for(;t<e.length&&A7.has(e.charCodeAt(t));)t++}}function N7(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return He.falseFunc;if(t===-1)return i=>i<=n;if(t===0)return i=>i===n;if(t===1)return n<0?He.trueFunc:i=>i>=n;const r=Math.abs(t),s=(n%r+r)%r;return t>1?i=>i>=n&&i%r===s:i=>i<=n&&i%r===s}function ya(e){return N7(E7(e))}function ba(e,t){return n=>{const r=t.getParent(n);return r!=null&&t.isTag(r)&&e(n)}}const k0={contains(e,t,{adapter:n}){return function(s){return e(s)&&n.getText(s).includes(t)}},icontains(e,t,{adapter:n}){const r=t.toLowerCase();return function(i){return e(i)&&n.getText(i).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:n,equals:r}){const s=ya(t);return s===He.falseFunc?He.falseFunc:s===He.trueFunc?ba(e,n):function(o){const u=n.getSiblings(o);let h=0;for(let d=0;d<u.length&&!r(o,u[d]);d++)n.isTag(u[d])&&h++;return s(h)&&e(o)}},"nth-last-child"(e,t,{adapter:n,equals:r}){const s=ya(t);return s===He.falseFunc?He.falseFunc:s===He.trueFunc?ba(e,n):function(o){const u=n.getSiblings(o);let h=0;for(let d=u.length-1;d>=0&&!r(o,u[d]);d--)n.isTag(u[d])&&h++;return s(h)&&e(o)}},"nth-of-type"(e,t,{adapter:n,equals:r}){const s=ya(t);return s===He.falseFunc?He.falseFunc:s===He.trueFunc?ba(e,n):function(o){const u=n.getSiblings(o);let h=0;for(let d=0;d<u.length;d++){const p=u[d];if(r(o,p))break;n.isTag(p)&&n.getName(p)===n.getName(o)&&h++}return s(h)&&e(o)}},"nth-last-of-type"(e,t,{adapter:n,equals:r}){const s=ya(t);return s===He.falseFunc?He.falseFunc:s===He.trueFunc?ba(e,n):function(o){const u=n.getSiblings(o);let h=0;for(let d=u.length-1;d>=0;d--){const p=u[d];if(r(o,p))break;n.isTag(p)&&n.getName(p)===n.getName(o)&&h++}return s(h)&&e(o)}},root(e,t,{adapter:n}){return r=>{const s=n.getParent(r);return(s==null||!n.isTag(s))&&e(r)}},scope(e,t,n,r){const{equals:s}=n;return!r||r.length===0?k0.root(e,t,n):r.length===1?i=>s(r[0],i)&&e(i):i=>r.includes(i)&&e(i)},hover:$l("isHovered"),visited:$l("isVisited"),active:$l("isActive")};function $l(e){return function(n,r,{adapter:s}){const i=s[e];return typeof i!="function"?He.falseFunc:function(u){return i(u)&&n(u)}}}const bh={empty(e,{adapter:t}){return!t.getChildren(e).some(n=>t.isTag(n)||t.getText(n)!=="")},"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const r=t.getSiblings(e).find(s=>t.isTag(s));return r!=null&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){const r=t.getSiblings(e);for(let s=r.length-1;s>=0;s--){if(n(e,r[s]))return!0;if(t.isTag(r[s]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),s=t.getName(e);for(let i=0;i<r.length;i++){const o=r[i];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),s=t.getName(e);for(let i=r.length-1;i>=0;i--){const o=r[i];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){const r=t.getName(e);return t.getSiblings(e).every(s=>n(e,s)||!t.isTag(s)||t.getName(s)!==r)},"only-child"(e,{adapter:t,equals:n}){return t.getSiblings(e).every(r=>n(e,r)||!t.isTag(r))}};function wh(e,t,n,r){if(n===null){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const C7={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
||
:is(button, input, select, textarea, optgroup, option)[disabled],
|
||
optgroup[disabled] > option,
|
||
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},em={};function I7(e,t){return e===He.falseFunc?He.falseFunc:n=>t.isTag(n)&&e(n)}function tm(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return r<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function S0(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const Fl=(e,t,n,r,s)=>{const i=s(t,S0(n),r);return i===He.trueFunc?e:i===He.falseFunc?He.falseFunc:o=>i(o)&&e(o)},Bl={is:Fl,matches:Fl,where:Fl,not(e,t,n,r,s){const i=s(t,S0(n),r);return i===He.falseFunc?e:i===He.trueFunc?He.falseFunc:o=>!i(o)&&e(o)},has(e,t,n,r,s){const{adapter:i}=n,o=S0(n);o.relativeSelector=!0;const u=t.some(p=>p.some(pc))?[em]:void 0,h=s(t,o,u);if(h===He.falseFunc)return He.falseFunc;const d=I7(h,i);if(u&&h!==He.trueFunc){const{shouldTestNextSiblings:p=!1}=h;return b=>{if(!e(b))return!1;u[0]=b;const v=i.getChildren(b),k=p?[...v,...tm(b,i)]:v;return i.existsOne(d,k)}}return p=>e(p)&&i.existsOne(d,i.getChildren(p))}};function M7(e,t,n,r,s){var i;const{name:o,data:u}=t;if(Array.isArray(u)){if(!(o in Bl))throw new Error(`Unknown pseudo-class :${o}(${u})`);return Bl[o](e,u,n,r,s)}const h=(i=n.pseudos)===null||i===void 0?void 0:i[o],d=typeof h=="string"?h:C7[o];if(typeof d=="string"){if(u!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);const p=Ao(d);return Bl.is(e,p,n,r,s)}if(typeof h=="function")return wh(h,o,u,1),p=>h(p,u)&&e(p);if(o in k0)return k0[o](e,u,n,r);if(o in bh){const p=bh[o];return wh(p,o,u,2),b=>p(b,n,u)&&e(b)}throw new Error(`Unknown pseudo-class :${o}`)}function zl(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function O7(e,t,n,r,s){const{adapter:i,equals:o}=n;switch(t.type){case Ie.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ie.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ie.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!n.xmlMode||n.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),S7[t.action](e,t,n)}case Ie.Pseudo:return M7(e,t,n,r,s);case Ie.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:u}=t;return(!n.xmlMode||n.lowerCaseTags)&&(u=u.toLowerCase()),function(d){return i.getName(d)===u&&e(d)}}case Ie.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(d){let p=d;for(;p=zl(p,i);)if(e(p))return!0;return!1};const u=new WeakSet;return function(d){let p=d;for(;p=zl(p,i);)if(!u.has(p)){if(i.isTag(p)&&e(p))return!0;u.add(p)}return!1}}case"_flexibleDescendant":return function(h){let d=h;do if(e(d))return!0;while(d=zl(d,i));return!1};case Ie.Parent:return function(h){return i.getChildren(h).some(d=>i.isTag(d)&&e(d))};case Ie.Child:return function(h){const d=i.getParent(h);return d!=null&&i.isTag(d)&&e(d)};case Ie.Sibling:return function(h){const d=i.getSiblings(h);for(let p=0;p<d.length;p++){const b=d[p];if(o(h,b))break;if(i.isTag(b)&&e(b))return!0}return!1};case Ie.Adjacent:return i.prevElementSibling?function(h){const d=i.prevElementSibling(h);return d!=null&&e(d)}:function(h){const d=i.getSiblings(h);let p;for(let b=0;b<d.length;b++){const v=d[b];if(o(h,v))break;i.isTag(v)&&(p=v)}return!!p&&e(p)};case Ie.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function nm(e){return e.type===Ie.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(nm)))}const L7={type:Ie.Descendant},R7={type:"_flexibleDescendant"},D7={type:Ie.Pseudo,name:"scope",data:null};function P7(e,{adapter:t},n){const r=!!(n!=null&&n.every(s=>{const i=t.isTag(s)&&t.getParent(s);return s===em||i&&t.isTag(i)}));for(const s of e){if(!(s.length>0&&pc(s[0])&&s[0].type!==Ie.Descendant))if(r&&!s.some(nm))s.unshift(L7);else continue;s.unshift(D7)}}function rm(e,t,n){var r;e.forEach(_7),n=(r=t.context)!==null&&r!==void 0?r:n;const s=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(t.relativeSelector!==!1)P7(e,t,i);else if(e.some(h=>h.length>0&&pc(h[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1;const u=e.map(h=>{if(h.length>=2){const[d,p]=h;d.type!==Ie.Pseudo||d.name!=="scope"||(s&&p.type===Ie.Descendant?h[1]=R7:(p.type===Ie.Adjacent||p.type===Ie.Sibling)&&(o=!0))}return $7(h,t,i)}).reduce(F7,He.falseFunc);return u.shouldTestNextSiblings=o,u}function $7(e,t,n){var r;return e.reduce((s,i)=>s===He.falseFunc?He.falseFunc:O7(s,i,t,n,rm),(r=t.rootFunc)!==null&&r!==void 0?r:He.trueFunc)}function F7(e,t){return t===He.falseFunc||e===He.trueFunc?e:e===He.falseFunc||t===He.trueFunc?t:function(r){return e(r)||t(r)}}const sm=(e,t)=>e===t,B7={adapter:So,equals:sm};function z7(e){var t,n,r,s;const i=e??B7;return(t=i.adapter)!==null&&t!==void 0||(i.adapter=So),(n=i.equals)!==null&&n!==void 0||(i.equals=(s=(r=i.adapter)===null||r===void 0?void 0:r.equals)!==null&&s!==void 0?s:sm),i}function q7(e){return function(n,r,s){const i=z7(r);return e(n,i,s)}}const gc=q7(rm);function im(e,t,n=!1){return n&&(e=U7(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function U7(e,t){const n=Array.isArray(e)?e.slice(0):[e],r=n.length;for(let s=0;s<r;s++){const i=tm(n[s],t);n.push(...i)}return n}const H7=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function to(e){return e.type!=="pseudo"?!1:H7.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(to)):!1}function V7(e,t,n){const r=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}function j7(e){for(;e.parent;)e=e.parent;return e}function yc(e){const t=[],n=[];for(const r of e)r.some(to)?t.push(r):n.push(r);return[n,t]}const W7={type:Ie.Universal,namespace:null},G7={type:Ie.Pseudo,name:"scope",data:null};function am(e,t,n={}){return om([e],t,n)}function om(e,t,n={}){if(typeof t=="function")return e.some(t);const[r,s]=yc(Ao(t));return r.length>0&&e.some(gc(r,n))||s.some(i=>um(i,e,n).length>0)}function K7(e,t,n,r){const s=typeof n=="string"?parseInt(n,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(s)&&Math.abs(s)<t.length?[s<0?t[t.length+s]:t[s]]:[];case"gt":return isFinite(s)?t.slice(s+1):[];case"even":return t.filter((i,o)=>o%2===0);case"odd":return t.filter((i,o)=>o%2===1);case"not":{const i=new Set(cm(n,t,r));return t.filter(o=>!i.has(o))}}}function lm(e,t,n={}){return cm(Ao(e),t,n)}function cm(e,t,n){if(t.length===0)return[];const[r,s]=yc(e);let i;if(r.length){const o=T0(t,r,n);if(s.length===0)return o;o.length&&(i=new Set(o))}for(let o=0;o<s.length&&(i==null?void 0:i.size)!==t.length;o++){const u=s[o];if((i?t.filter(p=>Fe(p)&&!i.has(p)):t).length===0)break;const d=um(u,t,n);if(d.length)if(i)d.forEach(p=>i.add(p));else{if(o===s.length-1)return d;i=new Set(d)}}return typeof i<"u"?i.size===t.length?t:t.filter(o=>i.has(o)):[]}function um(e,t,n){var r;if(e.some(ai)){const s=(r=n.root)!==null&&r!==void 0?r:j7(t[0]),i={...n,context:t,relativeSelector:!1};return e.push(G7),no(s,e,i,!0,t.length)}return no(t,e,n,!1,t.length)}function X7(e,t,n={},r=1/0){if(typeof e=="function")return fm(t,e);const[s,i]=yc(Ao(e)),o=i.map(u=>no(t,u,n,!0,r));return s.length&&o.push(A0(t,s,n,r)),o.length===0?[]:o.length===1?o[0]:Rs(o.reduce((u,h)=>[...u,...h]))}function no(e,t,n,r,s){const i=t.findIndex(to),o=t.slice(0,i),u=t[i],h=t.length-1===i?s:1/0,d=V7(u.name,u.data,h);if(d===0)return[];const b=(o.length===0&&!Array.isArray(e)?xo(e).filter(Fe):o.length===0?(Array.isArray(e)?e:[e]).filter(Fe):r||o.some(ai)?A0(e,[o],n,d):T0(e,[o],n)).slice(0,d);let v=K7(u.name,b,u.data,n);if(v.length===0||t.length===i+1)return v;const k=t.slice(i+1),x=k.some(ai);if(x){if(ai(k[0])){const{type:A}=k[0];(A===Ie.Sibling||A===Ie.Adjacent)&&(v=im(v,So,!0)),k.unshift(W7)}n={...n,relativeSelector:!1,rootFunc:A=>v.includes(A)}}else n.rootFunc&&n.rootFunc!==eo.trueFunc&&(n={...n,rootFunc:eo.trueFunc});return k.some(to)?no(v,k,n,!1,s):x?A0(v,[k],n,s):T0(v,[k],n)}function A0(e,t,n,r){const s=gc(t,n,e);return fm(e,s,r)}function fm(e,t,n=1/0){const r=im(e,So,t.shouldTestNextSiblings);return hc(s=>Fe(s)&&t(s),r,!0,n)}function T0(e,t,n){const r=(Array.isArray(e)?e:[e]).filter(Fe);if(r.length===0)return r;const s=gc(t,n);return s===eo.trueFunc?r:r.filter(s)}const Y7=/^\s*[+~]/;function J7(e){if(!e)return this._make([]);if(typeof e!="string"){const t=hr(e)?e.toArray():[e],n=this.toArray();return this._make(t.filter(r=>n.some(s=>j1(s,r))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function Q7(e,t){var n;const r=this.toArray(),s=Y7.test(e)?r:this.children().toArray(),i={context:r,root:(n=this._root)===null||n===void 0?void 0:n[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(X7(e,s,i,t))}function bc(e){return function(t,...n){return function(r){var s;let i=e(t,this);return r&&(i=_c(i,r,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&i.length>1?n.reduce((o,u)=>u(o),i):i)}}}const Ti=bc((e,t)=>{let n=[];for(let r=0;r<t.length;r++){const s=e(t[r]);s.length>0&&(n=n.concat(s))}return n}),wc=bc((e,t)=>{const n=[];for(let r=0;r<t.length;r++){const s=e(t[r]);s!==null&&n.push(s)}return n});function vc(e,...t){let n=null;const r=bc((s,i)=>{const o=[];return wt(i,u=>{for(let h;(h=s(u))&&!(n!=null&&n(h,o.length));u=h)o.push(h)}),o})(e,...t);return function(s,i){n=typeof s=="string"?u=>am(u,s,this.options):s?Ei(s):null;const o=r.call(this,i);return n=null,o}}function Ds(e){return e.length>1?Array.from(new Set(e)):e}const Z7=wc(({parent:e})=>e&&!Qr(e)?e:null,Ds),e8=Ti(e=>{const t=[];for(;e.parent&&!Qr(e.parent);)t.push(e.parent),e=e.parent;return t},Rs,e=>e.reverse()),t8=vc(({parent:e})=>e&&!Qr(e)?e:null,Rs,e=>e.reverse());function n8(e){var t;const n=[];if(!e)return this._make(n);const r={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},s=typeof e=="string"?i=>am(i,e,r):Ei(e);return wt(this,i=>{for(i&&!Qr(i)&&!Fe(i)&&(i=i.parent);i&&Fe(i);){if(s(i,0)){n.includes(i)||n.push(i);break}i=i.parent}}),this._make(n)}const r8=wc(e=>uc(e)),s8=Ti(e=>{const t=[];for(;e.next;)e=e.next,Fe(e)&&t.push(e);return t},Ds),i8=vc(e=>uc(e),Ds),a8=wc(e=>fc(e)),o8=Ti(e=>{const t=[];for(;e.prev;)e=e.prev,Fe(e)&&t.push(e);return t},Ds),l8=vc(e=>fc(e),Ds),c8=Ti(e=>F1(e).filter(t=>Fe(t)&&t!==e),Rs),u8=Ti(e=>xo(e).filter(Fe),Ds);function f8(){const e=this.toArray().reduce((t,n)=>Gt(n)?t.concat(n.children):t,[]);return this._make(e)}function h8(e){let t=0;const n=this.length;for(;t<n&&e.call(this[t],t,this[t])!==!1;)++t;return this}function d8(e){let t=[];for(let n=0;n<this.length;n++){const r=this[n],s=e.call(r,n,r);s!=null&&(t=t.concat(s))}return this._make(t)}function Ei(e){return typeof e=="function"?(t,n)=>e.call(t,n,t):hr(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function m8(e){var t;return this._make(_c(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function _c(e,t,n,r){return typeof t=="string"?lm(t,e,{xmlMode:n,root:r}):e.filter(Ei(t))}function p8(e){const t=this.toArray();return typeof e=="string"?om(t.filter(Fe),e,this.options):e?t.some(Ei(e)):!1}function g8(e){let t=this.toArray();if(typeof e=="string"){const n=new Set(lm(e,t,this.options));t=t.filter(r=>!n.has(r))}else{const n=Ei(e);t=t.filter((r,s)=>!n(r,s))}return this._make(t)}function y8(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,n)=>this._make(n).find(e).length>0)}function b8(){return this.length>1?this._make(this[0]):this}function w8(){return this.length>0?this._make(this[this.length-1]):this}function v8(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function _8(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function x8(){return Array.prototype.slice.call(this)}function k8(e){let t,n;return e==null?(t=this.parent().children(),n=this[0]):typeof e=="string"?(t=this._make(e),n=this[0]):(t=this,n=hr(e)?e[0]:e),Array.prototype.indexOf.call(t,n)}function S8(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function A8(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function T8(e,t){const n=this._make(e,t),r=Rs([...this.get(),...n.get()]);return this._make(r)}function E8(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const N8=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:Q7,add:T8,addBack:E8,children:u8,closest:n8,contents:f8,each:h8,end:A8,eq:v8,filter:m8,filterArray:_c,find:J7,first:b8,get:_8,has:y8,index:k8,is:p8,last:w8,map:d8,next:r8,nextAll:s8,nextUntil:i8,not:g8,parent:Z7,parents:e8,parentsUntil:t8,prev:a8,prevAll:o8,prevUntil:l8,siblings:c8,slice:S8,toArray:x8},Symbol.toStringTag,{value:"Module"}));function C8(e){return function(n,r,s,i){if(typeof Buffer<"u"&&Buffer.isBuffer(n)&&(n=n.toString()),typeof n=="string")return e(n,r,s,i);const o=n;if(!Array.isArray(o)&&Qr(o))return o;const u=new pi([]);return Kr(o,u),u}}function Kr(e,t){const n=Array.isArray(e)?e:[e];t?t.children=n:t=null;for(let r=0;r<n.length;r++){const s=n[r];s.parent&&s.parent.children!==n&&Zr(s),t?(s.prev=n[r-1]||null,s.next=n[r+1]||null):s.prev=s.next=null,s.parent=t}return t}function I8(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);const n=[];for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="object"){if(s==null)continue;if(!("length"in s)){n.push(t?gi(s,!0):s);continue}}n.push(...this._makeDomArray(s,t))}return n}return[t?gi(e,!0):e]}function hm(e){return function(...t){const n=this.length-1;return wt(this,(r,s)=>{if(!Gt(r))return;const i=typeof t[0]=="function"?t[0].call(r,s,this._render(r.children)):t,o=this._makeDomArray(i,s<n);e(o,r.children,r)})}}function Mr(e,t,n,r,s){var i,o;const u=[t,n,...r],h=t===0?null:e[t-1],d=t+n>=e.length?null:e[t+n];for(let p=0;p<r.length;++p){const b=r[p],v=b.parent;if(v){const x=v.children.indexOf(b);x>-1&&(v.children.splice(x,1),s===v&&t>x&&u[0]--)}b.parent=s,b.prev&&(b.prev.next=(i=b.next)!==null&&i!==void 0?i:null),b.next&&(b.next.prev=(o=b.prev)!==null&&o!==void 0?o:null),b.prev=p===0?h:r[p-1],b.next=p===r.length-1?d:r[p+1]}return h&&(h.next=r[0]),d&&(d.prev=r[r.length-1]),e.splice(...u)}function M8(e){return(hr(e)?e:this._make(e)).append(this),this}function O8(e){return(hr(e)?e:this._make(e)).prepend(this),this}const L8=hm((e,t,n)=>{Mr(t,t.length,0,e,n)}),R8=hm((e,t,n)=>{Mr(t,0,0,e,n)});function dm(e){return function(t){const n=this.length-1,r=this.parents().last();for(let s=0;s<this.length;s++){const i=this[s],o=typeof t=="function"?t.call(i,s,i):typeof t=="string"&&!_0(t)?r.find(t).clone():t,[u]=this._makeDomArray(o,s<n);if(!u||!Gt(u))continue;let h=u,d=0;for(;d<h.children.length;){const p=h.children[d];Fe(p)?(h=p,d=0):d++}e(i,h,[u])}return this}}const D8=dm((e,t,n)=>{const{parent:r}=e;if(!r)return;const s=r.children,i=s.indexOf(e);Kr([e],t),Mr(s,i,0,n,r)}),P8=dm((e,t,n)=>{Gt(e)&&(Kr(e.children,t),Kr(n,e))});function $8(e){return this.parent(e).not("body").each((t,n)=>{this._make(n).replaceWith(n.children)}),this}function F8(e){const t=this[0];if(t){const n=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let r;for(let i=0;i<n.length;i++)n[i].type==="tag"&&(r=n[i]);let s=0;for(;r&&s<r.children.length;){const i=r.children[s];i.type==="tag"?(r=i,s=0):s++}r&&this._make(r).append(this)}return this}function B8(...e){const t=this.length-1;return wt(this,(n,r)=>{if(!Gt(n)||!n.parent)return;const s=n.parent.children,i=s.indexOf(n);if(i<0)return;const o=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,u=this._makeDomArray(o,r<t);Mr(s,i+1,0,u,n.parent)})}function z8(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];for(const n of this._makeDomArray(e)){const r=this.clone().toArray(),{parent:s}=n;if(!s)continue;const i=s.children,o=i.indexOf(n);o<0||(Mr(i,o+1,0,r,s),t.push(...r))}return this._make(t)}function q8(...e){const t=this.length-1;return wt(this,(n,r)=>{if(!Gt(n)||!n.parent)return;const s=n.parent.children,i=s.indexOf(n);if(i<0)return;const o=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,u=this._makeDomArray(o,r<t);Mr(s,i,0,u,n.parent)})}function U8(e){const t=this._make(e);this.remove();const n=[];return wt(t,r=>{const s=this.clone().toArray(),{parent:i}=r;if(!i)return;const o=i.children,u=o.indexOf(r);u<0||(Mr(o,u,0,s,i),n.push(...s))}),this._make(n)}function H8(e){const t=e?this.filter(e):this;return wt(t,n=>{Zr(n),n.prev=n.next=n.parent=null}),this}function V8(e){return wt(this,(t,n)=>{const{parent:r}=t;if(!r)return;const s=r.children,i=typeof e=="function"?e.call(t,n,t):e,o=this._makeDomArray(i);Kr(o,null);const u=s.indexOf(t);Mr(s,u,1,o,r),o.includes(t)||(t.parent=t.prev=t.next=null)})}function j8(){return wt(this,e=>{if(Gt(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function W8(e){if(e===void 0){const t=this[0];return!t||!Gt(t)?null:this._render(t.children)}return wt(this,t=>{if(!Gt(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=hr(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;Kr(n,t)})}function G8(){return this._render(this)}function K8(e){return e===void 0?yi(this):typeof e=="function"?wt(this,(t,n)=>this._make(t).text(e.call(t,n,yi([t])))):wt(this,t=>{if(!Gt(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=new Ka(`${e}`);Kr(n,t)})}function X8(){const e=Array.prototype.map.call(this.get(),n=>gi(n,!0)),t=new pi(e);for(const n of e)n.parent=t;return this._make(e)}const Y8=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:I8,after:B8,append:L8,appendTo:M8,before:q8,clone:X8,empty:j8,html:W8,insertAfter:z8,insertBefore:U8,prepend:R8,prependTo:O8,remove:H8,replaceWith:V8,text:K8,toString:G8,unwrap:$8,wrap:D8,wrapAll:F8,wrapInner:P8},Symbol.toStringTag,{value:"Module"}));function J8(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return wt(this,(n,r)=>{Fe(n)&&mm(n,e,t,r)});if(this.length!==0)return pm(this[0],e)}function mm(e,t,n,r){if(typeof t=="string"){const s=pm(e),i=typeof n=="function"?n.call(e,r,s[t]):n;i===""?delete s[t]:i!=null&&(s[t]=i),e.attribs.style=Q8(s)}else if(typeof t=="object"){const s=Object.keys(t);for(let i=0;i<s.length;i++){const o=s[i];mm(e,o,t[o],i)}}}function pm(e,t){if(!e||!Fe(e))return;const n=Z8(e.attribs.style);if(typeof t=="string")return n[t];if(Array.isArray(t)){const r={};for(const s of t)n[s]!=null&&(r[s]=n[s]);return r}return n}function Q8(e){return Object.keys(e).reduce((t,n)=>`${t}${t?" ":""}${n}: ${e[n]};`,"")}function Z8(e){if(e=(e||"").trim(),!e)return{};const t={};let n;for(const r of e.split(";")){const s=r.indexOf(":");if(s<1||s===r.length-1){const i=r.trimEnd();i.length>0&&n!==void 0&&(t[n]+=`;${i}`)}else n=r.slice(0,s).trim(),t[n]=r.slice(s+1).trim()}return t}const ey=Object.freeze(Object.defineProperty({__proto__:null,css:J8},Symbol.toStringTag,{value:"Module"})),vh="input,select,textarea,keygen",ty=/%20/g,_h=/\r?\n/g;function ny(){return this.serializeArray().map(n=>`${encodeURIComponent(n.name)}=${encodeURIComponent(n.value)}`).join("&").replace(ty,"+")}function ry(){return this.map((e,t)=>{const n=this._make(t);return Fe(t)&&t.name==="form"?n.find(vh).toArray():n.filter(vh).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var n;const r=this._make(t),s=r.attr("name"),i=(n=r.val())!==null&&n!==void 0?n:"";return Array.isArray(i)?i.map(o=>({name:s,value:o.replace(_h,`\r
|
||
`)})):{name:s,value:i.replace(_h,`\r
|
||
`)}}).toArray()}const sy=Object.freeze(Object.defineProperty({__proto__:null,serialize:ny,serializeArray:ry},Symbol.toStringTag,{value:"Module"}));function iy(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function ay(e){const t={};for(const n in e){const r=e[n],s=Array.isArray(r),{selector:i,value:o}=iy(s?r[0]:r),u=typeof o=="function"?o:typeof o=="string"?h=>this._make(h).prop(o):h=>this._make(h).extract(o);if(s)t[n]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((h,d)=>u(d,n,t)).get();else{const h=this._findBySelector(i,1);t[n]=h.length>0?u(h[0],n,t):void 0}}return t}const oy=Object.freeze(Object.defineProperty({__proto__:null,extract:ay},Symbol.toStringTag,{value:"Module"}));class Ni{constructor(t,n,r){if(this.length=0,this.options=r,this._root=n,t){for(let s=0;s<t.length;s++)this[s]=t[s];this.length=t.length}}}Ni.prototype.cheerio="[cheerio object]";Ni.prototype.splice=Array.prototype.splice;Ni.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ni.prototype,h7,N8,Y8,ey,sy,oy);function ly(e,t){return function n(r,s,i=!0){if(r==null)throw new Error("cheerio.load() expects a string");const o=b0(s),u=e(r,o,i,null);class h extends Ni{_make(b,v){const k=d(b,v);return k.prevObject=this,k}_parse(b,v,k,x){return e(b,v,k,x)}_render(b){return t(b,this.options)}}function d(p,b,v=u,k){if(p&&hr(p))return p;const x=b0(k,o),A=typeof v=="string"?[e(v,x,!1,null)]:"length"in v?v:[v],E=hr(A)?A:new h(A,null,x);if(E._root=E,!p)return new h(void 0,E,x);const M=typeof p=="string"&&_0(p)?e(p,x,!1,null).children:cy(p)?[p]:Array.isArray(p)?p:void 0,q=new h(M,E,x);if(M)return q;if(typeof p!="string")throw new TypeError("Unexpected type of selector");let L=p;const O=b?typeof b=="string"?_0(b)?new h([e(b,x,!1,null)],E,x):(L=`${b} ${L}`,E):hr(b)?b:new h(Array.isArray(b)?b:[b],E,x):E;return O?O.find(L):q}return Object.assign(d,e7,{load:n,_root:u,_options:o,fn:h.prototype,prototype:h.prototype}),d}}function cy(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var Me;(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"})(Me||(Me={}));var ae;(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.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(ae||(ae={}));function or(e){return e===Me.Space||e===Me.NewLine||e===Me.Tab||e===Me.FormFeed||e===Me.CarriageReturn}function wa(e){return e===Me.Slash||e===Me.Gt||or(e)}function uy(e){return e>=Me.LowerA&&e<=Me.LowerZ||e>=Me.UpperA&&e<=Me.UpperZ}var Gn;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Gn||(Gn={}));const Kt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),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])};class fy{constructor({xmlMode:t=!1,decodeEntities:n=!0},r){this.cbs=r,this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=ae.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=n,this.entityDecoder=new O1(t?M1:I1,(s,i)=>this.emitCodePoint(s,i))}reset(){this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ae.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,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(t){t===Me.Lt||!this.decodeEntities&&this.fastForwardTo(Me.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ae.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===Me.Amp&&this.startEntity()}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?wa(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ae.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===Me.Gt||or(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.isSpecial=!1,this.sectionStart=n+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Kt.TitleEnd?this.decodeEntities&&t===Me.Amp&&this.startEntity():this.fastForwardTo(Me.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===Me.Lt)}stateCDATASequence(t){t===Kt.Cdata[this.sequenceIndex]?++this.sequenceIndex===Kt.Cdata.length&&(this.state=ae.InCommentLike,this.currentSequence=Kt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=ae.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Kt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=ae.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!wa(t):uy(t)}startSpecial(t,n){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=n,this.state=ae.SpecialStartSequence}stateBeforeTagName(t){if(t===Me.ExclamationMark)this.state=ae.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===Me.Questionmark)this.state=ae.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const n=t|32;this.sectionStart=this.index,this.xmlMode?this.state=ae.InTagName:n===Kt.ScriptEnd[2]?this.state=ae.BeforeSpecialS:n===Kt.TitleEnd[2]?this.state=ae.BeforeSpecialT:this.state=ae.InTagName}else t===Me.Slash?this.state=ae.BeforeClosingTagName:(this.state=ae.Text,this.stateText(t))}stateInTagName(t){wa(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ae.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){or(t)||(t===Me.Gt?this.state=ae.Text:(this.state=this.isTagStartChar(t)?ae.InClosingTagName:ae.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===Me.Gt||or(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=ae.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===Me.Gt||this.fastForwardTo(Me.Gt))&&(this.state=ae.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===Me.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=ae.InSpecialTag,this.sequenceIndex=0):this.state=ae.Text,this.sectionStart=this.index+1):t===Me.Slash?this.state=ae.InSelfClosingTag:or(t)||(this.state=ae.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===Me.Gt?(this.cbs.onselfclosingtag(this.index),this.state=ae.Text,this.sectionStart=this.index+1,this.isSpecial=!1):or(t)||(this.state=ae.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===Me.Eq||wa(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=ae.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===Me.Eq?this.state=ae.BeforeAttributeValue:t===Me.Slash||t===Me.Gt?(this.cbs.onattribend(Gn.NoValue,this.sectionStart),this.sectionStart=-1,this.state=ae.BeforeAttributeName,this.stateBeforeAttributeName(t)):or(t)||(this.cbs.onattribend(Gn.NoValue,this.sectionStart),this.state=ae.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===Me.DoubleQuote?(this.state=ae.InAttributeValueDq,this.sectionStart=this.index+1):t===Me.SingleQuote?(this.state=ae.InAttributeValueSq,this.sectionStart=this.index+1):or(t)||(this.sectionStart=this.index,this.state=ae.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,n){t===n||!this.decodeEntities&&this.fastForwardTo(n)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===Me.DoubleQuote?Gn.Double:Gn.Single,this.index+1),this.state=ae.BeforeAttributeName):this.decodeEntities&&t===Me.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,Me.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,Me.SingleQuote)}stateInAttributeValueNoQuotes(t){or(t)||t===Me.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Gn.Unquoted,this.index),this.state=ae.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===Me.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===Me.OpeningSquareBracket?(this.state=ae.CDATASequence,this.sequenceIndex=0):this.state=t===Me.Dash?ae.BeforeComment:ae.InDeclaration}stateInDeclaration(t){(t===Me.Gt||this.fastForwardTo(Me.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=ae.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===Me.Gt||this.fastForwardTo(Me.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=ae.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===Me.Dash?(this.state=ae.InCommentLike,this.currentSequence=Kt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=ae.InDeclaration}stateInSpecialComment(t){(t===Me.Gt||this.fastForwardTo(Me.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ae.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const n=t|32;n===Kt.ScriptEnd[3]?this.startSpecial(Kt.ScriptEnd,4):n===Kt.StyleEnd[3]?this.startSpecial(Kt.StyleEnd,4):(this.state=ae.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){const n=t|32;n===Kt.TitleEnd[3]?this.startSpecial(Kt.TitleEnd,4):n===Kt.TextareaEnd[3]?this.startSpecial(Kt.TextareaEnd,4):(this.state=ae.InTagName,this.stateInTagName(t))}startEntity(){this.baseState=this.state,this.state=ae.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Wn.Strict:this.baseState===ae.Text||this.baseState===ae.InSpecialTag?Wn.Legacy:Wn.Attribute)}stateInEntity(){const t=this.entityDecoder.write(this.buffer,this.index-this.offset);t>=0?(this.state=this.baseState,t===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===ae.Text||this.state===ae.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ae.InAttributeValueDq||this.state===ae.InAttributeValueSq||this.state===ae.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();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case ae.Text:{this.stateText(t);break}case ae.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case ae.InSpecialTag:{this.stateInSpecialTag(t);break}case ae.CDATASequence:{this.stateCDATASequence(t);break}case ae.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case ae.InAttributeName:{this.stateInAttributeName(t);break}case ae.InCommentLike:{this.stateInCommentLike(t);break}case ae.InSpecialComment:{this.stateInSpecialComment(t);break}case ae.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case ae.InTagName:{this.stateInTagName(t);break}case ae.InClosingTagName:{this.stateInClosingTagName(t);break}case ae.BeforeTagName:{this.stateBeforeTagName(t);break}case ae.AfterAttributeName:{this.stateAfterAttributeName(t);break}case ae.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case ae.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case ae.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case ae.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case ae.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case ae.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case ae.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case ae.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case ae.InDeclaration:{this.stateInDeclaration(t);break}case ae.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case ae.BeforeComment:{this.stateBeforeComment(t);break}case ae.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case ae.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===ae.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===ae.InCommentLike?this.currentSequence===Kt.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===ae.InTagName||this.state===ae.BeforeAttributeName||this.state===ae.BeforeAttributeValue||this.state===ae.AfterAttributeName||this.state===ae.InAttributeName||this.state===ae.InAttributeValueSq||this.state===ae.InAttributeValueDq||this.state===ae.InAttributeValueNq||this.state===ae.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){this.baseState!==ae.Text&&this.baseState!==ae.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}}const ls=new Set(["input","option","optgroup","select","button","datalist","textarea"]),it=new Set(["p"]),xh=new Set(["thead","tbody"]),kh=new Set(["dd","dt"]),Sh=new Set(["rt","rp"]),hy=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",it],["h1",it],["h2",it],["h3",it],["h4",it],["h5",it],["h6",it],["select",ls],["input",ls],["output",ls],["button",ls],["datalist",ls],["textarea",ls],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",kh],["dt",kh],["address",it],["article",it],["aside",it],["blockquote",it],["details",it],["div",it],["dl",it],["fieldset",it],["figcaption",it],["figure",it],["footer",it],["form",it],["header",it],["hr",it],["main",it],["nav",it],["ol",it],["pre",it],["section",it],["table",it],["ul",it],["rt",Sh],["rp",Sh],["tbody",xh],["tfoot",xh]]),dy=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Ah=new Set(["math","svg"]),Th=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),my=/\s|\//;let py=class{constructor(t,n={}){var r,s,i,o,u,h;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(s=n.lowerCaseAttributeNames)!==null&&s!==void 0?s:this.htmlMode,this.recognizeSelfClosing=(i=n.recognizeSelfClosing)!==null&&i!==void 0?i:!this.htmlMode,this.tokenizer=new((o=n.Tokenizer)!==null&&o!==void 0?o:fy)(this.options,this),this.foreignContext=[!this.htmlMode],(h=(u=this.cbs).onparserinit)===null||h===void 0||h.call(u,this)}ontext(t,n){var r,s;const i=this.getSlice(t,n);this.endIndex=n-1,(s=(r=this.cbs).ontext)===null||s===void 0||s.call(r,i),this.startIndex=n}ontextentity(t,n){var r,s;this.endIndex=n-1,(s=(r=this.cbs).ontext)===null||s===void 0||s.call(r,w0(t)),this.startIndex=n}isVoidElement(t){return this.htmlMode&&dy.has(t)}onopentagname(t,n){this.endIndex=n;let r=this.getSlice(t,n);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(t){var n,r,s,i;this.openTagStart=this.startIndex,this.tagname=t;const o=this.htmlMode&&hy.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[0]);){const u=this.stack.shift();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,u,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(Ah.has(t)?this.foreignContext.unshift(!0):Th.has(t)&&this.foreignContext.unshift(!1))),(i=(s=this.cbs).onopentagname)===null||i===void 0||i.call(s,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,n){var r,s,i,o,u,h,d,p;this.endIndex=n;let b=this.getSlice(t,n);if(this.lowerCaseTagNames&&(b=b.toLowerCase()),this.htmlMode&&(Ah.has(b)||Th.has(b))&&this.foreignContext.shift(),this.isVoidElement(b))this.htmlMode&&b==="br"&&((o=(i=this.cbs).onopentagname)===null||o===void 0||o.call(i,"br"),(h=(u=this.cbs).onopentag)===null||h===void 0||h.call(u,"br",{},!0),(p=(d=this.cbs).onclosetag)===null||p===void 0||p.call(d,"br",!1));else{const v=this.stack.indexOf(b);if(v!==-1)for(let k=0;k<=v;k++){const x=this.stack.shift();(s=(r=this.cbs).onclosetag)===null||s===void 0||s.call(r,x,k!==v)}else this.htmlMode&&b==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var n,r;const s=this.tagname;this.endOpenTag(t),this.stack[0]===s&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,s,!t),this.stack.shift())}onattribname(t,n){this.startIndex=t;const r=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(t,n){this.attribvalue+=this.getSlice(t,n)}onattribentity(t){this.attribvalue+=w0(t)}onattribend(t,n){var r,s;this.endIndex=n,(s=(r=this.cbs).onattribute)===null||s===void 0||s.call(r,this.attribname,this.attribvalue,t===Gn.Double?'"':t===Gn.Single?"'":t===Gn.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const n=t.search(my);let r=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${s}`,`!${r}`)}this.startIndex=n+1}onprocessinginstruction(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${s}`,`?${r}`)}this.startIndex=n+1}oncomment(t,n,r){var s,i,o,u;this.endIndex=n,(i=(s=this.cbs).oncomment)===null||i===void 0||i.call(s,this.getSlice(t,n-r)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=n+1}oncdata(t,n,r){var s,i,o,u,h,d,p,b,v,k;this.endIndex=n;const x=this.getSlice(t,n-r);!this.htmlMode||this.options.recognizeCDATA?((i=(s=this.cbs).oncdatastart)===null||i===void 0||i.call(s),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,x),(d=(h=this.cbs).oncdataend)===null||d===void 0||d.call(h)):((b=(p=this.cbs).oncomment)===null||b===void 0||b.call(p,`[CDATA[${x}]]`),(k=(v=this.cbs).oncommentend)===null||k===void 0||k.call(v)),this.startIndex=n+1}onend(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)}reset(){var t,n,r,s;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(r=this.cbs).onparserinit)===null||s===void 0||s.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,n){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}t&&this.write(t),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()}parseChunk(t){this.write(t)}done(t){this.end(t)}};function gy(e,t){const n=new Z3(void 0,t);return new py(n,t).end(e),n.root}const yy=ly(C8(gy),_o),by={"div,p":({$node:e})=>({queue:e.children()}),"h1,h2,h3,h4,h5,h6":({$node:e,getContent:t})=>({...t(e.contents())}),"ul,ol":({$node:e})=>({queue:e.children(),nesting:!0}),li:({$node:e,getContent:t})=>{const n=e.children().filter("ul,ol");let r;if(e.contents().first().is("div,p"))r=t(e.children().first());else{let s=e.contents();const i=s.index(n);i>=0&&(s=s.slice(0,i)),r=t(s)}return{queue:n,nesting:!0,...r}},"table,pre,p>img:only-child":({$node:e,getContent:t})=>({...t(e)})},wy={selector:"h1,h2,h3,h4,h5,h6,ul,ol,li,table,pre,p>img:only-child",selectorRules:by},Eh="markmap: ",vy=/^h[1-6]$/,_y=/^[uo]l$/,xy=/^li$/;function ky(e){return vy.test(e)?+e[1]:_y.test(e)?8:xy.test(e)?9:7}function Sy(e,t){const n={...wy,...t},r=yy(e);let s=r("body");s.length||(s=r.root());let i=0;const o={id:i,tag:"",html:"",level:0,parent:0,childrenLevel:0,children:[]},u=[];let h=0;return k(s.children()),o;function d(x){var A;const{parent:E}=x,M={id:++i,tag:x.tagName,level:x.level,html:x.html,childrenLevel:0,children:x.nesting?[]:void 0,parent:E.id};return(A=x.comments)!=null&&A.length&&(M.comments=x.comments),Object.keys(x.data||{}).length&&(M.data=x.data),E.children&&((E.childrenLevel===0||E.childrenLevel>M.level)&&(E.children=[],E.childrenLevel=M.level),E.childrenLevel===M.level&&E.children.push(M)),M}function p(x){let A;for(;(A=u[u.length-1])&&A.level>=x;)u.pop();return A||o}function b(x){var A;const E=v(x),M=(A=r.html(E.$node))==null?void 0:A.trimEnd();return{comments:E.comments,html:M}}function v(x){const A=[];return x=x.filter((E,M)=>{if(M.type==="comment"){const q=M.data.trim();if(q.startsWith(Eh))return A.push(q.slice(Eh.length).trim()),!1}return!0}),{$node:x,comments:A}}function k(x,A){x.each((E,M)=>{var q;const L=r(M),O=(q=Object.entries(n.selectorRules).find(([ce])=>L.is(ce)))==null?void 0:q[1],F=O==null?void 0:O({$node:L,$:r,getContent:b});if(F!=null&&F.queue&&!F.nesting){k(F.queue,A);return}const z=ky(M.tagName);if(!F){z<=6&&(h=z);return}if(h>0&&z>h||!L.is(n.selector))return;h=0;const j=z<=6;let G={...L.closest("p").data(),...L.data()},Q=F.html||"";if(L.is("ol>li")&&(A!=null&&A.children)){const te=+(L.parent().attr("start")||1)+A.children.length;Q=`${te}. ${Q}`,G={...G,listIndex:te}}const ye=d({parent:A||p(z),nesting:!!F.queue||j,tagName:M.tagName,level:z,html:Q,comments:F.comments,data:G});j&&u.push(ye),F.queue&&k(F.queue,ye)})}}function Ay(e){return Zs(e,(t,n)=>{const r={content:t.html,children:n()||[]};return t.data&&(r.payload={tag:t.tag,...t.data}),t.comments&&(t.comments.includes("foldAll")?r.payload={...r.payload,fold:2}:t.comments.includes("fold")&&(r.payload={...r.payload,fold:1})),r})}function Ty(e,t){const n=Sy(e,t);return Ay(n)}function Ey(e){function t(r,s){const i=r.pos,o=r.src.charCodeAt(i);if(s||o!==43)return!1;const u=r.scanDelims(r.pos,!0);let h=u.length;const d=String.fromCharCode(o);if(h<2)return!1;if(h%2){const p=r.push("text","",0);p.content=d,h--}for(let p=0;p<h;p+=2){const b=r.push("text","",0);b.content=d+d,!(!u.can_open&&!u.can_close)&&r.delimiters.push({marker:o,length:0,jump:p/2,token:r.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return r.pos+=u.length,!0}function n(r,s){let i;const o=[],u=s.length;for(let h=0;h<u;h++){const d=s[h];if(d.marker!==43||d.end===-1)continue;const p=s[d.end];i=r.tokens[d.token],i.type="ins_open",i.tag="ins",i.nesting=1,i.markup="++",i.content="",i=r.tokens[p.token],i.type="ins_close",i.tag="ins",i.nesting=-1,i.markup="++",i.content="",r.tokens[p.token-1].type==="text"&&r.tokens[p.token-1].content==="+"&&o.push(p.token-1)}for(;o.length;){const h=o.pop();let d=h+1;for(;d<r.tokens.length&&r.tokens[d].type==="ins_close";)d++;d--,h!==d&&(i=r.tokens[d],r.tokens[d]=r.tokens[h],r.tokens[h]=i)}}e.inline.ruler.before("emphasis","ins",t),e.inline.ruler2.before("emphasis","ins",function(r){const s=r.tokens_meta,i=(r.tokens_meta||[]).length;n(r,r.delimiters);for(let o=0;o<i;o++)s[o]&&s[o].delimiters&&n(r,s[o].delimiters)})}function Ny(e){function t(r,s){const i=r.pos,o=r.src.charCodeAt(i);if(s||o!==61)return!1;const u=r.scanDelims(r.pos,!0);let h=u.length;const d=String.fromCharCode(o);if(h<2)return!1;if(h%2){const p=r.push("text","",0);p.content=d,h--}for(let p=0;p<h;p+=2){const b=r.push("text","",0);b.content=d+d,!(!u.can_open&&!u.can_close)&&r.delimiters.push({marker:o,length:0,jump:p/2,token:r.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return r.pos+=u.length,!0}function n(r,s){const i=[],o=s.length;for(let u=0;u<o;u++){const h=s[u];if(h.marker!==61||h.end===-1)continue;const d=s[h.end],p=r.tokens[h.token];p.type="mark_open",p.tag="mark",p.nesting=1,p.markup="==",p.content="";const b=r.tokens[d.token];b.type="mark_close",b.tag="mark",b.nesting=-1,b.markup="==",b.content="",r.tokens[d.token-1].type==="text"&&r.tokens[d.token-1].content==="="&&i.push(d.token-1)}for(;i.length;){const u=i.pop();let h=u+1;for(;h<r.tokens.length&&r.tokens[h].type==="mark_close";)h++;if(h--,u!==h){const d=r.tokens[h];r.tokens[h]=r.tokens[u],r.tokens[u]=d}}}e.inline.ruler.before("emphasis","mark",t),e.inline.ruler2.before("emphasis","mark",function(r){let s;const i=r.tokens_meta,o=(r.tokens_meta||[]).length;for(n(r,r.delimiters),s=0;s<o;s++)i[s]&&i[s].delimiters&&n(r,i[s].delimiters)})}const Cy=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Iy(e,t){const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==126||t||r+2>=n)return!1;e.pos=r+1;let s=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){s=!0;break}e.md.inline.skipToken(e)}if(!s||r+1===e.pos)return e.pos=r,!1;const i=e.src.slice(r+1,e.pos);if(i.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const o=e.push("sub_open","sub",1);o.markup="~";const u=e.push("text","",0);u.content=i.replace(Cy,"$1");const h=e.push("sub_close","sub",-1);return h.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function My(e){e.inline.ruler.after("emphasis","sub",Iy)}const Oy=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Ly(e,t){const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==94||t||r+2>=n)return!1;e.pos=r+1;let s=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){s=!0;break}e.md.inline.skipToken(e)}if(!s||r+1===e.pos)return e.pos=r,!1;const i=e.src.slice(r+1,e.pos);if(i.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const o=e.push("sup_open","sup",1);o.markup="^";const u=e.push("text","",0);u.content=i.replace(Oy,"$1");const h=e.push("sup_close","sup",-1);return h.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Ry(e){e.inline.ruler.after("emphasis","sup",Ly)}const xc=Symbol.for("yaml.alias"),E0=Symbol.for("yaml.document"),Ar=Symbol.for("yaml.map"),gm=Symbol.for("yaml.pair"),Jn=Symbol.for("yaml.scalar"),Ps=Symbol.for("yaml.seq"),In=Symbol.for("yaml.node.type"),es=e=>!!e&&typeof e=="object"&&e[In]===xc,To=e=>!!e&&typeof e=="object"&&e[In]===E0,Ci=e=>!!e&&typeof e=="object"&&e[In]===Ar,Ct=e=>!!e&&typeof e=="object"&&e[In]===gm,ut=e=>!!e&&typeof e=="object"&&e[In]===Jn,Ii=e=>!!e&&typeof e=="object"&&e[In]===Ps;function Et(e){if(e&&typeof e=="object")switch(e[In]){case Ar:case Ps:return!0}return!1}function Nt(e){if(e&&typeof e=="object")switch(e[In]){case xc:case Ar:case Jn:case Ps:return!0}return!1}const ym=e=>(ut(e)||Et(e))&&!!e.anchor,Fr=Symbol("break visit"),Dy=Symbol("skip children"),oi=Symbol("remove node");function $s(e,t){const n=Py(t);To(e)?ps(null,e.contents,n,Object.freeze([e]))===oi&&(e.contents=null):ps(null,e,n,Object.freeze([]))}$s.BREAK=Fr;$s.SKIP=Dy;$s.REMOVE=oi;function ps(e,t,n,r){const s=$y(e,t,n,r);if(Nt(s)||Ct(s))return Fy(e,r,s),ps(e,s,n,r);if(typeof s!="symbol"){if(Et(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const o=ps(i,t.items[i],n,r);if(typeof o=="number")i=o-1;else{if(o===Fr)return Fr;o===oi&&(t.items.splice(i,1),i-=1)}}}else if(Ct(t)){r=Object.freeze(r.concat(t));const i=ps("key",t.key,n,r);if(i===Fr)return Fr;i===oi&&(t.key=null);const o=ps("value",t.value,n,r);if(o===Fr)return Fr;o===oi&&(t.value=null)}}return s}function Py(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function $y(e,t,n,r){var s,i,o,u,h;if(typeof n=="function")return n(e,t,r);if(Ci(t))return(s=n.Map)==null?void 0:s.call(n,e,t,r);if(Ii(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(Ct(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(ut(t))return(u=n.Scalar)==null?void 0:u.call(n,e,t,r);if(es(t))return(h=n.Alias)==null?void 0:h.call(n,e,t,r)}function Fy(e,t,n){const r=t[t.length-1];if(Et(r))r.items[e]=n;else if(Ct(r))e==="key"?r.key=n:r.value=n;else if(To(r))r.contents=n;else{const s=es(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const By={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},zy=e=>e.replace(/[!,[\]{}]/g,t=>By[t]);class rn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},rn.defaultYaml,t),this.tags=Object.assign({},rn.defaultTags,n)}clone(){const t=new rn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new rn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:rn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},rn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:rn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},rn.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,o]=r;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,o),!1}}default:return n(0,`Unknown directive ${s}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,s]=t.match(/^(.*!)([^!]*)$/s);s||n(`The ${t} tag has no suffix`);const i=this.tags[r];if(i)try{return i+decodeURIComponent(s)}catch(o){return n(String(o)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+zy(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let s;if(t&&r.length>0&&Nt(t.contents)){const i={};$s(t.contents,(o,u)=>{Nt(u)&&u.tag&&(i[u.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,o]of r)i==="!!"&&o==="tag:yaml.org,2002:"||(!t||s.some(u=>u.startsWith(o)))&&n.push(`%TAG ${i} ${o}`);return n.join(`
|
||
`)}}rn.defaultYaml={explicit:!1,version:"1.2"};rn.defaultTags={"!!":"tag:yaml.org,2002:"};function bm(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function wm(e){const t=new Set;return $s(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function vm(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function qy(e,t){const n=[],r=new Map;let s=null;return{onAnchor:i=>{n.push(i),s??(s=wm(e));const o=vm(t,s);return s.add(o),o},setAnchors:()=>{for(const i of n){const o=r.get(i);if(typeof o=="object"&&o.anchor&&(ut(o.node)||Et(o.node)))o.node.anchor=o.anchor;else{const u=new Error("Failed to resolve repeated object (this should not happen)");throw u.source=i,u}}},sourceObjects:r}}function gs(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let s=0,i=r.length;s<i;++s){const o=r[s],u=gs(e,r,String(s),o);u===void 0?delete r[s]:u!==o&&(r[s]=u)}else if(r instanceof Map)for(const s of Array.from(r.keys())){const i=r.get(s),o=gs(e,r,s,i);o===void 0?r.delete(s):o!==i&&r.set(s,o)}else if(r instanceof Set)for(const s of Array.from(r)){const i=gs(e,r,s,s);i===void 0?r.delete(s):i!==s&&(r.delete(s),r.add(i))}else for(const[s,i]of Object.entries(r)){const o=gs(e,r,s,i);o===void 0?delete r[s]:o!==i&&(r[s]=o)}return e.call(t,n,r)}function Cn(e,t,n){if(Array.isArray(e))return e.map((r,s)=>Cn(r,String(s),n));if(e&&typeof e.toJSON=="function"){if(!n||!ym(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class kc{constructor(t){Object.defineProperty(this,In,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:s,reviver:i}={}){if(!To(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},u=Cn(this,"",o);if(typeof s=="function")for(const{count:h,res:d}of o.anchors.values())s(d,h);return typeof i=="function"?gs(i,{"":u},"",u):u}}class Sc extends kc{constructor(t){super(xc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n!=null&&n.aliasResolveCache?r=n.aliasResolveCache:(r=[],$s(t,{Node:(i,o)=>{(es(o)||ym(o))&&r.push(o)}}),n&&(n.aliasResolveCache=r));let s;for(const i of r){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:s,maxAliasCount:i}=n,o=this.resolve(s,n);if(!o){const h=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(h)}let u=r.get(o);if(u||(Cn(o,null,n),u=r.get(o)),(u==null?void 0:u.res)===void 0){const h="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(h)}if(i>=0&&(u.count+=1,u.aliasCount===0&&(u.aliasCount=Ra(s,o,r)),u.count*u.aliasCount>i)){const h="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(h)}return u.res}toString(t,n,r){const s=`*${this.source}`;if(t){if(bm(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${s} `}return s}}function Ra(e,t,n){if(es(t)){const r=t.resolve(e),s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}else if(Et(t)){let r=0;for(const s of t.items){const i=Ra(e,s,n);i>r&&(r=i)}return r}else if(Ct(t)){const r=Ra(e,t.key,n),s=Ra(e,t.value,n);return Math.max(r,s)}return 1}const _m=e=>!e||typeof e!="function"&&typeof e!="object";class qe extends kc{constructor(t){super(Jn),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Cn(this.value,t,n)}toString(){return String(this.value)}}qe.BLOCK_FOLDED="BLOCK_FOLDED";qe.BLOCK_LITERAL="BLOCK_LITERAL";qe.PLAIN="PLAIN";qe.QUOTE_DOUBLE="QUOTE_DOUBLE";qe.QUOTE_SINGLE="QUOTE_SINGLE";const Uy="tag:yaml.org,2002:";function Hy(e,t,n){if(t){const r=n.filter(i=>i.tag===t),s=r.find(i=>!i.format)??r[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return n.find(r=>{var s;return((s=r.identify)==null?void 0:s.call(r,e))&&!r.format})}function vi(e,t,n){var b,v,k;if(To(e)&&(e=e.contents),Nt(e))return e;if(Ct(e)){const x=(v=(b=n.schema[Ar]).createNode)==null?void 0:v.call(b,n.schema,null,n);return x.items.push(e),x}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:s,onTagObj:i,schema:o,sourceObjects:u}=n;let h;if(r&&e&&typeof e=="object"){if(h=u.get(e),h)return h.anchor??(h.anchor=s(e)),new Sc(h.anchor);h={anchor:null,node:null},u.set(e,h)}t!=null&&t.startsWith("!!")&&(t=Uy+t.slice(2));let d=Hy(e,t,o.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const x=new qe(e);return h&&(h.node=x),x}d=e instanceof Map?o[Ar]:Symbol.iterator in Object(e)?o[Ps]:o[Ar]}i&&(i(d),delete n.onTagObj);const p=d!=null&&d.createNode?d.createNode(n.schema,e,n):typeof((k=d==null?void 0:d.nodeClass)==null?void 0:k.from)=="function"?d.nodeClass.from(n.schema,e,n):new qe(e);return t?p.tag=t:d.default||(p.tag=d.tag),h&&(h.node=p),p}function ro(e,t,n){let r=n;for(let s=t.length-1;s>=0;--s){const i=t[s];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const o=[];o[i]=r,r=o}else r=new Map([[i,r]])}return vi(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const ei=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class xm extends kc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>Nt(r)||Ct(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(ei(t))this.add(n);else{const[r,...s]=t,i=this.get(r,!0);if(Et(i))i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,ro(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const s=this.get(n,!0);if(Et(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...s]=t,i=this.get(r,!0);return s.length===0?!n&&ut(i)?i.value:i:Et(i)?i.getIn(s,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ct(n))return!1;const r=n.value;return r==null||t&&ut(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const s=this.get(n,!0);return Et(s)?s.hasIn(r):!1}setIn(t,n){const[r,...s]=t;if(s.length===0)this.set(r,n);else{const i=this.get(r,!0);if(Et(i))i.setIn(s,n);else if(i===void 0&&this.schema)this.set(r,ro(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}}const Vy=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function cr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const qr=(e,t,n)=>e.endsWith(`
|
||
`)?cr(n,t):n.includes(`
|
||
`)?`
|
||
`+cr(n,t):(e.endsWith(" ")?"":" ")+n,km="flow",N0="block",Da="quoted";function Eo(e,t,n="flow",{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:u}={}){if(!s||s<0)return e;s<i&&(i=0);const h=Math.max(1+i,1+s-t.length);if(e.length<=h)return e;const d=[],p={};let b=s-t.length;typeof r=="number"&&(r>s-Math.max(2,i)?d.push(0):b=s-r);let v,k,x=!1,A=-1,E=-1,M=-1;n===N0&&(A=Nh(e,A,t.length),A!==-1&&(b=A+h));for(let L;L=e[A+=1];){if(n===Da&&L==="\\"){switch(E=A,e[A+1]){case"x":A+=3;break;case"u":A+=5;break;case"U":A+=9;break;default:A+=1}M=A}if(L===`
|
||
`)n===N0&&(A=Nh(e,A,t.length)),b=A+t.length+h,v=void 0;else{if(L===" "&&k&&k!==" "&&k!==`
|
||
`&&k!==" "){const O=e[A+1];O&&O!==" "&&O!==`
|
||
`&&O!==" "&&(v=A)}if(A>=b)if(v)d.push(v),b=v+h,v=void 0;else if(n===Da){for(;k===" "||k===" ";)k=L,L=e[A+=1],x=!0;const O=A>M+1?A-2:E-1;if(p[O])return e;d.push(O),p[O]=!0,b=O+h,v=void 0}else x=!0}k=L}if(x&&u&&u(),d.length===0)return e;o&&o();let q=e.slice(0,d[0]);for(let L=0;L<d.length;++L){const O=d[L],F=d[L+1]||e.length;O===0?q=`
|
||
${t}${e.slice(0,F)}`:(n===Da&&p[O]&&(q+=`${e[O]}\\`),q+=`
|
||
${t}${e.slice(O+1,F)}`)}return q}function Nh(e,t,n){let r=t,s=t+1,i=e[s];for(;i===" "||i===" ";)if(t<s+n)i=e[++t];else{do i=e[++t];while(i&&i!==`
|
||
`);r=t,s=t+1,i=e[s]}return r}const No=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Co=e=>/^(%|---|\.\.\.)/m.test(e);function jy(e,t,n){if(!t||t<0)return!1;const r=t-n,s=e.length;if(s<=r)return!1;for(let i=0,o=0;i<s;++i)if(e[i]===`
|
||
`){if(i-o>r)return!0;if(o=i+1,s-o<=r)return!1}return!0}function li(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,s=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Co(e)?" ":"");let o="",u=0;for(let h=0,d=n[h];d;d=n[++h])if(d===" "&&n[h+1]==="\\"&&n[h+2]==="n"&&(o+=n.slice(u,h)+"\\ ",h+=1,u=h,d="\\"),d==="\\")switch(n[h+1]){case"u":{o+=n.slice(u,h);const p=n.substr(h+2,4);switch(p){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:p.substr(0,2)==="00"?o+="\\x"+p.substr(2):o+=n.substr(h,6)}h+=5,u=h+1}break;case"n":if(r||n[h+2]==='"'||n.length<s)h+=1;else{for(o+=n.slice(u,h)+`
|
||
|
||
`;n[h+2]==="\\"&&n[h+3]==="n"&&n[h+4]!=='"';)o+=`
|
||
`,h+=2;o+=i,n[h+2]===" "&&(o+="\\"),h+=1,u=h+1}break;default:h+=1}return o=u?o+n.slice(u):n,r?o:Eo(o,i,Da,No(t,!1))}function C0(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
||
`)||/[ \t]\n|\n[ \t]/.test(e))return li(e,t);const n=t.indent||(Co(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
||
${n}`)+"'";return t.implicitKey?r:Eo(r,n,km,No(t,!1))}function ys(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=li;else{const s=e.includes('"'),i=e.includes("'");s&&!i?r=C0:i&&!s?r=li:r=n?C0:li}return r(e,t)}let I0;try{I0=new RegExp(`(^|(?<!
|
||
))
|
||
+(?!
|
||
|$)`,"g")}catch{I0=/\n+(?!\n|$)/g}function Pa({comment:e,type:t,value:n},r,s,i){const{blockQuote:o,commentString:u,lineWidth:h}=r.options;if(!o||/\n[\t ]+$/.test(n))return ys(n,r);const d=r.indent||(r.forceBlockIndent||Co(n)?" ":""),p=o==="literal"?!0:o==="folded"||t===qe.BLOCK_FOLDED?!1:t===qe.BLOCK_LITERAL?!0:!jy(n,h,d.length);if(!n)return p?`|
|
||
`:`>
|
||
`;let b,v;for(v=n.length;v>0;--v){const F=n[v-1];if(F!==`
|
||
`&&F!==" "&&F!==" ")break}let k=n.substring(v);const x=k.indexOf(`
|
||
`);x===-1?b="-":n===k||x!==k.length-1?(b="+",i&&i()):b="",k&&(n=n.slice(0,-k.length),k[k.length-1]===`
|
||
`&&(k=k.slice(0,-1)),k=k.replace(I0,`$&${d}`));let A=!1,E,M=-1;for(E=0;E<n.length;++E){const F=n[E];if(F===" ")A=!0;else if(F===`
|
||
`)M=E;else break}let q=n.substring(0,M<E?M+1:E);q&&(n=n.substring(q.length),q=q.replace(/\n+/g,`$&${d}`));let O=(A?d?"2":"1":"")+b;if(e&&(O+=" "+u(e.replace(/ ?[\r\n]+/g," ")),s&&s()),!p){const F=n.replace(/\n+/g,`
|
||
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let z=!1;const j=No(r,!0);o!=="folded"&&t!==qe.BLOCK_FOLDED&&(j.onOverflow=()=>{z=!0});const G=Eo(`${q}${F}${k}`,d,N0,j);if(!z)return`>${O}
|
||
${d}${G}`}return n=n.replace(/\n+/g,`$&${d}`),`|${O}
|
||
${d}${q}${n}${k}`}function Wy(e,t,n,r){const{type:s,value:i}=e,{actualString:o,implicitKey:u,indent:h,indentStep:d,inFlow:p}=t;if(u&&i.includes(`
|
||
`)||p&&/[[\]{},]/.test(i))return ys(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return u||p||!i.includes(`
|
||
`)?ys(i,t):Pa(e,t,n,r);if(!u&&!p&&s!==qe.PLAIN&&i.includes(`
|
||
`))return Pa(e,t,n,r);if(Co(i)){if(h==="")return t.forceBlockIndent=!0,Pa(e,t,n,r);if(u&&h===d)return ys(i,t)}const b=i.replace(/\n+/g,`$&
|
||
${h}`);if(o){const v=A=>{var E;return A.default&&A.tag!=="tag:yaml.org,2002:str"&&((E=A.test)==null?void 0:E.test(b))},{compat:k,tags:x}=t.doc.schema;if(x.some(v)||k!=null&&k.some(v))return ys(i,t)}return u?b:Eo(b,h,km,No(t,!1))}function Ac(e,t,n,r){const{implicitKey:s,inFlow:i}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:u}=e;u!==qe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(u=qe.QUOTE_DOUBLE);const h=p=>{switch(p){case qe.BLOCK_FOLDED:case qe.BLOCK_LITERAL:return s||i?ys(o.value,t):Pa(o,t,n,r);case qe.QUOTE_DOUBLE:return li(o.value,t);case qe.QUOTE_SINGLE:return C0(o.value,t);case qe.PLAIN:return Wy(o,t,n,r);default:return null}};let d=h(u);if(d===null){const{defaultKeyType:p,defaultStringType:b}=t.options,v=s&&p||b;if(d=h(v),d===null)throw new Error(`Unsupported default string type ${v}`)}return d}function Sm(e,t){const n=Object.assign({blockQuote:!0,commentString:Vy,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function Gy(e,t){var s;if(t.tag){const i=e.filter(o=>o.tag===t.tag);if(i.length>0)return i.find(o=>o.format===t.format)??i[0]}let n,r;if(ut(t)){r=t.value;let i=e.filter(o=>{var u;return(u=o.identify)==null?void 0:u.call(o,r)});if(i.length>1){const o=i.filter(u=>u.test);o.length>0&&(i=o)}n=i.find(o=>o.format===t.format)??i.find(o=>!o.format)}else r=t,n=e.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){const i=((s=r==null?void 0:r.constructor)==null?void 0:s.name)??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${i} value`)}return n}function Ky(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const s=[],i=(ut(e)||Et(e))&&e.anchor;i&&bm(i)&&(n.add(i),s.push(`&${i}`));const o=e.tag??(t.default?null:t.tag);return o&&s.push(r.directives.tagString(o)),s.join(" ")}function Es(e,t,n,r){var h;if(Ct(e))return e.toString(t,n,r);if(es(e)){if(t.doc.directives)return e.toString(t);if((h=t.resolvedAliases)!=null&&h.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s;const i=Nt(e)?e:t.doc.createNode(e,{onTagObj:d=>s=d});s??(s=Gy(t.doc.schema.tags,i));const o=Ky(i,s,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);const u=typeof s.stringify=="function"?s.stringify(i,t,n,r):ut(i)?Ac(i,t,n,r):i.toString(t,n,r);return o?ut(i)||u[0]==="{"||u[0]==="["?`${o} ${u}`:`${o}
|
||
${t.indent}${u}`:u}function Xy({key:e,value:t},n,r,s){const{allNullValues:i,doc:o,indent:u,indentStep:h,options:{commentString:d,indentSeq:p,simpleKeys:b}}=n;let v=Nt(e)&&e.comment||null;if(b){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Et(e)||!Nt(e)&&typeof e=="object"){const j="With simple keys, collection cannot be used as a key value";throw new Error(j)}}let k=!b&&(!e||v&&t==null&&!n.inFlow||Et(e)||(ut(e)?e.type===qe.BLOCK_FOLDED||e.type===qe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!k&&(b||!i),indent:u+h});let x=!1,A=!1,E=Es(e,n,()=>x=!0,()=>A=!0);if(!k&&!n.inFlow&&E.length>1024){if(b)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");k=!0}if(n.inFlow){if(i||t==null)return x&&r&&r(),E===""?"?":k?`? ${E}`:E}else if(i&&!b||t==null&&k)return E=`? ${E}`,v&&!x?E+=qr(E,n.indent,d(v)):A&&s&&s(),E;x&&(v=null),k?(v&&(E+=qr(E,n.indent,d(v))),E=`? ${E}
|
||
${u}:`):(E=`${E}:`,v&&(E+=qr(E,n.indent,d(v))));let M,q,L;Nt(t)?(M=!!t.spaceBefore,q=t.commentBefore,L=t.comment):(M=!1,q=null,L=null,t&&typeof t=="object"&&(t=o.createNode(t))),n.implicitKey=!1,!k&&!v&&ut(t)&&(n.indentAtStart=E.length+1),A=!1,!p&&h.length>=2&&!n.inFlow&&!k&&Ii(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let O=!1;const F=Es(t,n,()=>O=!0,()=>A=!0);let z=" ";if(v||M||q){if(z=M?`
|
||
`:"",q){const j=d(q);z+=`
|
||
${cr(j,n.indent)}`}F===""&&!n.inFlow?z===`
|
||
`&&L&&(z=`
|
||
|
||
`):z+=`
|
||
${n.indent}`}else if(!k&&Et(t)){const j=F[0],G=F.indexOf(`
|
||
`),Q=G!==-1,ye=n.inFlow??t.flow??t.items.length===0;if(Q||!ye){let ce=!1;if(Q&&(j==="&"||j==="!")){let te=F.indexOf(" ");j==="&"&&te!==-1&&te<G&&F[te+1]==="!"&&(te=F.indexOf(" ",te+1)),(te===-1||G<te)&&(ce=!0)}ce||(z=`
|
||
${n.indent}`)}}else(F===""||F[0]===`
|
||
`)&&(z="");return E+=z+F,n.inFlow?O&&r&&r():L&&!O?E+=qr(E,n.indent,d(L)):A&&s&&s(),E}function Am(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const va="<<",dr={identify:e=>e===va||typeof e=="symbol"&&e.description===va,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new qe(Symbol(va)),{addToJSMap:Tm}),stringify:()=>va},Yy=(e,t)=>(dr.identify(t)||ut(t)&&(!t.type||t.type===qe.PLAIN)&&dr.identify(t.value))&&(e==null?void 0:e.doc.schema.tags.some(n=>n.tag===dr.tag&&n.default));function Tm(e,t,n){if(n=e&&es(n)?n.resolve(e.doc):n,Ii(n))for(const r of n.items)ql(e,t,r);else if(Array.isArray(n))for(const r of n)ql(e,t,r);else ql(e,t,n)}function ql(e,t,n){const r=e&&es(n)?n.resolve(e.doc):n;if(!Ci(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,e,Map);for(const[i,o]of s)t instanceof Map?t.has(i)||t.set(i,o):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function Em(e,t,{key:n,value:r}){if(Nt(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Yy(e,n))Tm(e,t,r);else{const s=Cn(n,"",e);if(t instanceof Map)t.set(s,Cn(r,s,e));else if(t instanceof Set)t.add(s);else{const i=Jy(n,s,e),o=Cn(r,i,e);i in t?Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[i]=o}}return t}function Jy(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Nt(e)&&(n!=null&&n.doc)){const r=Sm(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const s=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),Am(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(t)}function Tc(e,t,n){const r=vi(e,void 0,n),s=vi(t,void 0,n);return new sn(r,s)}class sn{constructor(t,n=null){Object.defineProperty(this,In,{value:gm}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Nt(n)&&(n=n.clone(t)),Nt(r)&&(r=r.clone(t)),new sn(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return Em(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Xy(this,t,n,r):JSON.stringify(this)}}function Nm(e,t,n){return(t.inFlow??e.flow?Zy:Qy)(e,t,n)}function Qy({comment:e,items:t},n,{blockItemPrefix:r,flowChars:s,itemIndent:i,onChompKeep:o,onComment:u}){const{indent:h,options:{commentString:d}}=n,p=Object.assign({},n,{indent:i,type:null});let b=!1;const v=[];for(let x=0;x<t.length;++x){const A=t[x];let E=null;if(Nt(A))!b&&A.spaceBefore&&v.push(""),so(n,v,A.commentBefore,b),A.comment&&(E=A.comment);else if(Ct(A)){const q=Nt(A.key)?A.key:null;q&&(!b&&q.spaceBefore&&v.push(""),so(n,v,q.commentBefore,b))}b=!1;let M=Es(A,p,()=>E=null,()=>b=!0);E&&(M+=qr(M,i,d(E))),b&&E&&(b=!1),v.push(r+M)}let k;if(v.length===0)k=s.start+s.end;else{k=v[0];for(let x=1;x<v.length;++x){const A=v[x];k+=A?`
|
||
${h}${A}`:`
|
||
`}}return e?(k+=`
|
||
`+cr(d(e),h),u&&u()):b&&o&&o(),k}function Zy({items:e},t,{flowChars:n,itemIndent:r}){const{indent:s,indentStep:i,flowCollectionPadding:o,options:{commentString:u}}=t;r+=i;const h=Object.assign({},t,{indent:r,inFlow:!0,type:null});let d=!1,p=0;const b=[];for(let x=0;x<e.length;++x){const A=e[x];let E=null;if(Nt(A))A.spaceBefore&&b.push(""),so(t,b,A.commentBefore,!1),A.comment&&(E=A.comment);else if(Ct(A)){const q=Nt(A.key)?A.key:null;q&&(q.spaceBefore&&b.push(""),so(t,b,q.commentBefore,!1),q.comment&&(d=!0));const L=Nt(A.value)?A.value:null;L?(L.comment&&(E=L.comment),L.commentBefore&&(d=!0)):A.value==null&&(q!=null&&q.comment)&&(E=q.comment)}E&&(d=!0);let M=Es(A,h,()=>E=null);x<e.length-1&&(M+=","),E&&(M+=qr(M,r,u(E))),!d&&(b.length>p||M.includes(`
|
||
`))&&(d=!0),b.push(M),p=b.length}const{start:v,end:k}=n;if(b.length===0)return v+k;if(!d){const x=b.reduce((A,E)=>A+E.length+2,2);d=t.options.lineWidth>0&&x>t.options.lineWidth}if(d){let x=v;for(const A of b)x+=A?`
|
||
${i}${s}${A}`:`
|
||
`;return`${x}
|
||
${s}${k}`}else return`${v}${o}${b.join(" ")}${o}${k}`}function so({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const i=cr(t(r),e);n.push(i.trimStart())}}function Ur(e,t){const n=ut(t)?t.value:t;for(const r of e)if(Ct(r)&&(r.key===t||r.key===n||ut(r.key)&&r.key.value===n))return r}class Nn extends xm{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ar,t),this.items=[]}static from(t,n,r){const{keepUndefined:s,replacer:i}=r,o=new this(t),u=(h,d)=>{if(typeof i=="function")d=i.call(n,h,d);else if(Array.isArray(i)&&!i.includes(h))return;(d!==void 0||s)&&o.items.push(Tc(h,d,r))};if(n instanceof Map)for(const[h,d]of n)u(h,d);else if(n&&typeof n=="object")for(const h of Object.keys(n))u(h,n[h]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){var o;let r;Ct(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new sn(t,t==null?void 0:t.value):r=new sn(t.key,t.value);const s=Ur(this.items,r.key),i=(o=this.schema)==null?void 0:o.sortMapEntries;if(s){if(!n)throw new Error(`Key ${r.key} already set`);ut(s.value)&&_m(r.value)?s.value.value=r.value:s.value=r.value}else if(i){const u=this.items.findIndex(h=>i(r,h)<0);u===-1?this.items.push(r):this.items.splice(u,0,r)}else this.items.push(r)}delete(t){const n=Ur(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=Ur(this.items,t),s=r==null?void 0:r.value;return(!n&&ut(s)?s.value:s)??void 0}has(t){return!!Ur(this.items,t)}set(t,n){this.add(new sn(t,n),!0)}toJSON(t,n,r){const s=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(s);for(const i of this.items)Em(n,s,i);return s}toString(t,n,r){if(!t)return JSON.stringify(this);for(const s of this.items)if(!Ct(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Nm(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const Fs={collection:"map",default:!0,nodeClass:Nn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Ci(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Nn.from(e,t,n)};class Xr extends xm{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Ps,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=_a(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=_a(t);if(typeof r!="number")return;const s=this.items[r];return!n&&ut(s)?s.value:s}has(t){const n=_a(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=_a(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const s=this.items[r];ut(s)&&_m(n)?s.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let s=0;for(const i of this.items)r.push(Cn(i,String(s++),n));return r}toString(t,n,r){return t?Nm(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:s}=r,i=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let u of n){if(typeof s=="function"){const h=n instanceof Set?u:String(o++);u=s.call(n,h,u)}i.items.push(vi(u,void 0,r))}}return i}}function _a(e){let t=ut(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Bs={collection:"seq",default:!0,nodeClass:Xr,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ii(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Xr.from(e,t,n)},Io={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),Ac(e,t,n,r)}},Mo={identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qe(null),stringify:({source:e},t)=>typeof e=="string"&&Mo.test.test(e)?e:t.options.nullStr},Ec={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new qe(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Ec.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function Fn({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const s=typeof r=="number"?r:Number(r);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let o=i.indexOf(".");o<0&&(o=i.length,i+=".");let u=t-(i.length-o-1);for(;u-- >0;)i+="0"}return i}const Cm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Fn},Im={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Fn(e)}},Mm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new qe(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Fn},Oo=e=>typeof e=="bigint"||Number.isInteger(e),Nc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Om(e,t,n){const{value:r}=e;return Oo(r)&&r>=0?n+r.toString(t):Fn(e)}const Lm={identify:e=>Oo(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Nc(e,2,8,n),stringify:e=>Om(e,8,"0o")},Rm={identify:Oo,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Nc(e,0,10,n),stringify:Fn},Dm={identify:e=>Oo(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Nc(e,2,16,n),stringify:e=>Om(e,16,"0x")},eb=[Fs,Bs,Io,Mo,Ec,Lm,Rm,Dm,Cm,Im,Mm];function Ch(e){return typeof e=="bigint"||Number.isInteger(e)}const xa=({value:e})=>JSON.stringify(e),tb=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:xa},{identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:xa},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:xa},{identify:Ch,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Ch(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:xa}],nb={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},rb=[Fs,Bs].concat(tb,nb),Cc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let s=0;s<n.length;++s)r[s]=n.charCodeAt(s);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,s,i){if(!n)return"";const o=n;let u;if(typeof btoa=="function"){let h="";for(let d=0;d<o.length;++d)h+=String.fromCharCode(o[d]);u=btoa(h)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=qe.BLOCK_LITERAL),t!==qe.QUOTE_DOUBLE){const h=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),d=Math.ceil(u.length/h),p=new Array(d);for(let b=0,v=0;b<d;++b,v+=h)p[b]=u.substr(v,h);u=p.join(t===qe.BLOCK_LITERAL?`
|
||
`:" ")}return Ac({comment:e,type:t,value:u},r,s,i)}};function Pm(e,t){if(Ii(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Ct(r)){if(Ci(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const s=r.items[0]||new sn(new qe(null));if(r.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${r.commentBefore}
|
||
${s.key.commentBefore}`:r.commentBefore),r.comment){const i=s.value??s.key;i.comment=i.comment?`${r.comment}
|
||
${i.comment}`:r.comment}r=s}e.items[n]=Ct(r)?r:new sn(r)}}else t("Expected a sequence for this tag");return e}function $m(e,t,n){const{replacer:r}=n,s=new Xr(e);s.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(i++),o));let u,h;if(Array.isArray(o))if(o.length===2)u=o[0],h=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const d=Object.keys(o);if(d.length===1)u=d[0],h=o[u];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else u=o;s.items.push(Tc(u,h,n))}return s}const Ic={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Pm,createNode:$m};class ws extends Xr{constructor(){super(),this.add=Nn.prototype.add.bind(this),this.delete=Nn.prototype.delete.bind(this),this.get=Nn.prototype.get.bind(this),this.has=Nn.prototype.has.bind(this),this.set=Nn.prototype.set.bind(this),this.tag=ws.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const s of this.items){let i,o;if(Ct(s)?(i=Cn(s.key,"",n),o=Cn(s.value,i,n)):i=Cn(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}static from(t,n,r){const s=$m(t,n,r),i=new this;return i.items=s.items,i}}ws.tag="tag:yaml.org,2002:omap";const Mc={collection:"seq",identify:e=>e instanceof Map,nodeClass:ws,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Pm(e,t),r=[];for(const{key:s}of n.items)ut(s)&&(r.includes(s.value)?t(`Ordered maps must not include duplicate keys: ${s.value}`):r.push(s.value));return Object.assign(new ws,n)},createNode:(e,t,n)=>ws.from(e,t,n)};function Fm({value:e,source:t},n){return t&&(e?Bm:zm).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Bm={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new qe(!0),stringify:Fm},zm={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new qe(!1),stringify:Fm},sb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Fn},ib={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Fn(e)}},ab={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new qe(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:Fn},Mi=e=>typeof e=="bigint"||Number.isInteger(e);function Lo(e,t,n,{intAsBigInt:r}){const s=e[0];if((s==="-"||s==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const o=BigInt(e);return s==="-"?BigInt(-1)*o:o}const i=parseInt(e,n);return s==="-"?-1*i:i}function Oc(e,t,n){const{value:r}=e;if(Mi(r)){const s=r.toString(t);return r<0?"-"+n+s.substr(1):n+s}return Fn(e)}const ob={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Lo(e,2,2,n),stringify:e=>Oc(e,2,"0b")},lb={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Lo(e,1,8,n),stringify:e=>Oc(e,8,"0")},cb={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Lo(e,0,10,n),stringify:Fn},ub={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Lo(e,2,16,n),stringify:e=>Oc(e,16,"0x")};class vs extends Nn{constructor(t){super(t),this.tag=vs.tag}add(t){let n;Ct(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new sn(t.key,null):n=new sn(t,null),Ur(this.items,n.key)||this.items.push(n)}get(t,n){const r=Ur(this.items,t);return!n&&Ct(r)?ut(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Ur(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new sn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:s}=r,i=new this(t);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof s=="function"&&(o=s.call(n,o,o)),i.items.push(Tc(o,null,r));return i}}vs.tag="tag:yaml.org,2002:set";const Lc={collection:"map",identify:e=>e instanceof Set,nodeClass:vs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>vs.from(e,t,n),resolve(e,t){if(Ci(e)){if(e.hasAllNullValues(!0))return Object.assign(new vs,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Rc(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,s=o=>t?BigInt(o):Number(o),i=r.replace(/_/g,"").split(":").reduce((o,u)=>o*s(60)+s(u),s(0));return n==="-"?s(-1)*i:i}function qm(e){let{value:t}=e,n=o=>o;if(typeof t=="bigint")n=o=>BigInt(o);else if(isNaN(t)||!isFinite(t))return Fn(e);let r="";t<0&&(r="-",t*=n(-1));const s=n(60),i=[t%s];return t<60?i.unshift(0):(t=(t-i[0])/s,i.unshift(t%s),t>=60&&(t=(t-i[0])/s,i.unshift(t))),r+i.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Um={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Rc(e,n),stringify:qm},Hm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Rc(e,!1),stringify:qm},Ro={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Ro.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,s,i,o,u]=t.map(Number),h=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,r-1,s,i||0,o||0,u||0,h);const p=t[8];if(p&&p!=="Z"){let b=Rc(p,!1);Math.abs(b)<30&&(b*=60),d-=6e4*b}return new Date(d)},stringify:({value:e})=>(e==null?void 0:e.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},Ih=[Fs,Bs,Io,Mo,Bm,zm,ob,lb,cb,ub,sb,ib,ab,Cc,dr,Mc,Ic,Lc,Um,Hm,Ro],Mh=new Map([["core",eb],["failsafe",[Fs,Bs,Io]],["json",rb],["yaml11",Ih],["yaml-1.1",Ih]]),Oh={binary:Cc,bool:Ec,float:Mm,floatExp:Im,floatNaN:Cm,floatTime:Hm,int:Rm,intHex:Dm,intOct:Lm,intTime:Um,map:Fs,merge:dr,null:Mo,omap:Mc,pairs:Ic,seq:Bs,set:Lc,timestamp:Ro},fb={"tag:yaml.org,2002:binary":Cc,"tag:yaml.org,2002:merge":dr,"tag:yaml.org,2002:omap":Mc,"tag:yaml.org,2002:pairs":Ic,"tag:yaml.org,2002:set":Lc,"tag:yaml.org,2002:timestamp":Ro};function Ul(e,t,n){const r=Mh.get(t);if(r&&!e)return n&&!r.includes(dr)?r.concat(dr):r.slice();let s=r;if(!s)if(Array.isArray(e))s=[];else{const i=Array.from(Mh.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${i} or define customTags array`)}if(Array.isArray(e))for(const i of e)s=s.concat(i);else typeof e=="function"&&(s=e(s.slice()));return n&&(s=s.concat(dr)),s.reduce((i,o)=>{const u=typeof o=="string"?Oh[o]:o;if(!u){const h=JSON.stringify(o),d=Object.keys(Oh).map(p=>JSON.stringify(p)).join(", ");throw new Error(`Unknown custom tag ${h}; use one of ${d}`)}return i.includes(u)||i.push(u),i},[])}const hb=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Dc{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:s,schema:i,sortMapEntries:o,toStringDefaults:u}){this.compat=Array.isArray(t)?Ul(t,"compat"):t?Ul(null,t):null,this.name=typeof i=="string"&&i||"core",this.knownTags=s?fb:{},this.tags=Ul(n,this.name,r),this.toStringOptions=u??null,Object.defineProperty(this,Ar,{value:Fs}),Object.defineProperty(this,Jn,{value:Io}),Object.defineProperty(this,Ps,{value:Bs}),this.sortMapEntries=typeof o=="function"?o:o===!0?hb:null}clone(){const t=Object.create(Dc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function db(e,t){var h;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const d=e.directives.toString(e);d?(n.push(d),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const s=Sm(e,t),{commentString:i}=s.options;if(e.commentBefore){n.length!==1&&n.unshift("");const d=i(e.commentBefore);n.unshift(cr(d,""))}let o=!1,u=null;if(e.contents){if(Nt(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const b=i(e.contents.commentBefore);n.push(cr(b,""))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}const d=u?void 0:()=>o=!0;let p=Es(e.contents,s,()=>u=null,d);u&&(p+=qr(p,"",i(u))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(Es(e.contents,s));if((h=e.directives)!=null&&h.docEnd)if(e.comment){const d=i(e.comment);d.includes(`
|
||
`)?(n.push("..."),n.push(cr(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=e.comment;d&&o&&(d=d.replace(/^\n+/,"")),d&&((!o||u)&&n[n.length-1]!==""&&n.push(""),n.push(cr(i(d),"")))}return n.join(`
|
||
`)+`
|
||
`}class Do{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,In,{value:E0});let s=null;typeof n=="function"||Array.isArray(n)?s=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:o}=i;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new rn({version:o}),this.setSchema(o,r),this.contents=t===void 0?null:this.createNode(t,s,r)}clone(){const t=Object.create(Do.prototype,{[In]:{value:E0}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Nt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){cs(this.contents)&&this.contents.add(t)}addIn(t,n){cs(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=wm(this);t.anchor=!n||r.has(n)?vm(n||"a",r):n}return new Sc(t.anchor)}createNode(t,n,r){let s;if(typeof n=="function")t=n.call({"":t},"",t),s=n;else if(Array.isArray(n)){const E=q=>typeof q=="number"||q instanceof String||q instanceof Number,M=n.filter(E).map(String);M.length>0&&(n=n.concat(M)),s=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:u,keepUndefined:h,onTagObj:d,tag:p}=r??{},{onAnchor:b,setAnchors:v,sourceObjects:k}=qy(this,o||"a"),x={aliasDuplicateObjects:i??!0,keepUndefined:h??!1,onAnchor:b,onTagObj:d,replacer:s,schema:this.schema,sourceObjects:k},A=vi(t,p,x);return u&&Et(A)&&(A.flow=!0),v(),A}createPair(t,n,r={}){const s=this.createNode(t,null,r),i=this.createNode(n,null,r);return new sn(s,i)}delete(t){return cs(this.contents)?this.contents.delete(t):!1}deleteIn(t){return ei(t)?this.contents==null?!1:(this.contents=null,!0):cs(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Et(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return ei(t)?!n&&ut(this.contents)?this.contents.value:this.contents:Et(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Et(this.contents)?this.contents.has(t):!1}hasIn(t){return ei(t)?this.contents!==void 0:Et(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ro(this.schema,[t],n):cs(this.contents)&&this.contents.set(t,n)}setIn(t,n){ei(t)?this.contents=n:this.contents==null?this.contents=ro(this.schema,Array.from(t),n):cs(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new rn({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new rn({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const s=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Dc(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:s,onAnchor:i,reviver:o}={}){const u={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},h=Cn(this.contents,n??"",u);if(typeof i=="function")for(const{count:d,res:p}of u.anchors.values())i(p,d);return typeof o=="function"?gs(o,{"":h},"",h):h}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return db(this,t)}}function cs(e){if(Et(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Vm extends Error{constructor(t,n,r,s){super(),this.name=t,this.code=r,this.message=s,this.pos=n}}class ti extends Vm{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class mb extends Vm{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Lh=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(u=>t.linePos(u));const{line:r,col:s}=n.linePos[0];n.message+=` at line ${r}, column ${s}`;let i=s-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const u=Math.min(i-39,o.length-79);o="…"+o.substring(u),i-=u-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,i))){let u=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);u.length>80&&(u=u.substring(0,79)+`…
|
||
`),o=u+o}if(/[^ ]/.test(o)){let u=1;const h=n.linePos[1];(h==null?void 0:h.line)===r&&h.col>s&&(u=Math.max(1,Math.min(h.col-s,80-i)));const d=" ".repeat(i)+"^".repeat(u);n.message+=`:
|
||
|
||
${o}
|
||
${d}
|
||
`}};function Ns(e,{flow:t,indicator:n,next:r,offset:s,onError:i,parentIndent:o,startOnNewline:u}){let h=!1,d=u,p=u,b="",v="",k=!1,x=!1,A=null,E=null,M=null,q=null,L=null,O=null,F=null;for(const G of e)switch(x&&(G.type!=="space"&&G.type!=="newline"&&G.type!=="comma"&&i(G.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),x=!1),A&&(d&&G.type!=="comment"&&G.type!=="newline"&&i(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),A=null),G.type){case"space":!t&&(n!=="doc-start"||(r==null?void 0:r.type)!=="flow-collection")&&G.source.includes(" ")&&(A=G),p=!0;break;case"comment":{p||i(G,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Q=G.source.substring(1)||" ";b?b+=v+Q:b=Q,v="",d=!1;break}case"newline":d?b?b+=G.source:(!O||n!=="seq-item-ind")&&(h=!0):v+=G.source,d=!0,k=!0,(E||M)&&(q=G),p=!0;break;case"anchor":E&&i(G,"MULTIPLE_ANCHORS","A node can have at most one anchor"),G.source.endsWith(":")&&i(G.offset+G.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),E=G,F??(F=G.offset),d=!1,p=!1,x=!0;break;case"tag":{M&&i(G,"MULTIPLE_TAGS","A node can have at most one tag"),M=G,F??(F=G.offset),d=!1,p=!1,x=!0;break}case n:(E||M)&&i(G,"BAD_PROP_ORDER",`Anchors and tags must be after the ${G.source} indicator`),O&&i(G,"UNEXPECTED_TOKEN",`Unexpected ${G.source} in ${t??"collection"}`),O=G,d=n==="seq-item-ind"||n==="explicit-key-ind",p=!1;break;case"comma":if(t){L&&i(G,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),L=G,d=!1,p=!1;break}default:i(G,"UNEXPECTED_TOKEN",`Unexpected ${G.type} token`),d=!1,p=!1}const z=e[e.length-1],j=z?z.offset+z.source.length:s;return x&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),A&&(d&&A.indent<=o||(r==null?void 0:r.type)==="block-map"||(r==null?void 0:r.type)==="block-seq")&&i(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:L,found:O,spaceBefore:h,comment:b,hasNewline:k,anchor:E,tag:M,newlineAfterProp:q,end:j,start:F??j}}function _i(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
||
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(_i(t.key)||_i(t.value))return!0}return!1;default:return!0}}function M0(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&_i(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function jm(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const s=typeof r=="function"?r:(i,o)=>i===o||ut(i)&&ut(o)&&i.value===o.value;return t.some(i=>s(i.key,n))}const Rh="All mapping items must start at the same column";function pb({composeNode:e,composeEmptyNode:t},n,r,s,i){var p;const o=(i==null?void 0:i.nodeClass)??Nn,u=new o(n.schema);n.atRoot&&(n.atRoot=!1);let h=r.offset,d=null;for(const b of r.items){const{start:v,key:k,sep:x,value:A}=b,E=Ns(v,{indicator:"explicit-key-ind",next:k??(x==null?void 0:x[0]),offset:h,onError:s,parentIndent:r.indent,startOnNewline:!0}),M=!E.found;if(M){if(k&&(k.type==="block-seq"?s(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in k&&k.indent!==r.indent&&s(h,"BAD_INDENT",Rh)),!E.anchor&&!E.tag&&!x){d=E.end,E.comment&&(u.comment?u.comment+=`
|
||
`+E.comment:u.comment=E.comment);continue}(E.newlineAfterProp||_i(k))&&s(k??v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=E.found)==null?void 0:p.indent)!==r.indent&&s(h,"BAD_INDENT",Rh);n.atKey=!0;const q=E.end,L=k?e(n,k,E,s):t(n,q,v,null,E,s);n.schema.compat&&M0(r.indent,k,s),n.atKey=!1,jm(n,u.items,L)&&s(q,"DUPLICATE_KEY","Map keys must be unique");const O=Ns(x??[],{indicator:"map-value-ind",next:A,offset:L.range[2],onError:s,parentIndent:r.indent,startOnNewline:!k||k.type==="block-scalar"});if(h=O.end,O.found){M&&((A==null?void 0:A.type)==="block-map"&&!O.hasNewline&&s(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&E.start<O.found.offset-1024&&s(L.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const F=A?e(n,A,O,s):t(n,h,x,null,O,s);n.schema.compat&&M0(r.indent,A,s),h=F.range[2];const z=new sn(L,F);n.options.keepSourceTokens&&(z.srcToken=b),u.items.push(z)}else{M&&s(L.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),O.comment&&(L.comment?L.comment+=`
|
||
`+O.comment:L.comment=O.comment);const F=new sn(L);n.options.keepSourceTokens&&(F.srcToken=b),u.items.push(F)}}return d&&d<h&&s(d,"IMPOSSIBLE","Map comment with trailing content"),u.range=[r.offset,h,d??h],u}function gb({composeNode:e,composeEmptyNode:t},n,r,s,i){const o=(i==null?void 0:i.nodeClass)??Xr,u=new o(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let h=r.offset,d=null;for(const{start:p,value:b}of r.items){const v=Ns(p,{indicator:"seq-item-ind",next:b,offset:h,onError:s,parentIndent:r.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||b)(b==null?void 0:b.type)==="block-seq"?s(v.end,"BAD_INDENT","All sequence items must start at the same column"):s(h,"MISSING_CHAR","Sequence item without - indicator");else{d=v.end,v.comment&&(u.comment=v.comment);continue}const k=b?e(n,b,v,s):t(n,v.end,p,null,v,s);n.schema.compat&&M0(r.indent,b,s),h=k.range[2],u.items.push(k)}return u.range=[r.offset,h,d??h],u}function Oi(e,t,n,r){let s="";if(e){let i=!1,o="";for(const u of e){const{source:h,type:d}=u;switch(d){case"space":i=!0;break;case"comment":{n&&!i&&r(u,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=h.substring(1)||" ";s?s+=o+p:s=p,o="";break}case"newline":s&&(o+=h),i=!0;break;default:r(u,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=h.length}}return{comment:s,offset:t}}const Hl="Block collections are not allowed within flow collections",Vl=e=>e&&(e.type==="block-map"||e.type==="block-seq");function yb({composeNode:e,composeEmptyNode:t},n,r,s,i){var E;const o=r.start.source==="{",u=o?"flow map":"flow sequence",h=(i==null?void 0:i.nodeClass)??(o?Nn:Xr),d=new h(n.schema);d.flow=!0;const p=n.atRoot;p&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let b=r.offset+r.start.source.length;for(let M=0;M<r.items.length;++M){const q=r.items[M],{start:L,key:O,sep:F,value:z}=q,j=Ns(L,{flow:u,indicator:"explicit-key-ind",next:O??(F==null?void 0:F[0]),offset:b,onError:s,parentIndent:r.indent,startOnNewline:!1});if(!j.found){if(!j.anchor&&!j.tag&&!F&&!z){M===0&&j.comma?s(j.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`):M<r.items.length-1&&s(j.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${u}`),j.comment&&(d.comment?d.comment+=`
|
||
`+j.comment:d.comment=j.comment),b=j.end;continue}!o&&n.options.strict&&_i(O)&&s(O,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(M===0)j.comma&&s(j.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`);else if(j.comma||s(j.start,"MISSING_CHAR",`Missing , between ${u} items`),j.comment){let G="";e:for(const Q of L)switch(Q.type){case"comma":case"space":break;case"comment":G=Q.source.substring(1);break e;default:break e}if(G){let Q=d.items[d.items.length-1];Ct(Q)&&(Q=Q.value??Q.key),Q.comment?Q.comment+=`
|
||
`+G:Q.comment=G,j.comment=j.comment.substring(G.length+1)}}if(!o&&!F&&!j.found){const G=z?e(n,z,j,s):t(n,j.end,F,null,j,s);d.items.push(G),b=G.range[2],Vl(z)&&s(G.range,"BLOCK_IN_FLOW",Hl)}else{n.atKey=!0;const G=j.end,Q=O?e(n,O,j,s):t(n,G,L,null,j,s);Vl(O)&&s(Q.range,"BLOCK_IN_FLOW",Hl),n.atKey=!1;const ye=Ns(F??[],{flow:u,indicator:"map-value-ind",next:z,offset:Q.range[2],onError:s,parentIndent:r.indent,startOnNewline:!1});if(ye.found){if(!o&&!j.found&&n.options.strict){if(F)for(const he of F){if(he===ye.found)break;if(he.type==="newline"){s(he,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}j.start<ye.found.offset-1024&&s(ye.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else z&&("source"in z&&((E=z.source)==null?void 0:E[0])===":"?s(z,"MISSING_CHAR",`Missing space after : in ${u}`):s(ye.start,"MISSING_CHAR",`Missing , or : between ${u} items`));const ce=z?e(n,z,ye,s):ye.found?t(n,ye.end,F,null,ye,s):null;ce?Vl(z)&&s(ce.range,"BLOCK_IN_FLOW",Hl):ye.comment&&(Q.comment?Q.comment+=`
|
||
`+ye.comment:Q.comment=ye.comment);const te=new sn(Q,ce);if(n.options.keepSourceTokens&&(te.srcToken=q),o){const he=d;jm(n,he.items,Q)&&s(G,"DUPLICATE_KEY","Map keys must be unique"),he.items.push(te)}else{const he=new Nn(n.schema);he.flow=!0,he.items.push(te);const V=(ce??Q).range;he.range=[Q.range[0],V[1],V[2]],d.items.push(he)}b=ce?ce.range[2]:ye.end}}const v=o?"}":"]",[k,...x]=r.end;let A=b;if((k==null?void 0:k.source)===v)A=k.offset+k.source.length;else{const M=u[0].toUpperCase()+u.substring(1),q=p?`${M} must end with a ${v}`:`${M} in block collection must be sufficiently indented and end with a ${v}`;s(b,p?"MISSING_CHAR":"BAD_INDENT",q),k&&k.source.length!==1&&x.unshift(k)}if(x.length>0){const M=Oi(x,A,n.options.strict,s);M.comment&&(d.comment?d.comment+=`
|
||
`+M.comment:d.comment=M.comment),d.range=[r.offset,A,M.offset]}else d.range=[r.offset,A,A];return d}function jl(e,t,n,r,s,i){const o=n.type==="block-map"?pb(e,t,n,r,i):n.type==="block-seq"?gb(e,t,n,r,i):yb(e,t,n,r,i),u=o.constructor;return s==="!"||s===u.tagName?(o.tag=u.tagName,o):(s&&(o.tag=s),o)}function bb(e,t,n,r,s){var v;const i=r.tag,o=i?t.directives.tagName(i.source,k=>s(i,"TAG_RESOLVE_FAILED",k)):null;if(n.type==="block-seq"){const{anchor:k,newlineAfterProp:x}=r,A=k&&i?k.offset>i.offset?k:i:k??i;A&&(!x||x.offset<A.offset)&&s(A,"MISSING_CHAR","Missing newline after block sequence props")}const u=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!i||!o||o==="!"||o===Nn.tagName&&u==="map"||o===Xr.tagName&&u==="seq")return jl(e,t,n,s,o);let h=t.schema.tags.find(k=>k.tag===o&&k.collection===u);if(!h){const k=t.schema.knownTags[o];if((k==null?void 0:k.collection)===u)t.schema.tags.push(Object.assign({},k,{default:!1})),h=k;else return k?s(i,"BAD_COLLECTION_TYPE",`${k.tag} used for ${u} collection, but expects ${k.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),jl(e,t,n,s,o)}const d=jl(e,t,n,s,o,h),p=((v=h.resolve)==null?void 0:v.call(h,d,k=>s(i,"TAG_RESOLVE_FAILED",k),t.options))??d,b=Nt(p)?p:new qe(p);return b.range=d.range,b.tag=o,h!=null&&h.format&&(b.format=h.format),b}function wb(e,t,n){const r=t.offset,s=vb(t,e.options.strict,n);if(!s)return{value:"",type:null,comment:"",range:[r,r,r]};const i=s.mode===">"?qe.BLOCK_FOLDED:qe.BLOCK_LITERAL,o=t.source?_b(t.source):[];let u=o.length;for(let A=o.length-1;A>=0;--A){const E=o[A][1];if(E===""||E==="\r")u=A;else break}if(u===0){const A=s.chomp==="+"&&o.length>0?`
|
||
`.repeat(Math.max(1,o.length-1)):"";let E=r+s.length;return t.source&&(E+=t.source.length),{value:A,type:i,comment:s.comment,range:[r,E,E]}}let h=t.indent+s.indent,d=t.offset+s.length,p=0;for(let A=0;A<u;++A){const[E,M]=o[A];if(M===""||M==="\r")s.indent===0&&E.length>h&&(h=E.length);else{E.length<h&&n(d+E.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(h=E.length),p=A,h===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=E.length+M.length+1}for(let A=o.length-1;A>=u;--A)o[A][0].length>h&&(u=A+1);let b="",v="",k=!1;for(let A=0;A<p;++A)b+=o[A][0].slice(h)+`
|
||
`;for(let A=p;A<u;++A){let[E,M]=o[A];d+=E.length+M.length+1;const q=M[M.length-1]==="\r";if(q&&(M=M.slice(0,-1)),M&&E.length<h){const O=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;n(d-M.length-(q?2:1),"BAD_INDENT",O),E=""}i===qe.BLOCK_LITERAL?(b+=v+E.slice(h)+M,v=`
|
||
`):E.length>h||M[0]===" "?(v===" "?v=`
|
||
`:!k&&v===`
|
||
`&&(v=`
|
||
|
||
`),b+=v+E.slice(h)+M,v=`
|
||
`,k=!0):M===""?v===`
|
||
`?b+=`
|
||
`:v=`
|
||
`:(b+=v+M,v=" ",k=!1)}switch(s.chomp){case"-":break;case"+":for(let A=u;A<o.length;++A)b+=`
|
||
`+o[A][0].slice(h);b[b.length-1]!==`
|
||
`&&(b+=`
|
||
`);break;default:b+=`
|
||
`}const x=r+s.length+t.source.length;return{value:b,type:i,comment:s.comment,range:[r,x,x]}}function vb({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=t[0],i=s[0];let o=0,u="",h=-1;for(let v=1;v<s.length;++v){const k=s[v];if(!u&&(k==="-"||k==="+"))u=k;else{const x=Number(k);!o&&x?o=x:h===-1&&(h=e+v)}}h!==-1&&r(h,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let d=!1,p="",b=s.length;for(let v=1;v<t.length;++v){const k=t[v];switch(k.type){case"space":d=!0;case"newline":b+=k.source.length;break;case"comment":n&&!d&&r(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),b+=k.source.length,p=k.source.substring(1);break;case"error":r(k,"UNEXPECTED_TOKEN",k.message),b+=k.source.length;break;default:{const x=`Unexpected token in block scalar header: ${k.type}`;r(k,"UNEXPECTED_TOKEN",x);const A=k.source;A&&typeof A=="string"&&(b+=A.length)}}}return{mode:i,indent:o,chomp:u,comment:p,length:b}}function _b(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let o=1;o<t.length;o+=2)i.push([t[o],t[o+1]]);return i}function xb(e,t,n){const{offset:r,type:s,source:i,end:o}=e;let u,h;const d=(v,k,x)=>n(r+v,k,x);switch(s){case"scalar":u=qe.PLAIN,h=kb(i,d);break;case"single-quoted-scalar":u=qe.QUOTE_SINGLE,h=Sb(i,d);break;case"double-quoted-scalar":u=qe.QUOTE_DOUBLE,h=Ab(i,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,b=Oi(o,p,t,n);return{value:h,type:u,comment:b.comment,range:[r,p,b.offset]}}function kb(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Wm(e)}function Sb(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Wm(e.slice(1,-1)).replace(/''/g,"'")}function Wm(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
||
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
||
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let s=r[1],i=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===""?i===`
|
||
`?s+=i:i=`
|
||
`:(s+=i+r[1],i=" "),o=n.lastIndex;const u=/[ \t]*(.*)/sy;return u.lastIndex=o,r=u.exec(e),s+i+((r==null?void 0:r[1])??"")}function Ab(e,t){let n="";for(let r=1;r<e.length-1;++r){const s=e[r];if(!(s==="\r"&&e[r+1]===`
|
||
`))if(s===`
|
||
`){const{fold:i,offset:o}=Tb(e,r);n+=i,r=o}else if(s==="\\"){let i=e[++r];const o=Eb[i];if(o)n+=o;else if(i===`
|
||
`)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
|
||
`)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const u={x:2,u:4,U:8}[i];n+=Nb(e,r+1,u,t),r+=u}else{const u=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${u}`),n+=u}}else if(s===" "||s===" "){const i=r;let o=e[r+1];for(;o===" "||o===" ";)o=e[++r+1];o!==`
|
||
`&&!(o==="\r"&&e[r+2]===`
|
||
`)&&(n+=r>i?e.slice(i,r+1):s)}else n+=s}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Tb(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
||
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
||
`);)r===`
|
||
`&&(n+=`
|
||
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Eb={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
||
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Nb(e,t,n,r){const s=e.substr(t,n),o=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(o)){const u=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${u}`),u}return String.fromCodePoint(o)}function Gm(e,t,n,r){const{value:s,type:i,comment:o,range:u}=t.type==="block-scalar"?wb(e,t,r):xb(t,e.options.strict,r),h=n?e.directives.tagName(n.source,b=>r(n,"TAG_RESOLVE_FAILED",b)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[Jn]:h?d=Cb(e.schema,s,h,n,r):t.type==="scalar"?d=Ib(e,s,t,r):d=e.schema[Jn];let p;try{const b=d.resolve(s,v=>r(n??t,"TAG_RESOLVE_FAILED",v),e.options);p=ut(b)?b:new qe(b)}catch(b){const v=b instanceof Error?b.message:String(b);r(n??t,"TAG_RESOLVE_FAILED",v),p=new qe(s)}return p.range=u,p.source=s,i&&(p.type=i),h&&(p.tag=h),d.format&&(p.format=d.format),o&&(p.comment=o),p}function Cb(e,t,n,r,s){var u;if(n==="!")return e[Jn];const i=[];for(const h of e.tags)if(!h.collection&&h.tag===n)if(h.default&&h.test)i.push(h);else return h;for(const h of i)if((u=h.test)!=null&&u.test(t))return h;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(s(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Jn])}function Ib({atKey:e,directives:t,schema:n},r,s,i){const o=n.tags.find(u=>{var h;return(u.default===!0||e&&u.default==="key")&&((h=u.test)==null?void 0:h.test(r))})||n[Jn];if(n.compat){const u=n.compat.find(h=>{var d;return h.default&&((d=h.test)==null?void 0:d.test(r))})??n[Jn];if(o.tag!==u.tag){const h=t.tagString(o.tag),d=t.tagString(u.tag),p=`Value may be parsed as either ${h} or ${d}`;i(s,"TAG_RESOLVE_FAILED",p,!0)}}return o}function Mb(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let s=t[r];switch(s.type){case"space":case"comment":case"newline":e-=s.source.length;continue}for(s=t[++r];(s==null?void 0:s.type)==="space";)e+=s.source.length,s=t[++r];break}}return e}const Ob={composeNode:Km,composeEmptyNode:Pc};function Km(e,t,n,r){const s=e.atKey,{spaceBefore:i,comment:o,anchor:u,tag:h}=n;let d,p=!0;switch(t.type){case"alias":d=Lb(e,t,r),(u||h)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=Gm(e,t,h,r),u&&(d.anchor=u.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=bb(Ob,e,t,n,r),u&&(d.anchor=u.source.substring(1));break;default:{const b=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",b),d=Pc(e,t.offset,void 0,null,n,r),p=!1}}return u&&d.anchor===""&&r(u,"BAD_ALIAS","Anchor cannot be an empty string"),s&&e.options.stringKeys&&(!ut(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&r(h??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(d.spaceBefore=!0),o&&(t.type==="scalar"&&t.source===""?d.comment=o:d.commentBefore=o),e.options.keepSourceTokens&&p&&(d.srcToken=t),d}function Pc(e,t,n,r,{spaceBefore:s,comment:i,anchor:o,tag:u,end:h},d){const p={type:"scalar",offset:Mb(t,n,r),indent:-1,source:""},b=Gm(e,p,u,d);return o&&(b.anchor=o.source.substring(1),b.anchor===""&&d(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(b.spaceBefore=!0),i&&(b.comment=i,b.range[2]=h),b}function Lb({options:e},{offset:t,source:n,end:r},s){const i=new Sc(n.substring(1));i.source===""&&s(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,u=Oi(r,o,e.strict,s);return i.range=[t,o,u.offset],u.comment&&(i.comment=u.comment),i}function Rb(e,t,{offset:n,start:r,value:s,end:i},o){const u=Object.assign({_directives:t},e),h=new Do(void 0,u),d={atKey:!1,atRoot:!0,directives:h.directives,options:h.options,schema:h.schema},p=Ns(r,{indicator:"doc-start",next:s??(i==null?void 0:i[0]),offset:n,onError:o,parentIndent:0,startOnNewline:!0});p.found&&(h.directives.docStart=!0,s&&(s.type==="block-map"||s.type==="block-seq")&&!p.hasNewline&&o(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),h.contents=s?Km(d,s,p,o):Pc(d,p.end,r,null,p,o);const b=h.contents.range[2],v=Oi(i,b,!1,o);return v.comment&&(h.comment=v.comment),h.range=[n,b,v.offset],h}function Ks(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Dh(e){var s;let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const o=e[i];switch(o[0]){case"#":t+=(t===""?"":r?`
|
||
|
||
`:`
|
||
`)+(o.substring(1)||" "),n=!0,r=!1;break;case"%":((s=e[i+1])==null?void 0:s[0])!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Db{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,s,i)=>{const o=Ks(n);i?this.warnings.push(new mb(o,r,s)):this.errors.push(new ti(o,r,s))},this.directives=new rn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:s}=Dh(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
||
${r}`:r;else if(s||t.directives.docStart||!i)t.commentBefore=r;else if(Et(i)&&!i.flow&&i.items.length>0){let o=i.items[0];Ct(o)&&(o=o.key);const u=o.commentBefore;o.commentBefore=u?`${r}
|
||
${u}`:r}else{const o=i.commentBefore;i.commentBefore=o?`${r}
|
||
${o}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Dh(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const s of t)yield*this.next(s);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,s)=>{const i=Ks(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,s)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Rb(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new ti(Ks(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new ti(Ks(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Oi(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
|
||
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new ti(Ks(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),s=new Do(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,n,n],this.decorate(s,!1),yield s}}}const Xm="\uFEFF",Ym="",Jm="",O0="";function Pb(e){switch(e){case Xm:return"byte-order-mark";case Ym:return"doc-mode";case Jm:return"flow-error-end";case O0:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
||
`:case`\r
|
||
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Rn(e){switch(e){case void 0:case" ":case`
|
||
`:case"\r":case" ":return!0;default:return!1}}const Ph=new Set("0123456789ABCDEFabcdef"),$b=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),ka=new Set(",[]{}"),Fb=new Set(` ,[]{}
|
||
\r `),Wl=e=>!e||Fb.has(e);class Bb{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
||
`?!0:n==="\r"?this.buffer[t+1]===`
|
||
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const s=this.buffer[r+t+1];if(s===`
|
||
`||!s&&!this.atEnd)return t+r+1}return n===`
|
||
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Rn(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
||
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Xm&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const i=t[r-1];if(i===" "||i===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const s=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Ym,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&Rn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Rn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Rn(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Wl),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&s[0]!=="#"||r===0&&(s.startsWith("---")||s.startsWith("..."))&&Rn(s[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield Jm,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Wl),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Rn(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let s=r.indexOf(`
|
||
`,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=r.indexOf(`
|
||
`,i)}s!==-1&&(n=s-(r[s-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Rn(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let i=this.pos;r=this.buffer[i];++i)switch(r){case" ":n+=1;break;case`
|
||
`:t=i,n=0;break;case"\r":{const o=this.buffer[i+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
|
||
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(`
|
||
`,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let s=t+1;for(r=this.buffer[s];r===" ";)r=this.buffer[++s];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
|
||
`;)r=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)do{let i=t-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);const u=i;for(;o===" ";)o=this.buffer[--i];if(o===`
|
||
`&&i>=this.pos&&i+1+n>u)t=i;else break}while(!0);return yield O0,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,s;for(;s=this.buffer[++r];)if(s===":"){const i=this.buffer[r+1];if(Rn(i)||t&&ka.has(i))break;n=r}else if(Rn(s)){let i=this.buffer[r+1];if(s==="\r"&&(i===`
|
||
`?(r+=1,s=`
|
||
`,i=this.buffer[r+1]):n=r),i==="#"||t&&ka.has(i))break;if(s===`
|
||
`){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(t&&ka.has(s))break;n=r}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield O0,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Wl))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Rn(n)||t&&ka.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Rn(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if($b.has(n))n=this.buffer[++t];else if(n==="%"&&Ph.has(this.buffer[t+1])&&Ph.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
||
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
||
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class zb{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const s=this.lineStarts[n-1];return{line:n,col:t-s+1}}}}function vr(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function $h(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Qm(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Sa(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function us(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function Fh(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!vr(t.start,"explicit-key-ind")&&!vr(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Qm(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class qb{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Bb,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=Pb(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(t==null?void 0:t.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&Fh(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const s=r.items[r.items.length-1];if(s.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=n;else{Object.assign(s,{key:n,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=r.items[r.items.length-1];s.value?r.items.push({start:[],value:n}):s.value=n;break}case"flow-collection":{const s=r.items[r.items.length-1];!s||s.value?r.items.push({start:[],key:n,sep:[]}):s.sep?s.value=n:Object.assign(s,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const s=n.items[n.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&$h(s.start)===-1&&(n.indent===0||s.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(r.type==="document"?r.end=s.start:r.items.push({start:s.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{$h(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Sa(this.peek(2)),r=us(n);let s;t.end?(s=t.end,s.push(this.sourceToken),delete t.end):s=[this.sourceToken];const i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
||
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
||
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const s="end"in n.value?n.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2],i=(r=s==null?void 0:s.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const s=!this.onKeyLine&&this.indent===t.indent,i=s&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(i&&n.sep&&!n.value){const u=[];for(let h=0;h<n.sep.length;++h){const d=n.sep[h];switch(d.type){case"newline":u.push(h);break;case"space":break;case"comment":d.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(o=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(vr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(Qm(n.key)&&!vr(n.sep,"newline")){const u=us(n.start),h=n.key,d=n.sep;d.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:h,sep:d}]})}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(vr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=us(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?t.items.push({start:o,key:null,sep:[this.sourceToken]}):vr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);i||n.value?(t.items.push({start:o,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){if(u.type==="block-seq"){if(!n.explicitKey&&n.sep&&!vr(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else s&&t.items.push({start:o});this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const s="end"in n.value?n.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2],i=(r=s==null?void 0:s.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||vr(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const s=this.startBlockValue(t);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while((r==null?void 0:r.type)==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:s,sep:[]}):n.sep?this.stack.push(s):Object.assign(n,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const s=Sa(r),i=us(s);Fh(t);const o=t.end.splice(1,t.end.length);o.push(this.sourceToken);const u={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
||
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
||
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Sa(t),r=us(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Sa(t),r=us(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Ub(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new zb||null,prettyErrors:t}}function Hb(e,t={}){const{lineCounter:n,prettyErrors:r}=Ub(t),s=new qb(n==null?void 0:n.addNewLine),i=new Db(t);let o=null;for(const u of i.compose(s.parse(e),!0,e.length))if(!o)o=u;else if(o.options.logLevel!=="silent"){o.errors.push(new ti(u.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(Lh(e,n)),o.warnings.forEach(Lh(e,n))),o}function Vb(e,t,n){let r;const s=Hb(e,n);if(!s)return null;if(s.warnings.forEach(i=>Am(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:r},n))}var Zm={},ep={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(typeof self<"u"?self:i0,function(){return function(){var n={};(function(){n.d=function(l,a){for(var c in a)n.o(a,c)&&!n.o(l,c)&&Object.defineProperty(l,c,{enumerable:!0,get:a[c]})}})(),function(){n.o=function(l,a){return Object.prototype.hasOwnProperty.call(l,a)}}();var r={};n.d(r,{default:function(){return pg}});class s extends Error{constructor(a,c){let f="KaTeX parse error: "+a,m,w;const _=c&&c.loc;if(_&&_.start<=_.end){const T=_.lexer.input;m=_.start,w=_.end,m===T.length?f+=" at end of input: ":f+=" at position "+(m+1)+": ";const I=T.slice(m,w).replace(/[^]/g,"$&̲");let P;m>15?P="…"+T.slice(m-15,m):P=T.slice(0,m);let U;w+15<T.length?U=T.slice(w,w+15)+"…":U=T.slice(w),f+=P+I+U}super(f),this.name="ParseError",Object.setPrototypeOf(this,s.prototype),this.position=m,m!=null&&w!=null&&(this.length=w-m),this.rawMessage=a}}var i=s;const o=/([A-Z])/g,u=l=>l.replace(o,"-$1").toLowerCase(),h={"&":"&",">":">","<":"<",'"':""","'":"'"},d=/[&><"']/g,p=l=>String(l).replace(d,a=>h[a]),b=l=>l.type==="ordgroup"||l.type==="color"?l.body.length===1?b(l.body[0]):l:l.type==="font"?b(l.body):l,v=new Set(["mathord","textord","atom"]),k=l=>v.has(b(l).type),x=l=>{const a=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(l);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},A={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:l=>"#"+l},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:(l,a)=>(a.push(l),a)},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:l=>Math.max(0,l),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:l=>Math.max(0,l),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:l=>Math.max(0,l),cli:"-e, --max-expand <n>",cliProcessor:l=>l==="Infinity"?1/0:parseInt(l)},globalGroup:{type:"boolean",cli:!1}};function E(l){if("default"in l)return l.default;const a=l.type,c=Array.isArray(a)?a[0]:a;if(typeof c!="string")return c.enum[0];switch(c){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class M{constructor(a){a===void 0&&(a={}),a=a||{};for(const c of Object.keys(A)){const f=A[c],m=a[c];this[c]=m!==void 0?f.processor?f.processor(m):m:E(f)}}reportNonstrict(a,c,f){let m=this.strict;if(typeof m=="function"&&(m=m(a,c,f)),!(!m||m==="ignore")){if(m===!0||m==="error")throw new i("LaTeX-incompatible input and strict mode is set to 'error': "+(c+" ["+a+"]"),f);m==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(c+" ["+a+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+m+"': "+c+" ["+a+"]"))}}useStrictBehavior(a,c,f){let m=this.strict;if(typeof m=="function")try{m=m(a,c,f)}catch{m="error"}return!m||m==="ignore"?!1:m===!0||m==="error"?!0:m==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(c+" ["+a+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+m+"': "+c+" ["+a+"]")),!1)}isTrusted(a){if("url"in a&&a.url&&!a.protocol){const f=x(a.url);if(f==null)return!1;a.protocol=f}return!!(typeof this.trust=="function"?this.trust(a):this.trust)}}class q{constructor(a,c,f){this.id=a,this.size=c,this.cramped=f}sup(){return ce[te[this.id]]}sub(){return ce[he[this.id]]}fracNum(){return ce[V[this.id]]}fracDen(){return ce[oe[this.id]]}cramp(){return ce[Y[this.id]]}text(){return ce[fe[this.id]]}isTight(){return this.size>=2}}const L=0,O=1,F=2,z=3,j=4,G=5,Q=6,ye=7,ce=[new q(L,0,!1),new q(O,0,!0),new q(F,1,!1),new q(z,1,!0),new q(j,2,!1),new q(G,2,!0),new q(Q,3,!1),new q(ye,3,!0)],te=[j,G,j,G,Q,ye,Q,ye],he=[G,G,G,G,ye,ye,ye,ye],V=[F,z,j,G,Q,ye,Q,ye],oe=[z,z,G,G,ye,ye,ye,ye],Y=[O,O,z,z,G,G,ye,ye],fe=[L,O,F,z,F,z,F,z];var ee={DISPLAY:ce[L],TEXT:ce[F],SCRIPT:ce[j],SCRIPTSCRIPT:ce[Q]};const Ae=[{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 Oe(l){for(let a=0;a<Ae.length;a++){const c=Ae[a];for(let f=0;f<c.blocks.length;f++){const m=c.blocks[f];if(l>=m[0]&&l<=m[1])return c.name}}return null}const Te=[];Ae.forEach(l=>l.blocks.forEach(a=>Te.push(...a)));function H(l){for(let a=0;a<Te.length;a+=2)if(l>=Te[a]&&l<=Te[a+1])return!0;return!1}const me=80,Ee=function(l,a){return"M95,"+(622+l+a)+`
|
||
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
||
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
||
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
|
||
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
||
c69,-144,104.5,-217.7,106.5,-221
|
||
l`+l/2.075+" -"+l+`
|
||
c5.3,-9.3,12,-14,20,-14
|
||
H400000v`+(40+l)+`H845.2724
|
||
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
||
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
||
M`+(834+l)+" "+a+"h400000v"+(40+l)+"h-400000z"},Je=function(l,a){return"M263,"+(601+l+a)+`c0.7,0,18,39.7,52,119
|
||
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
||
c340,-704.7,510.7,-1060.3,512,-1067
|
||
l`+l/2.084+" -"+l+`
|
||
c4.7,-7.3,11,-11,19,-11
|
||
H40000v`+(40+l)+`H1012.3
|
||
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
||
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
|
||
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
||
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
||
M`+(1001+l)+" "+a+"h400000v"+(40+l)+"h-400000z"},_t=function(l,a){return"M983 "+(10+l+a)+`
|
||
l`+l/3.13+" -"+l+`
|
||
c4,-6.7,10,-10,18,-10 H400000v`+(40+l)+`
|
||
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
|
||
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
|
||
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
||
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
||
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
||
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
||
M`+(1001+l)+" "+a+"h400000v"+(40+l)+"h-400000z"},xt=function(l,a){return"M424,"+(2398+l+a)+`
|
||
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
||
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
|
||
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
||
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
||
l`+l/4.223+" -"+l+`c4,-6.7,10,-10,18,-10 H400000
|
||
v`+(40+l)+`H1014.6
|
||
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
||
c-2,6,-10,9,-24,9
|
||
c-8,0,-12,-0.7,-12,-2z M`+(1001+l)+" "+a+`
|
||
h400000v`+(40+l)+"h-400000z"},Pt=function(l,a){return"M473,"+(2713+l+a)+`
|
||
c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
|
||
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`H1017.7
|
||
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
||
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
|
||
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
|
||
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
||
606zM`+(1001+l)+" "+a+"h400000v"+(40+l)+"H1017.7z"},dn=function(l){const a=l/2;return"M400000 "+l+" H0 L"+a+" 0 l65 45 L145 "+(l-80)+" H400000z"},qn=function(l,a,c){const f=c-54-a-l;return"M702 "+(l+a)+"H400000"+(40+l)+`
|
||
H742v`+f+`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
|
||
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
||
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
||
219 661 l218 661zM702 `+a+"H400000v"+(40+l)+"H742z"},Ne=function(l,a,c){a=1e3*a;let f="";switch(l){case"sqrtMain":f=Ee(a,me);break;case"sqrtSize1":f=Je(a,me);break;case"sqrtSize2":f=_t(a,me);break;case"sqrtSize3":f=xt(a,me);break;case"sqrtSize4":f=Pt(a,me);break;case"sqrtTall":f=qn(a,me,c)}return f},ge=function(l,a){switch(l){case"⎜":return"M291 0 H417 V"+a+" H291z M291 0 H417 V"+a+" H291z";case"∣":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z";case"∥":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z"+("M367 0 H410 V"+a+" H367z M367 0 H410 V"+a+" H367z");case"⎟":return"M457 0 H583 V"+a+" H457z M457 0 H583 V"+a+" H457z";case"⎢":return"M319 0 H403 V"+a+" H319z M319 0 H403 V"+a+" H319z";case"⎥":return"M263 0 H347 V"+a+" H263z M263 0 H347 V"+a+" H263z";case"⎪":return"M384 0 H504 V"+a+" H384z M384 0 H504 V"+a+" H384z";case"⏐":return"M312 0 H355 V"+a+" H312z M312 0 H355 V"+a+" H312z";case"‖":return"M257 0 H300 V"+a+" H257z M257 0 H300 V"+a+" H257z"+("M478 0 H521 V"+a+" H478z M478 0 H521 V"+a+" H478z");default:return""}},kt={doubleleftarrow:`M262 157
|
||
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
|
||
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
|
||
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
|
||
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
|
||
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
|
||
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
||
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
||
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
||
-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
|
||
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
|
||
-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
|
||
-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
|
||
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
||
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
|
||
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
||
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
|
||
-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
|
||
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
|
||
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
|
||
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
|
||
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
||
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
||
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
|
||
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
|
||
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
||
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
||
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
|
||
435 0h399565z`,leftgroupunder:`M400000 262
|
||
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
|
||
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
||
-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
|
||
-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
|
||
-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
|
||
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
|
||
-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
|
||
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
||
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
||
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
||
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
|
||
-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
|
||
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
|
||
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
||
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
|
||
-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
|
||
-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
|
||
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
||
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
||
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 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-70-101l-7-8h399905v-40H95l7-8
|
||
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
|
||
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
||
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
||
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
|
||
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
||
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
|
||
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
||
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
|
||
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
||
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
|
||
-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
|
||
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
||
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
|
||
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
|
||
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
||
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
||
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
|
||
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
||
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
|
||
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
|
||
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
||
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
||
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
|
||
-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
|
||
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
|
||
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
|
||
-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
|
||
-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
|
||
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
||
-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
|
||
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
|
||
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
|
||
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
||
-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
|
||
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
|
||
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
|
||
-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
|
||
-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
|
||
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
|
||
-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
|
||
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
|
||
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
|
||
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
|
||
-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
|
||
-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
|
||
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
|
||
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
|
||
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
||
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
|
||
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
|
||
-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
|
||
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
||
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
||
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
||
-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
|
||
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
||
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
|
||
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
||
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
||
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
||
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
|
||
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
|
||
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
|
||
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
||
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
||
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
|
||
-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
|
||
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
|
||
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
||
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
||
-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
|
||
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
||
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
|
||
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
|
||
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
||
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
||
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
||
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
||
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
||
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
||
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
||
-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
|
||
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
||
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
|
||
-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
|
||
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
||
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
||
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
|
||
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
|
||
-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
|
||
-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
|
||
-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,
|
||
-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,
|
||
-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,
|
||
-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,
|
||
-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
|
||
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
||
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
|
||
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
|
||
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
|
||
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
|
||
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
||
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-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 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 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-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
|
||
-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
|
||
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
||
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
||
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
|
||
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
||
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
||
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
||
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,
|
||
-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
|
||
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
|
||
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
|
||
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,
|
||
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,
|
||
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
||
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
|
||
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,
|
||
-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
|
||
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
|
||
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ue=function(l,a){switch(l){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 h347 v-84
|
||
H403z M403 1759 V0 H319 V1759 v`+a+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v1759 H0 v84 H347z
|
||
M347 1759 V0 H263 V1759 v`+a+" v1759 h84z";case"vert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
||
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+" v585 h43z";case"doublevert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
||
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+` v585 h43z
|
||
M367 15 v585 v`+a+` v585 c2.667,10,9.667,15,21,15
|
||
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+a+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+a+` v1715 h263 v84 H319z
|
||
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+a+` v1799 H0 v-84 H319z
|
||
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v602 h84z
|
||
M403 1759 V0 H319 V1759 v`+a+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v602 h84z
|
||
M347 1759 V0 h-84 V1759 v`+a+" 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
|
||
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,
|
||
-36,557 l0,`+(a+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
||
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
|
||
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,
|
||
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
||
l0,-`+(a+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
||
-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,
|
||
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
||
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(a+9)+`
|
||
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
|
||
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
|
||
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
|
||
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
||
l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
||
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Be{constructor(a){this.children=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(a){return this.classes.includes(a)}toNode(){const a=document.createDocumentFragment();for(let c=0;c<this.children.length;c++)a.appendChild(this.children[c].toNode());return a}toMarkup(){let a="";for(let c=0;c<this.children.length;c++)a+=this.children[c].toMarkup();return a}toText(){const a=c=>c.toText();return this.children.map(a).join("")}}const mn={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},Mn={ex:!0,em:!0,mu:!0},vn=function(l){return typeof l!="string"&&(l=l.unit),l in mn||l in Mn||l==="ex"},rt=function(l,a){let c;if(l.unit in mn)c=mn[l.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(l.unit==="mu")c=a.fontMetrics().cssEmPerMu;else{let f;if(a.style.isTight()?f=a.havingStyle(a.style.text()):f=a,l.unit==="ex")c=f.fontMetrics().xHeight;else if(l.unit==="em")c=f.fontMetrics().quad;else throw new i("Invalid unit: '"+l.unit+"'");f!==a&&(c*=f.sizeMultiplier/a.sizeMultiplier)}return Math.min(l.number*c,a.maxSize)},C=function(l){return+l.toFixed(4)+"em"},$=function(l){return l.filter(a=>a).join(" ")},Z=function(l,a,c){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=c||{},a){a.style.isTight()&&this.classes.push("mtight");const f=a.getColor();f&&(this.style.color=f)}},_e=function(l){const a=document.createElement(l);a.className=$(this.classes);for(const c of Object.keys(this.style))a.style[c]=this.style[c];for(const c of Object.keys(this.attributes))a.setAttribute(c,this.attributes[c]);for(let c=0;c<this.children.length;c++)a.appendChild(this.children[c].toNode());return a},Xe=/[\s"'>/=\x00-\x1f]/,Pe=function(l){let a="<"+l;this.classes.length&&(a+=' class="'+p($(this.classes))+'"');let c="";for(const f of Object.keys(this.style))c+=u(f)+":"+this.style[f]+";";c&&(a+=' style="'+p(c)+'"');for(const f of Object.keys(this.attributes)){if(Xe.test(f))throw new i("Invalid attribute name '"+f+"'");a+=" "+f+'="'+p(this.attributes[f])+'"'}a+=">";for(let f=0;f<this.children.length;f++)a+=this.children[f].toMarkup();return a+="</"+l+">",a};class J{constructor(a,c,f,m){Z.call(this,a,f,m),this.children=c||[]}setAttribute(a,c){this.attributes[a]=c}hasClass(a){return this.classes.includes(a)}toNode(){return _e.call(this,"span")}toMarkup(){return Pe.call(this,"span")}}class se{constructor(a,c,f,m){Z.call(this,c,m),this.children=f||[],this.setAttribute("href",a)}setAttribute(a,c){this.attributes[a]=c}hasClass(a){return this.classes.includes(a)}toNode(){return _e.call(this,"a")}toMarkup(){return Pe.call(this,"a")}}class st{constructor(a,c,f){this.alt=c,this.src=a,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=f}hasClass(a){return this.classes.includes(a)}toNode(){const a=document.createElement("img");a.src=this.src,a.alt=this.alt,a.className="mord";for(const c of Object.keys(this.style))a.style[c]=this.style[c];return a}toMarkup(){let a='<img src="'+p(this.src)+'"'+(' alt="'+p(this.alt)+'"'),c="";for(const f of Object.keys(this.style))c+=u(f)+":"+this.style[f]+";";return c&&(a+=' style="'+p(c)+'"'),a+="'/>",a}}const gt={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class vt{constructor(a,c,f,m,w,_,T,I){this.text=a,this.height=c||0,this.depth=f||0,this.italic=m||0,this.skew=w||0,this.width=_||0,this.classes=T||[],this.style=I||{},this.maxFontSize=0;const P=Oe(this.text.charCodeAt(0));P&&this.classes.push(P+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=gt[this.text])}hasClass(a){return this.classes.includes(a)}toNode(){const a=document.createTextNode(this.text);let c=null;this.italic>0&&(c=document.createElement("span"),c.style.marginRight=C(this.italic)),this.classes.length>0&&(c=c||document.createElement("span"),c.className=$(this.classes));for(const f of Object.keys(this.style))c=c||document.createElement("span"),c.style[f]=this.style[f];return c?(c.appendChild(a),c):a}toMarkup(){let a=!1,c="<span";this.classes.length&&(a=!0,c+=' class="',c+=p($(this.classes)),c+='"');let f="";this.italic>0&&(f+="margin-right:"+this.italic+"em;");for(const w of Object.keys(this.style))f+=u(w)+":"+this.style[w]+";";f&&(a=!0,c+=' style="'+p(f)+'"');const m=p(this.text);return a?(c+=">",c+=m,c+="</span>",c):m}}class an{constructor(a,c){this.children=a||[],this.attributes=c||{}}toNode(){const c=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const f of Object.keys(this.attributes))c.setAttribute(f,this.attributes[f]);for(let f=0;f<this.children.length;f++)c.appendChild(this.children[f].toNode());return c}toMarkup(){let a='<svg xmlns="http://www.w3.org/2000/svg"';for(const c of Object.keys(this.attributes))a+=" "+c+'="'+p(this.attributes[c])+'"';a+=">";for(let c=0;c<this.children.length;c++)a+=this.children[c].toMarkup();return a+="</svg>",a}}class Qt{constructor(a,c){this.pathName=a,this.alternate=c}toNode(){const c=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?c.setAttribute("d",this.alternate):c.setAttribute("d",kt[this.pathName]),c}toMarkup(){return this.alternate?'<path d="'+p(this.alternate)+'"/>':'<path d="'+p(kt[this.pathName])+'"/>'}}class qs{constructor(a){this.attributes=a||{}}toNode(){const c=document.createElementNS("http://www.w3.org/2000/svg","line");for(const f of Object.keys(this.attributes))c.setAttribute(f,this.attributes[f]);return c}toMarkup(){let a="<line";for(const c of Object.keys(this.attributes))a+=" "+c+'="'+p(this.attributes[c])+'"';return a+="/>",a}}function Zc(l){if(l instanceof vt)return l;throw new Error("Expected symbolNode but got "+String(l)+".")}function i4(l){if(l instanceof J)return l;throw new Error("Expected span<HtmlDomNode> but got "+String(l)+".")}const a4=l=>l instanceof J||l instanceof se||l instanceof Be;var Un={"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]}};const zi={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]},eu={Å:"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 o4(l,a){Un[l]=a}function jo(l,a,c){if(!Un[a])throw new Error("Font metrics not found for font: "+a+".");let f=l.charCodeAt(0),m=Un[a][f];if(!m&&l[0]in eu&&(f=eu[l[0]].charCodeAt(0),m=Un[a][f]),!m&&c==="text"&&H(f)&&(m=Un[a][77]),m)return{depth:m[0],height:m[1],italic:m[2],skew:m[3],width:m[4]}}const Wo={};function l4(l){let a;if(l>=5?a=0:l>=3?a=1:a=2,!Wo[a]){const c=Wo[a]={cssEmPerMu:zi.quad[a]/18};for(const f in zi)zi.hasOwnProperty(f)&&(c[f]=zi[f][a])}return Wo[a]}const c4={bin:1,close:1,inner:1,open:1,punct:1,rel:1},u4={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},qi={math:{},text:{}};var St=qi;function g(l,a,c,f,m,w){qi[l][m]={font:a,group:c,replace:f},w&&f&&(qi[l][f]=qi[l][m])}const y="math",re="text",S="main",R="ams",pt="accent-token",ve="bin",Zt="close",ts="inner",Ce="mathord",Mt="op-token",pn="open",Ui="punct",D="rel",Zn="spacing",B="textord";g(y,S,D,"≡","\\equiv",!0),g(y,S,D,"≺","\\prec",!0),g(y,S,D,"≻","\\succ",!0),g(y,S,D,"∼","\\sim",!0),g(y,S,D,"⊥","\\perp"),g(y,S,D,"⪯","\\preceq",!0),g(y,S,D,"⪰","\\succeq",!0),g(y,S,D,"≃","\\simeq",!0),g(y,S,D,"∣","\\mid",!0),g(y,S,D,"≪","\\ll",!0),g(y,S,D,"≫","\\gg",!0),g(y,S,D,"≍","\\asymp",!0),g(y,S,D,"∥","\\parallel"),g(y,S,D,"⋈","\\bowtie",!0),g(y,S,D,"⌣","\\smile",!0),g(y,S,D,"⊑","\\sqsubseteq",!0),g(y,S,D,"⊒","\\sqsupseteq",!0),g(y,S,D,"≐","\\doteq",!0),g(y,S,D,"⌢","\\frown",!0),g(y,S,D,"∋","\\ni",!0),g(y,S,D,"∝","\\propto",!0),g(y,S,D,"⊢","\\vdash",!0),g(y,S,D,"⊣","\\dashv",!0),g(y,S,D,"∋","\\owns"),g(y,S,Ui,".","\\ldotp"),g(y,S,Ui,"⋅","\\cdotp"),g(y,S,B,"#","\\#"),g(re,S,B,"#","\\#"),g(y,S,B,"&","\\&"),g(re,S,B,"&","\\&"),g(y,S,B,"ℵ","\\aleph",!0),g(y,S,B,"∀","\\forall",!0),g(y,S,B,"ℏ","\\hbar",!0),g(y,S,B,"∃","\\exists",!0),g(y,S,B,"∇","\\nabla",!0),g(y,S,B,"♭","\\flat",!0),g(y,S,B,"ℓ","\\ell",!0),g(y,S,B,"♮","\\natural",!0),g(y,S,B,"♣","\\clubsuit",!0),g(y,S,B,"℘","\\wp",!0),g(y,S,B,"♯","\\sharp",!0),g(y,S,B,"♢","\\diamondsuit",!0),g(y,S,B,"ℜ","\\Re",!0),g(y,S,B,"♡","\\heartsuit",!0),g(y,S,B,"ℑ","\\Im",!0),g(y,S,B,"♠","\\spadesuit",!0),g(y,S,B,"§","\\S",!0),g(re,S,B,"§","\\S"),g(y,S,B,"¶","\\P",!0),g(re,S,B,"¶","\\P"),g(y,S,B,"†","\\dag"),g(re,S,B,"†","\\dag"),g(re,S,B,"†","\\textdagger"),g(y,S,B,"‡","\\ddag"),g(re,S,B,"‡","\\ddag"),g(re,S,B,"‡","\\textdaggerdbl"),g(y,S,Zt,"⎱","\\rmoustache",!0),g(y,S,pn,"⎰","\\lmoustache",!0),g(y,S,Zt,"⟯","\\rgroup",!0),g(y,S,pn,"⟮","\\lgroup",!0),g(y,S,ve,"∓","\\mp",!0),g(y,S,ve,"⊖","\\ominus",!0),g(y,S,ve,"⊎","\\uplus",!0),g(y,S,ve,"⊓","\\sqcap",!0),g(y,S,ve,"∗","\\ast"),g(y,S,ve,"⊔","\\sqcup",!0),g(y,S,ve,"◯","\\bigcirc",!0),g(y,S,ve,"∙","\\bullet",!0),g(y,S,ve,"‡","\\ddagger"),g(y,S,ve,"≀","\\wr",!0),g(y,S,ve,"⨿","\\amalg"),g(y,S,ve,"&","\\And"),g(y,S,D,"⟵","\\longleftarrow",!0),g(y,S,D,"⇐","\\Leftarrow",!0),g(y,S,D,"⟸","\\Longleftarrow",!0),g(y,S,D,"⟶","\\longrightarrow",!0),g(y,S,D,"⇒","\\Rightarrow",!0),g(y,S,D,"⟹","\\Longrightarrow",!0),g(y,S,D,"↔","\\leftrightarrow",!0),g(y,S,D,"⟷","\\longleftrightarrow",!0),g(y,S,D,"⇔","\\Leftrightarrow",!0),g(y,S,D,"⟺","\\Longleftrightarrow",!0),g(y,S,D,"↦","\\mapsto",!0),g(y,S,D,"⟼","\\longmapsto",!0),g(y,S,D,"↗","\\nearrow",!0),g(y,S,D,"↩","\\hookleftarrow",!0),g(y,S,D,"↪","\\hookrightarrow",!0),g(y,S,D,"↘","\\searrow",!0),g(y,S,D,"↼","\\leftharpoonup",!0),g(y,S,D,"⇀","\\rightharpoonup",!0),g(y,S,D,"↙","\\swarrow",!0),g(y,S,D,"↽","\\leftharpoondown",!0),g(y,S,D,"⇁","\\rightharpoondown",!0),g(y,S,D,"↖","\\nwarrow",!0),g(y,S,D,"⇌","\\rightleftharpoons",!0),g(y,R,D,"≮","\\nless",!0),g(y,R,D,"","\\@nleqslant"),g(y,R,D,"","\\@nleqq"),g(y,R,D,"⪇","\\lneq",!0),g(y,R,D,"≨","\\lneqq",!0),g(y,R,D,"","\\@lvertneqq"),g(y,R,D,"⋦","\\lnsim",!0),g(y,R,D,"⪉","\\lnapprox",!0),g(y,R,D,"⊀","\\nprec",!0),g(y,R,D,"⋠","\\npreceq",!0),g(y,R,D,"⋨","\\precnsim",!0),g(y,R,D,"⪹","\\precnapprox",!0),g(y,R,D,"≁","\\nsim",!0),g(y,R,D,"","\\@nshortmid"),g(y,R,D,"∤","\\nmid",!0),g(y,R,D,"⊬","\\nvdash",!0),g(y,R,D,"⊭","\\nvDash",!0),g(y,R,D,"⋪","\\ntriangleleft"),g(y,R,D,"⋬","\\ntrianglelefteq",!0),g(y,R,D,"⊊","\\subsetneq",!0),g(y,R,D,"","\\@varsubsetneq"),g(y,R,D,"⫋","\\subsetneqq",!0),g(y,R,D,"","\\@varsubsetneqq"),g(y,R,D,"≯","\\ngtr",!0),g(y,R,D,"","\\@ngeqslant"),g(y,R,D,"","\\@ngeqq"),g(y,R,D,"⪈","\\gneq",!0),g(y,R,D,"≩","\\gneqq",!0),g(y,R,D,"","\\@gvertneqq"),g(y,R,D,"⋧","\\gnsim",!0),g(y,R,D,"⪊","\\gnapprox",!0),g(y,R,D,"⊁","\\nsucc",!0),g(y,R,D,"⋡","\\nsucceq",!0),g(y,R,D,"⋩","\\succnsim",!0),g(y,R,D,"⪺","\\succnapprox",!0),g(y,R,D,"≆","\\ncong",!0),g(y,R,D,"","\\@nshortparallel"),g(y,R,D,"∦","\\nparallel",!0),g(y,R,D,"⊯","\\nVDash",!0),g(y,R,D,"⋫","\\ntriangleright"),g(y,R,D,"⋭","\\ntrianglerighteq",!0),g(y,R,D,"","\\@nsupseteqq"),g(y,R,D,"⊋","\\supsetneq",!0),g(y,R,D,"","\\@varsupsetneq"),g(y,R,D,"⫌","\\supsetneqq",!0),g(y,R,D,"","\\@varsupsetneqq"),g(y,R,D,"⊮","\\nVdash",!0),g(y,R,D,"⪵","\\precneqq",!0),g(y,R,D,"⪶","\\succneqq",!0),g(y,R,D,"","\\@nsubseteqq"),g(y,R,ve,"⊴","\\unlhd"),g(y,R,ve,"⊵","\\unrhd"),g(y,R,D,"↚","\\nleftarrow",!0),g(y,R,D,"↛","\\nrightarrow",!0),g(y,R,D,"⇍","\\nLeftarrow",!0),g(y,R,D,"⇏","\\nRightarrow",!0),g(y,R,D,"↮","\\nleftrightarrow",!0),g(y,R,D,"⇎","\\nLeftrightarrow",!0),g(y,R,D,"△","\\vartriangle"),g(y,R,B,"ℏ","\\hslash"),g(y,R,B,"▽","\\triangledown"),g(y,R,B,"◊","\\lozenge"),g(y,R,B,"Ⓢ","\\circledS"),g(y,R,B,"®","\\circledR"),g(re,R,B,"®","\\circledR"),g(y,R,B,"∡","\\measuredangle",!0),g(y,R,B,"∄","\\nexists"),g(y,R,B,"℧","\\mho"),g(y,R,B,"Ⅎ","\\Finv",!0),g(y,R,B,"⅁","\\Game",!0),g(y,R,B,"‵","\\backprime"),g(y,R,B,"▲","\\blacktriangle"),g(y,R,B,"▼","\\blacktriangledown"),g(y,R,B,"■","\\blacksquare"),g(y,R,B,"⧫","\\blacklozenge"),g(y,R,B,"★","\\bigstar"),g(y,R,B,"∢","\\sphericalangle",!0),g(y,R,B,"∁","\\complement",!0),g(y,R,B,"ð","\\eth",!0),g(re,S,B,"ð","ð"),g(y,R,B,"╱","\\diagup"),g(y,R,B,"╲","\\diagdown"),g(y,R,B,"□","\\square"),g(y,R,B,"□","\\Box"),g(y,R,B,"◊","\\Diamond"),g(y,R,B,"¥","\\yen",!0),g(re,R,B,"¥","\\yen",!0),g(y,R,B,"✓","\\checkmark",!0),g(re,R,B,"✓","\\checkmark"),g(y,R,B,"ℶ","\\beth",!0),g(y,R,B,"ℸ","\\daleth",!0),g(y,R,B,"ℷ","\\gimel",!0),g(y,R,B,"ϝ","\\digamma",!0),g(y,R,B,"ϰ","\\varkappa"),g(y,R,pn,"┌","\\@ulcorner",!0),g(y,R,Zt,"┐","\\@urcorner",!0),g(y,R,pn,"└","\\@llcorner",!0),g(y,R,Zt,"┘","\\@lrcorner",!0),g(y,R,D,"≦","\\leqq",!0),g(y,R,D,"⩽","\\leqslant",!0),g(y,R,D,"⪕","\\eqslantless",!0),g(y,R,D,"≲","\\lesssim",!0),g(y,R,D,"⪅","\\lessapprox",!0),g(y,R,D,"≊","\\approxeq",!0),g(y,R,ve,"⋖","\\lessdot"),g(y,R,D,"⋘","\\lll",!0),g(y,R,D,"≶","\\lessgtr",!0),g(y,R,D,"⋚","\\lesseqgtr",!0),g(y,R,D,"⪋","\\lesseqqgtr",!0),g(y,R,D,"≑","\\doteqdot"),g(y,R,D,"≓","\\risingdotseq",!0),g(y,R,D,"≒","\\fallingdotseq",!0),g(y,R,D,"∽","\\backsim",!0),g(y,R,D,"⋍","\\backsimeq",!0),g(y,R,D,"⫅","\\subseteqq",!0),g(y,R,D,"⋐","\\Subset",!0),g(y,R,D,"⊏","\\sqsubset",!0),g(y,R,D,"≼","\\preccurlyeq",!0),g(y,R,D,"⋞","\\curlyeqprec",!0),g(y,R,D,"≾","\\precsim",!0),g(y,R,D,"⪷","\\precapprox",!0),g(y,R,D,"⊲","\\vartriangleleft"),g(y,R,D,"⊴","\\trianglelefteq"),g(y,R,D,"⊨","\\vDash",!0),g(y,R,D,"⊪","\\Vvdash",!0),g(y,R,D,"⌣","\\smallsmile"),g(y,R,D,"⌢","\\smallfrown"),g(y,R,D,"≏","\\bumpeq",!0),g(y,R,D,"≎","\\Bumpeq",!0),g(y,R,D,"≧","\\geqq",!0),g(y,R,D,"⩾","\\geqslant",!0),g(y,R,D,"⪖","\\eqslantgtr",!0),g(y,R,D,"≳","\\gtrsim",!0),g(y,R,D,"⪆","\\gtrapprox",!0),g(y,R,ve,"⋗","\\gtrdot"),g(y,R,D,"⋙","\\ggg",!0),g(y,R,D,"≷","\\gtrless",!0),g(y,R,D,"⋛","\\gtreqless",!0),g(y,R,D,"⪌","\\gtreqqless",!0),g(y,R,D,"≖","\\eqcirc",!0),g(y,R,D,"≗","\\circeq",!0),g(y,R,D,"≜","\\triangleq",!0),g(y,R,D,"∼","\\thicksim"),g(y,R,D,"≈","\\thickapprox"),g(y,R,D,"⫆","\\supseteqq",!0),g(y,R,D,"⋑","\\Supset",!0),g(y,R,D,"⊐","\\sqsupset",!0),g(y,R,D,"≽","\\succcurlyeq",!0),g(y,R,D,"⋟","\\curlyeqsucc",!0),g(y,R,D,"≿","\\succsim",!0),g(y,R,D,"⪸","\\succapprox",!0),g(y,R,D,"⊳","\\vartriangleright"),g(y,R,D,"⊵","\\trianglerighteq"),g(y,R,D,"⊩","\\Vdash",!0),g(y,R,D,"∣","\\shortmid"),g(y,R,D,"∥","\\shortparallel"),g(y,R,D,"≬","\\between",!0),g(y,R,D,"⋔","\\pitchfork",!0),g(y,R,D,"∝","\\varpropto"),g(y,R,D,"◀","\\blacktriangleleft"),g(y,R,D,"∴","\\therefore",!0),g(y,R,D,"∍","\\backepsilon"),g(y,R,D,"▶","\\blacktriangleright"),g(y,R,D,"∵","\\because",!0),g(y,R,D,"⋘","\\llless"),g(y,R,D,"⋙","\\gggtr"),g(y,R,ve,"⊲","\\lhd"),g(y,R,ve,"⊳","\\rhd"),g(y,R,D,"≂","\\eqsim",!0),g(y,S,D,"⋈","\\Join"),g(y,R,D,"≑","\\Doteq",!0),g(y,R,ve,"∔","\\dotplus",!0),g(y,R,ve,"∖","\\smallsetminus"),g(y,R,ve,"⋒","\\Cap",!0),g(y,R,ve,"⋓","\\Cup",!0),g(y,R,ve,"⩞","\\doublebarwedge",!0),g(y,R,ve,"⊟","\\boxminus",!0),g(y,R,ve,"⊞","\\boxplus",!0),g(y,R,ve,"⋇","\\divideontimes",!0),g(y,R,ve,"⋉","\\ltimes",!0),g(y,R,ve,"⋊","\\rtimes",!0),g(y,R,ve,"⋋","\\leftthreetimes",!0),g(y,R,ve,"⋌","\\rightthreetimes",!0),g(y,R,ve,"⋏","\\curlywedge",!0),g(y,R,ve,"⋎","\\curlyvee",!0),g(y,R,ve,"⊝","\\circleddash",!0),g(y,R,ve,"⊛","\\circledast",!0),g(y,R,ve,"⋅","\\centerdot"),g(y,R,ve,"⊺","\\intercal",!0),g(y,R,ve,"⋒","\\doublecap"),g(y,R,ve,"⋓","\\doublecup"),g(y,R,ve,"⊠","\\boxtimes",!0),g(y,R,D,"⇢","\\dashrightarrow",!0),g(y,R,D,"⇠","\\dashleftarrow",!0),g(y,R,D,"⇇","\\leftleftarrows",!0),g(y,R,D,"⇆","\\leftrightarrows",!0),g(y,R,D,"⇚","\\Lleftarrow",!0),g(y,R,D,"↞","\\twoheadleftarrow",!0),g(y,R,D,"↢","\\leftarrowtail",!0),g(y,R,D,"↫","\\looparrowleft",!0),g(y,R,D,"⇋","\\leftrightharpoons",!0),g(y,R,D,"↶","\\curvearrowleft",!0),g(y,R,D,"↺","\\circlearrowleft",!0),g(y,R,D,"↰","\\Lsh",!0),g(y,R,D,"⇈","\\upuparrows",!0),g(y,R,D,"↿","\\upharpoonleft",!0),g(y,R,D,"⇃","\\downharpoonleft",!0),g(y,S,D,"⊶","\\origof",!0),g(y,S,D,"⊷","\\imageof",!0),g(y,R,D,"⊸","\\multimap",!0),g(y,R,D,"↭","\\leftrightsquigarrow",!0),g(y,R,D,"⇉","\\rightrightarrows",!0),g(y,R,D,"⇄","\\rightleftarrows",!0),g(y,R,D,"↠","\\twoheadrightarrow",!0),g(y,R,D,"↣","\\rightarrowtail",!0),g(y,R,D,"↬","\\looparrowright",!0),g(y,R,D,"↷","\\curvearrowright",!0),g(y,R,D,"↻","\\circlearrowright",!0),g(y,R,D,"↱","\\Rsh",!0),g(y,R,D,"⇊","\\downdownarrows",!0),g(y,R,D,"↾","\\upharpoonright",!0),g(y,R,D,"⇂","\\downharpoonright",!0),g(y,R,D,"⇝","\\rightsquigarrow",!0),g(y,R,D,"⇝","\\leadsto"),g(y,R,D,"⇛","\\Rrightarrow",!0),g(y,R,D,"↾","\\restriction"),g(y,S,B,"‘","`"),g(y,S,B,"$","\\$"),g(re,S,B,"$","\\$"),g(re,S,B,"$","\\textdollar"),g(y,S,B,"%","\\%"),g(re,S,B,"%","\\%"),g(y,S,B,"_","\\_"),g(re,S,B,"_","\\_"),g(re,S,B,"_","\\textunderscore"),g(y,S,B,"∠","\\angle",!0),g(y,S,B,"∞","\\infty",!0),g(y,S,B,"′","\\prime"),g(y,S,B,"△","\\triangle"),g(y,S,B,"Γ","\\Gamma",!0),g(y,S,B,"Δ","\\Delta",!0),g(y,S,B,"Θ","\\Theta",!0),g(y,S,B,"Λ","\\Lambda",!0),g(y,S,B,"Ξ","\\Xi",!0),g(y,S,B,"Π","\\Pi",!0),g(y,S,B,"Σ","\\Sigma",!0),g(y,S,B,"Υ","\\Upsilon",!0),g(y,S,B,"Φ","\\Phi",!0),g(y,S,B,"Ψ","\\Psi",!0),g(y,S,B,"Ω","\\Omega",!0),g(y,S,B,"A","Α"),g(y,S,B,"B","Β"),g(y,S,B,"E","Ε"),g(y,S,B,"Z","Ζ"),g(y,S,B,"H","Η"),g(y,S,B,"I","Ι"),g(y,S,B,"K","Κ"),g(y,S,B,"M","Μ"),g(y,S,B,"N","Ν"),g(y,S,B,"O","Ο"),g(y,S,B,"P","Ρ"),g(y,S,B,"T","Τ"),g(y,S,B,"X","Χ"),g(y,S,B,"¬","\\neg",!0),g(y,S,B,"¬","\\lnot"),g(y,S,B,"⊤","\\top"),g(y,S,B,"⊥","\\bot"),g(y,S,B,"∅","\\emptyset"),g(y,R,B,"∅","\\varnothing"),g(y,S,Ce,"α","\\alpha",!0),g(y,S,Ce,"β","\\beta",!0),g(y,S,Ce,"γ","\\gamma",!0),g(y,S,Ce,"δ","\\delta",!0),g(y,S,Ce,"ϵ","\\epsilon",!0),g(y,S,Ce,"ζ","\\zeta",!0),g(y,S,Ce,"η","\\eta",!0),g(y,S,Ce,"θ","\\theta",!0),g(y,S,Ce,"ι","\\iota",!0),g(y,S,Ce,"κ","\\kappa",!0),g(y,S,Ce,"λ","\\lambda",!0),g(y,S,Ce,"μ","\\mu",!0),g(y,S,Ce,"ν","\\nu",!0),g(y,S,Ce,"ξ","\\xi",!0),g(y,S,Ce,"ο","\\omicron",!0),g(y,S,Ce,"π","\\pi",!0),g(y,S,Ce,"ρ","\\rho",!0),g(y,S,Ce,"σ","\\sigma",!0),g(y,S,Ce,"τ","\\tau",!0),g(y,S,Ce,"υ","\\upsilon",!0),g(y,S,Ce,"ϕ","\\phi",!0),g(y,S,Ce,"χ","\\chi",!0),g(y,S,Ce,"ψ","\\psi",!0),g(y,S,Ce,"ω","\\omega",!0),g(y,S,Ce,"ε","\\varepsilon",!0),g(y,S,Ce,"ϑ","\\vartheta",!0),g(y,S,Ce,"ϖ","\\varpi",!0),g(y,S,Ce,"ϱ","\\varrho",!0),g(y,S,Ce,"ς","\\varsigma",!0),g(y,S,Ce,"φ","\\varphi",!0),g(y,S,ve,"∗","*",!0),g(y,S,ve,"+","+"),g(y,S,ve,"−","-",!0),g(y,S,ve,"⋅","\\cdot",!0),g(y,S,ve,"∘","\\circ",!0),g(y,S,ve,"÷","\\div",!0),g(y,S,ve,"±","\\pm",!0),g(y,S,ve,"×","\\times",!0),g(y,S,ve,"∩","\\cap",!0),g(y,S,ve,"∪","\\cup",!0),g(y,S,ve,"∖","\\setminus",!0),g(y,S,ve,"∧","\\land"),g(y,S,ve,"∨","\\lor"),g(y,S,ve,"∧","\\wedge",!0),g(y,S,ve,"∨","\\vee",!0),g(y,S,B,"√","\\surd"),g(y,S,pn,"⟨","\\langle",!0),g(y,S,pn,"∣","\\lvert"),g(y,S,pn,"∥","\\lVert"),g(y,S,Zt,"?","?"),g(y,S,Zt,"!","!"),g(y,S,Zt,"⟩","\\rangle",!0),g(y,S,Zt,"∣","\\rvert"),g(y,S,Zt,"∥","\\rVert"),g(y,S,D,"=","="),g(y,S,D,":",":"),g(y,S,D,"≈","\\approx",!0),g(y,S,D,"≅","\\cong",!0),g(y,S,D,"≥","\\ge"),g(y,S,D,"≥","\\geq",!0),g(y,S,D,"←","\\gets"),g(y,S,D,">","\\gt",!0),g(y,S,D,"∈","\\in",!0),g(y,S,D,"","\\@not"),g(y,S,D,"⊂","\\subset",!0),g(y,S,D,"⊃","\\supset",!0),g(y,S,D,"⊆","\\subseteq",!0),g(y,S,D,"⊇","\\supseteq",!0),g(y,R,D,"⊈","\\nsubseteq",!0),g(y,R,D,"⊉","\\nsupseteq",!0),g(y,S,D,"⊨","\\models"),g(y,S,D,"←","\\leftarrow",!0),g(y,S,D,"≤","\\le"),g(y,S,D,"≤","\\leq",!0),g(y,S,D,"<","\\lt",!0),g(y,S,D,"→","\\rightarrow",!0),g(y,S,D,"→","\\to"),g(y,R,D,"≱","\\ngeq",!0),g(y,R,D,"≰","\\nleq",!0),g(y,S,Zn," ","\\ "),g(y,S,Zn," ","\\space"),g(y,S,Zn," ","\\nobreakspace"),g(re,S,Zn," ","\\ "),g(re,S,Zn," "," "),g(re,S,Zn," ","\\space"),g(re,S,Zn," ","\\nobreakspace"),g(y,S,Zn,null,"\\nobreak"),g(y,S,Zn,null,"\\allowbreak"),g(y,S,Ui,",",","),g(y,S,Ui,";",";"),g(y,R,ve,"⊼","\\barwedge",!0),g(y,R,ve,"⊻","\\veebar",!0),g(y,S,ve,"⊙","\\odot",!0),g(y,S,ve,"⊕","\\oplus",!0),g(y,S,ve,"⊗","\\otimes",!0),g(y,S,B,"∂","\\partial",!0),g(y,S,ve,"⊘","\\oslash",!0),g(y,R,ve,"⊚","\\circledcirc",!0),g(y,R,ve,"⊡","\\boxdot",!0),g(y,S,ve,"△","\\bigtriangleup"),g(y,S,ve,"▽","\\bigtriangledown"),g(y,S,ve,"†","\\dagger"),g(y,S,ve,"⋄","\\diamond"),g(y,S,ve,"⋆","\\star"),g(y,S,ve,"◃","\\triangleleft"),g(y,S,ve,"▹","\\triangleright"),g(y,S,pn,"{","\\{"),g(re,S,B,"{","\\{"),g(re,S,B,"{","\\textbraceleft"),g(y,S,Zt,"}","\\}"),g(re,S,B,"}","\\}"),g(re,S,B,"}","\\textbraceright"),g(y,S,pn,"{","\\lbrace"),g(y,S,Zt,"}","\\rbrace"),g(y,S,pn,"[","\\lbrack",!0),g(re,S,B,"[","\\lbrack",!0),g(y,S,Zt,"]","\\rbrack",!0),g(re,S,B,"]","\\rbrack",!0),g(y,S,pn,"(","\\lparen",!0),g(y,S,Zt,")","\\rparen",!0),g(re,S,B,"<","\\textless",!0),g(re,S,B,">","\\textgreater",!0),g(y,S,pn,"⌊","\\lfloor",!0),g(y,S,Zt,"⌋","\\rfloor",!0),g(y,S,pn,"⌈","\\lceil",!0),g(y,S,Zt,"⌉","\\rceil",!0),g(y,S,B,"\\","\\backslash"),g(y,S,B,"∣","|"),g(y,S,B,"∣","\\vert"),g(re,S,B,"|","\\textbar",!0),g(y,S,B,"∥","\\|"),g(y,S,B,"∥","\\Vert"),g(re,S,B,"∥","\\textbardbl"),g(re,S,B,"~","\\textasciitilde"),g(re,S,B,"\\","\\textbackslash"),g(re,S,B,"^","\\textasciicircum"),g(y,S,D,"↑","\\uparrow",!0),g(y,S,D,"⇑","\\Uparrow",!0),g(y,S,D,"↓","\\downarrow",!0),g(y,S,D,"⇓","\\Downarrow",!0),g(y,S,D,"↕","\\updownarrow",!0),g(y,S,D,"⇕","\\Updownarrow",!0),g(y,S,Mt,"∐","\\coprod"),g(y,S,Mt,"⋁","\\bigvee"),g(y,S,Mt,"⋀","\\bigwedge"),g(y,S,Mt,"⨄","\\biguplus"),g(y,S,Mt,"⋂","\\bigcap"),g(y,S,Mt,"⋃","\\bigcup"),g(y,S,Mt,"∫","\\int"),g(y,S,Mt,"∫","\\intop"),g(y,S,Mt,"∬","\\iint"),g(y,S,Mt,"∭","\\iiint"),g(y,S,Mt,"∏","\\prod"),g(y,S,Mt,"∑","\\sum"),g(y,S,Mt,"⨂","\\bigotimes"),g(y,S,Mt,"⨁","\\bigoplus"),g(y,S,Mt,"⨀","\\bigodot"),g(y,S,Mt,"∮","\\oint"),g(y,S,Mt,"∯","\\oiint"),g(y,S,Mt,"∰","\\oiiint"),g(y,S,Mt,"⨆","\\bigsqcup"),g(y,S,Mt,"∫","\\smallint"),g(re,S,ts,"…","\\textellipsis"),g(y,S,ts,"…","\\mathellipsis"),g(re,S,ts,"…","\\ldots",!0),g(y,S,ts,"…","\\ldots",!0),g(y,S,ts,"⋯","\\@cdots",!0),g(y,S,ts,"⋱","\\ddots",!0),g(y,S,B,"⋮","\\varvdots"),g(re,S,B,"⋮","\\varvdots"),g(y,S,pt,"ˊ","\\acute"),g(y,S,pt,"ˋ","\\grave"),g(y,S,pt,"¨","\\ddot"),g(y,S,pt,"~","\\tilde"),g(y,S,pt,"ˉ","\\bar"),g(y,S,pt,"˘","\\breve"),g(y,S,pt,"ˇ","\\check"),g(y,S,pt,"^","\\hat"),g(y,S,pt,"⃗","\\vec"),g(y,S,pt,"˙","\\dot"),g(y,S,pt,"˚","\\mathring"),g(y,S,Ce,"","\\@imath"),g(y,S,Ce,"","\\@jmath"),g(y,S,B,"ı","ı"),g(y,S,B,"ȷ","ȷ"),g(re,S,B,"ı","\\i",!0),g(re,S,B,"ȷ","\\j",!0),g(re,S,B,"ß","\\ss",!0),g(re,S,B,"æ","\\ae",!0),g(re,S,B,"œ","\\oe",!0),g(re,S,B,"ø","\\o",!0),g(re,S,B,"Æ","\\AE",!0),g(re,S,B,"Œ","\\OE",!0),g(re,S,B,"Ø","\\O",!0),g(re,S,pt,"ˊ","\\'"),g(re,S,pt,"ˋ","\\`"),g(re,S,pt,"ˆ","\\^"),g(re,S,pt,"˜","\\~"),g(re,S,pt,"ˉ","\\="),g(re,S,pt,"˘","\\u"),g(re,S,pt,"˙","\\."),g(re,S,pt,"¸","\\c"),g(re,S,pt,"˚","\\r"),g(re,S,pt,"ˇ","\\v"),g(re,S,pt,"¨",'\\"'),g(re,S,pt,"˝","\\H"),g(re,S,pt,"◯","\\textcircled");const tu={"--":!0,"---":!0,"``":!0,"''":!0};g(re,S,B,"–","--",!0),g(re,S,B,"–","\\textendash"),g(re,S,B,"—","---",!0),g(re,S,B,"—","\\textemdash"),g(re,S,B,"‘","`",!0),g(re,S,B,"‘","\\textquoteleft"),g(re,S,B,"’","'",!0),g(re,S,B,"’","\\textquoteright"),g(re,S,B,"“","``",!0),g(re,S,B,"“","\\textquotedblleft"),g(re,S,B,"”","''",!0),g(re,S,B,"”","\\textquotedblright"),g(y,S,B,"°","\\degree",!0),g(re,S,B,"°","\\degree"),g(re,S,B,"°","\\textdegree",!0),g(y,S,B,"£","\\pounds"),g(y,S,B,"£","\\mathsterling",!0),g(re,S,B,"£","\\pounds"),g(re,S,B,"£","\\textsterling",!0),g(y,R,B,"✠","\\maltese"),g(re,R,B,"✠","\\maltese");const nu='0123456789/@."';for(let l=0;l<nu.length;l++){const a=nu.charAt(l);g(y,S,B,a,a)}const ru='0123456789!@*()-=+";:?/.,';for(let l=0;l<ru.length;l++){const a=ru.charAt(l);g(re,S,B,a,a)}const Hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let l=0;l<Hi.length;l++){const a=Hi.charAt(l);g(y,S,Ce,a,a),g(re,S,B,a,a)}g(y,R,B,"C","ℂ"),g(re,R,B,"C","ℂ"),g(y,R,B,"H","ℍ"),g(re,R,B,"H","ℍ"),g(y,R,B,"N","ℕ"),g(re,R,B,"N","ℕ"),g(y,R,B,"P","ℙ"),g(re,R,B,"P","ℙ"),g(y,R,B,"Q","ℚ"),g(re,R,B,"Q","ℚ"),g(y,R,B,"R","ℝ"),g(re,R,B,"R","ℝ"),g(y,R,B,"Z","ℤ"),g(re,R,B,"Z","ℤ"),g(y,S,Ce,"h","ℎ"),g(re,S,Ce,"h","ℎ");let Re="";for(let l=0;l<Hi.length;l++){const a=Hi.charAt(l);Re=String.fromCharCode(55349,56320+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,56372+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,56424+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,56580+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,56684+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,56736+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,56788+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,56840+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,56944+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),l<26&&(Re=String.fromCharCode(55349,56632+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,56476+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re))}Re="𝕜",g(y,S,Ce,"k",Re),g(re,S,B,"k",Re);for(let l=0;l<10;l++){const a=l.toString();Re=String.fromCharCode(55349,57294+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,57314+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,57324+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re),Re=String.fromCharCode(55349,57334+l),g(y,S,Ce,a,Re),g(re,S,B,a,Re)}const Go="ÐÞþ";for(let l=0;l<Go.length;l++){const a=Go.charAt(l);g(y,S,Ce,a,a),g(re,S,B,a,a)}const Vi=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],su=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],f4=(l,a)=>{const c=l.charCodeAt(0),f=l.charCodeAt(1),m=(c-55296)*1024+(f-56320)+65536,w=a==="math"?0:1;if(119808<=m&&m<120484){const _=Math.floor((m-119808)/26);return[Vi[_][2],Vi[_][w]]}else if(120782<=m&&m<=120831){const _=Math.floor((m-120782)/10);return[su[_][2],su[_][w]]}else{if(m===120485||m===120486)return[Vi[0][2],Vi[0][w]];if(120486<m&&m<120782)return["",""];throw new i("Unsupported character: "+l)}},ji=function(l,a,c){if(St[c][l]){const f=St[c][l].replace;f&&(l=f)}return{value:l,metrics:jo(l,a,c)}},en=function(l,a,c,f,m){const w=ji(l,a,c),_=w.metrics;l=w.value;let T;if(_){let I=_.italic;(c==="text"||f&&f.font==="mathit")&&(I=0),T=new vt(l,_.height,_.depth,I,_.skew,_.width,m)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+l+"' in style '"+a+"' and mode '"+c+"'")),T=new vt(l,0,0,0,0,0,m);if(f){T.maxFontSize=f.sizeMultiplier,f.style.isTight()&&T.classes.push("mtight");const I=f.getColor();I&&(T.style.color=I)}return T},Ko=function(l,a,c,f){return f===void 0&&(f=[]),c.font==="boldsymbol"&&ji(l,"Main-Bold",a).metrics?en(l,"Main-Bold",a,c,f.concat(["mathbf"])):l==="\\"||St[a][l].font==="main"?en(l,"Main-Regular",a,c,f):en(l,"AMS-Regular",a,c,f.concat(["amsrm"]))},h4=function(l,a,c,f,m){return m!=="textord"&&ji(l,"Math-BoldItalic",a).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Wi=function(l,a,c){const f=l.mode,m=l.text,w=["mord"],_=f==="math"||f==="text"&&a.font,T=_?a.font:a.fontFamily;let I="",P="";if(m.charCodeAt(0)===55349&&([I,P]=f4(m,f)),I.length>0)return en(m,I,f,a,w.concat(P));if(T){let U,W;if(T==="boldsymbol"){const K=h4(m,f,a,w,c);U=K.fontName,W=[K.fontClass]}else _?(U=Yo[T].fontName,W=[T]):(U=Gi(T,a.fontWeight,a.fontShape),W=[T,a.fontWeight,a.fontShape]);if(ji(m,U,f).metrics)return en(m,U,f,a,w.concat(W));if(tu.hasOwnProperty(m)&&U.slice(0,10)==="Typewriter"){const K=[];for(let ne=0;ne<m.length;ne++)K.push(en(m[ne],U,f,a,w.concat(W)));return er(K)}}if(c==="mathord")return en(m,"Math-Italic",f,a,w.concat(["mathnormal"]));if(c==="textord"){const U=St[f][m]&&St[f][m].font;if(U==="ams"){const W=Gi("amsrm",a.fontWeight,a.fontShape);return en(m,W,f,a,w.concat("amsrm",a.fontWeight,a.fontShape))}else if(U==="main"||!U){const W=Gi("textrm",a.fontWeight,a.fontShape);return en(m,W,f,a,w.concat(a.fontWeight,a.fontShape))}else{const W=Gi(U,a.fontWeight,a.fontShape);return en(m,W,f,a,w.concat(W,a.fontWeight,a.fontShape))}}else throw new Error("unexpected type: "+c+" in makeOrd")},d4=(l,a)=>{if($(l.classes)!==$(a.classes)||l.skew!==a.skew||l.maxFontSize!==a.maxFontSize||l.italic!==0&&l.hasClass("mathnormal"))return!1;if(l.classes.length===1){const c=l.classes[0];if(c==="mbin"||c==="mord")return!1}for(const c of Object.keys(l.style))if(l.style[c]!==a.style[c])return!1;for(const c of Object.keys(a.style))if(l.style[c]!==a.style[c])return!1;return!0},iu=l=>{for(let a=0;a<l.length-1;a++){const c=l[a],f=l[a+1];c instanceof vt&&f instanceof vt&&d4(c,f)&&(c.text+=f.text,c.height=Math.max(c.height,f.height),c.depth=Math.max(c.depth,f.depth),c.italic=f.italic,l.splice(a+1,1),a--)}return l},Xo=function(l){let a=0,c=0,f=0;for(let m=0;m<l.children.length;m++){const w=l.children[m];w.height>a&&(a=w.height),w.depth>c&&(c=w.depth),w.maxFontSize>f&&(f=w.maxFontSize)}l.height=a,l.depth=c,l.maxFontSize=f},ie=function(l,a,c,f){const m=new J(l,a,c,f);return Xo(m),m},pr=(l,a,c,f)=>new J(l,a,c,f),ns=function(l,a,c){const f=ie([l],[],a);return f.height=Math.max(c||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),f.style.borderBottomWidth=C(f.height),f.maxFontSize=1,f},m4=function(l,a,c,f){const m=new se(l,a,c,f);return Xo(m),m},er=function(l){const a=new Be(l);return Xo(a),a},rs=function(l,a){return l instanceof Be?ie([],[l],a):l},p4=function(l){if(l.positionType==="individualShift"){const c=l.children,f=[c[0]],m=-c[0].shift-c[0].elem.depth;let w=m;for(let _=1;_<c.length;_++){const T=-c[_].shift-w-c[_].elem.depth,I=T-(c[_-1].elem.height+c[_-1].elem.depth);w=w+T,f.push({type:"kern",size:I}),f.push(c[_])}return{children:f,depth:m}}let a;if(l.positionType==="top"){let c=l.positionData;for(let f=0;f<l.children.length;f++){const m=l.children[f];c-=m.type==="kern"?m.size:m.elem.height+m.elem.depth}a=c}else if(l.positionType==="bottom")a=-l.positionData;else{const c=l.children[0];if(c.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")a=-c.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")a=-c.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:a}},Qe=function(l,a){const{children:c,depth:f}=p4(l);let m=0;for(let ne=0;ne<c.length;ne++){const de=c[ne];if(de.type==="elem"){const xe=de.elem;m=Math.max(m,xe.maxFontSize,xe.height)}}m+=2;const w=ie(["pstrut"],[]);w.style.height=C(m);const _=[];let T=f,I=f,P=f;for(let ne=0;ne<c.length;ne++){const de=c[ne];if(de.type==="kern")P+=de.size;else{const xe=de.elem,je=de.wrapperClasses||[],$e=de.wrapperStyle||{},We=ie(je,[w,xe],void 0,$e);We.style.top=C(-m-P-xe.depth),de.marginLeft&&(We.style.marginLeft=de.marginLeft),de.marginRight&&(We.style.marginRight=de.marginRight),_.push(We),P+=xe.height+xe.depth}T=Math.min(T,P),I=Math.max(I,P)}const U=ie(["vlist"],_);U.style.height=C(I);let W;if(T<0){const ne=ie([],[]),de=ie(["vlist"],[ne]);de.style.height=C(-T);const xe=ie(["vlist-s"],[new vt("")]);W=[ie(["vlist-r"],[U,xe]),ie(["vlist-r"],[de])]}else W=[ie(["vlist-r"],[U])];const K=ie(["vlist-t"],W);return W.length===2&&K.classes.push("vlist-t2"),K.height=I,K.depth=-T,K},au=(l,a)=>{const c=ie(["mspace"],[],a),f=rt(l,a);return c.style.marginRight=C(f),c},Gi=function(l,a,c){let f="";switch(l){case"amsrm":f="AMS";break;case"textrm":f="Main";break;case"textsf":f="SansSerif";break;case"texttt":f="Typewriter";break;default:f=l}let m;return a==="textbf"&&c==="textit"?m="BoldItalic":a==="textbf"?m="Bold":a==="textit"?m="Italic":m="Regular",f+"-"+m},Yo={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"}},ou={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},lu=function(l,a){const[c,f,m]=ou[l],w=new Qt(c),_=new an([w],{width:C(f),height:C(m),style:"width:"+C(f),viewBox:"0 0 "+1e3*f+" "+1e3*m,preserveAspectRatio:"xMinYMin"}),T=pr(["overlay"],[_],a);return T.height=m,T.style.height=C(m),T.style.width=C(f),T},yt={number:3,unit:"mu"},Or={number:4,unit:"mu"},tr={number:5,unit:"mu"},g4={mord:{mop:yt,mbin:Or,mrel:tr,minner:yt},mop:{mord:yt,mop:yt,mrel:tr,minner:yt},mbin:{mord:Or,mop:Or,mopen:Or,minner:Or},mrel:{mord:tr,mop:tr,mopen:tr,minner:tr},mopen:{},mclose:{mop:yt,mbin:Or,mrel:tr,minner:yt},mpunct:{mord:yt,mop:yt,mrel:tr,mopen:yt,mclose:yt,mpunct:yt,minner:yt},minner:{mord:yt,mop:yt,mbin:Or,mrel:tr,mopen:yt,mpunct:yt,minner:yt}},y4={mord:{mop:yt},mop:{mord:yt,mop:yt},mbin:{},mrel:{},mopen:{},mclose:{mop:yt},mpunct:{},minner:{mop:yt}},cu={},Ki={},Xi={};function we(l){let{type:a,names:c,props:f,handler:m,htmlBuilder:w,mathmlBuilder:_}=l;const T={type:a,numArgs:f.numArgs,argTypes:f.argTypes,allowedInArgument:!!f.allowedInArgument,allowedInText:!!f.allowedInText,allowedInMath:f.allowedInMath===void 0?!0:f.allowedInMath,numOptionalArgs:f.numOptionalArgs||0,infix:!!f.infix,primitive:!!f.primitive,handler:m};for(let I=0;I<c.length;++I)cu[c[I]]=T;a&&(w&&(Ki[a]=w),_&&(Xi[a]=_))}function Lr(l){let{type:a,htmlBuilder:c,mathmlBuilder:f}=l;we({type:a,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:c,mathmlBuilder:f})}const Yi=function(l){return l.type==="ordgroup"&&l.body.length===1?l.body[0]:l},Ot=function(l){return l.type==="ordgroup"?l.body:[l]},b4=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),w4=new Set(["rightmost","mrel","mclose","mpunct"]),v4={display:ee.DISPLAY,text:ee.TEXT,script:ee.SCRIPT,scriptscript:ee.SCRIPTSCRIPT},_4={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},$t=function(l,a,c,f){f===void 0&&(f=[null,null]);const m=[];for(let P=0;P<l.length;P++){const U=Ze(l[P],a);if(U instanceof Be){const W=U.children;m.push(...W)}else m.push(U)}if(iu(m),!c)return m;let w=a;if(l.length===1){const P=l[0];P.type==="sizing"?w=a.havingSize(P.size):P.type==="styling"&&(w=a.havingStyle(v4[P.style]))}const _=ie([f[0]||"leftmost"],[],a),T=ie([f[1]||"rightmost"],[],a),I=c==="root";return Jo(m,(P,U)=>{const W=U.classes[0],K=P.classes[0];W==="mbin"&&w4.has(K)?U.classes[0]="mord":K==="mbin"&&b4.has(W)&&(P.classes[0]="mord")},{node:_},T,I),Jo(m,(P,U)=>{var W,K;const ne=Zo(U),de=Zo(P),xe=ne&&de?P.hasClass("mtight")?(W=y4[ne])==null?void 0:W[de]:(K=g4[ne])==null?void 0:K[de]:null;if(xe)return au(xe,w)},{node:_},T,I),m},Jo=function(l,a,c,f,m){f&&l.push(f);let w=0;for(;w<l.length;w++){const _=l[w],T=uu(_);if(T){Jo(T.children,a,c,null,m);continue}const I=!_.hasClass("mspace");if(I){const P=a(_,c.node);P&&(c.insertAfter?c.insertAfter(P):(l.unshift(P),w++))}I?c.node=_:m&&_.hasClass("newline")&&(c.node=ie(["leftmost"])),c.insertAfter=(P=>U=>{l.splice(P+1,0,U),w++})(w)}f&&l.pop()},uu=function(l){return l instanceof Be||l instanceof se||l instanceof J&&l.hasClass("enclosing")?l:null},Qo=function(l,a){const c=uu(l);if(c){const f=c.children;if(f.length){if(a==="right")return Qo(f[f.length-1],"right");if(a==="left")return Qo(f[0],"left")}}return l},Zo=function(l,a){if(!l)return null;a&&(l=Qo(l,a));const c=l.classes[0];return _4[c]||null},Us=function(l,a){const c=["nulldelimiter"].concat(l.baseSizingClasses());return ie(a.concat(c))},Ze=function(l,a,c){if(!l)return ie();if(Ki[l.type]){let f=Ki[l.type](l,a);if(c&&a.size!==c.size){f=ie(a.sizingClasses(c),[f],a);const m=a.sizeMultiplier/c.sizeMultiplier;f.height*=m,f.depth*=m}return f}else throw new i("Got group of unknown type: '"+l.type+"'")};function Ji(l,a){const c=ie(["base"],l,a),f=ie(["strut"]);return f.style.height=C(c.height+c.depth),c.depth&&(f.style.verticalAlign=C(-c.depth)),c.children.unshift(f),c}function el(l,a){let c=null;l.length===1&&l[0].type==="tag"&&(c=l[0].tag,l=l[0].body);const f=$t(l,a,"root");let m;f.length===2&&f[1].hasClass("tag")&&(m=f.pop());const w=[];let _=[];for(let P=0;P<f.length;P++)if(_.push(f[P]),f[P].hasClass("mbin")||f[P].hasClass("mrel")||f[P].hasClass("allowbreak")){let U=!1;for(;P<f.length-1&&f[P+1].hasClass("mspace")&&!f[P+1].hasClass("newline");)P++,_.push(f[P]),f[P].hasClass("nobreak")&&(U=!0);U||(w.push(Ji(_,a)),_=[])}else f[P].hasClass("newline")&&(_.pop(),_.length>0&&(w.push(Ji(_,a)),_=[]),w.push(f[P]));_.length>0&&w.push(Ji(_,a));let T;c?(T=Ji($t(c,a,!0),a),T.classes=["tag"],w.push(T)):m&&w.push(m);const I=ie(["katex-html"],w);if(I.setAttribute("aria-hidden","true"),T){const P=T.children[0];P.style.height=C(I.height+I.depth),I.depth&&(P.style.verticalAlign=C(-I.depth))}return I}function fu(l){return new Be(l)}class le{constructor(a,c,f){this.type=a,this.attributes={},this.children=c||[],this.classes=f||[]}setAttribute(a,c){this.attributes[a]=c}getAttribute(a){return this.attributes[a]}toNode(){const a=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&a.setAttribute(c,this.attributes[c]);this.classes.length>0&&(a.className=$(this.classes));for(let c=0;c<this.children.length;c++)if(this.children[c]instanceof Lt&&this.children[c+1]instanceof Lt){let f=this.children[c].toText()+this.children[++c].toText();for(;this.children[c+1]instanceof Lt;)f+=this.children[++c].toText();a.appendChild(new Lt(f).toNode())}else a.appendChild(this.children[c].toNode());return a}toMarkup(){let a="<"+this.type;for(const c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&(a+=" "+c+'="',a+=p(this.attributes[c]),a+='"');this.classes.length>0&&(a+=' class ="'+p($(this.classes))+'"'),a+=">";for(let c=0;c<this.children.length;c++)a+=this.children[c].toMarkup();return a+="</"+this.type+">",a}toText(){return this.children.map(a=>a.toText()).join("")}}class Lt{constructor(a){this.text=a}toNode(){return document.createTextNode(this.text)}toMarkup(){return p(this.toText())}toText(){return this.text}}class hu{constructor(a){this.width=a,a>=.05555&&a<=.05556?this.character=" ":a>=.1666&&a<=.1667?this.character=" ":a>=.2222&&a<=.2223?this.character=" ":a>=.2777&&a<=.2778?this.character=" ":a>=-.05556&&a<=-.05555?this.character=" ":a>=-.1667&&a<=-.1666?this.character=" ":a>=-.2223&&a<=-.2222?this.character=" ":a>=-.2778&&a<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);{const a=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return a.setAttribute("width",C(this.width)),a}}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+C(this.width)+'"/>'}toText(){return this.character?this.character:" "}}const x4=new Set(["\\imath","\\jmath"]),k4=new Set(["mrow","mtable"]),_n=function(l,a,c){return St[a][l]&&St[a][l].replace&&l.charCodeAt(0)!==55349&&!(tu.hasOwnProperty(l)&&c&&(c.fontFamily&&c.fontFamily.slice(4,6)==="tt"||c.font&&c.font.slice(4,6)==="tt"))&&(l=St[a][l].replace),new Lt(l)},tl=function(l){return l.length===1?l[0]:new le("mrow",l)},nl=function(l,a){if(a.fontFamily==="texttt")return"monospace";if(a.fontFamily==="textsf")return a.fontShape==="textit"&&a.fontWeight==="textbf"?"sans-serif-bold-italic":a.fontShape==="textit"?"sans-serif-italic":a.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(a.fontShape==="textit"&&a.fontWeight==="textbf")return"bold-italic";if(a.fontShape==="textit")return"italic";if(a.fontWeight==="textbf")return"bold";const c=a.font;if(!c||c==="mathnormal")return null;const f=l.mode;if(c==="mathit")return"italic";if(c==="boldsymbol")return l.type==="textord"?"bold":"bold-italic";if(c==="mathbf")return"bold";if(c==="mathbb")return"double-struck";if(c==="mathsfit")return"sans-serif-italic";if(c==="mathfrak")return"fraktur";if(c==="mathscr"||c==="mathcal")return"script";if(c==="mathsf")return"sans-serif";if(c==="mathtt")return"monospace";let m=l.text;if(x4.has(m))return null;if(St[f][m]){const _=St[f][m].replace;_&&(m=_)}const w=Yo[c].fontName;return jo(m,w,f)?Yo[c].variant:null};function rl(l){if(!l)return!1;if(l.type==="mi"&&l.children.length===1){const a=l.children[0];return a instanceof Lt&&a.text==="."}else if(l.type==="mo"&&l.children.length===1&&l.getAttribute("separator")==="true"&&l.getAttribute("lspace")==="0em"&&l.getAttribute("rspace")==="0em"){const a=l.children[0];return a instanceof Lt&&a.text===","}else return!1}const gn=function(l,a,c){if(l.length===1){const w=lt(l[0],a);return c&&w instanceof le&&w.type==="mo"&&(w.setAttribute("lspace","0em"),w.setAttribute("rspace","0em")),[w]}const f=[];let m;for(let w=0;w<l.length;w++){const _=lt(l[w],a);if(_ instanceof le&&m instanceof le){if(_.type==="mtext"&&m.type==="mtext"&&_.getAttribute("mathvariant")===m.getAttribute("mathvariant")){m.children.push(..._.children);continue}else if(_.type==="mn"&&m.type==="mn"){m.children.push(..._.children);continue}else if(rl(_)&&m.type==="mn"){m.children.push(..._.children);continue}else if(_.type==="mn"&&rl(m))_.children=[...m.children,..._.children],f.pop();else if((_.type==="msup"||_.type==="msub")&&_.children.length>=1&&(m.type==="mn"||rl(m))){const T=_.children[0];T instanceof le&&T.type==="mn"&&(T.children=[...m.children,...T.children],f.pop())}else if(m.type==="mi"&&m.children.length===1){const T=m.children[0];if(T instanceof Lt&&T.text==="̸"&&(_.type==="mo"||_.type==="mi"||_.type==="mn")){const I=_.children[0];I instanceof Lt&&I.text.length>0&&(I.text=I.text.slice(0,1)+"̸"+I.text.slice(1),f.pop())}}}f.push(_),m=_}return f},gr=function(l,a,c){return tl(gn(l,a,c))},lt=function(l,a){if(!l)return new le("mrow");if(Xi[l.type])return Xi[l.type](l,a);throw new i("Got group of unknown type: '"+l.type+"'")};function du(l,a,c,f,m){const w=gn(l,c);let _;w.length===1&&w[0]instanceof le&&k4.has(w[0].type)?_=w[0]:_=new le("mrow",w);const T=new le("annotation",[new Lt(a)]);T.setAttribute("encoding","application/x-tex");const I=new le("semantics",[_,T]),P=new le("math",[I]);return P.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),f&&P.setAttribute("display","block"),ie([m?"katex":"katex-mathml"],[P])}const S4=[[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]],mu=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],pu=function(l,a){return a.size<2?l:S4[l-1][a.size-1]};class nr{constructor(a){this.style=a.style,this.color=a.color,this.size=a.size||nr.BASESIZE,this.textSize=a.textSize||this.size,this.phantom=!!a.phantom,this.font=a.font||"",this.fontFamily=a.fontFamily||"",this.fontWeight=a.fontWeight||"",this.fontShape=a.fontShape||"",this.sizeMultiplier=mu[this.size-1],this.maxSize=a.maxSize,this.minRuleThickness=a.minRuleThickness,this._fontMetrics=void 0}extend(a){const c={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(c,a),new nr(c)}havingStyle(a){return this.style===a?this:this.extend({style:a,size:pu(this.textSize,a)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(a){return this.size===a&&this.textSize===a?this:this.extend({style:this.style.text(),size:a,textSize:a,sizeMultiplier:mu[a-1]})}havingBaseStyle(a){a=a||this.style.text();const c=pu(nr.BASESIZE,a);return this.size===c&&this.textSize===nr.BASESIZE&&this.style===a?this:this.extend({style:a,size:c})}havingBaseSizing(){let a;switch(this.style.id){case 4:case 5:a=3;break;case 6:case 7:a=1;break;default:a=6}return this.extend({style:this.style.text(),size:a})}withColor(a){return this.extend({color:a})}withPhantom(){return this.extend({phantom:!0})}withFont(a){return this.extend({font:a})}withTextFontFamily(a){return this.extend({fontFamily:a,font:""})}withTextFontWeight(a){return this.extend({fontWeight:a,font:""})}withTextFontShape(a){return this.extend({fontShape:a,font:""})}sizingClasses(a){return a.size!==this.size?["sizing","reset-size"+a.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==nr.BASESIZE?["sizing","reset-size"+this.size,"size"+nr.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=l4(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}nr.BASESIZE=6;var A4=nr;const gu=function(l){return new A4({style:l.displayMode?ee.DISPLAY:ee.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},yu=function(l,a){if(a.displayMode){const c=["katex-display"];a.leqno&&c.push("leqno"),a.fleqn&&c.push("fleqn"),l=ie(c,[l])}return l},T4=function(l,a,c){const f=gu(c);let m;if(c.output==="mathml")return du(l,a,f,c.displayMode,!0);if(c.output==="html"){const w=el(l,f);m=ie(["katex"],[w])}else{const w=du(l,a,f,c.displayMode,!1),_=el(l,f);m=ie(["katex"],[w,_])}return yu(m,c)},E4=function(l,a,c){const f=gu(c),m=el(l,f),w=ie(["katex"],[m]);return yu(w,c)},N4={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",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":"="},Qi=function(l){const a=new le("mo",[new Lt(N4[l.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},C4={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],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]},I4=new Set(["widehat","widecheck","widetilde","utilde"]),Zi=function(l,a){function c(){let _=4e5;const T=l.label.slice(1);if(I4.has(T)){const I=l,P=I.base.type==="ordgroup"?I.base.body.length:1;let U,W,K;if(P>5)T==="widehat"||T==="widecheck"?(U=420,_=2364,K=.42,W=T+"4"):(U=312,_=2340,K=.34,W="tilde4");else{const xe=[1,1,2,2,3,3][P];T==="widehat"||T==="widecheck"?(_=[0,1062,2364,2364,2364][xe],U=[0,239,300,360,420][xe],K=[0,.24,.3,.3,.36,.42][xe],W=T+xe):(_=[0,600,1033,2339,2340][xe],U=[0,260,286,306,312][xe],K=[0,.26,.286,.3,.306,.34][xe],W="tilde"+xe)}const ne=new Qt(W),de=new an([ne],{width:"100%",height:C(K),viewBox:"0 0 "+_+" "+U,preserveAspectRatio:"none"});return{span:pr([],[de],a),minWidth:0,height:K}}else{const I=[],P=C4[T],[U,W,K]=P,ne=K/1e3,de=U.length;let xe,je;if(de===1){const $e=P[3];xe=["hide-tail"],je=[$e]}else if(de===2)xe=["halfarrow-left","halfarrow-right"],je=["xMinYMin","xMaxYMin"];else if(de===3)xe=["brace-left","brace-center","brace-right"],je=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
||
`+de+" children.");for(let $e=0;$e<de;$e++){const We=new Qt(U[$e]),nt=new an([We],{width:"400em",height:C(ne),viewBox:"0 0 "+_+" "+K,preserveAspectRatio:je[$e]+" slice"}),Rt=pr([xe[$e]],[nt],a);if(de===1)return{span:Rt,minWidth:W,height:ne};Rt.style.height=C(ne),I.push(Rt)}return{span:ie(["stretchy"],I,a),minWidth:W,height:ne}}}const{span:f,minWidth:m,height:w}=c();return f.height=w,f.style.height=C(w),m>0&&(f.style.minWidth=C(m)),f},M4=function(l,a,c,f,m){let w;const _=l.height+l.depth+c+f;if(/fbox|color|angl/.test(a)){if(w=ie(["stretchy",a],[],m),a==="fbox"){const T=m.color&&m.getColor();T&&(w.style.borderColor=T)}}else{const T=[];/^[bx]cancel$/.test(a)&&T.push(new qs({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&T.push(new qs({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const I=new an(T,{width:"100%",height:C(_)});w=pr([],[I],m)}return w.height=_,w.style.height=C(_),w};function Ue(l,a){if(!l||l.type!==a)throw new Error("Expected node of type "+a+", but got "+(l?"node of type "+l.type:String(l)));return l}function ea(l){const a=ta(l);if(!a)throw new Error("Expected node of symbol group type, but got "+(l?"node of type "+l.type:String(l)));return a}function ta(l){return l&&(l.type==="atom"||u4.hasOwnProperty(l.type))?l:null}const bu=l=>{if(l instanceof vt)return l;if(a4(l)&&l.children.length===1)return bu(l.children[0])},sl=(l,a)=>{let c,f,m;l&&l.type==="supsub"?(f=Ue(l.base,"accent"),c=f.base,l.base=c,m=i4(Ze(l,a)),l.base=f):(f=Ue(l,"accent"),c=f.base);const w=Ze(c,a.havingCrampedStyle()),_=f.isShifty&&k(c);let T=0;if(_){var I,P;T=(I=(P=bu(w))==null?void 0:P.skew)!=null?I:0}const U=f.label==="\\c";let W=U?w.height+w.depth:Math.min(w.height,a.fontMetrics().xHeight),K;if(f.isStretchy)K=Zi(f,a),K=Qe({positionType:"firstBaseline",children:[{type:"elem",elem:w},{type:"elem",elem:K,wrapperClasses:["svg-align"],wrapperStyle:T>0?{width:"calc(100% - "+C(2*T)+")",marginLeft:C(2*T)}:void 0}]});else{let de,xe;f.label==="\\vec"?(de=lu("vec",a),xe=ou.vec[1]):(de=Wi({mode:f.mode,text:f.label},a,"textord"),de=Zc(de),de.italic=0,xe=de.width,U&&(W+=de.depth)),K=ie(["accent-body"],[de]);const je=f.label==="\\textcircled";je&&(K.classes.push("accent-full"),W=w.height);let $e=T;je||($e-=xe/2),K.style.left=C($e),f.label==="\\textcircled"&&(K.style.top=".2em"),K=Qe({positionType:"firstBaseline",children:[{type:"elem",elem:w},{type:"kern",size:-W},{type:"elem",elem:K}]})}const ne=ie(["mord","accent"],[K],a);return m?(m.children[0]=ne,m.height=Math.max(ne.height,m.height),m.classes[0]="mord",m):ne},wu=(l,a)=>{const c=l.isStretchy?Qi(l.label):new le("mo",[_n(l.label,l.mode)]),f=new le("mover",[lt(l.base,a),c]);return f.setAttribute("accent","true"),f},O4=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(l=>"\\"+l).join("|"));we({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:(l,a)=>{const c=Yi(a[0]),f=!O4.test(l.funcName),m=!f||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:f,isShifty:m,base:c}},htmlBuilder:sl,mathmlBuilder:wu}),we({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(l,a)=>{const c=a[0];let f=l.parser.mode;return f==="math"&&(l.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+l.funcName+" works only in text mode"),f="text"),{type:"accent",mode:f,label:l.funcName,isStretchy:!1,isShifty:!0,base:c}},htmlBuilder:sl,mathmlBuilder:wu}),we({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(l,a)=>{let{parser:c,funcName:f}=l;const m=a[0];return{type:"accentUnder",mode:c.mode,label:f,base:m}},htmlBuilder:(l,a)=>{const c=Ze(l.base,a),f=Zi(l,a),m=l.label==="\\utilde"?.12:0,w=Qe({positionType:"top",positionData:c.height,children:[{type:"elem",elem:f,wrapperClasses:["svg-align"]},{type:"kern",size:m},{type:"elem",elem:c}]});return ie(["mord","accentunder"],[w],a)},mathmlBuilder:(l,a)=>{const c=Qi(l.label),f=new le("munder",[lt(l.base,a),c]);return f.setAttribute("accentunder","true"),f}});const na=l=>{const a=new le("mpadded",l?[l]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};we({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(l,a,c){let{parser:f,funcName:m}=l;return{type:"xArrow",mode:f.mode,label:m,body:a[0],below:c[0]}},htmlBuilder(l,a){const c=a.style;let f=a.havingStyle(c.sup());const m=rs(Ze(l.body,f,a),a),w=l.label.slice(0,2)==="\\x"?"x":"cd";m.classes.push(w+"-arrow-pad");let _;l.below&&(f=a.havingStyle(c.sub()),_=rs(Ze(l.below,f,a),a),_.classes.push(w+"-arrow-pad"));const T=Zi(l,a),I=-a.fontMetrics().axisHeight+.5*T.height;let P=-a.fontMetrics().axisHeight-.5*T.height-.111;(m.depth>.25||l.label==="\\xleftequilibrium")&&(P-=m.depth);let U;if(_){const W=-a.fontMetrics().axisHeight+_.height+.5*T.height+.111;U=Qe({positionType:"individualShift",children:[{type:"elem",elem:m,shift:P},{type:"elem",elem:T,shift:I},{type:"elem",elem:_,shift:W}]})}else U=Qe({positionType:"individualShift",children:[{type:"elem",elem:m,shift:P},{type:"elem",elem:T,shift:I}]});return U.children[0].children[0].children[1].classes.push("svg-align"),ie(["mrel","x-arrow"],[U],a)},mathmlBuilder(l,a){const c=Qi(l.label);c.setAttribute("minsize",l.label.charAt(0)==="x"?"1.75em":"3.0em");let f;if(l.body){const m=na(lt(l.body,a));if(l.below){const w=na(lt(l.below,a));f=new le("munderover",[c,w,m])}else f=new le("mover",[c,m])}else if(l.below){const m=na(lt(l.below,a));f=new le("munder",[c,m])}else f=na(),f=new le("mover",[c,f]);return f}});function vu(l,a){const c=$t(l.body,a,!0);return ie([l.mclass],c,a)}function _u(l,a){let c;const f=gn(l.body,a);return l.mclass==="minner"?c=new le("mpadded",f):l.mclass==="mord"?l.isCharacterBox?(c=f[0],c.type="mi"):c=new le("mi",f):(l.isCharacterBox?(c=f[0],c.type="mo"):c=new le("mo",f),l.mclass==="mbin"?(c.attributes.lspace="0.22em",c.attributes.rspace="0.22em"):l.mclass==="mpunct"?(c.attributes.lspace="0em",c.attributes.rspace="0.17em"):l.mclass==="mopen"||l.mclass==="mclose"?(c.attributes.lspace="0em",c.attributes.rspace="0em"):l.mclass==="minner"&&(c.attributes.lspace="0.0556em",c.attributes.width="+0.1111em")),c}we({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(l,a){let{parser:c,funcName:f}=l;const m=a[0];return{type:"mclass",mode:c.mode,mclass:"m"+f.slice(5),body:Ot(m),isCharacterBox:k(m)}},htmlBuilder:vu,mathmlBuilder:_u});const ra=l=>{const a=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return a.type==="atom"&&(a.family==="bin"||a.family==="rel")?"m"+a.family:"mord"};we({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(l,a){let{parser:c}=l;return{type:"mclass",mode:c.mode,mclass:ra(a[0]),body:Ot(a[1]),isCharacterBox:k(a[1])}}}),we({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(l,a){let{parser:c,funcName:f}=l;const m=a[1],w=a[0];let _;f!=="\\stackrel"?_=ra(m):_="mrel";const T={type:"op",mode:m.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:f!=="\\stackrel",body:Ot(m)},I={type:"supsub",mode:w.mode,base:T,sup:f==="\\underset"?null:w,sub:f==="\\underset"?w:null};return{type:"mclass",mode:c.mode,mclass:_,body:[I],isCharacterBox:k(I)}},htmlBuilder:vu,mathmlBuilder:_u}),we({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(l,a){let{parser:c}=l;return{type:"pmb",mode:c.mode,mclass:ra(a[0]),body:Ot(a[0])}},htmlBuilder(l,a){const c=$t(l.body,a,!0),f=ie([l.mclass],c,a);return f.style.textShadow="0.02em 0.01em 0.04px",f},mathmlBuilder(l,a){const c=gn(l.body,a),f=new le("mstyle",c);return f.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),f}});const L4={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},xu=()=>({type:"styling",body:[],mode:"math",style:"display"}),ku=l=>l.type==="textord"&&l.text==="@",R4=(l,a)=>(l.type==="mathord"||l.type==="atom")&&l.text===a;function D4(l,a,c){const f=L4[l];switch(f){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return c.callFunction(f,[a[0]],[a[1]]);case"\\uparrow":case"\\downarrow":{const m=c.callFunction("\\\\cdleft",[a[0]],[]),w={type:"atom",text:f,mode:"math",family:"rel"},_=c.callFunction("\\Big",[w],[]),T=c.callFunction("\\\\cdright",[a[1]],[]),I={type:"ordgroup",mode:"math",body:[m,_,T]};return c.callFunction("\\\\cdparent",[I],[])}case"\\\\cdlongequal":return c.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const m={type:"textord",text:"\\Vert",mode:"math"};return c.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function P4(l){const a=[];for(l.gullet.beginGroup(),l.gullet.macros.set("\\cr","\\\\\\relax"),l.gullet.beginGroup();;){a.push(l.parseExpression(!1,"\\\\")),l.gullet.endGroup(),l.gullet.beginGroup();const w=l.fetch().text;if(w==="&"||w==="\\\\")l.consume();else if(w==="\\end"){a[a.length-1].length===0&&a.pop();break}else throw new i("Expected \\\\ or \\cr or \\end",l.nextToken)}let c=[];const f=[c];for(let w=0;w<a.length;w++){const _=a[w];let T=xu();for(let I=0;I<_.length;I++)if(!ku(_[I]))T.body.push(_[I]);else{c.push(T),I+=1;const P=ea(_[I]).text,U=new Array(2);if(U[0]={type:"ordgroup",mode:"math",body:[]},U[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(P))if("<>AV".includes(P))for(let ne=0;ne<2;ne++){let de=!0;for(let xe=I+1;xe<_.length;xe++){if(R4(_[xe],P)){de=!1,I=xe;break}if(ku(_[xe]))throw new i("Missing a "+P+" character to complete a CD arrow.",_[xe]);U[ne].body.push(_[xe])}if(de)throw new i("Missing a "+P+" character to complete a CD arrow.",_[I])}else throw new i('Expected one of "<>AV=|." after @',_[I]);const K={type:"styling",body:[D4(P,U,l)],mode:"math",style:"display"};c.push(K),T=xu()}w%2===0?c.push(T):c.shift(),c=[],f.push(c)}l.gullet.endGroup(),l.gullet.endGroup();const m=new Array(f[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:f,arraystretch:1,addJot:!0,rowGaps:[null],cols:m,colSeparationType:"CD",hLinesBeforeRow:new Array(f.length+1).fill([])}}we({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(l,a){let{parser:c,funcName:f}=l;return{type:"cdlabel",mode:c.mode,side:f.slice(4),label:a[0]}},htmlBuilder(l,a){const c=a.havingStyle(a.style.sup()),f=rs(Ze(l.label,c,a),a);return f.classes.push("cd-label-"+l.side),f.style.bottom=C(.8-f.depth),f.height=0,f.depth=0,f},mathmlBuilder(l,a){let c=new le("mrow",[lt(l.label,a)]);return c=new le("mpadded",[c]),c.setAttribute("width","0"),l.side==="left"&&c.setAttribute("lspace","-1width"),c.setAttribute("voffset","0.7em"),c=new le("mstyle",[c]),c.setAttribute("displaystyle","false"),c.setAttribute("scriptlevel","1"),c}}),we({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(l,a){let{parser:c}=l;return{type:"cdlabelparent",mode:c.mode,fragment:a[0]}},htmlBuilder(l,a){const c=rs(Ze(l.fragment,a),a);return c.classes.push("cd-vert-arrow"),c},mathmlBuilder(l,a){return new le("mrow",[lt(l.fragment,a)])}}),we({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(l,a){let{parser:c}=l;const m=Ue(a[0],"ordgroup").body;let w="";for(let I=0;I<m.length;I++){const P=Ue(m[I],"textord");w+=P.text}let _=parseInt(w),T;if(isNaN(_))throw new i("\\@char has non-numeric argument "+w);if(_<0||_>=1114111)throw new i("\\@char with invalid code point "+w);return _<=65535?T=String.fromCharCode(_):(_-=65536,T=String.fromCharCode((_>>10)+55296,(_&1023)+56320)),{type:"textord",mode:c.mode,text:T}}});const Su=(l,a)=>{const c=$t(l.body,a.withColor(l.color),!1);return er(c)},Au=(l,a)=>{const c=gn(l.body,a.withColor(l.color)),f=new le("mstyle",c);return f.setAttribute("mathcolor",l.color),f};we({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(l,a){let{parser:c}=l;const f=Ue(a[0],"color-token").color,m=a[1];return{type:"color",mode:c.mode,color:f,body:Ot(m)}},htmlBuilder:Su,mathmlBuilder:Au}),we({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(l,a){let{parser:c,breakOnTokenText:f}=l;const m=Ue(a[0],"color-token").color;c.gullet.macros.set("\\current@color",m);const w=c.parseExpression(!0,f);return{type:"color",mode:c.mode,color:m,body:w}},htmlBuilder:Su,mathmlBuilder:Au}),we({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(l,a,c){let{parser:f}=l;const m=f.gullet.future().text==="["?f.parseSizeGroup(!0):null,w=!f.settings.displayMode||!f.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:f.mode,newLine:w,size:m&&Ue(m,"size").value}},htmlBuilder(l,a){const c=ie(["mspace"],[],a);return l.newLine&&(c.classes.push("newline"),l.size&&(c.style.marginTop=C(rt(l.size,a)))),c},mathmlBuilder(l,a){const c=new le("mspace");return l.newLine&&(c.setAttribute("linebreak","newline"),l.size&&c.setAttribute("height",C(rt(l.size,a)))),c}});const il={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Tu=l=>{const a=l.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new i("Expected a control sequence",l);return a},$4=l=>{let a=l.gullet.popToken();return a.text==="="&&(a=l.gullet.popToken(),a.text===" "&&(a=l.gullet.popToken())),a},Eu=(l,a,c,f)=>{let m=l.gullet.macros.get(c.text);m==null&&(c.noexpand=!0,m={tokens:[c],numArgs:0,unexpandable:!l.gullet.isExpandable(c.text)}),l.gullet.macros.set(a,m,f)};we({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(l){let{parser:a,funcName:c}=l;a.consumeSpaces();const f=a.fetch();if(il[f.text])return(c==="\\global"||c==="\\\\globallong")&&(f.text=il[f.text]),Ue(a.parseFunction(),"internal");throw new i("Invalid token after macro prefix",f)}}),we({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(l){let{parser:a,funcName:c}=l,f=a.gullet.popToken();const m=f.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(m))throw new i("Expected a control sequence",f);let w=0,_;const T=[[]];for(;a.gullet.future().text!=="{";)if(f=a.gullet.popToken(),f.text==="#"){if(a.gullet.future().text==="{"){_=a.gullet.future(),T[w].push("{");break}if(f=a.gullet.popToken(),!/^[1-9]$/.test(f.text))throw new i('Invalid argument number "'+f.text+'"');if(parseInt(f.text)!==w+1)throw new i('Argument number "'+f.text+'" out of order');w++,T.push([])}else{if(f.text==="EOF")throw new i("Expected a macro definition");T[w].push(f.text)}let{tokens:I}=a.gullet.consumeArg();return _&&I.unshift(_),(c==="\\edef"||c==="\\xdef")&&(I=a.gullet.expandTokens(I),I.reverse()),a.gullet.macros.set(m,{tokens:I,numArgs:w,delimiters:T},c===il[c]),{type:"internal",mode:a.mode}}}),we({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(l){let{parser:a,funcName:c}=l;const f=Tu(a.gullet.popToken());a.gullet.consumeSpaces();const m=$4(a);return Eu(a,f,m,c==="\\\\globallet"),{type:"internal",mode:a.mode}}}),we({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(l){let{parser:a,funcName:c}=l;const f=Tu(a.gullet.popToken()),m=a.gullet.popToken(),w=a.gullet.popToken();return Eu(a,f,w,c==="\\\\globalfuture"),a.gullet.pushToken(w),a.gullet.pushToken(m),{type:"internal",mode:a.mode}}});const Hs=function(l,a,c){const f=St.math[l]&&St.math[l].replace,m=jo(f||l,a,c);if(!m)throw new Error("Unsupported symbol "+l+" and font size "+a+".");return m},al=function(l,a,c,f){const m=c.havingBaseStyle(a),w=ie(f.concat(m.sizingClasses(c)),[l],c),_=m.sizeMultiplier/c.sizeMultiplier;return w.height*=_,w.depth*=_,w.maxFontSize=m.sizeMultiplier,w},Nu=function(l,a,c){const f=a.havingBaseStyle(c),m=(1-a.sizeMultiplier/f.sizeMultiplier)*a.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=C(m),l.height-=m,l.depth+=m},F4=function(l,a,c,f,m,w){const _=en(l,"Main-Regular",m,f),T=al(_,a,f,w);return Nu(T,f,a),T},B4=function(l,a,c,f){return en(l,"Size"+a+"-Regular",c,f)},Cu=function(l,a,c,f,m,w){const _=B4(l,a,m,f),T=al(ie(["delimsizing","size"+a],[_],f),ee.TEXT,f,w);return c&&Nu(T,f,ee.TEXT),T},ol=function(l,a,c){let f;return a==="Size1-Regular"?f="delim-size1":f="delim-size4",{type:"elem",elem:ie(["delimsizinginner",f],[ie([],[en(l,a,c)])])}},ll=function(l,a,c){const f=Un["Size4-Regular"][l.charCodeAt(0)]?Un["Size4-Regular"][l.charCodeAt(0)][4]:Un["Size1-Regular"][l.charCodeAt(0)][4],m=new Qt("inner",ge(l,Math.round(1e3*a))),w=new an([m],{width:C(f),height:C(a),style:"width:"+C(f),viewBox:"0 0 "+1e3*f+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),_=pr([],[w],c);return _.height=a,_.style.height=C(a),_.style.width=C(f),{type:"elem",elem:_}},cl=.008,sa={type:"kern",size:-1*cl},z4=new Set(["|","\\lvert","\\rvert","\\vert"]),q4=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Iu=function(l,a,c,f,m,w){let _,T,I,P,U="",W=0;_=I=P=l,T=null;let K="Size1-Regular";l==="\\uparrow"?I=P="⏐":l==="\\Uparrow"?I=P="‖":l==="\\downarrow"?_=I="⏐":l==="\\Downarrow"?_=I="‖":l==="\\updownarrow"?(_="\\uparrow",I="⏐",P="\\downarrow"):l==="\\Updownarrow"?(_="\\Uparrow",I="‖",P="\\Downarrow"):z4.has(l)?(I="∣",U="vert",W=333):q4.has(l)?(I="∥",U="doublevert",W=556):l==="["||l==="\\lbrack"?(_="⎡",I="⎢",P="⎣",K="Size4-Regular",U="lbrack",W=667):l==="]"||l==="\\rbrack"?(_="⎤",I="⎥",P="⎦",K="Size4-Regular",U="rbrack",W=667):l==="\\lfloor"||l==="⌊"?(I=_="⎢",P="⎣",K="Size4-Regular",U="lfloor",W=667):l==="\\lceil"||l==="⌈"?(_="⎡",I=P="⎢",K="Size4-Regular",U="lceil",W=667):l==="\\rfloor"||l==="⌋"?(I=_="⎥",P="⎦",K="Size4-Regular",U="rfloor",W=667):l==="\\rceil"||l==="⌉"?(_="⎤",I=P="⎥",K="Size4-Regular",U="rceil",W=667):l==="("||l==="\\lparen"?(_="⎛",I="⎜",P="⎝",K="Size4-Regular",U="lparen",W=875):l===")"||l==="\\rparen"?(_="⎞",I="⎟",P="⎠",K="Size4-Regular",U="rparen",W=875):l==="\\{"||l==="\\lbrace"?(_="⎧",T="⎨",P="⎩",I="⎪",K="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(_="⎫",T="⎬",P="⎭",I="⎪",K="Size4-Regular"):l==="\\lgroup"||l==="⟮"?(_="⎧",P="⎩",I="⎪",K="Size4-Regular"):l==="\\rgroup"||l==="⟯"?(_="⎫",P="⎭",I="⎪",K="Size4-Regular"):l==="\\lmoustache"||l==="⎰"?(_="⎧",P="⎭",I="⎪",K="Size4-Regular"):(l==="\\rmoustache"||l==="⎱")&&(_="⎫",P="⎩",I="⎪",K="Size4-Regular");const ne=Hs(_,K,m),de=ne.height+ne.depth,xe=Hs(I,K,m),je=xe.height+xe.depth,$e=Hs(P,K,m),We=$e.height+$e.depth;let nt=0,Rt=1;if(T!==null){const xn=Hs(T,K,m);nt=xn.height+xn.depth,Rt=2}const Ft=de+We+nt,Bt=Math.max(0,Math.ceil((a-Ft)/(Rt*je))),Yt=Ft+Bt*Rt*je;let is=f.fontMetrics().axisHeight;c&&(is*=f.sizeMultiplier);const ca=Yt/2-is,tn=[];if(U.length>0){const xn=Yt-de-We,as=Math.round(Yt*1e3),os=ue(U,Math.round(xn*1e3)),et=new Qt(U,os),At=(W/1e3).toFixed(3)+"em",ft=(as/1e3).toFixed(3)+"em",Dt=new an([et],{width:At,height:ft,viewBox:"0 0 "+W+" "+as}),kn=pr([],[Dt],f);kn.height=as/1e3,kn.style.width=At,kn.style.height=ft,tn.push({type:"elem",elem:kn})}else{if(tn.push(ol(P,K,m)),tn.push(sa),T===null){const xn=Yt-de-We+2*cl;tn.push(ll(I,xn,f))}else{const xn=(Yt-de-We-nt)/2+2*cl;tn.push(ll(I,xn,f)),tn.push(sa),tn.push(ol(T,K,m)),tn.push(sa),tn.push(ll(I,xn,f))}tn.push(sa),tn.push(ol(_,K,m))}const ua=f.havingBaseStyle(ee.TEXT),fa=Qe({positionType:"bottom",positionData:ca,children:tn});return al(ie(["delimsizing","mult"],[fa],ua),ee.TEXT,f,w)},ul=80,fl=.08,hl=function(l,a,c,f,m){const w=Ne(l,f,c),_=new Qt(l,w),T=new an([_],{width:"400em",height:C(a),viewBox:"0 0 400000 "+c,preserveAspectRatio:"xMinYMin slice"});return pr(["hide-tail"],[T],m)},U4=function(l,a){const c=a.havingBaseSizing(),f=Du("\\surd",l*c.sizeMultiplier,Ru,c);let m=c.sizeMultiplier;const w=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness);let _,T=0,I=0,P=0,U;return f.type==="small"?(P=1e3+1e3*w+ul,l<1?m=1:l<1.4&&(m=.7),T=(1+w+fl)/m,I=(1+w)/m,_=hl("sqrtMain",T,P,w,a),_.style.minWidth="0.853em",U=.833/m):f.type==="large"?(P=(1e3+ul)*Vs[f.size],I=(Vs[f.size]+w)/m,T=(Vs[f.size]+w+fl)/m,_=hl("sqrtSize"+f.size,T,P,w,a),_.style.minWidth="1.02em",U=1/m):(T=l+w+fl,I=l+w,P=Math.floor(1e3*l+w)+ul,_=hl("sqrtTall",T,P,w,a),_.style.minWidth="0.742em",U=1.056),_.height=I,_.style.height=C(T),{span:_,advanceWidth:U,ruleWidth:(a.fontMetrics().sqrtRuleThickness+w)*m}},Mu=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),H4=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Ou=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Vs=[0,1.2,1.8,2.4,3],Lu=function(l,a,c,f,m){if(l==="<"||l==="\\lt"||l==="⟨"?l="\\langle":(l===">"||l==="\\gt"||l==="⟩")&&(l="\\rangle"),Mu.has(l)||Ou.has(l))return Cu(l,a,!1,c,f,m);if(H4.has(l))return Iu(l,Vs[a],!1,c,f,m);throw new i("Illegal delimiter: '"+l+"'")},V4=[{type:"small",style:ee.SCRIPTSCRIPT},{type:"small",style:ee.SCRIPT},{type:"small",style:ee.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],j4=[{type:"small",style:ee.SCRIPTSCRIPT},{type:"small",style:ee.SCRIPT},{type:"small",style:ee.TEXT},{type:"stack"}],Ru=[{type:"small",style:ee.SCRIPTSCRIPT},{type:"small",style:ee.SCRIPT},{type:"small",style:ee.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],W4=function(l){if(l.type==="small")return"Main-Regular";if(l.type==="large")return"Size"+l.size+"-Regular";if(l.type==="stack")return"Size4-Regular";{const a=l.type;throw new Error("Add support for delim type '"+a+"' here.")}},Du=function(l,a,c,f){const m=Math.min(2,3-f.style.size);for(let w=m;w<c.length;w++){const _=c[w];if(_.type==="stack")break;const T=Hs(l,W4(_),"math");let I=T.height+T.depth;if(_.type==="small"){const P=f.havingBaseStyle(_.style);I*=P.sizeMultiplier}if(I>a)return _}return c[c.length-1]},dl=function(l,a,c,f,m,w){l==="<"||l==="\\lt"||l==="⟨"?l="\\langle":(l===">"||l==="\\gt"||l==="⟩")&&(l="\\rangle");let _;Ou.has(l)?_=V4:Mu.has(l)?_=Ru:_=j4;const T=Du(l,a,_,f);return T.type==="small"?F4(l,T.style,c,f,m,w):T.type==="large"?Cu(l,T.size,c,f,m,w):Iu(l,a,c,f,m,w)},ml=function(l,a,c,f,m,w){const _=f.fontMetrics().axisHeight*f.sizeMultiplier,T=901,I=5/f.fontMetrics().ptPerEm,P=Math.max(a-_,c+_),U=Math.max(P/500*T,2*P-I);return dl(l,U,!0,f,m,w)},Pu={"\\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}},G4=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","."]);function ia(l,a){const c=ta(l);if(c&&G4.has(c.text))return c;throw c?new i("Invalid delimiter '"+c.text+"' after '"+a.funcName+"'",l):new i("Invalid delimiter type '"+l.type+"'",l)}we({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:(l,a)=>{const c=ia(a[0],l);return{type:"delimsizing",mode:l.parser.mode,size:Pu[l.funcName].size,mclass:Pu[l.funcName].mclass,delim:c.text}},htmlBuilder:(l,a)=>l.delim==="."?ie([l.mclass]):Lu(l.delim,l.size,a,l.mode,[l.mclass]),mathmlBuilder:l=>{const a=[];l.delim!=="."&&a.push(_n(l.delim,l.mode));const c=new le("mo",a);l.mclass==="mopen"||l.mclass==="mclose"?c.setAttribute("fence","true"):c.setAttribute("fence","false"),c.setAttribute("stretchy","true");const f=C(Vs[l.size]);return c.setAttribute("minsize",f),c.setAttribute("maxsize",f),c}});function $u(l){if(!l.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}we({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(l,a)=>{const c=l.parser.gullet.macros.get("\\current@color");if(c&&typeof c!="string")throw new i("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:ia(a[0],l).text,color:c}}}),we({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(l,a)=>{const c=ia(a[0],l),f=l.parser;++f.leftrightDepth;const m=f.parseExpression(!1);--f.leftrightDepth,f.expect("\\right",!1);const w=Ue(f.parseFunction(),"leftright-right");return{type:"leftright",mode:f.mode,body:m,left:c.text,right:w.delim,rightColor:w.color}},htmlBuilder:(l,a)=>{$u(l);const c=$t(l.body,a,!0,["mopen","mclose"]);let f=0,m=0,w=!1;for(let I=0;I<c.length;I++)c[I].isMiddle?w=!0:(f=Math.max(c[I].height,f),m=Math.max(c[I].depth,m));f*=a.sizeMultiplier,m*=a.sizeMultiplier;let _;if(l.left==="."?_=Us(a,["mopen"]):_=ml(l.left,f,m,a,l.mode,["mopen"]),c.unshift(_),w)for(let I=1;I<c.length;I++){const U=c[I].isMiddle;U&&(c[I]=ml(U.delim,f,m,U.options,l.mode,[]))}let T;if(l.right===".")T=Us(a,["mclose"]);else{const I=l.rightColor?a.withColor(l.rightColor):a;T=ml(l.right,f,m,I,l.mode,["mclose"])}return c.push(T),ie(["minner"],c,a)},mathmlBuilder:(l,a)=>{$u(l);const c=gn(l.body,a);if(l.left!=="."){const f=new le("mo",[_n(l.left,l.mode)]);f.setAttribute("fence","true"),c.unshift(f)}if(l.right!=="."){const f=new le("mo",[_n(l.right,l.mode)]);f.setAttribute("fence","true"),l.rightColor&&f.setAttribute("mathcolor",l.rightColor),c.push(f)}return tl(c)}}),we({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(l,a)=>{const c=ia(a[0],l);if(!l.parser.leftrightDepth)throw new i("\\middle without preceding \\left",c);return{type:"middle",mode:l.parser.mode,delim:c.text}},htmlBuilder:(l,a)=>{let c;if(l.delim===".")c=Us(a,[]);else{c=Lu(l.delim,1,a,l.mode,[]);const f={delim:l.delim,options:a};c.isMiddle=f}return c},mathmlBuilder:(l,a)=>{const c=l.delim==="\\vert"||l.delim==="|"?_n("|","text"):_n(l.delim,l.mode),f=new le("mo",[c]);return f.setAttribute("fence","true"),f.setAttribute("lspace","0.05em"),f.setAttribute("rspace","0.05em"),f}});const pl=(l,a)=>{const c=rs(Ze(l.body,a),a),f=l.label.slice(1);let m=a.sizeMultiplier,w,_=0;const T=k(l.body);if(f==="sout")w=ie(["stretchy","sout"]),w.height=a.fontMetrics().defaultRuleThickness/m,_=-.5*a.fontMetrics().xHeight;else if(f==="phase"){const P=rt({number:.6,unit:"pt"},a),U=rt({number:.35,unit:"ex"},a),W=a.havingBaseSizing();m=m/W.sizeMultiplier;const K=c.height+c.depth+P+U;c.style.paddingLeft=C(K/2+P);const ne=Math.floor(1e3*K*m),de=dn(ne),xe=new an([new Qt("phase",de)],{width:"400em",height:C(ne/1e3),viewBox:"0 0 400000 "+ne,preserveAspectRatio:"xMinYMin slice"});w=pr(["hide-tail"],[xe],a),w.style.height=C(K),_=c.depth+P+U}else{/cancel/.test(f)?T||c.classes.push("cancel-pad"):f==="angl"?c.classes.push("anglpad"):c.classes.push("boxpad");let P=0,U=0,W=0;/box/.test(f)?(W=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness),P=a.fontMetrics().fboxsep+(f==="colorbox"?0:W),U=P):f==="angl"?(W=Math.max(a.fontMetrics().defaultRuleThickness,a.minRuleThickness),P=4*W,U=Math.max(0,.25-c.depth)):(P=T?.2:0,U=P),w=M4(c,f,P,U,a),/fbox|boxed|fcolorbox/.test(f)?(w.style.borderStyle="solid",w.style.borderWidth=C(W)):f==="angl"&&W!==.049&&(w.style.borderTopWidth=C(W),w.style.borderRightWidth=C(W)),_=c.depth+U,l.backgroundColor&&(w.style.backgroundColor=l.backgroundColor,l.borderColor&&(w.style.borderColor=l.borderColor))}let I;if(l.backgroundColor)I=Qe({positionType:"individualShift",children:[{type:"elem",elem:w,shift:_},{type:"elem",elem:c,shift:0}]});else{const P=/cancel|phase/.test(f)?["svg-align"]:[];I=Qe({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:w,shift:_,wrapperClasses:P}]})}return/cancel/.test(f)&&(I.height=c.height,I.depth=c.depth),/cancel/.test(f)&&!T?ie(["mord","cancel-lap"],[I],a):ie(["mord"],[I],a)},gl=(l,a)=>{let c=0;const f=new le(l.label.includes("colorbox")?"mpadded":"menclose",[lt(l.body,a)]);switch(l.label){case"\\cancel":f.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":f.setAttribute("notation","downdiagonalstrike");break;case"\\phase":f.setAttribute("notation","phasorangle");break;case"\\sout":f.setAttribute("notation","horizontalstrike");break;case"\\fbox":f.setAttribute("notation","box");break;case"\\angl":f.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(c=a.fontMetrics().fboxsep*a.fontMetrics().ptPerEm,f.setAttribute("width","+"+2*c+"pt"),f.setAttribute("height","+"+2*c+"pt"),f.setAttribute("lspace",c+"pt"),f.setAttribute("voffset",c+"pt"),l.label==="\\fcolorbox"){const m=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness);f.setAttribute("style","border: "+m+"em solid "+String(l.borderColor))}break;case"\\xcancel":f.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&f.setAttribute("mathbackground",l.backgroundColor),f};we({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(l,a,c){let{parser:f,funcName:m}=l;const w=Ue(a[0],"color-token").color,_=a[1];return{type:"enclose",mode:f.mode,label:m,backgroundColor:w,body:_}},htmlBuilder:pl,mathmlBuilder:gl}),we({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(l,a,c){let{parser:f,funcName:m}=l;const w=Ue(a[0],"color-token").color,_=Ue(a[1],"color-token").color,T=a[2];return{type:"enclose",mode:f.mode,label:m,backgroundColor:_,borderColor:w,body:T}},htmlBuilder:pl,mathmlBuilder:gl}),we({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(l,a){let{parser:c}=l;return{type:"enclose",mode:c.mode,label:"\\fbox",body:a[0]}}}),we({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(l,a){let{parser:c,funcName:f}=l;const m=a[0];return{type:"enclose",mode:c.mode,label:f,body:m}},htmlBuilder:pl,mathmlBuilder:gl}),we({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(l,a){let{parser:c}=l;return{type:"enclose",mode:c.mode,label:"\\angl",body:a[0]}}});const Fu={};function Hn(l){let{type:a,names:c,props:f,handler:m,htmlBuilder:w,mathmlBuilder:_}=l;const T={type:a,numArgs:f.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:m};for(let I=0;I<c.length;++I)Fu[c[I]]=T;w&&(Ki[a]=w),_&&(Xi[a]=_)}const Bu={};function N(l,a){Bu[l]=a}class on{constructor(a,c,f){this.lexer=a,this.start=c,this.end=f}static range(a,c){return c?!a||!a.loc||!c.loc||a.loc.lexer!==c.loc.lexer?null:new on(a.loc.lexer,a.loc.start,c.loc.end):a&&a.loc}}class yn{constructor(a,c){this.text=a,this.loc=c}range(a,c){return new yn(c,on.range(this,a))}}function zu(l){const a=[];l.consumeSpaces();let c=l.fetch().text;for(c==="\\relax"&&(l.consume(),l.consumeSpaces(),c=l.fetch().text);c==="\\hline"||c==="\\hdashline";)l.consume(),a.push(c==="\\hdashline"),l.consumeSpaces(),c=l.fetch().text;return a}const aa=l=>{if(!l.parser.settings.displayMode)throw new i("{"+l.envName+"} can be used only in display mode.")},K4=new Set(["gather","gather*"]);function yl(l){if(!l.includes("ed"))return!l.includes("*")}function yr(l,a,c){let{hskipBeforeAndAfter:f,addJot:m,cols:w,arraystretch:_,colSeparationType:T,autoTag:I,singleRow:P,emptySingleRow:U,maxNumCols:W,leqno:K}=a;if(l.gullet.beginGroup(),P||l.gullet.macros.set("\\cr","\\\\\\relax"),!_){const Rt=l.gullet.expandMacroAsText("\\arraystretch");if(Rt==null)_=1;else if(_=parseFloat(Rt),!_||_<0)throw new i("Invalid \\arraystretch: "+Rt)}l.gullet.beginGroup();let ne=[];const de=[ne],xe=[],je=[],$e=I!=null?[]:void 0;function We(){I&&l.gullet.macros.set("\\@eqnsw","1",!0)}function nt(){$e&&(l.gullet.macros.get("\\df@tag")?($e.push(l.subparse([new yn("\\df@tag")])),l.gullet.macros.set("\\df@tag",void 0,!0)):$e.push(!!I&&l.gullet.macros.get("\\@eqnsw")==="1"))}for(We(),je.push(zu(l));;){const Rt=l.parseExpression(!1,P?"\\end":"\\\\");l.gullet.endGroup(),l.gullet.beginGroup();let Ft={type:"ordgroup",mode:l.mode,body:Rt};c&&(Ft={type:"styling",mode:l.mode,style:c,body:[Ft]}),ne.push(Ft);const Bt=l.fetch().text;if(Bt==="&"){if(W&&ne.length===W){if(P||T)throw new i("Too many tab characters: &",l.nextToken);l.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}l.consume()}else if(Bt==="\\end"){nt(),ne.length===1&&Ft.type==="styling"&&Ft.body.length===1&&Ft.body[0].type==="ordgroup"&&Ft.body[0].body.length===0&&(de.length>1||!U)&&de.pop(),je.length<de.length+1&&je.push([]);break}else if(Bt==="\\\\"){l.consume();let Yt;l.gullet.future().text!==" "&&(Yt=l.parseSizeGroup(!0)),xe.push(Yt?Yt.value:null),nt(),je.push(zu(l)),ne=[],de.push(ne),We()}else throw new i("Expected & or \\\\ or \\cr or \\end",l.nextToken)}return l.gullet.endGroup(),l.gullet.endGroup(),{type:"array",mode:l.mode,addJot:m,arraystretch:_,body:de,cols:w,rowGaps:xe,hskipBeforeAndAfter:f,hLinesBeforeRow:je,colSeparationType:T,tags:$e,leqno:K}}function bl(l){return l.slice(0,1)==="d"?"display":"text"}const Vn=function(l,a){let c,f;const m=l.body.length,w=l.hLinesBeforeRow;let _=0;const T=new Array(m),I=[],P=Math.max(a.fontMetrics().arrayRuleWidth,a.minRuleThickness),U=1/a.fontMetrics().ptPerEm;let W=5*U;l.colSeparationType&&l.colSeparationType==="small"&&(W=.2778*(a.havingStyle(ee.SCRIPT).sizeMultiplier/a.sizeMultiplier));const K=l.colSeparationType==="CD"?rt({number:3,unit:"ex"},a):12*U,ne=3*U,de=l.arraystretch*K,xe=.7*de,je=.3*de;let $e=0;function We(et){for(let At=0;At<et.length;++At)At>0&&($e+=.25),I.push({pos:$e,isDashed:et[At]})}for(We(w[0]),c=0;c<l.body.length;++c){const et=l.body[c];let At=xe,ft=je;_<et.length&&(_=et.length);const Dt=new Array(et.length);for(f=0;f<et.length;++f){const Sn=Ze(et[f],a);ft<Sn.depth&&(ft=Sn.depth),At<Sn.height&&(At=Sn.height),Dt[f]=Sn}const kn=l.rowGaps[c];let rr=0;kn&&(rr=rt(kn,a),rr>0&&(rr+=je,ft<rr&&(ft=rr),rr=0)),l.addJot&&(ft+=ne),Dt.height=At,Dt.depth=ft,$e+=At,Dt.pos=$e,$e+=ft+rr,T[c]=Dt,We(w[c+1])}const nt=$e/2+a.fontMetrics().axisHeight,Rt=l.cols||[],Ft=[];let Bt,Yt;const is=[];if(l.tags&&l.tags.some(et=>et))for(c=0;c<m;++c){const et=T[c],At=et.pos-nt,ft=l.tags[c];let Dt;ft===!0?Dt=ie(["eqn-num"],[],a):ft===!1?Dt=ie([],[],a):Dt=ie([],$t(ft,a,!0),a),Dt.depth=et.depth,Dt.height=et.height,is.push({type:"elem",elem:Dt,shift:At})}for(f=0,Yt=0;f<_||Yt<Rt.length;++f,++Yt){var ca;let et=Rt[Yt],At=!0;for(;((tn=et)==null?void 0:tn.type)==="separator";){var tn;if(At||(Bt=ie(["arraycolsep"],[]),Bt.style.width=C(a.fontMetrics().doubleRuleSep),Ft.push(Bt)),et.separator==="|"||et.separator===":"){const Sn=et.separator==="|"?"solid":"dashed",On=ie(["vertical-separator"],[],a);On.style.height=C($e),On.style.borderRightWidth=C(P),On.style.borderRightStyle=Sn,On.style.margin="0 "+C(-P/2);const ha=$e-nt;ha&&(On.style.verticalAlign=C(-ha)),Ft.push(On)}else throw new i("Invalid separator type: "+et.separator);Yt++,et=Rt[Yt],At=!1}if(f>=_)continue;let ft;if(f>0||l.hskipBeforeAndAfter){var ua,fa;ft=(ua=(fa=et)==null?void 0:fa.pregap)!=null?ua:W,ft!==0&&(Bt=ie(["arraycolsep"],[]),Bt.style.width=C(ft),Ft.push(Bt))}const Dt=[];for(c=0;c<m;++c){const Sn=T[c],On=Sn[f];if(!On)continue;const ha=Sn.pos-nt;On.depth=Sn.depth,On.height=Sn.height,Dt.push({type:"elem",elem:On,shift:ha})}const kn=Qe({positionType:"individualShift",children:Dt}),rr=ie(["col-align-"+(((ca=et)==null?void 0:ca.align)||"c")],[kn]);if(Ft.push(rr),f<_-1||l.hskipBeforeAndAfter){var xn,as;ft=(xn=(as=et)==null?void 0:as.postgap)!=null?xn:W,ft!==0&&(Bt=ie(["arraycolsep"],[]),Bt.style.width=C(ft),Ft.push(Bt))}}let os=ie(["mtable"],Ft);if(I.length>0){const et=ns("hline",a,P),At=ns("hdashline",a,P),ft=[{type:"elem",elem:os,shift:0}];for(;I.length>0;){const Dt=I.pop(),kn=Dt.pos-nt;Dt.isDashed?ft.push({type:"elem",elem:At,shift:kn}):ft.push({type:"elem",elem:et,shift:kn})}os=Qe({positionType:"individualShift",children:ft})}if(is.length===0)return ie(["mord"],[os],a);{const et=Qe({positionType:"individualShift",children:is}),At=ie(["tag"],[et],a);return er([os,At])}},X4={c:"center ",l:"left ",r:"right "},jn=function(l,a){const c=[],f=new le("mtd",[],["mtr-glue"]),m=new le("mtd",[],["mml-eqn-num"]);for(let W=0;W<l.body.length;W++){const K=l.body[W],ne=[];for(let de=0;de<K.length;de++)ne.push(new le("mtd",[lt(K[de],a)]));l.tags&&l.tags[W]&&(ne.unshift(f),ne.push(f),l.leqno?ne.unshift(m):ne.push(m)),c.push(new le("mtr",ne))}let w=new le("mtable",c);const _=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);w.setAttribute("rowspacing",C(_));let T="",I="";if(l.cols&&l.cols.length>0){const W=l.cols;let K="",ne=!1,de=0,xe=W.length;W[0].type==="separator"&&(T+="top ",de=1),W[W.length-1].type==="separator"&&(T+="bottom ",xe-=1);for(let je=de;je<xe;je++){const $e=W[je];$e.type==="align"?(I+=X4[$e.align],ne&&(K+="none "),ne=!0):$e.type==="separator"&&ne&&(K+=$e.separator==="|"?"solid ":"dashed ",ne=!1)}w.setAttribute("columnalign",I.trim()),/[sd]/.test(K)&&w.setAttribute("columnlines",K.trim())}if(l.colSeparationType==="align"){const W=l.cols||[];let K="";for(let ne=1;ne<W.length;ne++)K+=ne%2?"0em ":"1em ";w.setAttribute("columnspacing",K.trim())}else l.colSeparationType==="alignat"||l.colSeparationType==="gather"?w.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?w.setAttribute("columnspacing","0.2778em"):l.colSeparationType==="CD"?w.setAttribute("columnspacing","0.5em"):w.setAttribute("columnspacing","1em");let P="";const U=l.hLinesBeforeRow;T+=U[0].length>0?"left ":"",T+=U[U.length-1].length>0?"right ":"";for(let W=1;W<U.length-1;W++)P+=U[W].length===0?"none ":U[W][0]?"dashed ":"solid ";return/[sd]/.test(P)&&w.setAttribute("rowlines",P.trim()),T!==""&&(w=new le("menclose",[w]),w.setAttribute("notation",T.trim())),l.arraystretch&&l.arraystretch<1&&(w=new le("mstyle",[w]),w.setAttribute("scriptlevel","1")),w},qu=function(l,a){l.envName.includes("ed")||aa(l);const c=[],f=l.envName.includes("at")?"alignat":"align",m=l.envName==="split",w=yr(l.parser,{cols:c,addJot:!0,autoTag:m?void 0:yl(l.envName),emptySingleRow:!0,colSeparationType:f,maxNumCols:m?2:void 0,leqno:l.parser.settings.leqno},"display");let _=0,T=0;const I={type:"ordgroup",mode:l.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){let U="";for(let W=0;W<a[0].body.length;W++){const K=Ue(a[0].body[W],"textord");U+=K.text}_=Number(U),T=_*2}const P=!T;w.body.forEach(function(U){for(let W=1;W<U.length;W+=2){const K=Ue(U[W],"styling");Ue(K.body[0],"ordgroup").body.unshift(I)}if(P)T<U.length&&(T=U.length);else{const W=U.length/2;if(_<W)throw new i("Too many math in a row: "+("expected "+_+", but got "+W),U[0])}});for(let U=0;U<T;++U){let W="r",K=0;U%2===1?W="l":U>0&&P&&(K=1),c[U]={type:"align",align:W,pregap:K,postgap:0}}return w.colSeparationType=P?"align":"alignat",w};Hn({type:"array",names:["array","darray"],props:{numArgs:1},handler(l,a){const m=(ta(a[0])?[a[0]]:Ue(a[0],"ordgroup").body).map(function(_){const I=ea(_).text;if("lcr".includes(I))return{type:"align",align:I};if(I==="|")return{type:"separator",separator:"|"};if(I===":")return{type:"separator",separator:":"};throw new i("Unknown column alignment: "+I,_)}),w={cols:m,hskipBeforeAndAfter:!0,maxNumCols:m.length};return yr(l.parser,w,bl(l.envName))},htmlBuilder:Vn,mathmlBuilder:jn}),Hn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(l){const a={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName.replace("*","")];let c="c";const f={hskipBeforeAndAfter:!1,cols:[{type:"align",align:c}]};if(l.envName.charAt(l.envName.length-1)==="*"){const _=l.parser;if(_.consumeSpaces(),_.fetch().text==="["){if(_.consume(),_.consumeSpaces(),c=_.fetch().text,!"lcr".includes(c))throw new i("Expected l or c or r",_.nextToken);_.consume(),_.consumeSpaces(),_.expect("]"),_.consume(),f.cols=[{type:"align",align:c}]}}const m=yr(l.parser,f,bl(l.envName)),w=Math.max(0,...m.body.map(_=>_.length));return m.cols=new Array(w).fill({type:"align",align:c}),a?{type:"leftright",mode:l.mode,body:[m],left:a[0],right:a[1],rightColor:void 0}:m},htmlBuilder:Vn,mathmlBuilder:jn}),Hn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(l){const a={arraystretch:.5},c=yr(l.parser,a,"script");return c.colSeparationType="small",c},htmlBuilder:Vn,mathmlBuilder:jn}),Hn({type:"array",names:["subarray"],props:{numArgs:1},handler(l,a){const m=(ta(a[0])?[a[0]]:Ue(a[0],"ordgroup").body).map(function(T){const P=ea(T).text;if("lc".includes(P))return{type:"align",align:P};throw new i("Unknown column alignment: "+P,T)});if(m.length>1)throw new i("{subarray} can contain only one column");const w={cols:m,hskipBeforeAndAfter:!1,arraystretch:.5},_=yr(l.parser,w,"script");if(_.body.length>0&&_.body[0].length>1)throw new i("{subarray} can contain only one column");return _},htmlBuilder:Vn,mathmlBuilder:jn}),Hn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(l){const a={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},c=yr(l.parser,a,bl(l.envName));return{type:"leftright",mode:l.mode,body:[c],left:l.envName.includes("r")?".":"\\{",right:l.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Vn,mathmlBuilder:jn}),Hn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:qu,htmlBuilder:Vn,mathmlBuilder:jn}),Hn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(l){K4.has(l.envName)&&aa(l);const a={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:yl(l.envName),emptySingleRow:!0,leqno:l.parser.settings.leqno};return yr(l.parser,a,"display")},htmlBuilder:Vn,mathmlBuilder:jn}),Hn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:qu,htmlBuilder:Vn,mathmlBuilder:jn}),Hn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(l){aa(l);const a={autoTag:yl(l.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:l.parser.settings.leqno};return yr(l.parser,a,"display")},htmlBuilder:Vn,mathmlBuilder:jn}),Hn({type:"array",names:["CD"],props:{numArgs:0},handler(l){return aa(l),P4(l.parser)},htmlBuilder:Vn,mathmlBuilder:jn}),N("\\nonumber","\\gdef\\@eqnsw{0}"),N("\\notag","\\nonumber"),we({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(l,a){throw new i(l.funcName+" valid only within array environment")}});var Uu=Fu;we({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(l,a){let{parser:c,funcName:f}=l;const m=a[0];if(m.type!=="ordgroup")throw new i("Invalid environment name",m);let w="";for(let _=0;_<m.body.length;++_)w+=Ue(m.body[_],"textord").text;if(f==="\\begin"){if(!Uu.hasOwnProperty(w))throw new i("No such environment: "+w,m);const _=Uu[w],{args:T,optArgs:I}=c.parseArguments("\\begin{"+w+"}",_),P={mode:c.mode,envName:w,parser:c},U=_.handler(P,T,I);c.expect("\\end",!1);const W=c.nextToken,K=Ue(c.parseFunction(),"environment");if(K.name!==w)throw new i("Mismatch: \\begin{"+w+"} matched by \\end{"+K.name+"}",W);return U}return{type:"environment",mode:c.mode,name:w,nameGroup:m}}});const Hu=(l,a)=>{const c=l.font,f=a.withFont(c);return Ze(l.body,f)},Vu=(l,a)=>{const c=l.font,f=a.withFont(c);return lt(l.body,f)},ju={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};we({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(l,a)=>{let{parser:c,funcName:f}=l;const m=Yi(a[0]);let w=f;return w in ju&&(w=ju[w]),{type:"font",mode:c.mode,font:w.slice(1),body:m}},htmlBuilder:Hu,mathmlBuilder:Vu}),we({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(l,a)=>{let{parser:c}=l;const f=a[0];return{type:"mclass",mode:c.mode,mclass:ra(f),body:[{type:"font",mode:c.mode,font:"boldsymbol",body:f}],isCharacterBox:k(f)}}}),we({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(l,a)=>{let{parser:c,funcName:f,breakOnTokenText:m}=l;const{mode:w}=c,_=c.parseExpression(!0,m),T="math"+f.slice(1);return{type:"font",mode:w,font:T,body:{type:"ordgroup",mode:c.mode,body:_}}},htmlBuilder:Hu,mathmlBuilder:Vu});const Y4=(l,a)=>{const c=a.style,f=c.fracNum(),m=c.fracDen();let w;w=a.havingStyle(f);const _=Ze(l.numer,w,a);if(l.continued){const We=8.5/a.fontMetrics().ptPerEm,nt=3.5/a.fontMetrics().ptPerEm;_.height=_.height<We?We:_.height,_.depth=_.depth<nt?nt:_.depth}w=a.havingStyle(m);const T=Ze(l.denom,w,a);let I,P,U;l.hasBarLine?(l.barSize?(P=rt(l.barSize,a),I=ns("frac-line",a,P)):I=ns("frac-line",a),P=I.height,U=I.height):(I=null,P=0,U=a.fontMetrics().defaultRuleThickness);let W,K,ne;c.size===ee.DISPLAY.size?(W=a.fontMetrics().num1,P>0?K=3*U:K=7*U,ne=a.fontMetrics().denom1):(P>0?(W=a.fontMetrics().num2,K=U):(W=a.fontMetrics().num3,K=3*U),ne=a.fontMetrics().denom2);let de;if(I){const We=a.fontMetrics().axisHeight;W-_.depth-(We+.5*P)<K&&(W+=K-(W-_.depth-(We+.5*P))),We-.5*P-(T.height-ne)<K&&(ne+=K-(We-.5*P-(T.height-ne)));const nt=-(We-.5*P);de=Qe({positionType:"individualShift",children:[{type:"elem",elem:T,shift:ne},{type:"elem",elem:I,shift:nt},{type:"elem",elem:_,shift:-W}]})}else{const We=W-_.depth-(T.height-ne);We<K&&(W+=.5*(K-We),ne+=.5*(K-We)),de=Qe({positionType:"individualShift",children:[{type:"elem",elem:T,shift:ne},{type:"elem",elem:_,shift:-W}]})}w=a.havingStyle(c),de.height*=w.sizeMultiplier/a.sizeMultiplier,de.depth*=w.sizeMultiplier/a.sizeMultiplier;let xe;c.size===ee.DISPLAY.size?xe=a.fontMetrics().delim1:c.size===ee.SCRIPTSCRIPT.size?xe=a.havingStyle(ee.SCRIPT).fontMetrics().delim2:xe=a.fontMetrics().delim2;let je,$e;return l.leftDelim==null?je=Us(a,["mopen"]):je=dl(l.leftDelim,xe,!0,a.havingStyle(c),l.mode,["mopen"]),l.continued?$e=ie([]):l.rightDelim==null?$e=Us(a,["mclose"]):$e=dl(l.rightDelim,xe,!0,a.havingStyle(c),l.mode,["mclose"]),ie(["mord"].concat(w.sizingClasses(a)),[je,ie(["mfrac"],[de]),$e],a)},J4=(l,a)=>{const c=new le("mfrac",[lt(l.numer,a),lt(l.denom,a)]);if(!l.hasBarLine)c.setAttribute("linethickness","0px");else if(l.barSize){const f=rt(l.barSize,a);c.setAttribute("linethickness",C(f))}if(l.leftDelim!=null||l.rightDelim!=null){const f=[];if(l.leftDelim!=null){const m=new le("mo",[new Lt(l.leftDelim.replace("\\",""))]);m.setAttribute("fence","true"),f.push(m)}if(f.push(c),l.rightDelim!=null){const m=new le("mo",[new Lt(l.rightDelim.replace("\\",""))]);m.setAttribute("fence","true"),f.push(m)}return tl(f)}return c},Wu=(l,a)=>a?{type:"styling",mode:l.mode,style:a,body:[l]}:l;we({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(l,a)=>{let{parser:c,funcName:f}=l;const m=a[0],w=a[1];let _,T=null,I=null;switch(f){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":_=!0;break;case"\\\\atopfrac":_=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":_=!1,T="(",I=")";break;case"\\\\bracefrac":_=!1,T="\\{",I="\\}";break;case"\\\\brackfrac":_=!1,T="[",I="]";break;default:throw new Error("Unrecognized genfrac command")}const P=f==="\\cfrac";let U=null;return P||f.startsWith("\\d")?U="display":f.startsWith("\\t")&&(U="text"),Wu({type:"genfrac",mode:c.mode,numer:m,denom:w,continued:P,hasBarLine:_,leftDelim:T,rightDelim:I,barSize:null},U)},htmlBuilder:Y4,mathmlBuilder:J4}),we({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(l){let{parser:a,funcName:c,token:f}=l,m;switch(c){case"\\over":m="\\frac";break;case"\\choose":m="\\binom";break;case"\\atop":m="\\\\atopfrac";break;case"\\brace":m="\\\\bracefrac";break;case"\\brack":m="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:a.mode,replaceWith:m,token:f}}});const Gu=["display","text","script","scriptscript"],Ku=function(l){let a=null;return l.length>0&&(a=l,a=a==="."?null:a),a};we({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(l,a){let{parser:c}=l;const f=a[4],m=a[5],w=Yi(a[0]),_=w.type==="atom"&&w.family==="open"?Ku(w.text):null,T=Yi(a[1]),I=T.type==="atom"&&T.family==="close"?Ku(T.text):null,P=Ue(a[2],"size");let U,W=null;P.isBlank?U=!0:(W=P.value,U=W.number>0);let K=null,ne=a[3];if(ne.type==="ordgroup"){if(ne.body.length>0){const de=Ue(ne.body[0],"textord");K=Gu[Number(de.text)]}}else ne=Ue(ne,"textord"),K=Gu[Number(ne.text)];return Wu({type:"genfrac",mode:c.mode,numer:f,denom:m,continued:!1,hasBarLine:U,barSize:W,leftDelim:_,rightDelim:I},K)}}),we({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(l,a){let{parser:c,funcName:f,token:m}=l;return{type:"infix",mode:c.mode,replaceWith:"\\\\abovefrac",size:Ue(a[0],"size").value,token:m}}}),we({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(l,a)=>{let{parser:c,funcName:f}=l;const m=a[0],w=Ue(a[1],"infix").size;if(!w)throw new Error("\\\\abovefrac expected size, but got "+String(w));const _=a[2],T=w.number>0;return{type:"genfrac",mode:c.mode,numer:m,denom:_,continued:!1,hasBarLine:T,barSize:w,leftDelim:null,rightDelim:null}}});const Xu=(l,a)=>{const c=a.style;let f,m;l.type==="supsub"?(f=l.sup?Ze(l.sup,a.havingStyle(c.sup()),a):Ze(l.sub,a.havingStyle(c.sub()),a),m=Ue(l.base,"horizBrace")):m=Ue(l,"horizBrace");const w=Ze(m.base,a.havingBaseStyle(ee.DISPLAY)),_=Zi(m,a);let T;if(m.isOver?(T=Qe({positionType:"firstBaseline",children:[{type:"elem",elem:w},{type:"kern",size:.1},{type:"elem",elem:_}]}),T.children[0].children[0].children[1].classes.push("svg-align")):(T=Qe({positionType:"bottom",positionData:w.depth+.1+_.height,children:[{type:"elem",elem:_},{type:"kern",size:.1},{type:"elem",elem:w}]}),T.children[0].children[0].children[0].classes.push("svg-align")),f){const I=ie(["mord",m.isOver?"mover":"munder"],[T],a);m.isOver?T=Qe({positionType:"firstBaseline",children:[{type:"elem",elem:I},{type:"kern",size:.2},{type:"elem",elem:f}]}):T=Qe({positionType:"bottom",positionData:I.depth+.2+f.height+f.depth,children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:I}]})}return ie(["mord",m.isOver?"mover":"munder"],[T],a)};we({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(l,a){let{parser:c,funcName:f}=l;return{type:"horizBrace",mode:c.mode,label:f,isOver:/^\\over/.test(f),base:a[0]}},htmlBuilder:Xu,mathmlBuilder:(l,a)=>{const c=Qi(l.label);return new le(l.isOver?"mover":"munder",[lt(l.base,a),c])}}),we({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(l,a)=>{let{parser:c}=l;const f=a[1],m=Ue(a[0],"url").url;return c.settings.isTrusted({command:"\\href",url:m})?{type:"href",mode:c.mode,href:m,body:Ot(f)}:c.formatUnsupportedCmd("\\href")},htmlBuilder:(l,a)=>{const c=$t(l.body,a,!1);return m4(l.href,[],c,a)},mathmlBuilder:(l,a)=>{let c=gr(l.body,a);return c instanceof le||(c=new le("mrow",[c])),c.setAttribute("href",l.href),c}}),we({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(l,a)=>{let{parser:c}=l;const f=Ue(a[0],"url").url;if(!c.settings.isTrusted({command:"\\url",url:f}))return c.formatUnsupportedCmd("\\url");const m=[];for(let _=0;_<f.length;_++){let T=f[_];T==="~"&&(T="\\textasciitilde"),m.push({type:"textord",mode:"text",text:T})}const w={type:"text",mode:c.mode,font:"\\texttt",body:m};return{type:"href",mode:c.mode,href:f,body:Ot(w)}}}),we({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(l,a){let{parser:c}=l;return{type:"hbox",mode:c.mode,body:Ot(a[0])}},htmlBuilder(l,a){const c=$t(l.body,a,!1);return er(c)},mathmlBuilder(l,a){return new le("mrow",gn(l.body,a))}}),we({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(l,a)=>{let{parser:c,funcName:f,token:m}=l;const w=Ue(a[0],"raw").string,_=a[1];c.settings.strict&&c.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");let T;const I={};switch(f){case"\\htmlClass":I.class=w,T={command:"\\htmlClass",class:w};break;case"\\htmlId":I.id=w,T={command:"\\htmlId",id:w};break;case"\\htmlStyle":I.style=w,T={command:"\\htmlStyle",style:w};break;case"\\htmlData":{const P=w.split(",");for(let U=0;U<P.length;U++){const W=P[U],K=W.indexOf("=");if(K<0)throw new i("\\htmlData key/value '"+W+"' missing equals sign");const ne=W.slice(0,K),de=W.slice(K+1);I["data-"+ne.trim()]=de}T={command:"\\htmlData",attributes:I};break}default:throw new Error("Unrecognized html command")}return c.settings.isTrusted(T)?{type:"html",mode:c.mode,attributes:I,body:Ot(_)}:c.formatUnsupportedCmd(f)},htmlBuilder:(l,a)=>{const c=$t(l.body,a,!1),f=["enclosing"];l.attributes.class&&f.push(...l.attributes.class.trim().split(/\s+/));const m=ie(f,c,a);for(const w in l.attributes)w!=="class"&&l.attributes.hasOwnProperty(w)&&m.setAttribute(w,l.attributes[w]);return m},mathmlBuilder:(l,a)=>gr(l.body,a)}),we({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(l,a)=>{let{parser:c}=l;return{type:"htmlmathml",mode:c.mode,html:Ot(a[0]),mathml:Ot(a[1])}},htmlBuilder:(l,a)=>{const c=$t(l.html,a,!1);return er(c)},mathmlBuilder:(l,a)=>gr(l.mathml,a)});const wl=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};{const a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!a)throw new i("Invalid size: '"+l+"' in \\includegraphics");const c={number:+(a[1]+a[2]),unit:a[3]};if(!vn(c))throw new i("Invalid unit: '"+c.unit+"' in \\includegraphics.");return c}};we({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(l,a,c)=>{let{parser:f}=l,m={number:0,unit:"em"},w={number:.9,unit:"em"},_={number:0,unit:"em"},T="";if(c[0]){const U=Ue(c[0],"raw").string.split(",");for(let W=0;W<U.length;W++){const K=U[W].split("=");if(K.length===2){const ne=K[1].trim();switch(K[0].trim()){case"alt":T=ne;break;case"width":m=wl(ne);break;case"height":w=wl(ne);break;case"totalheight":_=wl(ne);break;default:throw new i("Invalid key: '"+K[0]+"' in \\includegraphics.")}}}}const I=Ue(a[0],"url").url;return T===""&&(T=I,T=T.replace(/^.*[\\/]/,""),T=T.substring(0,T.lastIndexOf("."))),f.settings.isTrusted({command:"\\includegraphics",url:I})?{type:"includegraphics",mode:f.mode,alt:T,width:m,height:w,totalheight:_,src:I}:f.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(l,a)=>{const c=rt(l.height,a);let f=0;l.totalheight.number>0&&(f=rt(l.totalheight,a)-c);let m=0;l.width.number>0&&(m=rt(l.width,a));const w={height:C(c+f)};m>0&&(w.width=C(m)),f>0&&(w.verticalAlign=C(-f));const _=new st(l.src,l.alt,w);return _.height=c,_.depth=f,_},mathmlBuilder:(l,a)=>{const c=new le("mglyph",[]);c.setAttribute("alt",l.alt);const f=rt(l.height,a);let m=0;if(l.totalheight.number>0&&(m=rt(l.totalheight,a)-f,c.setAttribute("valign",C(-m))),c.setAttribute("height",C(f+m)),l.width.number>0){const w=rt(l.width,a);c.setAttribute("width",C(w))}return c.setAttribute("src",l.src),c}}),we({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(l,a){let{parser:c,funcName:f}=l;const m=Ue(a[0],"size");if(c.settings.strict){const w=f[1]==="m",_=m.value.unit==="mu";w?(_||c.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+f+" supports only mu units, "+("not "+m.value.unit+" units")),c.mode!=="math"&&c.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+f+" works only in math mode")):_&&c.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+f+" doesn't support mu units")}return{type:"kern",mode:c.mode,dimension:m.value}},htmlBuilder(l,a){return au(l.dimension,a)},mathmlBuilder(l,a){const c=rt(l.dimension,a);return new hu(c)}}),we({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(l,a)=>{let{parser:c,funcName:f}=l;const m=a[0];return{type:"lap",mode:c.mode,alignment:f.slice(5),body:m}},htmlBuilder:(l,a)=>{let c;l.alignment==="clap"?(c=ie([],[Ze(l.body,a)]),c=ie(["inner"],[c],a)):c=ie(["inner"],[Ze(l.body,a)]);const f=ie(["fix"],[]);let m=ie([l.alignment],[c,f],a);const w=ie(["strut"]);return w.style.height=C(m.height+m.depth),m.depth&&(w.style.verticalAlign=C(-m.depth)),m.children.unshift(w),m=ie(["thinbox"],[m],a),ie(["mord","vbox"],[m],a)},mathmlBuilder:(l,a)=>{const c=new le("mpadded",[lt(l.body,a)]);if(l.alignment!=="rlap"){const f=l.alignment==="llap"?"-1":"-0.5";c.setAttribute("lspace",f+"width")}return c.setAttribute("width","0px"),c}}),we({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(l,a){let{funcName:c,parser:f}=l;const m=f.mode;f.switchMode("math");const w=c==="\\("?"\\)":"$",_=f.parseExpression(!1,w);return f.expect(w),f.switchMode(m),{type:"styling",mode:f.mode,style:"text",body:_}}}),we({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(l,a){throw new i("Mismatched "+l.funcName)}});const Yu=(l,a)=>{switch(a.style.size){case ee.DISPLAY.size:return l.display;case ee.TEXT.size:return l.text;case ee.SCRIPT.size:return l.script;case ee.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};we({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(l,a)=>{let{parser:c}=l;return{type:"mathchoice",mode:c.mode,display:Ot(a[0]),text:Ot(a[1]),script:Ot(a[2]),scriptscript:Ot(a[3])}},htmlBuilder:(l,a)=>{const c=Yu(l,a),f=$t(c,a,!1);return er(f)},mathmlBuilder:(l,a)=>{const c=Yu(l,a);return gr(c,a)}});const Ju=(l,a,c,f,m,w,_)=>{l=ie([],[l]);const T=c&&k(c);let I,P;if(a){const K=Ze(a,f.havingStyle(m.sup()),f);P={elem:K,kern:Math.max(f.fontMetrics().bigOpSpacing1,f.fontMetrics().bigOpSpacing3-K.depth)}}if(c){const K=Ze(c,f.havingStyle(m.sub()),f);I={elem:K,kern:Math.max(f.fontMetrics().bigOpSpacing2,f.fontMetrics().bigOpSpacing4-K.height)}}let U;if(P&&I){const K=f.fontMetrics().bigOpSpacing5+I.elem.height+I.elem.depth+I.kern+l.depth+_;U=Qe({positionType:"bottom",positionData:K,children:[{type:"kern",size:f.fontMetrics().bigOpSpacing5},{type:"elem",elem:I.elem,marginLeft:C(-w)},{type:"kern",size:I.kern},{type:"elem",elem:l},{type:"kern",size:P.kern},{type:"elem",elem:P.elem,marginLeft:C(w)},{type:"kern",size:f.fontMetrics().bigOpSpacing5}]})}else if(I){const K=l.height-_;U=Qe({positionType:"top",positionData:K,children:[{type:"kern",size:f.fontMetrics().bigOpSpacing5},{type:"elem",elem:I.elem,marginLeft:C(-w)},{type:"kern",size:I.kern},{type:"elem",elem:l}]})}else if(P){const K=l.depth+_;U=Qe({positionType:"bottom",positionData:K,children:[{type:"elem",elem:l},{type:"kern",size:P.kern},{type:"elem",elem:P.elem,marginLeft:C(w)},{type:"kern",size:f.fontMetrics().bigOpSpacing5}]})}else return l;const W=[U];if(I&&w!==0&&!T){const K=ie(["mspace"],[],f);K.style.marginRight=C(w),W.unshift(K)}return ie(["mop","op-limits"],W,f)},Qu=new Set(["\\smallint"]),ss=(l,a)=>{let c,f,m=!1,w;l.type==="supsub"?(c=l.sup,f=l.sub,w=Ue(l.base,"op"),m=!0):w=Ue(l,"op");const _=a.style;let T=!1;_.size===ee.DISPLAY.size&&w.symbol&&!Qu.has(w.name)&&(T=!0);let I;if(w.symbol){const W=T?"Size2-Regular":"Size1-Regular";let K="";if((w.name==="\\oiint"||w.name==="\\oiiint")&&(K=w.name.slice(1),w.name=K==="oiint"?"\\iint":"\\iiint"),I=en(w.name,W,"math",a,["mop","op-symbol",T?"large-op":"small-op"]),K.length>0){const ne=I.italic,de=lu(K+"Size"+(T?"2":"1"),a);I=Qe({positionType:"individualShift",children:[{type:"elem",elem:I,shift:0},{type:"elem",elem:de,shift:T?.08:0}]}),w.name="\\"+K,I.classes.unshift("mop"),I.italic=ne}}else if(w.body){const W=$t(w.body,a,!0);W.length===1&&W[0]instanceof vt?(I=W[0],I.classes[0]="mop"):I=ie(["mop"],W,a)}else{const W=[];for(let K=1;K<w.name.length;K++)W.push(Ko(w.name[K],w.mode,a));I=ie(["mop"],W,a)}let P=0,U=0;return(I instanceof vt||w.name==="\\oiint"||w.name==="\\oiiint")&&!w.suppressBaseShift&&(P=(I.height-I.depth)/2-a.fontMetrics().axisHeight,U=I.italic||0),m?Ju(I,c,f,a,_,U,P):(P&&(I.style.position="relative",I.style.top=C(P)),I)},js=(l,a)=>{let c;if(l.symbol)c=new le("mo",[_n(l.name,l.mode)]),Qu.has(l.name)&&c.setAttribute("largeop","false");else if(l.body)c=new le("mo",gn(l.body,a));else{c=new le("mi",[new Lt(l.name.slice(1))]);const f=new le("mo",[_n("","text")]);l.parentIsSupSub?c=new le("mrow",[c,f]):c=fu([c,f])}return c},Q4={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};we({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(l,a)=>{let{parser:c,funcName:f}=l,m=f;return m.length===1&&(m=Q4[m]),{type:"op",mode:c.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:m}},htmlBuilder:ss,mathmlBuilder:js}),we({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(l,a)=>{let{parser:c}=l;const f=a[0];return{type:"op",mode:c.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ot(f)}},htmlBuilder:ss,mathmlBuilder:js});const Z4={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};we({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"],props:{numArgs:0},handler(l){let{parser:a,funcName:c}=l;return{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:c}},htmlBuilder:ss,mathmlBuilder:js}),we({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(l){let{parser:a,funcName:c}=l;return{type:"op",mode:a.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:c}},htmlBuilder:ss,mathmlBuilder:js}),we({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(l){let{parser:a,funcName:c}=l,f=c;return f.length===1&&(f=Z4[f]),{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:f}},htmlBuilder:ss,mathmlBuilder:js});const Zu=(l,a)=>{let c,f,m=!1,w;l.type==="supsub"?(c=l.sup,f=l.sub,w=Ue(l.base,"operatorname"),m=!0):w=Ue(l,"operatorname");let _;if(w.body.length>0){const T=w.body.map(P=>{const U="text"in P?P.text:void 0;return typeof U=="string"?{type:"textord",mode:P.mode,text:U}:P}),I=$t(T,a.withFont("mathrm"),!0);for(let P=0;P<I.length;P++){const U=I[P];U instanceof vt&&(U.text=U.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}_=ie(["mop"],I,a)}else _=ie(["mop"],[],a);return m?Ju(_,c,f,a,a.style,0,0):_};we({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(l,a)=>{let{parser:c,funcName:f}=l;const m=a[0];return{type:"operatorname",mode:c.mode,body:Ot(m),alwaysHandleSupSub:f==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Zu,mathmlBuilder:(l,a)=>{let c=gn(l.body,a.withFont("mathrm")),f=!0;for(let _=0;_<c.length;_++){const T=c[_];if(!(T instanceof hu))if(T instanceof le)switch(T.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{const I=T.children[0];T.children.length===1&&I instanceof Lt?I.text=I.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):f=!1;break}default:f=!1}else f=!1}if(f){const _=c.map(T=>T.toText()).join("");c=[new Lt(_)]}const m=new le("mi",c);m.setAttribute("mathvariant","normal");const w=new le("mo",[_n("","text")]);return l.parentIsSupSub?new le("mrow",[m,w]):fu([m,w])}}),N("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Lr({type:"ordgroup",htmlBuilder(l,a){return l.semisimple?er($t(l.body,a,!1)):ie(["mord"],$t(l.body,a,!0),a)},mathmlBuilder(l,a){return gr(l.body,a,!0)}}),we({type:"overline",names:["\\overline"],props:{numArgs:1},handler(l,a){let{parser:c}=l;const f=a[0];return{type:"overline",mode:c.mode,body:f}},htmlBuilder(l,a){const c=Ze(l.body,a.havingCrampedStyle()),f=ns("overline-line",a),m=a.fontMetrics().defaultRuleThickness,w=Qe({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:3*m},{type:"elem",elem:f},{type:"kern",size:m}]});return ie(["mord","overline"],[w],a)},mathmlBuilder(l,a){const c=new le("mo",[new Lt("‾")]);c.setAttribute("stretchy","true");const f=new le("mover",[lt(l.body,a),c]);return f.setAttribute("accent","true"),f}}),we({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(l,a)=>{let{parser:c}=l;const f=a[0];return{type:"phantom",mode:c.mode,body:Ot(f)}},htmlBuilder:(l,a)=>{const c=$t(l.body,a.withPhantom(),!1);return er(c)},mathmlBuilder:(l,a)=>{const c=gn(l.body,a);return new le("mphantom",c)}}),N("\\hphantom","\\smash{\\phantom{#1}}"),we({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(l,a)=>{let{parser:c}=l;const f=a[0];return{type:"vphantom",mode:c.mode,body:f}},htmlBuilder:(l,a)=>{const c=ie(["inner"],[Ze(l.body,a.withPhantom())]),f=ie(["fix"],[]);return ie(["mord","rlap"],[c,f],a)},mathmlBuilder:(l,a)=>{const c=gn(Ot(l.body),a),f=new le("mphantom",c),m=new le("mpadded",[f]);return m.setAttribute("width","0px"),m}}),we({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(l,a){let{parser:c}=l;const f=Ue(a[0],"size").value,m=a[1];return{type:"raisebox",mode:c.mode,dy:f,body:m}},htmlBuilder(l,a){const c=Ze(l.body,a),f=rt(l.dy,a);return Qe({positionType:"shift",positionData:-f,children:[{type:"elem",elem:c}]})},mathmlBuilder(l,a){const c=new le("mpadded",[lt(l.body,a)]),f=l.dy.number+l.dy.unit;return c.setAttribute("voffset",f),c}}),we({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(l){let{parser:a}=l;return{type:"internal",mode:a.mode}}}),we({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(l,a,c){let{parser:f}=l;const m=c[0],w=Ue(a[0],"size"),_=Ue(a[1],"size");return{type:"rule",mode:f.mode,shift:m&&Ue(m,"size").value,width:w.value,height:_.value}},htmlBuilder(l,a){const c=ie(["mord","rule"],[],a),f=rt(l.width,a),m=rt(l.height,a),w=l.shift?rt(l.shift,a):0;return c.style.borderRightWidth=C(f),c.style.borderTopWidth=C(m),c.style.bottom=C(w),c.width=f,c.height=m+w,c.depth=-w,c.maxFontSize=m*1.125*a.sizeMultiplier,c},mathmlBuilder(l,a){const c=rt(l.width,a),f=rt(l.height,a),m=l.shift?rt(l.shift,a):0,w=a.color&&a.getColor()||"black",_=new le("mspace");_.setAttribute("mathbackground",w),_.setAttribute("width",C(c)),_.setAttribute("height",C(f));const T=new le("mpadded",[_]);return m>=0?T.setAttribute("height",C(m)):(T.setAttribute("height",C(m)),T.setAttribute("depth",C(-m))),T.setAttribute("voffset",C(m)),T}});function ef(l,a,c){const f=$t(l,a,!1),m=a.sizeMultiplier/c.sizeMultiplier;for(let w=0;w<f.length;w++){const _=f[w].classes.indexOf("sizing");_<0?Array.prototype.push.apply(f[w].classes,a.sizingClasses(c)):f[w].classes[_+1]==="reset-size"+a.size&&(f[w].classes[_+1]="reset-size"+c.size),f[w].height*=m,f[w].depth*=m}return er(f)}const tf=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];we({type:"sizing",names:tf,props:{numArgs:0,allowedInText:!0},handler:(l,a)=>{let{breakOnTokenText:c,funcName:f,parser:m}=l;const w=m.parseExpression(!1,c);return{type:"sizing",mode:m.mode,size:tf.indexOf(f)+1,body:w}},htmlBuilder:(l,a)=>{const c=a.havingSize(l.size);return ef(l.body,c,a)},mathmlBuilder:(l,a)=>{const c=a.havingSize(l.size),f=gn(l.body,c),m=new le("mstyle",f);return m.setAttribute("mathsize",C(c.sizeMultiplier)),m}}),we({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(l,a,c)=>{let{parser:f}=l,m=!1,w=!1;const _=c[0]&&Ue(c[0],"ordgroup");if(_){let I="";for(let P=0;P<_.body.length;++P){const U=_.body[P];if(I=ea(U).text,I==="t")m=!0;else if(I==="b")w=!0;else{m=!1,w=!1;break}}}else m=!0,w=!0;const T=a[0];return{type:"smash",mode:f.mode,body:T,smashHeight:m,smashDepth:w}},htmlBuilder:(l,a)=>{const c=ie([],[Ze(l.body,a)]);if(!l.smashHeight&&!l.smashDepth)return c;if(l.smashHeight&&(c.height=0),l.smashDepth&&(c.depth=0),l.smashHeight&&l.smashDepth)return ie(["mord","smash"],[c],a);if(c.children)for(let m=0;m<c.children.length;m++)l.smashHeight&&(c.children[m].height=0),l.smashDepth&&(c.children[m].depth=0);const f=Qe({positionType:"firstBaseline",children:[{type:"elem",elem:c}]});return ie(["mord"],[f],a)},mathmlBuilder:(l,a)=>{const c=new le("mpadded",[lt(l.body,a)]);return l.smashHeight&&c.setAttribute("height","0px"),l.smashDepth&&c.setAttribute("depth","0px"),c}}),we({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(l,a,c){let{parser:f}=l;const m=c[0],w=a[0];return{type:"sqrt",mode:f.mode,body:w,index:m}},htmlBuilder(l,a){let c=Ze(l.body,a.havingCrampedStyle());c.height===0&&(c.height=a.fontMetrics().xHeight),c=rs(c,a);const m=a.fontMetrics().defaultRuleThickness;let w=m;a.style.id<ee.TEXT.id&&(w=a.fontMetrics().xHeight);let _=m+w/4;const T=c.height+c.depth+_+m,{span:I,ruleWidth:P,advanceWidth:U}=U4(T,a),W=I.height-P;W>c.height+c.depth+_&&(_=(_+W-c.height-c.depth)/2);const K=I.height-c.height-_-P;c.style.paddingLeft=C(U);const ne=Qe({positionType:"firstBaseline",children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:-(c.height+K)},{type:"elem",elem:I},{type:"kern",size:P}]});if(l.index){const de=a.havingStyle(ee.SCRIPTSCRIPT),xe=Ze(l.index,de,a),je=.6*(ne.height-ne.depth),$e=Qe({positionType:"shift",positionData:-je,children:[{type:"elem",elem:xe}]}),We=ie(["root"],[$e]);return ie(["mord","sqrt"],[We,ne],a)}else return ie(["mord","sqrt"],[ne],a)},mathmlBuilder(l,a){const{body:c,index:f}=l;return f?new le("mroot",[lt(c,a),lt(f,a)]):new le("msqrt",[lt(c,a)])}});const nf={display:ee.DISPLAY,text:ee.TEXT,script:ee.SCRIPT,scriptscript:ee.SCRIPTSCRIPT};we({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(l,a){let{breakOnTokenText:c,funcName:f,parser:m}=l;const w=m.parseExpression(!0,c),_=f.slice(1,f.length-5);return{type:"styling",mode:m.mode,style:_,body:w}},htmlBuilder(l,a){const c=nf[l.style],f=a.havingStyle(c).withFont("");return ef(l.body,f,a)},mathmlBuilder(l,a){const c=nf[l.style],f=a.havingStyle(c),m=gn(l.body,f),w=new le("mstyle",m),T={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[l.style];return w.setAttribute("scriptlevel",T[0]),w.setAttribute("displaystyle",T[1]),w}});const eg=function(l,a){const c=l.base;return c?c.type==="op"?c.limits&&(a.style.size===ee.DISPLAY.size||c.alwaysHandleSupSub)?ss:null:c.type==="operatorname"?c.alwaysHandleSupSub&&(a.style.size===ee.DISPLAY.size||c.limits)?Zu:null:c.type==="accent"?k(c.base)?sl:null:c.type==="horizBrace"&&!l.sub===c.isOver?Xu:null:null};Lr({type:"supsub",htmlBuilder(l,a){const c=eg(l,a);if(c)return c(l,a);const{base:f,sup:m,sub:w}=l,_=Ze(f,a);let T,I;const P=a.fontMetrics();let U=0,W=0;const K=f&&k(f);if(m){const nt=a.havingStyle(a.style.sup());T=Ze(m,nt,a),K||(U=_.height-nt.fontMetrics().supDrop*nt.sizeMultiplier/a.sizeMultiplier)}if(w){const nt=a.havingStyle(a.style.sub());I=Ze(w,nt,a),K||(W=_.depth+nt.fontMetrics().subDrop*nt.sizeMultiplier/a.sizeMultiplier)}let ne;a.style===ee.DISPLAY?ne=P.sup1:a.style.cramped?ne=P.sup3:ne=P.sup2;const de=a.sizeMultiplier,xe=C(.5/P.ptPerEm/de);let je=null;if(I){const nt=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(_ instanceof vt||nt)&&(je=C(-_.italic))}let $e;if(T&&I){U=Math.max(U,ne,T.depth+.25*P.xHeight),W=Math.max(W,P.sub2);const Rt=4*P.defaultRuleThickness;if(U-T.depth-(I.height-W)<Rt){W=Rt-(U-T.depth)+I.height;const Bt=.8*P.xHeight-(U-T.depth);Bt>0&&(U+=Bt,W-=Bt)}const Ft=[{type:"elem",elem:I,shift:W,marginRight:xe,marginLeft:je},{type:"elem",elem:T,shift:-U,marginRight:xe}];$e=Qe({positionType:"individualShift",children:Ft})}else if(I)W=Math.max(W,P.sub1,I.height-.8*P.xHeight),$e=Qe({positionType:"shift",positionData:W,children:[{type:"elem",elem:I,marginLeft:je,marginRight:xe}]});else if(T)U=Math.max(U,ne,T.depth+.25*P.xHeight),$e=Qe({positionType:"shift",positionData:-U,children:[{type:"elem",elem:T,marginRight:xe}]});else throw new Error("supsub must have either sup or sub.");const We=Zo(_,"right")||"mord";return ie([We],[_,ie(["msupsub"],[$e])],a)},mathmlBuilder(l,a){let c=!1,f,m;l.base&&l.base.type==="horizBrace"&&(m=!!l.sup,m===l.base.isOver&&(c=!0,f=l.base.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);const w=[lt(l.base,a)];l.sub&&w.push(lt(l.sub,a)),l.sup&&w.push(lt(l.sup,a));let _;if(c)_=f?"mover":"munder";else if(l.sub)if(l.sup){const T=l.base;T&&T.type==="op"&&T.limits&&a.style===ee.DISPLAY||T&&T.type==="operatorname"&&T.alwaysHandleSupSub&&(a.style===ee.DISPLAY||T.limits)?_="munderover":_="msubsup"}else{const T=l.base;T&&T.type==="op"&&T.limits&&(a.style===ee.DISPLAY||T.alwaysHandleSupSub)||T&&T.type==="operatorname"&&T.alwaysHandleSupSub&&(T.limits||a.style===ee.DISPLAY)?_="munder":_="msub"}else{const T=l.base;T&&T.type==="op"&&T.limits&&(a.style===ee.DISPLAY||T.alwaysHandleSupSub)||T&&T.type==="operatorname"&&T.alwaysHandleSupSub&&(T.limits||a.style===ee.DISPLAY)?_="mover":_="msup"}return new le(_,w)}}),Lr({type:"atom",htmlBuilder(l,a){return Ko(l.text,l.mode,a,["m"+l.family])},mathmlBuilder(l,a){const c=new le("mo",[_n(l.text,l.mode)]);if(l.family==="bin"){const f=nl(l,a);f==="bold-italic"&&c.setAttribute("mathvariant",f)}else l.family==="punct"?c.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&c.setAttribute("stretchy","false");return c}});const rf={mi:"italic",mn:"normal",mtext:"normal"};Lr({type:"mathord",htmlBuilder(l,a){return Wi(l,a,"mathord")},mathmlBuilder(l,a){const c=new le("mi",[_n(l.text,l.mode,a)]),f=nl(l,a)||"italic";return f!==rf[c.type]&&c.setAttribute("mathvariant",f),c}}),Lr({type:"textord",htmlBuilder(l,a){return Wi(l,a,"textord")},mathmlBuilder(l,a){const c=_n(l.text,l.mode,a),f=nl(l,a)||"normal";let m;return l.mode==="text"?m=new le("mtext",[c]):/[0-9]/.test(l.text)?m=new le("mn",[c]):l.text==="\\prime"?m=new le("mo",[c]):m=new le("mi",[c]),f!==rf[m.type]&&m.setAttribute("mathvariant",f),m}});const vl={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},_l={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Lr({type:"spacing",htmlBuilder(l,a){if(_l.hasOwnProperty(l.text)){const c=_l[l.text].className||"";if(l.mode==="text"){const f=Wi(l,a,"textord");return f.classes.push(c),f}else return ie(["mspace",c],[Ko(l.text,l.mode,a)],a)}else{if(vl.hasOwnProperty(l.text))return ie(["mspace",vl[l.text]],[],a);throw new i('Unknown type of space "'+l.text+'"')}},mathmlBuilder(l,a){let c;if(_l.hasOwnProperty(l.text))c=new le("mtext",[new Lt(" ")]);else{if(vl.hasOwnProperty(l.text))return new le("mspace");throw new i('Unknown type of space "'+l.text+'"')}return c}});const sf=()=>{const l=new le("mtd",[]);return l.setAttribute("width","50%"),l};Lr({type:"tag",mathmlBuilder(l,a){const c=new le("mtable",[new le("mtr",[sf(),new le("mtd",[gr(l.body,a)]),sf(),new le("mtd",[gr(l.tag,a)])])]);return c.setAttribute("width","100%"),c}});const af={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},of={"\\textbf":"textbf","\\textmd":"textmd"},tg={"\\textit":"textit","\\textup":"textup"},lf=(l,a)=>{const c=l.font;if(c){if(af[c])return a.withTextFontFamily(af[c]);if(of[c])return a.withTextFontWeight(of[c]);if(c==="\\emph")return a.fontShape==="textit"?a.withTextFontShape("textup"):a.withTextFontShape("textit")}else return a;return a.withTextFontShape(tg[c])};we({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(l,a){let{parser:c,funcName:f}=l;const m=a[0];return{type:"text",mode:c.mode,body:Ot(m),font:f}},htmlBuilder(l,a){const c=lf(l,a),f=$t(l.body,c,!0);return ie(["mord","text"],f,c)},mathmlBuilder(l,a){const c=lf(l,a);return gr(l.body,c)}}),we({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(l,a){let{parser:c}=l;return{type:"underline",mode:c.mode,body:a[0]}},htmlBuilder(l,a){const c=Ze(l.body,a),f=ns("underline-line",a),m=a.fontMetrics().defaultRuleThickness,w=Qe({positionType:"top",positionData:c.height,children:[{type:"kern",size:m},{type:"elem",elem:f},{type:"kern",size:3*m},{type:"elem",elem:c}]});return ie(["mord","underline"],[w],a)},mathmlBuilder(l,a){const c=new le("mo",[new Lt("‾")]);c.setAttribute("stretchy","true");const f=new le("munder",[lt(l.body,a),c]);return f.setAttribute("accentunder","true"),f}}),we({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(l,a){let{parser:c}=l;return{type:"vcenter",mode:c.mode,body:a[0]}},htmlBuilder(l,a){const c=Ze(l.body,a),f=a.fontMetrics().axisHeight,m=.5*(c.height-f-(c.depth+f));return Qe({positionType:"shift",positionData:m,children:[{type:"elem",elem:c}]})},mathmlBuilder(l,a){return new le("mpadded",[lt(l.body,a)],["vcenter"])}}),we({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(l,a,c){throw new i("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(l,a){const c=cf(l),f=[],m=a.havingStyle(a.style.text());for(let w=0;w<c.length;w++){let _=c[w];_==="~"&&(_="\\textasciitilde"),f.push(en(_,"Typewriter-Regular",l.mode,m,["mord","texttt"]))}return ie(["mord","text"].concat(m.sizingClasses(a)),iu(f),m)},mathmlBuilder(l,a){const c=new Lt(cf(l)),f=new le("mtext",[c]);return f.setAttribute("mathvariant","monospace"),f}});const cf=l=>l.body.replace(/ /g,l.star?"␣":" ");var br=cu;const uf=`[ \r
|
||
]`,ng="\\\\[a-zA-Z@]+",rg="\\\\[^\uD800-\uDFFF]",sg="("+ng+")"+uf+"*",ig=`\\\\(
|
||
|[ \r ]+
|
||
?)[ \r ]*`,xl="[̀-ͯ]",ag=new RegExp(xl+"+$"),og="("+uf+"+)|"+(ig+"|")+"([!-\\[\\]-‧-豈-]"+(xl+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(xl+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+sg)+("|"+rg+")");class ff{constructor(a,c){this.input=a,this.settings=c,this.tokenRegex=new RegExp(og,"g"),this.catcodes={"%":14,"~":13}}setCatcode(a,c){this.catcodes[a]=c}lex(){const a=this.input,c=this.tokenRegex.lastIndex;if(c===a.length)return new yn("EOF",new on(this,c,c));const f=this.tokenRegex.exec(a);if(f===null||f.index!==c)throw new i("Unexpected character: '"+a[c]+"'",new yn(a[c],new on(this,c,c+1)));const m=f[6]||f[3]||(f[2]?"\\ ":" ");if(this.catcodes[m]===14){const w=a.indexOf(`
|
||
`,this.tokenRegex.lastIndex);return w===-1?(this.tokenRegex.lastIndex=a.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=w+1,this.lex()}return new yn(m,new on(this,c,this.tokenRegex.lastIndex))}}class lg{constructor(a,c){a===void 0&&(a={}),c===void 0&&(c={}),this.current=c,this.builtins=a,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new i("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const a=this.undefStack.pop();for(const c in a)a.hasOwnProperty(c)&&(a[c]==null?delete this.current[c]:this.current[c]=a[c])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(a){return this.current.hasOwnProperty(a)||this.builtins.hasOwnProperty(a)}get(a){return this.current.hasOwnProperty(a)?this.current[a]:this.builtins[a]}set(a,c,f){if(f===void 0&&(f=!1),f){for(let m=0;m<this.undefStack.length;m++)delete this.undefStack[m][a];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][a]=c)}else{const m=this.undefStack[this.undefStack.length-1];m&&!m.hasOwnProperty(a)&&(m[a]=this.current[a])}c==null?delete this.current[a]:this.current[a]=c}}var cg=Bu;N("\\noexpand",function(l){const a=l.popToken();return l.isExpandable(a.text)&&(a.noexpand=!0,a.treatAsRelax=!0),{tokens:[a],numArgs:0}}),N("\\expandafter",function(l){const a=l.popToken();return l.expandOnce(!0),{tokens:[a],numArgs:0}}),N("\\@firstoftwo",function(l){return{tokens:l.consumeArgs(2)[0],numArgs:0}}),N("\\@secondoftwo",function(l){return{tokens:l.consumeArgs(2)[1],numArgs:0}}),N("\\@ifnextchar",function(l){const a=l.consumeArgs(3);l.consumeSpaces();const c=l.future();return a[0].length===1&&a[0][0].text===c.text?{tokens:a[1],numArgs:0}:{tokens:a[2],numArgs:0}}),N("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),N("\\TextOrMath",function(l){const a=l.consumeArgs(2);return l.mode==="text"?{tokens:a[0],numArgs:0}:{tokens:a[1],numArgs:0}});const hf={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};N("\\char",function(l){let a=l.popToken(),c,f=0;if(a.text==="'")c=8,a=l.popToken();else if(a.text==='"')c=16,a=l.popToken();else if(a.text==="`")if(a=l.popToken(),a.text[0]==="\\")f=a.text.charCodeAt(1);else{if(a.text==="EOF")throw new i("\\char` missing argument");f=a.text.charCodeAt(0)}else c=10;if(c){if(f=hf[a.text],f==null||f>=c)throw new i("Invalid base-"+c+" digit "+a.text);let m;for(;(m=hf[l.future().text])!=null&&m<c;)f*=c,f+=m,l.popToken()}return"\\@char{"+f+"}"});const kl=(l,a,c,f)=>{let m=l.consumeArg().tokens;if(m.length!==1)throw new i("\\newcommand's first argument must be a macro name");const w=m[0].text,_=l.isDefined(w);if(_&&!a)throw new i("\\newcommand{"+w+"} attempting to redefine "+(w+"; use \\renewcommand"));if(!_&&!c)throw new i("\\renewcommand{"+w+"} when command "+w+" does not yet exist; use \\newcommand");let T=0;if(m=l.consumeArg().tokens,m.length===1&&m[0].text==="["){let I="",P=l.expandNextToken();for(;P.text!=="]"&&P.text!=="EOF";)I+=P.text,P=l.expandNextToken();if(!I.match(/^\s*[0-9]+\s*$/))throw new i("Invalid number of arguments: "+I);T=parseInt(I),m=l.consumeArg().tokens}return _&&f||l.macros.set(w,{tokens:m,numArgs:T}),""};N("\\newcommand",l=>kl(l,!1,!0,!1)),N("\\renewcommand",l=>kl(l,!0,!1,!1)),N("\\providecommand",l=>kl(l,!0,!0,!0)),N("\\message",l=>{const a=l.consumeArgs(1)[0];return console.log(a.reverse().map(c=>c.text).join("")),""}),N("\\errmessage",l=>{const a=l.consumeArgs(1)[0];return console.error(a.reverse().map(c=>c.text).join("")),""}),N("\\show",l=>{const a=l.popToken(),c=a.text;return console.log(a,l.macros.get(c),br[c],St.math[c],St.text[c]),""}),N("\\bgroup","{"),N("\\egroup","}"),N("~","\\nobreakspace"),N("\\lq","`"),N("\\rq","'"),N("\\aa","\\r a"),N("\\AA","\\r A"),N("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),N("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),N("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),N("ℬ","\\mathscr{B}"),N("ℰ","\\mathscr{E}"),N("ℱ","\\mathscr{F}"),N("ℋ","\\mathscr{H}"),N("ℐ","\\mathscr{I}"),N("ℒ","\\mathscr{L}"),N("ℳ","\\mathscr{M}"),N("ℛ","\\mathscr{R}"),N("ℭ","\\mathfrak{C}"),N("ℌ","\\mathfrak{H}"),N("ℨ","\\mathfrak{Z}"),N("\\Bbbk","\\Bbb{k}"),N("·","\\cdotp"),N("\\llap","\\mathllap{\\textrm{#1}}"),N("\\rlap","\\mathrlap{\\textrm{#1}}"),N("\\clap","\\mathclap{\\textrm{#1}}"),N("\\mathstrut","\\vphantom{(}"),N("\\underbar","\\underline{\\text{#1}}"),N("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),N("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),N("\\ne","\\neq"),N("≠","\\neq"),N("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),N("∉","\\notin"),N("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),N("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),N("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),N("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),N("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),N("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),N("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),N("⟂","\\perp"),N("‼","\\mathclose{!\\mkern-0.8mu!}"),N("∌","\\notni"),N("⌜","\\ulcorner"),N("⌝","\\urcorner"),N("⌞","\\llcorner"),N("⌟","\\lrcorner"),N("©","\\copyright"),N("®","\\textregistered"),N("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),N("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),N("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),N("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),N("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),N("⋮","\\vdots"),N("\\varGamma","\\mathit{\\Gamma}"),N("\\varDelta","\\mathit{\\Delta}"),N("\\varTheta","\\mathit{\\Theta}"),N("\\varLambda","\\mathit{\\Lambda}"),N("\\varXi","\\mathit{\\Xi}"),N("\\varPi","\\mathit{\\Pi}"),N("\\varSigma","\\mathit{\\Sigma}"),N("\\varUpsilon","\\mathit{\\Upsilon}"),N("\\varPhi","\\mathit{\\Phi}"),N("\\varPsi","\\mathit{\\Psi}"),N("\\varOmega","\\mathit{\\Omega}"),N("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),N("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),N("\\boxed","\\fbox{$\\displaystyle{#1}$}"),N("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),N("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),N("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),N("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),N("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");const df={",":"\\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"},ug=new Set(["bin","rel"]);N("\\dots",function(l){let a="\\dotso";const c=l.expandAfterFuture().text;return c in df?a=df[c]:(c.slice(0,4)==="\\not"||c in St.math&&ug.has(St.math[c].group))&&(a="\\dotsb"),a});const Sl={")":!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};N("\\dotso",function(l){return l.future().text in Sl?"\\ldots\\,":"\\ldots"}),N("\\dotsc",function(l){const a=l.future().text;return a in Sl&&a!==","?"\\ldots\\,":"\\ldots"}),N("\\cdots",function(l){return l.future().text in Sl?"\\@cdots\\,":"\\@cdots"}),N("\\dotsb","\\cdots"),N("\\dotsm","\\cdots"),N("\\dotsi","\\!\\cdots"),N("\\dotsx","\\ldots\\,"),N("\\DOTSI","\\relax"),N("\\DOTSB","\\relax"),N("\\DOTSX","\\relax"),N("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),N("\\,","\\tmspace+{3mu}{.1667em}"),N("\\thinspace","\\,"),N("\\>","\\mskip{4mu}"),N("\\:","\\tmspace+{4mu}{.2222em}"),N("\\medspace","\\:"),N("\\;","\\tmspace+{5mu}{.2777em}"),N("\\thickspace","\\;"),N("\\!","\\tmspace-{3mu}{.1667em}"),N("\\negthinspace","\\!"),N("\\negmedspace","\\tmspace-{4mu}{.2222em}"),N("\\negthickspace","\\tmspace-{5mu}{.277em}"),N("\\enspace","\\kern.5em "),N("\\enskip","\\hskip.5em\\relax"),N("\\quad","\\hskip1em\\relax"),N("\\qquad","\\hskip2em\\relax"),N("\\tag","\\@ifstar\\tag@literal\\tag@paren"),N("\\tag@paren","\\tag@literal{({#1})}"),N("\\tag@literal",l=>{if(l.macros.get("\\df@tag"))throw new i("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),N("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),N("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),N("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),N("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),N("\\newline","\\\\\\relax"),N("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const mf=C(Un["Main-Regular"][84][1]-.7*Un["Main-Regular"][65][1]);N("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+mf+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),N("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+mf+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),N("\\hspace","\\@ifstar\\@hspacer\\@hspace"),N("\\@hspace","\\hskip #1\\relax"),N("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),N("\\ordinarycolon",":"),N("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),N("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),N("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),N("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),N("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),N("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),N("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),N("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),N("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),N("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),N("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),N("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),N("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),N("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),N("∷","\\dblcolon"),N("∹","\\eqcolon"),N("≔","\\coloneqq"),N("≕","\\eqqcolon"),N("⩴","\\Coloneqq"),N("\\ratio","\\vcentcolon"),N("\\coloncolon","\\dblcolon"),N("\\colonequals","\\coloneqq"),N("\\coloncolonequals","\\Coloneqq"),N("\\equalscolon","\\eqqcolon"),N("\\equalscoloncolon","\\Eqqcolon"),N("\\colonminus","\\coloneq"),N("\\coloncolonminus","\\Coloneq"),N("\\minuscolon","\\eqcolon"),N("\\minuscoloncolon","\\Eqcolon"),N("\\coloncolonapprox","\\Colonapprox"),N("\\coloncolonsim","\\Colonsim"),N("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),N("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),N("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),N("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),N("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),N("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),N("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),N("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),N("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),N("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),N("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),N("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),N("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),N("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),N("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),N("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),N("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),N("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),N("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),N("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),N("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),N("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),N("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),N("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),N("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),N("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),N("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),N("\\imath","\\html@mathml{\\@imath}{ı}"),N("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),N("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),N("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),N("⟦","\\llbracket"),N("⟧","\\rrbracket"),N("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),N("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),N("⦃","\\lBrace"),N("⦄","\\rBrace"),N("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),N("⦵","\\minuso"),N("\\darr","\\downarrow"),N("\\dArr","\\Downarrow"),N("\\Darr","\\Downarrow"),N("\\lang","\\langle"),N("\\rang","\\rangle"),N("\\uarr","\\uparrow"),N("\\uArr","\\Uparrow"),N("\\Uarr","\\Uparrow"),N("\\N","\\mathbb{N}"),N("\\R","\\mathbb{R}"),N("\\Z","\\mathbb{Z}"),N("\\alef","\\aleph"),N("\\alefsym","\\aleph"),N("\\Alpha","\\mathrm{A}"),N("\\Beta","\\mathrm{B}"),N("\\bull","\\bullet"),N("\\Chi","\\mathrm{X}"),N("\\clubs","\\clubsuit"),N("\\cnums","\\mathbb{C}"),N("\\Complex","\\mathbb{C}"),N("\\Dagger","\\ddagger"),N("\\diamonds","\\diamondsuit"),N("\\empty","\\emptyset"),N("\\Epsilon","\\mathrm{E}"),N("\\Eta","\\mathrm{H}"),N("\\exist","\\exists"),N("\\harr","\\leftrightarrow"),N("\\hArr","\\Leftrightarrow"),N("\\Harr","\\Leftrightarrow"),N("\\hearts","\\heartsuit"),N("\\image","\\Im"),N("\\infin","\\infty"),N("\\Iota","\\mathrm{I}"),N("\\isin","\\in"),N("\\Kappa","\\mathrm{K}"),N("\\larr","\\leftarrow"),N("\\lArr","\\Leftarrow"),N("\\Larr","\\Leftarrow"),N("\\lrarr","\\leftrightarrow"),N("\\lrArr","\\Leftrightarrow"),N("\\Lrarr","\\Leftrightarrow"),N("\\Mu","\\mathrm{M}"),N("\\natnums","\\mathbb{N}"),N("\\Nu","\\mathrm{N}"),N("\\Omicron","\\mathrm{O}"),N("\\plusmn","\\pm"),N("\\rarr","\\rightarrow"),N("\\rArr","\\Rightarrow"),N("\\Rarr","\\Rightarrow"),N("\\real","\\Re"),N("\\reals","\\mathbb{R}"),N("\\Reals","\\mathbb{R}"),N("\\Rho","\\mathrm{P}"),N("\\sdot","\\cdot"),N("\\sect","\\S"),N("\\spades","\\spadesuit"),N("\\sub","\\subset"),N("\\sube","\\subseteq"),N("\\supe","\\supseteq"),N("\\Tau","\\mathrm{T}"),N("\\thetasym","\\vartheta"),N("\\weierp","\\wp"),N("\\Zeta","\\mathrm{Z}"),N("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),N("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),N("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),N("\\bra","\\mathinner{\\langle{#1}|}"),N("\\ket","\\mathinner{|{#1}\\rangle}"),N("\\braket","\\mathinner{\\langle{#1}\\rangle}"),N("\\Bra","\\left\\langle#1\\right|"),N("\\Ket","\\left|#1\\right\\rangle");const pf=l=>a=>{const c=a.consumeArg().tokens,f=a.consumeArg().tokens,m=a.consumeArg().tokens,w=a.consumeArg().tokens,_=a.macros.get("|"),T=a.macros.get("\\|");a.macros.beginGroup();const I=W=>K=>{l&&(K.macros.set("|",_),m.length&&K.macros.set("\\|",T));let ne=W;return!W&&m.length&&K.future().text==="|"&&(K.popToken(),ne=!0),{tokens:ne?m:f,numArgs:0}};a.macros.set("|",I(!1)),m.length&&a.macros.set("\\|",I(!0));const P=a.consumeArg().tokens,U=a.expandTokens([...w,...P,...c]);return a.macros.endGroup(),{tokens:U.reverse(),numArgs:0}};N("\\bra@ket",pf(!1)),N("\\bra@set",pf(!0)),N("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),N("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),N("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),N("\\angln","{\\angl n}"),N("\\blue","\\textcolor{##6495ed}{#1}"),N("\\orange","\\textcolor{##ffa500}{#1}"),N("\\pink","\\textcolor{##ff00af}{#1}"),N("\\red","\\textcolor{##df0030}{#1}"),N("\\green","\\textcolor{##28ae7b}{#1}"),N("\\gray","\\textcolor{gray}{#1}"),N("\\purple","\\textcolor{##9d38bd}{#1}"),N("\\blueA","\\textcolor{##ccfaff}{#1}"),N("\\blueB","\\textcolor{##80f6ff}{#1}"),N("\\blueC","\\textcolor{##63d9ea}{#1}"),N("\\blueD","\\textcolor{##11accd}{#1}"),N("\\blueE","\\textcolor{##0c7f99}{#1}"),N("\\tealA","\\textcolor{##94fff5}{#1}"),N("\\tealB","\\textcolor{##26edd5}{#1}"),N("\\tealC","\\textcolor{##01d1c1}{#1}"),N("\\tealD","\\textcolor{##01a995}{#1}"),N("\\tealE","\\textcolor{##208170}{#1}"),N("\\greenA","\\textcolor{##b6ffb0}{#1}"),N("\\greenB","\\textcolor{##8af281}{#1}"),N("\\greenC","\\textcolor{##74cf70}{#1}"),N("\\greenD","\\textcolor{##1fab54}{#1}"),N("\\greenE","\\textcolor{##0d923f}{#1}"),N("\\goldA","\\textcolor{##ffd0a9}{#1}"),N("\\goldB","\\textcolor{##ffbb71}{#1}"),N("\\goldC","\\textcolor{##ff9c39}{#1}"),N("\\goldD","\\textcolor{##e07d10}{#1}"),N("\\goldE","\\textcolor{##a75a05}{#1}"),N("\\redA","\\textcolor{##fca9a9}{#1}"),N("\\redB","\\textcolor{##ff8482}{#1}"),N("\\redC","\\textcolor{##f9685d}{#1}"),N("\\redD","\\textcolor{##e84d39}{#1}"),N("\\redE","\\textcolor{##bc2612}{#1}"),N("\\maroonA","\\textcolor{##ffbde0}{#1}"),N("\\maroonB","\\textcolor{##ff92c6}{#1}"),N("\\maroonC","\\textcolor{##ed5fa6}{#1}"),N("\\maroonD","\\textcolor{##ca337c}{#1}"),N("\\maroonE","\\textcolor{##9e034e}{#1}"),N("\\purpleA","\\textcolor{##ddd7ff}{#1}"),N("\\purpleB","\\textcolor{##c6b9fc}{#1}"),N("\\purpleC","\\textcolor{##aa87ff}{#1}"),N("\\purpleD","\\textcolor{##7854ab}{#1}"),N("\\purpleE","\\textcolor{##543b78}{#1}"),N("\\mintA","\\textcolor{##f5f9e8}{#1}"),N("\\mintB","\\textcolor{##edf2df}{#1}"),N("\\mintC","\\textcolor{##e0e5cc}{#1}"),N("\\grayA","\\textcolor{##f6f7f7}{#1}"),N("\\grayB","\\textcolor{##f0f1f2}{#1}"),N("\\grayC","\\textcolor{##e3e5e6}{#1}"),N("\\grayD","\\textcolor{##d6d8da}{#1}"),N("\\grayE","\\textcolor{##babec2}{#1}"),N("\\grayF","\\textcolor{##888d93}{#1}"),N("\\grayG","\\textcolor{##626569}{#1}"),N("\\grayH","\\textcolor{##3b3e40}{#1}"),N("\\grayI","\\textcolor{##21242c}{#1}"),N("\\kaBlue","\\textcolor{##314453}{#1}"),N("\\kaGreen","\\textcolor{##71B307}{#1}");const gf={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class fg{constructor(a,c,f){this.settings=c,this.expansionCount=0,this.feed(a),this.macros=new lg(cg,c.macros),this.mode=f,this.stack=[]}feed(a){this.lexer=new ff(a,this.settings)}switchMode(a){this.mode=a}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(a){this.stack.push(a)}pushTokens(a){this.stack.push(...a)}scanArgument(a){let c,f,m;if(a){if(this.consumeSpaces(),this.future().text!=="[")return null;c=this.popToken(),{tokens:m,end:f}=this.consumeArg(["]"])}else({tokens:m,start:c,end:f}=this.consumeArg());return this.pushToken(new yn("EOF",f.loc)),this.pushTokens(m),new yn("",on.range(c,f))}consumeSpaces(){for(;this.future().text===" ";)this.stack.pop()}consumeArg(a){const c=[],f=a&&a.length>0;f||this.consumeSpaces();const m=this.future();let w,_=0,T=0;do{if(w=this.popToken(),c.push(w),w.text==="{")++_;else if(w.text==="}"){if(--_,_===-1)throw new i("Extra }",w)}else if(w.text==="EOF")throw new i("Unexpected end of input in a macro argument, expected '"+(a&&f?a[T]:"}")+"'",w);if(a&&f)if((_===0||_===1&&a[T]==="{")&&w.text===a[T]){if(++T,T===a.length){c.splice(-T,T);break}}else T=0}while(_!==0||f);return m.text==="{"&&c[c.length-1].text==="}"&&(c.pop(),c.shift()),c.reverse(),{tokens:c,start:m,end:w}}consumeArgs(a,c){if(c){if(c.length!==a+1)throw new i("The length of delimiters doesn't match the number of args!");const m=c[0];for(let w=0;w<m.length;w++){const _=this.popToken();if(m[w]!==_.text)throw new i("Use of the macro doesn't match its definition",_)}}const f=[];for(let m=0;m<a;m++)f.push(this.consumeArg(c&&c[m+1]).tokens);return f}countExpansion(a){if(this.expansionCount+=a,this.expansionCount>this.settings.maxExpand)throw new i("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(a){const c=this.popToken(),f=c.text,m=c.noexpand?null:this._getExpansion(f);if(m==null||a&&m.unexpandable){if(a&&m==null&&f[0]==="\\"&&!this.isDefined(f))throw new i("Undefined control sequence: "+f);return this.pushToken(c),!1}this.countExpansion(1);let w=m.tokens;const _=this.consumeArgs(m.numArgs,m.delimiters);if(m.numArgs){w=w.slice();for(let T=w.length-1;T>=0;--T){let I=w[T];if(I.text==="#"){if(T===0)throw new i("Incomplete placeholder at end of macro body",I);if(I=w[--T],I.text==="#")w.splice(T+1,1);else if(/^[1-9]$/.test(I.text))w.splice(T,2,..._[+I.text-1]);else throw new i("Not a valid argument number",I)}}}return this.pushTokens(w),w.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){const a=this.stack.pop();return a.treatAsRelax&&(a.text="\\relax"),a}}expandMacro(a){return this.macros.has(a)?this.expandTokens([new yn(a)]):void 0}expandTokens(a){const c=[],f=this.stack.length;for(this.pushTokens(a);this.stack.length>f;)if(this.expandOnce(!0)===!1){const m=this.stack.pop();m.treatAsRelax&&(m.noexpand=!1,m.treatAsRelax=!1),c.push(m)}return this.countExpansion(c.length),c}expandMacroAsText(a){const c=this.expandMacro(a);return c&&c.map(f=>f.text).join("")}_getExpansion(a){const c=this.macros.get(a);if(c==null)return c;if(a.length===1){const m=this.lexer.catcodes[a];if(m!=null&&m!==13)return}const f=typeof c=="function"?c(this):c;if(typeof f=="string"){let m=0;if(f.includes("#")){const P=f.replace(/##/g,"");for(;P.includes("#"+(m+1));)++m}const w=new ff(f,this.settings),_=[];let T=w.lex();for(;T.text!=="EOF";)_.push(T),T=w.lex();return _.reverse(),{tokens:_,numArgs:m}}return f}isDefined(a){return this.macros.has(a)||br.hasOwnProperty(a)||St.math.hasOwnProperty(a)||St.text.hasOwnProperty(a)||gf.hasOwnProperty(a)}isExpandable(a){const c=this.macros.get(a);return c!=null?typeof c=="string"||typeof c=="function"||!c.unexpandable:br.hasOwnProperty(a)&&!br[a].primitive}}const yf=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,oa=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Al={"́":{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"}},bf={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class la{constructor(a,c){this.mode="math",this.gullet=new fg(a,c,this.mode),this.settings=c,this.leftrightDepth=0,this.nextToken=null}expect(a,c){if(c===void 0&&(c=!0),this.fetch().text!==a)throw new i("Expected '"+a+"', got '"+this.fetch().text+"'",this.fetch());c&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(a){this.mode=a,this.gullet.switchMode(a)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const a=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),a}finally{this.gullet.endGroups()}}subparse(a){const c=this.nextToken;this.consume(),this.gullet.pushToken(new yn("}")),this.gullet.pushTokens(a);const f=this.parseExpression(!1);return this.expect("}"),this.nextToken=c,f}parseExpression(a,c){const f=[];for(;;){this.mode==="math"&&this.consumeSpaces();const m=this.fetch();if(la.endOfExpression.has(m.text)||c&&m.text===c||a&&br[m.text]&&br[m.text].infix)break;const w=this.parseAtom(c);if(w){if(w.type==="internal")continue}else break;f.push(w)}return this.mode==="text"&&this.formLigatures(f),this.handleInfixNodes(f)}handleInfixNodes(a){let c=-1,f;for(let m=0;m<a.length;m++){const w=a[m];if(w.type==="infix"){if(c!==-1)throw new i("only one infix operator per group",w.token);c=m,f=w.replaceWith}}if(c!==-1&&f){let m,w;const _=a.slice(0,c),T=a.slice(c+1);_.length===1&&_[0].type==="ordgroup"?m=_[0]:m={type:"ordgroup",mode:this.mode,body:_},T.length===1&&T[0].type==="ordgroup"?w=T[0]:w={type:"ordgroup",mode:this.mode,body:T};let I;return f==="\\\\abovefrac"?I=this.callFunction(f,[m,a[c],w],[]):I=this.callFunction(f,[m,w],[]),[I]}else return a}handleSupSubscript(a){const c=this.fetch(),f=c.text;this.consume(),this.consumeSpaces();let m;do{var w;m=this.parseGroup(a)}while(((w=m)==null?void 0:w.type)==="internal");if(!m)throw new i("Expected group after '"+f+"'",c);return m}formatUnsupportedCmd(a){const c=[];for(let w=0;w<a.length;w++)c.push({type:"textord",mode:"text",text:a[w]});const f={type:"text",mode:this.mode,body:c};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[f]}}parseAtom(a){const c=this.parseGroup("atom",a);if((c==null?void 0:c.type)==="internal"||this.mode==="text")return c;let f,m;for(;;){this.consumeSpaces();const w=this.fetch();if(w.text==="\\limits"||w.text==="\\nolimits"){if(c&&c.type==="op"){const _=w.text==="\\limits";c.limits=_,c.alwaysHandleSupSub=!0}else if(c&&c.type==="operatorname")c.alwaysHandleSupSub&&(c.limits=w.text==="\\limits");else throw new i("Limit controls must follow a math operator",w);this.consume()}else if(w.text==="^"){if(f)throw new i("Double superscript",w);f=this.handleSupSubscript("superscript")}else if(w.text==="_"){if(m)throw new i("Double subscript",w);m=this.handleSupSubscript("subscript")}else if(w.text==="'"){if(f)throw new i("Double superscript",w);const _={type:"textord",mode:this.mode,text:"\\prime"},T=[_];for(this.consume();this.fetch().text==="'";)T.push(_),this.consume();this.fetch().text==="^"&&T.push(this.handleSupSubscript("superscript")),f={type:"ordgroup",mode:this.mode,body:T}}else if(oa[w.text]){const _=yf.test(w.text),T=[];for(T.push(new yn(oa[w.text])),this.consume();;){const P=this.fetch().text;if(!oa[P]||yf.test(P)!==_)break;T.unshift(new yn(oa[P])),this.consume()}const I=this.subparse(T);_?m={type:"ordgroup",mode:"math",body:I}:f={type:"ordgroup",mode:"math",body:I}}else break}return f||m?{type:"supsub",mode:this.mode,base:c,sup:f,sub:m}:c}parseFunction(a,c){const f=this.fetch(),m=f.text,w=br[m];if(!w)return null;if(this.consume(),c&&c!=="atom"&&!w.allowedInArgument)throw new i("Got function '"+m+"' with no arguments"+(c?" as "+c:""),f);if(this.mode==="text"&&!w.allowedInText)throw new i("Can't use function '"+m+"' in text mode",f);if(this.mode==="math"&&w.allowedInMath===!1)throw new i("Can't use function '"+m+"' in math mode",f);const{args:_,optArgs:T}=this.parseArguments(m,w);return this.callFunction(m,_,T,f,a)}callFunction(a,c,f,m,w){const _={funcName:a,parser:this,token:m,breakOnTokenText:w},T=br[a];if(T&&T.handler)return T.handler(_,c,f);throw new i("No function handler for "+a)}parseArguments(a,c){const f=c.numArgs+c.numOptionalArgs;if(f===0)return{args:[],optArgs:[]};const m=[],w=[];for(let _=0;_<f;_++){let T=c.argTypes&&c.argTypes[_];const I=_<c.numOptionalArgs;("primitive"in c&&c.primitive&&T==null||c.type==="sqrt"&&_===1&&w[0]==null)&&(T="primitive");const P=this.parseGroupOfType("argument to '"+a+"'",T,I);if(I)w.push(P);else if(P!=null)m.push(P);else throw new i("Null argument, please report this as a bug")}return{args:m,optArgs:w}}parseGroupOfType(a,c,f){switch(c){case"color":return this.parseColorGroup(f);case"size":return this.parseSizeGroup(f);case"url":return this.parseUrlGroup(f);case"math":case"text":return this.parseArgumentGroup(f,c);case"hbox":{const m=this.parseArgumentGroup(f,"text");return m!=null?{type:"styling",mode:m.mode,body:[m],style:"text"}:null}case"raw":{const m=this.parseStringGroup("raw",f);return m!=null?{type:"raw",mode:"text",string:m.text}:null}case"primitive":{if(f)throw new i("A primitive argument cannot be optional");const m=this.parseGroup(a);if(m==null)throw new i("Expected group as "+a,this.fetch());return m}case"original":case null:case void 0:return this.parseArgumentGroup(f);default:throw new i("Unknown group type as "+a,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(a,c){const f=this.gullet.scanArgument(c);if(f==null)return null;let m="",w;for(;(w=this.fetch()).text!=="EOF";)m+=w.text,this.consume();return this.consume(),f.text=m,f}parseRegexGroup(a,c){const f=this.fetch();let m=f,w="",_;for(;(_=this.fetch()).text!=="EOF"&&a.test(w+_.text);)m=_,w+=m.text,this.consume();if(w==="")throw new i("Invalid "+c+": '"+f.text+"'",f);return f.range(m,w)}parseColorGroup(a){const c=this.parseStringGroup("color",a);if(c==null)return null;const f=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(c.text);if(!f)throw new i("Invalid color: '"+c.text+"'",c);let m=f[0];return/^[0-9a-f]{6}$/i.test(m)&&(m="#"+m),{type:"color-token",mode:this.mode,color:m}}parseSizeGroup(a){let c,f=!1;if(this.gullet.consumeSpaces(),!a&&this.gullet.future().text!=="{"?c=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):c=this.parseStringGroup("size",a),!c)return null;!a&&c.text.length===0&&(c.text="0pt",f=!0);const m=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(c.text);if(!m)throw new i("Invalid size: '"+c.text+"'",c);const w={number:+(m[1]+m[2]),unit:m[3]};if(!vn(w))throw new i("Invalid unit: '"+w.unit+"'",c);return{type:"size",mode:this.mode,value:w,isBlank:f}}parseUrlGroup(a){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);const c=this.parseStringGroup("url",a);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),c==null)return null;const f=c.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:f}}parseArgumentGroup(a,c){const f=this.gullet.scanArgument(a);if(f==null)return null;const m=this.mode;c&&this.switchMode(c),this.gullet.beginGroup();const w=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();const _={type:"ordgroup",mode:this.mode,loc:f.loc,body:w};return c&&this.switchMode(m),_}parseGroup(a,c){const f=this.fetch(),m=f.text;let w;if(m==="{"||m==="\\begingroup"){this.consume();const _=m==="{"?"}":"\\endgroup";this.gullet.beginGroup();const T=this.parseExpression(!1,_),I=this.fetch();this.expect(_),this.gullet.endGroup(),w={type:"ordgroup",mode:this.mode,loc:on.range(f,I),body:T,semisimple:m==="\\begingroup"||void 0}}else if(w=this.parseFunction(c,a)||this.parseSymbol(),w==null&&m[0]==="\\"&&!gf.hasOwnProperty(m)){if(this.settings.throwOnError)throw new i("Undefined control sequence: "+m,f);w=this.formatUnsupportedCmd(m),this.consume()}return w}formLigatures(a){let c=a.length-1;for(let f=0;f<c;++f){const m=a[f];if(m.type!=="textord")continue;const w=m.text,_=a[f+1];if(!(!_||_.type!=="textord")){if(w==="-"&&_.text==="-"){const T=a[f+2];f+1<c&&T&&T.type==="textord"&&T.text==="-"?(a.splice(f,3,{type:"textord",mode:"text",loc:on.range(m,T),text:"---"}),c-=2):(a.splice(f,2,{type:"textord",mode:"text",loc:on.range(m,_),text:"--"}),c-=1)}(w==="'"||w==="`")&&_.text===w&&(a.splice(f,2,{type:"textord",mode:"text",loc:on.range(m,_),text:w+w}),c-=1)}}}parseSymbol(){const a=this.fetch();let c=a.text;if(/^\\verb[^a-zA-Z]/.test(c)){this.consume();let w=c.slice(5);const _=w.charAt(0)==="*";if(_&&(w=w.slice(1)),w.length<2||w.charAt(0)!==w.slice(-1))throw new i(`\\verb assertion failed --
|
||
please report what input caused this bug`);return w=w.slice(1,-1),{type:"verb",mode:"text",body:w,star:_}}bf.hasOwnProperty(c[0])&&!St[this.mode][c[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+c[0]+'" used in math mode',a),c=bf[c[0]]+c.slice(1));const f=ag.exec(c);f&&(c=c.substring(0,f.index),c==="i"?c="ı":c==="j"&&(c="ȷ"));let m;if(St[this.mode][c]){this.settings.strict&&this.mode==="math"&&Go.includes(c)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+c[0]+'" used in math mode',a);const w=St[this.mode][c].group,_=on.range(a);let T;if(c4.hasOwnProperty(w)){const I=w;T={type:"atom",mode:this.mode,family:I,loc:_,text:c}}else T={type:w,mode:this.mode,loc:_,text:c};m=T}else if(c.charCodeAt(0)>=128)this.settings.strict&&(H(c.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+c[0]+'" used in math mode',a):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+c[0]+'"'+(" ("+c.charCodeAt(0)+")"),a)),m={type:"textord",mode:"text",loc:on.range(a),text:c};else return null;if(this.consume(),f)for(let w=0;w<f[0].length;w++){const _=f[0][w];if(!Al[_])throw new i("Unknown accent ' "+_+"'",a);const T=Al[_][this.mode]||Al[_].text;if(!T)throw new i("Accent "+_+" unsupported in "+this.mode+" mode",a);m={type:"accent",mode:this.mode,loc:on.range(a),label:T,isStretchy:!1,isShifty:!0,base:m}}return m}}la.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Tl=function(l,a){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const c=new la(l,a);delete c.gullet.macros.current["\\df@tag"];let f=c.parse();if(delete c.gullet.macros.current["\\current@color"],delete c.gullet.macros.current["\\color"],c.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new i("\\tag works only in display equations");f=[{type:"tag",mode:"text",body:f,tag:c.subparse([new yn("\\df@tag")])}]}return f};let wf=function(l,a,c){a.textContent="";const f=El(l,c).toNode();a.appendChild(f)};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."),wf=function(){throw new i("KaTeX doesn't work in quirks mode.")});const hg=function(l,a){return El(l,a).toMarkup()},dg=function(l,a){const c=new M(a);return Tl(l,c)},vf=function(l,a,c){if(c.throwOnError||!(l instanceof i))throw l;const f=ie(["katex-error"],[new vt(a)]);return f.setAttribute("title",l.toString()),f.setAttribute("style","color:"+c.errorColor),f},El=function(l,a){const c=new M(a);try{const f=Tl(l,c);return T4(f,l,c)}catch(f){return vf(f,l,c)}};var mg={version:"0.16.38",render:wf,renderToString:hg,ParseError:i,SETTINGS_SCHEMA:A,__parse:dg,__renderToDomTree:El,__renderToHTMLTree:function(l,a){const c=new M(a);try{const f=Tl(l,c);return E4(f,l,c)}catch(f){return vf(f,l,c)}},__setFontMetrics:o4,__defineSymbol:g,__defineFunction:we,__defineMacro:N,__domTree:{Span:J,Anchor:se,SymbolNode:vt,SvgNode:an,PathNode:Qt,LineNode:qs}},pg=mg;return r=r.default,r}()})})(ep);var jb=ep.exports,Wb=i0&&i0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zm,"__esModule",{value:!0});const Gb=Wb(jb);function Bh(e,t){const n=e.src[t-1],r=e.src[t],s=e.src[t+1];if(r!=="$")return{can_open:!1,can_close:!1};let i=!1,o=!1;return n!=="$"&&n!=="\\"&&(n===void 0||zh(n)||!qh(n))&&(i=!0),s!=="$"&&(s==null||zh(s)||!qh(s))&&(o=!0),{can_open:i,can_close:o}}function zh(e){return/^\s$/u.test(e)}function qh(e){return/^[\w\d]$/u.test(e)}function Uh(e,t){const n=e.src[t-1],r=e.src[t],s=e.src[t+1],i=e.src[t+2];return r==="$"&&n!=="$"&&n!=="\\"&&s==="$"&&i!=="$"?{can_open:!0,can_close:!0}:{can_open:!1,can_close:!1}}function Kb(e,t){if(e.src[e.pos]!=="$")return!1;const n=e.tokens.at(-1);if((n==null?void 0:n.type)==="html_inline"&&/^<\w+.+[^/]>$/.test(n.content))return!1;let r=Bh(e,e.pos);if(!r.can_open)return t||(e.pending+="$"),e.pos+=1,!0;let s=e.pos+1,i=s,o;for(;(i=e.src.indexOf("$",i))!==-1;){for(o=i-1;e.src[o]==="\\";)o-=1;if((i-o)%2==1)break;i+=1}if(i===-1)return t||(e.pending+="$"),e.pos=s,!0;if(i-s===0)return t||(e.pending+="$$"),e.pos=s+1,!0;if(r=Bh(e,i),!r.can_close)return t||(e.pending+="$"),e.pos=s,!0;if(!t){const u=e.push("math_inline","math",0);u.markup="$",u.content=e.src.slice(s,i)}return e.pos=i+1,!0}function Xb(e,t,n,r){let s=!1,i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||e.src.slice(i,i+2)!=="$$")return!1;i+=2;let u=e.src.slice(i,o);const h=[...u.matchAll(/\$\$/g)];if(h.length===1&&h[0].index===u.length-2)u=u.trim().slice(0,-2),s=!0;else if(h.length>1)return!1;if(r)return!0;let d,p,b;for(p=t;!s&&(p++,!(p>=n||(i=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],i<o&&e.tShift[p]<e.blkIndent)));)e.src.slice(i,o).trim().slice(-2)==="$$"?(b=e.src.slice(0,o).lastIndexOf("$$"),d=e.src.slice(i,b),s=!0):e.src.slice(i,o).trim().includes("$$")&&(b=e.src.slice(0,o).trim().indexOf("$$"),d=e.src.slice(i,b),s=!0);e.line=p+1;const v=e.push("math_block","math",0);return v.block=!0,v.content=(u&&u.trim()?u+`
|
||
`:"")+e.getLines(t+1,p,e.tShift[t],!0)+(d&&d.trim()?d:""),v.map=[t,e.line],v.markup="$$",!0}function Yb(e,t,n,r){const s=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(!e.src.slice(s,i).match(/^\s*\\begin\s*\{([^{}]+)\}/))return!1;if(t>0){const k=e.bMarks[t-1]+e.tShift[t-1],x=e.eMarks[t-1],A=e.src.slice(k,x);if(!/^\s*$/.test(A))return!1}if(r)return!0;const h=[];let d=t,p,b=!1;e:for(;!b&&!(d>=n);d++){const k=e.bMarks[d]+e.tShift[d],x=e.eMarks[d];if(k<x&&e.tShift[d]<e.blkIndent)break;const A=e.src.slice(k,x);for(const E of A.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if(E[1]==="\\begin")h.push(E[2].trim());else if(E[1]==="\\end"&&(h.pop(),!h.length)){p=e.src.slice(k,x),b=!0;break e}}e.line=d+1;const v=e.push("math_block","math",0);return v.block=!0,v.content=(e.getLines(t,d,e.tShift[t],!0)+(p??"")).trim(),v.map=[t,e.line],v.markup="$$",!0}function Jb(e,t){var n,r,s,i,o;if(e.src.slice(e.pos,e.pos+2)!=="$$")return!1;if(i=Uh(e,e.pos),!i.can_open)return t||(e.pending+="$$"),e.pos+=2,!0;for(n=e.pos+2,r=n;(r=e.src.indexOf("$$",r))!==-1;){for(o=r-1;e.src[o]==="\\";)o-=1;if((r-o)%2==1)break;r+=2}return r===-1?(t||(e.pending+="$$"),e.pos=n,!0):r-n===0?(t||(e.pending+="$$$$"),e.pos=n+2,!0):(i=Uh(e,r),i.can_close?(t||(s=e.push("math_block","math",0),s.block=!0,s.markup="$$",s.content=e.src.slice(n,r)),e.pos=r+2,!0):(t||(e.pending+="$$"),e.pos=n,!0))}function Qb(e,t){const n=e.src.slice(e.pos);if(!/^\n\\begin/.test(n))return!1;if(e.pos+=1,t)return!0;const r=n.split(/\n/g).slice(1);let s;const i=[];e:for(var o=0;o<r.length;++o){const d=r[o];for(const p of d.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if(p[1]==="\\begin")i.push(p[2].trim());else if(p[1]==="\\end"&&(i.pop(),!i.length)){s=o;break e}}if(typeof s>"u")return!1;const u=r.slice(0,s+1).reduce((d,p)=>d+p.length,0)+s+1,h=e.push("math_inline_bare_block","math",0);return h.block=!0,h.markup="$$",h.content=n.slice(1,u),e.pos=e.pos+u,!0}function Hh(e,t,n,r){const s=e.tokens;for(let i=s.length-1;i>=0;i--){const o=s[i],u=[];if(o.type!=="html_block")continue;const h=o.content;for(const d of h.matchAll(r)){if(!d.groups)continue;const p=d.groups.html_before_math,b=d.groups.math,v=d.groups.html_after_math;p&&u.push({...o,type:"html_block",map:null,content:p}),b&&u.push({...o,type:t,map:null,content:b,markup:n,block:!0,tag:"math"}),v&&u.push({...o,type:"html_block",map:null,content:v})}u.length>0&&s.splice(i,1,...u)}return!0}function Aa(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Zb(e,t){const n=(t==null?void 0:t.katex)??Gb.default,r=t==null?void 0:t.enableBareBlocks,s=t==null?void 0:t.enableMathBlockInHtml,i=t==null?void 0:t.enableMathInlineInHtml,o=t==null?void 0:t.enableFencedBlocks;e.inline.ruler.after("escape","math_inline",Kb),e.inline.ruler.after("escape","math_inline_block",Jb),r&&e.inline.ruler.before("text","math_inline_bare_block",Qb),e.block.ruler.after("blockquote","math_block",(k,x,A,E)=>r&&Yb(k,x,A,E)?!0:Xb(k,x,A,E),{alt:["paragraph","reference","blockquote","list"]});const u=/(?<html_before_math>[\s\S]*?)\$\$(?<math>[\s\S]+?)\$\$(?<html_after_math>(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,h=/(?<html_before_math>[\s\S]*?)\$(?<math>.*?)\$(?<html_after_math>(?:(?!\$.*?\$)[\s\S])*)/gm;s&&e.core.ruler.push("math_block_in_html_block",k=>Hh(k,"math_block","$$",u)),i&&e.core.ruler.push("math_inline_in_html_block",k=>Hh(k,"math_inline","$",h));const d=k=>{const x=/\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(k);try{return n.renderToString(k,{...t,displayMode:x})}catch(A){return t!=null&&t.throwOnError&&console.log(A),`<span class="katex-error" title="${Aa(k)}">${Aa(A+"")}</span>`}},p=(k,x)=>{const A=k[x].content,M=A.length>2&&A[0]==="`"&&A[A.length-1]==="`"?A.slice(1,-1):A;return d(M)},b=k=>{try{return`<p class="katex-block">${n.renderToString(k,{...t,displayMode:!0})}</p>`}catch(x){return t!=null&&t.throwOnError&&console.log(x),`<p class="katex-block katex-error" title="${Aa(k)}">${Aa(x+"")}</p>`}},v=(k,x)=>b(k[x].content)+`
|
||
`;if(e.renderer.rules.math_inline=p,e.renderer.rules.math_inline_block=v,e.renderer.rules.math_inline_bare_block=v,e.renderer.rules.math_block=v,o){const k="math",x=e.renderer.rules.fence;e.renderer.rules.fence=function(A,E,M,q,L){const O=A[E];return O.info.trim().toLowerCase()===k&&o?b(O.content)+`
|
||
`:(x==null?void 0:x.call(this,A,E,M,q,L))||""}}}var e9=Zm.default=Zb;function t9(){const e=Va({html:!0,breaks:!0});return e.use(Ey).use(Ny).use(My).use(Ry),e}function n9(e){return{transformer:e,parser:new Qs,beforeParse:new Qs,afterParse:new Qs,retransform:new Qs}}const r9=`<svg width="16" height="16" viewBox="0 -3 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"/></svg>
|
||
`,s9=`<svg width="16" height="16" viewBox="0 -3 24 24"><path fill-rule="evenodd" d="M6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zM3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-5z" clip-rule="evenodd"/></svg>
|
||
`,i9="checkbox",Vh={" ":s9.trim(),x:r9.trim()},a9={name:i9,transform(e){return e.parser.tap(t=>{t.core.ruler.before("inline","checkbox",n=>{for(let r=2;r<n.tokens.length;r+=1){const s=n.tokens[r];if(s.type==="inline"&&s.content){const i=n.tokens[r-1].type,o=n.tokens[r-2].type;(i==="heading_open"||i==="paragraph_open"&&o==="list_item_open")&&(s.content=s.content.replace(/^\[(.)\] /,(u,h)=>Vh[h]?`${Vh[h]} `:u))}}return!1})}),{}}},o9="frontmatter",l9={name:o9,transform(e){return e.beforeParse.tap((t,n)=>{var r;const{content:s}=n;if(!/^---\r?\n/.test(s))return;const i=/\n---\r?\n/.exec(s);if(!i)return;const o=s.slice(4,i.index).trimEnd();let u;try{u=Vb(o.replace(/\r?\n|\r/g,`
|
||
`)),u!=null&&u.markmap&&(u.markmap=c9(u.markmap))}catch{return}n.frontmatter=u,n.parserOptions={...n.parserOptions,...(r=u==null?void 0:u.markmap)==null?void 0:r.htmlParser},n.frontmatterInfo={lines:s.slice(0,i.index).split(`
|
||
`).length+1,offset:i.index+i[0].length}}),{}}};function c9(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=u9(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=f9(e[t]))}),e}function u9(e){let t;return typeof e=="string"?t=[e]:Array.isArray(e)&&(t=e.filter(n=>n&&typeof n=="string")),t!=null&&t.length?t:void 0}function f9(e){if(!isNaN(+e))return+e}function $c(e,t){return t.type==="script"&&t.data.src?{...t,data:{...t.data,src:e.getFullUrl(t.data.src)}}:t}function h9(e,t){return t.type==="stylesheet"&&t.data.href?{...t,data:{...t.data,href:e.getFullUrl(t.data.href)}}:t}const jh="hljs",d9=["@highlightjs/cdn-assets@11.11.1/highlight.min.js"].map(e=>ac(e)),m9=["@highlightjs/cdn-assets@11.11.1/styles/default.min.css"].map(e=>S1(e)),p9={versions:{hljs:"11.11.1"},preloadScripts:d9,styles:m9},L0={name:jh,config:p9,transform(e){var t,n,r;let s;const i=((n=(t=L0.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(h=>$c(e.transformer.urlBuilder,h)))||[],o=()=>(s||(s=ic(i)),s);let u=ms;return e.parser.tap(h=>{h.set({highlight:(d,p)=>{u();const{hljs:b}=window;return b?b.highlightAuto(d,p?[p]:void 0).value:(o().then(()=>{e.retransform.call()}),d)}})}),e.beforeParse.tap((h,d)=>{u=()=>{d.features[jh]=!0}}),{styles:(r=L0.config)==null?void 0:r.styles}}};function g9(e,t,n){return e.map(r=>{if(typeof r=="string"&&!r.includes("://")){r.startsWith("npm:")||(r=`npm:${r}`);const s=4+t.length;r.startsWith(`npm:${t}/`)&&(r=`${r.slice(0,s)}@${n}${r.slice(s)}`)}return r})}var y9=["katex@0.16.18/dist/fonts/KaTeX_AMS-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Caligraphic-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Caligraphic-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Fraktur-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Fraktur-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-BoldItalic.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Math-BoldItalic.woff2","katex@0.16.18/dist/fonts/KaTeX_Math-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Script-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size1-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size2-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size3-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size4-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Typewriter-Regular.woff2"];const Gl="katex",b9=["katex@0.16.18/dist/katex.min.js"].map(e=>ac(e)),tp=ac("webfontloader@1.6.28/webfontloader.js");tp.data.defer=!0;const w9=["katex@0.16.18/dist/katex.min.css"].map(e=>S1(e)),v9={versions:{katex:"0.16.18",webfontloader:"1.6.28"},preloadScripts:b9,scripts:[{type:"iife",data:{fn:e=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{e().refreshHook.call()}}},getParams({getMarkmap:e}){return[e]}}},tp],styles:w9,resources:y9};function _9(e){return e.default||e}const x9=_9(e9),ni={name:Gl,config:v9,transform(e){var t,n,r,s;let i;const o=((n=(t=ni.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(p=>$c(e.transformer.urlBuilder,p)))||[],u=()=>(i||(i=ic(o)),i),h=(p,b)=>{const{katex:v}=window;return v?v.renderToString(p,{displayMode:b,throwOnError:!1}):(u().then(()=>{e.retransform.call()}),p)};let d=ms;return e.parser.tap(p=>{p.use(x9),["math_block","math_inline"].forEach(b=>{const v=(k,x)=>(d(),h(k[x].content,!!k[x].block));p.renderer.rules[b]=v})}),e.beforeParse.tap((p,b)=>{d=()=>{b.features[Gl]=!0}}),e.afterParse.tap((p,b)=>{var v;const k=(v=b.frontmatter)==null?void 0:v.markmap;k&&["extraJs","extraCss"].forEach(x=>{var A,E;const M=k[x];M&&(k[x]=g9(M,Gl,((E=(A=ni.config)==null?void 0:A.versions)==null?void 0:E.katex)||""))})}),{styles:(r=ni.config)==null?void 0:r.styles,scripts:(s=ni.config)==null?void 0:s.scripts}}},k9="npmUrl",S9={name:k9,transform(e){return e.afterParse.tap((t,n)=>{const{frontmatter:r}=n,s=r==null?void 0:r.markmap;s&&["extraJs","extraCss"].forEach(i=>{const o=s[i];o&&(s[i]=o.map(u=>u.startsWith("npm:")?e.transformer.urlBuilder.getFullUrl(u.slice(4)):u))})}),{}}},A9="sourceLines",T9={name:A9,transform(e){let t=0;return e.beforeParse.tap((n,r)=>{var s;t=((s=r.frontmatterInfo)==null?void 0:s.lines)||0}),e.parser.tap(n=>{n.renderer.renderAttrs=rh(n.renderer.renderAttrs,(r,s)=>{if(s.block&&s.map){const i=s.map.map(o=>o+t);s.attrSet("data-lines",i.join(","))}return r(s)}),n.renderer.rules.fence&&(n.renderer.rules.fence=rh(n.renderer.rules.fence,(r,s,i,...o)=>{let u=r(s,i,...o);const h=s[i];if(u.startsWith("<pre>")&&h.map){const d=h.map.map(p=>p+t);u=u.slice(0,4)+` data-lines="${d.join(",")}"`+u.slice(4)}return u}))}),{}}},E9=[l9,ni,L0,S9,a9,T9],N9=E9;function np(e){for(;!e.content&&e.children.length===1;)e=e.children[0];for(;e.children.length===1&&!e.children[0].content;)e={...e,children:e.children[0].children};return{...e,children:e.children.map(np)}}class C9{constructor(t=N9){this.assetsMap={},this.urlBuilder=new y3,this.hooks=n9(this),this.plugins=t.map(s=>typeof s=="function"?s():s);const n={};for(const{name:s,transform:i}of this.plugins)n[s]=i(this.hooks);this.assetsMap=n;const r=t9();this.md=r,this.hooks.parser.call(r)}transform(t,n){var r;const s={content:t,features:{},parserOptions:n};this.hooks.beforeParse.call(this.md,s);let{content:i}=s;s.frontmatterInfo&&(i=i.slice(s.frontmatterInfo.offset));const o=this.md.render(i,{});this.hooks.afterParse.call(this.md,s);const u=np(Ty(o,s.parserOptions));return u.content||(u.content=`${((r=s.frontmatter)==null?void 0:r.title)||""}`),{...s,root:u}}resolveJS(t){return $c(this.urlBuilder,t)}resolveCSS(t){return h9(this.urlBuilder,t)}getAssets(t){const n=[],r=[];t??(t=this.plugins.map(s=>s.name));for(const s of t.map(i=>this.assetsMap[i]))s&&(s.styles&&n.push(...s.styles),s.scripts&&r.push(...s.scripts));return{styles:n.map(s=>this.resolveCSS(s)),scripts:r.map(s=>this.resolveJS(s))}}getUsedAssets(t){const n=this.plugins.map(r=>r.name).filter(r=>t[r]);return this.getAssets(n)}}class Wh extends Map{constructor(t,n=O9){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,s]of t)this.set(r,s)}get(t){return super.get(Gh(this,t))}has(t){return super.has(Gh(this,t))}set(t,n){return super.set(I9(this,t),n)}delete(t){return super.delete(M9(this,t))}}function Gh({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function I9({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function M9({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function O9(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Kh(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of e)(s=t(s,++r,e))!=null&&(n<s||n===void 0&&s>=s)&&(n=s)}return n}function Xh(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of e)(s=t(s,++r,e))!=null&&(n>s||n===void 0&&s>=s)&&(n=s)}return n}function L9(e,t){let n,r=-1,s=-1;if(t===void 0)for(const i of e)++s,i!=null&&(n>i||n===void 0&&i>=i)&&(n=i,r=s);else for(let i of e)(i=t(i,++s,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i,r=s);return r}var R9={value:()=>{}};function Fc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new $a(n)}function $a(e){this._=e}function D9(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",s=n.indexOf(".");if(s>=0&&(r=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}$a.prototype=Fc.prototype={constructor:$a,on:function(e,t){var n=this._,r=D9(e+"",n),s,i=-1,o=r.length;if(arguments.length<2){for(;++i<o;)if((s=(e=r[i]).type)&&(s=P9(n[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<o;)if(s=(e=r[i]).type)n[s]=Yh(n[s],e.name,t);else if(t==null)for(s in n)n[s]=Yh(n[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new $a(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var n=new Array(s),r=0,s,i;r<s;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,s=i.length;r<s;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],s=0,i=r.length;s<i;++s)r[s].value.apply(t,n)}};function P9(e,t){for(var n=0,r=e.length,s;n<r;++n)if((s=e[n]).name===t)return s.value}function Yh(e,t,n){for(var r=0,s=e.length;r<s;++r)if(e[r].name===t){e[r]=R9,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var R0="http://www.w3.org/1999/xhtml";const Jh={svg:"http://www.w3.org/2000/svg",xhtml:R0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Po(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Jh.hasOwnProperty(t)?{space:Jh[t],local:e}:e}function $9(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===R0&&t.documentElement.namespaceURI===R0?t.createElement(e):t.createElementNS(n,e)}}function F9(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function rp(e){var t=Po(e);return(t.local?F9:$9)(t)}function B9(){}function Bc(e){return e==null?B9:function(){return this.querySelector(e)}}function z9(e){typeof e!="function"&&(e=Bc(e));for(var t=this._groups,n=t.length,r=new Array(n),s=0;s<n;++s)for(var i=t[s],o=i.length,u=r[s]=new Array(o),h,d,p=0;p<o;++p)(h=i[p])&&(d=e.call(h,h.__data__,p,i))&&("__data__"in h&&(d.__data__=h.__data__),u[p]=d);return new wn(r,this._parents)}function q9(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function U9(){return[]}function sp(e){return e==null?U9:function(){return this.querySelectorAll(e)}}function H9(e){return function(){return q9(e.apply(this,arguments))}}function V9(e){typeof e=="function"?e=H9(e):e=sp(e);for(var t=this._groups,n=t.length,r=[],s=[],i=0;i<n;++i)for(var o=t[i],u=o.length,h,d=0;d<u;++d)(h=o[d])&&(r.push(e.call(h,h.__data__,d,o)),s.push(h));return new wn(r,s)}function ip(e){return function(){return this.matches(e)}}function ap(e){return function(t){return t.matches(e)}}var j9=Array.prototype.find;function W9(e){return function(){return j9.call(this.children,e)}}function G9(){return this.firstElementChild}function K9(e){return this.select(e==null?G9:W9(typeof e=="function"?e:ap(e)))}var X9=Array.prototype.filter;function Y9(){return Array.from(this.children)}function J9(e){return function(){return X9.call(this.children,e)}}function Q9(e){return this.selectAll(e==null?Y9:J9(typeof e=="function"?e:ap(e)))}function Z9(e){typeof e!="function"&&(e=ip(e));for(var t=this._groups,n=t.length,r=new Array(n),s=0;s<n;++s)for(var i=t[s],o=i.length,u=r[s]=[],h,d=0;d<o;++d)(h=i[d])&&e.call(h,h.__data__,d,i)&&u.push(h);return new wn(r,this._parents)}function op(e){return new Array(e.length)}function ew(){return new wn(this._enter||this._groups.map(op),this._parents)}function io(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}io.prototype={constructor:io,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function tw(e){return function(){return e}}function nw(e,t,n,r,s,i){for(var o=0,u,h=t.length,d=i.length;o<d;++o)(u=t[o])?(u.__data__=i[o],r[o]=u):n[o]=new io(e,i[o]);for(;o<h;++o)(u=t[o])&&(s[o]=u)}function rw(e,t,n,r,s,i,o){var u,h,d=new Map,p=t.length,b=i.length,v=new Array(p),k;for(u=0;u<p;++u)(h=t[u])&&(v[u]=k=o.call(h,h.__data__,u,t)+"",d.has(k)?s[u]=h:d.set(k,h));for(u=0;u<b;++u)k=o.call(e,i[u],u,i)+"",(h=d.get(k))?(r[u]=h,h.__data__=i[u],d.delete(k)):n[u]=new io(e,i[u]);for(u=0;u<p;++u)(h=t[u])&&d.get(v[u])===h&&(s[u]=h)}function sw(e){return e.__data__}function iw(e,t){if(!arguments.length)return Array.from(this,sw);var n=t?rw:nw,r=this._parents,s=this._groups;typeof e!="function"&&(e=tw(e));for(var i=s.length,o=new Array(i),u=new Array(i),h=new Array(i),d=0;d<i;++d){var p=r[d],b=s[d],v=b.length,k=aw(e.call(p,p&&p.__data__,d,r)),x=k.length,A=u[d]=new Array(x),E=o[d]=new Array(x),M=h[d]=new Array(v);n(p,b,A,E,M,k,t);for(var q=0,L=0,O,F;q<x;++q)if(O=A[q]){for(q>=L&&(L=q+1);!(F=E[L])&&++L<x;);O._next=F||null}}return o=new wn(o,r),o._enter=u,o._exit=h,o}function aw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ow(){return new wn(this._exit||this._groups.map(op),this._parents)}function lw(e,t,n){var r=this.enter(),s=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),n==null?i.remove():n(i),r&&s?r.merge(s).order():s}function cw(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,s=n.length,i=r.length,o=Math.min(s,i),u=new Array(s),h=0;h<o;++h)for(var d=n[h],p=r[h],b=d.length,v=u[h]=new Array(b),k,x=0;x<b;++x)(k=d[x]||p[x])&&(v[x]=k);for(;h<s;++h)u[h]=n[h];return new wn(u,this._parents)}function uw(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],s=r.length-1,i=r[s],o;--s>=0;)(o=r[s])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function fw(e){e||(e=hw);function t(b,v){return b&&v?e(b.__data__,v.__data__):!b-!v}for(var n=this._groups,r=n.length,s=new Array(r),i=0;i<r;++i){for(var o=n[i],u=o.length,h=s[i]=new Array(u),d,p=0;p<u;++p)(d=o[p])&&(h[p]=d);h.sort(t)}return new wn(s,this._parents).order()}function hw(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function dw(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function mw(){return Array.from(this)}function pw(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],s=0,i=r.length;s<i;++s){var o=r[s];if(o)return o}return null}function gw(){let e=0;for(const t of this)++e;return e}function yw(){return!this.node()}function bw(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var s=t[n],i=0,o=s.length,u;i<o;++i)(u=s[i])&&e.call(u,u.__data__,i,s);return this}function ww(e){return function(){this.removeAttribute(e)}}function vw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _w(e,t){return function(){this.setAttribute(e,t)}}function xw(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function kw(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Sw(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Aw(e,t){var n=Po(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?vw:ww:typeof t=="function"?n.local?Sw:kw:n.local?xw:_w)(n,t))}function lp(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Tw(e){return function(){this.style.removeProperty(e)}}function Ew(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Nw(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Cw(e,t,n){return arguments.length>1?this.each((t==null?Tw:typeof t=="function"?Nw:Ew)(e,t,n??"")):Cs(this.node(),e)}function Cs(e,t){return e.style.getPropertyValue(t)||lp(e).getComputedStyle(e,null).getPropertyValue(t)}function Iw(e){return function(){delete this[e]}}function Mw(e,t){return function(){this[e]=t}}function Ow(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Lw(e,t){return arguments.length>1?this.each((t==null?Iw:typeof t=="function"?Ow:Mw)(e,t)):this.node()[e]}function cp(e){return e.trim().split(/^|\s+/)}function zc(e){return e.classList||new up(e)}function up(e){this._node=e,this._names=cp(e.getAttribute("class")||"")}up.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function fp(e,t){for(var n=zc(e),r=-1,s=t.length;++r<s;)n.add(t[r])}function hp(e,t){for(var n=zc(e),r=-1,s=t.length;++r<s;)n.remove(t[r])}function Rw(e){return function(){fp(this,e)}}function Dw(e){return function(){hp(this,e)}}function Pw(e,t){return function(){(t.apply(this,arguments)?fp:hp)(this,e)}}function $w(e,t){var n=cp(e+"");if(arguments.length<2){for(var r=zc(this.node()),s=-1,i=n.length;++s<i;)if(!r.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?Pw:t?Rw:Dw)(n,t))}function Fw(){this.textContent=""}function Bw(e){return function(){this.textContent=e}}function zw(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function qw(e){return arguments.length?this.each(e==null?Fw:(typeof e=="function"?zw:Bw)(e)):this.node().textContent}function Uw(){this.innerHTML=""}function Hw(e){return function(){this.innerHTML=e}}function Vw(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function jw(e){return arguments.length?this.each(e==null?Uw:(typeof e=="function"?Vw:Hw)(e)):this.node().innerHTML}function Ww(){this.nextSibling&&this.parentNode.appendChild(this)}function Gw(){return this.each(Ww)}function Kw(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xw(){return this.each(Kw)}function Yw(e){var t=typeof e=="function"?e:rp(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Jw(){return null}function Qw(e,t){var n=typeof e=="function"?e:rp(e),r=t==null?Jw:typeof t=="function"?t:Bc(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Zw(){var e=this.parentNode;e&&e.removeChild(this)}function ev(){return this.each(Zw)}function tv(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nv(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rv(e){return this.select(e?nv:tv)}function sv(e){return arguments.length?this.property("__data__",e):this.node().__data__}function iv(e){return function(t){e.call(this,t,this.__data__)}}function av(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function ov(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,s=t.length,i;n<s;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function lv(e,t,n){return function(){var r=this.__on,s,i=iv(t);if(r){for(var o=0,u=r.length;o<u;++o)if((s=r[o]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=i,s.options=n),s.value=t;return}}this.addEventListener(e.type,i,n),s={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(s):this.__on=[s]}}function cv(e,t,n){var r=av(e+""),s,i=r.length,o;if(arguments.length<2){var u=this.node().__on;if(u){for(var h=0,d=u.length,p;h<d;++h)for(s=0,p=u[h];s<i;++s)if((o=r[s]).type===p.type&&o.name===p.name)return p.value}return}for(u=t?lv:ov,s=0;s<i;++s)this.each(u(r[s],t,n));return this}function dp(e,t,n){var r=lp(e),s=r.CustomEvent;typeof s=="function"?s=new s(t,n):(s=r.document.createEvent("Event"),n?(s.initEvent(t,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function uv(e,t){return function(){return dp(this,e,t)}}function fv(e,t){return function(){return dp(this,e,t.apply(this,arguments))}}function hv(e,t){return this.each((typeof t=="function"?fv:uv)(e,t))}function*dv(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],s=0,i=r.length,o;s<i;++s)(o=r[s])&&(yield o)}var mp=[null];function wn(e,t){this._groups=e,this._parents=t}function Li(){return new wn([[document.documentElement]],mp)}function mv(){return this}wn.prototype=Li.prototype={constructor:wn,select:z9,selectAll:V9,selectChild:K9,selectChildren:Q9,filter:Z9,data:iw,enter:ew,exit:ow,join:lw,merge:cw,selection:mv,order:uw,sort:fw,call:dw,nodes:mw,node:pw,size:gw,empty:yw,each:bw,attr:Aw,style:Cw,property:Lw,classed:$w,text:qw,html:jw,raise:Gw,lower:Xw,append:Yw,insert:Qw,remove:ev,clone:rv,datum:sv,on:cv,dispatch:hv,[Symbol.iterator]:dv};function xr(e){return typeof e=="string"?new wn([[document.querySelector(e)]],[document.documentElement]):new wn([[e]],mp)}function pv(e){let t;for(;t=e.sourceEvent;)e=t;return e}function $r(e,t){if(e=pv(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}const D0={capture:!0,passive:!1};function P0(e){e.preventDefault(),e.stopImmediatePropagation()}function gv(e){var t=e.document.documentElement,n=xr(e).on("dragstart.drag",P0,D0);"onselectstart"in t?n.on("selectstart.drag",P0,D0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function yv(e,t){var n=e.document.documentElement,r=xr(e).on("dragstart.drag",null);t&&(r.on("click.drag",P0,D0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function qc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ri(){}var xi=.7,ao=1/xi,_s="\\s*([+-]?\\d+)\\s*",ki="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bv=/^#([0-9a-f]{3,8})$/,wv=new RegExp(`^rgb\\(${_s},${_s},${_s}\\)$`),vv=new RegExp(`^rgb\\(${Yn},${Yn},${Yn}\\)$`),_v=new RegExp(`^rgba\\(${_s},${_s},${_s},${ki}\\)$`),xv=new RegExp(`^rgba\\(${Yn},${Yn},${Yn},${ki}\\)$`),kv=new RegExp(`^hsl\\(${ki},${Yn},${Yn}\\)$`),Sv=new RegExp(`^hsla\\(${ki},${Yn},${Yn},${ki}\\)$`),Qh={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};qc(Ri,Si,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zh,formatHex:Zh,formatHex8:Av,formatHsl:Tv,formatRgb:ed,toString:ed});function Zh(){return this.rgb().formatHex()}function Av(){return this.rgb().formatHex8()}function Tv(){return gp(this).formatHsl()}function ed(){return this.rgb().formatRgb()}function Si(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?td(t):n===3?new un(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ta(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ta(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=wv.exec(e))?new un(t[1],t[2],t[3],1):(t=vv.exec(e))?new un(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_v.exec(e))?Ta(t[1],t[2],t[3],t[4]):(t=xv.exec(e))?Ta(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kv.exec(e))?sd(t[1],t[2]/100,t[3]/100,1):(t=Sv.exec(e))?sd(t[1],t[2]/100,t[3]/100,t[4]):Qh.hasOwnProperty(e)?td(Qh[e]):e==="transparent"?new un(NaN,NaN,NaN,0):null}function td(e){return new un(e>>16&255,e>>8&255,e&255,1)}function Ta(e,t,n,r){return r<=0&&(e=t=n=NaN),new un(e,t,n,r)}function Ev(e){return e instanceof Ri||(e=Si(e)),e?(e=e.rgb(),new un(e.r,e.g,e.b,e.opacity)):new un}function $0(e,t,n,r){return arguments.length===1?Ev(e):new un(e,t,n,r??1)}function un(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}qc(un,$0,pp(Ri,{brighter(e){return e=e==null?ao:Math.pow(ao,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xi:Math.pow(xi,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new un(jr(this.r),jr(this.g),jr(this.b),oo(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nd,formatHex:nd,formatHex8:Nv,formatRgb:rd,toString:rd}));function nd(){return`#${Hr(this.r)}${Hr(this.g)}${Hr(this.b)}`}function Nv(){return`#${Hr(this.r)}${Hr(this.g)}${Hr(this.b)}${Hr((isNaN(this.opacity)?1:this.opacity)*255)}`}function rd(){const e=oo(this.opacity);return`${e===1?"rgb(":"rgba("}${jr(this.r)}, ${jr(this.g)}, ${jr(this.b)}${e===1?")":`, ${e})`}`}function oo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hr(e){return e=jr(e),(e<16?"0":"")+e.toString(16)}function sd(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dn(e,t,n,r)}function gp(e){if(e instanceof Dn)return new Dn(e.h,e.s,e.l,e.opacity);if(e instanceof Ri||(e=Si(e)),!e)return new Dn;if(e instanceof Dn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,s=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,u=i-s,h=(i+s)/2;return u?(t===i?o=(n-r)/u+(n<r)*6:n===i?o=(r-t)/u+2:o=(t-n)/u+4,u/=h<.5?i+s:2-i-s,o*=60):u=h>0&&h<1?0:o,new Dn(o,u,h,e.opacity)}function Cv(e,t,n,r){return arguments.length===1?gp(e):new Dn(e,t,n,r??1)}function Dn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}qc(Dn,Cv,pp(Ri,{brighter(e){return e=e==null?ao:Math.pow(ao,e),new Dn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xi:Math.pow(xi,e),new Dn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,s=2*n-r;return new un(Kl(e>=240?e-240:e+120,s,r),Kl(e,s,r),Kl(e<120?e+240:e-120,s,r),this.opacity)},clamp(){return new Dn(id(this.h),Ea(this.s),Ea(this.l),oo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=oo(this.opacity);return`${e===1?"hsl(":"hsla("}${id(this.h)}, ${Ea(this.s)*100}%, ${Ea(this.l)*100}%${e===1?")":`, ${e})`}`}}));function id(e){return e=(e||0)%360,e<0?e+360:e}function Ea(e){return Math.max(0,Math.min(1,e||0))}function Kl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const yp=e=>()=>e;function Iv(e,t){return function(n){return e+n*t}}function Mv(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Ov(e){return(e=+e)==1?bp:function(t,n){return n-t?Mv(t,n,e):yp(isNaN(t)?n:t)}}function bp(e,t){var n=t-e;return n?Iv(e,n):yp(isNaN(e)?t:e)}const ad=function e(t){var n=Ov(t);function r(s,i){var o=n((s=$0(s)).r,(i=$0(i)).r),u=n(s.g,i.g),h=n(s.b,i.b),d=bp(s.opacity,i.opacity);return function(p){return s.r=o(p),s.g=u(p),s.b=h(p),s.opacity=d(p),s+""}}return r.gamma=e,r}(1);function _r(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var F0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xl=new RegExp(F0.source,"g");function Lv(e){return function(){return e}}function Rv(e){return function(t){return e(t)+""}}function Dv(e,t){var n=F0.lastIndex=Xl.lastIndex=0,r,s,i,o=-1,u=[],h=[];for(e=e+"",t=t+"";(r=F0.exec(e))&&(s=Xl.exec(t));)(i=s.index)>n&&(i=t.slice(n,i),u[o]?u[o]+=i:u[++o]=i),(r=r[0])===(s=s[0])?u[o]?u[o]+=s:u[++o]=s:(u[++o]=null,h.push({i:o,x:_r(r,s)})),n=Xl.lastIndex;return n<t.length&&(i=t.slice(n),u[o]?u[o]+=i:u[++o]=i),u.length<2?h[0]?Rv(h[0].x):Lv(t):(t=h.length,function(d){for(var p=0,b;p<t;++p)u[(b=h[p]).i]=b.x(d);return u.join("")})}var od=180/Math.PI,B0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wp(e,t,n,r,s,i){var o,u,h;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(h=e*n+t*r)&&(n-=e*h,r-=t*h),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,h/=u),e*r<t*n&&(e=-e,t=-t,h=-h,o=-o),{translateX:s,translateY:i,rotate:Math.atan2(t,e)*od,skewX:Math.atan(h)*od,scaleX:o,scaleY:u}}var Na;function Pv(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?B0:wp(t.a,t.b,t.c,t.d,t.e,t.f)}function $v(e){return e==null||(Na||(Na=document.createElementNS("http://www.w3.org/2000/svg","g")),Na.setAttribute("transform",e),!(e=Na.transform.baseVal.consolidate()))?B0:(e=e.matrix,wp(e.a,e.b,e.c,e.d,e.e,e.f))}function vp(e,t,n,r){function s(d){return d.length?d.pop()+" ":""}function i(d,p,b,v,k,x){if(d!==b||p!==v){var A=k.push("translate(",null,t,null,n);x.push({i:A-4,x:_r(d,b)},{i:A-2,x:_r(p,v)})}else(b||v)&&k.push("translate("+b+t+v+n)}function o(d,p,b,v){d!==p?(d-p>180?p+=360:p-d>180&&(d+=360),v.push({i:b.push(s(b)+"rotate(",null,r)-2,x:_r(d,p)})):p&&b.push(s(b)+"rotate("+p+r)}function u(d,p,b,v){d!==p?v.push({i:b.push(s(b)+"skewX(",null,r)-2,x:_r(d,p)}):p&&b.push(s(b)+"skewX("+p+r)}function h(d,p,b,v,k,x){if(d!==b||p!==v){var A=k.push(s(k)+"scale(",null,",",null,")");x.push({i:A-4,x:_r(d,b)},{i:A-2,x:_r(p,v)})}else(b!==1||v!==1)&&k.push(s(k)+"scale("+b+","+v+")")}return function(d,p){var b=[],v=[];return d=e(d),p=e(p),i(d.translateX,d.translateY,p.translateX,p.translateY,b,v),o(d.rotate,p.rotate,b,v),u(d.skewX,p.skewX,b,v),h(d.scaleX,d.scaleY,p.scaleX,p.scaleY,b,v),d=p=null,function(k){for(var x=-1,A=v.length,E;++x<A;)b[(E=v[x]).i]=E.x(k);return b.join("")}}}var Fv=vp(Pv,"px, ","px)","deg)"),Bv=vp($v,", ",")",")"),zv=1e-12;function ld(e){return((e=Math.exp(e))+1/e)/2}function qv(e){return((e=Math.exp(e))-1/e)/2}function Uv(e){return((e=Math.exp(2*e))-1)/(e+1)}const Hv=function e(t,n,r){function s(i,o){var u=i[0],h=i[1],d=i[2],p=o[0],b=o[1],v=o[2],k=p-u,x=b-h,A=k*k+x*x,E,M;if(A<zv)M=Math.log(v/d)/t,E=function(j){return[u+j*k,h+j*x,d*Math.exp(t*j*M)]};else{var q=Math.sqrt(A),L=(v*v-d*d+r*A)/(2*d*n*q),O=(v*v-d*d-r*A)/(2*v*n*q),F=Math.log(Math.sqrt(L*L+1)-L),z=Math.log(Math.sqrt(O*O+1)-O);M=(z-F)/t,E=function(j){var G=j*M,Q=ld(F),ye=d/(n*q)*(Q*Uv(t*G+F)-qv(F));return[u+ye*k,h+ye*x,d*Q/ld(t*G+F)]}}return E.duration=M*1e3*t/Math.SQRT2,E}return s.rho=function(i){var o=Math.max(.001,+i),u=o*o,h=u*u;return e(o,u,h)},s}(Math.SQRT2,2,4);var Is=0,ri=0,Xs=0,_p=1e3,lo,si,co=0,Yr=0,$o=0,Ai=typeof performance=="object"&&performance.now?performance:Date,xp=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Uc(){return Yr||(xp(Vv),Yr=Ai.now()+$o)}function Vv(){Yr=0}function uo(){this._call=this._time=this._next=null}uo.prototype=kp.prototype={constructor:uo,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Uc():+n)+(t==null?0:+t),!this._next&&si!==this&&(si?si._next=this:lo=this,si=this),this._call=e,this._time=n,z0()},stop:function(){this._call&&(this._call=null,this._time=1/0,z0())}};function kp(e,t,n){var r=new uo;return r.restart(e,t,n),r}function jv(){Uc(),++Is;for(var e=lo,t;e;)(t=Yr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Is}function cd(){Yr=(co=Ai.now())+$o,Is=ri=0;try{jv()}finally{Is=0,Gv(),Yr=0}}function Wv(){var e=Ai.now(),t=e-co;t>_p&&($o-=t,co=e)}function Gv(){for(var e,t=lo,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:lo=n);si=e,z0(r)}function z0(e){if(!Is){ri&&(ri=clearTimeout(ri));var t=e-Yr;t>24?(e<1/0&&(ri=setTimeout(cd,e-Ai.now()-$o)),Xs&&(Xs=clearInterval(Xs))):(Xs||(co=Ai.now(),Xs=setInterval(Wv,_p)),Is=1,xp(cd))}}function ud(e,t,n){var r=new uo;return t=t==null?0:+t,r.restart(s=>{r.stop(),e(s+t)},t,n),r}var Kv=Fc("start","end","cancel","interrupt"),Xv=[],Sp=0,fd=1,q0=2,Fa=3,hd=4,U0=5,Ba=6;function Fo(e,t,n,r,s,i){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Yv(e,n,{name:t,index:r,group:s,on:Kv,tween:Xv,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Sp})}function Hc(e,t){var n=Bn(e,t);if(n.state>Sp)throw new Error("too late; already scheduled");return n}function Qn(e,t){var n=Bn(e,t);if(n.state>Fa)throw new Error("too late; already running");return n}function Bn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Yv(e,t,n){var r=e.__transition,s;r[t]=n,n.timer=kp(i,0,n.time);function i(d){n.state=fd,n.timer.restart(o,n.delay,n.time),n.delay<=d&&o(d-n.delay)}function o(d){var p,b,v,k;if(n.state!==fd)return h();for(p in r)if(k=r[p],k.name===n.name){if(k.state===Fa)return ud(o);k.state===hd?(k.state=Ba,k.timer.stop(),k.on.call("interrupt",e,e.__data__,k.index,k.group),delete r[p]):+p<t&&(k.state=Ba,k.timer.stop(),k.on.call("cancel",e,e.__data__,k.index,k.group),delete r[p])}if(ud(function(){n.state===Fa&&(n.state=hd,n.timer.restart(u,n.delay,n.time),u(d))}),n.state=q0,n.on.call("start",e,e.__data__,n.index,n.group),n.state===q0){for(n.state=Fa,s=new Array(v=n.tween.length),p=0,b=-1;p<v;++p)(k=n.tween[p].value.call(e,e.__data__,n.index,n.group))&&(s[++b]=k);s.length=b+1}}function u(d){for(var p=d<n.duration?n.ease.call(null,d/n.duration):(n.timer.restart(h),n.state=U0,1),b=-1,v=s.length;++b<v;)s[b].call(e,p);n.state===U0&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=Ba,n.timer.stop(),delete r[t];for(var d in r)return;delete e.__transition}}function za(e,t){var n=e.__transition,r,s,i=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){i=!1;continue}s=r.state>q0&&r.state<U0,r.state=Ba,r.timer.stop(),r.on.call(s?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}i&&delete e.__transition}}function Jv(e){return this.each(function(){za(this,e)})}function Qv(e,t){var n,r;return function(){var s=Qn(this,e),i=s.tween;if(i!==n){r=n=i;for(var o=0,u=r.length;o<u;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}s.tween=r}}function Zv(e,t,n){var r,s;if(typeof n!="function")throw new Error;return function(){var i=Qn(this,e),o=i.tween;if(o!==r){s=(r=o).slice();for(var u={name:t,value:n},h=0,d=s.length;h<d;++h)if(s[h].name===t){s[h]=u;break}h===d&&s.push(u)}i.tween=s}}function e_(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Bn(this.node(),n).tween,s=0,i=r.length,o;s<i;++s)if((o=r[s]).name===e)return o.value;return null}return this.each((t==null?Qv:Zv)(n,e,t))}function Vc(e,t,n){var r=e._id;return e.each(function(){var s=Qn(this,r);(s.value||(s.value={}))[t]=n.apply(this,arguments)}),function(s){return Bn(s,r).value[t]}}function Ap(e,t){var n;return(typeof t=="number"?_r:t instanceof Si?ad:(n=Si(t))?(t=n,ad):Dv)(e,t)}function t_(e){return function(){this.removeAttribute(e)}}function n_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function r_(e,t,n){var r,s=n+"",i;return function(){var o=this.getAttribute(e);return o===s?null:o===r?i:i=t(r=o,n)}}function s_(e,t,n){var r,s=n+"",i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===s?null:o===r?i:i=t(r=o,n)}}function i_(e,t,n){var r,s,i;return function(){var o,u=n(this),h;return u==null?void this.removeAttribute(e):(o=this.getAttribute(e),h=u+"",o===h?null:o===r&&h===s?i:(s=h,i=t(r=o,u)))}}function a_(e,t,n){var r,s,i;return function(){var o,u=n(this),h;return u==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),h=u+"",o===h?null:o===r&&h===s?i:(s=h,i=t(r=o,u)))}}function o_(e,t){var n=Po(e),r=n==="transform"?Bv:Ap;return this.attrTween(e,typeof t=="function"?(n.local?a_:i_)(n,r,Vc(this,"attr."+e,t)):t==null?(n.local?n_:t_)(n):(n.local?s_:r_)(n,r,t))}function l_(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function c_(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function u_(e,t){var n,r;function s(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&c_(e,i)),n}return s._value=t,s}function f_(e,t){var n,r;function s(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&l_(e,i)),n}return s._value=t,s}function h_(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Po(e);return this.tween(n,(r.local?u_:f_)(r,t))}function d_(e,t){return function(){Hc(this,e).delay=+t.apply(this,arguments)}}function m_(e,t){return t=+t,function(){Hc(this,e).delay=t}}function p_(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?d_:m_)(t,e)):Bn(this.node(),t).delay}function g_(e,t){return function(){Qn(this,e).duration=+t.apply(this,arguments)}}function y_(e,t){return t=+t,function(){Qn(this,e).duration=t}}function b_(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?g_:y_)(t,e)):Bn(this.node(),t).duration}function w_(e,t){if(typeof t!="function")throw new Error;return function(){Qn(this,e).ease=t}}function v_(e){var t=this._id;return arguments.length?this.each(w_(t,e)):Bn(this.node(),t).ease}function __(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Qn(this,e).ease=n}}function x_(e){if(typeof e!="function")throw new Error;return this.each(__(this._id,e))}function k_(e){typeof e!="function"&&(e=ip(e));for(var t=this._groups,n=t.length,r=new Array(n),s=0;s<n;++s)for(var i=t[s],o=i.length,u=r[s]=[],h,d=0;d<o;++d)(h=i[d])&&e.call(h,h.__data__,d,i)&&u.push(h);return new mr(r,this._parents,this._name,this._id)}function S_(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,s=n.length,i=Math.min(r,s),o=new Array(r),u=0;u<i;++u)for(var h=t[u],d=n[u],p=h.length,b=o[u]=new Array(p),v,k=0;k<p;++k)(v=h[k]||d[k])&&(b[k]=v);for(;u<r;++u)o[u]=t[u];return new mr(o,this._parents,this._name,this._id)}function A_(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function T_(e,t,n){var r,s,i=A_(t)?Hc:Qn;return function(){var o=i(this,e),u=o.on;u!==r&&(s=(r=u).copy()).on(t,n),o.on=s}}function E_(e,t){var n=this._id;return arguments.length<2?Bn(this.node(),n).on.on(e):this.each(T_(n,e,t))}function N_(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function C_(){return this.on("end.remove",N_(this._id))}function I_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Bc(e));for(var r=this._groups,s=r.length,i=new Array(s),o=0;o<s;++o)for(var u=r[o],h=u.length,d=i[o]=new Array(h),p,b,v=0;v<h;++v)(p=u[v])&&(b=e.call(p,p.__data__,v,u))&&("__data__"in p&&(b.__data__=p.__data__),d[v]=b,Fo(d[v],t,n,v,d,Bn(p,n)));return new mr(i,this._parents,t,n)}function M_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=sp(e));for(var r=this._groups,s=r.length,i=[],o=[],u=0;u<s;++u)for(var h=r[u],d=h.length,p,b=0;b<d;++b)if(p=h[b]){for(var v=e.call(p,p.__data__,b,h),k,x=Bn(p,n),A=0,E=v.length;A<E;++A)(k=v[A])&&Fo(k,t,n,A,v,x);i.push(v),o.push(p)}return new mr(i,o,t,n)}var O_=Li.prototype.constructor;function L_(){return new O_(this._groups,this._parents)}function R_(e,t){var n,r,s;return function(){var i=Cs(this,e),o=(this.style.removeProperty(e),Cs(this,e));return i===o?null:i===n&&o===r?s:s=t(n=i,r=o)}}function Tp(e){return function(){this.style.removeProperty(e)}}function D_(e,t,n){var r,s=n+"",i;return function(){var o=Cs(this,e);return o===s?null:o===r?i:i=t(r=o,n)}}function P_(e,t,n){var r,s,i;return function(){var o=Cs(this,e),u=n(this),h=u+"";return u==null&&(h=u=(this.style.removeProperty(e),Cs(this,e))),o===h?null:o===r&&h===s?i:(s=h,i=t(r=o,u))}}function $_(e,t){var n,r,s,i="style."+t,o="end."+i,u;return function(){var h=Qn(this,e),d=h.on,p=h.value[i]==null?u||(u=Tp(t)):void 0;(d!==n||s!==p)&&(r=(n=d).copy()).on(o,s=p),h.on=r}}function F_(e,t,n){var r=(e+="")=="transform"?Fv:Ap;return t==null?this.styleTween(e,R_(e,r)).on("end.style."+e,Tp(e)):typeof t=="function"?this.styleTween(e,P_(e,r,Vc(this,"style."+e,t))).each($_(this._id,e)):this.styleTween(e,D_(e,r,t),n).on("end.style."+e,null)}function B_(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function z_(e,t,n){var r,s;function i(){var o=t.apply(this,arguments);return o!==s&&(r=(s=o)&&B_(e,o,n)),r}return i._value=t,i}function q_(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,z_(e,t,n??""))}function U_(e){return function(){this.textContent=e}}function H_(e){return function(){var t=e(this);this.textContent=t??""}}function V_(e){return this.tween("text",typeof e=="function"?H_(Vc(this,"text",e)):U_(e==null?"":e+""))}function j_(e){return function(t){this.textContent=e.call(this,t)}}function W_(e){var t,n;function r(){var s=e.apply(this,arguments);return s!==n&&(t=(n=s)&&j_(s)),t}return r._value=e,r}function G_(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,W_(e))}function K_(){for(var e=this._name,t=this._id,n=Ep(),r=this._groups,s=r.length,i=0;i<s;++i)for(var o=r[i],u=o.length,h,d=0;d<u;++d)if(h=o[d]){var p=Bn(h,t);Fo(h,e,n,d,o,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new mr(r,this._parents,e,n)}function X_(){var e,t,n=this,r=n._id,s=n.size();return new Promise(function(i,o){var u={value:o},h={value:function(){--s===0&&i()}};n.each(function(){var d=Qn(this,r),p=d.on;p!==e&&(t=(e=p).copy(),t._.cancel.push(u),t._.interrupt.push(u),t._.end.push(h)),d.on=t}),s===0&&i()})}var Y_=0;function mr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ep(){return++Y_}var ar=Li.prototype;mr.prototype={constructor:mr,select:I_,selectAll:M_,selectChild:ar.selectChild,selectChildren:ar.selectChildren,filter:k_,merge:S_,selection:L_,transition:K_,call:ar.call,nodes:ar.nodes,node:ar.node,size:ar.size,empty:ar.empty,each:ar.each,on:E_,attr:o_,attrTween:h_,style:F_,styleTween:q_,text:V_,textTween:G_,remove:C_,tween:e_,delay:p_,duration:b_,ease:v_,easeVarying:x_,end:X_,[Symbol.iterator]:ar[Symbol.iterator]};function J_(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Q_={time:null,delay:0,duration:250,ease:J_};function Z_(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function ex(e){var t,n;e instanceof mr?(t=e._id,e=e._name):(t=Ep(),(n=Q_).time=Uc(),e=e==null?null:e+"");for(var r=this._groups,s=r.length,i=0;i<s;++i)for(var o=r[i],u=o.length,h,d=0;d<u;++d)(h=o[d])&&Fo(h,e,t,d,o,n||Z_(h,t));return new mr(r,this._parents,e,t)}Li.prototype.interrupt=Jv;Li.prototype.transition=ex;const H0=Math.PI,V0=2*H0,Br=1e-6,tx=V0-Br;function Np(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function nx(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Np;const n=10**t;return function(r){this._+=r[0];for(let s=1,i=r.length;s<i;++s)this._+=Math.round(arguments[s]*n)/n+r[s]}}class rx{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Np:nx(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,s){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+s}`}bezierCurveTo(t,n,r,s,i,o){this._append`C${+t},${+n},${+r},${+s},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,s,i){if(t=+t,n=+n,r=+r,s=+s,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,u=this._y1,h=r-t,d=s-n,p=o-t,b=u-n,v=p*p+b*b;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>Br)if(!(Math.abs(b*h-d*p)>Br)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let k=r-o,x=s-u,A=h*h+d*d,E=k*k+x*x,M=Math.sqrt(A),q=Math.sqrt(v),L=i*Math.tan((H0-Math.acos((A+v-E)/(2*M*q)))/2),O=L/q,F=L/M;Math.abs(O-1)>Br&&this._append`L${t+O*p},${n+O*b}`,this._append`A${i},${i},0,0,${+(b*k>p*x)},${this._x1=t+F*h},${this._y1=n+F*d}`}}arc(t,n,r,s,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(s),h=r*Math.sin(s),d=t+u,p=n+h,b=1^o,v=o?s-i:i-s;this._x1===null?this._append`M${d},${p}`:(Math.abs(this._x1-d)>Br||Math.abs(this._y1-p)>Br)&&this._append`L${d},${p}`,r&&(v<0&&(v=v%V0+V0),v>tx?this._append`A${r},${r},0,1,${b},${t-u},${n-h}A${r},${r},0,1,${b},${this._x1=d},${this._y1=p}`:v>Br&&this._append`A${r},${r},0,${+(v>=H0)},${b},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+s}h${-r}Z`}toString(){return this._}}function sx(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const dd=Symbol("implicit");function Cp(){var e=new Wh,t=[],n=[],r=dd;function s(i){let o=e.get(i);if(o===void 0){if(r!==dd)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return s.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Wh;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return s},s.range=function(i){return arguments.length?(n=Array.from(i),s):n.slice()},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return Cp(t,n).unknown(r)},sx.apply(s,arguments),s}function ix(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const ax=ix("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function md(e){return function(){return e}}function ox(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new rx(t)}var lx=Array.prototype.slice;function cx(e){return e[0]}function ux(e){return e[1]}class fx{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function hx(e){return new fx(e,!0)}function dx(e){return e.source}function mx(e){return e.target}function px(e){let t=dx,n=mx,r=cx,s=ux,i=null,o=null,u=ox(h);function h(){let d;const p=lx.call(arguments),b=t.apply(this,p),v=n.apply(this,p);if(i==null&&(o=e(d=u())),o.lineStart(),p[0]=b,o.point(+r.apply(this,p),+s.apply(this,p)),p[0]=v,o.point(+r.apply(this,p),+s.apply(this,p)),o.lineEnd(),d)return o=null,d+""||null}return h.source=function(d){return arguments.length?(t=d,h):t},h.target=function(d){return arguments.length?(n=d,h):n},h.x=function(d){return arguments.length?(r=typeof d=="function"?d:md(+d),h):r},h.y=function(d){return arguments.length?(s=typeof d=="function"?d:md(+d),h):s},h.context=function(d){return arguments.length?(d==null?i=o=null:o=e(i=d),h):i},h}function gx(){return px(hx)}const Ca=e=>()=>e;function yx(e,{sourceEvent:t,target:n,transform:r,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:s}})}function ur(e,t,n){this.k=e,this.x=t,this.y=n}ur.prototype={constructor:ur,scale:function(e){return e===1?this:new ur(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ur(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Bo=new ur(1,0,0);hs.prototype=ur.prototype;function hs(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Bo;return e.__zoom}function Yl(e){e.stopImmediatePropagation()}function Ys(e){e.preventDefault(),e.stopImmediatePropagation()}function bx(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function wx(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function pd(){return this.__zoom||Bo}function vx(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function _x(){return navigator.maxTouchPoints||"ontouchstart"in this}function xx(e,t,n){var r=e.invertX(t[0][0])-n[0][0],s=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s),o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o))}function kx(){var e=bx,t=wx,n=xx,r=vx,s=_x,i=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],u=250,h=Hv,d=Fc("start","zoom","end"),p,b,v,k=500,x=150,A=0,E=10;function M(V){V.property("__zoom",pd).on("wheel.zoom",G,{passive:!1}).on("mousedown.zoom",Q).on("dblclick.zoom",ye).filter(s).on("touchstart.zoom",ce).on("touchmove.zoom",te).on("touchend.zoom touchcancel.zoom",he).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(V,oe,Y,fe){var ee=V.selection?V.selection():V;ee.property("__zoom",pd),V!==ee?F(V,oe,Y,fe):ee.interrupt().each(function(){z(this,arguments).event(fe).start().zoom(null,typeof oe=="function"?oe.apply(this,arguments):oe).end()})},M.scaleBy=function(V,oe,Y,fe){M.scaleTo(V,function(){var ee=this.__zoom.k,Ae=typeof oe=="function"?oe.apply(this,arguments):oe;return ee*Ae},Y,fe)},M.scaleTo=function(V,oe,Y,fe){M.transform(V,function(){var ee=t.apply(this,arguments),Ae=this.__zoom,Oe=Y==null?O(ee):typeof Y=="function"?Y.apply(this,arguments):Y,Te=Ae.invert(Oe),H=typeof oe=="function"?oe.apply(this,arguments):oe;return n(L(q(Ae,H),Oe,Te),ee,o)},Y,fe)},M.translateBy=function(V,oe,Y,fe){M.transform(V,function(){return n(this.__zoom.translate(typeof oe=="function"?oe.apply(this,arguments):oe,typeof Y=="function"?Y.apply(this,arguments):Y),t.apply(this,arguments),o)},null,fe)},M.translateTo=function(V,oe,Y,fe,ee){M.transform(V,function(){var Ae=t.apply(this,arguments),Oe=this.__zoom,Te=fe==null?O(Ae):typeof fe=="function"?fe.apply(this,arguments):fe;return n(Bo.translate(Te[0],Te[1]).scale(Oe.k).translate(typeof oe=="function"?-oe.apply(this,arguments):-oe,typeof Y=="function"?-Y.apply(this,arguments):-Y),Ae,o)},fe,ee)};function q(V,oe){return oe=Math.max(i[0],Math.min(i[1],oe)),oe===V.k?V:new ur(oe,V.x,V.y)}function L(V,oe,Y){var fe=oe[0]-Y[0]*V.k,ee=oe[1]-Y[1]*V.k;return fe===V.x&&ee===V.y?V:new ur(V.k,fe,ee)}function O(V){return[(+V[0][0]+ +V[1][0])/2,(+V[0][1]+ +V[1][1])/2]}function F(V,oe,Y,fe){V.on("start.zoom",function(){z(this,arguments).event(fe).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(fe).end()}).tween("zoom",function(){var ee=this,Ae=arguments,Oe=z(ee,Ae).event(fe),Te=t.apply(ee,Ae),H=Y==null?O(Te):typeof Y=="function"?Y.apply(ee,Ae):Y,me=Math.max(Te[1][0]-Te[0][0],Te[1][1]-Te[0][1]),Ee=ee.__zoom,Je=typeof oe=="function"?oe.apply(ee,Ae):oe,_t=h(Ee.invert(H).concat(me/Ee.k),Je.invert(H).concat(me/Je.k));return function(xt){if(xt===1)xt=Je;else{var Pt=_t(xt),dn=me/Pt[2];xt=new ur(dn,H[0]-Pt[0]*dn,H[1]-Pt[1]*dn)}Oe.zoom(null,xt)}})}function z(V,oe,Y){return!Y&&V.__zooming||new j(V,oe)}function j(V,oe){this.that=V,this.args=oe,this.active=0,this.sourceEvent=null,this.extent=t.apply(V,oe),this.taps=0}j.prototype={event:function(V){return V&&(this.sourceEvent=V),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(V,oe){return this.mouse&&V!=="mouse"&&(this.mouse[1]=oe.invert(this.mouse[0])),this.touch0&&V!=="touch"&&(this.touch0[1]=oe.invert(this.touch0[0])),this.touch1&&V!=="touch"&&(this.touch1[1]=oe.invert(this.touch1[0])),this.that.__zoom=oe,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(V){var oe=xr(this.that).datum();d.call(V,this.that,new yx(V,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:d}),oe)}};function G(V,...oe){if(!e.apply(this,arguments))return;var Y=z(this,oe).event(V),fe=this.__zoom,ee=Math.max(i[0],Math.min(i[1],fe.k*Math.pow(2,r.apply(this,arguments)))),Ae=$r(V);if(Y.wheel)(Y.mouse[0][0]!==Ae[0]||Y.mouse[0][1]!==Ae[1])&&(Y.mouse[1]=fe.invert(Y.mouse[0]=Ae)),clearTimeout(Y.wheel);else{if(fe.k===ee)return;Y.mouse=[Ae,fe.invert(Ae)],za(this),Y.start()}Ys(V),Y.wheel=setTimeout(Oe,x),Y.zoom("mouse",n(L(q(fe,ee),Y.mouse[0],Y.mouse[1]),Y.extent,o));function Oe(){Y.wheel=null,Y.end()}}function Q(V,...oe){if(v||!e.apply(this,arguments))return;var Y=V.currentTarget,fe=z(this,oe,!0).event(V),ee=xr(V.view).on("mousemove.zoom",H,!0).on("mouseup.zoom",me,!0),Ae=$r(V,Y),Oe=V.clientX,Te=V.clientY;gv(V.view),Yl(V),fe.mouse=[Ae,this.__zoom.invert(Ae)],za(this),fe.start();function H(Ee){if(Ys(Ee),!fe.moved){var Je=Ee.clientX-Oe,_t=Ee.clientY-Te;fe.moved=Je*Je+_t*_t>A}fe.event(Ee).zoom("mouse",n(L(fe.that.__zoom,fe.mouse[0]=$r(Ee,Y),fe.mouse[1]),fe.extent,o))}function me(Ee){ee.on("mousemove.zoom mouseup.zoom",null),yv(Ee.view,fe.moved),Ys(Ee),fe.event(Ee).end()}}function ye(V,...oe){if(e.apply(this,arguments)){var Y=this.__zoom,fe=$r(V.changedTouches?V.changedTouches[0]:V,this),ee=Y.invert(fe),Ae=Y.k*(V.shiftKey?.5:2),Oe=n(L(q(Y,Ae),fe,ee),t.apply(this,oe),o);Ys(V),u>0?xr(this).transition().duration(u).call(F,Oe,fe,V):xr(this).call(M.transform,Oe,fe,V)}}function ce(V,...oe){if(e.apply(this,arguments)){var Y=V.touches,fe=Y.length,ee=z(this,oe,V.changedTouches.length===fe).event(V),Ae,Oe,Te,H;for(Yl(V),Oe=0;Oe<fe;++Oe)Te=Y[Oe],H=$r(Te,this),H=[H,this.__zoom.invert(H),Te.identifier],ee.touch0?!ee.touch1&&ee.touch0[2]!==H[2]&&(ee.touch1=H,ee.taps=0):(ee.touch0=H,Ae=!0,ee.taps=1+!!p);p&&(p=clearTimeout(p)),Ae&&(ee.taps<2&&(b=H[0],p=setTimeout(function(){p=null},k)),za(this),ee.start())}}function te(V,...oe){if(this.__zooming){var Y=z(this,oe).event(V),fe=V.changedTouches,ee=fe.length,Ae,Oe,Te,H;for(Ys(V),Ae=0;Ae<ee;++Ae)Oe=fe[Ae],Te=$r(Oe,this),Y.touch0&&Y.touch0[2]===Oe.identifier?Y.touch0[0]=Te:Y.touch1&&Y.touch1[2]===Oe.identifier&&(Y.touch1[0]=Te);if(Oe=Y.that.__zoom,Y.touch1){var me=Y.touch0[0],Ee=Y.touch0[1],Je=Y.touch1[0],_t=Y.touch1[1],xt=(xt=Je[0]-me[0])*xt+(xt=Je[1]-me[1])*xt,Pt=(Pt=_t[0]-Ee[0])*Pt+(Pt=_t[1]-Ee[1])*Pt;Oe=q(Oe,Math.sqrt(xt/Pt)),Te=[(me[0]+Je[0])/2,(me[1]+Je[1])/2],H=[(Ee[0]+_t[0])/2,(Ee[1]+_t[1])/2]}else if(Y.touch0)Te=Y.touch0[0],H=Y.touch0[1];else return;Y.zoom("touch",n(L(Oe,Te,H),Y.extent,o))}}function he(V,...oe){if(this.__zooming){var Y=z(this,oe).event(V),fe=V.changedTouches,ee=fe.length,Ae,Oe;for(Yl(V),v&&clearTimeout(v),v=setTimeout(function(){v=null},k),Ae=0;Ae<ee;++Ae)Oe=fe[Ae],Y.touch0&&Y.touch0[2]===Oe.identifier?delete Y.touch0:Y.touch1&&Y.touch1[2]===Oe.identifier&&delete Y.touch1;if(Y.touch1&&!Y.touch0&&(Y.touch0=Y.touch1,delete Y.touch1),Y.touch0)Y.touch0[1]=this.__zoom.invert(Y.touch0[0]);else if(Y.end(),Y.taps===2&&(Oe=$r(Oe,this),Math.hypot(b[0]-Oe[0],b[1]-Oe[1])<E)){var Te=xr(this).on("dblclick.zoom");Te&&Te.apply(this,arguments)}}}return M.wheelDelta=function(V){return arguments.length?(r=typeof V=="function"?V:Ca(+V),M):r},M.filter=function(V){return arguments.length?(e=typeof V=="function"?V:Ca(!!V),M):e},M.touchable=function(V){return arguments.length?(s=typeof V=="function"?V:Ca(!!V),M):s},M.extent=function(V){return arguments.length?(t=typeof V=="function"?V:Ca([[+V[0][0],+V[0][1]],[+V[1][0],+V[1][1]]]),M):t},M.scaleExtent=function(V){return arguments.length?(i[0]=+V[0],i[1]=+V[1],M):[i[0],i[1]]},M.translateExtent=function(V){return arguments.length?(o[0][0]=+V[0][0],o[1][0]=+V[1][0],o[0][1]=+V[0][1],o[1][1]=+V[1][1],M):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},M.constrain=function(V){return arguments.length?(n=V,M):n},M.duration=function(V){return arguments.length?(u=+V,M):u},M.interpolate=function(V){return arguments.length?(h=V,M):h},M.on=function(){var V=d.on.apply(d,arguments);return V===d?M:V},M.clickDistance=function(V){return arguments.length?(A=(V=+V)*V,M):Math.sqrt(A)},M.tapDistance=function(V){return arguments.length?(E=+V,M):E},M}const Ip=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh"),Sx=Cp(ax),Ax=(e=1,t=3,n=2)=>r=>e+t/n**r.state.depth,Tx={autoFit:!1,duration:500,embedGlobalCSS:!0,fitRatio:.95,maxInitialScale:2,scrollForPan:Ip,initialExpandLevel:-1,zoom:!0,pan:!0,toggleRecursively:!1,color:e=>{var t;return Sx(`${((t=e.state)==null?void 0:t.path)||""}`)},lineWidth:Ax(),maxWidth:0,nodeMinHeight:16,paddingX:8,spacingHorizontal:80,spacingVertical:5};function Ex(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}function bn(e){if(typeof e=="string"){const n=e;e=r=>r.matches(n)}const t=e;return function(){let n=Array.from(this.childNodes);return t&&(n=n.filter(r=>t(r))),n}}function Nx(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Cx(){return this.eachAfter(Nx)}function Ix(e){var t=this,n,r=[t],s,i,o;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),s=t.children,s)for(i=0,o=s.length;i<o;++i)r.push(s[i]);while(r.length);return this}function Mx(e){for(var t=this,n=[t],r,s;t=n.pop();)if(e(t),r=t.children,r)for(s=r.length-1;s>=0;--s)n.push(r[s]);return this}function Ox(e){for(var t=this,n=[t],r=[],s,i,o;t=n.pop();)if(r.push(t),s=t.children,s)for(i=0,o=s.length;i<o;++i)n.push(s[i]);for(;t=r.pop();)e(t);return this}function Lx(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,s=r&&r.length;--s>=0;)n+=r[s].value;t.value=n})}function Rx(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Dx(e){for(var t=this,n=Px(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var s=r.length;e!==n;)r.splice(s,0,e),e=e.parent;return r}function Px(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),s=null;for(e=n.pop(),t=r.pop();e===t;)s=e,e=n.pop(),t=r.pop();return s}function $x(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Fx(){var e=[];return this.each(function(t){e.push(t)}),e}function Bx(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function zx(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function jc(e,t){var n=new fo(e),r=+e.value&&(n.value=e.value),s,i=[n],o,u,h,d;for(t==null&&(t=Ux);s=i.pop();)if(r&&(s.value=+s.data.value),(u=t(s.data))&&(d=u.length))for(s.children=new Array(d),h=d-1;h>=0;--h)i.push(o=s.children[h]=new fo(u[h])),o.parent=s,o.depth=s.depth+1;return n.eachBefore(Vx)}function qx(){return jc(this).eachBefore(Hx)}function Ux(e){return e.children}function Hx(e){e.data=e.data.data}function Vx(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function fo(e){this.data=e,this.depth=this.height=0,this.parent=null}fo.prototype=jc.prototype={constructor:fo,count:Cx,each:Ix,eachAfter:Ox,eachBefore:Mx,sum:Lx,sort:Rx,path:Dx,ancestors:$x,descendants:Fx,leaves:Bx,links:zx,copy:qx};const jx="2.1.2",Wx={version:jx},{version:Gx}=Wx,Kx=Object.freeze({children:e=>e.children,nodeSize:e=>e.data.size,spacing:0});function Op(e){const t=Object.assign({},Kx,e);function n(u){const h=t[u];return typeof h=="function"?h:()=>h}function r(u){const h=o(i(),u,d=>d.children);return h.update(),h.data}function s(){const u=n("nodeSize"),h=n("spacing");return class Mp extends jc.prototype.constructor{constructor(p){super(p)}copy(){const p=o(this.constructor,this,b=>b.children);return p.each(b=>b.data=b.data.data),p}get size(){return u(this)}spacing(p){return h(this,p)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const p=this.ancestors();return p[p.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return this.children===null}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((p,b)=>Mp.maxExtents(p,b.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(p,b){return{top:Math.min(p.top,b.top),bottom:Math.max(p.bottom,b.bottom),left:Math.min(p.left,b.left),right:Math.max(p.right,b.right)}}}}function i(){const u=s(),h=n("nodeSize"),d=n("spacing");return class extends u{constructor(p){super(p),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return h(this.data)}spacing(p){return d(this.data,p.data)}get x(){return this.data.x}set x(p){this.data.x=p}get y(){return this.data.y}set y(p){this.data.y=p}update(){return Lp(this),Rp(this),this}}}function o(u,h,d){const p=(b,v)=>{const k=new u(b);Object.assign(k,{parent:v,depth:v===null?0:v.depth+1,height:0,length:1});const x=d(b)||[];return k.children=x.length===0?null:x.map(A=>p(A,k)),k.children&&Object.assign(k,k.children.reduce((A,E)=>({height:Math.max(A.height,E.height+1),length:A.length+E.length}),k)),k};return p(h,null)}return Object.assign(r,{nodeSize(u){return arguments.length?(t.nodeSize=u,r):t.nodeSize},spacing(u){return arguments.length?(t.spacing=u,r):t.spacing},children(u){return arguments.length?(t.children=u,r):t.children},hierarchy(u,h){const d=typeof h>"u"?t.children:h;return o(s(),u,d)},dump(u){const h=n("nodeSize"),d=p=>b=>{const v=p+" ",k=p+" ",{x,y:A}=b,E=h(b),M=b.children||[],q=M.length===0?" ":`,${v}children: [${k}${M.map(d(k)).join(k)}${v}],${p}`;return`{ size: [${E.join(", ")}],${v}x: ${x}, y: ${A}${q}},`};return d(`
|
||
`)(u)}}),r}Op.version=Gx;const Lp=(e,t=0)=>(e.y=t,(e.children||[]).reduce((n,r)=>{const[s,i]=n;Lp(r,e.y+e.ySize);const o=(s===0?r.lExt:r.rExt).bottom;s!==0&&Yx(e,s,i);const u=sk(o,s,i);return[s+1,u]},[0,null]),Xx(e),rk(e),e),Rp=(e,t,n)=>{typeof t>"u"&&(t=-e.relX-e.prelim,n=0);const r=t+e.relX;return e.relX=r+e.prelim-n,e.prelim=0,e.x=n+e.relX,(e.children||[]).forEach(s=>Rp(s,r,e.x)),e},Xx=e=>{(e.children||[]).reduce((t,n)=>{const[r,s]=t,i=r+n.shift,o=s+i+n.change;return n.relX+=o,[i,o]},[0,0])},Yx=(e,t,n)=>{const r=e.children[t-1],s=e.children[t];let i=r,o=r.relX,u=s,h=s.relX,d=!0;for(;i&&u;){i.bottom>n.lowY&&(n=n.next);const p=o+i.prelim-(h+u.prelim)+i.xSize/2+u.xSize/2+i.spacing(u);(p>0||p<0&&d)&&(h+=p,Jx(s,p),Qx(e,t,n.index,p)),d=!1;const b=i.bottom,v=u.bottom;b<=v&&(i=ek(i),i&&(o+=i.relX)),b>=v&&(u=Zx(u),u&&(h+=u.relX))}!i&&u?tk(e,t,u,h):i&&!u&&nk(e,t,i,o)},Jx=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},Qx=(e,t,n,r)=>{const s=e.children[t],i=t-n;if(i>1){const o=r/i;e.children[n+1].shift+=o,s.shift-=o,s.change-=r-o}},Zx=e=>e.hasChildren?e.firstChild:e.lThr,ek=e=>e.hasChildren?e.lastChild:e.rThr,tk=(e,t,n,r)=>{const s=e.firstChild,i=s.lExt,o=e.children[t];i.lThr=n;const u=r-n.relX-s.lExtRelX;i.relX+=u,i.prelim-=u,s.lExt=o.lExt,s.lExtRelX=o.lExtRelX},nk=(e,t,n,r)=>{const s=e.children[t],i=s.rExt,o=e.children[t-1];i.rThr=n;const u=r-n.relX-s.rExtRelX;i.relX+=u,i.prelim-=u,s.rExt=o.rExt,s.rExtRelX=o.rExtRelX},rk=e=>{if(e.hasChildren){const t=e.firstChild,n=e.lastChild,r=(t.prelim+t.relX-t.xSize/2+n.relX+n.prelim+n.xSize/2)/2;Object.assign(e,{prelim:r,lExt:t.lExt,lExtRelX:t.lExtRelX,rExt:n.rExt,rExtRelX:n.rExtRelX})}},sk=(e,t,n)=>{for(;n!==null&&e>=n.lowY;)n=n.next;return{lowY:e,index:t,next:n}},ik=".markmap{--markmap-max-width: 9999px;--markmap-a-color: #0097e6;--markmap-a-hover-color: #00a8ff;--markmap-code-bg: #f0f0f0;--markmap-code-color: #555;--markmap-highlight-bg: #ffeaa7;--markmap-table-border: 1px solid currentColor;--markmap-font: 300 16px/20px sans-serif;--markmap-circle-open-bg: #fff;--markmap-text-color: #333;--markmap-highlight-node-bg: #ff02;font:var(--markmap-font);color:var(--markmap-text-color)}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign p{margin:0}.markmap-foreign a{color:var(--markmap-a-color)}.markmap-foreign a:hover{color:var(--markmap-a-hover-color)}.markmap-foreign code{padding:.25em;font-size:calc(1em - 2px);color:var(--markmap-code-color);background-color:var(--markmap-code-bg);border-radius:2px}.markmap-foreign pre{margin:0}.markmap-foreign pre>code{display:block}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:700}.markmap-foreign mark{background:var(--markmap-highlight-bg)}.markmap-foreign table,.markmap-foreign th,.markmap-foreign td{border-collapse:collapse;border:var(--markmap-table-border)}.markmap-foreign img{display:inline-block}.markmap-foreign svg{fill:currentColor}.markmap-foreign>div{width:var(--markmap-max-width);text-align:left}.markmap-foreign>div>div{display:inline-block}.markmap-highlight rect{fill:var(--markmap-highlight-node-bg)}.markmap-dark .markmap{--markmap-code-bg: #1a1b26;--markmap-code-color: #ddd;--markmap-circle-open-bg: #444;--markmap-text-color: #eee}",Jl="g.markmap-node",ak="path.markmap-link",ok="g.markmap-highlight",Ql=gx();function gd(e,t){const n=L9(e,t);return e[n]}function Zl(e){e.stopPropagation()}const lk=new Qs;class ci{constructor(t,n){this.options={...Tx},this._disposeList=[],this.handleZoom=r=>{const{transform:s}=r;this.g.attr("transform",s)},this.handlePan=r=>{r.preventDefault();const s=hs(this.svg.node()),i=s.translate(-r.deltaX/s.k,-r.deltaY/s.k);this.svg.call(this.zoom.transform,i)},this.handleClick=(r,s)=>{let i=this.options.toggleRecursively;(Ip?r.metaKey:r.ctrlKey)&&(i=!i),this.toggleNode(s,i)},this.ensureView=this.ensureVisible,this.svg=t.datum?t:xr(t),this.styleNode=this.svg.append("style"),this.zoom=kx().filter(r=>this.options.scrollForPan&&r.type==="wheel"?r.ctrlKey&&!r.button:(!r.ctrlKey||r.type==="wheel")&&!r.button).on("zoom",this.handleZoom),this.setOptions(n),this.state={id:this.options.id||this.svg.attr("id")||w3(),rect:{x1:0,y1:0,x2:0,y2:0}},this.g=this.svg.append("g"),this.g.append("g").attr("class","markmap-highlight"),this._observer=new ResizeObserver(x3(()=>{this.renderData()},100)),this._disposeList.push(lk.tap(()=>{this.setData()}),()=>this._observer.disconnect())}getStyleContent(){const{style:t}=this.options,{id:n}=this.state,r=typeof t=="function"?t(n):"";return[this.options.embedGlobalCSS&&ik,r].filter(Boolean).join(`
|
||
`)}updateStyle(){this.svg.attr("class",v3(this.svg.attr("class"),"markmap",this.state.id));const t=this.getStyleContent();this.styleNode.text(t)}async toggleNode(t,n=!1){var r,s;const i=(r=t.payload)!=null&&r.fold?0:1;n?Zs(t,(o,u)=>{o.payload={...o.payload,fold:i},u()}):t.payload={...t.payload,fold:(s=t.payload)!=null&&s.fold?0:1},await this.renderData(t)}_initializeData(t){let n=0;const{color:r,initialExpandLevel:s}=this.options;let i=0,o=0;return Zs(t,(u,h,d)=>{var p,b,v,k;o+=1,u.children=(p=u.children)==null?void 0:p.map(A=>({...A})),n+=1,u.state={...u.state,depth:o,id:n,rect:{x:0,y:0,width:0,height:0},size:[0,0]},u.state.key=[(b=d==null?void 0:d.state)==null?void 0:b.id,u.state.id].filter(Boolean).join(".")+Ex(u.content),u.state.path=[(v=d==null?void 0:d.state)==null?void 0:v.path,u.state.id].filter(Boolean).join("."),r(u);const x=((k=u.payload)==null?void 0:k.fold)===2;x?i+=1:(i||s>=0&&u.state.depth>=s)&&(u.payload={...u.payload,fold:1}),h(),x&&(i-=1),o-=1}),t}_relayout(){if(!this.state.data)return;this.g.selectAll(bn(Jl)).selectAll(bn("foreignObject")).each(function(h){var d;const p=(d=this.firstChild)==null?void 0:d.firstChild,b=[p.scrollWidth,p.scrollHeight];h.state.size=b});const{lineWidth:t,paddingX:n,spacingHorizontal:r,spacingVertical:s}=this.options,i=Op({}).children(h=>{var d;if(!((d=h.payload)!=null&&d.fold))return h.children}).nodeSize(h=>{const[d,p]=h.data.state.size;return[p,d+(d?n*2:0)+r]}).spacing((h,d)=>(h.parent===d.parent?s:s*2)+t(h.data)),o=i.hierarchy(this.state.data);i(o);const u=o.descendants();u.forEach(h=>{const d=h.data;d.state.rect={x:h.y,y:h.x-h.xSize/2,width:h.ySize-r,height:h.xSize}}),this.state.rect={x1:Xh(u,h=>h.data.state.rect.x)||0,y1:Xh(u,h=>h.data.state.rect.y)||0,x2:Kh(u,h=>h.data.state.rect.x+h.data.state.rect.width)||0,y2:Kh(u,h=>h.data.state.rect.y+h.data.state.rect.height)||0}}setOptions(t){this.options={...this.options,...t},this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.options.pan?this.svg.on("wheel",this.handlePan):this.svg.on("wheel",null)}async setData(t,n){n&&this.setOptions(n),t&&(this.state.data=this._initializeData(t)),this.state.data&&(this.updateStyle(),await this.renderData())}async setHighlight(t){this.state.highlight=t||void 0,await this.renderData()}_getHighlightRect(t){const n=this.svg.node(),r=4/hs(n).k,s={...t.state.rect};return s.x-=r,s.y-=r,s.width+=2*r,s.height+=2*r,s}async renderData(t){const{paddingX:n,autoFit:r,color:s,maxWidth:i,lineWidth:o}=this.options,u=this.state.data;if(!u)return;const h={},d={},p=[];Zs(u,(H,me,Ee)=>{var Je;(Je=H.payload)!=null&&Je.fold||me(),h[H.state.id]=H,Ee&&(d[H.state.id]=Ee.state.id),p.push(H)});const b={},v={},k=H=>{!H||b[H.state.id]||Zs(H,(me,Ee)=>{b[me.state.id]=H.state.id,Ee()})},x=H=>v[b[H.state.id]]||u.state.rect,A=H=>(h[b[H.state.id]]||u).state.rect;v[u.state.id]=u.state.rect,t&&k(t);let{highlight:E}=this.state;E&&!h[E.state.id]&&(E=void 0);let M=this.g.selectAll(bn(ok)).selectAll(bn("rect")).data(E?[this._getHighlightRect(E)]:[]).join("rect").attr("x",H=>H.x).attr("y",H=>H.y).attr("width",H=>H.width).attr("height",H=>H.height);const q=this.g.selectAll(bn(Jl)).each(H=>{v[H.state.id]=H.state.rect}).data(p,H=>H.state.key),L=q.enter().append("g").attr("data-depth",H=>H.state.depth).attr("data-path",H=>H.state.path).each(H=>{k(h[d[H.state.id]])}),O=q.exit().each(H=>{k(h[d[H.state.id]])}),F=q.merge(L).attr("class",H=>{var me;return["markmap-node",((me=H.payload)==null?void 0:me.fold)&&"markmap-fold"].filter(Boolean).join(" ")}),z=F.selectAll(bn("line")).data(H=>[H],H=>H.state.key),j=z.enter().append("line").attr("stroke",H=>s(H)).attr("stroke-width",0),G=z.merge(j),Q=F.selectAll(bn("circle")).data(H=>{var me;return(me=H.children)!=null&&me.length?[H]:[]},H=>H.state.key),ye=Q.enter().append("circle").attr("stroke-width",0).attr("r",0).on("click",(H,me)=>this.handleClick(H,me)).on("mousedown",Zl).merge(Q).attr("stroke",H=>s(H)).attr("fill",H=>{var me;return(me=H.payload)!=null&&me.fold&&H.children?s(H):"var(--markmap-circle-open-bg)"}),ce=this._observer,te=F.selectAll(bn("foreignObject")).data(H=>[H],H=>H.state.key),he=te.enter().append("foreignObject").attr("class","markmap-foreign").attr("x",n).attr("y",0).style("opacity",0).on("mousedown",Zl).on("dblclick",Zl);he.append("xhtml:div").append("xhtml:div").html(H=>H.content).attr("xmlns","http://www.w3.org/1999/xhtml"),he.each(function(){var H;const me=(H=this.firstChild)==null?void 0:H.firstChild;ce.observe(me)});const V=O.selectAll(bn("foreignObject"));V.each(function(){var H;const me=(H=this.firstChild)==null?void 0:H.firstChild;ce.unobserve(me)});const oe=he.merge(te),Y=p.flatMap(H=>{var me;return(me=H.payload)!=null&&me.fold?[]:H.children.map(Ee=>({source:H,target:Ee}))}),fe=this.g.selectAll(bn(ak)).data(Y,H=>H.target.state.key),ee=fe.exit(),Ae=fe.enter().insert("path","g").attr("class","markmap-link").attr("data-depth",H=>H.target.state.depth).attr("data-path",H=>H.target.state.path).attr("d",H=>{const me=x(H.target),Ee=[me.x+me.width,me.y+me.height];return Ql({source:Ee,target:Ee})}).attr("stroke-width",0).merge(fe);this.svg.style("--markmap-max-width",i?`${i}px`:null),await new Promise(requestAnimationFrame),this._relayout(),M=M.data(E?[this._getHighlightRect(E)]:[]).join("rect"),this.transition(M).attr("x",H=>H.x).attr("y",H=>H.y).attr("width",H=>H.width).attr("height",H=>H.height),L.attr("transform",H=>{const me=x(H);return`translate(${me.x+me.width-H.state.rect.width},${me.y+me.height-H.state.rect.height})`}),this.transition(O).attr("transform",H=>{const me=A(H),Ee=me.x+me.width-H.state.rect.width,Je=me.y+me.height-H.state.rect.height;return`translate(${Ee},${Je})`}).remove(),this.transition(F).attr("transform",H=>`translate(${H.state.rect.x},${H.state.rect.y})`);const Oe=O.selectAll(bn("line"));this.transition(Oe).attr("x1",H=>H.state.rect.width).attr("stroke-width",0),j.attr("x1",H=>H.state.rect.width).attr("x2",H=>H.state.rect.width),G.attr("y1",H=>H.state.rect.height+o(H)/2).attr("y2",H=>H.state.rect.height+o(H)/2),this.transition(G).attr("x1",-1).attr("x2",H=>H.state.rect.width+2).attr("stroke",H=>s(H)).attr("stroke-width",o);const Te=O.selectAll(bn("circle"));this.transition(Te).attr("r",0).attr("stroke-width",0),ye.attr("cx",H=>H.state.rect.width).attr("cy",H=>H.state.rect.height+o(H)/2),this.transition(ye).attr("r",6).attr("stroke-width","1.5"),this.transition(V).style("opacity",0),oe.attr("width",H=>Math.max(0,H.state.rect.width-n*2)).attr("height",H=>H.state.rect.height),this.transition(oe).style("opacity",1),this.transition(ee).attr("d",H=>{const me=A(H.target),Ee=[me.x+me.width,me.y+me.height+o(H.target)/2];return Ql({source:Ee,target:Ee})}).attr("stroke-width",0).remove(),this.transition(Ae).attr("stroke",H=>s(H.target)).attr("stroke-width",H=>o(H.target)).attr("d",H=>{const me=H.source,Ee=H.target,Je=[me.state.rect.x+me.state.rect.width,me.state.rect.y+me.state.rect.height+o(me)/2],_t=[Ee.state.rect.x,Ee.state.rect.y+Ee.state.rect.height+o(Ee)/2];return Ql({source:Je,target:_t})}),r&&this.fit()}transition(t){const{duration:n}=this.options;return t.transition().duration(n)}async fit(t=this.options.maxInitialScale){const n=this.svg.node(),{width:r,height:s}=n.getBoundingClientRect(),{fitRatio:i}=this.options,{x1:o,y1:u,x2:h,y2:d}=this.state.rect,p=h-o,b=d-u,v=Math.min(r/p*i,s/b*i,t),k=Bo.translate((r-p*v)/2-o*v,(s-b*v)/2-u*v).scale(v);return this.transition(this.svg).call(this.zoom.transform,k).end().catch(ms)}findElement(t){let n;return this.g.selectAll(bn(Jl)).each(function(r){r===t&&(n={data:r,g:this})}),n}async ensureVisible(t,n){var r;const s=(r=this.findElement(t))==null?void 0:r.data;if(!s)return;const i=this.svg.node(),o=i.getBoundingClientRect(),u=hs(i),[h,d]=[s.state.rect.x,s.state.rect.x+s.state.rect.width+2].map(M=>M*u.k+u.x),[p,b]=[s.state.rect.y,s.state.rect.y+s.state.rect.height].map(M=>M*u.k+u.y),v={left:0,right:0,top:0,bottom:0,...n},k=[v.left-h,o.width-v.right-d],x=[v.top-p,o.height-v.bottom-b],A=k[0]*k[1]>0?gd(k,Math.abs)/u.k:0,E=x[0]*x[1]>0?gd(x,Math.abs)/u.k:0;if(A||E){const M=u.translate(A,E);return this.transition(this.svg).call(this.zoom.transform,M).end().catch(ms)}}async centerNode(t,n){var r;const s=(r=this.findElement(t))==null?void 0:r.data;if(!s)return;const i=this.svg.node(),o=i.getBoundingClientRect(),u=hs(i),h=(s.state.rect.x+s.state.rect.width/2)*u.k+u.x,d=(s.state.rect.y+s.state.rect.height/2)*u.k+u.y,p={left:0,right:0,top:0,bottom:0,...n},b=(p.left+o.width-p.right)/2,v=(p.top+o.height-p.bottom)/2,k=(b-h)/u.k,x=(v-d)/u.k;if(k||x){const A=u.translate(k,x);return this.transition(this.svg).call(this.zoom.transform,A).end().catch(ms)}}async rescale(t){const n=this.svg.node(),{width:r,height:s}=n.getBoundingClientRect(),i=r/2,o=s/2,u=hs(n),h=u.translate((i-u.x)*(1-t)/u.k,(o-u.y)*(1-t)/u.k).scale(t);return this.transition(this.svg).call(this.zoom.transform,h).end().catch(ms)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this._disposeList.forEach(t=>{t()})}static create(t,n,r=null){const s=new ci(t,n);return r&&s.setData(r).then(()=>{s.fit()}),s}}const ck={class:"mindmap-container"},uk={class:"mindmap-actions"},fk={key:0,class:"mindmap-subtitle"},hk={key:0,class:"empty-state"},dk=Er({__name:"MindMapRenderer",props:{content:{type:String,default:""}},setup(e){const t=e,n=Ge(null);let r=null;const s=new C9,i=Ge(1),o=ht(()=>t.content?(t.content.match(/^#{1,6}\s+/gm)||[]).length:0),u=async()=>{if(n.value){if(!t.content){n.value.innerHTML="",r&&typeof r.destroy=="function"&&r.destroy(),r=null;return}try{console.log("Initializing markmap with content:",t.content.substring(0,100)+"...");const{root:x,features:A}=s.transform(t.content);console.log("Transformed root:",x);const{styles:E,scripts:M}=s.getAssets();console.log("Styles:",E),console.log("Scripts:",M),E&&z3(E),M&&ic(M),await s0(),console.log("SVG ref:",n.value),console.log("Markmap.create:",ci.create),r?(console.log("Updating existing instance"),typeof r.setData=="function"?(r.setData(x),r.fit()):(console.error("mmInstance does not have setData method:",r),r=ci.create(n.value,{autoFit:!0,fitRatio:.9,initialExpandLevel:-1},x),console.log("Created new instance after setData error:",r))):(console.log("Creating new instance"),r=ci.create(n.value,{autoFit:!0,fitRatio:.9,initialExpandLevel:-1},x),console.log("Created instance using Markmap.create:",r),console.log("mmInstance methods:",Object.keys(r)))}catch(x){console.error("Error initializing markmap:",x),r=null}}};xs(()=>t.content,()=>{u()}),mo(()=>{u(),window.addEventListener("resize",h)}),X0(()=>{window.removeEventListener("resize",h),r&&typeof r.destroy=="function"?r.destroy():r&&console.error("mmInstance does not have destroy method:",r)});const h=()=>{r==null||r.fit()},d=(x="svg")=>{if(n.value){if(r&&r.fit(),x==="svg"){const A=n.value,E=A.cloneNode(!0);E.getAttribute("xmlns")||E.setAttribute("xmlns","http://www.w3.org/2000/svg");const M=A.getBoundingClientRect();E.setAttribute("width",M.width.toString()),E.setAttribute("height",M.height.toString());const q=new XMLSerializer().serializeToString(E),L=new Blob([q],{type:"image/svg+xml"}),O=URL.createObjectURL(L),F=document.createElement("a");F.href=O,F.download=`mindmap_${new Date().getTime()}.svg`,document.body.appendChild(F),F.click(),document.body.removeChild(F),URL.revokeObjectURL(O)}else if(x==="png"){const A=n.value,E=A.cloneNode(!0);E.getAttribute("xmlns")||E.setAttribute("xmlns","http://www.w3.org/2000/svg"),r&&r.fit();const M=A.getBoundingClientRect(),q=5,L=M.width,O=M.height;E.setAttribute("width",L.toString()),E.setAttribute("height",O.toString());const F=new XMLSerializer().serializeToString(E),z=document.createElement("canvas"),j=z.getContext("2d");if(!j)return;z.width=L*q,z.height=O*q,j.scale(q,q);const G=new Image;G.onload=()=>{j.drawImage(G,0,0),z.toBlob(Q=>{if(Q){const ye=URL.createObjectURL(Q),ce=document.createElement("a");ce.href=ye,ce.download=`mindmap_${new Date().getTime()}.png`,document.body.appendChild(ce),ce.click(),document.body.removeChild(ce),URL.revokeObjectURL(ye)}},"image/png",1)},G.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(F)}}},p=x=>{(x==="svg"||x==="png")&&d(x)},b=()=>{r==null||r.fit(),i.value=1},v=()=>{r&&typeof r.setScale=="function"?r.setScale(i.value):r&&console.error("mmInstance does not have setScale method:",r)},k=x=>{x.preventDefault();const A=x.deltaY>0?-.1:.1;(i.value>.5||A>0)&&(i.value<2||A<0)&&(i.value+=A,v())};return(x,A)=>{const E=dt("el-icon"),M=dt("el-button"),q=dt("el-dropdown-item"),L=dt("el-dropdown-menu"),O=dt("el-dropdown");return Ke(),at("div",ck,[ke("div",uk,[e.content?(Ke(),at("span",fk,"已生成 "+Vt(o.value)+" 个节点",1)):ks("",!0),pe(O,{onCommand:p},{dropdown:Se(()=>[pe(L,null,{default:Se(()=>[pe(q,{command:"svg"},{default:Se(()=>[...A[1]||(A[1]=[bt("SVG 格式",-1)])]),_:1}),pe(q,{command:"png"},{default:Se(()=>[...A[2]||(A[2]=[bt("PNG 格式",-1)])]),_:1})]),_:1})]),default:Se(()=>[pe(M,{type:"primary",size:"small",class:"action-button primary"},{icon:Se(()=>[pe(E,null,{default:Se(()=>[pe(Ht($d))]),_:1})]),default:Se(()=>[A[0]||(A[0]=bt(" 下载 ",-1)),pe(E,{class:"el-icon--right"},{default:Se(()=>[pe(Ht(a0))]),_:1})]),_:1})]),_:1}),pe(M,{type:"default",size:"small",onClick:b,class:"action-button secondary"},{icon:Se(()=>[pe(E,null,{default:Se(()=>[pe(Ht(vg))]),_:1})]),default:Se(()=>[A[3]||(A[3]=bt(" 重置视图 ",-1))]),_:1})]),ke("div",{class:"mindmap-content",onWheel:o0(k,["prevent"])},[e.content?(Ke(),at("svg",{key:1,ref_key:"svgRef",ref:n,class:"markmap-svg"},null,512)):(Ke(),at("div",hk,[pe(E,{class:"empty-icon"},{default:Se(()=>[pe(Ht(Bd))]),_:1}),A[4]||(A[4]=ke("p",{class:"empty-text"},"暂无思维导图内容",-1)),A[5]||(A[5]=ke("p",{class:"empty-subtext"},"请先上传并转换文档",-1))]))],32)])}}}),mk=wo(dk,[["__scopeId","data-v-1dfc748b"]]);function Dp(e,t){return function(){return e.apply(t,arguments)}}const{toString:pk}=Object.prototype,{getPrototypeOf:Wc}=Object,{iterator:zo,toStringTag:Pp}=Symbol,qo=(e=>t=>{const n=pk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zn=e=>(e=e.toLowerCase(),t=>qo(t)===e),Uo=e=>t=>typeof t===e,{isArray:zs}=Array,Ms=Uo("undefined");function Di(e){return e!==null&&!Ms(e)&&e.constructor!==null&&!Ms(e.constructor)&&fn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $p=zn("ArrayBuffer");function gk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$p(e.buffer),t}const yk=Uo("string"),fn=Uo("function"),Fp=Uo("number"),Pi=e=>e!==null&&typeof e=="object",bk=e=>e===!0||e===!1,qa=e=>{if(qo(e)!=="object")return!1;const t=Wc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pp in e)&&!(zo in e)},wk=e=>{if(!Pi(e)||Di(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},vk=zn("Date"),_k=zn("File"),xk=e=>!!(e&&typeof e.uri<"u"),kk=e=>e&&typeof e.getParts<"u",Sk=zn("Blob"),Ak=zn("FileList"),Tk=e=>Pi(e)&&fn(e.pipe);function Ek(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const yd=Ek(),bd=typeof yd.FormData<"u"?yd.FormData:void 0,Nk=e=>{let t;return e&&(bd&&e instanceof bd||fn(e.append)&&((t=qo(e))==="formdata"||t==="object"&&fn(e.toString)&&e.toString()==="[object FormData]"))},Ck=zn("URLSearchParams"),[Ik,Mk,Ok,Lk]=["ReadableStream","Request","Response","Headers"].map(zn),Rk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $i(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),zs(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Di(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let u;for(r=0;r<o;r++)u=i[r],t.call(null,e[u],u,e)}}function Bp(e,t){if(Di(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zp=e=>!Ms(e)&&e!==Vr;function j0(){const{caseless:e,skipUndefined:t}=zp(this)&&this||{},n={},r=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=e&&Bp(n,i)||i;qa(n[o])&&qa(s)?n[o]=j0(n[o],s):qa(s)?n[o]=j0({},s):zs(s)?n[o]=s.slice():(!t||!Ms(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&$i(arguments[s],r);return n}const Dk=(e,t,n,{allOwnKeys:r}={})=>($i(t,(s,i)=>{n&&fn(s)?Object.defineProperty(e,i,{value:Dp(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Pk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$k=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Fk=(e,t,n,r)=>{let s,i,o;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&Wc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Bk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},zk=e=>{if(!e)return null;if(zs(e))return e;let t=e.length;if(!Fp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wc(Uint8Array)),Uk=(e,t)=>{const r=(e&&e[zo]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Hk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vk=zn("HTMLFormElement"),jk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),wd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Wk=zn("RegExp"),qp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$i(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},Gk=e=>{qp(e,(t,n)=>{if(fn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(fn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Kk=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return zs(e)?r(e):r(String(e).split(t)),n},Xk=()=>{},Yk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Jk(e){return!!(e&&fn(e.append)&&e[Pp]==="FormData"&&e[zo])}const Qk=e=>{const t=new Array(10),n=(r,s)=>{if(Pi(r)){if(t.indexOf(r)>=0)return;if(Di(r))return r;if(!("toJSON"in r)){t[s]=r;const i=zs(r)?[]:{};return $i(r,(o,u)=>{const h=n(o,s+1);!Ms(h)&&(i[u]=h)}),t[s]=void 0,i}}return r};return n(e,0)},Zk=zn("AsyncFunction"),eS=e=>e&&(Pi(e)||fn(e))&&fn(e.then)&&fn(e.catch),Up=((e,t)=>e?setImmediate:t?((n,r)=>(Vr.addEventListener("message",({source:s,data:i})=>{s===Vr&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Vr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",fn(Vr.postMessage)),tS=typeof queueMicrotask<"u"?queueMicrotask.bind(Vr):typeof process<"u"&&process.nextTick||Up,nS=e=>e!=null&&fn(e[zo]),X={isArray:zs,isArrayBuffer:$p,isBuffer:Di,isFormData:Nk,isArrayBufferView:gk,isString:yk,isNumber:Fp,isBoolean:bk,isObject:Pi,isPlainObject:qa,isEmptyObject:wk,isReadableStream:Ik,isRequest:Mk,isResponse:Ok,isHeaders:Lk,isUndefined:Ms,isDate:vk,isFile:_k,isReactNativeBlob:xk,isReactNative:kk,isBlob:Sk,isRegExp:Wk,isFunction:fn,isStream:Tk,isURLSearchParams:Ck,isTypedArray:qk,isFileList:Ak,forEach:$i,merge:j0,extend:Dk,trim:Rk,stripBOM:Pk,inherits:$k,toFlatObject:Fk,kindOf:qo,kindOfTest:zn,endsWith:Bk,toArray:zk,forEachEntry:Uk,matchAll:Hk,isHTMLForm:Vk,hasOwnProperty:wd,hasOwnProp:wd,reduceDescriptors:qp,freezeMethods:Gk,toObjectSet:Kk,toCamelCase:jk,noop:Xk,toFiniteNumber:Yk,findKey:Bp,global:Vr,isContextDefined:zp,isSpecCompliantForm:Jk,toJSONObject:Qk,isAsyncFn:Zk,isThenable:eS,setImmediate:Up,asap:tS,isIterable:nS};let De=class Hp extends Error{static from(t,n,r,s,i,o){const u=new Hp(t.message,n||t.code,r,s,i);return u.cause=t,u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),o&&Object.assign(u,o),u}constructor(t,n,r,s,i){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}};De.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";De.ERR_BAD_OPTION="ERR_BAD_OPTION";De.ECONNABORTED="ECONNABORTED";De.ETIMEDOUT="ETIMEDOUT";De.ERR_NETWORK="ERR_NETWORK";De.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";De.ERR_DEPRECATED="ERR_DEPRECATED";De.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";De.ERR_BAD_REQUEST="ERR_BAD_REQUEST";De.ERR_CANCELED="ERR_CANCELED";De.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";De.ERR_INVALID_URL="ERR_INVALID_URL";const rS=null;function W0(e){return X.isPlainObject(e)||X.isArray(e)}function Vp(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function e0(e,t,n){return e?e.concat(t).map(function(s,i){return s=Vp(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function sS(e){return X.isArray(e)&&!e.some(W0)}const iS=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function Ho(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,E){return!X.isUndefined(E[A])});const r=n.metaTokens,s=n.visitor||p,i=n.dots,o=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(s))throw new TypeError("visitor must be a function");function d(x){if(x===null)return"";if(X.isDate(x))return x.toISOString();if(X.isBoolean(x))return x.toString();if(!h&&X.isBlob(x))throw new De("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(x)||X.isTypedArray(x)?h&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function p(x,A,E){let M=x;if(X.isReactNative(t)&&X.isReactNativeBlob(x))return t.append(e0(E,A,i),d(x)),!1;if(x&&!E&&typeof x=="object"){if(X.endsWith(A,"{}"))A=r?A:A.slice(0,-2),x=JSON.stringify(x);else if(X.isArray(x)&&sS(x)||(X.isFileList(x)||X.endsWith(A,"[]"))&&(M=X.toArray(x)))return A=Vp(A),M.forEach(function(L,O){!(X.isUndefined(L)||L===null)&&t.append(o===!0?e0([A],O,i):o===null?A:A+"[]",d(L))}),!1}return W0(x)?!0:(t.append(e0(E,A,i),d(x)),!1)}const b=[],v=Object.assign(iS,{defaultVisitor:p,convertValue:d,isVisitable:W0});function k(x,A){if(!X.isUndefined(x)){if(b.indexOf(x)!==-1)throw Error("Circular reference detected in "+A.join("."));b.push(x),X.forEach(x,function(M,q){(!(X.isUndefined(M)||M===null)&&s.call(t,M,X.isString(q)?q.trim():q,A,v))===!0&&k(M,A?A.concat(q):[q])}),b.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return k(e),t}function vd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Gc(e,t){this._pairs=[],e&&Ho(e,this,t)}const jp=Gc.prototype;jp.append=function(t,n){this._pairs.push([t,n])};jp.toString=function(t){const n=t?function(r){return t.call(this,r,vd)}:vd;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function aS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wp(e,t,n){if(!t)return e;const r=n&&n.encode||aS,s=X.isFunction(n)?{serialize:n}:n,i=s&&s.serialize;let o;if(i?o=i(t,s):o=X.isURLSearchParams(t)?t.toString():new Gc(t,s).toString(r),o){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _d{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Kc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},oS=typeof URLSearchParams<"u"?URLSearchParams:Gc,lS=typeof FormData<"u"?FormData:null,cS=typeof Blob<"u"?Blob:null,uS={isBrowser:!0,classes:{URLSearchParams:oS,FormData:lS,Blob:cS},protocols:["http","https","file","blob","url","data"]},Xc=typeof window<"u"&&typeof document<"u",G0=typeof navigator=="object"&&navigator||void 0,fS=Xc&&(!G0||["ReactNative","NativeScript","NS"].indexOf(G0.product)<0),hS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dS=Xc&&window.location.href||"http://localhost",mS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xc,hasStandardBrowserEnv:fS,hasStandardBrowserWebWorkerEnv:hS,navigator:G0,origin:dS},Symbol.toStringTag,{value:"Module"})),Jt={...mS,...uS};function pS(e,t){return Ho(e,new Jt.classes.URLSearchParams,{visitor:function(n,r,s,i){return Jt.isNode&&X.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function gS(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yS(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Gp(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),h=i>=n.length;return o=!o&&X.isArray(s)?s.length:o,h?(X.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!u):((!s[o]||!X.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&X.isArray(s[o])&&(s[o]=yS(s[o])),!u)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(r,s)=>{t(gS(r),s,n,0)}),n}return null}function bS(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Fi={transitional:Kc,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=X.isObject(t);if(i&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return s?JSON.stringify(Gp(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pS(t,this.formSerializer).toString();if((u=X.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Ho(u?{"files[]":t}:t,h&&new h,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),bS(t)):t}],transformResponse:[function(t){const n=this.transitional||Fi.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(u){if(o)throw u.name==="SyntaxError"?De.from(u,De.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Jt.classes.FormData,Blob:Jt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{Fi.headers[e]={}});const wS=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vS=e=>{const t={};let n,r,s;return e&&e.split(`
|
||
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&wS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},xd=Symbol("internals");function Js(e){return e&&String(e).trim().toLowerCase()}function Ua(e){return e===!1||e==null?e:X.isArray(e)?e.map(Ua):String(e)}function _S(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function t0(e,t,n,r,s){if(X.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!X.isString(t)){if(X.isString(r))return t.indexOf(r)!==-1;if(X.isRegExp(r))return r.test(t)}}function kS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function SS(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let hn=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(u,h,d){const p=Js(h);if(!p)throw new Error("header name must be a non-empty string");const b=X.findKey(s,p);(!b||s[b]===void 0||d===!0||d===void 0&&s[b]!==!1)&&(s[b||h]=Ua(u))}const o=(u,h)=>X.forEach(u,(d,p)=>i(d,p,h));if(X.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(X.isString(t)&&(t=t.trim())&&!xS(t))o(vS(t),n);else if(X.isObject(t)&&X.isIterable(t)){let u={},h,d;for(const p of t){if(!X.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[d=p[0]]=(h=u[d])?X.isArray(h)?[...h,p[1]]:[h,p[1]]:p[1]}o(u,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Js(t),t){const r=X.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return _S(s);if(X.isFunction(n))return n.call(this,s,r);if(X.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Js(t),t){const r=X.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||t0(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Js(o),o){const u=X.findKey(r,o);u&&(!n||t0(r,r[u],u,n))&&(delete r[u],s=!0)}}return X.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||t0(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return X.forEach(this,(s,i)=>{const o=X.findKey(r,i);if(o){n[o]=Ua(s),delete n[i];return}const u=t?kS(i):String(i).trim();u!==i&&delete n[i],n[u]=Ua(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return X.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&X.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[xd]=this[xd]={accessors:{}}).accessors,s=this.prototype;function i(o){const u=Js(o);r[u]||(SS(s,o),r[u]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}};hn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(hn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});X.freezeMethods(hn);function n0(e,t){const n=this||Fi,r=t||n,s=hn.from(r.headers);let i=r.data;return X.forEach(e,function(u){i=u.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Kp(e){return!!(e&&e.__CANCEL__)}let Bi=class extends De{constructor(t,n,r){super(t??"canceled",De.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Xp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function AS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function TS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(h){const d=Date.now(),p=r[i];o||(o=d),n[s]=h,r[s]=d;let b=i,v=0;for(;b!==s;)v+=n[b++],b=b%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),d-o<t)return;const k=p&&d-p;return k?Math.round(v*1e3/k):void 0}}function ES(e,t){let n=0,r=1e3/t,s,i;const o=(d,p=Date.now())=>{n=p,s=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const p=Date.now(),b=p-n;b>=r?o(d,p):(s=d,i||(i=setTimeout(()=>{i=null,o(s)},r-b)))},()=>s&&o(s)]}const ho=(e,t,n=3)=>{let r=0;const s=TS(50,250);return ES(i=>{const o=i.loaded,u=i.lengthComputable?i.total:void 0,h=o-r,d=s(h),p=o<=u;r=o;const b={loaded:o,total:u,progress:u?o/u:void 0,bytes:h,rate:d||void 0,estimated:d&&u&&p?(u-o)/d:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(b)},n)},kd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Sd=e=>(...t)=>X.asap(()=>e(...t)),NS=Jt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Jt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Jt.origin),Jt.navigator&&/(msie|trident)/i.test(Jt.navigator.userAgent)):()=>!0,CS=Jt.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];X.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),X.isString(r)&&u.push(`path=${r}`),X.isString(s)&&u.push(`domain=${s}`),i===!0&&u.push("secure"),X.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function IS(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function MS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yp(e,t,n){let r=!IS(t);return e&&(r||n==!1)?MS(e,t):t}const Ad=e=>e instanceof hn?{...e}:e;function Jr(e,t){t=t||{};const n={};function r(d,p,b,v){return X.isPlainObject(d)&&X.isPlainObject(p)?X.merge.call({caseless:v},d,p):X.isPlainObject(p)?X.merge({},p):X.isArray(p)?p.slice():p}function s(d,p,b,v){if(X.isUndefined(p)){if(!X.isUndefined(d))return r(void 0,d,b,v)}else return r(d,p,b,v)}function i(d,p){if(!X.isUndefined(p))return r(void 0,p)}function o(d,p){if(X.isUndefined(p)){if(!X.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function u(d,p,b){if(b in t)return r(d,p);if(b in e)return r(void 0,d)}const h={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(d,p,b)=>s(Ad(d),Ad(p),b,!0)};return X.forEach(Object.keys({...e,...t}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const b=X.hasOwnProp(h,p)?h[p]:s,v=b(e[p],t[p],p);X.isUndefined(v)&&b!==u||(n[p]=v)}),n}const Jp=e=>{const t=Jr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:u}=t;if(t.headers=o=hn.from(o),t.url=Wp(Yp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),X.isFormData(n)){if(Jt.hasStandardBrowserEnv||Jt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(X.isFunction(n.getHeaders)){const h=n.getHeaders(),d=["content-type","content-length"];Object.entries(h).forEach(([p,b])=>{d.includes(p.toLowerCase())&&o.set(p,b)})}}if(Jt.hasStandardBrowserEnv&&(r&&X.isFunction(r)&&(r=r(t)),r||r!==!1&&NS(t.url))){const h=s&&i&&CS.read(i);h&&o.set(s,h)}return t},OS=typeof XMLHttpRequest<"u",LS=OS&&function(e){return new Promise(function(n,r){const s=Jp(e);let i=s.data;const o=hn.from(s.headers).normalize();let{responseType:u,onUploadProgress:h,onDownloadProgress:d}=s,p,b,v,k,x;function A(){k&&k(),x&&x(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let E=new XMLHttpRequest;E.open(s.method.toUpperCase(),s.url,!0),E.timeout=s.timeout;function M(){if(!E)return;const L=hn.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),F={data:!u||u==="text"||u==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:L,config:e,request:E};Xp(function(j){n(j),A()},function(j){r(j),A()},F),E=null}"onloadend"in E?E.onloadend=M:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(M)},E.onabort=function(){E&&(r(new De("Request aborted",De.ECONNABORTED,e,E)),E=null)},E.onerror=function(O){const F=O&&O.message?O.message:"Network Error",z=new De(F,De.ERR_NETWORK,e,E);z.event=O||null,r(z),E=null},E.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const F=s.transitional||Kc;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new De(O,F.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,E)),E=null},i===void 0&&o.setContentType(null),"setRequestHeader"in E&&X.forEach(o.toJSON(),function(O,F){E.setRequestHeader(F,O)}),X.isUndefined(s.withCredentials)||(E.withCredentials=!!s.withCredentials),u&&u!=="json"&&(E.responseType=s.responseType),d&&([v,x]=ho(d,!0),E.addEventListener("progress",v)),h&&E.upload&&([b,k]=ho(h),E.upload.addEventListener("progress",b),E.upload.addEventListener("loadend",k)),(s.cancelToken||s.signal)&&(p=L=>{E&&(r(!L||L.type?new Bi(null,e,E):L),E.abort(),E=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const q=AS(s.url);if(q&&Jt.protocols.indexOf(q)===-1){r(new De("Unsupported protocol "+q+":",De.ERR_BAD_REQUEST,e));return}E.send(i||null)})},RS=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(d){if(!s){s=!0,u();const p=d instanceof Error?d:this.reason;r.abort(p instanceof De?p:new Bi(p instanceof Error?p.message:p))}};let o=t&&setTimeout(()=>{o=null,i(new De(`timeout of ${t}ms exceeded`,De.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:h}=r;return h.unsubscribe=()=>X.asap(u),h}},DS=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},PS=async function*(e,t){for await(const n of $S(e))yield*DS(n,t)},$S=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Td=(e,t,n,r)=>{const s=PS(e,t);let i=0,o,u=h=>{o||(o=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:p}=await s.next();if(d){u(),h.close();return}let b=p.byteLength;if(n){let v=i+=b;n(v)}h.enqueue(new Uint8Array(p))}catch(d){throw u(d),d}},cancel(h){return u(h),s.return()}},{highWaterMark:2})},Ed=64*1024,{isFunction:Ia}=X,FS=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:Nd,TextEncoder:Cd}=X.global,Id=(e,...t)=>{try{return!!e(...t)}catch{return!1}},BS=e=>{e=X.merge.call({skipUndefined:!0},FS,e);const{fetch:t,Request:n,Response:r}=e,s=t?Ia(t):typeof fetch=="function",i=Ia(n),o=Ia(r);if(!s)return!1;const u=s&&Ia(Nd),h=s&&(typeof Cd=="function"?(x=>A=>x.encode(A))(new Cd):async x=>new Uint8Array(await new n(x).arrayBuffer())),d=i&&u&&Id(()=>{let x=!1;const A=new n(Jt.origin,{body:new Nd,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!A}),p=o&&u&&Id(()=>X.isReadableStream(new r("").body)),b={stream:p&&(x=>x.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!b[x]&&(b[x]=(A,E)=>{let M=A&&A[x];if(M)return M.call(A);throw new De(`Response type '${x}' is not supported`,De.ERR_NOT_SUPPORT,E)})});const v=async x=>{if(x==null)return 0;if(X.isBlob(x))return x.size;if(X.isSpecCompliantForm(x))return(await new n(Jt.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(X.isArrayBufferView(x)||X.isArrayBuffer(x))return x.byteLength;if(X.isURLSearchParams(x)&&(x=x+""),X.isString(x))return(await h(x)).byteLength},k=async(x,A)=>{const E=X.toFiniteNumber(x.getContentLength());return E??v(A)};return async x=>{let{url:A,method:E,data:M,signal:q,cancelToken:L,timeout:O,onDownloadProgress:F,onUploadProgress:z,responseType:j,headers:G,withCredentials:Q="same-origin",fetchOptions:ye}=Jp(x),ce=t||fetch;j=j?(j+"").toLowerCase():"text";let te=RS([q,L&&L.toAbortSignal()],O),he=null;const V=te&&te.unsubscribe&&(()=>{te.unsubscribe()});let oe;try{if(z&&d&&E!=="get"&&E!=="head"&&(oe=await k(G,M))!==0){let Te=new n(A,{method:"POST",body:M,duplex:"half"}),H;if(X.isFormData(M)&&(H=Te.headers.get("content-type"))&&G.setContentType(H),Te.body){const[me,Ee]=kd(oe,ho(Sd(z)));M=Td(Te.body,Ed,me,Ee)}}X.isString(Q)||(Q=Q?"include":"omit");const Y=i&&"credentials"in n.prototype,fe={...ye,signal:te,method:E.toUpperCase(),headers:G.normalize().toJSON(),body:M,duplex:"half",credentials:Y?Q:void 0};he=i&&new n(A,fe);let ee=await(i?ce(he,ye):ce(A,fe));const Ae=p&&(j==="stream"||j==="response");if(p&&(F||Ae&&V)){const Te={};["status","statusText","headers"].forEach(Je=>{Te[Je]=ee[Je]});const H=X.toFiniteNumber(ee.headers.get("content-length")),[me,Ee]=F&&kd(H,ho(Sd(F),!0))||[];ee=new r(Td(ee.body,Ed,me,()=>{Ee&&Ee(),V&&V()}),Te)}j=j||"text";let Oe=await b[X.findKey(b,j)||"text"](ee,x);return!Ae&&V&&V(),await new Promise((Te,H)=>{Xp(Te,H,{data:Oe,headers:hn.from(ee.headers),status:ee.status,statusText:ee.statusText,config:x,request:he})})}catch(Y){throw V&&V(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,x,he,Y&&Y.response),{cause:Y.cause||Y}):De.from(Y,Y&&Y.code,x,he,Y&&Y.response)}}},zS=new Map,Qp=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,u=o,h,d,p=zS;for(;u--;)h=i[u],d=p.get(h),d===void 0&&p.set(h,d=u?new Map:BS(t)),p=d;return d};Qp();const Yc={http:rS,xhr:LS,fetch:{get:Qp}};X.forEach(Yc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Md=e=>`- ${e}`,qS=e=>X.isFunction(e)||e===null||e===!1;function US(e,t){e=X.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let u;if(s=r,!qS(r)&&(s=Yc[(u=String(r)).toLowerCase()],s===void 0))throw new De(`Unknown adapter '${u}'`);if(s&&(X.isFunction(s)||(s=s.get(t))))break;i[u||"#"+o]=s}if(!s){const o=Object.entries(i).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let u=n?o.length>1?`since :
|
||
`+o.map(Md).join(`
|
||
`):" "+Md(o[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return s}const Zp={getAdapter:US,adapters:Yc};function r0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bi(null,e)}function Od(e){return r0(e),e.headers=hn.from(e.headers),e.data=n0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zp.getAdapter(e.adapter||Fi.adapter,e)(e).then(function(r){return r0(e),r.data=n0.call(e,e.transformResponse,r),r.headers=hn.from(r.headers),r},function(r){return Kp(r)||(r0(e),r&&r.response&&(r.response.data=n0.call(e,e.transformResponse,r.response),r.response.headers=hn.from(r.response.headers))),Promise.reject(r)})}const e4="1.13.6",Vo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ld={};Vo.transitional=function(t,n,r){function s(i,o){return"[Axios v"+e4+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,u)=>{if(t===!1)throw new De(s(o," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!Ld[o]&&(Ld[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,u):!0}};Vo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function HS(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const u=e[i],h=u===void 0||o(u,i,e);if(h!==!0)throw new De("option "+i+" must be "+h,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+i,De.ERR_BAD_OPTION)}}const Ha={assertOptions:HS,validators:Vo},An=Ha.validators;let Wr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _d,response:new _d}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Ha.assertOptions(r,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean),legacyInterceptorReqResOrdering:An.transitional(An.boolean)},!1),s!=null&&(X.isFunction(s)?n.paramsSerializer={serialize:s}:Ha.assertOptions(s,{encode:An.function,serialize:An.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ha.assertOptions(n,{baseUrl:An.spelling("baseURL"),withXsrfToken:An.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&X.merge(i.common,i[n.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=hn.concat(o,i);const u=[];let h=!0;this.interceptors.request.forEach(function(A){if(typeof A.runWhen=="function"&&A.runWhen(n)===!1)return;h=h&&A.synchronous;const E=n.transitional||Kc;E&&E.legacyInterceptorReqResOrdering?u.unshift(A.fulfilled,A.rejected):u.push(A.fulfilled,A.rejected)});const d=[];this.interceptors.response.forEach(function(A){d.push(A.fulfilled,A.rejected)});let p,b=0,v;if(!h){const x=[Od.bind(this),void 0];for(x.unshift(...u),x.push(...d),v=x.length,p=Promise.resolve(n);b<v;)p=p.then(x[b++],x[b++]);return p}v=u.length;let k=n;for(;b<v;){const x=u[b++],A=u[b++];try{k=x(k)}catch(E){A.call(this,E);break}}try{p=Od.call(this,k)}catch(x){return Promise.reject(x)}for(b=0,v=d.length;b<v;)p=p.then(d[b++],d[b++]);return p}getUri(t){t=Jr(this.defaults,t);const n=Yp(t.baseURL,t.url,t.allowAbsoluteUrls);return Wp(n,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Wr.prototype[t]=function(n,r){return this.request(Jr(r||{},{method:t,url:n,data:(r||{}).data}))}});X.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,u){return this.request(Jr(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Wr.prototype[t]=n(),Wr.prototype[t+"Form"]=n(!0)});let VS=class t4{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(u=>{r.subscribe(u),i=u}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,u){r.reason||(r.reason=new Bi(i,o,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new t4(function(s){t=s}),cancel:t}}};function jS(e){return function(n){return e.apply(null,n)}}function WS(e){return X.isObject(e)&&e.isAxiosError===!0}const K0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(K0).forEach(([e,t])=>{K0[t]=e});function n4(e){const t=new Wr(e),n=Dp(Wr.prototype.request,t);return X.extend(n,Wr.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return n4(Jr(e,s))},n}const It=n4(Fi);It.Axios=Wr;It.CanceledError=Bi;It.CancelToken=VS;It.isCancel=Kp;It.VERSION=e4;It.toFormData=Ho;It.AxiosError=De;It.Cancel=It.CanceledError;It.all=function(t){return Promise.all(t)};It.spread=jS;It.isAxiosError=WS;It.mergeConfig=Jr;It.AxiosHeaders=hn;It.formToJSON=e=>Gp(X.isHTMLForm(e)?new FormData(e):e);It.getAdapter=Zp.getAdapter;It.HttpStatusCode=K0;It.default=It;const{Axios:ZA,AxiosError:eT,CanceledError:tT,isCancel:nT,CancelToken:rT,VERSION:sT,all:iT,Cancel:aT,isAxiosError:oT,spread:lT,toFormData:cT,AxiosHeaders:uT,HttpStatusCode:fT,formToJSON:hT,getAdapter:dT,mergeConfig:mT}=It,Jc=It.create({baseURL:"",timeout:3e5,headers:{"Content-Type":"application/json"}});Jc.interceptors.request.use(e=>e,e=>Promise.reject(e));Jc.interceptors.response.use(e=>e.data,e=>{if(e.response)switch(e.response.status){case 400:e.message="请求参数错误";break;case 401:e.message="未授权,请重新登录";break;case 403:e.message="拒绝访问";break;case 404:e.message="请求资源不存在";break;case 500:e.message="服务器内部错误";break;case 502:e.message="网关错误";break;case 503:e.message="服务不可用";break;case 504:e.message="网关超时";break;default:e.message=`连接错误${e.response.status}`}else e.message="网络连接异常";return Promise.reject(e)});const GS={parseDocument(e){const t=new FormData;return e.files.forEach(n=>{t.append("files",n)}),t.append("output_dir",e.output_dir),t.append("lang_list",e.lang_list),t.append("backend",e.backend),t.append("parse_method",e.parse_method),t.append("formula_enable",e.formula_enable.toString()),t.append("table_enable",e.table_enable.toString()),t.append("start_page_id",e.start_page_id.toString()),t.append("end_page_id",e.end_page_id.toString()),t.append("return_md",e.return_md.toString()),t.append("return_middle_json",e.return_middle_json.toString()),t.append("response_format_zip",e.response_format_zip.toString()),e.server_url&&t.append("server_url",e.server_url),Jc.post("/file_parse",t,{headers:{"Content-Type":"multipart/form-data"}}).then(n=>(console.log("解析成功:",n),n)).catch(n=>{throw console.error("解析失败:",n),n})}};function r4(e){const t=e.split(`
|
||
`),n=[];let r=!1,s=0;for(const i of t){const o=i.trim();if(o.startsWith("#")){const u=o.match(/^#+/);u?s=u[0].length:s=0,n.push(i),r=!0;continue}if(!o){n.push(i);continue}if(o.startsWith("![")){n.push(i);continue}if(r&&s>0&&s<6){const u=s+1,h="#".repeat(u);n.push(h+" "+o)}else n.push(i)}return n.join(`
|
||
`)}function KS(){const e=Ge([]),t=Ge(!1),n=_g({maxPages:1e3,backend:"hybrid-auto-engine",serverUrl:"http://localhost:30000",tableEnable:!0,formulaEnable:!0,language:"ch",forceOcr:!1}),r=Ge(null),s=Ge(!1),i=Ge(null);return{uploadedFiles:e,config:n,results:r,isUploading:t,isProcessing:s,error:i,backendOptions:[{value:"pipeline",label:"传统管道解析"},{value:"vlm-auto-engine",label:"VLM本地引擎"},{value:"hybrid-auto-engine",label:"混合本地引擎"},{value:"vlm-http-client",label:"VLM远程客户端"},{value:"hybrid-http-client",label:"混合远程客户端"}],languageOptions:[{value:"ch",label:"中文(简体)"},{value:"en",label:"英语"},{value:"korean",label:"韩语"},{value:"japan",label:"日语"},{value:"chinese_cht",label:"中文(繁体)"},{value:"ta",label:"泰米尔语"},{value:"te",label:"泰卢固语"},{value:"ka",label:"卡纳达语"},{value:"th",label:"泰语"},{value:"el",label:"希腊语"},{value:"latin",label:"拉丁语系"},{value:"arabic",label:"阿拉伯语系"},{value:"east_slavic",label:"东斯拉夫语系"},{value:"cyrillic",label:"西里尔语系"},{value:"devanagari",label:"梵文字母语系"}],handleFileUpload:async x=>{if(console.log("handleFileUpload called with files:",x),!x||x.length===0)return;const A=[];for(let E=0;E<x.length;E++){const M=x[E],q=M.type,L=M.name.toLowerCase();console.log("Processing file:",L,"type:",q);const O=q.startsWith("image/"),F=q==="application/pdf",z=L.endsWith(".docx")||L.endsWith(".doc")||q==="application/vnd.openxmlformats-officedocument.wordprocessingml.document";if(console.log("File type checks - isImage:",O,"isPdf:",F,"isWord:",z),!O&&!F&&!z){i.value="不支持的文件类型",console.log("Unsupported file type:",L,q);continue}if(M.size>100*1024*1024){i.value="文件大小超出限制",console.log("File too large:",L,M.size);continue}if(z)try{t.value=!0,i.value="正在将 Word 文档转换为 PDF...",console.log("Converting Word to PDF:",L);const j=await X5(M);console.log("Conversion successful, PDF file:",j.name,j.size),A.push(j),i.value=null}catch(j){i.value="Word 转换为 PDF 失败: "+j.message,console.error("Conversion failed:",j.message);continue}finally{t.value=!1}else A.push(M),console.log("Adding file directly:",L)}e.value=A,console.log("Final uploaded files:",A.map(E=>E.name))},initializeManualResult:()=>{r.value={markdown:"",source:"",mindmap:""},i.value=null},clearAll:()=>{e.value=[],r.value=null,i.value=null},processDocument:async()=>{if(e.value.length===0){i.value="请先上传文件";return}s.value=!0,i.value=null;try{const x={files:e.value,output_dir:"./output",lang_list:[n.language],backend:n.backend,parse_method:n.forceOcr?"ocr":"auto",formula_enable:n.formulaEnable,table_enable:n.tableEnable,start_page_id:0,end_page_id:n.maxPages-1,return_md:!0,return_middle_json:!1,response_format_zip:!1};n.backend.includes("http-client")&&n.serverUrl&&(x.server_url=n.serverUrl);const A=await GS.parseDocument(x);if(A.results){const M=Object.values(A.results)[0].md_content||"",q=r4(M);r.value={markdown:M,source:q,mindmap:q}}}catch(x){i.value=x.message||"转换失败"}finally{s.value=!1}},getFormulaLabel:x=>x.startsWith("vlm")?"启用行间公式识别":x==="pipeline"?"启用公式识别":x.startsWith("hybrid")?"启用行内公式识别":"启用公式识别",getFormulaInfo:x=>x.startsWith("vlm")?"禁用后,行间公式将显示为图片。":x==="pipeline"?"禁用后,行间公式将显示为图片,行内公式将不会被检测或解析。":x.startsWith("hybrid")?"禁用后,行内公式将不会被检测或解析。":""}}const XS=new Va({html:!0,linkify:!0,typographer:!0,breaks:!0});function s4(e){var t;return{type:e.type,tag:e.tag||void 0,nesting:e.nesting,level:e.level,content:e.content||void 0,markup:e.markup||void 0,info:e.info||void 0,block:e.block,hidden:e.hidden,map:e.map||null,attrs:e.attrs?Object.fromEntries(e.attrs):void 0,children:(t=e.children)==null?void 0:t.map(s4)}}function YS(e){if(!e.trim())return"";const n={type:"root",children:XS.parse(e,{}).map(s4)};return JSON.stringify(n,null,2)}function Ma(){return{id:`${Date.now()}_${Math.random().toString(16).slice(2)}`,search:"",replace:""}}function JS(e,t){if(!e.trim())return{markdown:"",error:null};const n=t.filter(r=>r.search.trim());try{return{markdown:n.reduce((s,i)=>s.split(i.search).join(i.replace),e),error:null}}catch(r){return{markdown:e,error:`替换规则执行失败:${r.message}`}}}const QS={class:"document-processor"},ZS={class:"top-header"},eA={class:"main-content"},tA={class:"upload-section"},nA={class:"upload-content"},rA={class:"uploaded-files"},sA={class:"file-name"},iA={key:0,class:"settings-panel"},aA={class:"settings-header"},oA={class:"result-section"},lA={class:"source-tab-label"},cA={class:"source-tab-label"},uA={class:"result-content"},fA={key:0,class:"loading-container"},hA={key:1,class:"empty-state"},dA={key:2,class:"result-tab-content result-fade-in"},mA={class:"markdown-content"},pA={class:"markdown-box"},gA={class:"source-content"},yA={class:"source-toolbar"},bA={key:0,class:"template-error-inline"},wA={class:"source-panel"},vA={class:"mindmap-content"},_A={class:"mindmap-box"},xA={class:"replacement-dialog-body"},kA={class:"replacement-rule-list"},SA={class:"replacement-rule-head"},AA={class:"replacement-rule-index"},TA={class:"replacement-dialog-footer"},EA=Er({__name:"DocumentProcessor",setup(e){const{uploadedFiles:t,config:n,results:r,isProcessing:s,backendOptions:i,languageOptions:o,initializeManualResult:u,handleFileUpload:h}=KS(),d=Ge(!1),p=Ge(null),b=Ge(!1),v=Ge("markdown"),k=Ge(!1),x=Ge("markdown"),A=Ge("gfm"),E=Ge("markdown"),M=Ge(!1),q=Ge(!1),L=Ge([]),O=Ge([]),F=ht(()=>{var Ne;return((Ne=r.value)==null?void 0:Ne.source)||""}),z=ht(()=>JS(F.value,L.value)),j=ht(()=>z.value.markdown),G=ht(()=>r4(j.value)),Q=ht(()=>z.value.error),ye=ht(()=>L.value.filter(Ne=>Ne.search.trim()).length),ce=ht(()=>ye.value>0),te=ht(()=>({markdown:"Markdown渲染",html:"HTML渲染",pdf:"PDF渲染",richtext:"富文本格式渲染"})[x.value]),he=Ne=>Ne.map(ge=>({...ge})),V=()=>{q.value=window.innerWidth<=768},oe=ht({get:()=>E.value==="ast"?YS(j.value):F.value,set:Ne=>{E.value==="markdown"&&r.value&&(r.value.source=Ne)}}),Y=()=>{if(d.value){const Ne=document.querySelector(".settings-panel");Ne&&(Ne.classList.remove("showing"),Ne.classList.add("hiding"),setTimeout(()=>{d.value=!1,Ne.classList.remove("hiding"),document.removeEventListener("click",fe)},400))}else d.value=!0,setTimeout(()=>{const Ne=document.querySelector(".settings-panel");Ne&&Ne.classList.add("showing"),document.addEventListener("click",fe)},10)},fe=Ne=>{const ge=document.querySelector(".settings-panel"),kt=document.querySelector(".settings-button");ge&&!ge.contains(Ne.target)&&kt&&!kt.contains(Ne.target)&&(ge.classList.remove("showing"),ge.classList.add("hiding"),setTimeout(()=>{d.value=!1,ge.classList.remove("hiding"),document.removeEventListener("click",fe)},400))},ee=Ne=>{console.log("Backend changed to:",Ne)},Ae=Ne=>{x.value=Ne,v.value="markdown"},Oe=Ne=>{(Ne==="markdown"||Ne==="ast")&&(E.value=Ne,v.value="source")},Te=()=>{O.value=he(L.value),O.value.length===0&&(O.value=[Ma()]),M.value=!0},H=()=>{O.value.push(Ma())},me=Ne=>{O.value.splice(Ne,1),O.value.length===0&&O.value.push(Ma())},Ee=()=>{O.value=[Ma()]},Je=()=>{L.value=he(O.value).filter(Ne=>Ne.search.trim()||Ne.replace.trim()),M.value=!1,Fd.success(L.value.length>0?"替换规则已保存并生效":"已清空替换规则")},_t=()=>{var Ne;(Ne=p.value)==null||Ne.click()},xt=()=>{L.value=[],O.value=[]},Pt=async Ne=>{const ge=Ne.target;ge.files&&(await h(ge.files),ge.value="",t.value.length>0&&(k.value=!0,u(),xt(),x.value="markdown",E.value="markdown",v.value="source"))},dn=async Ne=>{var ge;Ne.preventDefault(),b.value=!1,(ge=Ne.dataTransfer)!=null&&ge.files&&(await h(Ne.dataTransfer.files),t.value.length>0&&(k.value=!0,u(),xt(),x.value="markdown",E.value="markdown",v.value="source"))},qn=Ne=>{t.value.splice(Ne,1),t.value.length===0&&(k.value=!1)};return mo(()=>{V(),window.addEventListener("resize",V)}),X0(()=>{window.removeEventListener("resize",V)}),(Ne,ge)=>{const kt=dt("el-button"),ue=dt("el-icon"),Be=dt("el-dropdown-item"),mn=dt("el-dropdown-menu"),Mn=dt("el-dropdown"),vn=dt("el-tab-pane"),rt=dt("el-tabs"),C=dt("el-input"),$=dt("el-dialog");return Ke(),at("div",QS,[ke("header",ZS,[ge[8]||(ge[8]=ke("h2",{class:"ellipsis",title:"思维导图"},"思维导图",-1)),pe(kt,{type:"text",onClick:Y,class:"settings-button"},{default:Se(()=>[...ge[7]||(ge[7]=[bt(" 设置 ",-1)])]),_:1})]),ke("div",eA,[ke("div",tA,[ke("div",{class:xg(["drag-upload-area",{"drag-over":b.value,collapsed:k.value}]),onDrop:dn,onDragover:ge[0]||(ge[0]=o0(Z=>b.value=!0,["prevent"])),onDragleave:ge[1]||(ge[1]=Z=>b.value=!1),onClick:_t},[da(ke("div",nA,[pe(ue,{class:"upload-icon"},{default:Se(()=>[pe(Ht(kg))]),_:1}),ge[9]||(ge[9]=ke("div",{class:"upload-text"},"文件导入",-1)),ge[10]||(ge[10]=ke("div",{class:"upload-hint"},"支持PDF、Word、PNG格式文件,上传后可手动粘贴 Markdown 源码用于演示",-1))],512),[[ma,!k.value]]),ke("div",rA,[(Ke(!0),at(fr,null,fi(Ht(t),(Z,_e)=>(Ke(),at("div",{class:"file-item",key:_e},[pe(ue,{class:"file-icon"},{default:Se(()=>[pe(Ht(Bd))]),_:1}),ke("span",sA,Vt(Z.name),1),pe(kt,{type:"text",icon:Ht(Tg),onClick:o0(Xe=>qn(_e),["stop"]),class:"remove-button"},null,8,["icon","onClick"])]))),128))])],34),d.value?(Ke(),at("div",iA,[ke("div",aA,[ge[11]||(ge[11]=ke("h3",{class:"settings-title"},"设置",-1)),pe(kt,{type:"text",onClick:Y,class:"close-button"},{default:Se(()=>[pe(ue,null,{default:Se(()=>[pe(Ht(Sg))]),_:1})]),_:1})]),pe(G5,{modelValue:Ht(n),"onUpdate:modelValue":ge[2]||(ge[2]=Z=>Rd(n)?n.value=Z:null),"backend-options":Ht(i),"language-options":Ht(o),onBackendChange:ee},null,8,["modelValue","backend-options","language-options"])])):ks("",!0)]),ke("div",oA,[pe(rt,{modelValue:v.value,"onUpdate:modelValue":ge[3]||(ge[3]=Z=>v.value=Z),class:"result-tabs"},{default:Se(()=>[pe(vn,{name:"markdown"},{label:Se(()=>[pe(Mn,{trigger:"hover",onCommand:Ae},{dropdown:Se(()=>[pe(mn,null,{default:Se(()=>[pe(Be,{command:"markdown"},{default:Se(()=>[...ge[12]||(ge[12]=[bt("Markdown渲染",-1)])]),_:1}),pe(Be,{command:"html"},{default:Se(()=>[...ge[13]||(ge[13]=[bt("HTML渲染",-1)])]),_:1}),pe(Be,{command:"pdf"},{default:Se(()=>[...ge[14]||(ge[14]=[bt("PDF渲染",-1)])]),_:1}),pe(Be,{command:"richtext"},{default:Se(()=>[...ge[15]||(ge[15]=[bt("富文本格式渲染",-1)])]),_:1})]),_:1})]),default:Se(()=>[ke("span",lA,[bt(Vt(te.value)+" ",1),pe(ue,{class:"source-tab-arrow"},{default:Se(()=>[pe(Ht(a0))]),_:1})])]),_:1})]),_:1}),pe(vn,{name:"source"},{label:Se(()=>[pe(Mn,{trigger:"hover",onCommand:Oe},{dropdown:Se(()=>[pe(mn,null,{default:Se(()=>[pe(Be,{command:"markdown"},{default:Se(()=>[...ge[16]||(ge[16]=[bt("Markdown 源码",-1)])]),_:1}),pe(Be,{command:"ast"},{default:Se(()=>[...ge[17]||(ge[17]=[bt("AST抽象语法树",-1)])]),_:1})]),_:1})]),default:Se(()=>[ke("span",cA,[bt(Vt(E.value==="markdown"?"Markdown 源码":"AST抽象语法树")+" ",1),pe(ue,{class:"source-tab-arrow"},{default:Se(()=>[pe(Ht(a0))]),_:1})])]),_:1})]),_:1}),pe(vn,{label:"思维导图",name:"mindmap"})]),_:1},8,["modelValue"]),ke("div",uA,[Ht(s)?(Ke(),at("div",fA,[pe(ue,{class:"loading-icon"},{default:Se(()=>[pe(Ht(Ag))]),_:1}),ge[18]||(ge[18]=ke("p",{class:"loading-text"},"正在处理文档...",-1))])):Ht(r)?(Ke(),at("div",dA,[da(ke("div",mA,[ke("div",pA,[pe(d3,{content:j.value,mode:x.value,flavor:A.value,"onUpdate:mode":Ae},null,8,["content","mode","flavor"])])],512),[[ma,v.value==="markdown"]]),da(ke("div",gA,[ke("div",yA,[pe(kt,{type:ce.value?"primary":"default",class:"replacement-config-button",onClick:Te},{default:Se(()=>[bt(Vt(ce.value?`动态模板渲染(已配置${ye.value}条)`:"动态模板渲染"),1)]),_:1},8,["type"]),Q.value?(Ke(),at("div",bA,Vt(Q.value),1)):ks("",!0)]),ke("div",wA,[pe(C,{modelValue:oe.value,"onUpdate:modelValue":ge[4]||(ge[4]=Z=>oe.value=Z),type:"textarea",rows:20,readonly:E.value==="ast",placeholder:E.value==="markdown"?"请在这里粘贴 Markdown 模板源码":"AST 内容将根据替换后的 Markdown 自动生成",class:"source-textarea"},null,8,["modelValue","readonly","placeholder"])])],512),[[ma,v.value==="source"]]),da(ke("div",vA,[ke("div",_A,[pe(mk,{content:G.value},null,8,["content"])])],512),[[ma,v.value==="mindmap"]])])):(Ke(),at("div",hA,[...ge[19]||(ge[19]=[ke("div",{class:"empty-icon"},null,-1),ke("p",{class:"empty-text"},"暂无转换结果",-1)])]))])])]),ke("input",{ref_key:"fileInput",ref:p,type:"file",multiple:"",accept:".pdf,.doc,.docx,.png",style:{position:"absolute",width:"0",height:"0",overflow:"hidden"},onChange:Pt},null,544),pe($,{modelValue:M.value,"onUpdate:modelValue":ge[6]||(ge[6]=Z=>M.value=Z),title:"动态模板渲染配置",width:"720px",fullscreen:q.value,"destroy-on-close":"",class:"replacement-dialog"},{footer:Se(()=>[ke("div",TA,[pe(kt,{onClick:Ee},{default:Se(()=>[...ge[23]||(ge[23]=[bt("重置",-1)])]),_:1}),pe(kt,{onClick:ge[5]||(ge[5]=Z=>M.value=!1)},{default:Se(()=>[...ge[24]||(ge[24]=[bt("取消",-1)])]),_:1}),pe(kt,{type:"primary",onClick:Je},{default:Se(()=>[...ge[25]||(ge[25]=[bt("保存生效",-1)])]),_:1})])]),default:Se(()=>[ke("div",xA,[ge[22]||(ge[22]=ke("div",{class:"replacement-dialog-tip"}," 支持字符替换。保存后会实时作用到 Markdown 预览、AST、思维导图和导出结果。 ",-1)),ke("div",kA,[(Ke(!0),at(fr,null,fi(O.value,(Z,_e)=>(Ke(),at("div",{key:Z.id,class:"replacement-rule-row"},[ke("div",SA,[ke("div",AA,"规则 "+Vt(_e+1),1)]),pe(C,{modelValue:Z.search,"onUpdate:modelValue":Xe=>Z.search=Xe,placeholder:"被替换字符,例如:{{title}}",class:"replacement-rule-input"},null,8,["modelValue","onUpdate:modelValue"]),pe(C,{modelValue:Z.replace,"onUpdate:modelValue":Xe=>Z.replace=Xe,placeholder:"替换成,例如:项目演示标题",class:"replacement-rule-input"},null,8,["modelValue","onUpdate:modelValue"]),pe(kt,{class:"replacement-delete-button",onClick:Xe=>me(_e)},{default:Se(()=>[...ge[20]||(ge[20]=[bt("删除",-1)])]),_:1},8,["onClick"])]))),128))]),pe(kt,{class:"add-rule-button",onClick:H},{default:Se(()=>[...ge[21]||(ge[21]=[bt("新增替换规则",-1)])]),_:1})])]),_:1},8,["modelValue","fullscreen"])])}}}),NA=wo(EA,[["__scopeId","data-v-cfed1579"]]),CA={id:"app"},IA={class:"container"},MA=Er({__name:"App",setup(e){return(t,n)=>(Ke(),at("div",CA,[ke("div",IA,[pe(NA)])]))}}),OA={app:{title:"多模态思维导图助手"},common:{upload:"上传",clear:"清除",convert:"转换",cancel:"取消",confirm:"确定",loading:"加载中...",success:"成功",error:"错误",warning:"警告"},upload:{title:"请上传 PDF 或图片",placeholder:"点击上传或将文件拖拽到此处",supportedTypes:"支持的文件类型: PDF, PNG, JPG, JPEG",maxSize:"最大文件大小: 100MB"},config:{title:"配置选项",maxPages:"最大转换页数",backend:"解析后端",serverUrl:"服务器地址",serverUrlInfo:"http-client 后端的 OpenAI 兼容服务器地址。",recognitionOptions:"识别选项",tableEnable:"启用表格识别",tableInfo:"禁用后,表格将显示为图片。",formulaLabelVlm:"启用行间公式识别",formulaLabelPipeline:"启用公式识别",formulaLabelHybrid:"启用行内公式识别",formulaInfoVlm:"禁用后,行间公式将显示为图片。",formulaInfoPipeline:"禁用后,行间公式将显示为图片,行内公式将不会被检测或解析。",formulaInfoHybrid:"禁用后,行内公式将不会被检测或解析。",ocrLanguage:"OCR 语言",ocrLanguageInfo:"为扫描版 PDF 和图片选择 OCR 语言。",forceOcr:"强制启用 OCR",forceOcrInfo:"仅在识别效果极差时启用,需选择正确的 OCR 语言。",backendInfoVlm:"多模态大模型高精度解析,仅支持中英文文档。",backendInfoPipeline:"传统多模型管道解析,支持多语言,无幻觉。",backendInfoHybrid:"高精度混合解析,支持多语言。",backendInfoDefault:"选择文档解析的后端引擎。"},results:{title:"转换结果",tabs:{markdown:"Markdown 渲染",source:"Markdown 源码",mindmap:"思维导图"},download:"下载结果",noResults:"暂无转换结果"},languages:{ch:"中文(简体)",en:"英语",korean:"韩语",japan:"日语",chinese_cht:"中文(繁体)",ta:"泰米尔语",te:"泰卢固语",ka:"卡纳达语",th:"泰语",el:"希腊语",latin:"拉丁语系",arabic:"阿拉伯语系",east_slavic:"东斯拉夫语系",cyrillic:"西里尔语系",devanagari:"梵文字母语系"},backends:{pipeline:"传统管道解析","vlm-auto-engine":"VLM本地引擎","hybrid-auto-engine":"混合本地引擎","vlm-http-client":"VLM远程客户端","hybrid-http-client":"混合远程客户端"},errors:{uploadFailed:"文件上传失败",conversionFailed:"转换失败",invalidFileType:"不支持的文件类型",fileSizeExceeded:"文件大小超出限制",networkError:"网络连接错误"}},LA={app:{title:"Multimodal Mind Map Assistant"},common:{upload:"Upload",clear:"Clear",convert:"Convert",cancel:"Cancel",confirm:"Confirm",loading:"Loading...",success:"Success",error:"Error",warning:"Warning"},upload:{title:"Please upload PDF or image",placeholder:"Click to upload or drag files here",supportedTypes:"Supported file types: PDF, PNG, JPG, JPEG",maxSize:"Maximum file size: 100MB"},config:{title:"Configuration Options",maxPages:"Max convert pages",backend:"Backend",serverUrl:"Server URL",serverUrlInfo:"OpenAI-compatible server URL for http-client backend.",recognitionOptions:"Recognition Options",tableEnable:"Enable table recognition",tableInfo:"If disabled, tables will be shown as images.",formulaLabelVlm:"Enable display formula recognition",formulaLabelPipeline:"Enable formula recognition",formulaLabelHybrid:"Enable inline formula recognition",formulaInfoVlm:"If disabled, display formulas will be shown as images.",formulaInfoPipeline:"If disabled, display formulas will be shown as images, and inline formulas will not be detected or parsed.",formulaInfoHybrid:"If disabled, inline formulas will not be detected or parsed.",ocrLanguage:"OCR Language",ocrLanguageInfo:"Select the OCR language for image-based PDFs and images.",forceOcr:"Force enable OCR",forceOcrInfo:"Enable only if the result is extremely poor. Requires correct OCR language.",backendInfoVlm:"High-precision parsing via VLM, supports Chinese and English documents only.",backendInfoPipeline:"Traditional Multi-model pipeline parsing, supports multiple languages, hallucination-free.",backendInfoHybrid:"High-precision hybrid parsing, supports multiple languages.",backendInfoDefault:"Select the backend engine for document parsing."},results:{title:"Convert Result",tabs:{markdown:"Markdown Rendering",source:"Markdown Source",mindmap:"Mind Map"},download:"Download Result",noResults:"No conversion results yet"},languages:{ch:"Chinese (Simplified)",en:"English",korean:"Korean",japan:"Japanese",chinese_cht:"Chinese (Traditional)",ta:"Tamil",te:"Telugu",ka:"Kannada",th:"Thai",el:"Greek",latin:"Latin Languages",arabic:"Arabic Languages",east_slavic:"East Slavic Languages",cyrillic:"Cyrillic Languages",devanagari:"Devanagari Languages"},backends:{pipeline:"Traditional Pipeline Parsing","vlm-auto-engine":"VLM Local Engine","hybrid-auto-engine":"Hybrid Local Engine","vlm-http-client":"VLM Remote Client","hybrid-http-client":"Hybrid Remote Client"},errors:{uploadFailed:"File upload failed",conversionFailed:"Conversion failed",invalidFileType:"Unsupported file type",fileSizeExceeded:"File size exceeded limit",networkError:"Network connection error"}},RA=T5({legacy:!1,locale:navigator.language.includes("zh")?"zh":"en",fallbackLocale:"en",messages:{zh:OA,en:LA}}),Qc=Eg(MA);Qc.use(Ng);Qc.use(RA);Qc.mount("#app");
|