433 lines
688 KiB
JavaScript
433 lines
688 KiB
JavaScript
import{e as ng,w as Da,i as kd,r as $t,s as Sd,c as Qt,d as _r,h as Ad,F as ms,g as ii,a as rg,o as Ed,b as Td,f as sg,j as Ne,T as ig,k as Pt,l as It,m as ze,t as dn,n as Ge,p as gt,q as Jl,u as vl,v as Ra,x as gr,y as Ql,z as Ct,A as ag,B as og,C as lg,D as Zl,E as Nd,G as cg,H as ug,I as fg,J as sa,K as ia,L as hg,M as dg,N as mg,O as pg,P as gg,Q as bg}from"./vendor-DSv9k51x.js";import{M as Cd}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 yg(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Pa=typeof window<"u",xr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wg=(e,t,n)=>vg({l:e,k:t,s:n}),vg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wt=e=>typeof e=="number"&&isFinite(e),_g=e=>Od(e)==="[object Date]",vr=e=>Od(e)==="[object RegExp]",so=e=>Re(e)&&Object.keys(e).length===0,Ht=Object.assign,xg=Object.create,rt=(e=null)=>xg(e);let uf;const Zn=()=>uf||(uf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:rt());function ff(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function hf(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function kg(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${hf(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${hf(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 Sg=Object.prototype.hasOwnProperty;function Cn(e,t){return Sg.call(e,t)}const ut=Array.isArray,lt=e=>typeof e=="function",ue=e=>typeof e=="string",Ue=e=>typeof e=="boolean",Je=e=>e!==null&&typeof e=="object",Ag=e=>Je(e)&<(e.then)&<(e.catch),Id=Object.prototype.toString,Od=e=>Id.call(e),Re=e=>{if(!Je(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Eg=e=>e==null?"":ut(e)||Re(e)&&e.toString===Id?JSON.stringify(e,null,2):String(e);function Tg(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function io(e){let t=e;return()=>++t}const aa=e=>!Je(e)||ut(e);function xa(e,t){if(aa(e)||aa(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__"&&(Je(r[i])&&!Je(s[i])&&(s[i]=Array.isArray(r[i])?[]:rt()),aa(s[i])||aa(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 Ng(e,t,n){return{line:e,column:t,offset:n}}function $a(e,t,n){return{start:e,end:t}}const Cg=/\{([0-9a-zA-Z]+)\}/g;function Md(e,...t){return t.length===1&&Ig(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Cg,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Ld=Object.assign,df=e=>typeof e=="string",Ig=e=>e!==null&&typeof e=="object";function Dd(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const q0={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Og={[q0.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Mg(e,t,...n){const r=Md(Og[e],...n||[]),s={message:String(r),code:e};return t&&(s.location=t),s}const Ce={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},Lg={[Ce.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ce.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ce.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ce.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ce.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ce.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ce.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ce.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ce.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ce.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ce.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ce.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ce.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ce.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ce.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ce.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ts(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=Md((s||Lg)[e]||"",...i||[]),u=new SyntaxError(String(o));return u.code=e,t&&(u.location=t),u.domain=r,u}function Dg(e){throw e}const Xn=" ",Rg="\r",Yt=`
|
||
`,Pg="\u2028",$g="\u2029";function Bg(e){const t=e;let n=0,r=1,s=1,i=0;const o=j=>t[j]===Rg&&t[j+1]===Yt,u=j=>t[j]===Yt,h=j=>t[j]===$g,d=j=>t[j]===Pg,p=j=>o(j)||u(j)||h(j)||d(j),w=()=>n,v=()=>r,x=()=>s,k=()=>i,A=j=>o(j)||h(j)||d(j)?Yt:t[j],N=()=>A(n),I=()=>A(n+i);function V(){return i=0,p(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function D(){return o(n+i)&&i++,i++,t[n+i]}function M(){n=0,r=1,s=1,i=0}function B(j=0){i=j}function P(){const j=n+i;for(;j!==n;)V();i=0}return{index:w,line:v,column:x,peekOffset:k,charAt:A,currentChar:N,currentPeek:I,next:V,peek:D,reset:M,resetPeek:B,skipToPeek:P}}const hr=void 0,Fg=".",mf="'",zg="tokenizer";function qg(e,t={}){const n=t.location!==!1,r=Bg(e),s=()=>r.index(),i=()=>Ng(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 w($,F,ee,...we){const st=d();if(F.column+=ee,F.offset+=ee,p){const _e=n?$a(st.startLoc,F):null,J=Ts($,_e,{domain:zg,args:we});p(J)}}function v($,F,ee){$.endLoc=i(),$.currentType=F;const we={type:F};return n&&(we.loc=$a($.startLoc,$.endLoc)),ee!=null&&(we.value=ee),we}const x=$=>v($,14);function k($,F){return $.currentChar()===F?($.next(),F):(w(Ce.EXPECTED_TOKEN,i(),0,F),"")}function A($){let F="";for(;$.currentPeek()===Xn||$.currentPeek()===Yt;)F+=$.currentPeek(),$.peek();return F}function N($){const F=A($);return $.skipToPeek(),F}function I($){if($===hr)return!1;const F=$.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F===95}function V($){if($===hr)return!1;const F=$.charCodeAt(0);return F>=48&&F<=57}function D($,F){const{currentType:ee}=F;if(ee!==2)return!1;A($);const we=I($.currentPeek());return $.resetPeek(),we}function M($,F){const{currentType:ee}=F;if(ee!==2)return!1;A($);const we=$.currentPeek()==="-"?$.peek():$.currentPeek(),st=V(we);return $.resetPeek(),st}function B($,F){const{currentType:ee}=F;if(ee!==2)return!1;A($);const we=$.currentPeek()===mf;return $.resetPeek(),we}function P($,F){const{currentType:ee}=F;if(ee!==8)return!1;A($);const we=$.currentPeek()===".";return $.resetPeek(),we}function j($,F){const{currentType:ee}=F;if(ee!==9)return!1;A($);const we=I($.currentPeek());return $.resetPeek(),we}function W($,F){const{currentType:ee}=F;if(!(ee===8||ee===12))return!1;A($);const we=$.currentPeek()===":";return $.resetPeek(),we}function Y($,F){const{currentType:ee}=F;if(ee!==10)return!1;const we=()=>{const _e=$.currentPeek();return _e==="{"?I($.peek()):_e==="@"||_e==="%"||_e==="|"||_e===":"||_e==="."||_e===Xn||!_e?!1:_e===Yt?($.peek(),we()):be($,!1)},st=we();return $.resetPeek(),st}function pe($){A($);const F=$.currentPeek()==="|";return $.resetPeek(),F}function Me($){const F=A($),ee=$.currentPeek()==="%"&&$.peek()==="{";return $.resetPeek(),{isModulo:ee,hasSpace:F.length>0}}function be($,F=!0){const ee=(st=!1,_e="",J=!1)=>{const re=$.currentPeek();return re==="{"?_e==="%"?!1:st:re==="@"||!re?_e==="%"?!0:st:re==="%"?($.peek(),ee(st,"%",!0)):re==="|"?_e==="%"||J?!0:!(_e===Xn||_e===Yt):re===Xn?($.peek(),ee(!0,Xn,J)):re===Yt?($.peek(),ee(!0,Yt,J)):!0},we=ee();return F&&$.resetPeek(),we}function xe($,F){const ee=$.currentChar();return ee===hr?hr:F(ee)?($.next(),ee):null}function G($){const F=$.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36}function he($){return xe($,G)}function Q($){const F=$.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36||F===45}function ge($){return xe($,Q)}function te($){const F=$.charCodeAt(0);return F>=48&&F<=57}function Ae($){return xe($,te)}function Le($){const F=$.charCodeAt(0);return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102}function ve($){return xe($,Le)}function U($){let F="",ee="";for(;F=Ae($);)ee+=F;return ee}function ce($){N($);const F=$.currentChar();return F!=="%"&&w(Ce.EXPECTED_TOKEN,i(),0,F),$.next(),"%"}function Ee($){let F="";for(;;){const ee=$.currentChar();if(ee==="{"||ee==="}"||ee==="@"||ee==="|"||!ee)break;if(ee==="%")if(be($))F+=ee,$.next();else break;else if(ee===Xn||ee===Yt)if(be($))F+=ee,$.next();else{if(pe($))break;F+=ee,$.next()}else F+=ee,$.next()}return F}function et($){N($);let F="",ee="";for(;F=ge($);)ee+=F;return $.currentChar()===hr&&w(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),ee}function Et($){N($);let F="";return $.currentChar()==="-"?($.next(),F+=`-${U($)}`):F+=U($),$.currentChar()===hr&&w(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),F}function Lt($){return $!==mf&&$!==Yt}function qt($){N($),k($,"'");let F="",ee="";for(;F=xe($,Lt);)F==="\\"?ee+=Sn($):ee+=F;const we=$.currentChar();return we===Yt||we===hr?(w(Ce.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),we===Yt&&($.next(),k($,"'")),ee):(k($,"'"),ee)}function Sn($){const F=$.currentChar();switch(F){case"\\":case"'":return $.next(),`\\${F}`;case"u":return ir($,F,4);case"U":return ir($,F,6);default:return w(Ce.UNKNOWN_ESCAPE_SEQUENCE,i(),0,F),""}}function ir($,F,ee){k($,F);let we="";for(let st=0;st<ee;st++){const _e=ve($);if(!_e){w(Ce.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${F}${we}${$.currentChar()}`);break}we+=_e}return`\\${F}${we}`}function Er($){return $!=="{"&&$!=="}"&&$!==Xn&&$!==Yt}function Tr($){N($);let F="",ee="";for(;F=xe($,Er);)ee+=F;return ee}function ar($){let F="",ee="";for(;F=he($);)ee+=F;return ee}function le($){const F=ee=>{const we=$.currentChar();return we==="{"||we==="%"||we==="@"||we==="|"||we==="("||we===")"||!we||we===Xn?ee:(ee+=we,$.next(),F(ee))};return F("")}function $e($){N($);const F=k($,"|");return N($),F}function An($,F){let ee=null;switch($.currentChar()){case"{":return F.braceNest>=1&&w(Ce.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),$.next(),ee=v(F,2,"{"),N($),F.braceNest++,ee;case"}":return F.braceNest>0&&F.currentType===2&&w(Ce.EMPTY_PLACEHOLDER,i(),0),$.next(),ee=v(F,3,"}"),F.braceNest--,F.braceNest>0&&N($),F.inLinked&&F.braceNest===0&&(F.inLinked=!1),ee;case"@":return F.braceNest>0&&w(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),ee=Vn($,F)||x(F),F.braceNest=0,ee;default:{let st=!0,_e=!0,J=!0;if(pe($))return F.braceNest>0&&w(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),ee=v(F,1,$e($)),F.braceNest=0,F.inLinked=!1,ee;if(F.braceNest>0&&(F.currentType===5||F.currentType===6||F.currentType===7))return w(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),F.braceNest=0,Nr($,F);if(st=D($,F))return ee=v(F,5,et($)),N($),ee;if(_e=M($,F))return ee=v(F,6,Et($)),N($),ee;if(J=B($,F))return ee=v(F,7,qt($)),N($),ee;if(!st&&!_e&&!J)return ee=v(F,13,Tr($)),w(Ce.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,ee.value),N($),ee;break}}return ee}function Vn($,F){const{currentType:ee}=F;let we=null;const st=$.currentChar();switch((ee===8||ee===9||ee===12||ee===10)&&(st===Yt||st===Xn)&&w(Ce.INVALID_LINKED_FORMAT,i(),0),st){case"@":return $.next(),we=v(F,8,"@"),F.inLinked=!0,we;case".":return N($),$.next(),v(F,9,".");case":":return N($),$.next(),v(F,10,":");default:return pe($)?(we=v(F,1,$e($)),F.braceNest=0,F.inLinked=!1,we):P($,F)||W($,F)?(N($),Vn($,F)):j($,F)?(N($),v(F,12,ar($))):Y($,F)?(N($),st==="{"?An($,F)||we:v(F,11,le($))):(ee===8&&w(Ce.INVALID_LINKED_FORMAT,i(),0),F.braceNest=0,F.inLinked=!1,Nr($,F))}}function Nr($,F){let ee={type:14};if(F.braceNest>0)return An($,F)||x(F);if(F.inLinked)return Vn($,F)||x(F);switch($.currentChar()){case"{":return An($,F)||x(F);case"}":return w(Ce.UNBALANCED_CLOSING_BRACE,i(),0),$.next(),v(F,3,"}");case"@":return Vn($,F)||x(F);default:{if(pe($))return ee=v(F,1,$e($)),F.braceNest=0,F.inLinked=!1,ee;const{isModulo:st,hasSpace:_e}=Me($);if(st)return _e?v(F,0,Ee($)):v(F,4,ce($));if(be($))return v(F,0,Ee($));break}}return ee}function Cr(){const{currentType:$,offset:F,startLoc:ee,endLoc:we}=h;return h.lastType=$,h.lastOffset=F,h.lastStartLoc=ee,h.lastEndLoc=we,h.offset=s(),h.startLoc=i(),r.currentChar()===hr?v(h,14):Nr(r,h)}return{nextToken:Cr,currentOffset:s,currentPosition:i,context:d}}const Ug="parser",Hg=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Vg(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 jg(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function s(D,M,B,P,...j){const W=D.currentPosition();if(W.offset+=P,W.column+=P,n){const Y=t?$a(B,W):null,pe=Ts(M,Y,{domain:Ug,args:j});n(pe)}}function i(D,M,B,P,...j){const W=D.currentPosition();if(W.offset+=P,W.column+=P,r){const Y=t?$a(B,W):null;r(Mg(M,Y,j))}}function o(D,M,B){const P={type:D};return t&&(P.start=M,P.end=M,P.loc={start:B,end:B}),P}function u(D,M,B,P){t&&(D.end=M,D.loc&&(D.loc.end=B))}function h(D,M){const B=D.context(),P=o(3,B.offset,B.startLoc);return P.value=M,u(P,D.currentOffset(),D.currentPosition()),P}function d(D,M){const B=D.context(),{lastOffset:P,lastStartLoc:j}=B,W=o(5,P,j);return W.index=parseInt(M,10),D.nextToken(),u(W,D.currentOffset(),D.currentPosition()),W}function p(D,M,B){const P=D.context(),{lastOffset:j,lastStartLoc:W}=P,Y=o(4,j,W);return Y.key=M,B===!0&&(Y.modulo=!0),D.nextToken(),u(Y,D.currentOffset(),D.currentPosition()),Y}function w(D,M){const B=D.context(),{lastOffset:P,lastStartLoc:j}=B,W=o(9,P,j);return W.value=M.replace(Hg,Vg),D.nextToken(),u(W,D.currentOffset(),D.currentPosition()),W}function v(D){const M=D.nextToken(),B=D.context(),{lastOffset:P,lastStartLoc:j}=B,W=o(8,P,j);return M.type!==12?(s(D,Ce.UNEXPECTED_EMPTY_LINKED_MODIFIER,B.lastStartLoc,0),W.value="",u(W,P,j),{nextConsumeToken:M,node:W}):(M.value==null&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,B.lastStartLoc,0,En(M)),W.value=M.value||"",u(W,D.currentOffset(),D.currentPosition()),{node:W})}function x(D,M){const B=D.context(),P=o(7,B.offset,B.startLoc);return P.value=M,u(P,D.currentOffset(),D.currentPosition()),P}function k(D){const M=D.context(),B=o(6,M.offset,M.startLoc);let P=D.nextToken();if(P.type===9){const j=v(D);B.modifier=j.node,P=j.nextConsumeToken||D.nextToken()}switch(P.type!==10&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,En(P)),P=D.nextToken(),P.type===2&&(P=D.nextToken()),P.type){case 11:P.value==null&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,En(P)),B.key=x(D,P.value||"");break;case 5:P.value==null&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,En(P)),B.key=p(D,P.value||"");break;case 6:P.value==null&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,En(P)),B.key=d(D,P.value||"");break;case 7:P.value==null&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,En(P)),B.key=w(D,P.value||"");break;default:{s(D,Ce.UNEXPECTED_EMPTY_LINKED_KEY,M.lastStartLoc,0);const j=D.context(),W=o(7,j.offset,j.startLoc);return W.value="",u(W,j.offset,j.startLoc),B.key=W,u(B,j.offset,j.startLoc),{nextConsumeToken:P,node:B}}}return u(B,D.currentOffset(),D.currentPosition()),{node:B}}function A(D){const M=D.context(),B=M.currentType===1?D.currentOffset():M.offset,P=M.currentType===1?M.endLoc:M.startLoc,j=o(2,B,P);j.items=[];let W=null,Y=null;do{const be=W||D.nextToken();switch(W=null,be.type){case 0:be.value==null&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,En(be)),j.items.push(h(D,be.value||""));break;case 6:be.value==null&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,En(be)),j.items.push(d(D,be.value||""));break;case 4:Y=!0;break;case 5:be.value==null&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,En(be)),j.items.push(p(D,be.value||"",!!Y)),Y&&(i(D,q0.USE_MODULO_SYNTAX,M.lastStartLoc,0,En(be)),Y=null);break;case 7:be.value==null&&s(D,Ce.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,En(be)),j.items.push(w(D,be.value||""));break;case 8:{const xe=k(D);j.items.push(xe.node),W=xe.nextConsumeToken||null;break}}}while(M.currentType!==14&&M.currentType!==1);const pe=M.currentType===1?M.lastOffset:D.currentOffset(),Me=M.currentType===1?M.lastEndLoc:D.currentPosition();return u(j,pe,Me),j}function N(D,M,B,P){const j=D.context();let W=P.items.length===0;const Y=o(1,M,B);Y.cases=[],Y.cases.push(P);do{const pe=A(D);W||(W=pe.items.length===0),Y.cases.push(pe)}while(j.currentType!==14);return W&&s(D,Ce.MUST_HAVE_MESSAGES_IN_PLURAL,B,0),u(Y,D.currentOffset(),D.currentPosition()),Y}function I(D){const M=D.context(),{offset:B,startLoc:P}=M,j=A(D);return M.currentType===14?j:N(D,B,P,j)}function V(D){const M=qg(D,Ld({},e)),B=M.context(),P=o(0,B.offset,B.startLoc);return t&&P.loc&&(P.loc.source=D),P.body=I(M),e.onCacheKey&&(P.cacheKey=e.onCacheKey(D)),B.currentType!==14&&s(M,Ce.UNEXPECTED_LEXICAL_ANALYSIS,B.lastStartLoc,0,D[B.offset]||""),u(P,M.currentOffset(),M.currentPosition()),P}return{parse:V}}function En(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 Wg(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function pf(e,t){for(let n=0;n<e.length;n++)U0(e[n],t)}function U0(e,t){switch(e.type){case 1:pf(e.cases,t),t.helper("plural");break;case 2:pf(e.items,t);break;case 6:{U0(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 Gg(e,t={}){const n=Wg(e);n.helper("normalize"),e.body&&U0(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Kg(e){const t=e.body;return t.type===2?gf(t):t.cases.forEach(n=>gf(n)),e}function gf(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=Dd(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 Xg="minifier";function os(e){switch(e.t=e.type,e.type){case 0:{const t=e;os(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++)os(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++)os(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;os(t.key),t.k=t.key,delete t.key,t.modifier&&(os(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 Ts(Ce.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Xg,args:[e.type]})}delete e.type}const Yg="parser";function Jg(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,N){o.code+=A}function d(A,N=!0){const I=N?r:"";h(s?I+" ".repeat(A):I)}function p(A=!0){const N=++o.indentLevel;A&&d(N)}function w(A=!0){const N=--o.indentLevel;A&&d(N)}function v(){d(o.indentLevel)}return{context:u,push:h,indent:p,deindent:w,newline:v,helper:A=>`_${A}`,needIndent:()=>o.needIndent}}function Qg(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ws(e,t.key),t.modifier?(e.push(", "),ws(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Zg(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&&(ws(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function e2(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&&(ws(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function t2(e,t){t.body?ws(e,t.body):e.push("null")}function ws(e,t){const{helper:n}=e;switch(t.type){case 0:t2(e,t);break;case 1:e2(e,t);break;case 2:Zg(e,t);break;case 6:Qg(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 Ts(Ce.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Yg,args:[t.type]})}}const n2=(e,t={})=>{const n=df(t.mode)?t.mode:"normal",r=df(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=Jg(e,{filename:r,breakLineCode:s,needIndent:i});u.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(i),o.length>0&&(u.push(`const { ${Dd(o.map(p=>`${p}: _${p}`),", ")} } = ctx`),u.newline()),u.push("return "),ws(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 r2(e,t={}){const n=Ld({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,u=jg(n).parse(e);return r?(i&&Kg(u),s&&os(u),{ast:u,code:""}):(Gg(u,n),n2(u,n))}/*!
|
||
* core-base v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function s2(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Zn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function zn(e){return Je(e)&&H0(e)===0&&(Cn(e,"b")||Cn(e,"body"))}const Rd=["b","body"];function i2(e){return kr(e,Rd)}const Pd=["c","cases"];function a2(e){return kr(e,Pd,[])}const $d=["s","static"];function o2(e){return kr(e,$d)}const Bd=["i","items"];function l2(e){return kr(e,Bd,[])}const Fd=["t","type"];function H0(e){return kr(e,Fd)}const zd=["v","value"];function oa(e,t){const n=kr(e,zd);if(n!=null)return n;throw ai(t)}const qd=["m","modifier"];function c2(e){return kr(e,qd)}const Ud=["k","key"];function u2(e){const t=kr(e,Ud);if(t)return t;throw ai(6)}function kr(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(Cn(e,s)&&e[s]!=null)return e[s]}return n}const Hd=[...Rd,...Pd,...$d,...Bd,...Ud,...qd,...zd,...Fd];function ai(e){return new Error(`unhandled node type: ${e}`)}const Sr=[];Sr[0]={w:[0],i:[3,0],"[":[4],o:[7]};Sr[1]={w:[1],".":[2],"[":[4],o:[7]};Sr[2]={w:[2],i:[3,0],0:[3,0]};Sr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Sr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Sr[5]={"'":[4,0],o:8,l:[5,0]};Sr[6]={'"':[4,0],o:8,l:[6,0]};const f2=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function h2(e){return f2.test(e)}function d2(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 m2(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 p2(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:h2(t)?d2(t):"*"+t}function g2(e){const t=[];let n=-1,r=0,s=0,i,o,u,h,d,p,w;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=p2(o),o===!1))return!1;v[1]()}};function x(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,u="\\"+k,v[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&x())){if(h=m2(i),w=Sr[r],d=w[h]||w.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 bf=new Map;function b2(e,t){return Je(e)?e[t]:null}function y2(e,t){if(!Je(e))return null;let n=bf.get(t);if(n||(n=g2(t),n&&bf.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(Hd.includes(o)&&zn(s))return null;const u=s[o];if(u===void 0||lt(s))return null;s=u,i++}return s}const w2=e=>e,v2=e=>"",_2="text",x2=e=>e.length===0?"":Tg(e),k2=Eg;function yf(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function S2(e){const t=wt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(wt(e.named.count)||wt(e.named.n))?wt(e.named.count)?e.named.count:wt(e.named.n)?e.named.n:t:t}function A2(e,t){t.count||(t.count=e),t.n||(t.n=e)}function E2(e={}){const t=e.locale,n=S2(e),r=Je(e.pluralRules)&&ue(t)&<(e.pluralRules[t])?e.pluralRules[t]:yf,s=Je(e.pluralRules)&&ue(t)&<(e.pluralRules[t])?yf:void 0,i=I=>I[r(n,I.length,s)],o=e.list||[],u=I=>o[I],h=e.named||rt();wt(e.pluralIndex)&&A2(n,h);const d=I=>h[I];function p(I){const V=lt(e.messages)?e.messages(I):Je(e.messages)?e.messages[I]:!1;return V||(e.parent?e.parent.message(I):v2)}const w=I=>e.modifiers?e.modifiers[I]:w2,v=Re(e.processor)&<(e.processor.normalize)?e.processor.normalize:x2,x=Re(e.processor)&<(e.processor.interpolate)?e.processor.interpolate:k2,k=Re(e.processor)&&ue(e.processor.type)?e.processor.type:_2,N={list:u,named:d,plural:i,linked:(I,...V)=>{const[D,M]=V;let B="text",P="";V.length===1?Je(D)?(P=D.modifier||P,B=D.type||B):ue(D)&&(P=D||P):V.length===2&&(ue(D)&&(P=D||P),ue(M)&&(B=M||B));const j=p(I)(N),W=B==="vnode"&&ut(j)&&P?j[0]:j;return P?w(P)(W,B):W},message:p,type:k,interpolate:x,normalize:v,values:Ht(rt(),o,h)};return N}let oi=null;function T2(e){oi=e}function N2(e,t,n){oi&&oi.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const C2=I2("function:translate");function I2(e){return t=>oi&&oi.emit(e,t)}const O2=q0.__EXTEND_POINT__,Mr=io(O2),M2={FALLBACK_TO_TRANSLATE:Mr(),CANNOT_FORMAT_NUMBER:Mr(),FALLBACK_TO_NUMBER_FORMAT:Mr(),CANNOT_FORMAT_DATE:Mr(),FALLBACK_TO_DATE_FORMAT:Mr(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Mr(),__EXTEND_POINT__:Mr()},Vd=Ce.__EXTEND_POINT__,Lr=io(Vd),In={INVALID_ARGUMENT:Vd,INVALID_DATE_ARGUMENT:Lr(),INVALID_ISO_DATE_ARGUMENT:Lr(),NOT_SUPPORT_NON_STRING_MESSAGE:Lr(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Lr(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Lr(),NOT_SUPPORT_LOCALE_TYPE:Lr(),__EXTEND_POINT__:Lr()};function Fn(e){return Ts(e,null,void 0)}function V0(e,t){return t.locale!=null?wf(t.locale):wf(e.locale)}let _l;function wf(e){if(ue(e))return e;if(lt(e)){if(e.resolvedOnce&&_l!=null)return _l;if(e.constructor.name==="Function"){const t=e();if(Ag(t))throw Fn(In.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _l=t}else throw Fn(In.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Fn(In.NOT_SUPPORT_LOCALE_TYPE)}function L2(e,t,n){return[...new Set([n,...ut(t)?t:Je(t)?Object.keys(t):ue(t)?[t]:[n]])]}function jd(e,t,n){const r=ue(n)?n:vs,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ut(o);)o=vf(i,o,t);const u=ut(t)||!Re(t)?t:t.default?t.default:null;o=ue(u)?[u]:u,ut(o)&&vf(i,o,!1),s.__localeChainCache.set(r,i)}return i}function vf(e,t,n){let r=!0;for(let s=0;s<t.length&&Ue(r);s++){const i=t[s];ue(i)&&(r=D2(e,t[s],n))}return r}function D2(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=R2(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function R2(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),(ut(n)||Re(n))&&n[s]&&(r=n[s])}return r}const P2="9.14.5",ao=-1,vs="en-US",_f="",xf=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function $2(){return{upper:(e,t)=>t==="text"&&ue(e)?e.toUpperCase():t==="vnode"&&Je(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ue(e)?e.toLowerCase():t==="vnode"&&Je(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&ue(e)?xf(e):t==="vnode"&&Je(e)&&"__v_isVNode"in e?xf(e.children):e}}let Wd;function kf(e){Wd=e}let Gd;function B2(e){Gd=e}let Kd;function F2(e){Kd=e}let Xd=null;const z2=e=>{Xd=e},q2=()=>Xd;let Yd=null;const Sf=e=>{Yd=e},U2=()=>Yd;let Af=0;function H2(e={}){const t=lt(e.onWarn)?e.onWarn:yg,n=ue(e.version)?e.version:P2,r=ue(e.locale)||lt(e.locale)?e.locale:vs,s=lt(r)?vs:r,i=ut(e.fallbackLocale)||Re(e.fallbackLocale)||ue(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=Re(e.messages)?e.messages:xl(s),u=Re(e.datetimeFormats)?e.datetimeFormats:xl(s),h=Re(e.numberFormats)?e.numberFormats:xl(s),d=Ht(rt(),e.modifiers,$2()),p=e.pluralRules||rt(),w=lt(e.missing)?e.missing:null,v=Ue(e.missingWarn)||vr(e.missingWarn)?e.missingWarn:!0,x=Ue(e.fallbackWarn)||vr(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,A=!!e.unresolving,N=lt(e.postTranslation)?e.postTranslation:null,I=Re(e.processor)?e.processor:null,V=Ue(e.warnHtmlMessage)?e.warnHtmlMessage:!0,D=!!e.escapeParameter,M=lt(e.messageCompiler)?e.messageCompiler:Wd,B=lt(e.messageResolver)?e.messageResolver:Gd||b2,P=lt(e.localeFallbacker)?e.localeFallbacker:Kd||L2,j=Je(e.fallbackContext)?e.fallbackContext:void 0,W=e,Y=Je(W.__datetimeFormatters)?W.__datetimeFormatters:new Map,pe=Je(W.__numberFormatters)?W.__numberFormatters:new Map,Me=Je(W.__meta)?W.__meta:{};Af++;const be={version:n,cid:Af,locale:r,fallbackLocale:i,messages:o,modifiers:d,pluralRules:p,missing:w,missingWarn:v,fallbackWarn:x,fallbackFormat:k,unresolving:A,postTranslation:N,processor:I,warnHtmlMessage:V,escapeParameter:D,messageCompiler:M,messageResolver:B,localeFallbacker:P,fallbackContext:j,onWarn:t,__meta:Me};return be.datetimeFormats=u,be.numberFormats=h,be.__datetimeFormatters=Y,be.__numberFormatters=pe,__INTLIFY_PROD_DEVTOOLS__&&N2(be,n,Me),be}const xl=e=>({[e]:rt()});function j0(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const u=i(e,n,t,s);return ue(u)?u:t}else return t}function Us(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function V2(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function j2(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(V2(e,t[r]))return!0;return!1}function kl(e){return n=>W2(n,e)}function W2(e,t){const n=i2(t);if(n==null)throw ai(0);if(H0(n)===1){const i=a2(n);return e.plural(i.reduce((o,u)=>[...o,Ef(e,u)],[]))}else return Ef(e,n)}function Ef(e,t){const n=o2(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=l2(t).reduce((s,i)=>[...s,e0(e,i)],[]);return e.normalize(r)}}function e0(e,t){const n=H0(t);switch(n){case 3:return oa(t,n);case 9:return oa(t,n);case 4:{const r=t;if(Cn(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Cn(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw ai(n)}case 5:{const r=t;if(Cn(r,"i")&&wt(r.i))return e.interpolate(e.list(r.i));if(Cn(r,"index")&&wt(r.index))return e.interpolate(e.list(r.index));throw ai(n)}case 6:{const r=t,s=c2(r),i=u2(r);return e.linked(e0(e,i),s?e0(e,s):void 0,e.type)}case 7:return oa(t,n);case 8:return oa(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Jd=e=>e;let cs=rt();function Qd(e,t={}){let n=!1;const r=t.onError||Dg;return t.onError=s=>{n=!0,r(s)},{...r2(e,t),detectError:n}}const G2=(e,t)=>{if(!ue(e))throw Fn(In.NOT_SUPPORT_NON_STRING_MESSAGE);{Ue(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Jd)(e),s=cs[r];if(s)return s;const{code:i,detectError:o}=Qd(e,t),u=new Function(`return ${i}`)();return o?u:cs[r]=u}};function K2(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&ue(e)){Ue(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Jd)(e),s=cs[r];if(s)return s;const{ast:i,detectError:o}=Qd(e,{...t,location:!1,jit:!0}),u=kl(i);return o?u:cs[r]=u}else{const n=e.cacheKey;if(n){const r=cs[n];return r||(cs[n]=kl(e))}else return kl(e)}}const Tf=()=>"",vn=e=>lt(e);function Nf(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:u}=e,[h,d]=t0(...t),p=Ue(d.missingWarn)?d.missingWarn:e.missingWarn,w=Ue(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,v=Ue(d.escapeParameter)?d.escapeParameter:e.escapeParameter,x=!!d.resolvedMessage,k=ue(d.default)||Ue(d.default)?Ue(d.default)?i?h:()=>h:d.default:n?i?h:()=>h:"",A=n||k!=="",N=V0(e,d);v&&X2(d);let[I,V,D]=x?[h,N,u[N]||rt()]:Zd(e,h,N,o,w,p),M=I,B=h;if(!x&&!(ue(M)||zn(M)||vn(M))&&A&&(M=k,B=M),!x&&(!(ue(M)||zn(M)||vn(M))||!ue(V)))return s?ao:h;let P=!1;const j=()=>{P=!0},W=vn(M)?M:e1(e,h,V,M,B,j);if(P)return M;const Y=Q2(e,V,D,d),pe=E2(Y),Me=Y2(e,W,pe);let be=r?r(Me,h):Me;if(v&&ue(be)&&(be=kg(be)),__INTLIFY_PROD_DEVTOOLS__){const xe={timestamp:Date.now(),key:ue(h)?h:vn(M)?M.key:"",locale:V||(vn(M)?M.locale:""),format:ue(M)?M:vn(M)?M.source:"",message:be};xe.meta=Ht({},e.__meta,q2()||{}),C2(xe)}return be}function X2(e){ut(e.list)?e.list=e.list.map(t=>ue(t)?ff(t):t):Je(e.named)&&Object.keys(e.named).forEach(t=>{ue(e.named[t])&&(e.named[t]=ff(e.named[t]))})}function Zd(e,t,n,r,s,i){const{messages:o,onWarn:u,messageResolver:h,localeFallbacker:d}=e,p=d(e,r,n);let w=rt(),v,x=null;const k="translate";for(let A=0;A<p.length&&(v=p[A],w=o[v]||rt(),(x=h(w,t))===null&&(x=w[t]),!(ue(x)||zn(x)||vn(x)));A++)if(!j2(v,p)){const N=j0(e,t,v,i,k);N!==t&&(x=N)}return[x,v,w]}function e1(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:u}=e;if(vn(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,J2(e,n,s,r,u,i));return h.locale=n,h.key=t,h.source=r,h}function Y2(e,t,n){return t(n)}function t0(...e){const[t,n,r]=e,s=rt();if(!ue(t)&&!wt(t)&&!vn(t)&&!zn(t))throw Fn(In.INVALID_ARGUMENT);const i=wt(t)?String(t):(vn(t),t);return wt(n)?s.plural=n:ue(n)?s.default=n:Re(n)&&!so(n)?s.named=n:ut(n)&&(s.list=n),wt(r)?s.plural=r:ue(r)?s.default=r:Re(r)&&Ht(s,r),[i,s]}function J2(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>wg(t,n,o)}}function Q2(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:x=>{let k=o(n,x);if(k==null&&p){const[,,A]=Zd(p,x,t,u,h,d);k=o(A,x)}if(ue(k)||zn(k)){let A=!1;const I=e1(e,x,t,k,x,()=>{A=!0});return A?Tf:I}else return vn(k)?k:Tf}};return e.processor&&(v.processor=e.processor),r.list&&(v.list=r.list),r.named&&(v.named=r.named),wt(r.plural)&&(v.pluralIndex=r.plural),v}function Cf(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:u}=e,[h,d,p,w]=n0(...t),v=Ue(p.missingWarn)?p.missingWarn:e.missingWarn;Ue(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const x=!!p.part,k=V0(e,p),A=o(e,s,k);if(!ue(h)||h==="")return new Intl.DateTimeFormat(k,w).format(d);let N={},I,V=null;const D="datetime format";for(let P=0;P<A.length&&(I=A[P],N=n[I]||{},V=N[h],!Re(V));P++)j0(e,h,I,v,D);if(!Re(V)||!ue(I))return r?ao:h;let M=`${I}__${h}`;so(w)||(M=`${M}__${JSON.stringify(w)}`);let B=u.get(M);return B||(B=new Intl.DateTimeFormat(I,Ht({},V,w)),u.set(M,B)),x?B.formatToParts(d):B.format(d)}const t1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function n0(...e){const[t,n,r,s]=e,i=rt();let o=rt(),u;if(ue(t)){const h=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!h)throw Fn(In.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 Fn(In.INVALID_ISO_DATE_ARGUMENT)}}else if(_g(t)){if(isNaN(t.getTime()))throw Fn(In.INVALID_DATE_ARGUMENT);u=t}else if(wt(t))u=t;else throw Fn(In.INVALID_ARGUMENT);return ue(n)?i.key=n:Re(n)&&Object.keys(n).forEach(h=>{t1.includes(h)?o[h]=n[h]:i[h]=n[h]}),ue(r)?i.locale=r:Re(r)&&(o=r),Re(s)&&(o=s),[i.key||"",u,i,o]}function If(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function Of(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:u}=e,[h,d,p,w]=r0(...t),v=Ue(p.missingWarn)?p.missingWarn:e.missingWarn;Ue(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const x=!!p.part,k=V0(e,p),A=o(e,s,k);if(!ue(h)||h==="")return new Intl.NumberFormat(k,w).format(d);let N={},I,V=null;const D="number format";for(let P=0;P<A.length&&(I=A[P],N=n[I]||{},V=N[h],!Re(V));P++)j0(e,h,I,v,D);if(!Re(V)||!ue(I))return r?ao:h;let M=`${I}__${h}`;so(w)||(M=`${M}__${JSON.stringify(w)}`);let B=u.get(M);return B||(B=new Intl.NumberFormat(I,Ht({},V,w)),u.set(M,B)),x?B.formatToParts(d):B.format(d)}const n1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function r0(...e){const[t,n,r,s]=e,i=rt();let o=rt();if(!wt(t))throw Fn(In.INVALID_ARGUMENT);const u=t;return ue(n)?i.key=n:Re(n)&&Object.keys(n).forEach(h=>{n1.includes(h)?o[h]=n[h]:i[h]=n[h]}),ue(r)?i.locale=r:Re(r)&&(o=r),Re(s)&&(o=s),[i.key||"",u,i,o]}function Mf(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}s2();/*!
|
||
* vue-i18n v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const Z2="9.14.5";function e5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Zn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Zn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Zn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zn().__INTLIFY_PROD_DEVTOOLS__=!1)}const t5=M2.__EXTEND_POINT__,Yn=io(t5);Yn(),Yn(),Yn(),Yn(),Yn(),Yn(),Yn(),Yn(),Yn();const r1=In.__EXTEND_POINT__,rn=io(r1),Mt={UNEXPECTED_RETURN_TYPE:r1,INVALID_ARGUMENT:rn(),MUST_BE_CALL_SETUP_TOP:rn(),NOT_INSTALLED:rn(),NOT_AVAILABLE_IN_LEGACY_MODE:rn(),REQUIRED_VALUE:rn(),INVALID_VALUE:rn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:rn(),NOT_INSTALLED_WITH_PROVIDE:rn(),UNEXPECTED_ERROR:rn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:rn(),BRIDGE_SUPPORT_VUE_2_ONLY:rn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:rn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:rn(),__EXTEND_POINT__:rn()};function Ft(e,...t){return Ts(e,null,void 0)}const s0=xr("__translateVNode"),i0=xr("__datetimeParts"),a0=xr("__numberParts"),s1=xr("__setPluralRules"),i1=xr("__injectWithOption"),o0=xr("__dispose");function li(e){if(!Je(e)||zn(e))return e;for(const t in e)if(Cn(e,t))if(!t.includes("."))Je(e[t])&&li(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]]=rt()),!Je(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(zn(s)?Hd.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!zn(s)){const o=s[n[r]];Je(o)&&li(o)}}return e}function oo(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=Re(n)?n:ut(r)?rt():{[e]:rt()};if(ut(r)&&r.forEach(u=>{if("locale"in u&&"resource"in u){const{locale:h,resource:d}=u;h?(o[h]=o[h]||rt(),xa(d,o[h])):xa(d,o)}else ue(u)&&xa(JSON.parse(u),o)}),s==null&&i)for(const u in o)Cn(o,u)&&li(o[u]);return o}function a1(e){return e.type}function o1(e,t,n){let r=Je(t.messages)?t.messages:rt();"__i18nGlobal"in n&&(r=oo(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Je(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Je(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Lf(e){return Ne(ig,null,e,0)}const Df="__INTLIFY_META__",Rf=()=>[],n5=()=>!1;let Pf=0;function $f(e){return(t,n,r,s)=>e(n,r,ii()||void 0,s)}const r5=()=>{const e=ii();let t=null;return e&&(t=a1(e)[Df])?{[Df]:t}:null};function W0(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,i=e.flatJson,o=Pa?$t:Sd,u=!!e.translateExistCompatible;let h=Ue(e.inheritLocale)?e.inheritLocale:!0;const d=o(n&&h?n.locale.value:ue(e.locale)?e.locale:vs),p=o(n&&h?n.fallbackLocale.value:ue(e.fallbackLocale)||ut(e.fallbackLocale)||Re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:d.value),w=o(oo(d.value,e)),v=o(Re(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),x=o(Re(e.numberFormats)?e.numberFormats:{[d.value]:{}});let k=n?n.missingWarn:Ue(e.missingWarn)||vr(e.missingWarn)?e.missingWarn:!0,A=n?n.fallbackWarn:Ue(e.fallbackWarn)||vr(e.fallbackWarn)?e.fallbackWarn:!0,N=n?n.fallbackRoot:Ue(e.fallbackRoot)?e.fallbackRoot:!0,I=!!e.fallbackFormat,V=lt(e.missing)?e.missing:null,D=lt(e.missing)?$f(e.missing):null,M=lt(e.postTranslation)?e.postTranslation:null,B=n?n.warnHtmlMessage:Ue(e.warnHtmlMessage)?e.warnHtmlMessage:!0,P=!!e.escapeParameter;const j=n?n.modifiers:Re(e.modifiers)?e.modifiers:{};let W=e.pluralRules||n&&n.pluralRules,Y;Y=(()=>{s&&Sf(null);const J={version:Z2,locale:d.value,fallbackLocale:p.value,messages:w.value,modifiers:j,pluralRules:W,missing:D===null?void 0:D,missingWarn:k,fallbackWarn:A,fallbackFormat:I,unresolving:!0,postTranslation:M===null?void 0:M,warnHtmlMessage:B,escapeParameter:P,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};J.datetimeFormats=v.value,J.numberFormats=x.value,J.__datetimeFormatters=Re(Y)?Y.__datetimeFormatters:void 0,J.__numberFormatters=Re(Y)?Y.__numberFormatters:void 0;const re=H2(J);return s&&Sf(re),re})(),Us(Y,d.value,p.value);function Me(){return[d.value,p.value,w.value,v.value,x.value]}const be=Qt({get:()=>d.value,set:J=>{d.value=J,Y.locale=d.value}}),xe=Qt({get:()=>p.value,set:J=>{p.value=J,Y.fallbackLocale=p.value,Us(Y,d.value,J)}}),G=Qt(()=>w.value),he=Qt(()=>v.value),Q=Qt(()=>x.value);function ge(){return lt(M)?M:null}function te(J){M=J,Y.postTranslation=J}function Ae(){return V}function Le(J){J!==null&&(D=$f(J)),V=J,Y.missing=D}const ve=(J,re,tt,ft,Ke,oe)=>{Me();let jt;try{__INTLIFY_PROD_DEVTOOLS__,s||(Y.fallbackContext=n?U2():void 0),jt=J(Y)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(Y.fallbackContext=void 0)}if(tt!=="translate exists"&&wt(jt)&&jt===ao||tt==="translate exists"&&!jt){const[Di,Ro]=re();return n&&N?ft(n):Ke(Di)}else{if(oe(jt))return jt;throw Ft(Mt.UNEXPECTED_RETURN_TYPE)}};function U(...J){return ve(re=>Reflect.apply(Nf,null,[re,...J]),()=>t0(...J),"translate",re=>Reflect.apply(re.t,re,[...J]),re=>re,re=>ue(re))}function ce(...J){const[re,tt,ft]=J;if(ft&&!Je(ft))throw Ft(Mt.INVALID_ARGUMENT);return U(re,tt,Ht({resolvedMessage:!0},ft||{}))}function Ee(...J){return ve(re=>Reflect.apply(Cf,null,[re,...J]),()=>n0(...J),"datetime format",re=>Reflect.apply(re.d,re,[...J]),()=>_f,re=>ue(re))}function et(...J){return ve(re=>Reflect.apply(Of,null,[re,...J]),()=>r0(...J),"number format",re=>Reflect.apply(re.n,re,[...J]),()=>_f,re=>ue(re))}function Et(J){return J.map(re=>ue(re)||wt(re)||Ue(re)?Lf(String(re)):re)}const qt={normalize:Et,interpolate:J=>J,type:"vnode"};function Sn(...J){return ve(re=>{let tt;const ft=re;try{ft.processor=qt,tt=Reflect.apply(Nf,null,[ft,...J])}finally{ft.processor=null}return tt},()=>t0(...J),"translate",re=>re[s0](...J),re=>[Lf(re)],re=>ut(re))}function ir(...J){return ve(re=>Reflect.apply(Of,null,[re,...J]),()=>r0(...J),"number format",re=>re[a0](...J),Rf,re=>ue(re)||ut(re))}function Er(...J){return ve(re=>Reflect.apply(Cf,null,[re,...J]),()=>n0(...J),"datetime format",re=>re[i0](...J),Rf,re=>ue(re)||ut(re))}function Tr(J){W=J,Y.pluralRules=W}function ar(J,re){return ve(()=>{if(!J)return!1;const tt=ue(re)?re:d.value,ft=An(tt),Ke=Y.messageResolver(ft,J);return u?Ke!=null:zn(Ke)||vn(Ke)||ue(Ke)},()=>[J],"translate exists",tt=>Reflect.apply(tt.te,tt,[J,re]),n5,tt=>Ue(tt))}function le(J){let re=null;const tt=jd(Y,p.value,d.value);for(let ft=0;ft<tt.length;ft++){const Ke=w.value[tt[ft]]||{},oe=Y.messageResolver(Ke,J);if(oe!=null){re=oe;break}}return re}function $e(J){const re=le(J);return re??(n?n.tm(J)||{}:{})}function An(J){return w.value[J]||{}}function Vn(J,re){if(i){const tt={[J]:re};for(const ft in tt)Cn(tt,ft)&&li(tt[ft]);re=tt[J]}w.value[J]=re,Y.messages=w.value}function Nr(J,re){w.value[J]=w.value[J]||{};const tt={[J]:re};if(i)for(const ft in tt)Cn(tt,ft)&&li(tt[ft]);re=tt[J],xa(re,w.value[J]),Y.messages=w.value}function Cr(J){return v.value[J]||{}}function $(J,re){v.value[J]=re,Y.datetimeFormats=v.value,If(Y,J,re)}function F(J,re){v.value[J]=Ht(v.value[J]||{},re),Y.datetimeFormats=v.value,If(Y,J,re)}function ee(J){return x.value[J]||{}}function we(J,re){x.value[J]=re,Y.numberFormats=x.value,Mf(Y,J,re)}function st(J,re){x.value[J]=Ht(x.value[J]||{},re),Y.numberFormats=x.value,Mf(Y,J,re)}Pf++,n&&Pa&&(Da(n.locale,J=>{h&&(d.value=J,Y.locale=J,Us(Y,d.value,p.value))}),Da(n.fallbackLocale,J=>{h&&(p.value=J,Y.fallbackLocale=J,Us(Y,d.value,p.value))}));const _e={id:Pf,locale:be,fallbackLocale:xe,get inheritLocale(){return h},set inheritLocale(J){h=J,J&&n&&(d.value=n.locale.value,p.value=n.fallbackLocale.value,Us(Y,d.value,p.value))},get availableLocales(){return Object.keys(w.value).sort()},messages:G,get modifiers(){return j},get pluralRules(){return W||{}},get isGlobal(){return s},get missingWarn(){return k},set missingWarn(J){k=J,Y.missingWarn=k},get fallbackWarn(){return A},set fallbackWarn(J){A=J,Y.fallbackWarn=A},get fallbackRoot(){return N},set fallbackRoot(J){N=J},get fallbackFormat(){return I},set fallbackFormat(J){I=J,Y.fallbackFormat=I},get warnHtmlMessage(){return B},set warnHtmlMessage(J){B=J,Y.warnHtmlMessage=J},get escapeParameter(){return P},set escapeParameter(J){P=J,Y.escapeParameter=J},t:U,getLocaleMessage:An,setLocaleMessage:Vn,mergeLocaleMessage:Nr,getPostTranslationHandler:ge,setPostTranslationHandler:te,getMissingHandler:Ae,setMissingHandler:Le,[s1]:Tr};return _e.datetimeFormats=he,_e.numberFormats=Q,_e.rt=ce,_e.te=ar,_e.tm=$e,_e.d=Ee,_e.n=et,_e.getDateTimeFormat=Cr,_e.setDateTimeFormat=$,_e.mergeDateTimeFormat=F,_e.getNumberFormat=ee,_e.setNumberFormat=we,_e.mergeNumberFormat=st,_e[i1]=r,_e[s0]=Sn,_e[i0]=Er,_e[a0]=ir,_e}function s5(e){const t=ue(e.locale)?e.locale:vs,n=ue(e.fallbackLocale)||ut(e.fallbackLocale)||Re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=lt(e.missing)?e.missing:void 0,s=Ue(e.silentTranslationWarn)||vr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=Ue(e.silentFallbackWarn)||vr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Ue(e.fallbackRoot)?e.fallbackRoot:!0,u=!!e.formatFallbackMessages,h=Re(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,p=lt(e.postTranslation)?e.postTranslation:void 0,w=ue(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,v=!!e.escapeParameterHtml,x=Ue(e.sync)?e.sync:!0;let k=e.messages;if(Re(e.sharedMessages)){const P=e.sharedMessages;k=Object.keys(P).reduce((W,Y)=>{const pe=W[Y]||(W[Y]={});return Ht(pe,P[Y]),W},k||{})}const{__i18n:A,__root:N,__injectWithOption:I}=e,V=e.datetimeFormats,D=e.numberFormats,M=e.flatJson,B=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:k,flatJson:M,datetimeFormats:V,numberFormats:D,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:u,modifiers:h,pluralRules:d,postTranslation:p,warnHtmlMessage:w,escapeParameter:v,messageResolver:e.messageResolver,inheritLocale:x,translateExistCompatible:B,__i18n:A,__root:N,__injectWithOption:I}}function l0(e={},t){{const n=W0(s5(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 Ue(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=Ue(i)?!i:i},get silentFallbackWarn(){return Ue(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=Ue(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,w=null;if(!ue(o))throw Ft(Mt.INVALID_ARGUMENT);const v=o;return ue(u)?d.locale=u:ut(u)?p=u:Re(u)&&(w=u),ut(h)?p=h:Re(h)&&(w=h),Reflect.apply(n.t,n,[v,p||w||{},d])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[o,u,h]=i,d={plural:1};let p=null,w=null;if(!ue(o))throw Ft(Mt.INVALID_ARGUMENT);const v=o;return ue(u)?d.locale=u:wt(u)?d.plural=u:ut(u)?p=u:Re(u)&&(w=u),ue(h)?d.locale=h:ut(h)?p=h:Re(h)&&(w=h),Reflect.apply(n.t,n,[v,p||w||{},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 G0={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function i5({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===ms?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},rt())}function l1(e){return ms}const a5=_r({name:"i18n-t",props:Ht({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wt(e)||!isNaN(e)}},G0),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||K0({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(w=>w!=="_"),o=rt();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=ue(e.plural)?+e.plural:e.plural);const u=i5(t,i),h=s[s0](e.keypath,u,o),d=Ht(rt(),r),p=ue(e.tag)||Je(e.tag)?e.tag:l1();return Ad(p,d,h)}}}),Bf=a5;function o5(e){return ut(e)&&!ue(e[0])}function c1(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let u=rt();e.locale&&(o.locale=e.locale),ue(e.format)?o.key=e.format:Je(e.format)&&(ue(e.format.key)&&(o.key=e.format.key),u=Object.keys(e.format).reduce((v,x)=>n.includes(x)?Ht(rt(),v,{[x]:e.format[x]}):v,rt()));const h=r(e.value,o,u);let d=[o.key];ut(h)?d=h.map((v,x)=>{const k=s[v.type],A=k?k({[v.type]:v.value,index:x,parts:h}):[v.value];return o5(A)&&(A[0].key=`${v.type}-${x}`),A}):ue(h)&&(d=[h]);const p=Ht(rt(),i),w=ue(e.tag)||Je(e.tag)?e.tag:l1();return Ad(w,p,d)}}const l5=_r({name:"i18n-n",props:Ht({value:{type:Number,required:!0},format:{type:[String,Object]}},G0),setup(e,t){const n=e.i18n||K0({useScope:e.scope,__useComponent:!0});return c1(e,t,n1,(...r)=>n[a0](...r))}}),Ff=l5,c5=_r({name:"i18n-d",props:Ht({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},G0),setup(e,t){const n=e.i18n||K0({useScope:e.scope,__useComponent:!0});return c1(e,t,t1,(...r)=>n[i0](...r))}}),zf=c5;function u5(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 f5(e){const t=o=>{const{instance:u,modifiers:h,value:d}=o;if(!u||!u.$)throw Ft(Mt.UNEXPECTED_ERROR);const p=u5(e,u.$),w=qf(d);return[Reflect.apply(p.t,p,[...Uf(w)]),p]};return{created:(o,u)=>{const[h,d]=t(u);Pa&&e.global===d&&(o.__i18nWatcher=Da(d.locale,()=>{u.instance&&u.instance.$forceUpdate()})),o.__composer=d,o.textContent=h},unmounted:o=>{Pa&&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,[...Uf(d)])}},getSSRProps:o=>{const[u]=t(o);return{textContent:u}}}}function qf(e){if(ue(e))return{path:e};if(Re(e)){if(!("path"in e))throw Ft(Mt.REQUIRED_VALUE,"path");return e}else throw Ft(Mt.INVALID_VALUE)}function Uf(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},u=r||{};return ue(n)&&(o.locale=n),wt(s)&&(o.plural=s),wt(i)&&(o.plural=i),[t,u,o]}function h5(e,t,...n){const r=Re(n[0])?n[0]:{},s=!!r.useI18nComponentName;(Ue(r.globalInstall)?r.globalInstall:!0)&&([s?"i18n":Bf.name,"I18nT"].forEach(o=>e.component(o,Bf)),[Ff.name,"I18nN"].forEach(o=>e.component(o,Ff)),[zf.name,"I18nD"].forEach(o=>e.component(o,zf))),e.directive("t",f5(t))}function d5(e,t,n){return{beforeCreate(){const r=ii();if(!r)throw Ft(Mt.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=Hf(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=l0(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Hf(e,s);else{this.$i18n=l0({__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&&o1(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=ii();if(!r)throw Ft(Mt.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 Hf(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[s1](t.pluralizationRules||e.pluralizationRules);const n=oo(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 m5=xr("global-vue-i18n");function p5(e={},t){const n=__VUE_I18N_LEGACY_API__&&Ue(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Ue(e.globalInjection)?e.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[o,u]=g5(e,n),h=xr("");function d(v){return i.get(v)||null}function p(v,x){i.set(v,x)}function w(v){i.delete(v)}{const v={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(x,...k){if(x.__VUE_I18N_SYMBOL__=h,x.provide(x.__VUE_I18N_SYMBOL__,v),Re(k[0])){const I=k[0];v.__composerExtend=I.__composerExtend,v.__vueI18nExtend=I.__vueI18nExtend}let A=null;!n&&r&&(A=A5(x,v.global)),__VUE_I18N_FULL_INSTALL__&&h5(x,v,...k),__VUE_I18N_LEGACY_API__&&n&&x.mixin(d5(u,u.__composer,v));const N=x.unmount;x.unmount=()=>{A&&A(),v.dispose(),N()}},get global(){return u},dispose(){o.stop()},__instances:i,__getInstance:d,__setInstance:p,__deleteInstance:w};return v}}function K0(e={}){const t=ii();if(t==null)throw Ft(Mt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ft(Mt.NOT_INSTALLED);const n=b5(t),r=w5(n),s=a1(t),i=y5(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Ft(Mt.NOT_AVAILABLE_IN_LEGACY_MODE);return k5(t,i,r,e)}if(i==="global")return o1(r,e,s),r;if(i==="parent"){let h=v5(n,t,e.__useComponent);return h==null&&(h=r),h}const o=n;let u=o.__getInstance(t);if(u==null){const h=Ht({},e);"__i18n"in s&&(h.__i18n=s.__i18n),r&&(h.__root=r),u=W0(h),o.__composerExtend&&(u[o0]=o.__composerExtend(u)),x5(o,t,u),o.__setInstance(t,u)}return u}function g5(e,t,n){const r=ng();{const s=__VUE_I18N_LEGACY_API__&&t?r.run(()=>l0(e)):r.run(()=>W0(e));if(s==null)throw Ft(Mt.UNEXPECTED_ERROR);return[r,s]}}function b5(e){{const t=rg(e.isCE?m5:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ft(e.isCE?Mt.NOT_INSTALLED_WITH_PROVIDE:Mt.UNEXPECTED_ERROR);return t}}function y5(e,t){return so(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function w5(e){return e.mode==="composition"?e.global:e.global.__composer}function v5(e,t,n=!1){let r=null;const s=t.root;let i=_5(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[i1]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function _5(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function x5(e,t,n){Ed(()=>{},t),Td(()=>{const r=n;e.__deleteInstance(t);const s=r[o0];s&&(s(),delete r[o0])},t)}function k5(e,t,n,r={}){const s=t==="local",i=Sd(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Ft(Mt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Ue(r.inheritLocale)?r.inheritLocale:!ue(r.locale),u=$t(!s||o?n.locale.value:ue(r.locale)?r.locale:vs),h=$t(!s||o?n.fallbackLocale.value:ue(r.fallbackLocale)||ut(r.fallbackLocale)||Re(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:u.value),d=$t(oo(u.value,r)),p=$t(Re(r.datetimeFormats)?r.datetimeFormats:{[u.value]:{}}),w=$t(Re(r.numberFormats)?r.numberFormats:{[u.value]:{}}),v=s?n.missingWarn:Ue(r.missingWarn)||vr(r.missingWarn)?r.missingWarn:!0,x=s?n.fallbackWarn:Ue(r.fallbackWarn)||vr(r.fallbackWarn)?r.fallbackWarn:!0,k=s?n.fallbackRoot:Ue(r.fallbackRoot)?r.fallbackRoot:!0,A=!!r.fallbackFormat,N=lt(r.missing)?r.missing:null,I=lt(r.postTranslation)?r.postTranslation:null,V=s?n.warnHtmlMessage:Ue(r.warnHtmlMessage)?r.warnHtmlMessage:!0,D=!!r.escapeParameter,M=s?n.modifiers:Re(r.modifiers)?r.modifiers:{},B=r.pluralRules||s&&n.pluralRules;function P(){return[u.value,h.value,d.value,p.value,w.value]}const j=Qt({get:()=>i.value?i.value.locale.value:u.value,set:le=>{i.value&&(i.value.locale.value=le),u.value=le}}),W=Qt({get:()=>i.value?i.value.fallbackLocale.value:h.value,set:le=>{i.value&&(i.value.fallbackLocale.value=le),h.value=le}}),Y=Qt(()=>i.value?i.value.messages.value:d.value),pe=Qt(()=>p.value),Me=Qt(()=>w.value);function be(){return i.value?i.value.getPostTranslationHandler():I}function xe(le){i.value&&i.value.setPostTranslationHandler(le)}function G(){return i.value?i.value.getMissingHandler():N}function he(le){i.value&&i.value.setMissingHandler(le)}function Q(le){return P(),le()}function ge(...le){return i.value?Q(()=>Reflect.apply(i.value.t,null,[...le])):Q(()=>"")}function te(...le){return i.value?Reflect.apply(i.value.rt,null,[...le]):""}function Ae(...le){return i.value?Q(()=>Reflect.apply(i.value.d,null,[...le])):Q(()=>"")}function Le(...le){return i.value?Q(()=>Reflect.apply(i.value.n,null,[...le])):Q(()=>"")}function ve(le){return i.value?i.value.tm(le):{}}function U(le,$e){return i.value?i.value.te(le,$e):!1}function ce(le){return i.value?i.value.getLocaleMessage(le):{}}function Ee(le,$e){i.value&&(i.value.setLocaleMessage(le,$e),d.value[le]=$e)}function et(le,$e){i.value&&i.value.mergeLocaleMessage(le,$e)}function Et(le){return i.value?i.value.getDateTimeFormat(le):{}}function Lt(le,$e){i.value&&(i.value.setDateTimeFormat(le,$e),p.value[le]=$e)}function qt(le,$e){i.value&&i.value.mergeDateTimeFormat(le,$e)}function Sn(le){return i.value?i.value.getNumberFormat(le):{}}function ir(le,$e){i.value&&(i.value.setNumberFormat(le,$e),w.value[le]=$e)}function Er(le,$e){i.value&&i.value.mergeNumberFormat(le,$e)}const Tr={get id(){return i.value?i.value.id:-1},locale:j,fallbackLocale:W,messages:Y,datetimeFormats:pe,numberFormats:Me,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(le){i.value&&(i.value.inheritLocale=le)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:M},get pluralRules(){return i.value?i.value.pluralRules:B},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(le){i.value&&(i.value.missingWarn=le)},get fallbackWarn(){return i.value?i.value.fallbackWarn:x},set fallbackWarn(le){i.value&&(i.value.missingWarn=le)},get fallbackRoot(){return i.value?i.value.fallbackRoot:k},set fallbackRoot(le){i.value&&(i.value.fallbackRoot=le)},get fallbackFormat(){return i.value?i.value.fallbackFormat:A},set fallbackFormat(le){i.value&&(i.value.fallbackFormat=le)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:V},set warnHtmlMessage(le){i.value&&(i.value.warnHtmlMessage=le)},get escapeParameter(){return i.value?i.value.escapeParameter:D},set escapeParameter(le){i.value&&(i.value.escapeParameter=le)},t:ge,getPostTranslationHandler:be,setPostTranslationHandler:xe,getMissingHandler:G,setMissingHandler:he,rt:te,d:Ae,n:Le,tm:ve,te:U,getLocaleMessage:ce,setLocaleMessage:Ee,mergeLocaleMessage:et,getDateTimeFormat:Et,setDateTimeFormat:Lt,mergeDateTimeFormat:qt,getNumberFormat:Sn,setNumberFormat:ir,mergeNumberFormat:Er};function ar(le){le.locale.value=u.value,le.fallbackLocale.value=h.value,Object.keys(d.value).forEach($e=>{le.mergeLocaleMessage($e,d.value[$e])}),Object.keys(p.value).forEach($e=>{le.mergeDateTimeFormat($e,p.value[$e])}),Object.keys(w.value).forEach($e=>{le.mergeNumberFormat($e,w.value[$e])}),le.escapeParameter=D,le.fallbackFormat=A,le.fallbackRoot=k,le.fallbackWarn=x,le.missingWarn=v,le.warnHtmlMessage=V}return sg(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Ft(Mt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const le=i.value=e.proxy.$i18n.__composer;t==="global"?(u.value=le.locale.value,h.value=le.fallbackLocale.value,d.value=le.messages.value,p.value=le.datetimeFormats.value,w.value=le.numberFormats.value):s&&ar(le)}),Tr}const S5=["locale","fallbackLocale","availableLocales"],Vf=["t","rt","d","n","tm","te"];function A5(e,t){const n=Object.create(null);return S5.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Ft(Mt.UNEXPECTED_ERROR);const o=kd(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,Vf.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Ft(Mt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,Vf.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}e5();__INTLIFY_JIT_COMPILATION__?kf(K2):kf(G2);B2(y2);F2(jd);if(__INTLIFY_PROD_DEVTOOLS__){const e=Zn();e.__INTLIFY__=!0,T2(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const E5={class:"config-panel"},T5={class:"panel-title"},N5={class:"form-item-description"},C5={class:"form-item-description"},I5={class:"section-title"},O5={class:"form-item-description"},M5={class:"form-item-description"},L5={class:"form-item-description"},D5={class:"form-item-description"},R5=_r({__name:"ConfigPanel",props:{modelValue:{},backendOptions:{},languageOptions:{}},emits:["update:modelValue","backendChange"],setup(e,{emit:t}){const n=e,r=t,s=Qt({get:()=>n.modelValue,set:w=>r("update:modelValue",w)}),i=Qt(()=>n.modelValue.backend.includes("http-client")),o=Qt(()=>n.modelValue.backend.startsWith("vlm")),u=w=>{r("backendChange",w)},h=w=>w.startsWith("vlm")?"启用行间公式识别":w==="pipeline"?"启用公式识别":w.startsWith("hybrid")?"启用行内公式识别":"启用公式识别",d=w=>w.startsWith("vlm")?"禁用后,行间公式将显示为图片。":w==="pipeline"?"禁用后,行间公式将显示为图片,行内公式将不会被检测或解析。":w.startsWith("hybrid")?"禁用后,行内公式将不会被检测或解析。":"",p=w=>({pipeline:"传统多模型管道解析,支持多语言,无幻觉。","vlm-auto-engine":"多模态大模型高精度解析,仅支持中英文文档。","hybrid-auto-engine":"高精度混合解析,支持多语言。","vlm-http-client":"多模态大模型高精度解析,通过远程服务器处理。","hybrid-http-client":"高精度混合解析,通过远程服务器处理。"})[w]||"选择文档解析的后端引擎。";return(w,v)=>{const x=Pt("el-slider"),k=Pt("el-form-item"),A=Pt("el-option"),N=Pt("el-select"),I=Pt("el-input"),V=Pt("el-checkbox"),D=Pt("el-form");return gt(),It("div",E5,[ze("h3",T5,dn(w.$t("config.title")),1),Ne(D,{model:s.value,"label-position":"top","label-width":"120px",class:"config-form"},{default:Ge(()=>[Ne(k,{label:w.$t("config.maxPages"),class:"form-item"},{default:Ge(()=>[Ne(x,{modelValue:s.value.maxPages,"onUpdate:modelValue":v[0]||(v[0]=M=>s.value.maxPages=M),min:1,max:1e3,"show-input":"",class:"slider"},null,8,["modelValue"])]),_:1},8,["label"]),Ne(k,{label:w.$t("config.backend"),class:"form-item"},{default:Ge(()=>[Ne(N,{modelValue:s.value.backend,"onUpdate:modelValue":v[1]||(v[1]=M=>s.value.backend=M),style:{width:"100%"},onChange:u,class:"select"},{default:Ge(()=>[(gt(!0),It(ms,null,Jl(e.backendOptions,M=>(gt(),vl(A,{key:M.value,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),ze("div",N5,dn(p(s.value.backend)),1)]),_:1},8,["label"]),i.value?(gt(),vl(k,{key:0,label:w.$t("config.serverUrl"),class:"form-item"},{default:Ge(()=>[Ne(I,{modelValue:s.value.serverUrl,"onUpdate:modelValue":v[2]||(v[2]=M=>s.value.serverUrl=M),placeholder:"http://localhost:30000",class:"input"},null,8,["modelValue"]),ze("div",C5,dn(w.$t("config.serverUrlInfo")),1)]),_:1},8,["label"])):Ra("",!0),v[8]||(v[8]=ze("div",{class:"divider"},null,-1)),ze("div",I5,dn(w.$t("config.recognitionOptions")),1),Ne(k,{class:"form-item"},{default:Ge(()=>[Ne(V,{modelValue:s.value.tableEnable,"onUpdate:modelValue":v[3]||(v[3]=M=>s.value.tableEnable=M),class:"checkbox"},{default:Ge(()=>[gr(dn(w.$t("config.tableEnable")),1)]),_:1},8,["modelValue"]),ze("div",O5,dn(w.$t("config.tableInfo")),1)]),_:1}),Ne(k,{class:"form-item"},{default:Ge(()=>[Ne(V,{modelValue:s.value.formulaEnable,"onUpdate:modelValue":v[4]||(v[4]=M=>s.value.formulaEnable=M),class:"checkbox"},{default:Ge(()=>[gr(dn(h(s.value.backend)),1)]),_:1},8,["modelValue"]),ze("div",M5,dn(d(s.value.backend)),1)]),_:1}),o.value?Ra("",!0):(gt(),It(ms,{key:1},[v[7]||(v[7]=ze("div",{class:"divider"},null,-1)),Ne(k,{label:w.$t("config.ocrLanguage"),class:"form-item"},{default:Ge(()=>[Ne(N,{modelValue:s.value.language,"onUpdate:modelValue":v[5]||(v[5]=M=>s.value.language=M),style:{width:"100%"},class:"select"},{default:Ge(()=>[(gt(!0),It(ms,null,Jl(e.languageOptions,M=>(gt(),vl(A,{key:M.value,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),ze("div",L5,dn(w.$t("config.ocrLanguageInfo")),1)]),_:1},8,["label"]),Ne(k,{class:"form-item"},{default:Ge(()=>[Ne(V,{modelValue:s.value.forceOcr,"onUpdate:modelValue":v[6]||(v[6]=M=>s.value.forceOcr=M),class:"checkbox"},{default:Ge(()=>[gr(dn(w.$t("config.forceOcr")),1)]),_:1},8,["modelValue"]),ze("div",D5,dn(w.$t("config.forceOcrInfo")),1)]),_:1})],64))]),_:1},8,["model"])])}}}),lo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},P5=lo(R5,[["__scopeId","data-v-ea8390cb"]]),$5={class:"markdown-renderer"},B5=["innerHTML"],F5={key:1,class:"empty-state"},z5=_r({__name:"MarkdownRenderer",props:{content:{type:String,default:""}},setup(e){const t=e,n=new Cd({html:!0,linkify:!0,typographer:!0,breaks:!0});n.use(function(s){s.inline.ruler.after("escape","math_inline",function(i,o){let u=i.pos;if(i.src.charCodeAt(u)!==36||i.src.charCodeAt(u+1)!==36)return!1;let h=u+2,d=!1;for(;h<i.posMax;){if(i.src.charCodeAt(h)===36&&i.src.charCodeAt(h+1)===36){d=!0;break}h++}if(!d)return!1;if(!o){const p=i.push("math_inline","span",0);p.content=i.src.slice(u+2,h),p.markup="$$"}return i.pos=h+2,!0}),s.inline.ruler.after("escape","math_inline_single",function(i,o){let u=i.pos;if(i.src.charCodeAt(u)!==36||i.src.charCodeAt(u+1)===36)return!1;let h=u+1,d=!1;for(;h<i.posMax;){if(i.src.charCodeAt(h)===36){d=!0;break}h++}if(!d)return!1;if(!o){const p=i.push("math_inline_single","span",0);p.content=i.src.slice(u+1,h),p.markup="$"}return i.pos=h+1,!0})}),n.renderer.rules.math_inline=function(s,i){return`<span class="math-inline">$$${s[i].content}$$</span>`},n.renderer.rules.math_inline_single=function(s,i){return`<span class="math-inline">$${s[i].content}$</span>`};const r=Qt(()=>t.content?n.render(t.content):"");return(s,i)=>{const o=Pt("el-empty");return gt(),It("div",$5,[e.content?(gt(),It("div",{key:0,class:"markdown-content",innerHTML:r.value},null,8,B5)):(gt(),It("div",F5,[Ne(o,{description:s.$t("results.noResults")},null,8,["description"])]))])}}}),q5=lo(z5,[["__scopeId","data-v-38a7633c"]]),U5="npm2url/dist/index.cjs",H5={jsdelivr:e=>`https://cdn.jsdelivr.net/npm/${e}`,unpkg:e=>`https://unpkg.com/${e}`};async function V5(e,t){const n=await fetch(e,{signal:t});if(!n.ok)throw n;await n.text()}class j5{constructor(){this.providers={...H5},this.provider="jsdelivr"}async getFastestProvider(t=5e3,n=U5){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 V5(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 Ks{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 W5=Math.random().toString(36).slice(2,8);let jf=0;function G5(){return jf+=1,`mm-${W5}-${jf}`}function us(){}function Xs(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 K5(e,...t){const n=(e||"").split(" ").filter(Boolean);return t.forEach(r=>{r&&n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function Wf(e,t){return(...n)=>t(e,...n)}function u1(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function X5(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 Y5(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 f1=1,h1=2,J5="http://www.w3.org/2000/svg",Sl="http://www.w3.org/1999/xlink",Q5={show:Sl,actuate:Sl,href:Sl},Z5=e=>typeof e=="string"||typeof e=="number",e3=e=>(e==null?void 0:e.vtype)===f1,t3=e=>(e==null?void 0:e.vtype)===h1;function n3(e,t,...n){return t=Object.assign({},t,{children:n.length===1?n[0]:n}),r3(e,t)}function r3(e,t){let n;if(typeof e=="string")n=f1;else if(typeof e=="function")n=h1;else throw new Error("Invalid VNode type");return{vtype:n,type:e,props:t}}function s3(e){return e.children}const i3={isSvg:!1};function Gf(e,t){Array.isArray(t)||(t=[t]),t=t.filter(Boolean),t.length&&e.append(...t)}function a3(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]:l3(e,r,t[r],n.isSvg)}const o3={className:"class",labelFor:"for"};function l3(e,t,n,r){if(t=o3[t]||t,n===!0)e.setAttribute(t,"");else if(n===!1)e.removeAttribute(t);else{const s=r?Q5[t]:void 0;s!==void 0?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}}function c3(e){return e.reduce((t,n)=>t.concat(n),[])}function c0(e,t){return Array.isArray(e)?c3(e.map(n=>c0(n,t))):X0(e,t)}function X0(e,t=i3){if(e==null||typeof e=="boolean")return null;if(e instanceof Node)return e;if(t3(e)){const{type:n,props:r}=e;if(n===s3){const i=document.createDocumentFragment();if(r.children){const o=c0(r.children,t);Gf(i,o)}return i}const s=n(r);return X0(s,t)}if(Z5(e))return document.createTextNode(`${e}`);if(e3(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(J5,r):n=document.createElement(r),a3(n,s,t),s.children){let o=t;t.isSvg&&r==="foreignObject"&&(o=Object.assign({},o,{isSvg:!1}));const u=c0(s.children,o);u!=null&&Gf(n,u)}const{ref:i}=s;return typeof i=="function"&&i(n),n}throw new Error("mount: Invalid Vnode!")}function u3(e){return X0(e)}function Ba(...e){return u3(n3(...e))}const f3=X5(e=>{document.head.append(Ba("link",{rel:"preload",as:"script",href:e}))}),Kf={},Xf={};async function h3(e,t){var n;const r=e.type==="script"&&((n=e.data)==null?void 0:n.src)||"";if(e.loaded||(e.loaded=Kf[r]),!e.loaded){const s=u1();if(e.loaded=s.promise,e.type==="script"&&(document.head.append(Ba("script",{...e.data,onLoad:()=>s.resolve(),onError:s.reject})),r?Kf[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 d3(e){const t=e.type==="stylesheet"&&e.data.href||"";if(e.loaded||(e.loaded=Xf[t]),!e.loaded){const n=u1();e.loaded=n.promise,t&&(Xf[t]=e.loaded),e.type==="style"?(document.head.append(Ba("style",{textContent:e.data})),n.resolve()):t&&(document.head.append(Ba("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 Y0(e,t){e.forEach(n=>{var r;n.type==="script"&&((r=n.data)!=null&&r.src)&&f3(n.data.src)}),t={getMarkmap:()=>window.markmap,...t};for(const n of e)await h3(n,t)}async function m3(e){await Promise.all(e.map(t=>d3(t)))}function J0(e){return{type:"script",data:{src:e}}}function d1(e){return{type:"stylesheet",data:{href:e}}}const p3={_useHtmlParser2:!1};function u0(e,t){if(!e)return t??p3;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 Qe;(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"})(Qe||(Qe={}));function g3(e){return e.type===Qe.Tag||e.type===Qe.Script||e.type===Qe.Style}const b3=Qe.Root,y3=Qe.Text,w3=Qe.Directive,v3=Qe.Comment,_3=Qe.Script,x3=Qe.Style,k3=Qe.Tag,S3=Qe.CDATA,A3=Qe.Doctype;let m1=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 ui(this,t)}};class Q0 extends m1{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class Fa extends Q0{constructor(){super(...arguments),this.type=Qe.Text}get nodeType(){return 3}}class p1 extends Q0{constructor(){super(...arguments),this.type=Qe.Comment}get nodeType(){return 8}}class g1 extends Q0{constructor(t,n){super(n),this.name=t,this.type=Qe.Directive}get nodeType(){return 1}}class Z0 extends m1{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 b1 extends Z0{constructor(){super(...arguments),this.type=Qe.CDATA}get nodeType(){return 4}}let ci=class extends Z0{constructor(){super(...arguments),this.type=Qe.Root}get nodeType(){return 9}};class y1 extends Z0{constructor(t,n,r=[],s=t==="script"?Qe.Script:t==="style"?Qe.Style:Qe.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 De(e){return g3(e)}function co(e){return e.type===Qe.CDATA}function jr(e){return e.type===Qe.Text}function ec(e){return e.type===Qe.Comment}function E3(e){return e.type===Qe.Directive}function Yr(e){return e.type===Qe.Root}function zt(e){return Object.prototype.hasOwnProperty.call(e,"children")}function ui(e,t=!1){let n;if(jr(e))n=new Fa(e.data);else if(ec(e))n=new p1(e.data);else if(De(e)){const r=t?Al(e.children):[],s=new y1(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(co(e)){const r=t?Al(e.children):[],s=new b1(r);r.forEach(i=>i.parent=s),n=s}else if(Yr(e)){const r=t?Al(e.children):[],s=new ci(r);r.forEach(i=>i.parent=s),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(E3(e)){const r=new g1(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 Al(e){const t=e.map(n=>ui(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 Yf={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class T3{constructor(t,n,r){this.dom=[],this.root=new ci(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(r=n,n=Yf),typeof t=="object"&&(n=t,t=void 0),this.callback=t??null,this.options=n??Yf,this.elementCB=r??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new ci(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?Qe.Tag:void 0,s=new y1(t,n,void 0,r);this.addNode(s),this.tagStack.push(s)}ontext(t){const{lastNode:n}=this;if(n&&n.type===Qe.Text)n.data+=t,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{const r=new Fa(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===Qe.Comment){this.lastNode.data+=t;return}const n=new p1(t);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){const t=new Fa(""),n=new b1([t]);this.addNode(n),t.parent=n,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,n){const r=new g1(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 w1=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))),v1=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var El;const N3=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]]),f0=(El=String.fromCodePoint)!==null&&El!==void 0?El: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 C3(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=N3.get(e))!==null&&t!==void 0?t:e}var Bt;(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"})(Bt||(Bt={}));const I3=32;var br;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(br||(br={}));function h0(e){return e>=Bt.ZERO&&e<=Bt.NINE}function O3(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_F||e>=Bt.LOWER_A&&e<=Bt.LOWER_F}function M3(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_Z||e>=Bt.LOWER_A&&e<=Bt.LOWER_Z||h0(e)}function L3(e){return e===Bt.EQUALS||M3(e)}var Rt;(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"})(Rt||(Rt={}));var $n;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})($n||($n={}));class _1{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Rt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=$n.Strict}startEntity(t){this.decodeMode=t,this.state=Rt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Rt.EntityStart:return t.charCodeAt(n)===Bt.NUM?(this.state=Rt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Rt.NamedEntity,this.stateNamedEntity(t,n));case Rt.NumericStart:return this.stateNumericStart(t,n);case Rt.NumericDecimal:return this.stateNumericDecimal(t,n);case Rt.NumericHex:return this.stateNumericHex(t,n);case Rt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|I3)===Bt.LOWER_X?(this.state=Rt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Rt.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(h0(s)||O3(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(h0(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===Bt.SEMI)this.consumed+=1;else if(this.decodeMode===$n.Strict)return 0;return this.emitCodePoint(C3(this.result),this.consumed),this.errors&&(t!==Bt.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&br.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=D3(r,s,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===$n.Attribute&&(i===0||L3(o))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],i=(s&br.VALUE_LENGTH)>>14,i!==0){if(o===Bt.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==$n.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]&br.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]&~br.VALUE_LENGTH:s[t+1],r),n===3&&this.emitCodePoint(s[t+2],r),r}end(){var t;switch(this.state){case Rt.NamedEntity:return this.result!==0&&(this.decodeMode!==$n.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Rt.NumericDecimal:return this.emitNumericEntity(0,2);case Rt.NumericHex:return this.emitNumericEntity(0,3);case Rt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Rt.EntityStart:return 0}}}function x1(e){let t="";const n=new _1(e,r=>t+=f0(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 D3(e,t,n,r){const s=(t&br.BRANCH_LENGTH)>>7,i=t&br.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}x1(w1);x1(v1);const Jf=/["&'<>$\x80-\uFFFF]/g,R3=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),P3=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 k1(e){let t="",n=0,r;for(;(r=Jf.exec(e))!==null;){const s=r.index,i=e.charCodeAt(s),o=R3.get(i);o!==void 0?(t+=e.substring(n,s)+o,n=s+1):(t+=`${e.substring(n,s)}&#x${P3(e,s).toString(16)};`,n=Jf.lastIndex+=+((i&64512)===55296))}return t+e.substr(n)}function S1(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 $3=S1(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),B3=S1(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),F3=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])),z3=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])),q3=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function U3(e){return e.replace(/"/g,""")}function H3(e,t){var n;if(!e)return;const r=((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)===!1?U3:t.xmlMode||t.encodeEntities!=="utf8"?k1:$3;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=z3.get(s))!==null&&o!==void 0?o:s),!t.emptyAttrs&&!t.xmlMode&&u===""?s:`${s}="${r(u)}"`}).join(" ")}const Qf=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function uo(e,t={}){const n="length"in e?e:[e];let r="";for(let s=0;s<n.length;s++)r+=V3(n[s],t);return r}function V3(e,t){switch(e.type){case b3:return uo(e.children,t);case A3:case w3:return K3(e);case v3:return J3(e);case S3:return Y3(e);case _3:case x3:case k3:return G3(e,t);case y3:return X3(e,t)}}const j3=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),W3=new Set(["svg","math"]);function G3(e,t){var n;t.xmlMode==="foreign"&&(e.name=(n=F3.get(e.name))!==null&&n!==void 0?n:e.name,e.parent&&j3.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&W3.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const s=H3(e.attribs,t);return s&&(r+=` ${s}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Qf.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=uo(e.children,t)),(t.xmlMode||!Qf.has(e.name))&&(r+=`</${e.name}>`)),r}function K3(e){return`<${e.data}>`}function X3(e,t){var n;let r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&q3.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?k1(r):B3(r)),r}function Y3(e){return`<![CDATA[${e.children[0].data}]]>`}function J3(e){return`<!--${e.data}-->`}function A1(e,t){return uo(e,t)}function Q3(e,t){return zt(e)?e.children.map(n=>A1(n,t)).join(""):""}function ka(e){return Array.isArray(e)?e.map(ka).join(""):De(e)?e.name==="br"?`
|
||
`:ka(e.children):co(e)?ka(e.children):jr(e)?e.data:""}function _s(e){return Array.isArray(e)?e.map(_s).join(""):zt(e)&&!ec(e)?_s(e.children):jr(e)?e.data:""}function za(e){return Array.isArray(e)?e.map(za).join(""):zt(e)&&(e.type===Qe.Tag||co(e))?za(e.children):jr(e)?e.data:""}function fo(e){return zt(e)?e.children:[]}function E1(e){return e.parent||null}function T1(e){const t=E1(e);if(t!=null)return fo(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 Z3(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}function e6(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function t6(e){return e.name}function tc(e){let{next:t}=e;for(;t!==null&&!De(t);)({next:t}=t);return t}function nc(e){let{prev:t}=e;for(;t!==null&&!De(t);)({prev:t}=t);return t}function Jr(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 r6(e,t){if(Jr(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 s6(e,t){Jr(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 i6(e,t){if(Jr(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 a6(e,t){Jr(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 ho(e,t,n=!0,r=1/0){return rc(e,Array.isArray(t)?t:[t],n,r)}function rc(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&&zt(u)&&u.children.length>0&&(o.unshift(0),i.unshift(u.children))}}function o6(e,t){return t.find(e)}function sc(e,t,n=!0){let r=null;for(let s=0;s<t.length&&!r;s++){const i=t[s];if(De(i))e(i)?r=i:n&&i.children.length>0&&(r=sc(e,i.children,!0));else continue}return r}function N1(e,t){return t.some(n=>De(n)&&(e(n)||N1(e,n.children)))}function l6(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]++];De(i)&&(e(i)&&n.push(i),i.children.length>0&&(s.unshift(0),r.unshift(i.children)))}}const qa={tag_name(e){return typeof e=="function"?t=>De(t)&&e(t.name):e==="*"?De:t=>De(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=>jr(t)&&e(t.data):t=>jr(t)&&t.data===e}};function C1(e,t){return typeof t=="function"?n=>De(n)&&t(n.attribs[e]):n=>De(n)&&n.attribs[e]===t}function c6(e,t){return n=>e(n)||t(n)}function I1(e){const t=Object.keys(e).map(n=>{const r=e[n];return Object.prototype.hasOwnProperty.call(qa,n)?qa[n](r):C1(n,r)});return t.length===0?null:t.reduce(c6)}function u6(e,t){const n=I1(e);return n?n(t):!0}function f6(e,t,n,r=1/0){const s=I1(e);return s?ho(s,t,n,r):[]}function h6(e,t,n=!0){return Array.isArray(t)||(t=[t]),sc(C1("id",e),t,n)}function Ns(e,t,n=!0,r=1/0){return ho(qa.tag_name(e),t,n,r)}function d6(e,t,n=!0,r=1/0){return ho(qa.tag_type(e),t,n,r)}function m6(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 wn;(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"})(wn||(wn={}));function O1(e,t){const n=[],r=[];if(e===t)return 0;let s=zt(e)?e:e.parent;for(;s;)n.unshift(s),s=s.parent;for(s=zt(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 wn.DISCONNECTED;const u=n[o-1],h=u.children,d=n[o],p=r[o];return h.indexOf(d)>h.indexOf(p)?u===t?wn.FOLLOWING|wn.CONTAINED_BY:wn.FOLLOWING:u===e?wn.PRECEDING|wn.CONTAINS:wn.PRECEDING}function Cs(e){return e=e.filter((t,n,r)=>!r.includes(t,n+1)),e.sort((t,n)=>{const r=O1(t,n);return r&wn.PRECEDING?-1:r&wn.FOLLOWING?1:0}),e}function p6(e){const t=Ua(v6,e);return t?t.name==="feed"?g6(t):b6(t):null}function g6(e){var t;const n=e.children,r={type:"atom",items:Ns("entry",n).map(o=>{var u;const{children:h}=o,d={media:M1(h)};sn(d,"id","id",h),sn(d,"title","title",h);const p=(u=Ua("link",h))===null||u===void 0?void 0:u.attribs.href;p&&(d.link=p);const w=yr("summary",h)||yr("content",h);w&&(d.description=w);const v=yr("updated",h);return v&&(d.pubDate=new Date(v)),d})};sn(r,"id","id",n),sn(r,"title","title",n);const s=(t=Ua("link",n))===null||t===void 0?void 0:t.attribs.href;s&&(r.link=s),sn(r,"description","subtitle",n);const i=yr("updated",n);return i&&(r.updated=new Date(i)),sn(r,"author","email",n,!0),r}function b6(e){var t,n;const r=(n=(t=Ua("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:Ns("item",e.children).map(o=>{const{children:u}=o,h={media:M1(u)};sn(h,"id","guid",u),sn(h,"title","title",u),sn(h,"link","link",u),sn(h,"description","description",u);const d=yr("pubDate",u)||yr("dc:date",u);return d&&(h.pubDate=new Date(d)),h})};sn(s,"title","title",r),sn(s,"link","link",r),sn(s,"description","description",r);const i=yr("lastBuildDate",r);return i&&(s.updated=new Date(i)),sn(s,"author","managingEditor",r,!0),s}const y6=["url","type","lang"],w6=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function M1(e){return Ns("media:content",e).map(t=>{const{attribs:n}=t,r={medium:n.medium,isDefault:!!n.isDefault};for(const s of y6)n[s]&&(r[s]=n[s]);for(const s of w6)n[s]&&(r[s]=parseInt(n[s],10));return n.expression&&(r.expression=n.expression),r})}function Ua(e,t){return Ns(e,t,!0,1)[0]}function yr(e,t,n=!1){return _s(Ns(e,t,n,1)).trim()}function sn(e,t,n,r,s=!1){const i=yr(n,r,s);i&&(e[t]=i)}function v6(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const mo=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return wn},append:s6,appendChild:r6,compareDocumentPosition:O1,existsOne:N1,filter:ho,find:rc,findAll:l6,findOne:sc,findOneChild:o6,getAttributeValue:Z3,getChildren:fo,getElementById:h6,getElements:f6,getElementsByTagName:Ns,getElementsByTagType:d6,getFeed:p6,getInnerHTML:Q3,getName:t6,getOuterHTML:A1,getParent:E1,getSiblings:T1,getText:ka,hasAttrib:e6,hasChildren:zt,innerText:za,isCDATA:co,isComment:ec,isDocument:Yr,isTag:De,isText:jr,nextElementSibling:tc,prepend:a6,prependChild:i6,prevElementSibling:nc,removeElement:Jr,removeSubsets:m6,replaceElement:n6,testElement:u6,textContent:_s,uniqueSort:Cs},Symbol.toStringTag,{value:"Module"}));function L1(e,t,n){return e?e(t??e._root.children,null,void 0,n).toString():""}function _6(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function x6(e,t){const n=_6(e)?(t=e,void 0):e,r={...this===null||this===void 0?void 0:this._options,...u0(t)};return L1(this,n,r)}function k6(e){const t={...this._options,xmlMode:!0};return L1(this,e,t)}function fi(e){const t=e??(this?this.root():[]);let n="";for(let r=0;r<t.length;r++)n+=_s(t[r]);return n}function S6(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 A6(){return this(this._root)}function D1(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 E6(e){return this.root().extract(e)}function T6(e,t){if(!Zf(e)||!Zf(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 Zf(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 N6=Object.freeze(Object.defineProperty({__proto__:null,contains:D1,extract:E6,html:x6,merge:T6,parseHTML:S6,root:A6,text:fi,xml:k6},Symbol.toStringTag,{value:"Module"}));function nr(e){return e.cheerio!=null}function C6(e){return e.replace(/[._-](\w|$)/g,(t,n)=>n.toUpperCase())}function I6(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function pt(e,t){const n=e.length;for(let r=0;r<n;r++)t(e[r],r);return e}var Br;(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"})(Br||(Br={}));function d0(e){const t=e.indexOf("<");if(t<0||t>e.length-3)return!1;const n=e.charCodeAt(t+1);return(n>=Br.LowerA&&n<=Br.LowerZ||n>=Br.UpperA&&n<=Br.UpperZ||n===Br.Exclamation)&&e.includes(">",t+2)}const hi=Object.prototype.hasOwnProperty,di=/\s+/,m0="data-",ic=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,O6=/^{[^]*}$|^\[[^]*]$/;function Ha(e,t,n){var r;if(!(!e||!De(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(hi.call(e.attribs,t))return!n&&ic.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return fi(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function ps(e,t,n){n===null?P1(e,t):e.attribs[t]=`${n}`}function M6(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 pt(this,(n,r)=>{De(n)&&ps(n,e,t.call(n,r,n.attribs[e]))})}return pt(this,n=>{if(De(n))if(typeof e=="object")for(const r of Object.keys(e)){const s=e[r];ps(n,r,s)}else ps(n,e,t)})}return arguments.length>1?this:Ha(this[0],e,this.options.xmlMode)}function eh(e,t,n){return t in e?e[t]:!n&&ic.test(t)?Ha(e,t,!1)!==void 0:Ha(e,t,n)}function Tl(e,t,n,r){t in e?e[t]=n:ps(e,t,!r&&ic.test(t)?n?"":null:`${n}`)}function L6(e,t){var n;if(typeof e=="string"&&t===void 0){const r=this[0];if(!r||!De(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 za(r);case"textContent":return _s(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return eh(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 pt(this,(r,s)=>{De(r)&&Tl(r,e,t.call(r,s,eh(r,e,this.options.xmlMode)),this.options.xmlMode)})}return pt(this,r=>{if(De(r))if(typeof e=="object")for(const s of Object.keys(e)){const i=e[s];Tl(r,s,i,this.options.xmlMode)}else Tl(r,e,t,this.options.xmlMode)})}}function th(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 D6(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(m0))continue;const n=C6(t.slice(m0.length));hi.call(e.data,n)||(e.data[n]=R1(e.attribs[t]))}return e.data}function R6(e,t){const n=m0+I6(t),r=e.data;if(hi.call(r,t))return r[t];if(hi.call(e.attribs,n))return r[t]=R1(e.attribs[n])}function R1(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(O6.test(e))try{return JSON.parse(e)}catch{}return e}function P6(e,t){var n;const r=this[0];if(!r||!De(r))return;const s=r;return(n=s.data)!==null&&n!==void 0||(s.data={}),e==null?D6(s):typeof e=="object"||t!==void 0?(pt(this,i=>{De(i)&&(typeof e=="object"?th(i,e):th(i,e,t))}),this):R6(s,e)}function $6(e){const t=arguments.length===0,n=this[0];if(!n||!De(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=>fi(s.children)):r.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function P1(e,t){!e.attribs||!hi.call(e.attribs,t)||delete e.attribs[t]}function Va(e){return e?e.trim().split(di):[]}function B6(e){const t=Va(e);for(const n of t)pt(this,r=>{De(r)&&P1(r,n)});return this}function F6(e){return this.toArray().some(t=>{const n=De(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||di.test(n[r-1]))&&(s===n.length||di.test(n[s])))return!0}return!1})}function $1(e){if(typeof e=="function")return pt(this,(r,s)=>{if(De(r)){const i=r.attribs.class||"";$1.call([r],e.call(r,s,i))}});if(!e||typeof e!="string")return this;const t=e.split(di),n=this.length;for(let r=0;r<n;r++){const s=this[r];if(!De(s))continue;const i=Ha(s,"class",!1);if(i){let o=` ${i} `;for(const u of t){const h=`${u} `;o.includes(` ${h}`)||(o+=h)}ps(s,"class",o.trim())}else ps(s,"class",t.join(" ").trim())}return this}function B1(e){if(typeof e=="function")return pt(this,(s,i)=>{De(s)&&B1.call([s],e.call(s,i,s.attribs.class||""))});const t=Va(e),n=t.length,r=arguments.length===0;return pt(this,s=>{if(De(s))if(r)s.attribs.class="";else{const i=Va(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 F1(e,t){if(typeof e=="function")return pt(this,(o,u)=>{De(o)&&F1.call([o],e.call(o,u,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const n=e.split(di),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(!De(u))continue;const h=Va(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 z6=Object.freeze(Object.defineProperty({__proto__:null,addClass:$1,attr:M6,data:P6,hasClass:F6,prop:L6,removeAttr:B6,removeClass:B1,toggleClass:F1,val:$6},Symbol.toStringTag,{value:"Module"}));var Se;(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"})(Se||(Se={}));var Ot;(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"})(Ot||(Ot={}));const nh=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,q6=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,U6=new Map([[126,Ot.Element],[94,Ot.Start],[36,Ot.End],[42,Ot.Any],[33,Ot.Not],[124,Ot.Hyphen]]),H6=new Set(["has","not","matches","is","where","host","host-context"]);function ti(e){switch(e.type){case Se.Adjacent:case Se.Child:case Se.Descendant:case Se.Parent:case Se.Sibling:case Se.ColumnCombinator:return!0;default:return!1}}const V6=new Set(["contains","icontains"]);function j6(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 Hs(e){return e.replace(q6,j6)}function Nl(e){return e===39||e===34}function rh(e){return e===32||e===9||e===10||e===12||e===13}function po(e){const t=[],n=z1(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function z1(e,t,n){let r=[];function s(v){const x=t.slice(n+v).match(nh);if(!x)throw new Error(`Expected name, found ${t.slice(n)}`);const[k]=x;return n+=v+k.length,Hs(k)}function i(v){for(n+=v;n<t.length&&rh(t.charCodeAt(n));)n++}function o(){n+=1;const v=n;let x=1;for(;x>0&&n<t.length;n++)t.charCodeAt(n)===40&&!u(n)?x++:t.charCodeAt(n)===41&&!u(n)&&x--;if(x)throw new Error("Parenthesis not matched");return Hs(t.slice(v,n-1))}function u(v){let x=0;for(;t.charCodeAt(--v)===92;)x++;return(x&1)===1}function h(){if(r.length>0&&ti(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function d(v){if(r.length>0&&r[r.length-1].type===Se.Descendant){r[r.length-1].type=v;return}h(),r.push({type:v})}function p(v,x){r.push({type:Se.Attribute,name:v,action:x,value:s(1),namespace:null,ignoreCase:"quirks"})}function w(){if(r.length&&r[r.length-1].type===Se.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!==Se.Descendant)&&(h(),r.push({type:Se.Descendant})),i(1);break}case 62:{d(Se.Child),i(1);break}case 60:{d(Se.Parent),i(1);break}case 126:{d(Se.Sibling),i(1);break}case 43:{d(Se.Adjacent),i(1);break}case 46:{p("class",Ot.Element);break}case 35:{p("id",Ot.Equals);break}case 91:{i(1);let x,k=null;t.charCodeAt(n)===124?x=s(1):t.startsWith("*|",n)?(k="*",x=s(2)):(x=s(0),t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==61&&(k=x,x=s(1))),i(0);let A=Ot.Exists;const N=U6.get(t.charCodeAt(n));if(N){if(A=N,t.charCodeAt(n+1)!==61)throw new Error("Expected `=`");i(2)}else t.charCodeAt(n)===61&&(A=Ot.Equals,i(1));let I="",V=null;if(A!=="exists"){if(Nl(t.charCodeAt(n))){const B=t.charCodeAt(n);let P=n+1;for(;P<t.length&&(t.charCodeAt(P)!==B||u(P));)P+=1;if(t.charCodeAt(P)!==B)throw new Error("Attribute value didn't end");I=Hs(t.slice(n+1,P)),n=P+1}else{const B=n;for(;n<t.length&&(!rh(t.charCodeAt(n))&&t.charCodeAt(n)!==93||u(n));)n+=1;I=Hs(t.slice(B,n))}i(0);const M=t.charCodeAt(n)|32;M===115?(V=!1,i(1)):M===105&&(V=!0,i(1))}if(t.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;const D={type:Se.Attribute,name:x,action:A,value:I,namespace:k,ignoreCase:V};r.push(D);break}case 58:{if(t.charCodeAt(n+1)===58){r.push({type:Se.PseudoElement,name:s(2).toLowerCase(),data:t.charCodeAt(n)===40?o():null});continue}const x=s(1).toLowerCase();let k=null;if(t.charCodeAt(n)===40)if(H6.has(x)){if(Nl(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${x} cannot be quoted`);if(k=[],n=z1(k,t,n+1),t.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${x} (${t})`);n+=1}else{if(k=o(),V6.has(x)){const A=k.charCodeAt(0);A===k.charCodeAt(k.length-1)&&Nl(A)&&(k=k.slice(1,-1))}k=Hs(k)}r.push({type:Se.Pseudo,name:x,data:k});break}case 44:{w(),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 x=null,k;if(v===42)n+=1,k="*";else if(v===124){if(k="",t.charCodeAt(n+1)===124){d(Se.ColumnCombinator),i(2);break}}else if(nh.test(t.slice(n)))k=s(0);else break e;t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==124&&(x=k,t.charCodeAt(n+1)===42?(k="*",n+=2):k=s(1)),r.push(k==="*"?{type:Se.Universal,namespace:x}:{type:Se.Tag,name:k,namespace:x})}}}return w(),n}function W6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cl,sh;function G6(){return sh||(sh=1,Cl={trueFunc:function(){return!0},falseFunc:function(){return!1}}),Cl}var ja=G6();const qe=W6(ja),q1=new Map([[Se.Universal,50],[Se.Tag,30],[Se.Attribute,1],[Se.Pseudo,0]]);function ac(e){return!q1.has(e.type)}const K6=new Map([[Ot.Exists,10],[Ot.Equals,8],[Ot.Not,7],[Ot.Start,6],[Ot.End,6],[Ot.Any,5]]);function X6(e){const t=e.map(U1);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 U1(e){var t,n;let r=(t=q1.get(e.type))!==null&&t!==void 0?t:-1;return e.type===Se.Attribute?(r=(n=K6.get(e.action))!==null&&n!==void 0?n:4,e.action===Ot.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===Se.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(U1)))),r<0&&(r=0)):r=2:r=3),r}const Y6=/[-[\]{}()*+?.,\\^$|#\s]/g;function ih(e){return e.replace(Y6,"\\$&")}const J6=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 Dr(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&J6.has(e.name)}const Q6={equals(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;return Dr(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 Dr(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 qe.falseFunc;const o=new RegExp(`(?:^|\\s)${ih(i)}(?:$|\\s)`,Dr(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?qe.falseFunc:Dr(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?qe.falseFunc:Dr(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 qe.falseFunc;if(Dr(t,n)){const o=new RegExp(ih(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):Dr(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)}},Z6=new Set([9,10,12,13,32]),ah=48,e7=57;function t7(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)>=ah&&e.charCodeAt(t)<=e7;)d=d*10+(e.charCodeAt(t)-ah),t++;return t===h?null:d}function u(){for(;t<e.length&&Z6.has(e.charCodeAt(t));)t++}}function n7(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return qe.falseFunc;if(t===-1)return i=>i<=n;if(t===0)return i=>i===n;if(t===1)return n<0?qe.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 la(e){return n7(t7(e))}function ca(e,t){return n=>{const r=t.getParent(n);return r!=null&&t.isTag(r)&&e(n)}}const p0={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=la(t);return s===qe.falseFunc?qe.falseFunc:s===qe.trueFunc?ca(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=la(t);return s===qe.falseFunc?qe.falseFunc:s===qe.trueFunc?ca(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=la(t);return s===qe.falseFunc?qe.falseFunc:s===qe.trueFunc?ca(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=la(t);return s===qe.falseFunc?qe.falseFunc:s===qe.trueFunc?ca(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?p0.root(e,t,n):r.length===1?i=>s(r[0],i)&&e(i):i=>r.includes(i)&&e(i)},hover:Il("isHovered"),visited:Il("isVisited"),active:Il("isActive")};function Il(e){return function(n,r,{adapter:s}){const i=s[e];return typeof i!="function"?qe.falseFunc:function(u){return i(u)&&n(u)}}}const oh={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 lh(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 r7={"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])"},H1={};function s7(e,t){return e===qe.falseFunc?qe.falseFunc:n=>t.isTag(n)&&e(n)}function V1(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 g0(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 Ol=(e,t,n,r,s)=>{const i=s(t,g0(n),r);return i===qe.trueFunc?e:i===qe.falseFunc?qe.falseFunc:o=>i(o)&&e(o)},Ml={is:Ol,matches:Ol,where:Ol,not(e,t,n,r,s){const i=s(t,g0(n),r);return i===qe.falseFunc?e:i===qe.trueFunc?qe.falseFunc:o=>!i(o)&&e(o)},has(e,t,n,r,s){const{adapter:i}=n,o=g0(n);o.relativeSelector=!0;const u=t.some(p=>p.some(ac))?[H1]:void 0,h=s(t,o,u);if(h===qe.falseFunc)return qe.falseFunc;const d=s7(h,i);if(u&&h!==qe.trueFunc){const{shouldTestNextSiblings:p=!1}=h;return w=>{if(!e(w))return!1;u[0]=w;const v=i.getChildren(w),x=p?[...v,...V1(w,i)]:v;return i.existsOne(d,x)}}return p=>e(p)&&i.existsOne(d,i.getChildren(p))}};function i7(e,t,n,r,s){var i;const{name:o,data:u}=t;if(Array.isArray(u)){if(!(o in Ml))throw new Error(`Unknown pseudo-class :${o}(${u})`);return Ml[o](e,u,n,r,s)}const h=(i=n.pseudos)===null||i===void 0?void 0:i[o],d=typeof h=="string"?h:r7[o];if(typeof d=="string"){if(u!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);const p=po(d);return Ml.is(e,p,n,r,s)}if(typeof h=="function")return lh(h,o,u,1),p=>h(p,u)&&e(p);if(o in p0)return p0[o](e,u,n,r);if(o in oh){const p=oh[o];return lh(p,o,u,2),w=>p(w,n,u)&&e(w)}throw new Error(`Unknown pseudo-class :${o}`)}function Ll(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function a7(e,t,n,r,s){const{adapter:i,equals:o}=n;switch(t.type){case Se.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Se.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Se.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()),Q6[t.action](e,t,n)}case Se.Pseudo:return i7(e,t,n,r,s);case Se.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 Se.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(d){let p=d;for(;p=Ll(p,i);)if(e(p))return!0;return!1};const u=new WeakSet;return function(d){let p=d;for(;p=Ll(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=Ll(d,i));return!1};case Se.Parent:return function(h){return i.getChildren(h).some(d=>i.isTag(d)&&e(d))};case Se.Child:return function(h){const d=i.getParent(h);return d!=null&&i.isTag(d)&&e(d)};case Se.Sibling:return function(h){const d=i.getSiblings(h);for(let p=0;p<d.length;p++){const w=d[p];if(o(h,w))break;if(i.isTag(w)&&e(w))return!0}return!1};case Se.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 w=0;w<d.length;w++){const v=d[w];if(o(h,v))break;i.isTag(v)&&(p=v)}return!!p&&e(p)};case Se.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function j1(e){return e.type===Se.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(j1)))}const o7={type:Se.Descendant},l7={type:"_flexibleDescendant"},c7={type:Se.Pseudo,name:"scope",data:null};function u7(e,{adapter:t},n){const r=!!(n!=null&&n.every(s=>{const i=t.isTag(s)&&t.getParent(s);return s===H1||i&&t.isTag(i)}));for(const s of e){if(!(s.length>0&&ac(s[0])&&s[0].type!==Se.Descendant))if(r&&!s.some(j1))s.unshift(o7);else continue;s.unshift(c7)}}function W1(e,t,n){var r;e.forEach(X6),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)u7(e,t,i);else if(e.some(h=>h.length>0&&ac(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!==Se.Pseudo||d.name!=="scope"||(s&&p.type===Se.Descendant?h[1]=l7:(p.type===Se.Adjacent||p.type===Se.Sibling)&&(o=!0))}return f7(h,t,i)}).reduce(h7,qe.falseFunc);return u.shouldTestNextSiblings=o,u}function f7(e,t,n){var r;return e.reduce((s,i)=>s===qe.falseFunc?qe.falseFunc:a7(s,i,t,n,W1),(r=t.rootFunc)!==null&&r!==void 0?r:qe.trueFunc)}function h7(e,t){return t===qe.falseFunc||e===qe.trueFunc?e:e===qe.falseFunc||t===qe.trueFunc?t:function(r){return e(r)||t(r)}}const G1=(e,t)=>e===t,d7={adapter:mo,equals:G1};function m7(e){var t,n,r,s;const i=e??d7;return(t=i.adapter)!==null&&t!==void 0||(i.adapter=mo),(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:G1),i}function p7(e){return function(n,r,s){const i=m7(r);return e(n,i,s)}}const oc=p7(W1);function K1(e,t,n=!1){return n&&(e=g7(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function g7(e,t){const n=Array.isArray(e)?e.slice(0):[e],r=n.length;for(let s=0;s<r;s++){const i=V1(n[s],t);n.push(...i)}return n}const b7=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function Wa(e){return e.type!=="pseudo"?!1:b7.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(Wa)):!1}function y7(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 w7(e){for(;e.parent;)e=e.parent;return e}function lc(e){const t=[],n=[];for(const r of e)r.some(Wa)?t.push(r):n.push(r);return[n,t]}const v7={type:Se.Universal,namespace:null},_7={type:Se.Pseudo,name:"scope",data:null};function X1(e,t,n={}){return Y1([e],t,n)}function Y1(e,t,n={}){if(typeof t=="function")return e.some(t);const[r,s]=lc(po(t));return r.length>0&&e.some(oc(r,n))||s.some(i=>Z1(i,e,n).length>0)}function x7(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(Q1(n,t,r));return t.filter(o=>!i.has(o))}}}function J1(e,t,n={}){return Q1(po(e),t,n)}function Q1(e,t,n){if(t.length===0)return[];const[r,s]=lc(e);let i;if(r.length){const o=y0(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=>De(p)&&!i.has(p)):t).length===0)break;const d=Z1(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 Z1(e,t,n){var r;if(e.some(ti)){const s=(r=n.root)!==null&&r!==void 0?r:w7(t[0]),i={...n,context:t,relativeSelector:!1};return e.push(_7),Ga(s,e,i,!0,t.length)}return Ga(t,e,n,!1,t.length)}function k7(e,t,n={},r=1/0){if(typeof e=="function")return em(t,e);const[s,i]=lc(po(e)),o=i.map(u=>Ga(t,u,n,!0,r));return s.length&&o.push(b0(t,s,n,r)),o.length===0?[]:o.length===1?o[0]:Cs(o.reduce((u,h)=>[...u,...h]))}function Ga(e,t,n,r,s){const i=t.findIndex(Wa),o=t.slice(0,i),u=t[i],h=t.length-1===i?s:1/0,d=y7(u.name,u.data,h);if(d===0)return[];const w=(o.length===0&&!Array.isArray(e)?fo(e).filter(De):o.length===0?(Array.isArray(e)?e:[e]).filter(De):r||o.some(ti)?b0(e,[o],n,d):y0(e,[o],n)).slice(0,d);let v=x7(u.name,w,u.data,n);if(v.length===0||t.length===i+1)return v;const x=t.slice(i+1),k=x.some(ti);if(k){if(ti(x[0])){const{type:A}=x[0];(A===Se.Sibling||A===Se.Adjacent)&&(v=K1(v,mo,!0)),x.unshift(v7)}n={...n,relativeSelector:!1,rootFunc:A=>v.includes(A)}}else n.rootFunc&&n.rootFunc!==ja.trueFunc&&(n={...n,rootFunc:ja.trueFunc});return x.some(Wa)?Ga(v,x,n,!1,s):k?b0(v,[x],n,s):y0(v,[x],n)}function b0(e,t,n,r){const s=oc(t,n,e);return em(e,s,r)}function em(e,t,n=1/0){const r=K1(e,mo,t.shouldTestNextSiblings);return rc(s=>De(s)&&t(s),r,!0,n)}function y0(e,t,n){const r=(Array.isArray(e)?e:[e]).filter(De);if(r.length===0)return r;const s=oc(t,n);return s===ja.trueFunc?r:r.filter(s)}const S7=/^\s*[+~]/;function A7(e){if(!e)return this._make([]);if(typeof e!="string"){const t=nr(e)?e.toArray():[e],n=this.toArray();return this._make(t.filter(r=>n.some(s=>D1(s,r))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function E7(e,t){var n;const r=this.toArray(),s=S7.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(k7(e,s,i,t))}function cc(e){return function(t,...n){return function(r){var s;let i=e(t,this);return r&&(i=hc(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 vi=cc((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}),uc=cc((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 fc(e,...t){let n=null;const r=cc((s,i)=>{const o=[];return pt(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=>X1(u,s,this.options):s?_i(s):null;const o=r.call(this,i);return n=null,o}}function Is(e){return e.length>1?Array.from(new Set(e)):e}const T7=uc(({parent:e})=>e&&!Yr(e)?e:null,Is),N7=vi(e=>{const t=[];for(;e.parent&&!Yr(e.parent);)t.push(e.parent),e=e.parent;return t},Cs,e=>e.reverse()),C7=fc(({parent:e})=>e&&!Yr(e)?e:null,Cs,e=>e.reverse());function I7(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=>X1(i,e,r):_i(e);return pt(this,i=>{for(i&&!Yr(i)&&!De(i)&&(i=i.parent);i&&De(i);){if(s(i,0)){n.includes(i)||n.push(i);break}i=i.parent}}),this._make(n)}const O7=uc(e=>tc(e)),M7=vi(e=>{const t=[];for(;e.next;)e=e.next,De(e)&&t.push(e);return t},Is),L7=fc(e=>tc(e),Is),D7=uc(e=>nc(e)),R7=vi(e=>{const t=[];for(;e.prev;)e=e.prev,De(e)&&t.push(e);return t},Is),P7=fc(e=>nc(e),Is),$7=vi(e=>T1(e).filter(t=>De(t)&&t!==e),Cs),B7=vi(e=>fo(e).filter(De),Is);function F7(){const e=this.toArray().reduce((t,n)=>zt(n)?t.concat(n.children):t,[]);return this._make(e)}function z7(e){let t=0;const n=this.length;for(;t<n&&e.call(this[t],t,this[t])!==!1;)++t;return this}function q7(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 _i(e){return typeof e=="function"?(t,n)=>e.call(t,n,t):nr(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function U7(e){var t;return this._make(hc(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function hc(e,t,n,r){return typeof t=="string"?J1(t,e,{xmlMode:n,root:r}):e.filter(_i(t))}function H7(e){const t=this.toArray();return typeof e=="string"?Y1(t.filter(De),e,this.options):e?t.some(_i(e)):!1}function V7(e){let t=this.toArray();if(typeof e=="string"){const n=new Set(J1(e,t,this.options));t=t.filter(r=>!n.has(r))}else{const n=_i(e);t=t.filter((r,s)=>!n(r,s))}return this._make(t)}function j7(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,n)=>this._make(n).find(e).length>0)}function W7(){return this.length>1?this._make(this[0]):this}function G7(){return this.length>0?this._make(this[this.length-1]):this}function K7(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 X7(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function Y7(){return Array.prototype.slice.call(this)}function J7(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=nr(e)?e[0]:e),Array.prototype.indexOf.call(t,n)}function Q7(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function Z7(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function e8(e,t){const n=this._make(e,t),r=Cs([...this.get(),...n.get()]);return this._make(r)}function t8(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const n8=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:E7,add:e8,addBack:t8,children:B7,closest:I7,contents:F7,each:z7,end:Z7,eq:K7,filter:U7,filterArray:hc,find:A7,first:W7,get:X7,has:j7,index:J7,is:H7,last:G7,map:q7,next:O7,nextAll:M7,nextUntil:L7,not:V7,parent:T7,parents:N7,parentsUntil:C7,prev:D7,prevAll:R7,prevUntil:P7,siblings:$7,slice:Q7,toArray:Y7},Symbol.toStringTag,{value:"Module"}));function r8(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)&&Yr(o))return o;const u=new ci([]);return Wr(o,u),u}}function Wr(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&&Jr(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 s8(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?ui(s,!0):s);continue}}n.push(...this._makeDomArray(s,t))}return n}return[t?ui(e,!0):e]}function tm(e){return function(...t){const n=this.length-1;return pt(this,(r,s)=>{if(!zt(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 Ar(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 w=r[p],v=w.parent;if(v){const k=v.children.indexOf(w);k>-1&&(v.children.splice(k,1),s===v&&t>k&&u[0]--)}w.parent=s,w.prev&&(w.prev.next=(i=w.next)!==null&&i!==void 0?i:null),w.next&&(w.next.prev=(o=w.prev)!==null&&o!==void 0?o:null),w.prev=p===0?h:r[p-1],w.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 i8(e){return(nr(e)?e:this._make(e)).append(this),this}function a8(e){return(nr(e)?e:this._make(e)).prepend(this),this}const o8=tm((e,t,n)=>{Ar(t,t.length,0,e,n)}),l8=tm((e,t,n)=>{Ar(t,0,0,e,n)});function nm(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"&&!d0(t)?r.find(t).clone():t,[u]=this._makeDomArray(o,s<n);if(!u||!zt(u))continue;let h=u,d=0;for(;d<h.children.length;){const p=h.children[d];De(p)?(h=p,d=0):d++}e(i,h,[u])}return this}}const c8=nm((e,t,n)=>{const{parent:r}=e;if(!r)return;const s=r.children,i=s.indexOf(e);Wr([e],t),Ar(s,i,0,n,r)}),u8=nm((e,t,n)=>{zt(e)&&(Wr(e.children,t),Wr(n,e))});function f8(e){return this.parent(e).not("body").each((t,n)=>{this._make(n).replaceWith(n.children)}),this}function h8(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 d8(...e){const t=this.length-1;return pt(this,(n,r)=>{if(!zt(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);Ar(s,i+1,0,u,n.parent)})}function m8(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||(Ar(i,o+1,0,r,s),t.push(...r))}return this._make(t)}function p8(...e){const t=this.length-1;return pt(this,(n,r)=>{if(!zt(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);Ar(s,i,0,u,n.parent)})}function g8(e){const t=this._make(e);this.remove();const n=[];return pt(t,r=>{const s=this.clone().toArray(),{parent:i}=r;if(!i)return;const o=i.children,u=o.indexOf(r);u<0||(Ar(o,u,0,s,i),n.push(...s))}),this._make(n)}function b8(e){const t=e?this.filter(e):this;return pt(t,n=>{Jr(n),n.prev=n.next=n.parent=null}),this}function y8(e){return pt(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);Wr(o,null);const u=s.indexOf(t);Ar(s,u,1,o,r),o.includes(t)||(t.parent=t.prev=t.next=null)})}function w8(){return pt(this,e=>{if(zt(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function v8(e){if(e===void 0){const t=this[0];return!t||!zt(t)?null:this._render(t.children)}return pt(this,t=>{if(!zt(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=nr(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;Wr(n,t)})}function _8(){return this._render(this)}function x8(e){return e===void 0?fi(this):typeof e=="function"?pt(this,(t,n)=>this._make(t).text(e.call(t,n,fi([t])))):pt(this,t=>{if(!zt(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=new Fa(`${e}`);Wr(n,t)})}function k8(){const e=Array.prototype.map.call(this.get(),n=>ui(n,!0)),t=new ci(e);for(const n of e)n.parent=t;return this._make(e)}const S8=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:s8,after:d8,append:o8,appendTo:i8,before:p8,clone:k8,empty:w8,html:v8,insertAfter:m8,insertBefore:g8,prepend:l8,prependTo:a8,remove:b8,replaceWith:y8,text:x8,toString:_8,unwrap:f8,wrap:c8,wrapAll:h8,wrapInner:u8},Symbol.toStringTag,{value:"Module"}));function A8(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return pt(this,(n,r)=>{De(n)&&rm(n,e,t,r)});if(this.length!==0)return sm(this[0],e)}function rm(e,t,n,r){if(typeof t=="string"){const s=sm(e),i=typeof n=="function"?n.call(e,r,s[t]):n;i===""?delete s[t]:i!=null&&(s[t]=i),e.attribs.style=E8(s)}else if(typeof t=="object"){const s=Object.keys(t);for(let i=0;i<s.length;i++){const o=s[i];rm(e,o,t[o],i)}}}function sm(e,t){if(!e||!De(e))return;const n=T8(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 E8(e){return Object.keys(e).reduce((t,n)=>`${t}${t?" ":""}${n}: ${e[n]};`,"")}function T8(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 N8=Object.freeze(Object.defineProperty({__proto__:null,css:A8},Symbol.toStringTag,{value:"Module"})),ch="input,select,textarea,keygen",C8=/%20/g,uh=/\r?\n/g;function I8(){return this.serializeArray().map(n=>`${encodeURIComponent(n.name)}=${encodeURIComponent(n.value)}`).join("&").replace(C8,"+")}function O8(){return this.map((e,t)=>{const n=this._make(t);return De(t)&&t.name==="form"?n.find(ch).toArray():n.filter(ch).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(uh,`\r
|
||
`)})):{name:s,value:i.replace(uh,`\r
|
||
`)}}).toArray()}const M8=Object.freeze(Object.defineProperty({__proto__:null,serialize:I8,serializeArray:O8},Symbol.toStringTag,{value:"Module"}));function L8(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 D8(e){const t={};for(const n in e){const r=e[n],s=Array.isArray(r),{selector:i,value:o}=L8(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 R8=Object.freeze(Object.defineProperty({__proto__:null,extract:D8},Symbol.toStringTag,{value:"Module"}));class xi{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}}}xi.prototype.cheerio="[cheerio object]";xi.prototype.splice=Array.prototype.splice;xi.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(xi.prototype,z6,n8,S8,N8,M8,R8);function P8(e,t){return function n(r,s,i=!0){if(r==null)throw new Error("cheerio.load() expects a string");const o=u0(s),u=e(r,o,i,null);class h extends xi{_make(w,v){const x=d(w,v);return x.prevObject=this,x}_parse(w,v,x,k){return e(w,v,x,k)}_render(w){return t(w,this.options)}}function d(p,w,v=u,x){if(p&&nr(p))return p;const k=u0(x,o),A=typeof v=="string"?[e(v,k,!1,null)]:"length"in v?v:[v],N=nr(A)?A:new h(A,null,k);if(N._root=N,!p)return new h(void 0,N,k);const I=typeof p=="string"&&d0(p)?e(p,k,!1,null).children:$8(p)?[p]:Array.isArray(p)?p:void 0,V=new h(I,N,k);if(I)return V;if(typeof p!="string")throw new TypeError("Unexpected type of selector");let D=p;const M=w?typeof w=="string"?d0(w)?new h([e(w,k,!1,null)],N,k):(D=`${w} ${D}`,N):nr(w)?w:new h(Array.isArray(w)?w:[w],N,k):N;return M?M.find(D):V}return Object.assign(d,N6,{load:n,_root:u,_options:o,fn:h.prototype,prototype:h.prototype}),d}}function $8(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var Te;(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"})(Te||(Te={}));var ie;(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"})(ie||(ie={}));function Qn(e){return e===Te.Space||e===Te.NewLine||e===Te.Tab||e===Te.FormFeed||e===Te.CarriageReturn}function ua(e){return e===Te.Slash||e===Te.Gt||Qn(e)}function B8(e){return e>=Te.LowerA&&e<=Te.LowerZ||e>=Te.UpperA&&e<=Te.UpperZ}var Bn;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Bn||(Bn={}));const Ut={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 F8{constructor({xmlMode:t=!1,decodeEntities:n=!0},r){this.cbs=r,this.state=ie.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=ie.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 _1(t?v1:w1,(s,i)=>this.emitCodePoint(s,i))}reset(){this.state=ie.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ie.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===Te.Lt||!this.decodeEntities&&this.fastForwardTo(Te.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ie.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===Te.Amp&&this.startEntity()}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?ua(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ie.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===Te.Gt||Qn(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===Ut.TitleEnd?this.decodeEntities&&t===Te.Amp&&this.startEntity():this.fastForwardTo(Te.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===Te.Lt)}stateCDATASequence(t){t===Ut.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ut.Cdata.length&&(this.state=ie.InCommentLike,this.currentSequence=Ut.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=ie.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===Ut.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=ie.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?!ua(t):B8(t)}startSpecial(t,n){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=n,this.state=ie.SpecialStartSequence}stateBeforeTagName(t){if(t===Te.ExclamationMark)this.state=ie.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===Te.Questionmark)this.state=ie.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const n=t|32;this.sectionStart=this.index,this.xmlMode?this.state=ie.InTagName:n===Ut.ScriptEnd[2]?this.state=ie.BeforeSpecialS:n===Ut.TitleEnd[2]?this.state=ie.BeforeSpecialT:this.state=ie.InTagName}else t===Te.Slash?this.state=ie.BeforeClosingTagName:(this.state=ie.Text,this.stateText(t))}stateInTagName(t){ua(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ie.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){Qn(t)||(t===Te.Gt?this.state=ie.Text:(this.state=this.isTagStartChar(t)?ie.InClosingTagName:ie.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===Te.Gt||Qn(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=ie.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===Te.Gt||this.fastForwardTo(Te.Gt))&&(this.state=ie.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===Te.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=ie.InSpecialTag,this.sequenceIndex=0):this.state=ie.Text,this.sectionStart=this.index+1):t===Te.Slash?this.state=ie.InSelfClosingTag:Qn(t)||(this.state=ie.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===Te.Gt?(this.cbs.onselfclosingtag(this.index),this.state=ie.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Qn(t)||(this.state=ie.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===Te.Eq||ua(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=ie.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===Te.Eq?this.state=ie.BeforeAttributeValue:t===Te.Slash||t===Te.Gt?(this.cbs.onattribend(Bn.NoValue,this.sectionStart),this.sectionStart=-1,this.state=ie.BeforeAttributeName,this.stateBeforeAttributeName(t)):Qn(t)||(this.cbs.onattribend(Bn.NoValue,this.sectionStart),this.state=ie.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===Te.DoubleQuote?(this.state=ie.InAttributeValueDq,this.sectionStart=this.index+1):t===Te.SingleQuote?(this.state=ie.InAttributeValueSq,this.sectionStart=this.index+1):Qn(t)||(this.sectionStart=this.index,this.state=ie.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===Te.DoubleQuote?Bn.Double:Bn.Single,this.index+1),this.state=ie.BeforeAttributeName):this.decodeEntities&&t===Te.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,Te.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,Te.SingleQuote)}stateInAttributeValueNoQuotes(t){Qn(t)||t===Te.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Bn.Unquoted,this.index),this.state=ie.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===Te.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===Te.OpeningSquareBracket?(this.state=ie.CDATASequence,this.sequenceIndex=0):this.state=t===Te.Dash?ie.BeforeComment:ie.InDeclaration}stateInDeclaration(t){(t===Te.Gt||this.fastForwardTo(Te.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=ie.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===Te.Gt||this.fastForwardTo(Te.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=ie.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===Te.Dash?(this.state=ie.InCommentLike,this.currentSequence=Ut.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=ie.InDeclaration}stateInSpecialComment(t){(t===Te.Gt||this.fastForwardTo(Te.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ie.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const n=t|32;n===Ut.ScriptEnd[3]?this.startSpecial(Ut.ScriptEnd,4):n===Ut.StyleEnd[3]?this.startSpecial(Ut.StyleEnd,4):(this.state=ie.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){const n=t|32;n===Ut.TitleEnd[3]?this.startSpecial(Ut.TitleEnd,4):n===Ut.TextareaEnd[3]?this.startSpecial(Ut.TextareaEnd,4):(this.state=ie.InTagName,this.stateInTagName(t))}startEntity(){this.baseState=this.state,this.state=ie.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?$n.Strict:this.baseState===ie.Text||this.baseState===ie.InSpecialTag?$n.Legacy:$n.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===ie.Text||this.state===ie.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ie.InAttributeValueDq||this.state===ie.InAttributeValueSq||this.state===ie.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 ie.Text:{this.stateText(t);break}case ie.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case ie.InSpecialTag:{this.stateInSpecialTag(t);break}case ie.CDATASequence:{this.stateCDATASequence(t);break}case ie.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case ie.InAttributeName:{this.stateInAttributeName(t);break}case ie.InCommentLike:{this.stateInCommentLike(t);break}case ie.InSpecialComment:{this.stateInSpecialComment(t);break}case ie.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case ie.InTagName:{this.stateInTagName(t);break}case ie.InClosingTagName:{this.stateInClosingTagName(t);break}case ie.BeforeTagName:{this.stateBeforeTagName(t);break}case ie.AfterAttributeName:{this.stateAfterAttributeName(t);break}case ie.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case ie.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case ie.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case ie.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case ie.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case ie.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case ie.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case ie.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case ie.InDeclaration:{this.stateInDeclaration(t);break}case ie.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case ie.BeforeComment:{this.stateBeforeComment(t);break}case ie.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case ie.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===ie.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===ie.InCommentLike?this.currentSequence===Ut.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===ie.InTagName||this.state===ie.BeforeAttributeName||this.state===ie.BeforeAttributeValue||this.state===ie.AfterAttributeName||this.state===ie.InAttributeName||this.state===ie.InAttributeValueSq||this.state===ie.InAttributeValueDq||this.state===ie.InAttributeValueNq||this.state===ie.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){this.baseState!==ie.Text&&this.baseState!==ie.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 ss=new Set(["input","option","optgroup","select","button","datalist","textarea"]),nt=new Set(["p"]),fh=new Set(["thead","tbody"]),hh=new Set(["dd","dt"]),dh=new Set(["rt","rp"]),z8=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",nt],["h1",nt],["h2",nt],["h3",nt],["h4",nt],["h5",nt],["h6",nt],["select",ss],["input",ss],["output",ss],["button",ss],["datalist",ss],["textarea",ss],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",hh],["dt",hh],["address",nt],["article",nt],["aside",nt],["blockquote",nt],["details",nt],["div",nt],["dl",nt],["fieldset",nt],["figcaption",nt],["figure",nt],["footer",nt],["form",nt],["header",nt],["hr",nt],["main",nt],["nav",nt],["ol",nt],["pre",nt],["section",nt],["table",nt],["ul",nt],["rt",dh],["rp",dh],["tbody",fh],["tfoot",fh]]),q8=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),mh=new Set(["math","svg"]),ph=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),U8=/\s|\//;let H8=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:F8)(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,f0(t)),this.startIndex=n}isVoidElement(t){return this.htmlMode&&q8.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&&z8.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&&(mh.has(t)?this.foreignContext.unshift(!0):ph.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 w=this.getSlice(t,n);if(this.lowerCaseTagNames&&(w=w.toLowerCase()),this.htmlMode&&(mh.has(w)||ph.has(w))&&this.foreignContext.shift(),this.isVoidElement(w))this.htmlMode&&w==="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(w);if(v!==-1)for(let x=0;x<=v;x++){const k=this.stack.shift();(s=(r=this.cbs).onclosetag)===null||s===void 0||s.call(r,k,x!==v)}else this.htmlMode&&w==="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+=f0(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===Bn.Double?'"':t===Bn.Single?"'":t===Bn.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(U8);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,w,v,x;this.endIndex=n;const k=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,k),(d=(h=this.cbs).oncdataend)===null||d===void 0||d.call(h)):((w=(p=this.cbs).oncomment)===null||w===void 0||w.call(p,`[CDATA[${k}]]`),(x=(v=this.cbs).oncommentend)===null||x===void 0||x.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 V8(e,t){const n=new T3(void 0,t);return new H8(n,t).end(e),n.root}const j8=P8(r8(V8),uo),W8={"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)})},G8={selector:"h1,h2,h3,h4,h5,h6,ul,ol,li,table,pre,p>img:only-child",selectorRules:W8},gh="markmap: ",K8=/^h[1-6]$/,X8=/^[uo]l$/,Y8=/^li$/;function J8(e){return K8.test(e)?+e[1]:X8.test(e)?8:Y8.test(e)?9:7}function Q8(e,t){const n={...G8,...t},r=j8(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 x(s.children()),o;function d(k){var A;const{parent:N}=k,I={id:++i,tag:k.tagName,level:k.level,html:k.html,childrenLevel:0,children:k.nesting?[]:void 0,parent:N.id};return(A=k.comments)!=null&&A.length&&(I.comments=k.comments),Object.keys(k.data||{}).length&&(I.data=k.data),N.children&&((N.childrenLevel===0||N.childrenLevel>I.level)&&(N.children=[],N.childrenLevel=I.level),N.childrenLevel===I.level&&N.children.push(I)),I}function p(k){let A;for(;(A=u[u.length-1])&&A.level>=k;)u.pop();return A||o}function w(k){var A;const N=v(k),I=(A=r.html(N.$node))==null?void 0:A.trimEnd();return{comments:N.comments,html:I}}function v(k){const A=[];return k=k.filter((N,I)=>{if(I.type==="comment"){const V=I.data.trim();if(V.startsWith(gh))return A.push(V.slice(gh.length).trim()),!1}return!0}),{$node:k,comments:A}}function x(k,A){k.each((N,I)=>{var V;const D=r(I),M=(V=Object.entries(n.selectorRules).find(([Me])=>D.is(Me)))==null?void 0:V[1],B=M==null?void 0:M({$node:D,$:r,getContent:w});if(B!=null&&B.queue&&!B.nesting){x(B.queue,A);return}const P=J8(I.tagName);if(!B){P<=6&&(h=P);return}if(h>0&&P>h||!D.is(n.selector))return;h=0;const j=P<=6;let W={...D.closest("p").data(),...D.data()},Y=B.html||"";if(D.is("ol>li")&&(A!=null&&A.children)){const be=+(D.parent().attr("start")||1)+A.children.length;Y=`${be}. ${Y}`,W={...W,listIndex:be}}const pe=d({parent:A||p(P),nesting:!!B.queue||j,tagName:I.tagName,level:P,html:Y,comments:B.comments,data:W});j&&u.push(pe),B.queue&&x(B.queue,pe)})}}function Z8(e){return Xs(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 eb(e,t){const n=Q8(e,t);return Z8(n)}function tb(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 w=r.push("text","",0);w.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 nb(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 w=r.push("text","",0);w.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 w=r.tokens[d.token];w.type="mark_close",w.tag="mark",w.nesting=-1,w.markup="==",w.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 rb=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function sb(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(rb,"$1");const h=e.push("sub_close","sub",-1);return h.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function ib(e){e.inline.ruler.after("emphasis","sub",sb)}const ab=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function ob(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(ab,"$1");const h=e.push("sup_close","sup",-1);return h.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function lb(e){e.inline.ruler.after("emphasis","sup",ob)}const dc=Symbol.for("yaml.alias"),w0=Symbol.for("yaml.document"),wr=Symbol.for("yaml.map"),im=Symbol.for("yaml.pair"),Un=Symbol.for("yaml.scalar"),Os=Symbol.for("yaml.seq"),kn=Symbol.for("yaml.node.type"),Qr=e=>!!e&&typeof e=="object"&&e[kn]===dc,go=e=>!!e&&typeof e=="object"&&e[kn]===w0,ki=e=>!!e&&typeof e=="object"&&e[kn]===wr,xt=e=>!!e&&typeof e=="object"&&e[kn]===im,ct=e=>!!e&&typeof e=="object"&&e[kn]===Un,Si=e=>!!e&&typeof e=="object"&&e[kn]===Os;function vt(e){if(e&&typeof e=="object")switch(e[kn]){case wr:case Os:return!0}return!1}function _t(e){if(e&&typeof e=="object")switch(e[kn]){case dc:case wr:case Un:case Os:return!0}return!1}const am=e=>(ct(e)||vt(e))&&!!e.anchor,Pr=Symbol("break visit"),cb=Symbol("skip children"),ni=Symbol("remove node");function Ms(e,t){const n=ub(t);go(e)?fs(null,e.contents,n,Object.freeze([e]))===ni&&(e.contents=null):fs(null,e,n,Object.freeze([]))}Ms.BREAK=Pr;Ms.SKIP=cb;Ms.REMOVE=ni;function fs(e,t,n,r){const s=fb(e,t,n,r);if(_t(s)||xt(s))return hb(e,r,s),fs(e,s,n,r);if(typeof s!="symbol"){if(vt(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const o=fs(i,t.items[i],n,r);if(typeof o=="number")i=o-1;else{if(o===Pr)return Pr;o===ni&&(t.items.splice(i,1),i-=1)}}}else if(xt(t)){r=Object.freeze(r.concat(t));const i=fs("key",t.key,n,r);if(i===Pr)return Pr;i===ni&&(t.key=null);const o=fs("value",t.value,n,r);if(o===Pr)return Pr;o===ni&&(t.value=null)}}return s}function ub(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 fb(e,t,n,r){var s,i,o,u,h;if(typeof n=="function")return n(e,t,r);if(ki(t))return(s=n.Map)==null?void 0:s.call(n,e,t,r);if(Si(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(xt(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(ct(t))return(u=n.Scalar)==null?void 0:u.call(n,e,t,r);if(Qr(t))return(h=n.Alias)==null?void 0:h.call(n,e,t,r)}function hb(e,t,n){const r=t[t.length-1];if(vt(r))r.items[e]=n;else if(xt(r))e==="key"?r.key=n:r.value=n;else if(go(r))r.contents=n;else{const s=Qr(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const db={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},mb=e=>e.replace(/[!,[\]{}]/g,t=>db[t]);class Jt{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Jt.defaultYaml,t),this.tags=Object.assign({},Jt.defaultTags,n)}clone(){const t=new Jt(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Jt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Jt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Jt.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Jt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Jt.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+mb(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&&_t(t.contents)){const i={};Ms(t.contents,(o,u)=>{_t(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(`
|
||
`)}}Jt.defaultYaml={explicit:!1,version:"1.2"};Jt.defaultTags={"!!":"tag:yaml.org,2002:"};function om(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 lm(e){const t=new Set;return Ms(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function cm(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function pb(e,t){const n=[],r=new Map;let s=null;return{onAnchor:i=>{n.push(i),s??(s=lm(e));const o=cm(t,s);return s.add(o),o},setAnchors:()=>{for(const i of n){const o=r.get(i);if(typeof o=="object"&&o.anchor&&(ct(o.node)||vt(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 hs(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=hs(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=hs(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=hs(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=hs(e,r,s,i);o===void 0?delete r[s]:o!==i&&(r[s]=o)}return e.call(t,n,r)}function xn(e,t,n){if(Array.isArray(e))return e.map((r,s)=>xn(r,String(s),n));if(e&&typeof e.toJSON=="function"){if(!n||!am(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 mc{constructor(t){Object.defineProperty(this,kn,{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(!go(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=xn(this,"",o);if(typeof s=="function")for(const{count:h,res:d}of o.anchors.values())s(d,h);return typeof i=="function"?hs(i,{"":u},"",u):u}}class pc extends mc{constructor(t){super(dc),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=[],Ms(t,{Node:(i,o)=>{(Qr(o)||am(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||(xn(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=Sa(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(om(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 Sa(e,t,n){if(Qr(t)){const r=t.resolve(e),s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}else if(vt(t)){let r=0;for(const s of t.items){const i=Sa(e,s,n);i>r&&(r=i)}return r}else if(xt(t)){const r=Sa(e,t.key,n),s=Sa(e,t.value,n);return Math.max(r,s)}return 1}const um=e=>!e||typeof e!="function"&&typeof e!="object";class Pe extends mc{constructor(t){super(Un),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:xn(this.value,t,n)}toString(){return String(this.value)}}Pe.BLOCK_FOLDED="BLOCK_FOLDED";Pe.BLOCK_LITERAL="BLOCK_LITERAL";Pe.PLAIN="PLAIN";Pe.QUOTE_DOUBLE="QUOTE_DOUBLE";Pe.QUOTE_SINGLE="QUOTE_SINGLE";const gb="tag:yaml.org,2002:";function bb(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 mi(e,t,n){var w,v,x;if(go(e)&&(e=e.contents),_t(e))return e;if(xt(e)){const k=(v=(w=n.schema[wr]).createNode)==null?void 0:v.call(w,n.schema,null,n);return k.items.push(e),k}(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 pc(h.anchor);h={anchor:null,node:null},u.set(e,h)}t!=null&&t.startsWith("!!")&&(t=gb+t.slice(2));let d=bb(e,t,o.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const k=new Pe(e);return h&&(h.node=k),k}d=e instanceof Map?o[wr]:Symbol.iterator in Object(e)?o[Os]:o[wr]}i&&(i(d),delete n.onTagObj);const p=d!=null&&d.createNode?d.createNode(n.schema,e,n):typeof((x=d==null?void 0:d.nodeClass)==null?void 0:x.from)=="function"?d.nodeClass.from(n.schema,e,n):new Pe(e);return t?p.tag=t:d.default||(p.tag=d.tag),h&&(h.node=p),p}function Ka(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 mi(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 Ys=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class fm extends mc{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=>_t(r)||xt(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Ys(t))this.add(n);else{const[r,...s]=t,i=this.get(r,!0);if(vt(i))i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Ka(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(vt(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&&ct(i)?i.value:i:vt(i)?i.getIn(s,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!xt(n))return!1;const r=n.value;return r==null||t&&ct(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 vt(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(vt(i))i.setIn(s,n);else if(i===void 0&&this.schema)this.set(r,Ka(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}}const yb=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function er(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Fr=(e,t,n)=>e.endsWith(`
|
||
`)?er(n,t):n.includes(`
|
||
`)?`
|
||
`+er(n,t):(e.endsWith(" ")?"":" ")+n,hm="flow",v0="block",Aa="quoted";function bo(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 w=s-t.length;typeof r=="number"&&(r>s-Math.max(2,i)?d.push(0):w=s-r);let v,x,k=!1,A=-1,N=-1,I=-1;n===v0&&(A=bh(e,A,t.length),A!==-1&&(w=A+h));for(let D;D=e[A+=1];){if(n===Aa&&D==="\\"){switch(N=A,e[A+1]){case"x":A+=3;break;case"u":A+=5;break;case"U":A+=9;break;default:A+=1}I=A}if(D===`
|
||
`)n===v0&&(A=bh(e,A,t.length)),w=A+t.length+h,v=void 0;else{if(D===" "&&x&&x!==" "&&x!==`
|
||
`&&x!==" "){const M=e[A+1];M&&M!==" "&&M!==`
|
||
`&&M!==" "&&(v=A)}if(A>=w)if(v)d.push(v),w=v+h,v=void 0;else if(n===Aa){for(;x===" "||x===" ";)x=D,D=e[A+=1],k=!0;const M=A>I+1?A-2:N-1;if(p[M])return e;d.push(M),p[M]=!0,w=M+h,v=void 0}else k=!0}x=D}if(k&&u&&u(),d.length===0)return e;o&&o();let V=e.slice(0,d[0]);for(let D=0;D<d.length;++D){const M=d[D],B=d[D+1]||e.length;M===0?V=`
|
||
${t}${e.slice(0,B)}`:(n===Aa&&p[M]&&(V+=`${e[M]}\\`),V+=`
|
||
${t}${e.slice(M+1,B)}`)}return V}function bh(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 yo=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),wo=e=>/^(%|---|\.\.\.)/m.test(e);function wb(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 ri(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,s=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(wo(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:bo(o,i,Aa,yo(t,!1))}function _0(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
||
`)||/[ \t]\n|\n[ \t]/.test(e))return ri(e,t);const n=t.indent||(wo(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
||
${n}`)+"'";return t.implicitKey?r:bo(r,n,hm,yo(t,!1))}function ds(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=ri;else{const s=e.includes('"'),i=e.includes("'");s&&!i?r=_0:i&&!s?r=ri:r=n?_0:ri}return r(e,t)}let x0;try{x0=new RegExp(`(^|(?<!
|
||
))
|
||
+(?!
|
||
|$)`,"g")}catch{x0=/\n+(?!\n|$)/g}function Ea({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 ds(n,r);const d=r.indent||(r.forceBlockIndent||wo(n)?" ":""),p=o==="literal"?!0:o==="folded"||t===Pe.BLOCK_FOLDED?!1:t===Pe.BLOCK_LITERAL?!0:!wb(n,h,d.length);if(!n)return p?`|
|
||
`:`>
|
||
`;let w,v;for(v=n.length;v>0;--v){const B=n[v-1];if(B!==`
|
||
`&&B!==" "&&B!==" ")break}let x=n.substring(v);const k=x.indexOf(`
|
||
`);k===-1?w="-":n===x||k!==x.length-1?(w="+",i&&i()):w="",x&&(n=n.slice(0,-x.length),x[x.length-1]===`
|
||
`&&(x=x.slice(0,-1)),x=x.replace(x0,`$&${d}`));let A=!1,N,I=-1;for(N=0;N<n.length;++N){const B=n[N];if(B===" ")A=!0;else if(B===`
|
||
`)I=N;else break}let V=n.substring(0,I<N?I+1:N);V&&(n=n.substring(V.length),V=V.replace(/\n+/g,`$&${d}`));let M=(A?d?"2":"1":"")+w;if(e&&(M+=" "+u(e.replace(/ ?[\r\n]+/g," ")),s&&s()),!p){const B=n.replace(/\n+/g,`
|
||
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let P=!1;const j=yo(r,!0);o!=="folded"&&t!==Pe.BLOCK_FOLDED&&(j.onOverflow=()=>{P=!0});const W=bo(`${V}${B}${x}`,d,v0,j);if(!P)return`>${M}
|
||
${d}${W}`}return n=n.replace(/\n+/g,`$&${d}`),`|${M}
|
||
${d}${V}${n}${x}`}function vb(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 ds(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return u||p||!i.includes(`
|
||
`)?ds(i,t):Ea(e,t,n,r);if(!u&&!p&&s!==Pe.PLAIN&&i.includes(`
|
||
`))return Ea(e,t,n,r);if(wo(i)){if(h==="")return t.forceBlockIndent=!0,Ea(e,t,n,r);if(u&&h===d)return ds(i,t)}const w=i.replace(/\n+/g,`$&
|
||
${h}`);if(o){const v=A=>{var N;return A.default&&A.tag!=="tag:yaml.org,2002:str"&&((N=A.test)==null?void 0:N.test(w))},{compat:x,tags:k}=t.doc.schema;if(k.some(v)||x!=null&&x.some(v))return ds(i,t)}return u?w:bo(w,h,hm,yo(t,!1))}function gc(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!==Pe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(u=Pe.QUOTE_DOUBLE);const h=p=>{switch(p){case Pe.BLOCK_FOLDED:case Pe.BLOCK_LITERAL:return s||i?ds(o.value,t):Ea(o,t,n,r);case Pe.QUOTE_DOUBLE:return ri(o.value,t);case Pe.QUOTE_SINGLE:return _0(o.value,t);case Pe.PLAIN:return vb(o,t,n,r);default:return null}};let d=h(u);if(d===null){const{defaultKeyType:p,defaultStringType:w}=t.options,v=s&&p||w;if(d=h(v),d===null)throw new Error(`Unsupported default string type ${v}`)}return d}function dm(e,t){const n=Object.assign({blockQuote:!0,commentString:yb,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 _b(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(ct(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 xb(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const s=[],i=(ct(e)||vt(e))&&e.anchor;i&&om(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 xs(e,t,n,r){var h;if(xt(e))return e.toString(t,n,r);if(Qr(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=_t(e)?e:t.doc.createNode(e,{onTagObj:d=>s=d});s??(s=_b(t.doc.schema.tags,i));const o=xb(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):ct(i)?gc(i,t,n,r):i.toString(t,n,r);return o?ct(i)||u[0]==="{"||u[0]==="["?`${o} ${u}`:`${o}
|
||
${t.indent}${u}`:u}function kb({key:e,value:t},n,r,s){const{allNullValues:i,doc:o,indent:u,indentStep:h,options:{commentString:d,indentSeq:p,simpleKeys:w}}=n;let v=_t(e)&&e.comment||null;if(w){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(vt(e)||!_t(e)&&typeof e=="object"){const j="With simple keys, collection cannot be used as a key value";throw new Error(j)}}let x=!w&&(!e||v&&t==null&&!n.inFlow||vt(e)||(ct(e)?e.type===Pe.BLOCK_FOLDED||e.type===Pe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!x&&(w||!i),indent:u+h});let k=!1,A=!1,N=xs(e,n,()=>k=!0,()=>A=!0);if(!x&&!n.inFlow&&N.length>1024){if(w)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");x=!0}if(n.inFlow){if(i||t==null)return k&&r&&r(),N===""?"?":x?`? ${N}`:N}else if(i&&!w||t==null&&x)return N=`? ${N}`,v&&!k?N+=Fr(N,n.indent,d(v)):A&&s&&s(),N;k&&(v=null),x?(v&&(N+=Fr(N,n.indent,d(v))),N=`? ${N}
|
||
${u}:`):(N=`${N}:`,v&&(N+=Fr(N,n.indent,d(v))));let I,V,D;_t(t)?(I=!!t.spaceBefore,V=t.commentBefore,D=t.comment):(I=!1,V=null,D=null,t&&typeof t=="object"&&(t=o.createNode(t))),n.implicitKey=!1,!x&&!v&&ct(t)&&(n.indentAtStart=N.length+1),A=!1,!p&&h.length>=2&&!n.inFlow&&!x&&Si(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let M=!1;const B=xs(t,n,()=>M=!0,()=>A=!0);let P=" ";if(v||I||V){if(P=I?`
|
||
`:"",V){const j=d(V);P+=`
|
||
${er(j,n.indent)}`}B===""&&!n.inFlow?P===`
|
||
`&&D&&(P=`
|
||
|
||
`):P+=`
|
||
${n.indent}`}else if(!x&&vt(t)){const j=B[0],W=B.indexOf(`
|
||
`),Y=W!==-1,pe=n.inFlow??t.flow??t.items.length===0;if(Y||!pe){let Me=!1;if(Y&&(j==="&"||j==="!")){let be=B.indexOf(" ");j==="&"&&be!==-1&&be<W&&B[be+1]==="!"&&(be=B.indexOf(" ",be+1)),(be===-1||W<be)&&(Me=!0)}Me||(P=`
|
||
${n.indent}`)}}else(B===""||B[0]===`
|
||
`)&&(P="");return N+=P+B,n.inFlow?M&&r&&r():D&&!M?N+=Fr(N,n.indent,d(D)):A&&s&&s(),N}function mm(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const fa="<<",rr={identify:e=>e===fa||typeof e=="symbol"&&e.description===fa,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Pe(Symbol(fa)),{addToJSMap:pm}),stringify:()=>fa},Sb=(e,t)=>(rr.identify(t)||ct(t)&&(!t.type||t.type===Pe.PLAIN)&&rr.identify(t.value))&&(e==null?void 0:e.doc.schema.tags.some(n=>n.tag===rr.tag&&n.default));function pm(e,t,n){if(n=e&&Qr(n)?n.resolve(e.doc):n,Si(n))for(const r of n.items)Dl(e,t,r);else if(Array.isArray(n))for(const r of n)Dl(e,t,r);else Dl(e,t,n)}function Dl(e,t,n){const r=e&&Qr(n)?n.resolve(e.doc):n;if(!ki(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 gm(e,t,{key:n,value:r}){if(_t(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Sb(e,n))pm(e,t,r);else{const s=xn(n,"",e);if(t instanceof Map)t.set(s,xn(r,s,e));else if(t instanceof Set)t.add(s);else{const i=Ab(n,s,e),o=xn(r,i,e);i in t?Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[i]=o}}return t}function Ab(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(_t(e)&&(n!=null&&n.doc)){const r=dm(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)+'..."'),mm(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 bc(e,t,n){const r=mi(e,void 0,n),s=mi(t,void 0,n);return new Zt(r,s)}class Zt{constructor(t,n=null){Object.defineProperty(this,kn,{value:im}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return _t(n)&&(n=n.clone(t)),_t(r)&&(r=r.clone(t)),new Zt(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return gm(n,r,this)}toString(t,n,r){return t!=null&&t.doc?kb(this,t,n,r):JSON.stringify(this)}}function bm(e,t,n){return(t.inFlow??e.flow?Tb:Eb)(e,t,n)}function Eb({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 w=!1;const v=[];for(let k=0;k<t.length;++k){const A=t[k];let N=null;if(_t(A))!w&&A.spaceBefore&&v.push(""),Xa(n,v,A.commentBefore,w),A.comment&&(N=A.comment);else if(xt(A)){const V=_t(A.key)?A.key:null;V&&(!w&&V.spaceBefore&&v.push(""),Xa(n,v,V.commentBefore,w))}w=!1;let I=xs(A,p,()=>N=null,()=>w=!0);N&&(I+=Fr(I,i,d(N))),w&&N&&(w=!1),v.push(r+I)}let x;if(v.length===0)x=s.start+s.end;else{x=v[0];for(let k=1;k<v.length;++k){const A=v[k];x+=A?`
|
||
${h}${A}`:`
|
||
`}}return e?(x+=`
|
||
`+er(d(e),h),u&&u()):w&&o&&o(),x}function Tb({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 w=[];for(let k=0;k<e.length;++k){const A=e[k];let N=null;if(_t(A))A.spaceBefore&&w.push(""),Xa(t,w,A.commentBefore,!1),A.comment&&(N=A.comment);else if(xt(A)){const V=_t(A.key)?A.key:null;V&&(V.spaceBefore&&w.push(""),Xa(t,w,V.commentBefore,!1),V.comment&&(d=!0));const D=_t(A.value)?A.value:null;D?(D.comment&&(N=D.comment),D.commentBefore&&(d=!0)):A.value==null&&(V!=null&&V.comment)&&(N=V.comment)}N&&(d=!0);let I=xs(A,h,()=>N=null);k<e.length-1&&(I+=","),N&&(I+=Fr(I,r,u(N))),!d&&(w.length>p||I.includes(`
|
||
`))&&(d=!0),w.push(I),p=w.length}const{start:v,end:x}=n;if(w.length===0)return v+x;if(!d){const k=w.reduce((A,N)=>A+N.length+2,2);d=t.options.lineWidth>0&&k>t.options.lineWidth}if(d){let k=v;for(const A of w)k+=A?`
|
||
${i}${s}${A}`:`
|
||
`;return`${k}
|
||
${s}${x}`}else return`${v}${o}${w.join(" ")}${o}${x}`}function Xa({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const i=er(t(r),e);n.push(i.trimStart())}}function zr(e,t){const n=ct(t)?t.value:t;for(const r of e)if(xt(r)&&(r.key===t||r.key===n||ct(r.key)&&r.key.value===n))return r}class _n extends fm{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(wr,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(bc(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;xt(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Zt(t,t==null?void 0:t.value):r=new Zt(t.key,t.value);const s=zr(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`);ct(s.value)&&um(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=zr(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=zr(this.items,t),s=r==null?void 0:r.value;return(!n&&ct(s)?s.value:s)??void 0}has(t){return!!zr(this.items,t)}set(t,n){this.add(new Zt(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)gm(n,s,i);return s}toString(t,n,r){if(!t)return JSON.stringify(this);for(const s of this.items)if(!xt(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})),bm(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const Ls={collection:"map",default:!0,nodeClass:_n,tag:"tag:yaml.org,2002:map",resolve(e,t){return ki(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>_n.from(e,t,n)};class Gr extends fm{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Os,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=ha(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=ha(t);if(typeof r!="number")return;const s=this.items[r];return!n&&ct(s)?s.value:s}has(t){const n=ha(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=ha(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const s=this.items[r];ct(s)&&um(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(xn(i,String(s++),n));return r}toString(t,n,r){return t?bm(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(mi(u,void 0,r))}}return i}}function ha(e){let t=ct(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Ds={collection:"seq",default:!0,nodeClass:Gr,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Si(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Gr.from(e,t,n)},vo={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),gc(e,t,n,r)}},_o={identify:e=>e==null,createNode:()=>new Pe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Pe(null),stringify:({source:e},t)=>typeof e=="string"&&_o.test.test(e)?e:t.options.nullStr},yc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Pe(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&yc.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 On({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 ym={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:On},wm={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():On(e)}},vm={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 Pe(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:On},xo=e=>typeof e=="bigint"||Number.isInteger(e),wc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function _m(e,t,n){const{value:r}=e;return xo(r)&&r>=0?n+r.toString(t):On(e)}const xm={identify:e=>xo(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>wc(e,2,8,n),stringify:e=>_m(e,8,"0o")},km={identify:xo,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>wc(e,0,10,n),stringify:On},Sm={identify:e=>xo(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>wc(e,2,16,n),stringify:e=>_m(e,16,"0x")},Nb=[Ls,Ds,vo,_o,yc,xm,km,Sm,ym,wm,vm];function yh(e){return typeof e=="bigint"||Number.isInteger(e)}const da=({value:e})=>JSON.stringify(e),Cb=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:da},{identify:e=>e==null,createNode:()=>new Pe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:da},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:da},{identify:yh,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})=>yh(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:da}],Ib={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Ob=[Ls,Ds].concat(Cb,Ib),vc={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=Pe.BLOCK_LITERAL),t!==Pe.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 w=0,v=0;w<d;++w,v+=h)p[w]=u.substr(v,h);u=p.join(t===Pe.BLOCK_LITERAL?`
|
||
`:" ")}return gc({comment:e,type:t,value:u},r,s,i)}};function Am(e,t){if(Si(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!xt(r)){if(ki(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const s=r.items[0]||new Zt(new Pe(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]=xt(r)?r:new Zt(r)}}else t("Expected a sequence for this tag");return e}function Em(e,t,n){const{replacer:r}=n,s=new Gr(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(bc(u,h,n))}return s}const _c={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Am,createNode:Em};class gs extends Gr{constructor(){super(),this.add=_n.prototype.add.bind(this),this.delete=_n.prototype.delete.bind(this),this.get=_n.prototype.get.bind(this),this.has=_n.prototype.has.bind(this),this.set=_n.prototype.set.bind(this),this.tag=gs.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(xt(s)?(i=xn(s.key,"",n),o=xn(s.value,i,n)):i=xn(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=Em(t,n,r),i=new this;return i.items=s.items,i}}gs.tag="tag:yaml.org,2002:omap";const xc={collection:"seq",identify:e=>e instanceof Map,nodeClass:gs,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Am(e,t),r=[];for(const{key:s}of n.items)ct(s)&&(r.includes(s.value)?t(`Ordered maps must not include duplicate keys: ${s.value}`):r.push(s.value));return Object.assign(new gs,n)},createNode:(e,t,n)=>gs.from(e,t,n)};function Tm({value:e,source:t},n){return t&&(e?Nm:Cm).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Nm={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 Pe(!0),stringify:Tm},Cm={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 Pe(!1),stringify:Tm},Mb={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:On},Lb={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():On(e)}},Db={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 Pe(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:On},Ai=e=>typeof e=="bigint"||Number.isInteger(e);function ko(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 kc(e,t,n){const{value:r}=e;if(Ai(r)){const s=r.toString(t);return r<0?"-"+n+s.substr(1):n+s}return On(e)}const Rb={identify:Ai,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>ko(e,2,2,n),stringify:e=>kc(e,2,"0b")},Pb={identify:Ai,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>ko(e,1,8,n),stringify:e=>kc(e,8,"0")},$b={identify:Ai,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>ko(e,0,10,n),stringify:On},Bb={identify:Ai,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>ko(e,2,16,n),stringify:e=>kc(e,16,"0x")};class bs extends _n{constructor(t){super(t),this.tag=bs.tag}add(t){let n;xt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Zt(t.key,null):n=new Zt(t,null),zr(this.items,n.key)||this.items.push(n)}get(t,n){const r=zr(this.items,t);return!n&&xt(r)?ct(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=zr(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Zt(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(bc(o,null,r));return i}}bs.tag="tag:yaml.org,2002:set";const Sc={collection:"map",identify:e=>e instanceof Set,nodeClass:bs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>bs.from(e,t,n),resolve(e,t){if(ki(e)){if(e.hasAllNullValues(!0))return Object.assign(new bs,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Ac(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 Im(e){let{value:t}=e,n=o=>o;if(typeof t=="bigint")n=o=>BigInt(o);else if(isNaN(t)||!isFinite(t))return On(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 Om={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})=>Ac(e,n),stringify:Im},Mm={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=>Ac(e,!1),stringify:Im},So={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(So.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 w=Ac(p,!1);Math.abs(w)<30&&(w*=60),d-=6e4*w}return new Date(d)},stringify:({value:e})=>(e==null?void 0:e.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},wh=[Ls,Ds,vo,_o,Nm,Cm,Rb,Pb,$b,Bb,Mb,Lb,Db,vc,rr,xc,_c,Sc,Om,Mm,So],vh=new Map([["core",Nb],["failsafe",[Ls,Ds,vo]],["json",Ob],["yaml11",wh],["yaml-1.1",wh]]),_h={binary:vc,bool:yc,float:vm,floatExp:wm,floatNaN:ym,floatTime:Mm,int:km,intHex:Sm,intOct:xm,intTime:Om,map:Ls,merge:rr,null:_o,omap:xc,pairs:_c,seq:Ds,set:Sc,timestamp:So},Fb={"tag:yaml.org,2002:binary":vc,"tag:yaml.org,2002:merge":rr,"tag:yaml.org,2002:omap":xc,"tag:yaml.org,2002:pairs":_c,"tag:yaml.org,2002:set":Sc,"tag:yaml.org,2002:timestamp":So};function Rl(e,t,n){const r=vh.get(t);if(r&&!e)return n&&!r.includes(rr)?r.concat(rr):r.slice();let s=r;if(!s)if(Array.isArray(e))s=[];else{const i=Array.from(vh.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(rr)),s.reduce((i,o)=>{const u=typeof o=="string"?_h[o]:o;if(!u){const h=JSON.stringify(o),d=Object.keys(_h).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 zb=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Ec{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:s,schema:i,sortMapEntries:o,toStringDefaults:u}){this.compat=Array.isArray(t)?Rl(t,"compat"):t?Rl(null,t):null,this.name=typeof i=="string"&&i||"core",this.knownTags=s?Fb:{},this.tags=Rl(n,this.name,r),this.toStringOptions=u??null,Object.defineProperty(this,wr,{value:Ls}),Object.defineProperty(this,Un,{value:vo}),Object.defineProperty(this,Os,{value:Ds}),this.sortMapEntries=typeof o=="function"?o:o===!0?zb:null}clone(){const t=Object.create(Ec.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function qb(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=dm(e,t),{commentString:i}=s.options;if(e.commentBefore){n.length!==1&&n.unshift("");const d=i(e.commentBefore);n.unshift(er(d,""))}let o=!1,u=null;if(e.contents){if(_t(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const w=i(e.contents.commentBefore);n.push(er(w,""))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}const d=u?void 0:()=>o=!0;let p=xs(e.contents,s,()=>u=null,d);u&&(p+=Fr(p,"",i(u))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(xs(e.contents,s));if((h=e.directives)!=null&&h.docEnd)if(e.comment){const d=i(e.comment);d.includes(`
|
||
`)?(n.push("..."),n.push(er(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(er(i(d),"")))}return n.join(`
|
||
`)+`
|
||
`}class Ao{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,kn,{value:w0});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 Jt({version:o}),this.setSchema(o,r),this.contents=t===void 0?null:this.createNode(t,s,r)}clone(){const t=Object.create(Ao.prototype,{[kn]:{value:w0}});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=_t(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){is(this.contents)&&this.contents.add(t)}addIn(t,n){is(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=lm(this);t.anchor=!n||r.has(n)?cm(n||"a",r):n}return new pc(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 N=V=>typeof V=="number"||V instanceof String||V instanceof Number,I=n.filter(N).map(String);I.length>0&&(n=n.concat(I)),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:w,setAnchors:v,sourceObjects:x}=pb(this,o||"a"),k={aliasDuplicateObjects:i??!0,keepUndefined:h??!1,onAnchor:w,onTagObj:d,replacer:s,schema:this.schema,sourceObjects:x},A=mi(t,p,k);return u&&vt(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 Zt(s,i)}delete(t){return is(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Ys(t)?this.contents==null?!1:(this.contents=null,!0):is(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return vt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Ys(t)?!n&&ct(this.contents)?this.contents.value:this.contents:vt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return vt(this.contents)?this.contents.has(t):!1}hasIn(t){return Ys(t)?this.contents!==void 0:vt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Ka(this.schema,[t],n):is(this.contents)&&this.contents.set(t,n)}setIn(t,n){Ys(t)?this.contents=n:this.contents==null?this.contents=Ka(this.schema,Array.from(t),n):is(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 Jt({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 Jt({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 Ec(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=xn(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"?hs(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 qb(this,t)}}function is(e){if(vt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Lm extends Error{constructor(t,n,r,s){super(),this.name=t,this.code=r,this.message=s,this.pos=n}}class Js extends Lm{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class Ub extends Lm{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const xh=(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 ks(e,{flow:t,indicator:n,next:r,offset:s,onError:i,parentIndent:o,startOnNewline:u}){let h=!1,d=u,p=u,w="",v="",x=!1,k=!1,A=null,N=null,I=null,V=null,D=null,M=null,B=null;for(const W of e)switch(k&&(W.type!=="space"&&W.type!=="newline"&&W.type!=="comma"&&i(W.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),k=!1),A&&(d&&W.type!=="comment"&&W.type!=="newline"&&i(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),A=null),W.type){case"space":!t&&(n!=="doc-start"||(r==null?void 0:r.type)!=="flow-collection")&&W.source.includes(" ")&&(A=W),p=!0;break;case"comment":{p||i(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Y=W.source.substring(1)||" ";w?w+=v+Y:w=Y,v="",d=!1;break}case"newline":d?w?w+=W.source:(!M||n!=="seq-item-ind")&&(h=!0):v+=W.source,d=!0,x=!0,(N||I)&&(V=W),p=!0;break;case"anchor":N&&i(W,"MULTIPLE_ANCHORS","A node can have at most one anchor"),W.source.endsWith(":")&&i(W.offset+W.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),N=W,B??(B=W.offset),d=!1,p=!1,k=!0;break;case"tag":{I&&i(W,"MULTIPLE_TAGS","A node can have at most one tag"),I=W,B??(B=W.offset),d=!1,p=!1,k=!0;break}case n:(N||I)&&i(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),M&&i(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),M=W,d=n==="seq-item-ind"||n==="explicit-key-ind",p=!1;break;case"comma":if(t){D&&i(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),D=W,d=!1,p=!1;break}default:i(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),d=!1,p=!1}const P=e[e.length-1],j=P?P.offset+P.source.length:s;return k&&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:D,found:M,spaceBefore:h,comment:w,hasNewline:x,anchor:N,tag:I,newlineAfterProp:V,end:j,start:B??j}}function pi(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(pi(t.key)||pi(t.value))return!0}return!1;default:return!0}}function k0(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&pi(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Dm(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const s=typeof r=="function"?r:(i,o)=>i===o||ct(i)&&ct(o)&&i.value===o.value;return t.some(i=>s(i.key,n))}const kh="All mapping items must start at the same column";function Hb({composeNode:e,composeEmptyNode:t},n,r,s,i){var p;const o=(i==null?void 0:i.nodeClass)??_n,u=new o(n.schema);n.atRoot&&(n.atRoot=!1);let h=r.offset,d=null;for(const w of r.items){const{start:v,key:x,sep:k,value:A}=w,N=ks(v,{indicator:"explicit-key-ind",next:x??(k==null?void 0:k[0]),offset:h,onError:s,parentIndent:r.indent,startOnNewline:!0}),I=!N.found;if(I){if(x&&(x.type==="block-seq"?s(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in x&&x.indent!==r.indent&&s(h,"BAD_INDENT",kh)),!N.anchor&&!N.tag&&!k){d=N.end,N.comment&&(u.comment?u.comment+=`
|
||
`+N.comment:u.comment=N.comment);continue}(N.newlineAfterProp||pi(x))&&s(x??v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=N.found)==null?void 0:p.indent)!==r.indent&&s(h,"BAD_INDENT",kh);n.atKey=!0;const V=N.end,D=x?e(n,x,N,s):t(n,V,v,null,N,s);n.schema.compat&&k0(r.indent,x,s),n.atKey=!1,Dm(n,u.items,D)&&s(V,"DUPLICATE_KEY","Map keys must be unique");const M=ks(k??[],{indicator:"map-value-ind",next:A,offset:D.range[2],onError:s,parentIndent:r.indent,startOnNewline:!x||x.type==="block-scalar"});if(h=M.end,M.found){I&&((A==null?void 0:A.type)==="block-map"&&!M.hasNewline&&s(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&N.start<M.found.offset-1024&&s(D.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const B=A?e(n,A,M,s):t(n,h,k,null,M,s);n.schema.compat&&k0(r.indent,A,s),h=B.range[2];const P=new Zt(D,B);n.options.keepSourceTokens&&(P.srcToken=w),u.items.push(P)}else{I&&s(D.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),M.comment&&(D.comment?D.comment+=`
|
||
`+M.comment:D.comment=M.comment);const B=new Zt(D);n.options.keepSourceTokens&&(B.srcToken=w),u.items.push(B)}}return d&&d<h&&s(d,"IMPOSSIBLE","Map comment with trailing content"),u.range=[r.offset,h,d??h],u}function Vb({composeNode:e,composeEmptyNode:t},n,r,s,i){const o=(i==null?void 0:i.nodeClass)??Gr,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:w}of r.items){const v=ks(p,{indicator:"seq-item-ind",next:w,offset:h,onError:s,parentIndent:r.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||w)(w==null?void 0:w.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 x=w?e(n,w,v,s):t(n,v.end,p,null,v,s);n.schema.compat&&k0(r.indent,w,s),h=x.range[2],u.items.push(x)}return u.range=[r.offset,h,d??h],u}function Ei(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 Pl="Block collections are not allowed within flow collections",$l=e=>e&&(e.type==="block-map"||e.type==="block-seq");function jb({composeNode:e,composeEmptyNode:t},n,r,s,i){var N;const o=r.start.source==="{",u=o?"flow map":"flow sequence",h=(i==null?void 0:i.nodeClass)??(o?_n:Gr),d=new h(n.schema);d.flow=!0;const p=n.atRoot;p&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let w=r.offset+r.start.source.length;for(let I=0;I<r.items.length;++I){const V=r.items[I],{start:D,key:M,sep:B,value:P}=V,j=ks(D,{flow:u,indicator:"explicit-key-ind",next:M??(B==null?void 0:B[0]),offset:w,onError:s,parentIndent:r.indent,startOnNewline:!1});if(!j.found){if(!j.anchor&&!j.tag&&!B&&!P){I===0&&j.comma?s(j.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`):I<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),w=j.end;continue}!o&&n.options.strict&&pi(M)&&s(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(I===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 W="";e:for(const Y of D)switch(Y.type){case"comma":case"space":break;case"comment":W=Y.source.substring(1);break e;default:break e}if(W){let Y=d.items[d.items.length-1];xt(Y)&&(Y=Y.value??Y.key),Y.comment?Y.comment+=`
|
||
`+W:Y.comment=W,j.comment=j.comment.substring(W.length+1)}}if(!o&&!B&&!j.found){const W=P?e(n,P,j,s):t(n,j.end,B,null,j,s);d.items.push(W),w=W.range[2],$l(P)&&s(W.range,"BLOCK_IN_FLOW",Pl)}else{n.atKey=!0;const W=j.end,Y=M?e(n,M,j,s):t(n,W,D,null,j,s);$l(M)&&s(Y.range,"BLOCK_IN_FLOW",Pl),n.atKey=!1;const pe=ks(B??[],{flow:u,indicator:"map-value-ind",next:P,offset:Y.range[2],onError:s,parentIndent:r.indent,startOnNewline:!1});if(pe.found){if(!o&&!j.found&&n.options.strict){if(B)for(const xe of B){if(xe===pe.found)break;if(xe.type==="newline"){s(xe,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}j.start<pe.found.offset-1024&&s(pe.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else P&&("source"in P&&((N=P.source)==null?void 0:N[0])===":"?s(P,"MISSING_CHAR",`Missing space after : in ${u}`):s(pe.start,"MISSING_CHAR",`Missing , or : between ${u} items`));const Me=P?e(n,P,pe,s):pe.found?t(n,pe.end,B,null,pe,s):null;Me?$l(P)&&s(Me.range,"BLOCK_IN_FLOW",Pl):pe.comment&&(Y.comment?Y.comment+=`
|
||
`+pe.comment:Y.comment=pe.comment);const be=new Zt(Y,Me);if(n.options.keepSourceTokens&&(be.srcToken=V),o){const xe=d;Dm(n,xe.items,Y)&&s(W,"DUPLICATE_KEY","Map keys must be unique"),xe.items.push(be)}else{const xe=new _n(n.schema);xe.flow=!0,xe.items.push(be);const G=(Me??Y).range;xe.range=[Y.range[0],G[1],G[2]],d.items.push(xe)}w=Me?Me.range[2]:pe.end}}const v=o?"}":"]",[x,...k]=r.end;let A=w;if((x==null?void 0:x.source)===v)A=x.offset+x.source.length;else{const I=u[0].toUpperCase()+u.substring(1),V=p?`${I} must end with a ${v}`:`${I} in block collection must be sufficiently indented and end with a ${v}`;s(w,p?"MISSING_CHAR":"BAD_INDENT",V),x&&x.source.length!==1&&k.unshift(x)}if(k.length>0){const I=Ei(k,A,n.options.strict,s);I.comment&&(d.comment?d.comment+=`
|
||
`+I.comment:d.comment=I.comment),d.range=[r.offset,A,I.offset]}else d.range=[r.offset,A,A];return d}function Bl(e,t,n,r,s,i){const o=n.type==="block-map"?Hb(e,t,n,r,i):n.type==="block-seq"?Vb(e,t,n,r,i):jb(e,t,n,r,i),u=o.constructor;return s==="!"||s===u.tagName?(o.tag=u.tagName,o):(s&&(o.tag=s),o)}function Wb(e,t,n,r,s){var v;const i=r.tag,o=i?t.directives.tagName(i.source,x=>s(i,"TAG_RESOLVE_FAILED",x)):null;if(n.type==="block-seq"){const{anchor:x,newlineAfterProp:k}=r,A=x&&i?x.offset>i.offset?x:i:x??i;A&&(!k||k.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===_n.tagName&&u==="map"||o===Gr.tagName&&u==="seq")return Bl(e,t,n,s,o);let h=t.schema.tags.find(x=>x.tag===o&&x.collection===u);if(!h){const x=t.schema.knownTags[o];if((x==null?void 0:x.collection)===u)t.schema.tags.push(Object.assign({},x,{default:!1})),h=x;else return x?s(i,"BAD_COLLECTION_TYPE",`${x.tag} used for ${u} collection, but expects ${x.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Bl(e,t,n,s,o)}const d=Bl(e,t,n,s,o,h),p=((v=h.resolve)==null?void 0:v.call(h,d,x=>s(i,"TAG_RESOLVE_FAILED",x),t.options))??d,w=_t(p)?p:new Pe(p);return w.range=d.range,w.tag=o,h!=null&&h.format&&(w.format=h.format),w}function Gb(e,t,n){const r=t.offset,s=Kb(t,e.options.strict,n);if(!s)return{value:"",type:null,comment:"",range:[r,r,r]};const i=s.mode===">"?Pe.BLOCK_FOLDED:Pe.BLOCK_LITERAL,o=t.source?Xb(t.source):[];let u=o.length;for(let A=o.length-1;A>=0;--A){const N=o[A][1];if(N===""||N==="\r")u=A;else break}if(u===0){const A=s.chomp==="+"&&o.length>0?`
|
||
`.repeat(Math.max(1,o.length-1)):"";let N=r+s.length;return t.source&&(N+=t.source.length),{value:A,type:i,comment:s.comment,range:[r,N,N]}}let h=t.indent+s.indent,d=t.offset+s.length,p=0;for(let A=0;A<u;++A){const[N,I]=o[A];if(I===""||I==="\r")s.indent===0&&N.length>h&&(h=N.length);else{N.length<h&&n(d+N.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(h=N.length),p=A,h===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=N.length+I.length+1}for(let A=o.length-1;A>=u;--A)o[A][0].length>h&&(u=A+1);let w="",v="",x=!1;for(let A=0;A<p;++A)w+=o[A][0].slice(h)+`
|
||
`;for(let A=p;A<u;++A){let[N,I]=o[A];d+=N.length+I.length+1;const V=I[I.length-1]==="\r";if(V&&(I=I.slice(0,-1)),I&&N.length<h){const M=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;n(d-I.length-(V?2:1),"BAD_INDENT",M),N=""}i===Pe.BLOCK_LITERAL?(w+=v+N.slice(h)+I,v=`
|
||
`):N.length>h||I[0]===" "?(v===" "?v=`
|
||
`:!x&&v===`
|
||
`&&(v=`
|
||
|
||
`),w+=v+N.slice(h)+I,v=`
|
||
`,x=!0):I===""?v===`
|
||
`?w+=`
|
||
`:v=`
|
||
`:(w+=v+I,v=" ",x=!1)}switch(s.chomp){case"-":break;case"+":for(let A=u;A<o.length;++A)w+=`
|
||
`+o[A][0].slice(h);w[w.length-1]!==`
|
||
`&&(w+=`
|
||
`);break;default:w+=`
|
||
`}const k=r+s.length+t.source.length;return{value:w,type:i,comment:s.comment,range:[r,k,k]}}function Kb({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 x=s[v];if(!u&&(x==="-"||x==="+"))u=x;else{const k=Number(x);!o&&k?o=k:h===-1&&(h=e+v)}}h!==-1&&r(h,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let d=!1,p="",w=s.length;for(let v=1;v<t.length;++v){const x=t[v];switch(x.type){case"space":d=!0;case"newline":w+=x.source.length;break;case"comment":n&&!d&&r(x,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),w+=x.source.length,p=x.source.substring(1);break;case"error":r(x,"UNEXPECTED_TOKEN",x.message),w+=x.source.length;break;default:{const k=`Unexpected token in block scalar header: ${x.type}`;r(x,"UNEXPECTED_TOKEN",k);const A=x.source;A&&typeof A=="string"&&(w+=A.length)}}}return{mode:i,indent:o,chomp:u,comment:p,length:w}}function Xb(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 Yb(e,t,n){const{offset:r,type:s,source:i,end:o}=e;let u,h;const d=(v,x,k)=>n(r+v,x,k);switch(s){case"scalar":u=Pe.PLAIN,h=Jb(i,d);break;case"single-quoted-scalar":u=Pe.QUOTE_SINGLE,h=Qb(i,d);break;case"double-quoted-scalar":u=Pe.QUOTE_DOUBLE,h=Zb(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,w=Ei(o,p,t,n);return{value:h,type:u,comment:w.comment,range:[r,p,w.offset]}}function Jb(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}`),Rm(e)}function Qb(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Rm(e.slice(1,-1)).replace(/''/g,"'")}function Rm(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 Zb(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}=ey(e,r);n+=i,r=o}else if(s==="\\"){let i=e[++r];const o=ty[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+=ny(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 ey(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 ty={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
||
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function ny(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 Pm(e,t,n,r){const{value:s,type:i,comment:o,range:u}=t.type==="block-scalar"?Gb(e,t,r):Yb(t,e.options.strict,r),h=n?e.directives.tagName(n.source,w=>r(n,"TAG_RESOLVE_FAILED",w)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[Un]:h?d=ry(e.schema,s,h,n,r):t.type==="scalar"?d=sy(e,s,t,r):d=e.schema[Un];let p;try{const w=d.resolve(s,v=>r(n??t,"TAG_RESOLVE_FAILED",v),e.options);p=ct(w)?w:new Pe(w)}catch(w){const v=w instanceof Error?w.message:String(w);r(n??t,"TAG_RESOLVE_FAILED",v),p=new Pe(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 ry(e,t,n,r,s){var u;if(n==="!")return e[Un];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[Un])}function sy({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[Un];if(n.compat){const u=n.compat.find(h=>{var d;return h.default&&((d=h.test)==null?void 0:d.test(r))})??n[Un];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 iy(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 ay={composeNode:$m,composeEmptyNode:Tc};function $m(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=oy(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=Pm(e,t,h,r),u&&(d.anchor=u.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=Wb(ay,e,t,n,r),u&&(d.anchor=u.source.substring(1));break;default:{const w=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",w),d=Tc(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&&(!ct(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 Tc(e,t,n,r,{spaceBefore:s,comment:i,anchor:o,tag:u,end:h},d){const p={type:"scalar",offset:iy(t,n,r),indent:-1,source:""},w=Pm(e,p,u,d);return o&&(w.anchor=o.source.substring(1),w.anchor===""&&d(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(w.spaceBefore=!0),i&&(w.comment=i,w.range[2]=h),w}function oy({options:e},{offset:t,source:n,end:r},s){const i=new pc(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=Ei(r,o,e.strict,s);return i.range=[t,o,u.offset],u.comment&&(i.comment=u.comment),i}function ly(e,t,{offset:n,start:r,value:s,end:i},o){const u=Object.assign({_directives:t},e),h=new Ao(void 0,u),d={atKey:!1,atRoot:!0,directives:h.directives,options:h.options,schema:h.schema},p=ks(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?$m(d,s,p,o):Tc(d,p.end,r,null,p,o);const w=h.contents.range[2],v=Ei(i,w,!1,o);return v.comment&&(h.comment=v.comment),h.range=[n,w,v.offset],h}function Vs(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 Sh(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 cy{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,s,i)=>{const o=Vs(n);i?this.warnings.push(new Ub(o,r,s)):this.errors.push(new Js(o,r,s))},this.directives=new Jt({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:s}=Sh(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(vt(i)&&!i.flow&&i.items.length>0){let o=i.items[0];xt(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:Sh(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=Vs(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,s)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=ly(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 Js(Vs(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 Js(Vs(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Ei(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 Js(Vs(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 Ao(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 Bm="\uFEFF",Fm="",zm="",S0="";function uy(e){switch(e){case Bm:return"byte-order-mark";case Fm:return"doc-mode";case zm:return"flow-error-end";case S0: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 Tn(e){switch(e){case void 0:case" ":case`
|
||
`:case"\r":case" ":return!0;default:return!1}}const Ah=new Set("0123456789ABCDEFabcdef"),fy=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),ma=new Set(",[]{}"),hy=new Set(` ,[]{}
|
||
\r `),Fl=e=>!e||hy.has(e);class dy{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==="...")&&Tn(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]===Bm&&(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 Fm,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==="...")&&Tn(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&&!Tn(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===":")&&Tn(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(Fl),"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("..."))&&Tn(s[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield zm,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(Fl),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Tn(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=>Tn(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 S0,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(Tn(i)||t&&ma.has(i))break;n=r}else if(Tn(s)){let i=this.buffer[r+1];if(s==="\r"&&(i===`
|
||
`?(r+=1,s=`
|
||
`,i=this.buffer[r+1]):n=r),i==="#"||t&&ma.has(i))break;if(s===`
|
||
`){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(t&&ma.has(s))break;n=r}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield S0,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(Fl))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Tn(n)||t&&ma.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(;!Tn(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(fy.has(n))n=this.buffer[++t];else if(n==="%"&&Ah.has(this.buffer[t+1])&&Ah.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 my{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 dr(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Eh(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 pa(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 as(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 Th(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!dr(t.start,"explicit-key-ind")&&!dr(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 py{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 dy,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=uy(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"&&Th(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&&Eh(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":{Eh(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=pa(this.peek(2)),r=as(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(dr(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)&&!dr(n.sep,"newline")){const u=as(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(dr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=as(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]}):dr(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&&!dr(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||dr(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=pa(r),i=as(s);Th(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=pa(t),r=as(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=pa(t),r=as(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 gy(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new my||null,prettyErrors:t}}function by(e,t={}){const{lineCounter:n,prettyErrors:r}=gy(t),s=new py(n==null?void 0:n.addNewLine),i=new cy(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 Js(u.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(xh(e,n)),o.warnings.forEach(xh(e,n))),o}function yy(e,t,n){let r;const s=by(e,n);if(!s)return null;if(s.warnings.forEach(i=>mm(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 Um={},Hm={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(typeof self<"u"?self:Ql,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 eg}});class s{constructor(a,c){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let f="KaTeX parse error: "+a,m,y;const _=c&&c.loc;if(_&&_.start<=_.end){const C=_.lexer.input;m=_.start,y=_.end,m===C.length?f+=" at end of input: ":f+=" at position "+(m+1)+": ";const R=C.slice(m,y).replace(/[^]/g,"$&̲");let q;m>15?q="…"+C.slice(m-15,m):q=C.slice(0,m);let H;y+15<C.length?H=C.slice(y,y+15)+"…":H=C.slice(y),f+=q+R+H}const E=new Error(f);return E.name="ParseError",E.__proto__=s.prototype,E.position=m,m!=null&&y!=null&&(E.length=y-m),E.rawMessage=a,E}}s.prototype.__proto__=Error.prototype;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]),w=l=>l.type==="ordgroup"||l.type==="color"?l.body.length===1?w(l.body[0]):l:l.type==="font"?w(l.body):l,v=new Set(["mathord","textord","atom"]),x=l=>v.has(w(l).type),k=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 N(l){if(l.default)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 I{constructor(a){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,a=a||{};for(const c in A)if(A.hasOwnProperty(c)){const f=A[c];this[c]=a[c]!==void 0?f.processor?f.processor(a[c]):a[c]:N(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(a.url&&!a.protocol){const f=k(a.url);if(f==null)return!1;a.protocol=f}return!!(typeof this.trust=="function"?this.trust(a):this.trust)}}class V{constructor(a,c,f){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=a,this.size=c,this.cramped=f}sup(){return Me[be[this.id]]}sub(){return Me[xe[this.id]]}fracNum(){return Me[G[this.id]]}fracDen(){return Me[he[this.id]]}cramp(){return Me[Q[this.id]]}text(){return Me[ge[this.id]]}isTight(){return this.size>=2}}const D=0,M=1,B=2,P=3,j=4,W=5,Y=6,pe=7,Me=[new V(D,0,!1),new V(M,0,!0),new V(B,1,!1),new V(P,1,!0),new V(j,2,!1),new V(W,2,!0),new V(Y,3,!1),new V(pe,3,!0)],be=[j,W,j,W,Y,pe,Y,pe],xe=[W,W,W,W,pe,pe,pe,pe],G=[B,P,j,W,Y,pe,Y,pe],he=[P,P,W,W,pe,pe,pe,pe],Q=[M,M,P,P,W,W,pe,pe],ge=[D,M,B,P,B,P,B,P];var te={DISPLAY:Me[D],TEXT:Me[B],SCRIPT:Me[j],SCRIPTSCRIPT:Me[Y]};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 Le(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 ve=[];Ae.forEach(l=>l.blocks.forEach(a=>ve.push(...a)));function U(l){for(let a=0;a<ve.length;a+=2)if(l>=ve[a]&&l<=ve[a+1])return!0;return!1}const ce=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"},et=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"},Et=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"},Lt=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"},qt=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"},Sn=function(l){const a=l/2;return"M400000 "+l+" H0 L"+a+" 0 l65 45 L145 "+(l-80)+" H400000z"},ir=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"},Er=function(l,a,c){a=1e3*a;let f="";switch(l){case"sqrtMain":f=Ee(a,ce);break;case"sqrtSize1":f=et(a,ce);break;case"sqrtSize2":f=Et(a,ce);break;case"sqrtSize3":f=Lt(a,ce);break;case"sqrtSize4":f=qt(a,ce);break;case"sqrtTall":f=ir(a,ce,c)}return f},Tr=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""}},ar={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`},le=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.")}};var $e={"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 An={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]},Vn={Å:"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 Nr(l,a){$e[l]=a}function Cr(l,a,c){if(!$e[a])throw new Error("Font metrics not found for font: "+a+".");let f=l.charCodeAt(0),m=$e[a][f];if(!m&&l[0]in Vn&&(f=Vn[l[0]].charCodeAt(0),m=$e[a][f]),!m&&c==="text"&&U(f)&&(m=$e[a][77]),m)return{depth:m[0],height:m[1],italic:m[2],skew:m[3],width:m[4]}}const $={};function F(l){let a;if(l>=5?a=0:l>=3?a=1:a=2,!$[a]){const c=$[a]={cssEmPerMu:An.quad[a]/18};for(const f in An)An.hasOwnProperty(f)&&(c[f]=An[f][a])}return $[a]}const ee=[[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]],we=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],st=function(l,a){return a.size<2?l:ee[l-1][a.size-1]};class _e{constructor(a){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=a.style,this.color=a.color,this.size=a.size||_e.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=we[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};for(const f in a)a.hasOwnProperty(f)&&(c[f]=a[f]);return new _e(c)}havingStyle(a){return this.style===a?this:this.extend({style:a,size:st(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:we[a-1]})}havingBaseStyle(a){a=a||this.style.text();const c=st(_e.BASESIZE,a);return this.size===c&&this.textSize===_e.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!==_e.BASESIZE?["sizing","reset-size"+this.size,"size"+_e.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=F(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}_e.BASESIZE=6;var J=_e;const re={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},tt={ex:!0,em:!0,mu:!0},ft=function(l){return typeof l!="string"&&(l=l.unit),l in re||l in tt||l==="ex"},Ke=function(l,a){let c;if(l.unit in re)c=re[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)},oe=function(l){return+l.toFixed(4)+"em"},jt=function(l){return l.filter(a=>a).join(" ")},Di=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)}},Ro=function(l){const a=document.createElement(l);a.className=jt(this.classes);for(const c in this.style)this.style.hasOwnProperty(c)&&(a.style[c]=this.style[c]);for(const c in this.attributes)this.attributes.hasOwnProperty(c)&&a.setAttribute(c,this.attributes[c]);for(let c=0;c<this.children.length;c++)a.appendChild(this.children[c].toNode());return a},Wp=/[\s"'>/=\x00-\x1f]/,Vc=function(l){let a="<"+l;this.classes.length&&(a+=' class="'+p(jt(this.classes))+'"');let c="";for(const f in this.style)this.style.hasOwnProperty(f)&&(c+=u(f)+":"+this.style[f]+";");c&&(a+=' style="'+p(c)+'"');for(const f in this.attributes)if(this.attributes.hasOwnProperty(f)){if(Wp.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 Ps{constructor(a,c,f,m){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Di.call(this,a,f,m),this.children=c||[]}setAttribute(a,c){this.attributes[a]=c}hasClass(a){return this.classes.includes(a)}toNode(){return Ro.call(this,"span")}toMarkup(){return Vc.call(this,"span")}}class Po{constructor(a,c,f,m){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Di.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 Ro.call(this,"a")}toMarkup(){return Vc.call(this,"a")}}class Gp{constructor(a,c,f){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=c,this.src=a,this.classes=["mord"],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 in this.style)this.style.hasOwnProperty(c)&&(a.style[c]=this.style[c]);return a}toMarkup(){let a='<img src="'+p(this.src)+'"'+(' alt="'+p(this.alt)+'"'),c="";for(const f in this.style)this.style.hasOwnProperty(f)&&(c+=u(f)+":"+this.style[f]+";");return c&&(a+=' style="'+p(c)+'"'),a+="'/>",a}}const Kp={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class pn{constructor(a,c,f,m,y,_,E,C){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=a,this.height=c||0,this.depth=f||0,this.italic=m||0,this.skew=y||0,this.width=_||0,this.classes=E||[],this.style=C||{},this.maxFontSize=0;const R=Le(this.text.charCodeAt(0));R&&this.classes.push(R+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Kp[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=oe(this.italic)),this.classes.length>0&&(c=c||document.createElement("span"),c.className=jt(this.classes));for(const f in this.style)this.style.hasOwnProperty(f)&&(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(jt(this.classes)),c+='"');let f="";this.italic>0&&(f+="margin-right:"+this.italic+"em;");for(const y in this.style)this.style.hasOwnProperty(y)&&(f+=u(y)+":"+this.style[y]+";");f&&(a=!0,c+=' style="'+p(f)+'"');const m=p(this.text);return a?(c+=">",c+=m,c+="</span>",c):m}}class jn{constructor(a,c){this.children=void 0,this.attributes=void 0,this.children=a||[],this.attributes=c||{}}toNode(){const c=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const f in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,f)&&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 in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&(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 or{constructor(a,c){this.pathName=void 0,this.alternate=void 0,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",ar[this.pathName]),c}toMarkup(){return this.alternate?'<path d="'+p(this.alternate)+'"/>':'<path d="'+p(ar[this.pathName])+'"/>'}}class $o{constructor(a){this.attributes=void 0,this.attributes=a||{}}toNode(){const c=document.createElementNS("http://www.w3.org/2000/svg","line");for(const f in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,f)&&c.setAttribute(f,this.attributes[f]);return c}toMarkup(){let a="<line";for(const c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&(a+=" "+c+'="'+p(this.attributes[c])+'"');return a+="/>",a}}function jc(l){if(l instanceof pn)return l;throw new Error("Expected symbolNode but got "+String(l)+".")}function Xp(l){if(l instanceof Ps)return l;throw new Error("Expected span<HtmlDomNode> but got "+String(l)+".")}const Yp={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Jp={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ri={math:{},text:{}};var dt=Ri;function g(l,a,c,f,m,y){Ri[l][m]={font:a,group:c,replace:f},y&&f&&(Ri[l][f]=Ri[l][m])}const b="math",ne="text",S="main",O="ams",ht="accent-token",me="bin",Wt="close",Zr="inner",ke="mathord",St="op-token",cn="open",Pi="punct",L="rel",Wn="spacing",z="textord";g(b,S,L,"≡","\\equiv",!0),g(b,S,L,"≺","\\prec",!0),g(b,S,L,"≻","\\succ",!0),g(b,S,L,"∼","\\sim",!0),g(b,S,L,"⊥","\\perp"),g(b,S,L,"⪯","\\preceq",!0),g(b,S,L,"⪰","\\succeq",!0),g(b,S,L,"≃","\\simeq",!0),g(b,S,L,"∣","\\mid",!0),g(b,S,L,"≪","\\ll",!0),g(b,S,L,"≫","\\gg",!0),g(b,S,L,"≍","\\asymp",!0),g(b,S,L,"∥","\\parallel"),g(b,S,L,"⋈","\\bowtie",!0),g(b,S,L,"⌣","\\smile",!0),g(b,S,L,"⊑","\\sqsubseteq",!0),g(b,S,L,"⊒","\\sqsupseteq",!0),g(b,S,L,"≐","\\doteq",!0),g(b,S,L,"⌢","\\frown",!0),g(b,S,L,"∋","\\ni",!0),g(b,S,L,"∝","\\propto",!0),g(b,S,L,"⊢","\\vdash",!0),g(b,S,L,"⊣","\\dashv",!0),g(b,S,L,"∋","\\owns"),g(b,S,Pi,".","\\ldotp"),g(b,S,Pi,"⋅","\\cdotp"),g(b,S,z,"#","\\#"),g(ne,S,z,"#","\\#"),g(b,S,z,"&","\\&"),g(ne,S,z,"&","\\&"),g(b,S,z,"ℵ","\\aleph",!0),g(b,S,z,"∀","\\forall",!0),g(b,S,z,"ℏ","\\hbar",!0),g(b,S,z,"∃","\\exists",!0),g(b,S,z,"∇","\\nabla",!0),g(b,S,z,"♭","\\flat",!0),g(b,S,z,"ℓ","\\ell",!0),g(b,S,z,"♮","\\natural",!0),g(b,S,z,"♣","\\clubsuit",!0),g(b,S,z,"℘","\\wp",!0),g(b,S,z,"♯","\\sharp",!0),g(b,S,z,"♢","\\diamondsuit",!0),g(b,S,z,"ℜ","\\Re",!0),g(b,S,z,"♡","\\heartsuit",!0),g(b,S,z,"ℑ","\\Im",!0),g(b,S,z,"♠","\\spadesuit",!0),g(b,S,z,"§","\\S",!0),g(ne,S,z,"§","\\S"),g(b,S,z,"¶","\\P",!0),g(ne,S,z,"¶","\\P"),g(b,S,z,"†","\\dag"),g(ne,S,z,"†","\\dag"),g(ne,S,z,"†","\\textdagger"),g(b,S,z,"‡","\\ddag"),g(ne,S,z,"‡","\\ddag"),g(ne,S,z,"‡","\\textdaggerdbl"),g(b,S,Wt,"⎱","\\rmoustache",!0),g(b,S,cn,"⎰","\\lmoustache",!0),g(b,S,Wt,"⟯","\\rgroup",!0),g(b,S,cn,"⟮","\\lgroup",!0),g(b,S,me,"∓","\\mp",!0),g(b,S,me,"⊖","\\ominus",!0),g(b,S,me,"⊎","\\uplus",!0),g(b,S,me,"⊓","\\sqcap",!0),g(b,S,me,"∗","\\ast"),g(b,S,me,"⊔","\\sqcup",!0),g(b,S,me,"◯","\\bigcirc",!0),g(b,S,me,"∙","\\bullet",!0),g(b,S,me,"‡","\\ddagger"),g(b,S,me,"≀","\\wr",!0),g(b,S,me,"⨿","\\amalg"),g(b,S,me,"&","\\And"),g(b,S,L,"⟵","\\longleftarrow",!0),g(b,S,L,"⇐","\\Leftarrow",!0),g(b,S,L,"⟸","\\Longleftarrow",!0),g(b,S,L,"⟶","\\longrightarrow",!0),g(b,S,L,"⇒","\\Rightarrow",!0),g(b,S,L,"⟹","\\Longrightarrow",!0),g(b,S,L,"↔","\\leftrightarrow",!0),g(b,S,L,"⟷","\\longleftrightarrow",!0),g(b,S,L,"⇔","\\Leftrightarrow",!0),g(b,S,L,"⟺","\\Longleftrightarrow",!0),g(b,S,L,"↦","\\mapsto",!0),g(b,S,L,"⟼","\\longmapsto",!0),g(b,S,L,"↗","\\nearrow",!0),g(b,S,L,"↩","\\hookleftarrow",!0),g(b,S,L,"↪","\\hookrightarrow",!0),g(b,S,L,"↘","\\searrow",!0),g(b,S,L,"↼","\\leftharpoonup",!0),g(b,S,L,"⇀","\\rightharpoonup",!0),g(b,S,L,"↙","\\swarrow",!0),g(b,S,L,"↽","\\leftharpoondown",!0),g(b,S,L,"⇁","\\rightharpoondown",!0),g(b,S,L,"↖","\\nwarrow",!0),g(b,S,L,"⇌","\\rightleftharpoons",!0),g(b,O,L,"≮","\\nless",!0),g(b,O,L,"","\\@nleqslant"),g(b,O,L,"","\\@nleqq"),g(b,O,L,"⪇","\\lneq",!0),g(b,O,L,"≨","\\lneqq",!0),g(b,O,L,"","\\@lvertneqq"),g(b,O,L,"⋦","\\lnsim",!0),g(b,O,L,"⪉","\\lnapprox",!0),g(b,O,L,"⊀","\\nprec",!0),g(b,O,L,"⋠","\\npreceq",!0),g(b,O,L,"⋨","\\precnsim",!0),g(b,O,L,"⪹","\\precnapprox",!0),g(b,O,L,"≁","\\nsim",!0),g(b,O,L,"","\\@nshortmid"),g(b,O,L,"∤","\\nmid",!0),g(b,O,L,"⊬","\\nvdash",!0),g(b,O,L,"⊭","\\nvDash",!0),g(b,O,L,"⋪","\\ntriangleleft"),g(b,O,L,"⋬","\\ntrianglelefteq",!0),g(b,O,L,"⊊","\\subsetneq",!0),g(b,O,L,"","\\@varsubsetneq"),g(b,O,L,"⫋","\\subsetneqq",!0),g(b,O,L,"","\\@varsubsetneqq"),g(b,O,L,"≯","\\ngtr",!0),g(b,O,L,"","\\@ngeqslant"),g(b,O,L,"","\\@ngeqq"),g(b,O,L,"⪈","\\gneq",!0),g(b,O,L,"≩","\\gneqq",!0),g(b,O,L,"","\\@gvertneqq"),g(b,O,L,"⋧","\\gnsim",!0),g(b,O,L,"⪊","\\gnapprox",!0),g(b,O,L,"⊁","\\nsucc",!0),g(b,O,L,"⋡","\\nsucceq",!0),g(b,O,L,"⋩","\\succnsim",!0),g(b,O,L,"⪺","\\succnapprox",!0),g(b,O,L,"≆","\\ncong",!0),g(b,O,L,"","\\@nshortparallel"),g(b,O,L,"∦","\\nparallel",!0),g(b,O,L,"⊯","\\nVDash",!0),g(b,O,L,"⋫","\\ntriangleright"),g(b,O,L,"⋭","\\ntrianglerighteq",!0),g(b,O,L,"","\\@nsupseteqq"),g(b,O,L,"⊋","\\supsetneq",!0),g(b,O,L,"","\\@varsupsetneq"),g(b,O,L,"⫌","\\supsetneqq",!0),g(b,O,L,"","\\@varsupsetneqq"),g(b,O,L,"⊮","\\nVdash",!0),g(b,O,L,"⪵","\\precneqq",!0),g(b,O,L,"⪶","\\succneqq",!0),g(b,O,L,"","\\@nsubseteqq"),g(b,O,me,"⊴","\\unlhd"),g(b,O,me,"⊵","\\unrhd"),g(b,O,L,"↚","\\nleftarrow",!0),g(b,O,L,"↛","\\nrightarrow",!0),g(b,O,L,"⇍","\\nLeftarrow",!0),g(b,O,L,"⇏","\\nRightarrow",!0),g(b,O,L,"↮","\\nleftrightarrow",!0),g(b,O,L,"⇎","\\nLeftrightarrow",!0),g(b,O,L,"△","\\vartriangle"),g(b,O,z,"ℏ","\\hslash"),g(b,O,z,"▽","\\triangledown"),g(b,O,z,"◊","\\lozenge"),g(b,O,z,"Ⓢ","\\circledS"),g(b,O,z,"®","\\circledR"),g(ne,O,z,"®","\\circledR"),g(b,O,z,"∡","\\measuredangle",!0),g(b,O,z,"∄","\\nexists"),g(b,O,z,"℧","\\mho"),g(b,O,z,"Ⅎ","\\Finv",!0),g(b,O,z,"⅁","\\Game",!0),g(b,O,z,"‵","\\backprime"),g(b,O,z,"▲","\\blacktriangle"),g(b,O,z,"▼","\\blacktriangledown"),g(b,O,z,"■","\\blacksquare"),g(b,O,z,"⧫","\\blacklozenge"),g(b,O,z,"★","\\bigstar"),g(b,O,z,"∢","\\sphericalangle",!0),g(b,O,z,"∁","\\complement",!0),g(b,O,z,"ð","\\eth",!0),g(ne,S,z,"ð","ð"),g(b,O,z,"╱","\\diagup"),g(b,O,z,"╲","\\diagdown"),g(b,O,z,"□","\\square"),g(b,O,z,"□","\\Box"),g(b,O,z,"◊","\\Diamond"),g(b,O,z,"¥","\\yen",!0),g(ne,O,z,"¥","\\yen",!0),g(b,O,z,"✓","\\checkmark",!0),g(ne,O,z,"✓","\\checkmark"),g(b,O,z,"ℶ","\\beth",!0),g(b,O,z,"ℸ","\\daleth",!0),g(b,O,z,"ℷ","\\gimel",!0),g(b,O,z,"ϝ","\\digamma",!0),g(b,O,z,"ϰ","\\varkappa"),g(b,O,cn,"┌","\\@ulcorner",!0),g(b,O,Wt,"┐","\\@urcorner",!0),g(b,O,cn,"└","\\@llcorner",!0),g(b,O,Wt,"┘","\\@lrcorner",!0),g(b,O,L,"≦","\\leqq",!0),g(b,O,L,"⩽","\\leqslant",!0),g(b,O,L,"⪕","\\eqslantless",!0),g(b,O,L,"≲","\\lesssim",!0),g(b,O,L,"⪅","\\lessapprox",!0),g(b,O,L,"≊","\\approxeq",!0),g(b,O,me,"⋖","\\lessdot"),g(b,O,L,"⋘","\\lll",!0),g(b,O,L,"≶","\\lessgtr",!0),g(b,O,L,"⋚","\\lesseqgtr",!0),g(b,O,L,"⪋","\\lesseqqgtr",!0),g(b,O,L,"≑","\\doteqdot"),g(b,O,L,"≓","\\risingdotseq",!0),g(b,O,L,"≒","\\fallingdotseq",!0),g(b,O,L,"∽","\\backsim",!0),g(b,O,L,"⋍","\\backsimeq",!0),g(b,O,L,"⫅","\\subseteqq",!0),g(b,O,L,"⋐","\\Subset",!0),g(b,O,L,"⊏","\\sqsubset",!0),g(b,O,L,"≼","\\preccurlyeq",!0),g(b,O,L,"⋞","\\curlyeqprec",!0),g(b,O,L,"≾","\\precsim",!0),g(b,O,L,"⪷","\\precapprox",!0),g(b,O,L,"⊲","\\vartriangleleft"),g(b,O,L,"⊴","\\trianglelefteq"),g(b,O,L,"⊨","\\vDash",!0),g(b,O,L,"⊪","\\Vvdash",!0),g(b,O,L,"⌣","\\smallsmile"),g(b,O,L,"⌢","\\smallfrown"),g(b,O,L,"≏","\\bumpeq",!0),g(b,O,L,"≎","\\Bumpeq",!0),g(b,O,L,"≧","\\geqq",!0),g(b,O,L,"⩾","\\geqslant",!0),g(b,O,L,"⪖","\\eqslantgtr",!0),g(b,O,L,"≳","\\gtrsim",!0),g(b,O,L,"⪆","\\gtrapprox",!0),g(b,O,me,"⋗","\\gtrdot"),g(b,O,L,"⋙","\\ggg",!0),g(b,O,L,"≷","\\gtrless",!0),g(b,O,L,"⋛","\\gtreqless",!0),g(b,O,L,"⪌","\\gtreqqless",!0),g(b,O,L,"≖","\\eqcirc",!0),g(b,O,L,"≗","\\circeq",!0),g(b,O,L,"≜","\\triangleq",!0),g(b,O,L,"∼","\\thicksim"),g(b,O,L,"≈","\\thickapprox"),g(b,O,L,"⫆","\\supseteqq",!0),g(b,O,L,"⋑","\\Supset",!0),g(b,O,L,"⊐","\\sqsupset",!0),g(b,O,L,"≽","\\succcurlyeq",!0),g(b,O,L,"⋟","\\curlyeqsucc",!0),g(b,O,L,"≿","\\succsim",!0),g(b,O,L,"⪸","\\succapprox",!0),g(b,O,L,"⊳","\\vartriangleright"),g(b,O,L,"⊵","\\trianglerighteq"),g(b,O,L,"⊩","\\Vdash",!0),g(b,O,L,"∣","\\shortmid"),g(b,O,L,"∥","\\shortparallel"),g(b,O,L,"≬","\\between",!0),g(b,O,L,"⋔","\\pitchfork",!0),g(b,O,L,"∝","\\varpropto"),g(b,O,L,"◀","\\blacktriangleleft"),g(b,O,L,"∴","\\therefore",!0),g(b,O,L,"∍","\\backepsilon"),g(b,O,L,"▶","\\blacktriangleright"),g(b,O,L,"∵","\\because",!0),g(b,O,L,"⋘","\\llless"),g(b,O,L,"⋙","\\gggtr"),g(b,O,me,"⊲","\\lhd"),g(b,O,me,"⊳","\\rhd"),g(b,O,L,"≂","\\eqsim",!0),g(b,S,L,"⋈","\\Join"),g(b,O,L,"≑","\\Doteq",!0),g(b,O,me,"∔","\\dotplus",!0),g(b,O,me,"∖","\\smallsetminus"),g(b,O,me,"⋒","\\Cap",!0),g(b,O,me,"⋓","\\Cup",!0),g(b,O,me,"⩞","\\doublebarwedge",!0),g(b,O,me,"⊟","\\boxminus",!0),g(b,O,me,"⊞","\\boxplus",!0),g(b,O,me,"⋇","\\divideontimes",!0),g(b,O,me,"⋉","\\ltimes",!0),g(b,O,me,"⋊","\\rtimes",!0),g(b,O,me,"⋋","\\leftthreetimes",!0),g(b,O,me,"⋌","\\rightthreetimes",!0),g(b,O,me,"⋏","\\curlywedge",!0),g(b,O,me,"⋎","\\curlyvee",!0),g(b,O,me,"⊝","\\circleddash",!0),g(b,O,me,"⊛","\\circledast",!0),g(b,O,me,"⋅","\\centerdot"),g(b,O,me,"⊺","\\intercal",!0),g(b,O,me,"⋒","\\doublecap"),g(b,O,me,"⋓","\\doublecup"),g(b,O,me,"⊠","\\boxtimes",!0),g(b,O,L,"⇢","\\dashrightarrow",!0),g(b,O,L,"⇠","\\dashleftarrow",!0),g(b,O,L,"⇇","\\leftleftarrows",!0),g(b,O,L,"⇆","\\leftrightarrows",!0),g(b,O,L,"⇚","\\Lleftarrow",!0),g(b,O,L,"↞","\\twoheadleftarrow",!0),g(b,O,L,"↢","\\leftarrowtail",!0),g(b,O,L,"↫","\\looparrowleft",!0),g(b,O,L,"⇋","\\leftrightharpoons",!0),g(b,O,L,"↶","\\curvearrowleft",!0),g(b,O,L,"↺","\\circlearrowleft",!0),g(b,O,L,"↰","\\Lsh",!0),g(b,O,L,"⇈","\\upuparrows",!0),g(b,O,L,"↿","\\upharpoonleft",!0),g(b,O,L,"⇃","\\downharpoonleft",!0),g(b,S,L,"⊶","\\origof",!0),g(b,S,L,"⊷","\\imageof",!0),g(b,O,L,"⊸","\\multimap",!0),g(b,O,L,"↭","\\leftrightsquigarrow",!0),g(b,O,L,"⇉","\\rightrightarrows",!0),g(b,O,L,"⇄","\\rightleftarrows",!0),g(b,O,L,"↠","\\twoheadrightarrow",!0),g(b,O,L,"↣","\\rightarrowtail",!0),g(b,O,L,"↬","\\looparrowright",!0),g(b,O,L,"↷","\\curvearrowright",!0),g(b,O,L,"↻","\\circlearrowright",!0),g(b,O,L,"↱","\\Rsh",!0),g(b,O,L,"⇊","\\downdownarrows",!0),g(b,O,L,"↾","\\upharpoonright",!0),g(b,O,L,"⇂","\\downharpoonright",!0),g(b,O,L,"⇝","\\rightsquigarrow",!0),g(b,O,L,"⇝","\\leadsto"),g(b,O,L,"⇛","\\Rrightarrow",!0),g(b,O,L,"↾","\\restriction"),g(b,S,z,"‘","`"),g(b,S,z,"$","\\$"),g(ne,S,z,"$","\\$"),g(ne,S,z,"$","\\textdollar"),g(b,S,z,"%","\\%"),g(ne,S,z,"%","\\%"),g(b,S,z,"_","\\_"),g(ne,S,z,"_","\\_"),g(ne,S,z,"_","\\textunderscore"),g(b,S,z,"∠","\\angle",!0),g(b,S,z,"∞","\\infty",!0),g(b,S,z,"′","\\prime"),g(b,S,z,"△","\\triangle"),g(b,S,z,"Γ","\\Gamma",!0),g(b,S,z,"Δ","\\Delta",!0),g(b,S,z,"Θ","\\Theta",!0),g(b,S,z,"Λ","\\Lambda",!0),g(b,S,z,"Ξ","\\Xi",!0),g(b,S,z,"Π","\\Pi",!0),g(b,S,z,"Σ","\\Sigma",!0),g(b,S,z,"Υ","\\Upsilon",!0),g(b,S,z,"Φ","\\Phi",!0),g(b,S,z,"Ψ","\\Psi",!0),g(b,S,z,"Ω","\\Omega",!0),g(b,S,z,"A","Α"),g(b,S,z,"B","Β"),g(b,S,z,"E","Ε"),g(b,S,z,"Z","Ζ"),g(b,S,z,"H","Η"),g(b,S,z,"I","Ι"),g(b,S,z,"K","Κ"),g(b,S,z,"M","Μ"),g(b,S,z,"N","Ν"),g(b,S,z,"O","Ο"),g(b,S,z,"P","Ρ"),g(b,S,z,"T","Τ"),g(b,S,z,"X","Χ"),g(b,S,z,"¬","\\neg",!0),g(b,S,z,"¬","\\lnot"),g(b,S,z,"⊤","\\top"),g(b,S,z,"⊥","\\bot"),g(b,S,z,"∅","\\emptyset"),g(b,O,z,"∅","\\varnothing"),g(b,S,ke,"α","\\alpha",!0),g(b,S,ke,"β","\\beta",!0),g(b,S,ke,"γ","\\gamma",!0),g(b,S,ke,"δ","\\delta",!0),g(b,S,ke,"ϵ","\\epsilon",!0),g(b,S,ke,"ζ","\\zeta",!0),g(b,S,ke,"η","\\eta",!0),g(b,S,ke,"θ","\\theta",!0),g(b,S,ke,"ι","\\iota",!0),g(b,S,ke,"κ","\\kappa",!0),g(b,S,ke,"λ","\\lambda",!0),g(b,S,ke,"μ","\\mu",!0),g(b,S,ke,"ν","\\nu",!0),g(b,S,ke,"ξ","\\xi",!0),g(b,S,ke,"ο","\\omicron",!0),g(b,S,ke,"π","\\pi",!0),g(b,S,ke,"ρ","\\rho",!0),g(b,S,ke,"σ","\\sigma",!0),g(b,S,ke,"τ","\\tau",!0),g(b,S,ke,"υ","\\upsilon",!0),g(b,S,ke,"ϕ","\\phi",!0),g(b,S,ke,"χ","\\chi",!0),g(b,S,ke,"ψ","\\psi",!0),g(b,S,ke,"ω","\\omega",!0),g(b,S,ke,"ε","\\varepsilon",!0),g(b,S,ke,"ϑ","\\vartheta",!0),g(b,S,ke,"ϖ","\\varpi",!0),g(b,S,ke,"ϱ","\\varrho",!0),g(b,S,ke,"ς","\\varsigma",!0),g(b,S,ke,"φ","\\varphi",!0),g(b,S,me,"∗","*",!0),g(b,S,me,"+","+"),g(b,S,me,"−","-",!0),g(b,S,me,"⋅","\\cdot",!0),g(b,S,me,"∘","\\circ",!0),g(b,S,me,"÷","\\div",!0),g(b,S,me,"±","\\pm",!0),g(b,S,me,"×","\\times",!0),g(b,S,me,"∩","\\cap",!0),g(b,S,me,"∪","\\cup",!0),g(b,S,me,"∖","\\setminus",!0),g(b,S,me,"∧","\\land"),g(b,S,me,"∨","\\lor"),g(b,S,me,"∧","\\wedge",!0),g(b,S,me,"∨","\\vee",!0),g(b,S,z,"√","\\surd"),g(b,S,cn,"⟨","\\langle",!0),g(b,S,cn,"∣","\\lvert"),g(b,S,cn,"∥","\\lVert"),g(b,S,Wt,"?","?"),g(b,S,Wt,"!","!"),g(b,S,Wt,"⟩","\\rangle",!0),g(b,S,Wt,"∣","\\rvert"),g(b,S,Wt,"∥","\\rVert"),g(b,S,L,"=","="),g(b,S,L,":",":"),g(b,S,L,"≈","\\approx",!0),g(b,S,L,"≅","\\cong",!0),g(b,S,L,"≥","\\ge"),g(b,S,L,"≥","\\geq",!0),g(b,S,L,"←","\\gets"),g(b,S,L,">","\\gt",!0),g(b,S,L,"∈","\\in",!0),g(b,S,L,"","\\@not"),g(b,S,L,"⊂","\\subset",!0),g(b,S,L,"⊃","\\supset",!0),g(b,S,L,"⊆","\\subseteq",!0),g(b,S,L,"⊇","\\supseteq",!0),g(b,O,L,"⊈","\\nsubseteq",!0),g(b,O,L,"⊉","\\nsupseteq",!0),g(b,S,L,"⊨","\\models"),g(b,S,L,"←","\\leftarrow",!0),g(b,S,L,"≤","\\le"),g(b,S,L,"≤","\\leq",!0),g(b,S,L,"<","\\lt",!0),g(b,S,L,"→","\\rightarrow",!0),g(b,S,L,"→","\\to"),g(b,O,L,"≱","\\ngeq",!0),g(b,O,L,"≰","\\nleq",!0),g(b,S,Wn," ","\\ "),g(b,S,Wn," ","\\space"),g(b,S,Wn," ","\\nobreakspace"),g(ne,S,Wn," ","\\ "),g(ne,S,Wn," "," "),g(ne,S,Wn," ","\\space"),g(ne,S,Wn," ","\\nobreakspace"),g(b,S,Wn,null,"\\nobreak"),g(b,S,Wn,null,"\\allowbreak"),g(b,S,Pi,",",","),g(b,S,Pi,";",";"),g(b,O,me,"⊼","\\barwedge",!0),g(b,O,me,"⊻","\\veebar",!0),g(b,S,me,"⊙","\\odot",!0),g(b,S,me,"⊕","\\oplus",!0),g(b,S,me,"⊗","\\otimes",!0),g(b,S,z,"∂","\\partial",!0),g(b,S,me,"⊘","\\oslash",!0),g(b,O,me,"⊚","\\circledcirc",!0),g(b,O,me,"⊡","\\boxdot",!0),g(b,S,me,"△","\\bigtriangleup"),g(b,S,me,"▽","\\bigtriangledown"),g(b,S,me,"†","\\dagger"),g(b,S,me,"⋄","\\diamond"),g(b,S,me,"⋆","\\star"),g(b,S,me,"◃","\\triangleleft"),g(b,S,me,"▹","\\triangleright"),g(b,S,cn,"{","\\{"),g(ne,S,z,"{","\\{"),g(ne,S,z,"{","\\textbraceleft"),g(b,S,Wt,"}","\\}"),g(ne,S,z,"}","\\}"),g(ne,S,z,"}","\\textbraceright"),g(b,S,cn,"{","\\lbrace"),g(b,S,Wt,"}","\\rbrace"),g(b,S,cn,"[","\\lbrack",!0),g(ne,S,z,"[","\\lbrack",!0),g(b,S,Wt,"]","\\rbrack",!0),g(ne,S,z,"]","\\rbrack",!0),g(b,S,cn,"(","\\lparen",!0),g(b,S,Wt,")","\\rparen",!0),g(ne,S,z,"<","\\textless",!0),g(ne,S,z,">","\\textgreater",!0),g(b,S,cn,"⌊","\\lfloor",!0),g(b,S,Wt,"⌋","\\rfloor",!0),g(b,S,cn,"⌈","\\lceil",!0),g(b,S,Wt,"⌉","\\rceil",!0),g(b,S,z,"\\","\\backslash"),g(b,S,z,"∣","|"),g(b,S,z,"∣","\\vert"),g(ne,S,z,"|","\\textbar",!0),g(b,S,z,"∥","\\|"),g(b,S,z,"∥","\\Vert"),g(ne,S,z,"∥","\\textbardbl"),g(ne,S,z,"~","\\textasciitilde"),g(ne,S,z,"\\","\\textbackslash"),g(ne,S,z,"^","\\textasciicircum"),g(b,S,L,"↑","\\uparrow",!0),g(b,S,L,"⇑","\\Uparrow",!0),g(b,S,L,"↓","\\downarrow",!0),g(b,S,L,"⇓","\\Downarrow",!0),g(b,S,L,"↕","\\updownarrow",!0),g(b,S,L,"⇕","\\Updownarrow",!0),g(b,S,St,"∐","\\coprod"),g(b,S,St,"⋁","\\bigvee"),g(b,S,St,"⋀","\\bigwedge"),g(b,S,St,"⨄","\\biguplus"),g(b,S,St,"⋂","\\bigcap"),g(b,S,St,"⋃","\\bigcup"),g(b,S,St,"∫","\\int"),g(b,S,St,"∫","\\intop"),g(b,S,St,"∬","\\iint"),g(b,S,St,"∭","\\iiint"),g(b,S,St,"∏","\\prod"),g(b,S,St,"∑","\\sum"),g(b,S,St,"⨂","\\bigotimes"),g(b,S,St,"⨁","\\bigoplus"),g(b,S,St,"⨀","\\bigodot"),g(b,S,St,"∮","\\oint"),g(b,S,St,"∯","\\oiint"),g(b,S,St,"∰","\\oiiint"),g(b,S,St,"⨆","\\bigsqcup"),g(b,S,St,"∫","\\smallint"),g(ne,S,Zr,"…","\\textellipsis"),g(b,S,Zr,"…","\\mathellipsis"),g(ne,S,Zr,"…","\\ldots",!0),g(b,S,Zr,"…","\\ldots",!0),g(b,S,Zr,"⋯","\\@cdots",!0),g(b,S,Zr,"⋱","\\ddots",!0),g(b,S,z,"⋮","\\varvdots"),g(ne,S,z,"⋮","\\varvdots"),g(b,S,ht,"ˊ","\\acute"),g(b,S,ht,"ˋ","\\grave"),g(b,S,ht,"¨","\\ddot"),g(b,S,ht,"~","\\tilde"),g(b,S,ht,"ˉ","\\bar"),g(b,S,ht,"˘","\\breve"),g(b,S,ht,"ˇ","\\check"),g(b,S,ht,"^","\\hat"),g(b,S,ht,"⃗","\\vec"),g(b,S,ht,"˙","\\dot"),g(b,S,ht,"˚","\\mathring"),g(b,S,ke,"","\\@imath"),g(b,S,ke,"","\\@jmath"),g(b,S,z,"ı","ı"),g(b,S,z,"ȷ","ȷ"),g(ne,S,z,"ı","\\i",!0),g(ne,S,z,"ȷ","\\j",!0),g(ne,S,z,"ß","\\ss",!0),g(ne,S,z,"æ","\\ae",!0),g(ne,S,z,"œ","\\oe",!0),g(ne,S,z,"ø","\\o",!0),g(ne,S,z,"Æ","\\AE",!0),g(ne,S,z,"Œ","\\OE",!0),g(ne,S,z,"Ø","\\O",!0),g(ne,S,ht,"ˊ","\\'"),g(ne,S,ht,"ˋ","\\`"),g(ne,S,ht,"ˆ","\\^"),g(ne,S,ht,"˜","\\~"),g(ne,S,ht,"ˉ","\\="),g(ne,S,ht,"˘","\\u"),g(ne,S,ht,"˙","\\."),g(ne,S,ht,"¸","\\c"),g(ne,S,ht,"˚","\\r"),g(ne,S,ht,"ˇ","\\v"),g(ne,S,ht,"¨",'\\"'),g(ne,S,ht,"˝","\\H"),g(ne,S,ht,"◯","\\textcircled");const Wc={"--":!0,"---":!0,"``":!0,"''":!0};g(ne,S,z,"–","--",!0),g(ne,S,z,"–","\\textendash"),g(ne,S,z,"—","---",!0),g(ne,S,z,"—","\\textemdash"),g(ne,S,z,"‘","`",!0),g(ne,S,z,"‘","\\textquoteleft"),g(ne,S,z,"’","'",!0),g(ne,S,z,"’","\\textquoteright"),g(ne,S,z,"“","``",!0),g(ne,S,z,"“","\\textquotedblleft"),g(ne,S,z,"”","''",!0),g(ne,S,z,"”","\\textquotedblright"),g(b,S,z,"°","\\degree",!0),g(ne,S,z,"°","\\degree"),g(ne,S,z,"°","\\textdegree",!0),g(b,S,z,"£","\\pounds"),g(b,S,z,"£","\\mathsterling",!0),g(ne,S,z,"£","\\pounds"),g(ne,S,z,"£","\\textsterling",!0),g(b,O,z,"✠","\\maltese"),g(ne,O,z,"✠","\\maltese");const Gc='0123456789/@."';for(let l=0;l<Gc.length;l++){const a=Gc.charAt(l);g(b,S,z,a,a)}const Kc='0123456789!@*()-=+";:?/.,';for(let l=0;l<Kc.length;l++){const a=Kc.charAt(l);g(ne,S,z,a,a)}const $i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let l=0;l<$i.length;l++){const a=$i.charAt(l);g(b,S,ke,a,a),g(ne,S,z,a,a)}g(b,O,z,"C","ℂ"),g(ne,O,z,"C","ℂ"),g(b,O,z,"H","ℍ"),g(ne,O,z,"H","ℍ"),g(b,O,z,"N","ℕ"),g(ne,O,z,"N","ℕ"),g(b,O,z,"P","ℙ"),g(ne,O,z,"P","ℙ"),g(b,O,z,"Q","ℚ"),g(ne,O,z,"Q","ℚ"),g(b,O,z,"R","ℝ"),g(ne,O,z,"R","ℝ"),g(b,O,z,"Z","ℤ"),g(ne,O,z,"Z","ℤ"),g(b,S,ke,"h","ℎ"),g(ne,S,ke,"h","ℎ");let Ie="";for(let l=0;l<$i.length;l++){const a=$i.charAt(l);Ie=String.fromCharCode(55349,56320+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,56372+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,56424+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,56580+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,56684+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,56736+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,56788+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,56840+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,56944+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),l<26&&(Ie=String.fromCharCode(55349,56632+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,56476+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie))}Ie="𝕜",g(b,S,ke,"k",Ie),g(ne,S,z,"k",Ie);for(let l=0;l<10;l++){const a=l.toString();Ie=String.fromCharCode(55349,57294+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,57314+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,57324+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie),Ie=String.fromCharCode(55349,57334+l),g(b,S,ke,a,Ie),g(ne,S,z,a,Ie)}const Bo="ÐÞþ";for(let l=0;l<Bo.length;l++){const a=Bo.charAt(l);g(b,S,ke,a,a),g(ne,S,z,a,a)}const Bi=[["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"]],Xc=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Qp=function(l,a){const c=l.charCodeAt(0),f=l.charCodeAt(1),m=(c-55296)*1024+(f-56320)+65536,y=a==="math"?0:1;if(119808<=m&&m<120484){const _=Math.floor((m-119808)/26);return[Bi[_][2],Bi[_][y]]}else if(120782<=m&&m<=120831){const _=Math.floor((m-120782)/10);return[Xc[_][2],Xc[_][y]]}else{if(m===120485||m===120486)return[Bi[0][2],Bi[0][y]];if(120486<m&&m<120782)return["",""];throw new i("Unsupported character: "+l)}};class $s{constructor(a){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=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 Fi=function(l,a,c){return dt[c][l]&&dt[c][l].replace&&(l=dt[c][l].replace),{value:l,metrics:Cr(l,a,c)}},Gt=function(l,a,c,f,m){const y=Fi(l,a,c),_=y.metrics;l=y.value;let E;if(_){let C=_.italic;(c==="text"||f&&f.font==="mathit")&&(C=0),E=new pn(l,_.height,_.depth,C,_.skew,_.width,m)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+l+"' in style '"+a+"' and mode '"+c+"'")),E=new pn(l,0,0,0,0,0,m);if(f){E.maxFontSize=f.sizeMultiplier,f.style.isTight()&&E.classes.push("mtight");const C=f.getColor();C&&(E.style.color=C)}return E},Fo=function(l,a,c,f){return f===void 0&&(f=[]),c.font==="boldsymbol"&&Fi(l,"Main-Bold",a).metrics?Gt(l,"Main-Bold",a,c,f.concat(["mathbf"])):l==="\\"||dt[a][l].font==="main"?Gt(l,"Main-Regular",a,c,f):Gt(l,"AMS-Regular",a,c,f.concat(["amsrm"]))},Zp=function(l,a,c,f,m){return m!=="textord"&&Fi(l,"Math-BoldItalic",a).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},zi=function(l,a,c){const f=l.mode,m=l.text,y=["mord"],_=f==="math"||f==="text"&&a.font,E=_?a.font:a.fontFamily;let C="",R="";if(m.charCodeAt(0)===55349&&([C,R]=Qp(m,f)),C.length>0)return Gt(m,C,f,a,y.concat(R));if(E){let q,H;if(E==="boldsymbol"){const K=Zp(m,f,a,y,c);q=K.fontName,H=[K.fontClass]}else _?(q=qo[E].fontName,H=[E]):(q=qi(E,a.fontWeight,a.fontShape),H=[E,a.fontWeight,a.fontShape]);if(Fi(m,q,f).metrics)return Gt(m,q,f,a,y.concat(H));if(Wc.hasOwnProperty(m)&&q.slice(0,10)==="Typewriter"){const K=[];for(let Z=0;Z<m.length;Z++)K.push(Gt(m[Z],q,f,a,y.concat(H)));return Gn(K)}}if(c==="mathord")return Gt(m,"Math-Italic",f,a,y.concat(["mathnormal"]));if(c==="textord"){const q=dt[f][m]&&dt[f][m].font;if(q==="ams"){const H=qi("amsrm",a.fontWeight,a.fontShape);return Gt(m,H,f,a,y.concat("amsrm",a.fontWeight,a.fontShape))}else if(q==="main"||!q){const H=qi("textrm",a.fontWeight,a.fontShape);return Gt(m,H,f,a,y.concat(a.fontWeight,a.fontShape))}else{const H=qi(q,a.fontWeight,a.fontShape);return Gt(m,H,f,a,y.concat(H,a.fontWeight,a.fontShape))}}else throw new Error("unexpected type: "+c+" in makeOrd")},e4=(l,a)=>{if(jt(l.classes)!==jt(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 in l.style)if(l.style.hasOwnProperty(c)&&l.style[c]!==a.style[c])return!1;for(const c in a.style)if(a.style.hasOwnProperty(c)&&l.style[c]!==a.style[c])return!1;return!0},Yc=l=>{for(let a=0;a<l.length-1;a++){const c=l[a],f=l[a+1];c instanceof pn&&f instanceof pn&&e4(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},zo=function(l){let a=0,c=0,f=0;for(let m=0;m<l.children.length;m++){const y=l.children[m];y.height>a&&(a=y.height),y.depth>c&&(c=y.depth),y.maxFontSize>f&&(f=y.maxFontSize)}l.height=a,l.depth=c,l.maxFontSize=f},se=function(l,a,c,f){const m=new Ps(l,a,c,f);return zo(m),m},lr=(l,a,c,f)=>new Ps(l,a,c,f),es=function(l,a,c){const f=se([l],[],a);return f.height=Math.max(c||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),f.style.borderBottomWidth=oe(f.height),f.maxFontSize=1,f},t4=function(l,a,c,f){const m=new Po(l,a,c,f);return zo(m),m},Gn=function(l){const a=new $s(l);return zo(a),a},ts=function(l,a){return l instanceof $s?se([],[l],a):l},n4=function(l){if(l.positionType==="individualShift"){const c=l.children,f=[c[0]],m=-c[0].shift-c[0].elem.depth;let y=m;for(let _=1;_<c.length;_++){const E=-c[_].shift-y-c[_].elem.depth,C=E-(c[_-1].elem.height+c[_-1].elem.depth);y=y+E,f.push({type:"kern",size:C}),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}},Xe=function(l,a){const{children:c,depth:f}=n4(l);let m=0;for(let Z=0;Z<c.length;Z++){const de=c[Z];if(de.type==="elem"){const ye=de.elem;m=Math.max(m,ye.maxFontSize,ye.height)}}m+=2;const y=se(["pstrut"],[]);y.style.height=oe(m);const _=[];let E=f,C=f,R=f;for(let Z=0;Z<c.length;Z++){const de=c[Z];if(de.type==="kern")R+=de.size;else{const ye=de.elem,He=de.wrapperClasses||[],Fe=de.wrapperStyle||{},Ve=se(He,[y,ye],void 0,Fe);Ve.style.top=oe(-m-R-ye.depth),de.marginLeft&&(Ve.style.marginLeft=de.marginLeft),de.marginRight&&(Ve.style.marginRight=de.marginRight),_.push(Ve),R+=ye.height+ye.depth}E=Math.min(E,R),C=Math.max(C,R)}const q=se(["vlist"],_);q.style.height=oe(C);let H;if(E<0){const Z=se([],[]),de=se(["vlist"],[Z]);de.style.height=oe(-E);const ye=se(["vlist-s"],[new pn("")]);H=[se(["vlist-r"],[q,ye]),se(["vlist-r"],[de])]}else H=[se(["vlist-r"],[q])];const K=se(["vlist-t"],H);return H.length===2&&K.classes.push("vlist-t2"),K.height=C,K.depth=-E,K},Jc=(l,a)=>{const c=se(["mspace"],[],a),f=Ke(l,a);return c.style.marginRight=oe(f),c},qi=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},qo={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"}},Qc={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Zc=function(l,a){const[c,f,m]=Qc[l],y=new or(c),_=new jn([y],{width:oe(f),height:oe(m),style:"width:"+oe(f),viewBox:"0 0 "+1e3*f+" "+1e3*m,preserveAspectRatio:"xMinYMin"}),E=lr(["overlay"],[_],a);return E.height=m,E.style.height=oe(m),E.style.width=oe(f),E},mt={number:3,unit:"mu"},Ir={number:4,unit:"mu"},Kn={number:5,unit:"mu"},r4={mord:{mop:mt,mbin:Ir,mrel:Kn,minner:mt},mop:{mord:mt,mop:mt,mrel:Kn,minner:mt},mbin:{mord:Ir,mop:Ir,mopen:Ir,minner:Ir},mrel:{mord:Kn,mop:Kn,mopen:Kn,minner:Kn},mopen:{},mclose:{mop:mt,mbin:Ir,mrel:Kn,minner:mt},mpunct:{mord:mt,mop:mt,mrel:Kn,mopen:mt,mclose:mt,mpunct:mt,minner:mt},minner:{mord:mt,mop:mt,mbin:Ir,mrel:Kn,mopen:mt,mpunct:mt,minner:mt}},s4={mord:{mop:mt},mop:{mord:mt,mop:mt},mbin:{},mrel:{},mopen:{},mclose:{mop:mt},mpunct:{},minner:{mop:mt}},eu={},Ui={},Hi={};function fe(l){let{type:a,names:c,props:f,handler:m,htmlBuilder:y,mathmlBuilder:_}=l;const E={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 C=0;C<c.length;++C)eu[c[C]]=E;a&&(y&&(Ui[a]=y),_&&(Hi[a]=_))}function Or(l){let{type:a,htmlBuilder:c,mathmlBuilder:f}=l;fe({type:a,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:c,mathmlBuilder:f})}const Vi=function(l){return l.type==="ordgroup"&&l.body.length===1?l.body[0]:l},bt=function(l){return l.type==="ordgroup"?l.body:[l]},i4=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),a4=new Set(["rightmost","mrel","mclose","mpunct"]),o4={display:te.DISPLAY,text:te.TEXT,script:te.SCRIPT,scriptscript:te.SCRIPTSCRIPT},l4={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Tt=function(l,a,c,f){f===void 0&&(f=[null,null]);const m=[];for(let R=0;R<l.length;R++){const q=je(l[R],a);if(q instanceof $s){const H=q.children;m.push(...H)}else m.push(q)}if(Yc(m),!c)return m;let y=a;if(l.length===1){const R=l[0];R.type==="sizing"?y=a.havingSize(R.size):R.type==="styling"&&(y=a.havingStyle(o4[R.style]))}const _=se([f[0]||"leftmost"],[],a),E=se([f[1]||"rightmost"],[],a),C=c==="root";return Uo(m,(R,q)=>{const H=q.classes[0],K=R.classes[0];H==="mbin"&&a4.has(K)?q.classes[0]="mord":K==="mbin"&&i4.has(H)&&(R.classes[0]="mord")},{node:_},E,C),Uo(m,(R,q)=>{const H=Vo(q),K=Vo(R),Z=H&&K?R.hasClass("mtight")?s4[H][K]:r4[H][K]:null;if(Z)return Jc(Z,y)},{node:_},E,C),m},Uo=function(l,a,c,f,m){f&&l.push(f);let y=0;for(;y<l.length;y++){const _=l[y],E=tu(_);if(E){Uo(E.children,a,c,null,m);continue}const C=!_.hasClass("mspace");if(C){const R=a(_,c.node);R&&(c.insertAfter?c.insertAfter(R):(l.unshift(R),y++))}C?c.node=_:m&&_.hasClass("newline")&&(c.node=se(["leftmost"])),c.insertAfter=(R=>q=>{l.splice(R+1,0,q),y++})(y)}f&&l.pop()},tu=function(l){return l instanceof $s||l instanceof Po||l instanceof Ps&&l.hasClass("enclosing")?l:null},Ho=function(l,a){const c=tu(l);if(c){const f=c.children;if(f.length){if(a==="right")return Ho(f[f.length-1],"right");if(a==="left")return Ho(f[0],"left")}}return l},Vo=function(l,a){return l?(a&&(l=Ho(l,a)),l4[l.classes[0]]||null):null},Bs=function(l,a){const c=["nulldelimiter"].concat(l.baseSizingClasses());return se(a.concat(c))},je=function(l,a,c){if(!l)return se();if(Ui[l.type]){let f=Ui[l.type](l,a);if(c&&a.size!==c.size){f=se(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=se(["base"],l,a),f=se(["strut"]);return f.style.height=oe(c.height+c.depth),c.depth&&(f.style.verticalAlign=oe(-c.depth)),c.children.unshift(f),c}function jo(l,a){let c=null;l.length===1&&l[0].type==="tag"&&(c=l[0].tag,l=l[0].body);const f=Tt(l,a,"root");let m;f.length===2&&f[1].hasClass("tag")&&(m=f.pop());const y=[];let _=[];for(let R=0;R<f.length;R++)if(_.push(f[R]),f[R].hasClass("mbin")||f[R].hasClass("mrel")||f[R].hasClass("allowbreak")){let q=!1;for(;R<f.length-1&&f[R+1].hasClass("mspace")&&!f[R+1].hasClass("newline");)R++,_.push(f[R]),f[R].hasClass("nobreak")&&(q=!0);q||(y.push(ji(_,a)),_=[])}else f[R].hasClass("newline")&&(_.pop(),_.length>0&&(y.push(ji(_,a)),_=[]),y.push(f[R]));_.length>0&&y.push(ji(_,a));let E;c?(E=ji(Tt(c,a,!0)),E.classes=["tag"],y.push(E)):m&&y.push(m);const C=se(["katex-html"],y);if(C.setAttribute("aria-hidden","true"),E){const R=E.children[0];R.style.height=oe(C.height+C.depth),C.depth&&(R.style.verticalAlign=oe(-C.depth))}return C}function nu(l){return new $s(l)}class ae{constructor(a,c,f){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,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=jt(this.classes));for(let c=0;c<this.children.length;c++)if(this.children[c]instanceof At&&this.children[c+1]instanceof At){let f=this.children[c].toText()+this.children[++c].toText();for(;this.children[c+1]instanceof At;)f+=this.children[++c].toText();a.appendChild(new At(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(jt(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 At{constructor(a){this.text=void 0,this.text=a}toNode(){return document.createTextNode(this.text)}toMarkup(){return p(this.toText())}toText(){return this.text}}class ru{constructor(a){this.width=void 0,this.character=void 0,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",oe(this.width)),a}}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+oe(this.width)+'"/>'}toText(){return this.character?this.character:" "}}const c4=new Set(["\\imath","\\jmath"]),u4=new Set(["mrow","mtable"]),gn=function(l,a,c){return dt[a][l]&&dt[a][l].replace&&l.charCodeAt(0)!==55349&&!(Wc.hasOwnProperty(l)&&c&&(c.fontFamily&&c.fontFamily.slice(4,6)==="tt"||c.font&&c.font.slice(4,6)==="tt"))&&(l=dt[a][l].replace),new At(l)},Wo=function(l){return l.length===1?l[0]:new ae("mrow",l)},Go=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(c4.has(m))return null;dt[f][m]&&dt[f][m].replace&&(m=dt[f][m].replace);const y=qo[c].fontName;return Cr(m,y,f)?qo[c].variant:null};function Ko(l){if(!l)return!1;if(l.type==="mi"&&l.children.length===1){const a=l.children[0];return a instanceof At&&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 At&&a.text===","}else return!1}const en=function(l,a,c){if(l.length===1){const y=it(l[0],a);return c&&y instanceof ae&&y.type==="mo"&&(y.setAttribute("lspace","0em"),y.setAttribute("rspace","0em")),[y]}const f=[];let m;for(let y=0;y<l.length;y++){const _=it(l[y],a);if(_ instanceof ae&&m instanceof ae){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(Ko(_)&&m.type==="mn"){m.children.push(..._.children);continue}else if(_.type==="mn"&&Ko(m))_.children=[...m.children,..._.children],f.pop();else if((_.type==="msup"||_.type==="msub")&&_.children.length>=1&&(m.type==="mn"||Ko(m))){const E=_.children[0];E instanceof ae&&E.type==="mn"&&(E.children=[...m.children,...E.children],f.pop())}else if(m.type==="mi"&&m.children.length===1){const E=m.children[0];if(E instanceof At&&E.text==="̸"&&(_.type==="mo"||_.type==="mi"||_.type==="mn")){const C=_.children[0];C instanceof At&&C.text.length>0&&(C.text=C.text.slice(0,1)+"̸"+C.text.slice(1),f.pop())}}}f.push(_),m=_}return f},cr=function(l,a,c){return Wo(en(l,a,c))},it=function(l,a){if(!l)return new ae("mrow");if(Hi[l.type])return Hi[l.type](l,a);throw new i("Got group of unknown type: '"+l.type+"'")};function su(l,a,c,f,m){const y=en(l,c);let _;y.length===1&&y[0]instanceof ae&&u4.has(y[0].type)?_=y[0]:_=new ae("mrow",y);const E=new ae("annotation",[new At(a)]);E.setAttribute("encoding","application/x-tex");const C=new ae("semantics",[_,E]),R=new ae("math",[C]);return R.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),f&&R.setAttribute("display","block"),se([m?"katex":"katex-mathml"],[R])}const iu=function(l){return new J({style:l.displayMode?te.DISPLAY:te.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},au=function(l,a){if(a.displayMode){const c=["katex-display"];a.leqno&&c.push("leqno"),a.fleqn&&c.push("fleqn"),l=se(c,[l])}return l},f4=function(l,a,c){const f=iu(c);let m;if(c.output==="mathml")return su(l,a,f,c.displayMode,!0);if(c.output==="html"){const y=jo(l,f);m=se(["katex"],[y])}else{const y=su(l,a,f,c.displayMode,!1),_=jo(l,f);m=se(["katex"],[y,_])}return au(m,c)},h4=function(l,a,c){const f=iu(c),m=jo(l,f),y=se(["katex"],[m]);return au(y,c)},d4={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":"="},Wi=function(l){const a=new ae("mo",[new At(d4[l.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},m4={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]},p4=new Set(["widehat","widecheck","widetilde","utilde"]),Gi=function(l,a){function c(){let _=4e5;const E=l.label.slice(1);if(p4.has(E)){const C=l,R=C.base.type==="ordgroup"?C.base.body.length:1;let q,H,K;if(R>5)E==="widehat"||E==="widecheck"?(q=420,_=2364,K=.42,H=E+"4"):(q=312,_=2340,K=.34,H="tilde4");else{const ye=[1,1,2,2,3,3][R];E==="widehat"||E==="widecheck"?(_=[0,1062,2364,2364,2364][ye],q=[0,239,300,360,420][ye],K=[0,.24,.3,.3,.36,.42][ye],H=E+ye):(_=[0,600,1033,2339,2340][ye],q=[0,260,286,306,312][ye],K=[0,.26,.286,.3,.306,.34][ye],H="tilde"+ye)}const Z=new or(H),de=new jn([Z],{width:"100%",height:oe(K),viewBox:"0 0 "+_+" "+q,preserveAspectRatio:"none"});return{span:lr([],[de],a),minWidth:0,height:K}}else{const C=[],R=m4[E],[q,H,K]=R,Z=K/1e3,de=q.length;let ye,He;if(de===1){const Fe=R[3];ye=["hide-tail"],He=[Fe]}else if(de===2)ye=["halfarrow-left","halfarrow-right"],He=["xMinYMin","xMaxYMin"];else if(de===3)ye=["brace-left","brace-center","brace-right"],He=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
||
`+de+" children.");for(let Fe=0;Fe<de;Fe++){const Ve=new or(q[Fe]),Ze=new jn([Ve],{width:"400em",height:oe(Z),viewBox:"0 0 "+_+" "+K,preserveAspectRatio:He[Fe]+" slice"}),at=lr([ye[Fe]],[Ze],a);if(de===1)return{span:at,minWidth:H,height:Z};at.style.height=oe(Z),C.push(at)}return{span:se(["stretchy"],C,a),minWidth:H,height:Z}}}const{span:f,minWidth:m,height:y}=c();return f.height=y,f.style.height=oe(y),m>0&&(f.style.minWidth=oe(m)),f},g4=function(l,a,c,f,m){let y;const _=l.height+l.depth+c+f;if(/fbox|color|angl/.test(a)){if(y=se(["stretchy",a],[],m),a==="fbox"){const E=m.color&&m.getColor();E&&(y.style.borderColor=E)}}else{const E=[];/^[bx]cancel$/.test(a)&&E.push(new $o({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&E.push(new $o({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const C=new jn(E,{width:"100%",height:oe(_)});y=lr([],[C],m)}return y.height=_,y.style.height=oe(_),y};function Be(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 Xo(l){const a=Ki(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 Ki(l){return l&&(l.type==="atom"||Jp.hasOwnProperty(l.type))?l:null}const Yo=(l,a)=>{let c,f,m;l&&l.type==="supsub"?(f=Be(l.base,"accent"),c=f.base,l.base=c,m=Xp(je(l,a)),l.base=f):(f=Be(l,"accent"),c=f.base);const y=je(c,a.havingCrampedStyle()),_=f.isShifty&&x(c);let E=0;if(_){const K=w(c),Z=je(K,a.havingCrampedStyle());E=jc(Z).skew}const C=f.label==="\\c";let R=C?y.height+y.depth:Math.min(y.height,a.fontMetrics().xHeight),q;if(f.isStretchy)q=Gi(f,a),q=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:y},{type:"elem",elem:q,wrapperClasses:["svg-align"],wrapperStyle:E>0?{width:"calc(100% - "+oe(2*E)+")",marginLeft:oe(2*E)}:void 0}]});else{let K,Z;f.label==="\\vec"?(K=Zc("vec",a),Z=Qc.vec[1]):(K=zi({mode:f.mode,text:f.label},a,"textord"),K=jc(K),K.italic=0,Z=K.width,C&&(R+=K.depth)),q=se(["accent-body"],[K]);const de=f.label==="\\textcircled";de&&(q.classes.push("accent-full"),R=y.height);let ye=E;de||(ye-=Z/2),q.style.left=oe(ye),f.label==="\\textcircled"&&(q.style.top=".2em"),q=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:y},{type:"kern",size:-R},{type:"elem",elem:q}]})}const H=se(["mord","accent"],[q],a);return m?(m.children[0]=H,m.height=Math.max(H.height,m.height),m.classes[0]="mord",m):H},ou=(l,a)=>{const c=l.isStretchy?Wi(l.label):new ae("mo",[gn(l.label,l.mode)]),f=new ae("mover",[it(l.base,a),c]);return f.setAttribute("accent","true"),f},b4=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(l=>"\\"+l).join("|"));fe({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=Vi(a[0]),f=!b4.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:Yo,mathmlBuilder:ou}),fe({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:Yo,mathmlBuilder:ou}),fe({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=je(l.base,a),f=Gi(l,a),m=l.label==="\\utilde"?.12:0,y=Xe({positionType:"top",positionData:c.height,children:[{type:"elem",elem:f,wrapperClasses:["svg-align"]},{type:"kern",size:m},{type:"elem",elem:c}]});return se(["mord","accentunder"],[y],a)},mathmlBuilder:(l,a)=>{const c=Wi(l.label),f=new ae("munder",[it(l.base,a),c]);return f.setAttribute("accentunder","true"),f}});const Xi=l=>{const a=new ae("mpadded",l?[l]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};fe({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=ts(je(l.body,f,a),a),y=l.label.slice(0,2)==="\\x"?"x":"cd";m.classes.push(y+"-arrow-pad");let _;l.below&&(f=a.havingStyle(c.sub()),_=ts(je(l.below,f,a),a),_.classes.push(y+"-arrow-pad"));const E=Gi(l,a),C=-a.fontMetrics().axisHeight+.5*E.height;let R=-a.fontMetrics().axisHeight-.5*E.height-.111;(m.depth>.25||l.label==="\\xleftequilibrium")&&(R-=m.depth);let q;if(_){const H=-a.fontMetrics().axisHeight+_.height+.5*E.height+.111;q=Xe({positionType:"individualShift",children:[{type:"elem",elem:m,shift:R},{type:"elem",elem:E,shift:C},{type:"elem",elem:_,shift:H}]})}else q=Xe({positionType:"individualShift",children:[{type:"elem",elem:m,shift:R},{type:"elem",elem:E,shift:C}]});return q.children[0].children[0].children[1].classes.push("svg-align"),se(["mrel","x-arrow"],[q],a)},mathmlBuilder(l,a){const c=Wi(l.label);c.setAttribute("minsize",l.label.charAt(0)==="x"?"1.75em":"3.0em");let f;if(l.body){const m=Xi(it(l.body,a));if(l.below){const y=Xi(it(l.below,a));f=new ae("munderover",[c,y,m])}else f=new ae("mover",[c,m])}else if(l.below){const m=Xi(it(l.below,a));f=new ae("munder",[c,m])}else f=Xi(),f=new ae("mover",[c,f]);return f}});function lu(l,a){const c=Tt(l.body,a,!0);return se([l.mclass],c,a)}function cu(l,a){let c;const f=en(l.body,a);return l.mclass==="minner"?c=new ae("mpadded",f):l.mclass==="mord"?l.isCharacterBox?(c=f[0],c.type="mi"):c=new ae("mi",f):(l.isCharacterBox?(c=f[0],c.type="mo"):c=new ae("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}fe({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:bt(m),isCharacterBox:x(m)}},htmlBuilder:lu,mathmlBuilder:cu});const Yi=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"};fe({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(l,a){let{parser:c}=l;return{type:"mclass",mode:c.mode,mclass:Yi(a[0]),body:bt(a[1]),isCharacterBox:x(a[1])}}}),fe({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(l,a){let{parser:c,funcName:f}=l;const m=a[1],y=a[0];let _;f!=="\\stackrel"?_=Yi(m):_="mrel";const E={type:"op",mode:m.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:f!=="\\stackrel",body:bt(m)},C={type:"supsub",mode:y.mode,base:E,sup:f==="\\underset"?null:y,sub:f==="\\underset"?y:null};return{type:"mclass",mode:c.mode,mclass:_,body:[C],isCharacterBox:x(C)}},htmlBuilder:lu,mathmlBuilder:cu}),fe({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(l,a){let{parser:c}=l;return{type:"pmb",mode:c.mode,mclass:Yi(a[0]),body:bt(a[0])}},htmlBuilder(l,a){const c=Tt(l.body,a,!0),f=se([l.mclass],c,a);return f.style.textShadow="0.02em 0.01em 0.04px",f},mathmlBuilder(l,a){const c=en(l.body,a),f=new ae("mstyle",c);return f.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),f}});const y4={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},uu=()=>({type:"styling",body:[],mode:"math",style:"display"}),fu=l=>l.type==="textord"&&l.text==="@",w4=(l,a)=>(l.type==="mathord"||l.type==="atom")&&l.text===a;function v4(l,a,c){const f=y4[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]],[]),y={type:"atom",text:f,mode:"math",family:"rel"},_=c.callFunction("\\Big",[y],[]),E=c.callFunction("\\\\cdright",[a[1]],[]),C={type:"ordgroup",mode:"math",body:[m,_,E]};return c.callFunction("\\\\cdparent",[C],[])}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 _4(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 y=l.fetch().text;if(y==="&"||y==="\\\\")l.consume();else if(y==="\\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 y=0;y<a.length;y++){const _=a[y];let E=uu();for(let C=0;C<_.length;C++)if(!fu(_[C]))E.body.push(_[C]);else{c.push(E),C+=1;const R=Xo(_[C]).text,q=new Array(2);if(q[0]={type:"ordgroup",mode:"math",body:[]},q[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(R))if("<>AV".includes(R))for(let Z=0;Z<2;Z++){let de=!0;for(let ye=C+1;ye<_.length;ye++){if(w4(_[ye],R)){de=!1,C=ye;break}if(fu(_[ye]))throw new i("Missing a "+R+" character to complete a CD arrow.",_[ye]);q[Z].body.push(_[ye])}if(de)throw new i("Missing a "+R+" character to complete a CD arrow.",_[C])}else throw new i('Expected one of "<>AV=|." after @',_[C]);const K={type:"styling",body:[v4(R,q,l)],mode:"math",style:"display"};c.push(K),E=uu()}y%2===0?c.push(E):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([])}}fe({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=ts(je(l.label,c,a),a);return f.classes.push("cd-label-"+l.side),f.style.bottom=oe(.8-f.depth),f.height=0,f.depth=0,f},mathmlBuilder(l,a){let c=new ae("mrow",[it(l.label,a)]);return c=new ae("mpadded",[c]),c.setAttribute("width","0"),l.side==="left"&&c.setAttribute("lspace","-1width"),c.setAttribute("voffset","0.7em"),c=new ae("mstyle",[c]),c.setAttribute("displaystyle","false"),c.setAttribute("scriptlevel","1"),c}}),fe({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=ts(je(l.fragment,a),a);return c.classes.push("cd-vert-arrow"),c},mathmlBuilder(l,a){return new ae("mrow",[it(l.fragment,a)])}}),fe({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(l,a){let{parser:c}=l;const m=Be(a[0],"ordgroup").body;let y="";for(let C=0;C<m.length;C++){const R=Be(m[C],"textord");y+=R.text}let _=parseInt(y),E;if(isNaN(_))throw new i("\\@char has non-numeric argument "+y);if(_<0||_>=1114111)throw new i("\\@char with invalid code point "+y);return _<=65535?E=String.fromCharCode(_):(_-=65536,E=String.fromCharCode((_>>10)+55296,(_&1023)+56320)),{type:"textord",mode:c.mode,text:E}}});const hu=(l,a)=>{const c=Tt(l.body,a.withColor(l.color),!1);return Gn(c)},du=(l,a)=>{const c=en(l.body,a.withColor(l.color)),f=new ae("mstyle",c);return f.setAttribute("mathcolor",l.color),f};fe({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(l,a){let{parser:c}=l;const f=Be(a[0],"color-token").color,m=a[1];return{type:"color",mode:c.mode,color:f,body:bt(m)}},htmlBuilder:hu,mathmlBuilder:du}),fe({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(l,a){let{parser:c,breakOnTokenText:f}=l;const m=Be(a[0],"color-token").color;c.gullet.macros.set("\\current@color",m);const y=c.parseExpression(!0,f);return{type:"color",mode:c.mode,color:m,body:y}},htmlBuilder:hu,mathmlBuilder:du}),fe({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,y=!f.settings.displayMode||!f.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:f.mode,newLine:y,size:m&&Be(m,"size").value}},htmlBuilder(l,a){const c=se(["mspace"],[],a);return l.newLine&&(c.classes.push("newline"),l.size&&(c.style.marginTop=oe(Ke(l.size,a)))),c},mathmlBuilder(l,a){const c=new ae("mspace");return l.newLine&&(c.setAttribute("linebreak","newline"),l.size&&c.setAttribute("height",oe(Ke(l.size,a)))),c}});const Jo={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},mu=l=>{const a=l.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new i("Expected a control sequence",l);return a},x4=l=>{let a=l.gullet.popToken();return a.text==="="&&(a=l.gullet.popToken(),a.text===" "&&(a=l.gullet.popToken())),a},pu=(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)};fe({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(Jo[f.text])return(c==="\\global"||c==="\\\\globallong")&&(f.text=Jo[f.text]),Be(a.parseFunction(),"internal");throw new i("Invalid token after macro prefix",f)}}),fe({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 y=0,_;const E=[[]];for(;a.gullet.future().text!=="{";)if(f=a.gullet.popToken(),f.text==="#"){if(a.gullet.future().text==="{"){_=a.gullet.future(),E[y].push("{");break}if(f=a.gullet.popToken(),!/^[1-9]$/.test(f.text))throw new i('Invalid argument number "'+f.text+'"');if(parseInt(f.text)!==y+1)throw new i('Argument number "'+f.text+'" out of order');y++,E.push([])}else{if(f.text==="EOF")throw new i("Expected a macro definition");E[y].push(f.text)}let{tokens:C}=a.gullet.consumeArg();return _&&C.unshift(_),(c==="\\edef"||c==="\\xdef")&&(C=a.gullet.expandTokens(C),C.reverse()),a.gullet.macros.set(m,{tokens:C,numArgs:y,delimiters:E},c===Jo[c]),{type:"internal",mode:a.mode}}}),fe({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(l){let{parser:a,funcName:c}=l;const f=mu(a.gullet.popToken());a.gullet.consumeSpaces();const m=x4(a);return pu(a,f,m,c==="\\\\globallet"),{type:"internal",mode:a.mode}}}),fe({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(l){let{parser:a,funcName:c}=l;const f=mu(a.gullet.popToken()),m=a.gullet.popToken(),y=a.gullet.popToken();return pu(a,f,y,c==="\\\\globalfuture"),a.gullet.pushToken(y),a.gullet.pushToken(m),{type:"internal",mode:a.mode}}});const Fs=function(l,a,c){const f=dt.math[l]&&dt.math[l].replace,m=Cr(f||l,a,c);if(!m)throw new Error("Unsupported symbol "+l+" and font size "+a+".");return m},Qo=function(l,a,c,f){const m=c.havingBaseStyle(a),y=se(f.concat(m.sizingClasses(c)),[l],c),_=m.sizeMultiplier/c.sizeMultiplier;return y.height*=_,y.depth*=_,y.maxFontSize=m.sizeMultiplier,y},gu=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=oe(m),l.height-=m,l.depth+=m},k4=function(l,a,c,f,m,y){const _=Gt(l,"Main-Regular",m,f),E=Qo(_,a,f,y);return gu(E,f,a),E},S4=function(l,a,c,f){return Gt(l,"Size"+a+"-Regular",c,f)},bu=function(l,a,c,f,m,y){const _=S4(l,a,m,f),E=Qo(se(["delimsizing","size"+a],[_],f),te.TEXT,f,y);return c&&gu(E,f,te.TEXT),E},Zo=function(l,a,c){let f;return a==="Size1-Regular"?f="delim-size1":f="delim-size4",{type:"elem",elem:se(["delimsizinginner",f],[se([],[Gt(l,a,c)])])}},el=function(l,a,c){const f=$e["Size4-Regular"][l.charCodeAt(0)]?$e["Size4-Regular"][l.charCodeAt(0)][4]:$e["Size1-Regular"][l.charCodeAt(0)][4],m=new or("inner",Tr(l,Math.round(1e3*a))),y=new jn([m],{width:oe(f),height:oe(a),style:"width:"+oe(f),viewBox:"0 0 "+1e3*f+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),_=lr([],[y],c);return _.height=a,_.style.height=oe(a),_.style.width=oe(f),{type:"elem",elem:_}},tl=.008,Ji={type:"kern",size:-1*tl},A4=new Set(["|","\\lvert","\\rvert","\\vert"]),E4=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),yu=function(l,a,c,f,m,y){let _,E,C,R,q="",H=0;_=C=R=l,E=null;let K="Size1-Regular";l==="\\uparrow"?C=R="⏐":l==="\\Uparrow"?C=R="‖":l==="\\downarrow"?_=C="⏐":l==="\\Downarrow"?_=C="‖":l==="\\updownarrow"?(_="\\uparrow",C="⏐",R="\\downarrow"):l==="\\Updownarrow"?(_="\\Uparrow",C="‖",R="\\Downarrow"):A4.has(l)?(C="∣",q="vert",H=333):E4.has(l)?(C="∥",q="doublevert",H=556):l==="["||l==="\\lbrack"?(_="⎡",C="⎢",R="⎣",K="Size4-Regular",q="lbrack",H=667):l==="]"||l==="\\rbrack"?(_="⎤",C="⎥",R="⎦",K="Size4-Regular",q="rbrack",H=667):l==="\\lfloor"||l==="⌊"?(C=_="⎢",R="⎣",K="Size4-Regular",q="lfloor",H=667):l==="\\lceil"||l==="⌈"?(_="⎡",C=R="⎢",K="Size4-Regular",q="lceil",H=667):l==="\\rfloor"||l==="⌋"?(C=_="⎥",R="⎦",K="Size4-Regular",q="rfloor",H=667):l==="\\rceil"||l==="⌉"?(_="⎤",C=R="⎥",K="Size4-Regular",q="rceil",H=667):l==="("||l==="\\lparen"?(_="⎛",C="⎜",R="⎝",K="Size4-Regular",q="lparen",H=875):l===")"||l==="\\rparen"?(_="⎞",C="⎟",R="⎠",K="Size4-Regular",q="rparen",H=875):l==="\\{"||l==="\\lbrace"?(_="⎧",E="⎨",R="⎩",C="⎪",K="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(_="⎫",E="⎬",R="⎭",C="⎪",K="Size4-Regular"):l==="\\lgroup"||l==="⟮"?(_="⎧",R="⎩",C="⎪",K="Size4-Regular"):l==="\\rgroup"||l==="⟯"?(_="⎫",R="⎭",C="⎪",K="Size4-Regular"):l==="\\lmoustache"||l==="⎰"?(_="⎧",R="⎭",C="⎪",K="Size4-Regular"):(l==="\\rmoustache"||l==="⎱")&&(_="⎫",R="⎩",C="⎪",K="Size4-Regular");const Z=Fs(_,K,m),de=Z.height+Z.depth,ye=Fs(C,K,m),He=ye.height+ye.depth,Fe=Fs(R,K,m),Ve=Fe.height+Fe.depth;let Ze=0,at=1;if(E!==null){const Ye=Fs(E,K,m);Ze=Ye.height+Ye.depth,at=2}const Kt=de+Ve+Ze,Nt=Math.max(0,Math.ceil((a-Kt)/(at*He))),bn=Kt+Nt*at*He;let rs=f.fontMetrics().axisHeight;c&&(rs*=f.sizeMultiplier);const na=bn/2-rs,Xt=[];if(q.length>0){const Ye=bn-de-Ve,ot=Math.round(bn*1e3),nn=le(q,Math.round(Ye*1e3)),yt=new or(q,nn),fn=(H/1e3).toFixed(3)+"em",cf=(ot/1e3).toFixed(3)+"em",tg=new jn([yt],{width:fn,height:cf,viewBox:"0 0 "+H+" "+ot}),ra=lr([],[tg],f);ra.height=ot/1e3,ra.style.width=fn,ra.style.height=cf,Xt.push({type:"elem",elem:ra})}else{if(Xt.push(Zo(R,K,m)),Xt.push(Ji),E===null){const Ye=bn-de-Ve+2*tl;Xt.push(el(C,Ye,f))}else{const Ye=(bn-de-Ve-Ze)/2+2*tl;Xt.push(el(C,Ye,f)),Xt.push(Ji),Xt.push(Zo(E,K,m)),Xt.push(Ji),Xt.push(el(C,Ye,f))}Xt.push(Ji),Xt.push(Zo(_,K,m))}const We=f.havingBaseStyle(te.TEXT),Dt=Xe({positionType:"bottom",positionData:na,children:Xt});return Qo(se(["delimsizing","mult"],[Dt],We),te.TEXT,f,y)},nl=80,rl=.08,sl=function(l,a,c,f,m){const y=Er(l,f,c),_=new or(l,y),E=new jn([_],{width:"400em",height:oe(a),viewBox:"0 0 400000 "+c,preserveAspectRatio:"xMinYMin slice"});return lr(["hide-tail"],[E],m)},T4=function(l,a){const c=a.havingBaseSizing(),f=ku("\\surd",l*c.sizeMultiplier,xu,c);let m=c.sizeMultiplier;const y=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness);let _,E=0,C=0,R=0,q;return f.type==="small"?(R=1e3+1e3*y+nl,l<1?m=1:l<1.4&&(m=.7),E=(1+y+rl)/m,C=(1+y)/m,_=sl("sqrtMain",E,R,y,a),_.style.minWidth="0.853em",q=.833/m):f.type==="large"?(R=(1e3+nl)*zs[f.size],C=(zs[f.size]+y)/m,E=(zs[f.size]+y+rl)/m,_=sl("sqrtSize"+f.size,E,R,y,a),_.style.minWidth="1.02em",q=1/m):(E=l+y+rl,C=l+y,R=Math.floor(1e3*l+y)+nl,_=sl("sqrtTall",E,R,y,a),_.style.minWidth="0.742em",q=1.056),_.height=C,_.style.height=oe(E),{span:_,advanceWidth:q,ruleWidth:(a.fontMetrics().sqrtRuleThickness+y)*m}},wu=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),N4=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),vu=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),zs=[0,1.2,1.8,2.4,3],_u=function(l,a,c,f,m){if(l==="<"||l==="\\lt"||l==="⟨"?l="\\langle":(l===">"||l==="\\gt"||l==="⟩")&&(l="\\rangle"),wu.has(l)||vu.has(l))return bu(l,a,!1,c,f,m);if(N4.has(l))return yu(l,zs[a],!1,c,f,m);throw new i("Illegal delimiter: '"+l+"'")},C4=[{type:"small",style:te.SCRIPTSCRIPT},{type:"small",style:te.SCRIPT},{type:"small",style:te.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],I4=[{type:"small",style:te.SCRIPTSCRIPT},{type:"small",style:te.SCRIPT},{type:"small",style:te.TEXT},{type:"stack"}],xu=[{type:"small",style:te.SCRIPTSCRIPT},{type:"small",style:te.SCRIPT},{type:"small",style:te.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],O4=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";throw new Error("Add support for delim type '"+l.type+"' here.")},ku=function(l,a,c,f){const m=Math.min(2,3-f.style.size);for(let y=m;y<c.length&&c[y].type!=="stack";y++){const _=Fs(l,O4(c[y]),"math");let E=_.height+_.depth;if(c[y].type==="small"){const C=f.havingBaseStyle(c[y].style);E*=C.sizeMultiplier}if(E>a)return c[y]}return c[c.length-1]},il=function(l,a,c,f,m,y){l==="<"||l==="\\lt"||l==="⟨"?l="\\langle":(l===">"||l==="\\gt"||l==="⟩")&&(l="\\rangle");let _;vu.has(l)?_=C4:wu.has(l)?_=xu:_=I4;const E=ku(l,a,_,f);return E.type==="small"?k4(l,E.style,c,f,m,y):E.type==="large"?bu(l,E.size,c,f,m,y):yu(l,a,c,f,m,y)},al=function(l,a,c,f,m,y){const _=f.fontMetrics().axisHeight*f.sizeMultiplier,E=901,C=5/f.fontMetrics().ptPerEm,R=Math.max(a-_,c+_),q=Math.max(R/500*E,2*R-C);return il(l,q,!0,f,m,y)},Su={"\\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}},M4=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 Qi(l,a){const c=Ki(l);if(c&&M4.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)}fe({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=Qi(a[0],l);return{type:"delimsizing",mode:l.parser.mode,size:Su[l.funcName].size,mclass:Su[l.funcName].mclass,delim:c.text}},htmlBuilder:(l,a)=>l.delim==="."?se([l.mclass]):_u(l.delim,l.size,a,l.mode,[l.mclass]),mathmlBuilder:l=>{const a=[];l.delim!=="."&&a.push(gn(l.delim,l.mode));const c=new ae("mo",a);l.mclass==="mopen"||l.mclass==="mclose"?c.setAttribute("fence","true"):c.setAttribute("fence","false"),c.setAttribute("stretchy","true");const f=oe(zs[l.size]);return c.setAttribute("minsize",f),c.setAttribute("maxsize",f),c}});function Au(l){if(!l.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}fe({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:Qi(a[0],l).text,color:c}}}),fe({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(l,a)=>{const c=Qi(a[0],l),f=l.parser;++f.leftrightDepth;const m=f.parseExpression(!1);--f.leftrightDepth,f.expect("\\right",!1);const y=Be(f.parseFunction(),"leftright-right");return{type:"leftright",mode:f.mode,body:m,left:c.text,right:y.delim,rightColor:y.color}},htmlBuilder:(l,a)=>{Au(l);const c=Tt(l.body,a,!0,["mopen","mclose"]);let f=0,m=0,y=!1;for(let C=0;C<c.length;C++)c[C].isMiddle?y=!0:(f=Math.max(c[C].height,f),m=Math.max(c[C].depth,m));f*=a.sizeMultiplier,m*=a.sizeMultiplier;let _;if(l.left==="."?_=Bs(a,["mopen"]):_=al(l.left,f,m,a,l.mode,["mopen"]),c.unshift(_),y)for(let C=1;C<c.length;C++){const q=c[C].isMiddle;q&&(c[C]=al(q.delim,f,m,q.options,l.mode,[]))}let E;if(l.right===".")E=Bs(a,["mclose"]);else{const C=l.rightColor?a.withColor(l.rightColor):a;E=al(l.right,f,m,C,l.mode,["mclose"])}return c.push(E),se(["minner"],c,a)},mathmlBuilder:(l,a)=>{Au(l);const c=en(l.body,a);if(l.left!=="."){const f=new ae("mo",[gn(l.left,l.mode)]);f.setAttribute("fence","true"),c.unshift(f)}if(l.right!=="."){const f=new ae("mo",[gn(l.right,l.mode)]);f.setAttribute("fence","true"),l.rightColor&&f.setAttribute("mathcolor",l.rightColor),c.push(f)}return Wo(c)}}),fe({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(l,a)=>{const c=Qi(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=Bs(a,[]);else{c=_u(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==="|"?gn("|","text"):gn(l.delim,l.mode),f=new ae("mo",[c]);return f.setAttribute("fence","true"),f.setAttribute("lspace","0.05em"),f.setAttribute("rspace","0.05em"),f}});const ol=(l,a)=>{const c=ts(je(l.body,a),a),f=l.label.slice(1);let m=a.sizeMultiplier,y,_=0;const E=x(l.body);if(f==="sout")y=se(["stretchy","sout"]),y.height=a.fontMetrics().defaultRuleThickness/m,_=-.5*a.fontMetrics().xHeight;else if(f==="phase"){const R=Ke({number:.6,unit:"pt"},a),q=Ke({number:.35,unit:"ex"},a),H=a.havingBaseSizing();m=m/H.sizeMultiplier;const K=c.height+c.depth+R+q;c.style.paddingLeft=oe(K/2+R);const Z=Math.floor(1e3*K*m),de=Sn(Z),ye=new jn([new or("phase",de)],{width:"400em",height:oe(Z/1e3),viewBox:"0 0 400000 "+Z,preserveAspectRatio:"xMinYMin slice"});y=lr(["hide-tail"],[ye],a),y.style.height=oe(K),_=c.depth+R+q}else{/cancel/.test(f)?E||c.classes.push("cancel-pad"):f==="angl"?c.classes.push("anglpad"):c.classes.push("boxpad");let R=0,q=0,H=0;/box/.test(f)?(H=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness),R=a.fontMetrics().fboxsep+(f==="colorbox"?0:H),q=R):f==="angl"?(H=Math.max(a.fontMetrics().defaultRuleThickness,a.minRuleThickness),R=4*H,q=Math.max(0,.25-c.depth)):(R=E?.2:0,q=R),y=g4(c,f,R,q,a),/fbox|boxed|fcolorbox/.test(f)?(y.style.borderStyle="solid",y.style.borderWidth=oe(H)):f==="angl"&&H!==.049&&(y.style.borderTopWidth=oe(H),y.style.borderRightWidth=oe(H)),_=c.depth+q,l.backgroundColor&&(y.style.backgroundColor=l.backgroundColor,l.borderColor&&(y.style.borderColor=l.borderColor))}let C;if(l.backgroundColor)C=Xe({positionType:"individualShift",children:[{type:"elem",elem:y,shift:_},{type:"elem",elem:c,shift:0}]});else{const R=/cancel|phase/.test(f)?["svg-align"]:[];C=Xe({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:y,shift:_,wrapperClasses:R}]})}return/cancel/.test(f)&&(C.height=c.height,C.depth=c.depth),/cancel/.test(f)&&!E?se(["mord","cancel-lap"],[C],a):se(["mord"],[C],a)},ll=(l,a)=>{let c=0;const f=new ae(l.label.includes("colorbox")?"mpadded":"menclose",[it(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};fe({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(l,a,c){let{parser:f,funcName:m}=l;const y=Be(a[0],"color-token").color,_=a[1];return{type:"enclose",mode:f.mode,label:m,backgroundColor:y,body:_}},htmlBuilder:ol,mathmlBuilder:ll}),fe({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(l,a,c){let{parser:f,funcName:m}=l;const y=Be(a[0],"color-token").color,_=Be(a[1],"color-token").color,E=a[2];return{type:"enclose",mode:f.mode,label:m,backgroundColor:_,borderColor:y,body:E}},htmlBuilder:ol,mathmlBuilder:ll}),fe({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]}}}),fe({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:ol,mathmlBuilder:ll}),fe({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 Eu={};function Dn(l){let{type:a,names:c,props:f,handler:m,htmlBuilder:y,mathmlBuilder:_}=l;const E={type:a,numArgs:f.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:m};for(let C=0;C<c.length;++C)Eu[c[C]]=E;y&&(Ui[a]=y),_&&(Hi[a]=_)}const Tu={};function T(l,a){Tu[l]=a}class tn{constructor(a,c,f){this.lexer=void 0,this.start=void 0,this.end=void 0,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 tn(a.loc.lexer,a.loc.start,c.loc.end):a&&a.loc}}class un{constructor(a,c){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=a,this.loc=c}range(a,c){return new un(c,tn.range(this,a))}}function Nu(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 Zi=l=>{if(!l.parser.settings.displayMode)throw new i("{"+l.envName+"} can be used only in display mode.")},L4=new Set(["gather","gather*"]);function cl(l){if(!l.includes("ed"))return!l.includes("*")}function ur(l,a,c){let{hskipBeforeAndAfter:f,addJot:m,cols:y,arraystretch:_,colSeparationType:E,autoTag:C,singleRow:R,emptySingleRow:q,maxNumCols:H,leqno:K}=a;if(l.gullet.beginGroup(),R||l.gullet.macros.set("\\cr","\\\\\\relax"),!_){const at=l.gullet.expandMacroAsText("\\arraystretch");if(at==null)_=1;else if(_=parseFloat(at),!_||_<0)throw new i("Invalid \\arraystretch: "+at)}l.gullet.beginGroup();let Z=[];const de=[Z],ye=[],He=[],Fe=C!=null?[]:void 0;function Ve(){C&&l.gullet.macros.set("\\@eqnsw","1",!0)}function Ze(){Fe&&(l.gullet.macros.get("\\df@tag")?(Fe.push(l.subparse([new un("\\df@tag")])),l.gullet.macros.set("\\df@tag",void 0,!0)):Fe.push(!!C&&l.gullet.macros.get("\\@eqnsw")==="1"))}for(Ve(),He.push(Nu(l));;){let at=l.parseExpression(!1,R?"\\end":"\\\\");l.gullet.endGroup(),l.gullet.beginGroup(),at={type:"ordgroup",mode:l.mode,body:at},c&&(at={type:"styling",mode:l.mode,style:c,body:[at]}),Z.push(at);const Kt=l.fetch().text;if(Kt==="&"){if(H&&Z.length===H){if(R||E)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(Kt==="\\end"){Ze(),Z.length===1&&at.type==="styling"&&at.body[0].body.length===0&&(de.length>1||!q)&&de.pop(),He.length<de.length+1&&He.push([]);break}else if(Kt==="\\\\"){l.consume();let Nt;l.gullet.future().text!==" "&&(Nt=l.parseSizeGroup(!0)),ye.push(Nt?Nt.value:null),Ze(),He.push(Nu(l)),Z=[],de.push(Z),Ve()}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:y,rowGaps:ye,hskipBeforeAndAfter:f,hLinesBeforeRow:He,colSeparationType:E,tags:Fe,leqno:K}}function ul(l){return l.slice(0,1)==="d"?"display":"text"}const Rn=function(l,a){let c,f;const m=l.body.length,y=l.hLinesBeforeRow;let _=0,E=new Array(m);const C=[],R=Math.max(a.fontMetrics().arrayRuleWidth,a.minRuleThickness),q=1/a.fontMetrics().ptPerEm;let H=5*q;l.colSeparationType&&l.colSeparationType==="small"&&(H=.2778*(a.havingStyle(te.SCRIPT).sizeMultiplier/a.sizeMultiplier));const K=l.colSeparationType==="CD"?Ke({number:3,unit:"ex"},a):12*q,Z=3*q,de=l.arraystretch*K,ye=.7*de,He=.3*de;let Fe=0;function Ve(We){for(let Dt=0;Dt<We.length;++Dt)Dt>0&&(Fe+=.25),C.push({pos:Fe,isDashed:We[Dt]})}for(Ve(y[0]),c=0;c<l.body.length;++c){const We=l.body[c];let Dt=ye,Ye=He;_<We.length&&(_=We.length);const ot=new Array(We.length);for(f=0;f<We.length;++f){const fn=je(We[f],a);Ye<fn.depth&&(Ye=fn.depth),Dt<fn.height&&(Dt=fn.height),ot[f]=fn}const nn=l.rowGaps[c];let yt=0;nn&&(yt=Ke(nn,a),yt>0&&(yt+=He,Ye<yt&&(Ye=yt),yt=0)),l.addJot&&(Ye+=Z),ot.height=Dt,ot.depth=Ye,Fe+=Dt,ot.pos=Fe,Fe+=Ye+yt,E[c]=ot,Ve(y[c+1])}const Ze=Fe/2+a.fontMetrics().axisHeight,at=l.cols||[],Kt=[];let Nt,bn;const rs=[];if(l.tags&&l.tags.some(We=>We))for(c=0;c<m;++c){const We=E[c],Dt=We.pos-Ze,Ye=l.tags[c];let ot;Ye===!0?ot=se(["eqn-num"],[],a):Ye===!1?ot=se([],[],a):ot=se([],Tt(Ye,a,!0),a),ot.depth=We.depth,ot.height=We.height,rs.push({type:"elem",elem:ot,shift:Dt})}for(f=0,bn=0;f<_||bn<at.length;++f,++bn){let We=at[bn]||{},Dt=!0;for(;We.type==="separator";){if(Dt||(Nt=se(["arraycolsep"],[]),Nt.style.width=oe(a.fontMetrics().doubleRuleSep),Kt.push(Nt)),We.separator==="|"||We.separator===":"){const nn=We.separator==="|"?"solid":"dashed",yt=se(["vertical-separator"],[],a);yt.style.height=oe(Fe),yt.style.borderRightWidth=oe(R),yt.style.borderRightStyle=nn,yt.style.margin="0 "+oe(-R/2);const fn=Fe-Ze;fn&&(yt.style.verticalAlign=oe(-fn)),Kt.push(yt)}else throw new i("Invalid separator type: "+We.separator);bn++,We=at[bn]||{},Dt=!1}if(f>=_)continue;let Ye;if(f>0||l.hskipBeforeAndAfter){var na;Ye=(na=We.pregap)!=null?na:H,Ye!==0&&(Nt=se(["arraycolsep"],[]),Nt.style.width=oe(Ye),Kt.push(Nt))}let ot=[];for(c=0;c<m;++c){const nn=E[c],yt=nn[f];if(!yt)continue;const fn=nn.pos-Ze;yt.depth=nn.depth,yt.height=nn.height,ot.push({type:"elem",elem:yt,shift:fn})}if(ot=Xe({positionType:"individualShift",children:ot}),ot=se(["col-align-"+(We.align||"c")],[ot]),Kt.push(ot),f<_-1||l.hskipBeforeAndAfter){var Xt;Ye=(Xt=We.postgap)!=null?Xt:H,Ye!==0&&(Nt=se(["arraycolsep"],[]),Nt.style.width=oe(Ye),Kt.push(Nt))}}if(E=se(["mtable"],Kt),C.length>0){const We=es("hline",a,R),Dt=es("hdashline",a,R),Ye=[{type:"elem",elem:E,shift:0}];for(;C.length>0;){const ot=C.pop(),nn=ot.pos-Ze;ot.isDashed?Ye.push({type:"elem",elem:Dt,shift:nn}):Ye.push({type:"elem",elem:We,shift:nn})}E=Xe({positionType:"individualShift",children:Ye})}if(rs.length===0)return se(["mord"],[E],a);{let We=Xe({positionType:"individualShift",children:rs});return We=se(["tag"],[We],a),Gn([E,We])}},D4={c:"center ",l:"left ",r:"right "},Pn=function(l,a){const c=[],f=new ae("mtd",[],["mtr-glue"]),m=new ae("mtd",[],["mml-eqn-num"]);for(let H=0;H<l.body.length;H++){const K=l.body[H],Z=[];for(let de=0;de<K.length;de++)Z.push(new ae("mtd",[it(K[de],a)]));l.tags&&l.tags[H]&&(Z.unshift(f),Z.push(f),l.leqno?Z.unshift(m):Z.push(m)),c.push(new ae("mtr",Z))}let y=new ae("mtable",c);const _=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);y.setAttribute("rowspacing",oe(_));let E="",C="";if(l.cols&&l.cols.length>0){const H=l.cols;let K="",Z=!1,de=0,ye=H.length;H[0].type==="separator"&&(E+="top ",de=1),H[H.length-1].type==="separator"&&(E+="bottom ",ye-=1);for(let He=de;He<ye;He++)H[He].type==="align"?(C+=D4[H[He].align],Z&&(K+="none "),Z=!0):H[He].type==="separator"&&Z&&(K+=H[He].separator==="|"?"solid ":"dashed ",Z=!1);y.setAttribute("columnalign",C.trim()),/[sd]/.test(K)&&y.setAttribute("columnlines",K.trim())}if(l.colSeparationType==="align"){const H=l.cols||[];let K="";for(let Z=1;Z<H.length;Z++)K+=Z%2?"0em ":"1em ";y.setAttribute("columnspacing",K.trim())}else l.colSeparationType==="alignat"||l.colSeparationType==="gather"?y.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?y.setAttribute("columnspacing","0.2778em"):l.colSeparationType==="CD"?y.setAttribute("columnspacing","0.5em"):y.setAttribute("columnspacing","1em");let R="";const q=l.hLinesBeforeRow;E+=q[0].length>0?"left ":"",E+=q[q.length-1].length>0?"right ":"";for(let H=1;H<q.length-1;H++)R+=q[H].length===0?"none ":q[H][0]?"dashed ":"solid ";return/[sd]/.test(R)&&y.setAttribute("rowlines",R.trim()),E!==""&&(y=new ae("menclose",[y]),y.setAttribute("notation",E.trim())),l.arraystretch&&l.arraystretch<1&&(y=new ae("mstyle",[y]),y.setAttribute("scriptlevel","1")),y},Cu=function(l,a){l.envName.includes("ed")||Zi(l);const c=[],f=l.envName.includes("at")?"alignat":"align",m=l.envName==="split",y=ur(l.parser,{cols:c,addJot:!0,autoTag:m?void 0:cl(l.envName),emptySingleRow:!0,colSeparationType:f,maxNumCols:m?2:void 0,leqno:l.parser.settings.leqno},"display");let _,E=0;const C={type:"ordgroup",mode:l.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){let q="";for(let H=0;H<a[0].body.length;H++){const K=Be(a[0].body[H],"textord");q+=K.text}_=Number(q),E=_*2}const R=!E;y.body.forEach(function(q){for(let H=1;H<q.length;H+=2){const K=Be(q[H],"styling");Be(K.body[0],"ordgroup").body.unshift(C)}if(R)E<q.length&&(E=q.length);else{const H=q.length/2;if(_<H)throw new i("Too many math in a row: "+("expected "+_+", but got "+H),q[0])}});for(let q=0;q<E;++q){let H="r",K=0;q%2===1?H="l":q>0&&R&&(K=1),c[q]={type:"align",align:H,pregap:K,postgap:0}}return y.colSeparationType=R?"align":"alignat",y};Dn({type:"array",names:["array","darray"],props:{numArgs:1},handler(l,a){const m=(Ki(a[0])?[a[0]]:Be(a[0],"ordgroup").body).map(function(_){const C=Xo(_).text;if("lcr".includes(C))return{type:"align",align:C};if(C==="|")return{type:"separator",separator:"|"};if(C===":")return{type:"separator",separator:":"};throw new i("Unknown column alignment: "+C,_)}),y={cols:m,hskipBeforeAndAfter:!0,maxNumCols:m.length};return ur(l.parser,y,ul(l.envName))},htmlBuilder:Rn,mathmlBuilder:Pn}),Dn({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=ur(l.parser,f,ul(l.envName)),y=Math.max(0,...m.body.map(_=>_.length));return m.cols=new Array(y).fill({type:"align",align:c}),a?{type:"leftright",mode:l.mode,body:[m],left:a[0],right:a[1],rightColor:void 0}:m},htmlBuilder:Rn,mathmlBuilder:Pn}),Dn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(l){const a={arraystretch:.5},c=ur(l.parser,a,"script");return c.colSeparationType="small",c},htmlBuilder:Rn,mathmlBuilder:Pn}),Dn({type:"array",names:["subarray"],props:{numArgs:1},handler(l,a){const m=(Ki(a[0])?[a[0]]:Be(a[0],"ordgroup").body).map(function(_){const C=Xo(_).text;if("lc".includes(C))return{type:"align",align:C};throw new i("Unknown column alignment: "+C,_)});if(m.length>1)throw new i("{subarray} can contain only one column");let y={cols:m,hskipBeforeAndAfter:!1,arraystretch:.5};if(y=ur(l.parser,y,"script"),y.body.length>0&&y.body[0].length>1)throw new i("{subarray} can contain only one column");return y},htmlBuilder:Rn,mathmlBuilder:Pn}),Dn({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=ur(l.parser,a,ul(l.envName));return{type:"leftright",mode:l.mode,body:[c],left:l.envName.includes("r")?".":"\\{",right:l.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Rn,mathmlBuilder:Pn}),Dn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Cu,htmlBuilder:Rn,mathmlBuilder:Pn}),Dn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(l){L4.has(l.envName)&&Zi(l);const a={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:cl(l.envName),emptySingleRow:!0,leqno:l.parser.settings.leqno};return ur(l.parser,a,"display")},htmlBuilder:Rn,mathmlBuilder:Pn}),Dn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Cu,htmlBuilder:Rn,mathmlBuilder:Pn}),Dn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(l){Zi(l);const a={autoTag:cl(l.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:l.parser.settings.leqno};return ur(l.parser,a,"display")},htmlBuilder:Rn,mathmlBuilder:Pn}),Dn({type:"array",names:["CD"],props:{numArgs:0},handler(l){return Zi(l),_4(l.parser)},htmlBuilder:Rn,mathmlBuilder:Pn}),T("\\nonumber","\\gdef\\@eqnsw{0}"),T("\\notag","\\nonumber"),fe({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 Iu=Eu;fe({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 y="";for(let _=0;_<m.body.length;++_)y+=Be(m.body[_],"textord").text;if(f==="\\begin"){if(!Iu.hasOwnProperty(y))throw new i("No such environment: "+y,m);const _=Iu[y],{args:E,optArgs:C}=c.parseArguments("\\begin{"+y+"}",_),R={mode:c.mode,envName:y,parser:c},q=_.handler(R,E,C);c.expect("\\end",!1);const H=c.nextToken,K=Be(c.parseFunction(),"environment");if(K.name!==y)throw new i("Mismatch: \\begin{"+y+"} matched by \\end{"+K.name+"}",H);return q}return{type:"environment",mode:c.mode,name:y,nameGroup:m}}});const Ou=(l,a)=>{const c=l.font,f=a.withFont(c);return je(l.body,f)},Mu=(l,a)=>{const c=l.font,f=a.withFont(c);return it(l.body,f)},Lu={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};fe({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=Vi(a[0]);let y=f;return y in Lu&&(y=Lu[y]),{type:"font",mode:c.mode,font:y.slice(1),body:m}},htmlBuilder:Ou,mathmlBuilder:Mu}),fe({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:Yi(f),body:[{type:"font",mode:c.mode,font:"boldsymbol",body:f}],isCharacterBox:x(f)}}}),fe({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:y}=c,_=c.parseExpression(!0,m),E="math"+f.slice(1);return{type:"font",mode:y,font:E,body:{type:"ordgroup",mode:c.mode,body:_}}},htmlBuilder:Ou,mathmlBuilder:Mu});const R4=(l,a)=>{const c=a.style,f=c.fracNum(),m=c.fracDen();let y;y=a.havingStyle(f);const _=je(l.numer,y,a);if(l.continued){const Ve=8.5/a.fontMetrics().ptPerEm,Ze=3.5/a.fontMetrics().ptPerEm;_.height=_.height<Ve?Ve:_.height,_.depth=_.depth<Ze?Ze:_.depth}y=a.havingStyle(m);const E=je(l.denom,y,a);let C,R,q;l.hasBarLine?(l.barSize?(R=Ke(l.barSize,a),C=es("frac-line",a,R)):C=es("frac-line",a),R=C.height,q=C.height):(C=null,R=0,q=a.fontMetrics().defaultRuleThickness);let H,K,Z;c.size===te.DISPLAY.size?(H=a.fontMetrics().num1,R>0?K=3*q:K=7*q,Z=a.fontMetrics().denom1):(R>0?(H=a.fontMetrics().num2,K=q):(H=a.fontMetrics().num3,K=3*q),Z=a.fontMetrics().denom2);let de;if(C){const Ve=a.fontMetrics().axisHeight;H-_.depth-(Ve+.5*R)<K&&(H+=K-(H-_.depth-(Ve+.5*R))),Ve-.5*R-(E.height-Z)<K&&(Z+=K-(Ve-.5*R-(E.height-Z)));const Ze=-(Ve-.5*R);de=Xe({positionType:"individualShift",children:[{type:"elem",elem:E,shift:Z},{type:"elem",elem:C,shift:Ze},{type:"elem",elem:_,shift:-H}]})}else{const Ve=H-_.depth-(E.height-Z);Ve<K&&(H+=.5*(K-Ve),Z+=.5*(K-Ve)),de=Xe({positionType:"individualShift",children:[{type:"elem",elem:E,shift:Z},{type:"elem",elem:_,shift:-H}]})}y=a.havingStyle(c),de.height*=y.sizeMultiplier/a.sizeMultiplier,de.depth*=y.sizeMultiplier/a.sizeMultiplier;let ye;c.size===te.DISPLAY.size?ye=a.fontMetrics().delim1:c.size===te.SCRIPTSCRIPT.size?ye=a.havingStyle(te.SCRIPT).fontMetrics().delim2:ye=a.fontMetrics().delim2;let He,Fe;return l.leftDelim==null?He=Bs(a,["mopen"]):He=il(l.leftDelim,ye,!0,a.havingStyle(c),l.mode,["mopen"]),l.continued?Fe=se([]):l.rightDelim==null?Fe=Bs(a,["mclose"]):Fe=il(l.rightDelim,ye,!0,a.havingStyle(c),l.mode,["mclose"]),se(["mord"].concat(y.sizingClasses(a)),[He,se(["mfrac"],[de]),Fe],a)},P4=(l,a)=>{const c=new ae("mfrac",[it(l.numer,a),it(l.denom,a)]);if(!l.hasBarLine)c.setAttribute("linethickness","0px");else if(l.barSize){const f=Ke(l.barSize,a);c.setAttribute("linethickness",oe(f))}if(l.leftDelim!=null||l.rightDelim!=null){const f=[];if(l.leftDelim!=null){const m=new ae("mo",[new At(l.leftDelim.replace("\\",""))]);m.setAttribute("fence","true"),f.push(m)}if(f.push(c),l.rightDelim!=null){const m=new ae("mo",[new At(l.rightDelim.replace("\\",""))]);m.setAttribute("fence","true"),f.push(m)}return Wo(f)}return c},Du=(l,a)=>a?{type:"styling",mode:l.mode,style:a,body:[l]}:l;fe({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],y=a[1];let _,E=null,C=null;switch(f){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":_=!0;break;case"\\\\atopfrac":_=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":_=!1,E="(",C=")";break;case"\\\\bracefrac":_=!1,E="\\{",C="\\}";break;case"\\\\brackfrac":_=!1,E="[",C="]";break;default:throw new Error("Unrecognized genfrac command")}const R=f==="\\cfrac";let q=null;return R||f.startsWith("\\d")?q="display":f.startsWith("\\t")&&(q="text"),Du({type:"genfrac",mode:c.mode,numer:m,denom:y,continued:R,hasBarLine:_,leftDelim:E,rightDelim:C,barSize:null},q)},htmlBuilder:R4,mathmlBuilder:P4}),fe({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 Ru=["display","text","script","scriptscript"],Pu=function(l){let a=null;return l.length>0&&(a=l,a=a==="."?null:a),a};fe({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],y=Vi(a[0]),_=y.type==="atom"&&y.family==="open"?Pu(y.text):null,E=Vi(a[1]),C=E.type==="atom"&&E.family==="close"?Pu(E.text):null,R=Be(a[2],"size");let q,H=null;R.isBlank?q=!0:(H=R.value,q=H.number>0);let K=null,Z=a[3];if(Z.type==="ordgroup"){if(Z.body.length>0){const de=Be(Z.body[0],"textord");K=Ru[Number(de.text)]}}else Z=Be(Z,"textord"),K=Ru[Number(Z.text)];return Du({type:"genfrac",mode:c.mode,numer:f,denom:m,continued:!1,hasBarLine:q,barSize:H,leftDelim:_,rightDelim:C},K)}}),fe({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:Be(a[0],"size").value,token:m}}}),fe({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(l,a)=>{let{parser:c,funcName:f}=l;const m=a[0],y=Be(a[1],"infix").size;if(!y)throw new Error("\\\\abovefrac expected size, but got "+String(y));const _=a[2],E=y.number>0;return{type:"genfrac",mode:c.mode,numer:m,denom:_,continued:!1,hasBarLine:E,barSize:y,leftDelim:null,rightDelim:null}}});const $u=(l,a)=>{const c=a.style;let f,m;l.type==="supsub"?(f=l.sup?je(l.sup,a.havingStyle(c.sup()),a):je(l.sub,a.havingStyle(c.sub()),a),m=Be(l.base,"horizBrace")):m=Be(l,"horizBrace");const y=je(m.base,a.havingBaseStyle(te.DISPLAY)),_=Gi(m,a);let E;if(m.isOver?(E=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:y},{type:"kern",size:.1},{type:"elem",elem:_}]}),E.children[0].children[0].children[1].classes.push("svg-align")):(E=Xe({positionType:"bottom",positionData:y.depth+.1+_.height,children:[{type:"elem",elem:_},{type:"kern",size:.1},{type:"elem",elem:y}]}),E.children[0].children[0].children[0].classes.push("svg-align")),f){const C=se(["mord",m.isOver?"mover":"munder"],[E],a);m.isOver?E=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:C},{type:"kern",size:.2},{type:"elem",elem:f}]}):E=Xe({positionType:"bottom",positionData:C.depth+.2+f.height+f.depth,children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:C}]})}return se(["mord",m.isOver?"mover":"munder"],[E],a)};fe({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:$u,mathmlBuilder:(l,a)=>{const c=Wi(l.label);return new ae(l.isOver?"mover":"munder",[it(l.base,a),c])}}),fe({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(l,a)=>{let{parser:c}=l;const f=a[1],m=Be(a[0],"url").url;return c.settings.isTrusted({command:"\\href",url:m})?{type:"href",mode:c.mode,href:m,body:bt(f)}:c.formatUnsupportedCmd("\\href")},htmlBuilder:(l,a)=>{const c=Tt(l.body,a,!1);return t4(l.href,[],c,a)},mathmlBuilder:(l,a)=>{let c=cr(l.body,a);return c instanceof ae||(c=new ae("mrow",[c])),c.setAttribute("href",l.href),c}}),fe({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(l,a)=>{let{parser:c}=l;const f=Be(a[0],"url").url;if(!c.settings.isTrusted({command:"\\url",url:f}))return c.formatUnsupportedCmd("\\url");const m=[];for(let _=0;_<f.length;_++){let E=f[_];E==="~"&&(E="\\textasciitilde"),m.push({type:"textord",mode:"text",text:E})}const y={type:"text",mode:c.mode,font:"\\texttt",body:m};return{type:"href",mode:c.mode,href:f,body:bt(y)}}}),fe({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:bt(a[0])}},htmlBuilder(l,a){const c=Tt(l.body,a,!1);return Gn(c)},mathmlBuilder(l,a){return new ae("mrow",en(l.body,a))}}),fe({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 y=Be(a[0],"raw").string,_=a[1];c.settings.strict&&c.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");let E;const C={};switch(f){case"\\htmlClass":C.class=y,E={command:"\\htmlClass",class:y};break;case"\\htmlId":C.id=y,E={command:"\\htmlId",id:y};break;case"\\htmlStyle":C.style=y,E={command:"\\htmlStyle",style:y};break;case"\\htmlData":{const R=y.split(",");for(let q=0;q<R.length;q++){const H=R[q],K=H.indexOf("=");if(K<0)throw new i("\\htmlData key/value '"+H+"' missing equals sign");const Z=H.slice(0,K),de=H.slice(K+1);C["data-"+Z.trim()]=de}E={command:"\\htmlData",attributes:C};break}default:throw new Error("Unrecognized html command")}return c.settings.isTrusted(E)?{type:"html",mode:c.mode,attributes:C,body:bt(_)}:c.formatUnsupportedCmd(f)},htmlBuilder:(l,a)=>{const c=Tt(l.body,a,!1),f=["enclosing"];l.attributes.class&&f.push(...l.attributes.class.trim().split(/\s+/));const m=se(f,c,a);for(const y in l.attributes)y!=="class"&&l.attributes.hasOwnProperty(y)&&m.setAttribute(y,l.attributes[y]);return m},mathmlBuilder:(l,a)=>cr(l.body,a)}),fe({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:bt(a[0]),mathml:bt(a[1])}},htmlBuilder:(l,a)=>{const c=Tt(l.html,a,!1);return Gn(c)},mathmlBuilder:(l,a)=>cr(l.mathml,a)});const fl=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(!ft(c))throw new i("Invalid unit: '"+c.unit+"' in \\includegraphics.");return c}};fe({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"},y={number:.9,unit:"em"},_={number:0,unit:"em"},E="";if(c[0]){const q=Be(c[0],"raw").string.split(",");for(let H=0;H<q.length;H++){const K=q[H].split("=");if(K.length===2){const Z=K[1].trim();switch(K[0].trim()){case"alt":E=Z;break;case"width":m=fl(Z);break;case"height":y=fl(Z);break;case"totalheight":_=fl(Z);break;default:throw new i("Invalid key: '"+K[0]+"' in \\includegraphics.")}}}}const C=Be(a[0],"url").url;return E===""&&(E=C,E=E.replace(/^.*[\\/]/,""),E=E.substring(0,E.lastIndexOf("."))),f.settings.isTrusted({command:"\\includegraphics",url:C})?{type:"includegraphics",mode:f.mode,alt:E,width:m,height:y,totalheight:_,src:C}:f.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(l,a)=>{const c=Ke(l.height,a);let f=0;l.totalheight.number>0&&(f=Ke(l.totalheight,a)-c);let m=0;l.width.number>0&&(m=Ke(l.width,a));const y={height:oe(c+f)};m>0&&(y.width=oe(m)),f>0&&(y.verticalAlign=oe(-f));const _=new Gp(l.src,l.alt,y);return _.height=c,_.depth=f,_},mathmlBuilder:(l,a)=>{const c=new ae("mglyph",[]);c.setAttribute("alt",l.alt);const f=Ke(l.height,a);let m=0;if(l.totalheight.number>0&&(m=Ke(l.totalheight,a)-f,c.setAttribute("valign",oe(-m))),c.setAttribute("height",oe(f+m)),l.width.number>0){const y=Ke(l.width,a);c.setAttribute("width",oe(y))}return c.setAttribute("src",l.src),c}}),fe({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=Be(a[0],"size");if(c.settings.strict){const y=f[1]==="m",_=m.value.unit==="mu";y?(_||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 Jc(l.dimension,a)},mathmlBuilder(l,a){const c=Ke(l.dimension,a);return new ru(c)}}),fe({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=se([],[je(l.body,a)]),c=se(["inner"],[c],a)):c=se(["inner"],[je(l.body,a)]);const f=se(["fix"],[]);let m=se([l.alignment],[c,f],a);const y=se(["strut"]);return y.style.height=oe(m.height+m.depth),m.depth&&(y.style.verticalAlign=oe(-m.depth)),m.children.unshift(y),m=se(["thinbox"],[m],a),se(["mord","vbox"],[m],a)},mathmlBuilder:(l,a)=>{const c=new ae("mpadded",[it(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}}),fe({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 y=c==="\\("?"\\)":"$",_=f.parseExpression(!1,y);return f.expect(y),f.switchMode(m),{type:"styling",mode:f.mode,style:"text",body:_}}}),fe({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(l,a){throw new i("Mismatched "+l.funcName)}});const Bu=(l,a)=>{switch(a.style.size){case te.DISPLAY.size:return l.display;case te.TEXT.size:return l.text;case te.SCRIPT.size:return l.script;case te.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};fe({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(l,a)=>{let{parser:c}=l;return{type:"mathchoice",mode:c.mode,display:bt(a[0]),text:bt(a[1]),script:bt(a[2]),scriptscript:bt(a[3])}},htmlBuilder:(l,a)=>{const c=Bu(l,a),f=Tt(c,a,!1);return Gn(f)},mathmlBuilder:(l,a)=>{const c=Bu(l,a);return cr(c,a)}});const Fu=(l,a,c,f,m,y,_)=>{l=se([],[l]);const E=c&&x(c);let C,R;if(a){const K=je(a,f.havingStyle(m.sup()),f);R={elem:K,kern:Math.max(f.fontMetrics().bigOpSpacing1,f.fontMetrics().bigOpSpacing3-K.depth)}}if(c){const K=je(c,f.havingStyle(m.sub()),f);C={elem:K,kern:Math.max(f.fontMetrics().bigOpSpacing2,f.fontMetrics().bigOpSpacing4-K.height)}}let q;if(R&&C){const K=f.fontMetrics().bigOpSpacing5+C.elem.height+C.elem.depth+C.kern+l.depth+_;q=Xe({positionType:"bottom",positionData:K,children:[{type:"kern",size:f.fontMetrics().bigOpSpacing5},{type:"elem",elem:C.elem,marginLeft:oe(-y)},{type:"kern",size:C.kern},{type:"elem",elem:l},{type:"kern",size:R.kern},{type:"elem",elem:R.elem,marginLeft:oe(y)},{type:"kern",size:f.fontMetrics().bigOpSpacing5}]})}else if(C){const K=l.height-_;q=Xe({positionType:"top",positionData:K,children:[{type:"kern",size:f.fontMetrics().bigOpSpacing5},{type:"elem",elem:C.elem,marginLeft:oe(-y)},{type:"kern",size:C.kern},{type:"elem",elem:l}]})}else if(R){const K=l.depth+_;q=Xe({positionType:"bottom",positionData:K,children:[{type:"elem",elem:l},{type:"kern",size:R.kern},{type:"elem",elem:R.elem,marginLeft:oe(y)},{type:"kern",size:f.fontMetrics().bigOpSpacing5}]})}else return l;const H=[q];if(C&&y!==0&&!E){const K=se(["mspace"],[],f);K.style.marginRight=oe(y),H.unshift(K)}return se(["mop","op-limits"],H,f)},zu=new Set(["\\smallint"]),ns=(l,a)=>{let c,f,m=!1,y;l.type==="supsub"?(c=l.sup,f=l.sub,y=Be(l.base,"op"),m=!0):y=Be(l,"op");const _=a.style;let E=!1;_.size===te.DISPLAY.size&&y.symbol&&!zu.has(y.name)&&(E=!0);let C;if(y.symbol){const H=E?"Size2-Regular":"Size1-Regular";let K="";if((y.name==="\\oiint"||y.name==="\\oiiint")&&(K=y.name.slice(1),y.name=K==="oiint"?"\\iint":"\\iiint"),C=Gt(y.name,H,"math",a,["mop","op-symbol",E?"large-op":"small-op"]),K.length>0){const Z=C.italic,de=Zc(K+"Size"+(E?"2":"1"),a);C=Xe({positionType:"individualShift",children:[{type:"elem",elem:C,shift:0},{type:"elem",elem:de,shift:E?.08:0}]}),y.name="\\"+K,C.classes.unshift("mop"),C.italic=Z}}else if(y.body){const H=Tt(y.body,a,!0);H.length===1&&H[0]instanceof pn?(C=H[0],C.classes[0]="mop"):C=se(["mop"],H,a)}else{const H=[];for(let K=1;K<y.name.length;K++)H.push(Fo(y.name[K],y.mode,a));C=se(["mop"],H,a)}let R=0,q=0;return(C instanceof pn||y.name==="\\oiint"||y.name==="\\oiiint")&&!y.suppressBaseShift&&(R=(C.height-C.depth)/2-a.fontMetrics().axisHeight,q=C.italic),m?Fu(C,c,f,a,_,q,R):(R&&(C.style.position="relative",C.style.top=oe(R)),C)},qs=(l,a)=>{let c;if(l.symbol)c=new ae("mo",[gn(l.name,l.mode)]),zu.has(l.name)&&c.setAttribute("largeop","false");else if(l.body)c=new ae("mo",en(l.body,a));else{c=new ae("mi",[new At(l.name.slice(1))]);const f=new ae("mo",[gn("","text")]);l.parentIsSupSub?c=new ae("mrow",[c,f]):c=nu([c,f])}return c},$4={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};fe({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=$4[m]),{type:"op",mode:c.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:m}},htmlBuilder:ns,mathmlBuilder:qs}),fe({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:bt(f)}},htmlBuilder:ns,mathmlBuilder:qs});const B4={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};fe({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:ns,mathmlBuilder:qs}),fe({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:ns,mathmlBuilder:qs}),fe({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=B4[f]),{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:f}},htmlBuilder:ns,mathmlBuilder:qs});const qu=(l,a)=>{let c,f,m=!1,y;l.type==="supsub"?(c=l.sup,f=l.sub,y=Be(l.base,"operatorname"),m=!0):y=Be(l,"operatorname");let _;if(y.body.length>0){const E=y.body.map(R=>{const q=R.text;return typeof q=="string"?{type:"textord",mode:R.mode,text:q}:R}),C=Tt(E,a.withFont("mathrm"),!0);for(let R=0;R<C.length;R++){const q=C[R];q instanceof pn&&(q.text=q.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}_=se(["mop"],C,a)}else _=se(["mop"],[],a);return m?Fu(_,c,f,a,a.style,0,0):_};fe({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:bt(m),alwaysHandleSupSub:f==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:qu,mathmlBuilder:(l,a)=>{let c=en(l.body,a.withFont("mathrm")),f=!0;for(let _=0;_<c.length;_++){const E=c[_];if(!(E instanceof ru))if(E instanceof ae)switch(E.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{const C=E.children[0];E.children.length===1&&C instanceof At?C.text=C.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):f=!1;break}default:f=!1}else f=!1}if(f){const _=c.map(E=>E.toText()).join("");c=[new At(_)]}const m=new ae("mi",c);m.setAttribute("mathvariant","normal");const y=new ae("mo",[gn("","text")]);return l.parentIsSupSub?new ae("mrow",[m,y]):nu([m,y])}}),T("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Or({type:"ordgroup",htmlBuilder(l,a){return l.semisimple?Gn(Tt(l.body,a,!1)):se(["mord"],Tt(l.body,a,!0),a)},mathmlBuilder(l,a){return cr(l.body,a,!0)}}),fe({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=je(l.body,a.havingCrampedStyle()),f=es("overline-line",a),m=a.fontMetrics().defaultRuleThickness,y=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:3*m},{type:"elem",elem:f},{type:"kern",size:m}]});return se(["mord","overline"],[y],a)},mathmlBuilder(l,a){const c=new ae("mo",[new At("‾")]);c.setAttribute("stretchy","true");const f=new ae("mover",[it(l.body,a),c]);return f.setAttribute("accent","true"),f}}),fe({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:bt(f)}},htmlBuilder:(l,a)=>{const c=Tt(l.body,a.withPhantom(),!1);return Gn(c)},mathmlBuilder:(l,a)=>{const c=en(l.body,a);return new ae("mphantom",c)}}),fe({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(l,a)=>{let{parser:c}=l;const f=a[0];return{type:"hphantom",mode:c.mode,body:f}},htmlBuilder:(l,a)=>{let c=se([],[je(l.body,a.withPhantom())]);if(c.height=0,c.depth=0,c.children)for(let f=0;f<c.children.length;f++)c.children[f].height=0,c.children[f].depth=0;return c=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:c}]}),se(["mord"],[c],a)},mathmlBuilder:(l,a)=>{const c=en(bt(l.body),a),f=new ae("mphantom",c),m=new ae("mpadded",[f]);return m.setAttribute("height","0px"),m.setAttribute("depth","0px"),m}}),fe({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=se(["inner"],[je(l.body,a.withPhantom())]),f=se(["fix"],[]);return se(["mord","rlap"],[c,f],a)},mathmlBuilder:(l,a)=>{const c=en(bt(l.body),a),f=new ae("mphantom",c),m=new ae("mpadded",[f]);return m.setAttribute("width","0px"),m}}),fe({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(l,a){let{parser:c}=l;const f=Be(a[0],"size").value,m=a[1];return{type:"raisebox",mode:c.mode,dy:f,body:m}},htmlBuilder(l,a){const c=je(l.body,a),f=Ke(l.dy,a);return Xe({positionType:"shift",positionData:-f,children:[{type:"elem",elem:c}]})},mathmlBuilder(l,a){const c=new ae("mpadded",[it(l.body,a)]),f=l.dy.number+l.dy.unit;return c.setAttribute("voffset",f),c}}),fe({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(l){let{parser:a}=l;return{type:"internal",mode:a.mode}}}),fe({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],y=Be(a[0],"size"),_=Be(a[1],"size");return{type:"rule",mode:f.mode,shift:m&&Be(m,"size").value,width:y.value,height:_.value}},htmlBuilder(l,a){const c=se(["mord","rule"],[],a),f=Ke(l.width,a),m=Ke(l.height,a),y=l.shift?Ke(l.shift,a):0;return c.style.borderRightWidth=oe(f),c.style.borderTopWidth=oe(m),c.style.bottom=oe(y),c.width=f,c.height=m+y,c.depth=-y,c.maxFontSize=m*1.125*a.sizeMultiplier,c},mathmlBuilder(l,a){const c=Ke(l.width,a),f=Ke(l.height,a),m=l.shift?Ke(l.shift,a):0,y=a.color&&a.getColor()||"black",_=new ae("mspace");_.setAttribute("mathbackground",y),_.setAttribute("width",oe(c)),_.setAttribute("height",oe(f));const E=new ae("mpadded",[_]);return m>=0?E.setAttribute("height",oe(m)):(E.setAttribute("height",oe(m)),E.setAttribute("depth",oe(-m))),E.setAttribute("voffset",oe(m)),E}});function Uu(l,a,c){const f=Tt(l,a,!1),m=a.sizeMultiplier/c.sizeMultiplier;for(let y=0;y<f.length;y++){const _=f[y].classes.indexOf("sizing");_<0?Array.prototype.push.apply(f[y].classes,a.sizingClasses(c)):f[y].classes[_+1]==="reset-size"+a.size&&(f[y].classes[_+1]="reset-size"+c.size),f[y].height*=m,f[y].depth*=m}return Gn(f)}const Hu=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];fe({type:"sizing",names:Hu,props:{numArgs:0,allowedInText:!0},handler:(l,a)=>{let{breakOnTokenText:c,funcName:f,parser:m}=l;const y=m.parseExpression(!1,c);return{type:"sizing",mode:m.mode,size:Hu.indexOf(f)+1,body:y}},htmlBuilder:(l,a)=>{const c=a.havingSize(l.size);return Uu(l.body,c,a)},mathmlBuilder:(l,a)=>{const c=a.havingSize(l.size),f=en(l.body,c),m=new ae("mstyle",f);return m.setAttribute("mathsize",oe(c.sizeMultiplier)),m}}),fe({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(l,a,c)=>{let{parser:f}=l,m=!1,y=!1;const _=c[0]&&Be(c[0],"ordgroup");if(_){let C="";for(let R=0;R<_.body.length;++R)if(C=_.body[R].text,C==="t")m=!0;else if(C==="b")y=!0;else{m=!1,y=!1;break}}else m=!0,y=!0;const E=a[0];return{type:"smash",mode:f.mode,body:E,smashHeight:m,smashDepth:y}},htmlBuilder:(l,a)=>{const c=se([],[je(l.body,a)]);if(!l.smashHeight&&!l.smashDepth)return c;if(l.smashHeight&&(c.height=0,c.children))for(let m=0;m<c.children.length;m++)c.children[m].height=0;if(l.smashDepth&&(c.depth=0,c.children))for(let m=0;m<c.children.length;m++)c.children[m].depth=0;const f=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:c}]});return se(["mord"],[f],a)},mathmlBuilder:(l,a)=>{const c=new ae("mpadded",[it(l.body,a)]);return l.smashHeight&&c.setAttribute("height","0px"),l.smashDepth&&c.setAttribute("depth","0px"),c}}),fe({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(l,a,c){let{parser:f}=l;const m=c[0],y=a[0];return{type:"sqrt",mode:f.mode,body:y,index:m}},htmlBuilder(l,a){let c=je(l.body,a.havingCrampedStyle());c.height===0&&(c.height=a.fontMetrics().xHeight),c=ts(c,a);const m=a.fontMetrics().defaultRuleThickness;let y=m;a.style.id<te.TEXT.id&&(y=a.fontMetrics().xHeight);let _=m+y/4;const E=c.height+c.depth+_+m,{span:C,ruleWidth:R,advanceWidth:q}=T4(E,a),H=C.height-R;H>c.height+c.depth+_&&(_=(_+H-c.height-c.depth)/2);const K=C.height-c.height-_-R;c.style.paddingLeft=oe(q);const Z=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:-(c.height+K)},{type:"elem",elem:C},{type:"kern",size:R}]});if(l.index){const de=a.havingStyle(te.SCRIPTSCRIPT),ye=je(l.index,de,a),He=.6*(Z.height-Z.depth),Fe=Xe({positionType:"shift",positionData:-He,children:[{type:"elem",elem:ye}]}),Ve=se(["root"],[Fe]);return se(["mord","sqrt"],[Ve,Z],a)}else return se(["mord","sqrt"],[Z],a)},mathmlBuilder(l,a){const{body:c,index:f}=l;return f?new ae("mroot",[it(c,a),it(f,a)]):new ae("msqrt",[it(c,a)])}});const Vu={display:te.DISPLAY,text:te.TEXT,script:te.SCRIPT,scriptscript:te.SCRIPTSCRIPT};fe({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 y=m.parseExpression(!0,c),_=f.slice(1,f.length-5);return{type:"styling",mode:m.mode,style:_,body:y}},htmlBuilder(l,a){const c=Vu[l.style],f=a.havingStyle(c).withFont("");return Uu(l.body,f,a)},mathmlBuilder(l,a){const c=Vu[l.style],f=a.havingStyle(c),m=en(l.body,f),y=new ae("mstyle",m),E={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[l.style];return y.setAttribute("scriptlevel",E[0]),y.setAttribute("displaystyle",E[1]),y}});const F4=function(l,a){const c=l.base;return c?c.type==="op"?c.limits&&(a.style.size===te.DISPLAY.size||c.alwaysHandleSupSub)?ns:null:c.type==="operatorname"?c.alwaysHandleSupSub&&(a.style.size===te.DISPLAY.size||c.limits)?qu:null:c.type==="accent"?x(c.base)?Yo:null:c.type==="horizBrace"&&!l.sub===c.isOver?$u:null:null};Or({type:"supsub",htmlBuilder(l,a){const c=F4(l,a);if(c)return c(l,a);const{base:f,sup:m,sub:y}=l,_=je(f,a);let E,C;const R=a.fontMetrics();let q=0,H=0;const K=f&&x(f);if(m){const Ze=a.havingStyle(a.style.sup());E=je(m,Ze,a),K||(q=_.height-Ze.fontMetrics().supDrop*Ze.sizeMultiplier/a.sizeMultiplier)}if(y){const Ze=a.havingStyle(a.style.sub());C=je(y,Ze,a),K||(H=_.depth+Ze.fontMetrics().subDrop*Ze.sizeMultiplier/a.sizeMultiplier)}let Z;a.style===te.DISPLAY?Z=R.sup1:a.style.cramped?Z=R.sup3:Z=R.sup2;const de=a.sizeMultiplier,ye=oe(.5/R.ptPerEm/de);let He=null;if(C){const Ze=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(_ instanceof pn||Ze)&&(He=oe(-_.italic))}let Fe;if(E&&C){q=Math.max(q,Z,E.depth+.25*R.xHeight),H=Math.max(H,R.sub2);const at=4*R.defaultRuleThickness;if(q-E.depth-(C.height-H)<at){H=at-(q-E.depth)+C.height;const Nt=.8*R.xHeight-(q-E.depth);Nt>0&&(q+=Nt,H-=Nt)}const Kt=[{type:"elem",elem:C,shift:H,marginRight:ye,marginLeft:He},{type:"elem",elem:E,shift:-q,marginRight:ye}];Fe=Xe({positionType:"individualShift",children:Kt})}else if(C)H=Math.max(H,R.sub1,C.height-.8*R.xHeight),Fe=Xe({positionType:"shift",positionData:H,children:[{type:"elem",elem:C,marginLeft:He,marginRight:ye}]});else if(E)q=Math.max(q,Z,E.depth+.25*R.xHeight),Fe=Xe({positionType:"shift",positionData:-q,children:[{type:"elem",elem:E,marginRight:ye}]});else throw new Error("supsub must have either sup or sub.");const Ve=Vo(_,"right")||"mord";return se([Ve],[_,se(["msupsub"],[Fe])],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 y=[it(l.base,a)];l.sub&&y.push(it(l.sub,a)),l.sup&&y.push(it(l.sup,a));let _;if(c)_=f?"mover":"munder";else if(l.sub)if(l.sup){const E=l.base;E&&E.type==="op"&&E.limits&&a.style===te.DISPLAY||E&&E.type==="operatorname"&&E.alwaysHandleSupSub&&(a.style===te.DISPLAY||E.limits)?_="munderover":_="msubsup"}else{const E=l.base;E&&E.type==="op"&&E.limits&&(a.style===te.DISPLAY||E.alwaysHandleSupSub)||E&&E.type==="operatorname"&&E.alwaysHandleSupSub&&(E.limits||a.style===te.DISPLAY)?_="munder":_="msub"}else{const E=l.base;E&&E.type==="op"&&E.limits&&(a.style===te.DISPLAY||E.alwaysHandleSupSub)||E&&E.type==="operatorname"&&E.alwaysHandleSupSub&&(E.limits||a.style===te.DISPLAY)?_="mover":_="msup"}return new ae(_,y)}}),Or({type:"atom",htmlBuilder(l,a){return Fo(l.text,l.mode,a,["m"+l.family])},mathmlBuilder(l,a){const c=new ae("mo",[gn(l.text,l.mode)]);if(l.family==="bin"){const f=Go(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 ju={mi:"italic",mn:"normal",mtext:"normal"};Or({type:"mathord",htmlBuilder(l,a){return zi(l,a,"mathord")},mathmlBuilder(l,a){const c=new ae("mi",[gn(l.text,l.mode,a)]),f=Go(l,a)||"italic";return f!==ju[c.type]&&c.setAttribute("mathvariant",f),c}}),Or({type:"textord",htmlBuilder(l,a){return zi(l,a,"textord")},mathmlBuilder(l,a){const c=gn(l.text,l.mode,a),f=Go(l,a)||"normal";let m;return l.mode==="text"?m=new ae("mtext",[c]):/[0-9]/.test(l.text)?m=new ae("mn",[c]):l.text==="\\prime"?m=new ae("mo",[c]):m=new ae("mi",[c]),f!==ju[m.type]&&m.setAttribute("mathvariant",f),m}});const hl={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},dl={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Or({type:"spacing",htmlBuilder(l,a){if(dl.hasOwnProperty(l.text)){const c=dl[l.text].className||"";if(l.mode==="text"){const f=zi(l,a,"textord");return f.classes.push(c),f}else return se(["mspace",c],[Fo(l.text,l.mode,a)],a)}else{if(hl.hasOwnProperty(l.text))return se(["mspace",hl[l.text]],[],a);throw new i('Unknown type of space "'+l.text+'"')}},mathmlBuilder(l,a){let c;if(dl.hasOwnProperty(l.text))c=new ae("mtext",[new At(" ")]);else{if(hl.hasOwnProperty(l.text))return new ae("mspace");throw new i('Unknown type of space "'+l.text+'"')}return c}});const Wu=()=>{const l=new ae("mtd",[]);return l.setAttribute("width","50%"),l};Or({type:"tag",mathmlBuilder(l,a){const c=new ae("mtable",[new ae("mtr",[Wu(),new ae("mtd",[cr(l.body,a)]),Wu(),new ae("mtd",[cr(l.tag,a)])])]);return c.setAttribute("width","100%"),c}});const Gu={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ku={"\\textbf":"textbf","\\textmd":"textmd"},z4={"\\textit":"textit","\\textup":"textup"},Xu=(l,a)=>{const c=l.font;if(c){if(Gu[c])return a.withTextFontFamily(Gu[c]);if(Ku[c])return a.withTextFontWeight(Ku[c]);if(c==="\\emph")return a.fontShape==="textit"?a.withTextFontShape("textup"):a.withTextFontShape("textit")}else return a;return a.withTextFontShape(z4[c])};fe({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:bt(m),font:f}},htmlBuilder(l,a){const c=Xu(l,a),f=Tt(l.body,c,!0);return se(["mord","text"],f,c)},mathmlBuilder(l,a){const c=Xu(l,a);return cr(l.body,c)}}),fe({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=je(l.body,a),f=es("underline-line",a),m=a.fontMetrics().defaultRuleThickness,y=Xe({positionType:"top",positionData:c.height,children:[{type:"kern",size:m},{type:"elem",elem:f},{type:"kern",size:3*m},{type:"elem",elem:c}]});return se(["mord","underline"],[y],a)},mathmlBuilder(l,a){const c=new ae("mo",[new At("‾")]);c.setAttribute("stretchy","true");const f=new ae("munder",[it(l.body,a),c]);return f.setAttribute("accentunder","true"),f}}),fe({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=je(l.body,a),f=a.fontMetrics().axisHeight,m=.5*(c.height-f-(c.depth+f));return Xe({positionType:"shift",positionData:m,children:[{type:"elem",elem:c}]})},mathmlBuilder(l,a){return new ae("mpadded",[it(l.body,a)],["vcenter"])}}),fe({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=Yu(l),f=[],m=a.havingStyle(a.style.text());for(let y=0;y<c.length;y++){let _=c[y];_==="~"&&(_="\\textasciitilde"),f.push(Gt(_,"Typewriter-Regular",l.mode,m,["mord","texttt"]))}return se(["mord","text"].concat(m.sizingClasses(a)),Yc(f),m)},mathmlBuilder(l,a){const c=new At(Yu(l)),f=new ae("mtext",[c]);return f.setAttribute("mathvariant","monospace"),f}});const Yu=l=>l.body.replace(/ /g,l.star?"␣":" ");var fr=eu;const Ju=`[ \r
|
||
]`,q4="\\\\[a-zA-Z@]+",U4="\\\\[^\uD800-\uDFFF]",H4="("+q4+")"+Ju+"*",V4=`\\\\(
|
||
|[ \r ]+
|
||
?)[ \r ]*`,ml="[̀-ͯ]",j4=new RegExp(ml+"+$"),W4="("+Ju+"+)|"+(V4+"|")+"([!-\\[\\]-‧-豈-]"+(ml+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ml+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+H4)+("|"+U4+")");class Qu{constructor(a,c){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=a,this.settings=c,this.tokenRegex=new RegExp(W4,"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 un("EOF",new tn(this,c,c));const f=this.tokenRegex.exec(a);if(f===null||f.index!==c)throw new i("Unexpected character: '"+a[c]+"'",new un(a[c],new tn(this,c,c+1)));const m=f[6]||f[3]||(f[2]?"\\ ":" ");if(this.catcodes[m]===14){const y=a.indexOf(`
|
||
`,this.tokenRegex.lastIndex);return y===-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=y+1,this.lex()}return new un(m,new tn(this,c,this.tokenRegex.lastIndex))}}class G4{constructor(a,c){a===void 0&&(a={}),c===void 0&&(c={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,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 K4=Tu;T("\\noexpand",function(l){const a=l.popToken();return l.isExpandable(a.text)&&(a.noexpand=!0,a.treatAsRelax=!0),{tokens:[a],numArgs:0}}),T("\\expandafter",function(l){const a=l.popToken();return l.expandOnce(!0),{tokens:[a],numArgs:0}}),T("\\@firstoftwo",function(l){return{tokens:l.consumeArgs(2)[0],numArgs:0}}),T("\\@secondoftwo",function(l){return{tokens:l.consumeArgs(2)[1],numArgs:0}}),T("\\@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}}),T("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),T("\\TextOrMath",function(l){const a=l.consumeArgs(2);return l.mode==="text"?{tokens:a[0],numArgs:0}:{tokens:a[1],numArgs:0}});const Zu={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};T("\\char",function(l){let a=l.popToken(),c,f="";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=Zu[a.text],f==null||f>=c)throw new i("Invalid base-"+c+" digit "+a.text);let m;for(;(m=Zu[l.future().text])!=null&&m<c;)f*=c,f+=m,l.popToken()}return"\\@char{"+f+"}"});const pl=(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 y=m[0].text,_=l.isDefined(y);if(_&&!a)throw new i("\\newcommand{"+y+"} attempting to redefine "+(y+"; use \\renewcommand"));if(!_&&!c)throw new i("\\renewcommand{"+y+"} when command "+y+" does not yet exist; use \\newcommand");let E=0;if(m=l.consumeArg().tokens,m.length===1&&m[0].text==="["){let C="",R=l.expandNextToken();for(;R.text!=="]"&&R.text!=="EOF";)C+=R.text,R=l.expandNextToken();if(!C.match(/^\s*[0-9]+\s*$/))throw new i("Invalid number of arguments: "+C);E=parseInt(C),m=l.consumeArg().tokens}return _&&f||l.macros.set(y,{tokens:m,numArgs:E}),""};T("\\newcommand",l=>pl(l,!1,!0,!1)),T("\\renewcommand",l=>pl(l,!0,!1,!1)),T("\\providecommand",l=>pl(l,!0,!0,!0)),T("\\message",l=>{const a=l.consumeArgs(1)[0];return console.log(a.reverse().map(c=>c.text).join("")),""}),T("\\errmessage",l=>{const a=l.consumeArgs(1)[0];return console.error(a.reverse().map(c=>c.text).join("")),""}),T("\\show",l=>{const a=l.popToken(),c=a.text;return console.log(a,l.macros.get(c),fr[c],dt.math[c],dt.text[c]),""}),T("\\bgroup","{"),T("\\egroup","}"),T("~","\\nobreakspace"),T("\\lq","`"),T("\\rq","'"),T("\\aa","\\r a"),T("\\AA","\\r A"),T("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),T("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),T("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),T("ℬ","\\mathscr{B}"),T("ℰ","\\mathscr{E}"),T("ℱ","\\mathscr{F}"),T("ℋ","\\mathscr{H}"),T("ℐ","\\mathscr{I}"),T("ℒ","\\mathscr{L}"),T("ℳ","\\mathscr{M}"),T("ℛ","\\mathscr{R}"),T("ℭ","\\mathfrak{C}"),T("ℌ","\\mathfrak{H}"),T("ℨ","\\mathfrak{Z}"),T("\\Bbbk","\\Bbb{k}"),T("·","\\cdotp"),T("\\llap","\\mathllap{\\textrm{#1}}"),T("\\rlap","\\mathrlap{\\textrm{#1}}"),T("\\clap","\\mathclap{\\textrm{#1}}"),T("\\mathstrut","\\vphantom{(}"),T("\\underbar","\\underline{\\text{#1}}"),T("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),T("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),T("\\ne","\\neq"),T("≠","\\neq"),T("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),T("∉","\\notin"),T("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),T("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),T("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),T("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),T("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),T("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),T("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),T("⟂","\\perp"),T("‼","\\mathclose{!\\mkern-0.8mu!}"),T("∌","\\notni"),T("⌜","\\ulcorner"),T("⌝","\\urcorner"),T("⌞","\\llcorner"),T("⌟","\\lrcorner"),T("©","\\copyright"),T("®","\\textregistered"),T("️","\\textregistered"),T("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),T("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),T("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),T("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),T("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),T("⋮","\\vdots"),T("\\varGamma","\\mathit{\\Gamma}"),T("\\varDelta","\\mathit{\\Delta}"),T("\\varTheta","\\mathit{\\Theta}"),T("\\varLambda","\\mathit{\\Lambda}"),T("\\varXi","\\mathit{\\Xi}"),T("\\varPi","\\mathit{\\Pi}"),T("\\varSigma","\\mathit{\\Sigma}"),T("\\varUpsilon","\\mathit{\\Upsilon}"),T("\\varPhi","\\mathit{\\Phi}"),T("\\varPsi","\\mathit{\\Psi}"),T("\\varOmega","\\mathit{\\Omega}"),T("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),T("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),T("\\boxed","\\fbox{$\\displaystyle{#1}$}"),T("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),T("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),T("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),T("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),T("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");const ef={",":"\\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"},X4=new Set(["bin","rel"]);T("\\dots",function(l){let a="\\dotso";const c=l.expandAfterFuture().text;return c in ef?a=ef[c]:(c.slice(0,4)==="\\not"||c in dt.math&&X4.has(dt.math[c].group))&&(a="\\dotsb"),a});const gl={")":!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};T("\\dotso",function(l){return l.future().text in gl?"\\ldots\\,":"\\ldots"}),T("\\dotsc",function(l){const a=l.future().text;return a in gl&&a!==","?"\\ldots\\,":"\\ldots"}),T("\\cdots",function(l){return l.future().text in gl?"\\@cdots\\,":"\\@cdots"}),T("\\dotsb","\\cdots"),T("\\dotsm","\\cdots"),T("\\dotsi","\\!\\cdots"),T("\\dotsx","\\ldots\\,"),T("\\DOTSI","\\relax"),T("\\DOTSB","\\relax"),T("\\DOTSX","\\relax"),T("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),T("\\,","\\tmspace+{3mu}{.1667em}"),T("\\thinspace","\\,"),T("\\>","\\mskip{4mu}"),T("\\:","\\tmspace+{4mu}{.2222em}"),T("\\medspace","\\:"),T("\\;","\\tmspace+{5mu}{.2777em}"),T("\\thickspace","\\;"),T("\\!","\\tmspace-{3mu}{.1667em}"),T("\\negthinspace","\\!"),T("\\negmedspace","\\tmspace-{4mu}{.2222em}"),T("\\negthickspace","\\tmspace-{5mu}{.277em}"),T("\\enspace","\\kern.5em "),T("\\enskip","\\hskip.5em\\relax"),T("\\quad","\\hskip1em\\relax"),T("\\qquad","\\hskip2em\\relax"),T("\\tag","\\@ifstar\\tag@literal\\tag@paren"),T("\\tag@paren","\\tag@literal{({#1})}"),T("\\tag@literal",l=>{if(l.macros.get("\\df@tag"))throw new i("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),T("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),T("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),T("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),T("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),T("\\newline","\\\\\\relax"),T("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const tf=oe($e["Main-Regular"][84][1]-.7*$e["Main-Regular"][65][1]);T("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+tf+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),T("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+tf+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),T("\\hspace","\\@ifstar\\@hspacer\\@hspace"),T("\\@hspace","\\hskip #1\\relax"),T("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),T("\\ordinarycolon",":"),T("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),T("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),T("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),T("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),T("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),T("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),T("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),T("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),T("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),T("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),T("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),T("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),T("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),T("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),T("∷","\\dblcolon"),T("∹","\\eqcolon"),T("≔","\\coloneqq"),T("≕","\\eqqcolon"),T("⩴","\\Coloneqq"),T("\\ratio","\\vcentcolon"),T("\\coloncolon","\\dblcolon"),T("\\colonequals","\\coloneqq"),T("\\coloncolonequals","\\Coloneqq"),T("\\equalscolon","\\eqqcolon"),T("\\equalscoloncolon","\\Eqqcolon"),T("\\colonminus","\\coloneq"),T("\\coloncolonminus","\\Coloneq"),T("\\minuscolon","\\eqcolon"),T("\\minuscoloncolon","\\Eqcolon"),T("\\coloncolonapprox","\\Colonapprox"),T("\\coloncolonsim","\\Colonsim"),T("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),T("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),T("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),T("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),T("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),T("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),T("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),T("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),T("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),T("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),T("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),T("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),T("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),T("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),T("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),T("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),T("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),T("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),T("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),T("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),T("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),T("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),T("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),T("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),T("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),T("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),T("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),T("\\imath","\\html@mathml{\\@imath}{ı}"),T("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),T("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),T("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),T("⟦","\\llbracket"),T("⟧","\\rrbracket"),T("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),T("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),T("⦃","\\lBrace"),T("⦄","\\rBrace"),T("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),T("⦵","\\minuso"),T("\\darr","\\downarrow"),T("\\dArr","\\Downarrow"),T("\\Darr","\\Downarrow"),T("\\lang","\\langle"),T("\\rang","\\rangle"),T("\\uarr","\\uparrow"),T("\\uArr","\\Uparrow"),T("\\Uarr","\\Uparrow"),T("\\N","\\mathbb{N}"),T("\\R","\\mathbb{R}"),T("\\Z","\\mathbb{Z}"),T("\\alef","\\aleph"),T("\\alefsym","\\aleph"),T("\\Alpha","\\mathrm{A}"),T("\\Beta","\\mathrm{B}"),T("\\bull","\\bullet"),T("\\Chi","\\mathrm{X}"),T("\\clubs","\\clubsuit"),T("\\cnums","\\mathbb{C}"),T("\\Complex","\\mathbb{C}"),T("\\Dagger","\\ddagger"),T("\\diamonds","\\diamondsuit"),T("\\empty","\\emptyset"),T("\\Epsilon","\\mathrm{E}"),T("\\Eta","\\mathrm{H}"),T("\\exist","\\exists"),T("\\harr","\\leftrightarrow"),T("\\hArr","\\Leftrightarrow"),T("\\Harr","\\Leftrightarrow"),T("\\hearts","\\heartsuit"),T("\\image","\\Im"),T("\\infin","\\infty"),T("\\Iota","\\mathrm{I}"),T("\\isin","\\in"),T("\\Kappa","\\mathrm{K}"),T("\\larr","\\leftarrow"),T("\\lArr","\\Leftarrow"),T("\\Larr","\\Leftarrow"),T("\\lrarr","\\leftrightarrow"),T("\\lrArr","\\Leftrightarrow"),T("\\Lrarr","\\Leftrightarrow"),T("\\Mu","\\mathrm{M}"),T("\\natnums","\\mathbb{N}"),T("\\Nu","\\mathrm{N}"),T("\\Omicron","\\mathrm{O}"),T("\\plusmn","\\pm"),T("\\rarr","\\rightarrow"),T("\\rArr","\\Rightarrow"),T("\\Rarr","\\Rightarrow"),T("\\real","\\Re"),T("\\reals","\\mathbb{R}"),T("\\Reals","\\mathbb{R}"),T("\\Rho","\\mathrm{P}"),T("\\sdot","\\cdot"),T("\\sect","\\S"),T("\\spades","\\spadesuit"),T("\\sub","\\subset"),T("\\sube","\\subseteq"),T("\\supe","\\supseteq"),T("\\Tau","\\mathrm{T}"),T("\\thetasym","\\vartheta"),T("\\weierp","\\wp"),T("\\Zeta","\\mathrm{Z}"),T("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),T("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),T("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),T("\\bra","\\mathinner{\\langle{#1}|}"),T("\\ket","\\mathinner{|{#1}\\rangle}"),T("\\braket","\\mathinner{\\langle{#1}\\rangle}"),T("\\Bra","\\left\\langle#1\\right|"),T("\\Ket","\\left|#1\\right\\rangle");const nf=l=>a=>{const c=a.consumeArg().tokens,f=a.consumeArg().tokens,m=a.consumeArg().tokens,y=a.consumeArg().tokens,_=a.macros.get("|"),E=a.macros.get("\\|");a.macros.beginGroup();const C=H=>K=>{l&&(K.macros.set("|",_),m.length&&K.macros.set("\\|",E));let Z=H;return!H&&m.length&&K.future().text==="|"&&(K.popToken(),Z=!0),{tokens:Z?m:f,numArgs:0}};a.macros.set("|",C(!1)),m.length&&a.macros.set("\\|",C(!0));const R=a.consumeArg().tokens,q=a.expandTokens([...y,...R,...c]);return a.macros.endGroup(),{tokens:q.reverse(),numArgs:0}};T("\\bra@ket",nf(!1)),T("\\bra@set",nf(!0)),T("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),T("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),T("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),T("\\angln","{\\angl n}"),T("\\blue","\\textcolor{##6495ed}{#1}"),T("\\orange","\\textcolor{##ffa500}{#1}"),T("\\pink","\\textcolor{##ff00af}{#1}"),T("\\red","\\textcolor{##df0030}{#1}"),T("\\green","\\textcolor{##28ae7b}{#1}"),T("\\gray","\\textcolor{gray}{#1}"),T("\\purple","\\textcolor{##9d38bd}{#1}"),T("\\blueA","\\textcolor{##ccfaff}{#1}"),T("\\blueB","\\textcolor{##80f6ff}{#1}"),T("\\blueC","\\textcolor{##63d9ea}{#1}"),T("\\blueD","\\textcolor{##11accd}{#1}"),T("\\blueE","\\textcolor{##0c7f99}{#1}"),T("\\tealA","\\textcolor{##94fff5}{#1}"),T("\\tealB","\\textcolor{##26edd5}{#1}"),T("\\tealC","\\textcolor{##01d1c1}{#1}"),T("\\tealD","\\textcolor{##01a995}{#1}"),T("\\tealE","\\textcolor{##208170}{#1}"),T("\\greenA","\\textcolor{##b6ffb0}{#1}"),T("\\greenB","\\textcolor{##8af281}{#1}"),T("\\greenC","\\textcolor{##74cf70}{#1}"),T("\\greenD","\\textcolor{##1fab54}{#1}"),T("\\greenE","\\textcolor{##0d923f}{#1}"),T("\\goldA","\\textcolor{##ffd0a9}{#1}"),T("\\goldB","\\textcolor{##ffbb71}{#1}"),T("\\goldC","\\textcolor{##ff9c39}{#1}"),T("\\goldD","\\textcolor{##e07d10}{#1}"),T("\\goldE","\\textcolor{##a75a05}{#1}"),T("\\redA","\\textcolor{##fca9a9}{#1}"),T("\\redB","\\textcolor{##ff8482}{#1}"),T("\\redC","\\textcolor{##f9685d}{#1}"),T("\\redD","\\textcolor{##e84d39}{#1}"),T("\\redE","\\textcolor{##bc2612}{#1}"),T("\\maroonA","\\textcolor{##ffbde0}{#1}"),T("\\maroonB","\\textcolor{##ff92c6}{#1}"),T("\\maroonC","\\textcolor{##ed5fa6}{#1}"),T("\\maroonD","\\textcolor{##ca337c}{#1}"),T("\\maroonE","\\textcolor{##9e034e}{#1}"),T("\\purpleA","\\textcolor{##ddd7ff}{#1}"),T("\\purpleB","\\textcolor{##c6b9fc}{#1}"),T("\\purpleC","\\textcolor{##aa87ff}{#1}"),T("\\purpleD","\\textcolor{##7854ab}{#1}"),T("\\purpleE","\\textcolor{##543b78}{#1}"),T("\\mintA","\\textcolor{##f5f9e8}{#1}"),T("\\mintB","\\textcolor{##edf2df}{#1}"),T("\\mintC","\\textcolor{##e0e5cc}{#1}"),T("\\grayA","\\textcolor{##f6f7f7}{#1}"),T("\\grayB","\\textcolor{##f0f1f2}{#1}"),T("\\grayC","\\textcolor{##e3e5e6}{#1}"),T("\\grayD","\\textcolor{##d6d8da}{#1}"),T("\\grayE","\\textcolor{##babec2}{#1}"),T("\\grayF","\\textcolor{##888d93}{#1}"),T("\\grayG","\\textcolor{##626569}{#1}"),T("\\grayH","\\textcolor{##3b3e40}{#1}"),T("\\grayI","\\textcolor{##21242c}{#1}"),T("\\kaBlue","\\textcolor{##314453}{#1}"),T("\\kaGreen","\\textcolor{##71B307}{#1}");const rf={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Y4{constructor(a,c,f){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=c,this.expansionCount=0,this.feed(a),this.macros=new G4(K4,c.macros),this.mode=f,this.stack=[]}feed(a){this.lexer=new Qu(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 un("EOF",f.loc)),this.pushTokens(m),new un("",tn.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 y,_=0,E=0;do{if(y=this.popToken(),c.push(y),y.text==="{")++_;else if(y.text==="}"){if(--_,_===-1)throw new i("Extra }",y)}else if(y.text==="EOF")throw new i("Unexpected end of input in a macro argument, expected '"+(a&&f?a[E]:"}")+"'",y);if(a&&f)if((_===0||_===1&&a[E]==="{")&&y.text===a[E]){if(++E,E===a.length){c.splice(-E,E);break}}else E=0}while(_!==0||f);return m.text==="{"&&c[c.length-1].text==="}"&&(c.pop(),c.shift()),c.reverse(),{tokens:c,start:m,end:y}}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 y=0;y<m.length;y++){const _=this.popToken();if(m[y]!==_.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 y=m.tokens;const _=this.consumeArgs(m.numArgs,m.delimiters);if(m.numArgs){y=y.slice();for(let E=y.length-1;E>=0;--E){let C=y[E];if(C.text==="#"){if(E===0)throw new i("Incomplete placeholder at end of macro body",C);if(C=y[--E],C.text==="#")y.splice(E+1,1);else if(/^[1-9]$/.test(C.text))y.splice(E,2,..._[+C.text-1]);else throw new i("Not a valid argument number",C)}}}return this.pushTokens(y),y.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}throw new Error}expandMacro(a){return this.macros.has(a)?this.expandTokens([new un(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 R=f.replace(/##/g,"");for(;R.includes("#"+(m+1));)++m}const y=new Qu(f,this.settings),_=[];let E=y.lex();for(;E.text!=="EOF";)_.push(E),E=y.lex();return _.reverse(),{tokens:_,numArgs:m}}return f}isDefined(a){return this.macros.has(a)||fr.hasOwnProperty(a)||dt.math.hasOwnProperty(a)||dt.text.hasOwnProperty(a)||rf.hasOwnProperty(a)}isExpandable(a){const c=this.macros.get(a);return c!=null?typeof c=="string"||typeof c=="function"||!c.unexpandable:fr.hasOwnProperty(a)&&!fr[a].primitive}}const sf=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ea=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),bl={"́":{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"}},af={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class ta{constructor(a,c){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Y4(a,c,this.mode),this.settings=c,this.leftrightDepth=0}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 un("}")),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(ta.endOfExpression.has(m.text)||c&&m.text===c||a&&fr[m.text]&&fr[m.text].infix)break;const y=this.parseAtom(c);if(y){if(y.type==="internal")continue}else break;f.push(y)}return this.mode==="text"&&this.formLigatures(f),this.handleInfixNodes(f)}handleInfixNodes(a){let c=-1,f;for(let m=0;m<a.length;m++)if(a[m].type==="infix"){if(c!==-1)throw new i("only one infix operator per group",a[m].token);c=m,f=a[m].replaceWith}if(c!==-1&&f){let m,y;const _=a.slice(0,c),E=a.slice(c+1);_.length===1&&_[0].type==="ordgroup"?m=_[0]:m={type:"ordgroup",mode:this.mode,body:_},E.length===1&&E[0].type==="ordgroup"?y=E[0]:y={type:"ordgroup",mode:this.mode,body:E};let C;return f==="\\\\abovefrac"?C=this.callFunction(f,[m,a[c],y],[]):C=this.callFunction(f,[m,y],[]),[C]}else return a}handleSupSubscript(a){const c=this.fetch(),f=c.text;this.consume(),this.consumeSpaces();let m;do{var y;m=this.parseGroup(a)}while(((y=m)==null?void 0:y.type)==="internal");if(!m)throw new i("Expected group after '"+f+"'",c);return m}formatUnsupportedCmd(a){const c=[];for(let y=0;y<a.length;y++)c.push({type:"textord",mode:"text",text:a[y]});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 y=this.fetch();if(y.text==="\\limits"||y.text==="\\nolimits"){if(c&&c.type==="op"){const _=y.text==="\\limits";c.limits=_,c.alwaysHandleSupSub=!0}else if(c&&c.type==="operatorname")c.alwaysHandleSupSub&&(c.limits=y.text==="\\limits");else throw new i("Limit controls must follow a math operator",y);this.consume()}else if(y.text==="^"){if(f)throw new i("Double superscript",y);f=this.handleSupSubscript("superscript")}else if(y.text==="_"){if(m)throw new i("Double subscript",y);m=this.handleSupSubscript("subscript")}else if(y.text==="'"){if(f)throw new i("Double superscript",y);const _={type:"textord",mode:this.mode,text:"\\prime"},E=[_];for(this.consume();this.fetch().text==="'";)E.push(_),this.consume();this.fetch().text==="^"&&E.push(this.handleSupSubscript("superscript")),f={type:"ordgroup",mode:this.mode,body:E}}else if(ea[y.text]){const _=sf.test(y.text),E=[];for(E.push(new un(ea[y.text])),this.consume();;){const R=this.fetch().text;if(!ea[R]||sf.test(R)!==_)break;E.unshift(new un(ea[R])),this.consume()}const C=this.subparse(E);_?m={type:"ordgroup",mode:"math",body:C}:f={type:"ordgroup",mode:"math",body:C}}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,y=fr[m];if(!y)return null;if(this.consume(),c&&c!=="atom"&&!y.allowedInArgument)throw new i("Got function '"+m+"' with no arguments"+(c?" as "+c:""),f);if(this.mode==="text"&&!y.allowedInText)throw new i("Can't use function '"+m+"' in text mode",f);if(this.mode==="math"&&y.allowedInMath===!1)throw new i("Can't use function '"+m+"' in math mode",f);const{args:_,optArgs:E}=this.parseArguments(m,y);return this.callFunction(m,_,E,f,a)}callFunction(a,c,f,m,y){const _={funcName:a,parser:this,token:m,breakOnTokenText:y},E=fr[a];if(E&&E.handler)return E.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=[],y=[];for(let _=0;_<f;_++){let E=c.argTypes&&c.argTypes[_];const C=_<c.numOptionalArgs;(c.primitive&&E==null||c.type==="sqrt"&&_===1&&y[0]==null)&&(E="primitive");const R=this.parseGroupOfType("argument to '"+a+"'",E,C);if(C)y.push(R);else if(R!=null)m.push(R);else throw new i("Null argument, please report this as a bug")}return{args:m,optArgs:y}}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="",y;for(;(y=this.fetch()).text!=="EOF";)m+=y.text,this.consume();return this.consume(),f.text=m,f}parseRegexGroup(a,c){const f=this.fetch();let m=f,y="",_;for(;(_=this.fetch()).text!=="EOF"&&a.test(y+_.text);)m=_,y+=m.text,this.consume();if(y==="")throw new i("Invalid "+c+": '"+f.text+"'",f);return f.range(m,y)}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 y={number:+(m[1]+m[2]),unit:m[3]};if(!ft(y))throw new i("Invalid unit: '"+y.unit+"'",c);return{type:"size",mode:this.mode,value:y,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 y=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();const _={type:"ordgroup",mode:this.mode,loc:f.loc,body:y};return c&&this.switchMode(m),_}parseGroup(a,c){const f=this.fetch(),m=f.text;let y;if(m==="{"||m==="\\begingroup"){this.consume();const _=m==="{"?"}":"\\endgroup";this.gullet.beginGroup();const E=this.parseExpression(!1,_),C=this.fetch();this.expect(_),this.gullet.endGroup(),y={type:"ordgroup",mode:this.mode,loc:tn.range(f,C),body:E,semisimple:m==="\\begingroup"||void 0}}else if(y=this.parseFunction(c,a)||this.parseSymbol(),y==null&&m[0]==="\\"&&!rf.hasOwnProperty(m)){if(this.settings.throwOnError)throw new i("Undefined control sequence: "+m,f);y=this.formatUnsupportedCmd(m),this.consume()}return y}formLigatures(a){let c=a.length-1;for(let f=0;f<c;++f){const m=a[f],y=m.text;y==="-"&&a[f+1].text==="-"&&(f+1<c&&a[f+2].text==="-"?(a.splice(f,3,{type:"textord",mode:"text",loc:tn.range(m,a[f+2]),text:"---"}),c-=2):(a.splice(f,2,{type:"textord",mode:"text",loc:tn.range(m,a[f+1]),text:"--"}),c-=1)),(y==="'"||y==="`")&&a[f+1].text===y&&(a.splice(f,2,{type:"textord",mode:"text",loc:tn.range(m,a[f+1]),text:y+y}),c-=1)}}parseSymbol(){const a=this.fetch();let c=a.text;if(/^\\verb[^a-zA-Z]/.test(c)){this.consume();let y=c.slice(5);const _=y.charAt(0)==="*";if(_&&(y=y.slice(1)),y.length<2||y.charAt(0)!==y.slice(-1))throw new i(`\\verb assertion failed --
|
||
please report what input caused this bug`);return y=y.slice(1,-1),{type:"verb",mode:"text",body:y,star:_}}af.hasOwnProperty(c[0])&&!dt[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=af[c[0]]+c.slice(1));const f=j4.exec(c);f&&(c=c.substring(0,f.index),c==="i"?c="ı":c==="j"&&(c="ȷ"));let m;if(dt[this.mode][c]){this.settings.strict&&this.mode==="math"&&Bo.includes(c)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+c[0]+'" used in math mode',a);const y=dt[this.mode][c].group,_=tn.range(a);let E;if(Yp.hasOwnProperty(y)){const C=y;E={type:"atom",mode:this.mode,family:C,loc:_,text:c}}else E={type:y,mode:this.mode,loc:_,text:c};m=E}else if(c.charCodeAt(0)>=128)this.settings.strict&&(U(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:tn.range(a),text:c};else return null;if(this.consume(),f)for(let y=0;y<f[0].length;y++){const _=f[0][y];if(!bl[_])throw new i("Unknown accent ' "+_+"'",a);const E=bl[_][this.mode]||bl[_].text;if(!E)throw new i("Accent "+_+" unsupported in "+this.mode+" mode",a);m={type:"accent",mode:this.mode,loc:tn.range(a),label:E,isStretchy:!1,isShifty:!0,base:m}}return m}}ta.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var yl=function(l,a){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const c=new ta(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 un("\\df@tag")])}]}return f};let of=function(l,a,c){a.textContent="";const f=wl(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."),of=function(){throw new i("KaTeX doesn't work in quirks mode.")});const J4=function(l,a){return wl(l,a).toMarkup()},Q4=function(l,a){const c=new I(a);return yl(l,c)},lf=function(l,a,c){if(c.throwOnError||!(l instanceof i))throw l;const f=se(["katex-error"],[new pn(a)]);return f.setAttribute("title",l.toString()),f.setAttribute("style","color:"+c.errorColor),f},wl=function(l,a){const c=new I(a);try{const f=yl(l,c);return f4(f,l,c)}catch(f){return lf(f,l,c)}};var Z4={version:"0.16.33",render:of,renderToString:J4,ParseError:i,SETTINGS_SCHEMA:A,__parse:Q4,__renderToDomTree:wl,__renderToHTMLTree:function(l,a){const c=new I(a);try{const f=yl(l,c);return h4(f,l,c)}catch(f){return lf(f,l,c)}},__setFontMetrics:Nr,__defineSymbol:g,__defineFunction:fe,__defineMacro:T,__domTree:{Span:Ps,Anchor:Po,SymbolNode:pn,SvgNode:jn,PathNode:or,LineNode:$o}},eg=Z4;return r=r.default,r}()})})(Hm);var wy=Hm.exports,vy=Ql&&Ql.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Um,"__esModule",{value:!0});const _y=vy(wy);function Nh(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||Ch(n)||!Ih(n))&&(i=!0),s!=="$"&&(s==null||Ch(s)||!Ih(s))&&(o=!0),{can_open:i,can_close:o}}function Ch(e){return/^\s$/u.test(e)}function Ih(e){return/^[\w\d]$/u.test(e)}function Oh(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 xy(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=Nh(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=Nh(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 ky(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,w;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)==="$$"?(w=e.src.slice(0,o).lastIndexOf("$$"),d=e.src.slice(i,w),s=!0):e.src.slice(i,o).trim().includes("$$")&&(w=e.src.slice(0,o).trim().indexOf("$$"),d=e.src.slice(i,w),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 Sy(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 x=e.bMarks[t-1]+e.tShift[t-1],k=e.eMarks[t-1],A=e.src.slice(x,k);if(!/^\s*$/.test(A))return!1}if(r)return!0;const h=[];let d=t,p,w=!1;e:for(;!w&&!(d>=n);d++){const x=e.bMarks[d]+e.tShift[d],k=e.eMarks[d];if(x<k&&e.tShift[d]<e.blkIndent)break;const A=e.src.slice(x,k);for(const N of A.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if(N[1]==="\\begin")h.push(N[2].trim());else if(N[1]==="\\end"&&(h.pop(),!h.length)){p=e.src.slice(x,k),w=!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 Ay(e,t){var n,r,s,i,o;if(e.src.slice(e.pos,e.pos+2)!=="$$")return!1;if(i=Oh(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=Oh(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 Ey(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 Mh(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,w=d.groups.math,v=d.groups.html_after_math;p&&u.push({...o,type:"html_block",map:null,content:p}),w&&u.push({...o,type:t,map:null,content:w,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 ga(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ty(e,t){const n=(t==null?void 0:t.katex)??_y.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",xy),e.inline.ruler.after("escape","math_inline_block",Ay),r&&e.inline.ruler.before("text","math_inline_bare_block",Ey),e.block.ruler.after("blockquote","math_block",(x,k,A,N)=>r&&Sy(x,k,A,N)?!0:ky(x,k,A,N),{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",x=>Mh(x,"math_block","$$",u)),i&&e.core.ruler.push("math_inline_in_html_block",x=>Mh(x,"math_inline","$",h));const d=x=>{const k=/\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(x);try{return n.renderToString(x,{...t,displayMode:k})}catch(A){return t!=null&&t.throwOnError&&console.log(A),`<span class="katex-error" title="${ga(x)}">${ga(A+"")}</span>`}},p=(x,k)=>{const A=x[k].content,I=A.length>2&&A[0]==="`"&&A[A.length-1]==="`"?A.slice(1,-1):A;return d(I)},w=x=>{try{return`<p class="katex-block">${n.renderToString(x,{...t,displayMode:!0})}</p>`}catch(k){return t!=null&&t.throwOnError&&console.log(k),`<p class="katex-block katex-error" title="${ga(x)}">${ga(k+"")}</p>`}},v=(x,k)=>w(x[k].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 x="math",k=e.renderer.rules.fence;e.renderer.rules.fence=function(A,N,I,V,D){const M=A[N];return M.info.trim().toLowerCase()===x&&o?w(M.content)+`
|
||
`:(k==null?void 0:k.call(this,A,N,I,V,D))||""}}}var Ny=Um.default=Ty;function Cy(){const e=Cd({html:!0,breaks:!0});return e.use(tb).use(nb).use(ib).use(lb),e}function Iy(e){return{transformer:e,parser:new Ks,beforeParse:new Ks,afterParse:new Ks,retransform:new Ks}}const Oy=`<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>
|
||
`,My=`<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>
|
||
`,Ly="checkbox",Lh={" ":My.trim(),x:Oy.trim()},Dy={name:Ly,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)=>Lh[h]?`${Lh[h]} `:u))}}return!1})}),{}}},Ry="frontmatter",Py={name:Ry,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=yy(o.replace(/\r?\n|\r/g,`
|
||
`)),u!=null&&u.markmap&&(u.markmap=$y(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 $y(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=By(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=Fy(e[t]))}),e}function By(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 Fy(e){if(!isNaN(+e))return+e}function Nc(e,t){return t.type==="script"&&t.data.src?{...t,data:{...t.data,src:e.getFullUrl(t.data.src)}}:t}function zy(e,t){return t.type==="stylesheet"&&t.data.href?{...t,data:{...t.data,href:e.getFullUrl(t.data.href)}}:t}const Dh="hljs",qy=["@highlightjs/cdn-assets@11.11.1/highlight.min.js"].map(e=>J0(e)),Uy=["@highlightjs/cdn-assets@11.11.1/styles/default.min.css"].map(e=>d1(e)),Hy={versions:{hljs:"11.11.1"},preloadScripts:qy,styles:Uy},A0={name:Dh,config:Hy,transform(e){var t,n,r;let s;const i=((n=(t=A0.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(h=>Nc(e.transformer.urlBuilder,h)))||[],o=()=>(s||(s=Y0(i)),s);let u=us;return e.parser.tap(h=>{h.set({highlight:(d,p)=>{u();const{hljs:w}=window;return w?w.highlightAuto(d,p?[p]:void 0).value:(o().then(()=>{e.retransform.call()}),d)}})}),e.beforeParse.tap((h,d)=>{u=()=>{d.features[Dh]=!0}}),{styles:(r=A0.config)==null?void 0:r.styles}}};function Vy(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 jy=["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 zl="katex",Wy=["katex@0.16.18/dist/katex.min.js"].map(e=>J0(e)),Vm=J0("webfontloader@1.6.28/webfontloader.js");Vm.data.defer=!0;const Gy=["katex@0.16.18/dist/katex.min.css"].map(e=>d1(e)),Ky={versions:{katex:"0.16.18",webfontloader:"1.6.28"},preloadScripts:Wy,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]}}},Vm],styles:Gy,resources:jy};function Xy(e){return e.default||e}const Yy=Xy(Ny),Qs={name:zl,config:Ky,transform(e){var t,n,r,s;let i;const o=((n=(t=Qs.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(p=>Nc(e.transformer.urlBuilder,p)))||[],u=()=>(i||(i=Y0(o)),i),h=(p,w)=>{const{katex:v}=window;return v?v.renderToString(p,{displayMode:w,throwOnError:!1}):(u().then(()=>{e.retransform.call()}),p)};let d=us;return e.parser.tap(p=>{p.use(Yy),["math_block","math_inline"].forEach(w=>{const v=(x,k)=>(d(),h(x[k].content,!!x[k].block));p.renderer.rules[w]=v})}),e.beforeParse.tap((p,w)=>{d=()=>{w.features[zl]=!0}}),e.afterParse.tap((p,w)=>{var v;const x=(v=w.frontmatter)==null?void 0:v.markmap;x&&["extraJs","extraCss"].forEach(k=>{var A,N;const I=x[k];I&&(x[k]=Vy(I,zl,((N=(A=Qs.config)==null?void 0:A.versions)==null?void 0:N.katex)||""))})}),{styles:(r=Qs.config)==null?void 0:r.styles,scripts:(s=Qs.config)==null?void 0:s.scripts}}},Jy="npmUrl",Qy={name:Jy,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))})}),{}}},Zy="sourceLines",e9={name:Zy,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=Wf(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=Wf(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}))}),{}}},t9=[Py,Qs,A0,Qy,Dy,e9],n9=t9;function jm(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(jm)}}class r9{constructor(t=n9){this.assetsMap={},this.urlBuilder=new j5,this.hooks=Iy(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=Cy();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=jm(eb(o,s.parserOptions));return u.content||(u.content=`${((r=s.frontmatter)==null?void 0:r.title)||""}`),{...s,root:u}}resolveJS(t){return Nc(this.urlBuilder,t)}resolveCSS(t){return zy(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 Rh extends Map{constructor(t,n=a9){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(Ph(this,t))}has(t){return super.has(Ph(this,t))}set(t,n){return super.set(s9(this,t),n)}delete(t){return super.delete(i9(this,t))}}function Ph({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function s9({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function i9({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function a9(e){return e!==null&&typeof e=="object"?e.valueOf():e}function $h(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 Bh(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 o9(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 l9={value:()=>{}};function Cc(){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 Ta(n)}function Ta(e){this._=e}function c9(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}})}Ta.prototype=Cc.prototype={constructor:Ta,on:function(e,t){var n=this._,r=c9(e+"",n),s,i=-1,o=r.length;if(arguments.length<2){for(;++i<o;)if((s=(e=r[i]).type)&&(s=u9(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]=Fh(n[s],e.name,t);else if(t==null)for(s in n)n[s]=Fh(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 Ta(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 u9(e,t){for(var n=0,r=e.length,s;n<r;++n)if((s=e[n]).name===t)return s.value}function Fh(e,t,n){for(var r=0,s=e.length;r<s;++r)if(e[r].name===t){e[r]=l9,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var E0="http://www.w3.org/1999/xhtml";const zh={svg:"http://www.w3.org/2000/svg",xhtml:E0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Eo(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),zh.hasOwnProperty(t)?{space:zh[t],local:e}:e}function f9(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===E0&&t.documentElement.namespaceURI===E0?t.createElement(e):t.createElementNS(n,e)}}function h9(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Wm(e){var t=Eo(e);return(t.local?h9:f9)(t)}function d9(){}function Ic(e){return e==null?d9:function(){return this.querySelector(e)}}function m9(e){typeof e!="function"&&(e=Ic(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 mn(r,this._parents)}function p9(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function g9(){return[]}function Gm(e){return e==null?g9:function(){return this.querySelectorAll(e)}}function b9(e){return function(){return p9(e.apply(this,arguments))}}function y9(e){typeof e=="function"?e=b9(e):e=Gm(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 mn(r,s)}function Km(e){return function(){return this.matches(e)}}function Xm(e){return function(t){return t.matches(e)}}var w9=Array.prototype.find;function v9(e){return function(){return w9.call(this.children,e)}}function _9(){return this.firstElementChild}function x9(e){return this.select(e==null?_9:v9(typeof e=="function"?e:Xm(e)))}var k9=Array.prototype.filter;function S9(){return Array.from(this.children)}function A9(e){return function(){return k9.call(this.children,e)}}function E9(e){return this.selectAll(e==null?S9:A9(typeof e=="function"?e:Xm(e)))}function T9(e){typeof e!="function"&&(e=Km(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 mn(r,this._parents)}function Ym(e){return new Array(e.length)}function N9(){return new mn(this._enter||this._groups.map(Ym),this._parents)}function Ya(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ya.prototype={constructor:Ya,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 C9(e){return function(){return e}}function I9(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 Ya(e,i[o]);for(;o<h;++o)(u=t[o])&&(s[o]=u)}function O9(e,t,n,r,s,i,o){var u,h,d=new Map,p=t.length,w=i.length,v=new Array(p),x;for(u=0;u<p;++u)(h=t[u])&&(v[u]=x=o.call(h,h.__data__,u,t)+"",d.has(x)?s[u]=h:d.set(x,h));for(u=0;u<w;++u)x=o.call(e,i[u],u,i)+"",(h=d.get(x))?(r[u]=h,h.__data__=i[u],d.delete(x)):n[u]=new Ya(e,i[u]);for(u=0;u<p;++u)(h=t[u])&&d.get(v[u])===h&&(s[u]=h)}function M9(e){return e.__data__}function L9(e,t){if(!arguments.length)return Array.from(this,M9);var n=t?O9:I9,r=this._parents,s=this._groups;typeof e!="function"&&(e=C9(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],w=s[d],v=w.length,x=D9(e.call(p,p&&p.__data__,d,r)),k=x.length,A=u[d]=new Array(k),N=o[d]=new Array(k),I=h[d]=new Array(v);n(p,w,A,N,I,x,t);for(var V=0,D=0,M,B;V<k;++V)if(M=A[V]){for(V>=D&&(D=V+1);!(B=N[D])&&++D<k;);M._next=B||null}}return o=new mn(o,r),o._enter=u,o._exit=h,o}function D9(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function R9(){return new mn(this._exit||this._groups.map(Ym),this._parents)}function P9(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 $9(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],w=d.length,v=u[h]=new Array(w),x,k=0;k<w;++k)(x=d[k]||p[k])&&(v[k]=x);for(;h<s;++h)u[h]=n[h];return new mn(u,this._parents)}function B9(){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 F9(e){e||(e=z9);function t(w,v){return w&&v?e(w.__data__,v.__data__):!w-!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 mn(s,this._parents).order()}function z9(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function q9(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function U9(){return Array.from(this)}function H9(){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 V9(){let e=0;for(const t of this)++e;return e}function j9(){return!this.node()}function W9(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 G9(e){return function(){this.removeAttribute(e)}}function K9(e){return function(){this.removeAttributeNS(e.space,e.local)}}function X9(e,t){return function(){this.setAttribute(e,t)}}function Y9(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function J9(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Q9(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 Z9(e,t){var n=Eo(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?K9:G9:typeof t=="function"?n.local?Q9:J9:n.local?Y9:X9)(n,t))}function Jm(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ew(e){return function(){this.style.removeProperty(e)}}function tw(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 rw(e,t,n){return arguments.length>1?this.each((t==null?ew:typeof t=="function"?nw:tw)(e,t,n??"")):Ss(this.node(),e)}function Ss(e,t){return e.style.getPropertyValue(t)||Jm(e).getComputedStyle(e,null).getPropertyValue(t)}function sw(e){return function(){delete this[e]}}function iw(e,t){return function(){this[e]=t}}function aw(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function ow(e,t){return arguments.length>1?this.each((t==null?sw:typeof t=="function"?aw:iw)(e,t)):this.node()[e]}function Qm(e){return e.trim().split(/^|\s+/)}function Oc(e){return e.classList||new Zm(e)}function Zm(e){this._node=e,this._names=Qm(e.getAttribute("class")||"")}Zm.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 ep(e,t){for(var n=Oc(e),r=-1,s=t.length;++r<s;)n.add(t[r])}function tp(e,t){for(var n=Oc(e),r=-1,s=t.length;++r<s;)n.remove(t[r])}function lw(e){return function(){ep(this,e)}}function cw(e){return function(){tp(this,e)}}function uw(e,t){return function(){(t.apply(this,arguments)?ep:tp)(this,e)}}function fw(e,t){var n=Qm(e+"");if(arguments.length<2){for(var r=Oc(this.node()),s=-1,i=n.length;++s<i;)if(!r.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?uw:t?lw:cw)(n,t))}function hw(){this.textContent=""}function dw(e){return function(){this.textContent=e}}function mw(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function pw(e){return arguments.length?this.each(e==null?hw:(typeof e=="function"?mw:dw)(e)):this.node().textContent}function gw(){this.innerHTML=""}function bw(e){return function(){this.innerHTML=e}}function yw(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function ww(e){return arguments.length?this.each(e==null?gw:(typeof e=="function"?yw:bw)(e)):this.node().innerHTML}function vw(){this.nextSibling&&this.parentNode.appendChild(this)}function _w(){return this.each(vw)}function xw(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kw(){return this.each(xw)}function Sw(e){var t=typeof e=="function"?e:Wm(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Aw(){return null}function Ew(e,t){var n=typeof e=="function"?e:Wm(e),r=t==null?Aw:typeof t=="function"?t:Ic(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Tw(){var e=this.parentNode;e&&e.removeChild(this)}function Nw(){return this.each(Tw)}function Cw(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Iw(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ow(e){return this.select(e?Iw:Cw)}function Mw(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Lw(e){return function(t){e.call(this,t,this.__data__)}}function Dw(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 Rw(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 Pw(e,t,n){return function(){var r=this.__on,s,i=Lw(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 $w(e,t,n){var r=Dw(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?Pw:Rw,s=0;s<i;++s)this.each(u(r[s],t,n));return this}function np(e,t,n){var r=Jm(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 Bw(e,t){return function(){return np(this,e,t)}}function Fw(e,t){return function(){return np(this,e,t.apply(this,arguments))}}function zw(e,t){return this.each((typeof t=="function"?Fw:Bw)(e,t))}function*qw(){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 rp=[null];function mn(e,t){this._groups=e,this._parents=t}function Ti(){return new mn([[document.documentElement]],rp)}function Uw(){return this}mn.prototype=Ti.prototype={constructor:mn,select:m9,selectAll:y9,selectChild:x9,selectChildren:E9,filter:T9,data:L9,enter:N9,exit:R9,join:P9,merge:$9,selection:Uw,order:B9,sort:F9,call:q9,nodes:U9,node:H9,size:V9,empty:j9,each:W9,attr:Z9,style:rw,property:ow,classed:fw,text:pw,html:ww,raise:_w,lower:kw,append:Sw,insert:Ew,remove:Nw,clone:Ow,datum:Mw,on:$w,dispatch:zw,[Symbol.iterator]:qw};function pr(e){return typeof e=="string"?new mn([[document.querySelector(e)]],[document.documentElement]):new mn([[e]],rp)}function Hw(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Rr(e,t){if(e=Hw(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 T0={capture:!0,passive:!1};function N0(e){e.preventDefault(),e.stopImmediatePropagation()}function Vw(e){var t=e.document.documentElement,n=pr(e).on("dragstart.drag",N0,T0);"onselectstart"in t?n.on("selectstart.drag",N0,T0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function jw(e,t){var n=e.document.documentElement,r=pr(e).on("dragstart.drag",null);t&&(r.on("click.drag",N0,T0),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 Mc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ni(){}var gi=.7,Ja=1/gi,ys="\\s*([+-]?\\d+)\\s*",bi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ww=/^#([0-9a-f]{3,8})$/,Gw=new RegExp(`^rgb\\(${ys},${ys},${ys}\\)$`),Kw=new RegExp(`^rgb\\(${qn},${qn},${qn}\\)$`),Xw=new RegExp(`^rgba\\(${ys},${ys},${ys},${bi}\\)$`),Yw=new RegExp(`^rgba\\(${qn},${qn},${qn},${bi}\\)$`),Jw=new RegExp(`^hsl\\(${bi},${qn},${qn}\\)$`),Qw=new RegExp(`^hsla\\(${bi},${qn},${qn},${bi}\\)$`),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};Mc(Ni,yi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Uh,formatHex:Uh,formatHex8:Zw,formatHsl:ev,formatRgb:Hh,toString:Hh});function Uh(){return this.rgb().formatHex()}function Zw(){return this.rgb().formatHex8()}function ev(){return ip(this).formatHsl()}function Hh(){return this.rgb().formatRgb()}function yi(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ww.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Vh(t):n===3?new an(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ba(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ba(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=Gw.exec(e))?new an(t[1],t[2],t[3],1):(t=Kw.exec(e))?new an(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Xw.exec(e))?ba(t[1],t[2],t[3],t[4]):(t=Yw.exec(e))?ba(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Jw.exec(e))?Gh(t[1],t[2]/100,t[3]/100,1):(t=Qw.exec(e))?Gh(t[1],t[2]/100,t[3]/100,t[4]):qh.hasOwnProperty(e)?Vh(qh[e]):e==="transparent"?new an(NaN,NaN,NaN,0):null}function Vh(e){return new an(e>>16&255,e>>8&255,e&255,1)}function ba(e,t,n,r){return r<=0&&(e=t=n=NaN),new an(e,t,n,r)}function tv(e){return e instanceof Ni||(e=yi(e)),e?(e=e.rgb(),new an(e.r,e.g,e.b,e.opacity)):new an}function C0(e,t,n,r){return arguments.length===1?tv(e):new an(e,t,n,r??1)}function an(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Mc(an,C0,sp(Ni,{brighter(e){return e=e==null?Ja:Math.pow(Ja,e),new an(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gi:Math.pow(gi,e),new an(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new an(Hr(this.r),Hr(this.g),Hr(this.b),Qa(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:jh,formatHex:jh,formatHex8:nv,formatRgb:Wh,toString:Wh}));function jh(){return`#${qr(this.r)}${qr(this.g)}${qr(this.b)}`}function nv(){return`#${qr(this.r)}${qr(this.g)}${qr(this.b)}${qr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Wh(){const e=Qa(this.opacity);return`${e===1?"rgb(":"rgba("}${Hr(this.r)}, ${Hr(this.g)}, ${Hr(this.b)}${e===1?")":`, ${e})`}`}function Qa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qr(e){return e=Hr(e),(e<16?"0":"")+e.toString(16)}function Gh(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Nn(e,t,n,r)}function ip(e){if(e instanceof Nn)return new Nn(e.h,e.s,e.l,e.opacity);if(e instanceof Ni||(e=yi(e)),!e)return new Nn;if(e instanceof Nn)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 Nn(o,u,h,e.opacity)}function rv(e,t,n,r){return arguments.length===1?ip(e):new Nn(e,t,n,r??1)}function Nn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mc(Nn,rv,sp(Ni,{brighter(e){return e=e==null?Ja:Math.pow(Ja,e),new Nn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gi:Math.pow(gi,e),new Nn(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 an(ql(e>=240?e-240:e+120,s,r),ql(e,s,r),ql(e<120?e+240:e-120,s,r),this.opacity)},clamp(){return new Nn(Kh(this.h),ya(this.s),ya(this.l),Qa(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=Qa(this.opacity);return`${e===1?"hsl(":"hsla("}${Kh(this.h)}, ${ya(this.s)*100}%, ${ya(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Kh(e){return e=(e||0)%360,e<0?e+360:e}function ya(e){return Math.max(0,Math.min(1,e||0))}function ql(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 ap=e=>()=>e;function sv(e,t){return function(n){return e+n*t}}function iv(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 av(e){return(e=+e)==1?op:function(t,n){return n-t?iv(t,n,e):ap(isNaN(t)?n:t)}}function op(e,t){var n=t-e;return n?sv(e,n):ap(isNaN(e)?t:e)}const Xh=function e(t){var n=av(t);function r(s,i){var o=n((s=C0(s)).r,(i=C0(i)).r),u=n(s.g,i.g),h=n(s.b,i.b),d=op(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 mr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var I0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ul=new RegExp(I0.source,"g");function ov(e){return function(){return e}}function lv(e){return function(t){return e(t)+""}}function cv(e,t){var n=I0.lastIndex=Ul.lastIndex=0,r,s,i,o=-1,u=[],h=[];for(e=e+"",t=t+"";(r=I0.exec(e))&&(s=Ul.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:mr(r,s)})),n=Ul.lastIndex;return n<t.length&&(i=t.slice(n),u[o]?u[o]+=i:u[++o]=i),u.length<2?h[0]?lv(h[0].x):ov(t):(t=h.length,function(d){for(var p=0,w;p<t;++p)u[(w=h[p]).i]=w.x(d);return u.join("")})}var Yh=180/Math.PI,O0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lp(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)*Yh,skewX:Math.atan(h)*Yh,scaleX:o,scaleY:u}}var wa;function uv(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?O0:lp(t.a,t.b,t.c,t.d,t.e,t.f)}function fv(e){return e==null||(wa||(wa=document.createElementNS("http://www.w3.org/2000/svg","g")),wa.setAttribute("transform",e),!(e=wa.transform.baseVal.consolidate()))?O0:(e=e.matrix,lp(e.a,e.b,e.c,e.d,e.e,e.f))}function cp(e,t,n,r){function s(d){return d.length?d.pop()+" ":""}function i(d,p,w,v,x,k){if(d!==w||p!==v){var A=x.push("translate(",null,t,null,n);k.push({i:A-4,x:mr(d,w)},{i:A-2,x:mr(p,v)})}else(w||v)&&x.push("translate("+w+t+v+n)}function o(d,p,w,v){d!==p?(d-p>180?p+=360:p-d>180&&(d+=360),v.push({i:w.push(s(w)+"rotate(",null,r)-2,x:mr(d,p)})):p&&w.push(s(w)+"rotate("+p+r)}function u(d,p,w,v){d!==p?v.push({i:w.push(s(w)+"skewX(",null,r)-2,x:mr(d,p)}):p&&w.push(s(w)+"skewX("+p+r)}function h(d,p,w,v,x,k){if(d!==w||p!==v){var A=x.push(s(x)+"scale(",null,",",null,")");k.push({i:A-4,x:mr(d,w)},{i:A-2,x:mr(p,v)})}else(w!==1||v!==1)&&x.push(s(x)+"scale("+w+","+v+")")}return function(d,p){var w=[],v=[];return d=e(d),p=e(p),i(d.translateX,d.translateY,p.translateX,p.translateY,w,v),o(d.rotate,p.rotate,w,v),u(d.skewX,p.skewX,w,v),h(d.scaleX,d.scaleY,p.scaleX,p.scaleY,w,v),d=p=null,function(x){for(var k=-1,A=v.length,N;++k<A;)w[(N=v[k]).i]=N.x(x);return w.join("")}}}var hv=cp(uv,"px, ","px)","deg)"),dv=cp(fv,", ",")",")"),mv=1e-12;function Jh(e){return((e=Math.exp(e))+1/e)/2}function pv(e){return((e=Math.exp(e))-1/e)/2}function gv(e){return((e=Math.exp(2*e))-1)/(e+1)}const bv=function e(t,n,r){function s(i,o){var u=i[0],h=i[1],d=i[2],p=o[0],w=o[1],v=o[2],x=p-u,k=w-h,A=x*x+k*k,N,I;if(A<mv)I=Math.log(v/d)/t,N=function(j){return[u+j*x,h+j*k,d*Math.exp(t*j*I)]};else{var V=Math.sqrt(A),D=(v*v-d*d+r*A)/(2*d*n*V),M=(v*v-d*d-r*A)/(2*v*n*V),B=Math.log(Math.sqrt(D*D+1)-D),P=Math.log(Math.sqrt(M*M+1)-M);I=(P-B)/t,N=function(j){var W=j*I,Y=Jh(B),pe=d/(n*V)*(Y*gv(t*W+B)-pv(B));return[u+pe*x,h+pe*k,d*Y/Jh(t*W+B)]}}return N.duration=I*1e3*t/Math.SQRT2,N}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 As=0,Zs=0,js=0,up=1e3,Za,ei,eo=0,Kr=0,To=0,wi=typeof performance=="object"&&performance.now?performance:Date,fp=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Lc(){return Kr||(fp(yv),Kr=wi.now()+To)}function yv(){Kr=0}function to(){this._call=this._time=this._next=null}to.prototype=hp.prototype={constructor:to,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Lc():+n)+(t==null?0:+t),!this._next&&ei!==this&&(ei?ei._next=this:Za=this,ei=this),this._call=e,this._time=n,M0()},stop:function(){this._call&&(this._call=null,this._time=1/0,M0())}};function hp(e,t,n){var r=new to;return r.restart(e,t,n),r}function wv(){Lc(),++As;for(var e=Za,t;e;)(t=Kr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--As}function Qh(){Kr=(eo=wi.now())+To,As=Zs=0;try{wv()}finally{As=0,_v(),Kr=0}}function vv(){var e=wi.now(),t=e-eo;t>up&&(To-=t,eo=e)}function _v(){for(var e,t=Za,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:Za=n);ei=e,M0(r)}function M0(e){if(!As){Zs&&(Zs=clearTimeout(Zs));var t=e-Kr;t>24?(e<1/0&&(Zs=setTimeout(Qh,e-wi.now()-To)),js&&(js=clearInterval(js))):(js||(eo=wi.now(),js=setInterval(vv,up)),As=1,fp(Qh))}}function Zh(e,t,n){var r=new to;return t=t==null?0:+t,r.restart(s=>{r.stop(),e(s+t)},t,n),r}var xv=Cc("start","end","cancel","interrupt"),kv=[],dp=0,ed=1,L0=2,Na=3,td=4,D0=5,Ca=6;function No(e,t,n,r,s,i){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Sv(e,n,{name:t,index:r,group:s,on:xv,tween:kv,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:dp})}function Dc(e,t){var n=Mn(e,t);if(n.state>dp)throw new Error("too late; already scheduled");return n}function Hn(e,t){var n=Mn(e,t);if(n.state>Na)throw new Error("too late; already running");return n}function Mn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Sv(e,t,n){var r=e.__transition,s;r[t]=n,n.timer=hp(i,0,n.time);function i(d){n.state=ed,n.timer.restart(o,n.delay,n.time),n.delay<=d&&o(d-n.delay)}function o(d){var p,w,v,x;if(n.state!==ed)return h();for(p in r)if(x=r[p],x.name===n.name){if(x.state===Na)return Zh(o);x.state===td?(x.state=Ca,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete r[p]):+p<t&&(x.state=Ca,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete r[p])}if(Zh(function(){n.state===Na&&(n.state=td,n.timer.restart(u,n.delay,n.time),u(d))}),n.state=L0,n.on.call("start",e,e.__data__,n.index,n.group),n.state===L0){for(n.state=Na,s=new Array(v=n.tween.length),p=0,w=-1;p<v;++p)(x=n.tween[p].value.call(e,e.__data__,n.index,n.group))&&(s[++w]=x);s.length=w+1}}function u(d){for(var p=d<n.duration?n.ease.call(null,d/n.duration):(n.timer.restart(h),n.state=D0,1),w=-1,v=s.length;++w<v;)s[w].call(e,p);n.state===D0&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=Ca,n.timer.stop(),delete r[t];for(var d in r)return;delete e.__transition}}function Ia(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>L0&&r.state<D0,r.state=Ca,r.timer.stop(),r.on.call(s?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}i&&delete e.__transition}}function Av(e){return this.each(function(){Ia(this,e)})}function Ev(e,t){var n,r;return function(){var s=Hn(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 Tv(e,t,n){var r,s;if(typeof n!="function")throw new Error;return function(){var i=Hn(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 Nv(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Mn(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?Ev:Tv)(n,e,t))}function Rc(e,t,n){var r=e._id;return e.each(function(){var s=Hn(this,r);(s.value||(s.value={}))[t]=n.apply(this,arguments)}),function(s){return Mn(s,r).value[t]}}function mp(e,t){var n;return(typeof t=="number"?mr:t instanceof yi?Xh:(n=yi(t))?(t=n,Xh):cv)(e,t)}function Cv(e){return function(){this.removeAttribute(e)}}function Iv(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ov(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 Mv(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 Lv(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 Dv(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 Rv(e,t){var n=Eo(e),r=n==="transform"?dv:mp;return this.attrTween(e,typeof t=="function"?(n.local?Dv:Lv)(n,r,Rc(this,"attr."+e,t)):t==null?(n.local?Iv:Cv)(n):(n.local?Mv:Ov)(n,r,t))}function Pv(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function $v(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Bv(e,t){var n,r;function s(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&$v(e,i)),n}return s._value=t,s}function Fv(e,t){var n,r;function s(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Pv(e,i)),n}return s._value=t,s}function zv(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=Eo(e);return this.tween(n,(r.local?Bv:Fv)(r,t))}function qv(e,t){return function(){Dc(this,e).delay=+t.apply(this,arguments)}}function Uv(e,t){return t=+t,function(){Dc(this,e).delay=t}}function Hv(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?qv:Uv)(t,e)):Mn(this.node(),t).delay}function Vv(e,t){return function(){Hn(this,e).duration=+t.apply(this,arguments)}}function jv(e,t){return t=+t,function(){Hn(this,e).duration=t}}function Wv(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Vv:jv)(t,e)):Mn(this.node(),t).duration}function Gv(e,t){if(typeof t!="function")throw new Error;return function(){Hn(this,e).ease=t}}function Kv(e){var t=this._id;return arguments.length?this.each(Gv(t,e)):Mn(this.node(),t).ease}function Xv(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Hn(this,e).ease=n}}function Yv(e){if(typeof e!="function")throw new Error;return this.each(Xv(this._id,e))}function Jv(e){typeof e!="function"&&(e=Km(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 sr(r,this._parents,this._name,this._id)}function Qv(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,w=o[u]=new Array(p),v,x=0;x<p;++x)(v=h[x]||d[x])&&(w[x]=v);for(;u<r;++u)o[u]=t[u];return new sr(o,this._parents,this._name,this._id)}function Zv(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 e_(e,t,n){var r,s,i=Zv(t)?Dc:Hn;return function(){var o=i(this,e),u=o.on;u!==r&&(s=(r=u).copy()).on(t,n),o.on=s}}function t_(e,t){var n=this._id;return arguments.length<2?Mn(this.node(),n).on.on(e):this.each(e_(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 r_(){return this.on("end.remove",n_(this._id))}function s_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ic(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,w,v=0;v<h;++v)(p=u[v])&&(w=e.call(p,p.__data__,v,u))&&("__data__"in p&&(w.__data__=p.__data__),d[v]=w,No(d[v],t,n,v,d,Mn(p,n)));return new sr(i,this._parents,t,n)}function i_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Gm(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,w=0;w<d;++w)if(p=h[w]){for(var v=e.call(p,p.__data__,w,h),x,k=Mn(p,n),A=0,N=v.length;A<N;++A)(x=v[A])&&No(x,t,n,A,v,k);i.push(v),o.push(p)}return new sr(i,o,t,n)}var a_=Ti.prototype.constructor;function o_(){return new a_(this._groups,this._parents)}function l_(e,t){var n,r,s;return function(){var i=Ss(this,e),o=(this.style.removeProperty(e),Ss(this,e));return i===o?null:i===n&&o===r?s:s=t(n=i,r=o)}}function pp(e){return function(){this.style.removeProperty(e)}}function c_(e,t,n){var r,s=n+"",i;return function(){var o=Ss(this,e);return o===s?null:o===r?i:i=t(r=o,n)}}function u_(e,t,n){var r,s,i;return function(){var o=Ss(this,e),u=n(this),h=u+"";return u==null&&(h=u=(this.style.removeProperty(e),Ss(this,e))),o===h?null:o===r&&h===s?i:(s=h,i=t(r=o,u))}}function f_(e,t){var n,r,s,i="style."+t,o="end."+i,u;return function(){var h=Hn(this,e),d=h.on,p=h.value[i]==null?u||(u=pp(t)):void 0;(d!==n||s!==p)&&(r=(n=d).copy()).on(o,s=p),h.on=r}}function h_(e,t,n){var r=(e+="")=="transform"?hv:mp;return t==null?this.styleTween(e,l_(e,r)).on("end.style."+e,pp(e)):typeof t=="function"?this.styleTween(e,u_(e,r,Rc(this,"style."+e,t))).each(f_(this._id,e)):this.styleTween(e,c_(e,r,t),n).on("end.style."+e,null)}function d_(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function m_(e,t,n){var r,s;function i(){var o=t.apply(this,arguments);return o!==s&&(r=(s=o)&&d_(e,o,n)),r}return i._value=t,i}function p_(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,m_(e,t,n??""))}function g_(e){return function(){this.textContent=e}}function b_(e){return function(){var t=e(this);this.textContent=t??""}}function y_(e){return this.tween("text",typeof e=="function"?b_(Rc(this,"text",e)):g_(e==null?"":e+""))}function w_(e){return function(t){this.textContent=e.call(this,t)}}function v_(e){var t,n;function r(){var s=e.apply(this,arguments);return s!==n&&(t=(n=s)&&w_(s)),t}return r._value=e,r}function __(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,v_(e))}function x_(){for(var e=this._name,t=this._id,n=gp(),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=Mn(h,t);No(h,e,n,d,o,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new sr(r,this._parents,e,n)}function k_(){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=Hn(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 S_=0;function sr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function gp(){return++S_}var Jn=Ti.prototype;sr.prototype={constructor:sr,select:s_,selectAll:i_,selectChild:Jn.selectChild,selectChildren:Jn.selectChildren,filter:Jv,merge:Qv,selection:o_,transition:x_,call:Jn.call,nodes:Jn.nodes,node:Jn.node,size:Jn.size,empty:Jn.empty,each:Jn.each,on:t_,attr:Rv,attrTween:zv,style:h_,styleTween:p_,text:y_,textTween:__,remove:r_,tween:Nv,delay:Hv,duration:Wv,ease:Kv,easeVarying:Yv,end:k_,[Symbol.iterator]:Jn[Symbol.iterator]};function A_(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var E_={time:null,delay:0,duration:250,ease:A_};function T_(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 N_(e){var t,n;e instanceof sr?(t=e._id,e=e._name):(t=gp(),(n=E_).time=Lc(),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])&&No(h,e,t,d,o,n||T_(h,t));return new sr(r,this._parents,e,t)}Ti.prototype.interrupt=Av;Ti.prototype.transition=N_;const R0=Math.PI,P0=2*R0,$r=1e-6,C_=P0-$r;function bp(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function I_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return bp;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 O_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?bp:I_(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,w=u-n,v=p*p+w*w;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>$r)if(!(Math.abs(w*h-d*p)>$r)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-o,k=s-u,A=h*h+d*d,N=x*x+k*k,I=Math.sqrt(A),V=Math.sqrt(v),D=i*Math.tan((R0-Math.acos((A+v-N)/(2*I*V)))/2),M=D/V,B=D/I;Math.abs(M-1)>$r&&this._append`L${t+M*p},${n+M*w}`,this._append`A${i},${i},0,0,${+(w*x>p*k)},${this._x1=t+B*h},${this._y1=n+B*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,w=1^o,v=o?s-i:i-s;this._x1===null?this._append`M${d},${p}`:(Math.abs(this._x1-d)>$r||Math.abs(this._y1-p)>$r)&&this._append`L${d},${p}`,r&&(v<0&&(v=v%P0+P0),v>C_?this._append`A${r},${r},0,1,${w},${t-u},${n-h}A${r},${r},0,1,${w},${this._x1=d},${this._y1=p}`:v>$r&&this._append`A${r},${r},0,${+(v>=R0)},${w},${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 M_(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const nd=Symbol("implicit");function yp(){var e=new Rh,t=[],n=[],r=nd;function s(i){let o=e.get(i);if(o===void 0){if(r!==nd)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 Rh;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 yp(t,n).unknown(r)},M_.apply(s,arguments),s}function L_(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 D_=L_("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function rd(e){return function(){return e}}function R_(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 O_(t)}var P_=Array.prototype.slice;function $_(e){return e[0]}function B_(e){return e[1]}class F_{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 z_(e){return new F_(e,!0)}function q_(e){return e.source}function U_(e){return e.target}function H_(e){let t=q_,n=U_,r=$_,s=B_,i=null,o=null,u=R_(h);function h(){let d;const p=P_.call(arguments),w=t.apply(this,p),v=n.apply(this,p);if(i==null&&(o=e(d=u())),o.lineStart(),p[0]=w,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:rd(+d),h):r},h.y=function(d){return arguments.length?(s=typeof d=="function"?d:rd(+d),h):s},h.context=function(d){return arguments.length?(d==null?i=o=null:o=e(i=d),h):i},h}function V_(){return H_(z_)}const va=e=>()=>e;function j_(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 tr(e,t,n){this.k=e,this.x=t,this.y=n}tr.prototype={constructor:tr,scale:function(e){return e===1?this:new tr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new tr(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 Co=new tr(1,0,0);ls.prototype=tr.prototype;function ls(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Co;return e.__zoom}function Hl(e){e.stopImmediatePropagation()}function Ws(e){e.preventDefault(),e.stopImmediatePropagation()}function W_(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function G_(){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 sd(){return this.__zoom||Co}function K_(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 Y_(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 J_(){var e=W_,t=G_,n=Y_,r=K_,s=X_,i=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],u=250,h=bv,d=Cc("start","zoom","end"),p,w,v,x=500,k=150,A=0,N=10;function I(G){G.property("__zoom",sd).on("wheel.zoom",W,{passive:!1}).on("mousedown.zoom",Y).on("dblclick.zoom",pe).filter(s).on("touchstart.zoom",Me).on("touchmove.zoom",be).on("touchend.zoom touchcancel.zoom",xe).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}I.transform=function(G,he,Q,ge){var te=G.selection?G.selection():G;te.property("__zoom",sd),G!==te?B(G,he,Q,ge):te.interrupt().each(function(){P(this,arguments).event(ge).start().zoom(null,typeof he=="function"?he.apply(this,arguments):he).end()})},I.scaleBy=function(G,he,Q,ge){I.scaleTo(G,function(){var te=this.__zoom.k,Ae=typeof he=="function"?he.apply(this,arguments):he;return te*Ae},Q,ge)},I.scaleTo=function(G,he,Q,ge){I.transform(G,function(){var te=t.apply(this,arguments),Ae=this.__zoom,Le=Q==null?M(te):typeof Q=="function"?Q.apply(this,arguments):Q,ve=Ae.invert(Le),U=typeof he=="function"?he.apply(this,arguments):he;return n(D(V(Ae,U),Le,ve),te,o)},Q,ge)},I.translateBy=function(G,he,Q,ge){I.transform(G,function(){return n(this.__zoom.translate(typeof he=="function"?he.apply(this,arguments):he,typeof Q=="function"?Q.apply(this,arguments):Q),t.apply(this,arguments),o)},null,ge)},I.translateTo=function(G,he,Q,ge,te){I.transform(G,function(){var Ae=t.apply(this,arguments),Le=this.__zoom,ve=ge==null?M(Ae):typeof ge=="function"?ge.apply(this,arguments):ge;return n(Co.translate(ve[0],ve[1]).scale(Le.k).translate(typeof he=="function"?-he.apply(this,arguments):-he,typeof Q=="function"?-Q.apply(this,arguments):-Q),Ae,o)},ge,te)};function V(G,he){return he=Math.max(i[0],Math.min(i[1],he)),he===G.k?G:new tr(he,G.x,G.y)}function D(G,he,Q){var ge=he[0]-Q[0]*G.k,te=he[1]-Q[1]*G.k;return ge===G.x&&te===G.y?G:new tr(G.k,ge,te)}function M(G){return[(+G[0][0]+ +G[1][0])/2,(+G[0][1]+ +G[1][1])/2]}function B(G,he,Q,ge){G.on("start.zoom",function(){P(this,arguments).event(ge).start()}).on("interrupt.zoom end.zoom",function(){P(this,arguments).event(ge).end()}).tween("zoom",function(){var te=this,Ae=arguments,Le=P(te,Ae).event(ge),ve=t.apply(te,Ae),U=Q==null?M(ve):typeof Q=="function"?Q.apply(te,Ae):Q,ce=Math.max(ve[1][0]-ve[0][0],ve[1][1]-ve[0][1]),Ee=te.__zoom,et=typeof he=="function"?he.apply(te,Ae):he,Et=h(Ee.invert(U).concat(ce/Ee.k),et.invert(U).concat(ce/et.k));return function(Lt){if(Lt===1)Lt=et;else{var qt=Et(Lt),Sn=ce/qt[2];Lt=new tr(Sn,U[0]-qt[0]*Sn,U[1]-qt[1]*Sn)}Le.zoom(null,Lt)}})}function P(G,he,Q){return!Q&&G.__zooming||new j(G,he)}function j(G,he){this.that=G,this.args=he,this.active=0,this.sourceEvent=null,this.extent=t.apply(G,he),this.taps=0}j.prototype={event:function(G){return G&&(this.sourceEvent=G),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(G,he){return this.mouse&&G!=="mouse"&&(this.mouse[1]=he.invert(this.mouse[0])),this.touch0&&G!=="touch"&&(this.touch0[1]=he.invert(this.touch0[0])),this.touch1&&G!=="touch"&&(this.touch1[1]=he.invert(this.touch1[0])),this.that.__zoom=he,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(G){var he=pr(this.that).datum();d.call(G,this.that,new j_(G,{sourceEvent:this.sourceEvent,target:I,transform:this.that.__zoom,dispatch:d}),he)}};function W(G,...he){if(!e.apply(this,arguments))return;var Q=P(this,he).event(G),ge=this.__zoom,te=Math.max(i[0],Math.min(i[1],ge.k*Math.pow(2,r.apply(this,arguments)))),Ae=Rr(G);if(Q.wheel)(Q.mouse[0][0]!==Ae[0]||Q.mouse[0][1]!==Ae[1])&&(Q.mouse[1]=ge.invert(Q.mouse[0]=Ae)),clearTimeout(Q.wheel);else{if(ge.k===te)return;Q.mouse=[Ae,ge.invert(Ae)],Ia(this),Q.start()}Ws(G),Q.wheel=setTimeout(Le,k),Q.zoom("mouse",n(D(V(ge,te),Q.mouse[0],Q.mouse[1]),Q.extent,o));function Le(){Q.wheel=null,Q.end()}}function Y(G,...he){if(v||!e.apply(this,arguments))return;var Q=G.currentTarget,ge=P(this,he,!0).event(G),te=pr(G.view).on("mousemove.zoom",U,!0).on("mouseup.zoom",ce,!0),Ae=Rr(G,Q),Le=G.clientX,ve=G.clientY;Vw(G.view),Hl(G),ge.mouse=[Ae,this.__zoom.invert(Ae)],Ia(this),ge.start();function U(Ee){if(Ws(Ee),!ge.moved){var et=Ee.clientX-Le,Et=Ee.clientY-ve;ge.moved=et*et+Et*Et>A}ge.event(Ee).zoom("mouse",n(D(ge.that.__zoom,ge.mouse[0]=Rr(Ee,Q),ge.mouse[1]),ge.extent,o))}function ce(Ee){te.on("mousemove.zoom mouseup.zoom",null),jw(Ee.view,ge.moved),Ws(Ee),ge.event(Ee).end()}}function pe(G,...he){if(e.apply(this,arguments)){var Q=this.__zoom,ge=Rr(G.changedTouches?G.changedTouches[0]:G,this),te=Q.invert(ge),Ae=Q.k*(G.shiftKey?.5:2),Le=n(D(V(Q,Ae),ge,te),t.apply(this,he),o);Ws(G),u>0?pr(this).transition().duration(u).call(B,Le,ge,G):pr(this).call(I.transform,Le,ge,G)}}function Me(G,...he){if(e.apply(this,arguments)){var Q=G.touches,ge=Q.length,te=P(this,he,G.changedTouches.length===ge).event(G),Ae,Le,ve,U;for(Hl(G),Le=0;Le<ge;++Le)ve=Q[Le],U=Rr(ve,this),U=[U,this.__zoom.invert(U),ve.identifier],te.touch0?!te.touch1&&te.touch0[2]!==U[2]&&(te.touch1=U,te.taps=0):(te.touch0=U,Ae=!0,te.taps=1+!!p);p&&(p=clearTimeout(p)),Ae&&(te.taps<2&&(w=U[0],p=setTimeout(function(){p=null},x)),Ia(this),te.start())}}function be(G,...he){if(this.__zooming){var Q=P(this,he).event(G),ge=G.changedTouches,te=ge.length,Ae,Le,ve,U;for(Ws(G),Ae=0;Ae<te;++Ae)Le=ge[Ae],ve=Rr(Le,this),Q.touch0&&Q.touch0[2]===Le.identifier?Q.touch0[0]=ve:Q.touch1&&Q.touch1[2]===Le.identifier&&(Q.touch1[0]=ve);if(Le=Q.that.__zoom,Q.touch1){var ce=Q.touch0[0],Ee=Q.touch0[1],et=Q.touch1[0],Et=Q.touch1[1],Lt=(Lt=et[0]-ce[0])*Lt+(Lt=et[1]-ce[1])*Lt,qt=(qt=Et[0]-Ee[0])*qt+(qt=Et[1]-Ee[1])*qt;Le=V(Le,Math.sqrt(Lt/qt)),ve=[(ce[0]+et[0])/2,(ce[1]+et[1])/2],U=[(Ee[0]+Et[0])/2,(Ee[1]+Et[1])/2]}else if(Q.touch0)ve=Q.touch0[0],U=Q.touch0[1];else return;Q.zoom("touch",n(D(Le,ve,U),Q.extent,o))}}function xe(G,...he){if(this.__zooming){var Q=P(this,he).event(G),ge=G.changedTouches,te=ge.length,Ae,Le;for(Hl(G),v&&clearTimeout(v),v=setTimeout(function(){v=null},x),Ae=0;Ae<te;++Ae)Le=ge[Ae],Q.touch0&&Q.touch0[2]===Le.identifier?delete Q.touch0:Q.touch1&&Q.touch1[2]===Le.identifier&&delete Q.touch1;if(Q.touch1&&!Q.touch0&&(Q.touch0=Q.touch1,delete Q.touch1),Q.touch0)Q.touch0[1]=this.__zoom.invert(Q.touch0[0]);else if(Q.end(),Q.taps===2&&(Le=Rr(Le,this),Math.hypot(w[0]-Le[0],w[1]-Le[1])<N)){var ve=pr(this).on("dblclick.zoom");ve&&ve.apply(this,arguments)}}}return I.wheelDelta=function(G){return arguments.length?(r=typeof G=="function"?G:va(+G),I):r},I.filter=function(G){return arguments.length?(e=typeof G=="function"?G:va(!!G),I):e},I.touchable=function(G){return arguments.length?(s=typeof G=="function"?G:va(!!G),I):s},I.extent=function(G){return arguments.length?(t=typeof G=="function"?G:va([[+G[0][0],+G[0][1]],[+G[1][0],+G[1][1]]]),I):t},I.scaleExtent=function(G){return arguments.length?(i[0]=+G[0],i[1]=+G[1],I):[i[0],i[1]]},I.translateExtent=function(G){return arguments.length?(o[0][0]=+G[0][0],o[1][0]=+G[1][0],o[0][1]=+G[0][1],o[1][1]=+G[1][1],I):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},I.constrain=function(G){return arguments.length?(n=G,I):n},I.duration=function(G){return arguments.length?(u=+G,I):u},I.interpolate=function(G){return arguments.length?(h=G,I):h},I.on=function(){var G=d.on.apply(d,arguments);return G===d?I:G},I.clickDistance=function(G){return arguments.length?(A=(G=+G)*G,I):Math.sqrt(A)},I.tapDistance=function(G){return arguments.length?(N=+G,I):N},I}const wp=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh"),Q_=yp(D_),Z_=(e=1,t=3,n=2)=>r=>e+t/n**r.state.depth,ex={autoFit:!1,duration:500,embedGlobalCSS:!0,fitRatio:.95,maxInitialScale:2,scrollForPan:wp,initialExpandLevel:-1,zoom:!0,pan:!0,toggleRecursively:!1,color:e=>{var t;return Q_(`${((t=e.state)==null?void 0:t.path)||""}`)},lineWidth:Z_(),maxWidth:0,nodeMinHeight:16,paddingX:8,spacingHorizontal:80,spacingVertical:5};function tx(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 hn(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 rx(){return this.eachAfter(nx)}function sx(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 ix(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 ax(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 ox(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 lx(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function cx(e){for(var t=this,n=ux(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 ux(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 fx(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function hx(){var e=[];return this.each(function(t){e.push(t)}),e}function dx(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function mx(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Pc(e,t){var n=new no(e),r=+e.value&&(n.value=e.value),s,i=[n],o,u,h,d;for(t==null&&(t=gx);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 no(u[h])),o.parent=s,o.depth=s.depth+1;return n.eachBefore(yx)}function px(){return Pc(this).eachBefore(bx)}function gx(e){return e.children}function bx(e){e.data=e.data.data}function yx(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function no(e){this.data=e,this.depth=this.height=0,this.parent=null}no.prototype=Pc.prototype={constructor:no,count:rx,each:sx,eachAfter:ax,eachBefore:ix,sum:ox,sort:lx,path:cx,ancestors:fx,descendants:hx,leaves:dx,links:mx,copy:px};const wx="2.1.2",vx={version:wx},{version:_x}=vx,xx=Object.freeze({children:e=>e.children,nodeSize:e=>e.data.size,spacing:0});function _p(e){const t=Object.assign({},xx,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 vp extends Pc.prototype.constructor{constructor(p){super(p)}copy(){const p=o(this.constructor,this,w=>w.children);return p.each(w=>w.data=w.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,w)=>vp.maxExtents(p,w.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(p,w){return{top:Math.min(p.top,w.top),bottom:Math.max(p.bottom,w.bottom),left:Math.min(p.left,w.left),right:Math.max(p.right,w.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 xp(this),kp(this),this}}}function o(u,h,d){const p=(w,v)=>{const x=new u(w);Object.assign(x,{parent:v,depth:v===null?0:v.depth+1,height:0,length:1});const k=d(w)||[];return x.children=k.length===0?null:k.map(A=>p(A,x)),x.children&&Object.assign(x,x.children.reduce((A,N)=>({height:Math.max(A.height,N.height+1),length:A.length+N.length}),x)),x};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=>w=>{const v=p+" ",x=p+" ",{x:k,y:A}=w,N=h(w),I=w.children||[],V=I.length===0?" ":`,${v}children: [${x}${I.map(d(x)).join(x)}${v}],${p}`;return`{ size: [${N.join(", ")}],${v}x: ${k}, y: ${A}${V}},`};return d(`
|
||
`)(u)}}),r}_p.version=_x;const xp=(e,t=0)=>(e.y=t,(e.children||[]).reduce((n,r)=>{const[s,i]=n;xp(r,e.y+e.ySize);const o=(s===0?r.lExt:r.rExt).bottom;s!==0&&Sx(e,s,i);const u=Mx(o,s,i);return[s+1,u]},[0,null]),kx(e),Ox(e),e),kp=(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=>kp(s,r,e.x)),e},kx=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])},Sx=(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,Ax(s,p),Ex(e,t,n.index,p)),d=!1;const w=i.bottom,v=u.bottom;w<=v&&(i=Nx(i),i&&(o+=i.relX)),w>=v&&(u=Tx(u),u&&(h+=u.relX))}!i&&u?Cx(e,t,u,h):i&&!u&&Ix(e,t,i,o)},Ax=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},Ex=(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}},Tx=e=>e.hasChildren?e.firstChild:e.lThr,Nx=e=>e.hasChildren?e.lastChild:e.rThr,Cx=(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},Ix=(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},Ox=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})}},Mx=(e,t,n)=>{for(;n!==null&&e>=n.lowY;)n=n.next;return{lowY:e,index:t,next:n}},Lx=".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}",Vl="g.markmap-node",Dx="path.markmap-link",Rx="g.markmap-highlight",jl=V_();function id(e,t){const n=o9(e,t);return e[n]}function Wl(e){e.stopPropagation()}const Px=new Ks;class si{constructor(t,n){this.options={...ex},this._disposeList=[],this.handleZoom=r=>{const{transform:s}=r;this.g.attr("transform",s)},this.handlePan=r=>{r.preventDefault();const s=ls(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;(wp?r.metaKey:r.ctrlKey)&&(i=!i),this.toggleNode(s,i)},this.ensureView=this.ensureVisible,this.svg=t.datum?t:pr(t),this.styleNode=this.svg.append("style"),this.zoom=J_().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")||G5(),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(Y5(()=>{this.renderData()},100)),this._disposeList.push(Px.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&&Lx,r].filter(Boolean).join(`
|
||
`)}updateStyle(){this.svg.attr("class",K5(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?Xs(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 Xs(t,(u,h,d)=>{var p,w,v,x;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=[(w=d==null?void 0:d.state)==null?void 0:w.id,u.state.id].filter(Boolean).join(".")+tx(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 k=((x=u.payload)==null?void 0:x.fold)===2;k?i+=1:(i||s>=0&&u.state.depth>=s)&&(u.payload={...u.payload,fold:1}),h(),k&&(i-=1),o-=1}),t}_relayout(){if(!this.state.data)return;this.g.selectAll(hn(Vl)).selectAll(hn("foreignObject")).each(function(h){var d;const p=(d=this.firstChild)==null?void 0:d.firstChild,w=[p.scrollWidth,p.scrollHeight];h.state.size=w});const{lineWidth:t,paddingX:n,spacingHorizontal:r,spacingVertical:s}=this.options,i=_p({}).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:Bh(u,h=>h.data.state.rect.x)||0,y1:Bh(u,h=>h.data.state.rect.y)||0,x2:$h(u,h=>h.data.state.rect.x+h.data.state.rect.width)||0,y2:$h(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/ls(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=[];Xs(u,(U,ce,Ee)=>{var et;(et=U.payload)!=null&&et.fold||ce(),h[U.state.id]=U,Ee&&(d[U.state.id]=Ee.state.id),p.push(U)});const w={},v={},x=U=>{!U||w[U.state.id]||Xs(U,(ce,Ee)=>{w[ce.state.id]=U.state.id,Ee()})},k=U=>v[w[U.state.id]]||u.state.rect,A=U=>(h[w[U.state.id]]||u).state.rect;v[u.state.id]=u.state.rect,t&&x(t);let{highlight:N}=this.state;N&&!h[N.state.id]&&(N=void 0);let I=this.g.selectAll(hn(Rx)).selectAll(hn("rect")).data(N?[this._getHighlightRect(N)]:[]).join("rect").attr("x",U=>U.x).attr("y",U=>U.y).attr("width",U=>U.width).attr("height",U=>U.height);const V=this.g.selectAll(hn(Vl)).each(U=>{v[U.state.id]=U.state.rect}).data(p,U=>U.state.key),D=V.enter().append("g").attr("data-depth",U=>U.state.depth).attr("data-path",U=>U.state.path).each(U=>{x(h[d[U.state.id]])}),M=V.exit().each(U=>{x(h[d[U.state.id]])}),B=V.merge(D).attr("class",U=>{var ce;return["markmap-node",((ce=U.payload)==null?void 0:ce.fold)&&"markmap-fold"].filter(Boolean).join(" ")}),P=B.selectAll(hn("line")).data(U=>[U],U=>U.state.key),j=P.enter().append("line").attr("stroke",U=>s(U)).attr("stroke-width",0),W=P.merge(j),Y=B.selectAll(hn("circle")).data(U=>{var ce;return(ce=U.children)!=null&&ce.length?[U]:[]},U=>U.state.key),pe=Y.enter().append("circle").attr("stroke-width",0).attr("r",0).on("click",(U,ce)=>this.handleClick(U,ce)).on("mousedown",Wl).merge(Y).attr("stroke",U=>s(U)).attr("fill",U=>{var ce;return(ce=U.payload)!=null&&ce.fold&&U.children?s(U):"var(--markmap-circle-open-bg)"}),Me=this._observer,be=B.selectAll(hn("foreignObject")).data(U=>[U],U=>U.state.key),xe=be.enter().append("foreignObject").attr("class","markmap-foreign").attr("x",n).attr("y",0).style("opacity",0).on("mousedown",Wl).on("dblclick",Wl);xe.append("xhtml:div").append("xhtml:div").html(U=>U.content).attr("xmlns","http://www.w3.org/1999/xhtml"),xe.each(function(){var U;const ce=(U=this.firstChild)==null?void 0:U.firstChild;Me.observe(ce)});const G=M.selectAll(hn("foreignObject"));G.each(function(){var U;const ce=(U=this.firstChild)==null?void 0:U.firstChild;Me.unobserve(ce)});const he=xe.merge(be),Q=p.flatMap(U=>{var ce;return(ce=U.payload)!=null&&ce.fold?[]:U.children.map(Ee=>({source:U,target:Ee}))}),ge=this.g.selectAll(hn(Dx)).data(Q,U=>U.target.state.key),te=ge.exit(),Ae=ge.enter().insert("path","g").attr("class","markmap-link").attr("data-depth",U=>U.target.state.depth).attr("data-path",U=>U.target.state.path).attr("d",U=>{const ce=k(U.target),Ee=[ce.x+ce.width,ce.y+ce.height];return jl({source:Ee,target:Ee})}).attr("stroke-width",0).merge(ge);this.svg.style("--markmap-max-width",i?`${i}px`:null),await new Promise(requestAnimationFrame),this._relayout(),I=I.data(N?[this._getHighlightRect(N)]:[]).join("rect"),this.transition(I).attr("x",U=>U.x).attr("y",U=>U.y).attr("width",U=>U.width).attr("height",U=>U.height),D.attr("transform",U=>{const ce=k(U);return`translate(${ce.x+ce.width-U.state.rect.width},${ce.y+ce.height-U.state.rect.height})`}),this.transition(M).attr("transform",U=>{const ce=A(U),Ee=ce.x+ce.width-U.state.rect.width,et=ce.y+ce.height-U.state.rect.height;return`translate(${Ee},${et})`}).remove(),this.transition(B).attr("transform",U=>`translate(${U.state.rect.x},${U.state.rect.y})`);const Le=M.selectAll(hn("line"));this.transition(Le).attr("x1",U=>U.state.rect.width).attr("stroke-width",0),j.attr("x1",U=>U.state.rect.width).attr("x2",U=>U.state.rect.width),W.attr("y1",U=>U.state.rect.height+o(U)/2).attr("y2",U=>U.state.rect.height+o(U)/2),this.transition(W).attr("x1",-1).attr("x2",U=>U.state.rect.width+2).attr("stroke",U=>s(U)).attr("stroke-width",o);const ve=M.selectAll(hn("circle"));this.transition(ve).attr("r",0).attr("stroke-width",0),pe.attr("cx",U=>U.state.rect.width).attr("cy",U=>U.state.rect.height+o(U)/2),this.transition(pe).attr("r",6).attr("stroke-width","1.5"),this.transition(G).style("opacity",0),he.attr("width",U=>Math.max(0,U.state.rect.width-n*2)).attr("height",U=>U.state.rect.height),this.transition(he).style("opacity",1),this.transition(te).attr("d",U=>{const ce=A(U.target),Ee=[ce.x+ce.width,ce.y+ce.height+o(U.target)/2];return jl({source:Ee,target:Ee})}).attr("stroke-width",0).remove(),this.transition(Ae).attr("stroke",U=>s(U.target)).attr("stroke-width",U=>o(U.target)).attr("d",U=>{const ce=U.source,Ee=U.target,et=[ce.state.rect.x+ce.state.rect.width,ce.state.rect.y+ce.state.rect.height+o(ce)/2],Et=[Ee.state.rect.x,Ee.state.rect.y+Ee.state.rect.height+o(Ee)/2];return jl({source:et,target:Et})}),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,w=d-u,v=Math.min(r/p*i,s/w*i,t),x=Co.translate((r-p*v)/2-o*v,(s-w*v)/2-u*v).scale(v);return this.transition(this.svg).call(this.zoom.transform,x).end().catch(us)}findElement(t){let n;return this.g.selectAll(hn(Vl)).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=ls(i),[h,d]=[s.state.rect.x,s.state.rect.x+s.state.rect.width+2].map(I=>I*u.k+u.x),[p,w]=[s.state.rect.y,s.state.rect.y+s.state.rect.height].map(I=>I*u.k+u.y),v={left:0,right:0,top:0,bottom:0,...n},x=[v.left-h,o.width-v.right-d],k=[v.top-p,o.height-v.bottom-w],A=x[0]*x[1]>0?id(x,Math.abs)/u.k:0,N=k[0]*k[1]>0?id(k,Math.abs)/u.k:0;if(A||N){const I=u.translate(A,N);return this.transition(this.svg).call(this.zoom.transform,I).end().catch(us)}}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=ls(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},w=(p.left+o.width-p.right)/2,v=(p.top+o.height-p.bottom)/2,x=(w-h)/u.k,k=(v-d)/u.k;if(x||k){const A=u.translate(x,k);return this.transition(this.svg).call(this.zoom.transform,A).end().catch(us)}}async rescale(t){const n=this.svg.node(),{width:r,height:s}=n.getBoundingClientRect(),i=r/2,o=s/2,u=ls(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(us)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this._disposeList.forEach(t=>{t()})}static create(t,n,r=null){const s=new si(t,n);return r&&s.setData(r).then(()=>{s.fit()}),s}}const $x={class:"mindmap-container"},Bx={class:"mindmap-actions"},Fx={key:0,class:"mindmap-subtitle"},zx={key:0,class:"empty-state"},qx=_r({__name:"MindMapRenderer",props:{content:{type:String,default:""}},setup(e){const t=e,n=$t(null);let r=null;const s=new r9,i=$t(1),o=Qt(()=>t.content?(t.content.match(/^#{1,6}\s+/gm)||[]).length:0),u=async()=>{if(!(!t.content||!n.value))try{console.log("Initializing markmap with content:",t.content.substring(0,100)+"...");const{root:k,features:A}=s.transform(t.content);console.log("Transformed root:",k);const{styles:N,scripts:I}=s.getAssets();console.log("Styles:",N),console.log("Scripts:",I),N&&m3(N),I&&Y0(I),await cg(),console.log("SVG ref:",n.value),console.log("Markmap.create:",si.create),r?(console.log("Updating existing instance"),typeof r.setData=="function"?(r.setData(k),r.fit()):(console.error("mmInstance does not have setData method:",r),r=si.create(n.value,{autoFit:!0,fitRatio:.9,initialExpandLevel:-1},k),console.log("Created new instance after setData error:",r))):(console.log("Creating new instance"),r=si.create(n.value,{autoFit:!0,fitRatio:.9,initialExpandLevel:-1},k),console.log("Created instance using Markmap.create:",r),console.log("mmInstance methods:",Object.keys(r)))}catch(k){console.error("Error initializing markmap:",k),r=null}};Da(()=>t.content,()=>{u()}),Ed(()=>{u(),window.addEventListener("resize",h)}),Td(()=>{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=(k="svg")=>{if(n.value){if(r&&r.fit(),k==="svg"){const A=n.value,N=A.cloneNode(!0);N.getAttribute("xmlns")||N.setAttribute("xmlns","http://www.w3.org/2000/svg");const I=A.getBoundingClientRect();N.setAttribute("width",I.width.toString()),N.setAttribute("height",I.height.toString());const V=new XMLSerializer().serializeToString(N),D=new Blob([V],{type:"image/svg+xml"}),M=URL.createObjectURL(D),B=document.createElement("a");B.href=M,B.download=`mindmap_${new Date().getTime()}.svg`,document.body.appendChild(B),B.click(),document.body.removeChild(B),URL.revokeObjectURL(M)}else if(k==="png"){const A=n.value,N=A.cloneNode(!0);N.getAttribute("xmlns")||N.setAttribute("xmlns","http://www.w3.org/2000/svg");const I=A.getBoundingClientRect();N.setAttribute("width",I.width.toString()),N.setAttribute("height",I.height.toString());const V=new XMLSerializer().serializeToString(N),D=document.createElement("canvas"),M=D.getContext("2d");if(!M)return;D.width=I.width,D.height=I.height;const B=new Image;B.onload=()=>{M.drawImage(B,0,0),D.toBlob(P=>{if(P){const j=URL.createObjectURL(P),W=document.createElement("a");W.href=j,W.download=`mindmap_${new Date().getTime()}.png`,document.body.appendChild(W),W.click(),document.body.removeChild(W),URL.revokeObjectURL(j)}},"image/png")},B.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(V)}}},p=k=>{(k==="svg"||k==="png")&&d(k)},w=()=>{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)},x=k=>{k.preventDefault();const A=k.deltaY>0?-.1:.1;(i.value>.5||A>0)&&(i.value<2||A<0)&&(i.value+=A,v())};return(k,A)=>{const N=Pt("el-icon"),I=Pt("el-button"),V=Pt("el-dropdown-item"),D=Pt("el-dropdown-menu"),M=Pt("el-dropdown");return gt(),It("div",$x,[ze("div",Bx,[e.content?(gt(),It("span",Fx,"已生成 "+dn(o.value)+" 个节点",1)):Ra("",!0),Ne(M,{onCommand:p},{dropdown:Ge(()=>[Ne(D,null,{default:Ge(()=>[Ne(V,{command:"svg"},{default:Ge(()=>[...A[1]||(A[1]=[gr("SVG 格式",-1)])]),_:1}),Ne(V,{command:"png"},{default:Ge(()=>[...A[2]||(A[2]=[gr("PNG 格式",-1)])]),_:1})]),_:1})]),default:Ge(()=>[Ne(I,{type:"primary",size:"small",class:"action-button primary"},{icon:Ge(()=>[Ne(N,null,{default:Ge(()=>[Ne(Ct(og))]),_:1})]),default:Ge(()=>[A[0]||(A[0]=gr(" 下载 ",-1)),Ne(N,{class:"el-icon--right"},{default:Ge(()=>[Ne(Ct(ag))]),_:1})]),_:1})]),_:1}),Ne(I,{type:"default",size:"small",onClick:w,class:"action-button secondary"},{icon:Ge(()=>[Ne(N,null,{default:Ge(()=>[Ne(Ct(lg))]),_:1})]),default:Ge(()=>[A[3]||(A[3]=gr(" 重置视图 ",-1))]),_:1})]),ze("div",{class:"mindmap-content",onWheel:Zl(x,["prevent"])},[e.content?(gt(),It("svg",{key:1,ref_key:"svgRef",ref:n,class:"markmap-svg"},null,512)):(gt(),It("div",zx,[Ne(N,{class:"empty-icon"},{default:Ge(()=>[Ne(Ct(Nd))]),_:1}),A[4]||(A[4]=ze("p",{class:"empty-text"},"暂无思维导图内容",-1)),A[5]||(A[5]=ze("p",{class:"empty-subtext"},"请先上传并转换文档",-1))]))],32)])}}}),Ux=lo(qx,[["__scopeId","data-v-2bfafa87"]]);function Sp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hx}=Object.prototype,{getPrototypeOf:$c}=Object,{iterator:Io,toStringTag:Ap}=Symbol,Oo=(e=>t=>{const n=Hx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ln=e=>(e=e.toLowerCase(),t=>Oo(t)===e),Mo=e=>t=>typeof t===e,{isArray:Rs}=Array,Es=Mo("undefined");function Ci(e){return e!==null&&!Es(e)&&e.constructor!==null&&!Es(e.constructor)&&on(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ep=Ln("ArrayBuffer");function Vx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ep(e.buffer),t}const jx=Mo("string"),on=Mo("function"),Tp=Mo("number"),Ii=e=>e!==null&&typeof e=="object",Wx=e=>e===!0||e===!1,Oa=e=>{if(Oo(e)!=="object")return!1;const t=$c(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ap in e)&&!(Io in e)},Gx=e=>{if(!Ii(e)||Ci(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Kx=Ln("Date"),Xx=Ln("File"),Yx=e=>!!(e&&typeof e.uri<"u"),Jx=e=>e&&typeof e.getParts<"u",Qx=Ln("Blob"),Zx=Ln("FileList"),ek=e=>Ii(e)&&on(e.pipe);function tk(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ad=tk(),od=typeof ad.FormData<"u"?ad.FormData:void 0,nk=e=>{let t;return e&&(od&&e instanceof od||on(e.append)&&((t=Oo(e))==="formdata"||t==="object"&&on(e.toString)&&e.toString()==="[object FormData]"))},rk=Ln("URLSearchParams"),[sk,ik,ak,ok]=["ReadableStream","Request","Response","Headers"].map(Ln),lk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Rs(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Ci(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 Np(e,t){if(Ci(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 Ur=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cp=e=>!Es(e)&&e!==Ur;function $0(){const{caseless:e,skipUndefined:t}=Cp(this)&&this||{},n={},r=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=e&&Np(n,i)||i;Oa(n[o])&&Oa(s)?n[o]=$0(n[o],s):Oa(s)?n[o]=$0({},s):Rs(s)?n[o]=s.slice():(!t||!Es(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Oi(arguments[s],r);return n}const ck=(e,t,n,{allOwnKeys:r}={})=>(Oi(t,(s,i)=>{n&&on(s)?Object.defineProperty(e,i,{value:Sp(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),uk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fk=(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)},hk=(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&&$c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dk=(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},mk=e=>{if(!e)return null;if(Rs(e))return e;let t=e.length;if(!Tp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$c(Uint8Array)),gk=(e,t)=>{const r=(e&&e[Io]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},bk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yk=Ln("HTMLFormElement"),wk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),ld=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vk=Ln("RegExp"),Ip=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Oi(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},_k=e=>{Ip(e,(t,n)=>{if(on(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(on(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+"'")})}})},xk=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Rs(e)?r(e):r(String(e).split(t)),n},kk=()=>{},Sk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ak(e){return!!(e&&on(e.append)&&e[Ap]==="FormData"&&e[Io])}const Ek=e=>{const t=new Array(10),n=(r,s)=>{if(Ii(r)){if(t.indexOf(r)>=0)return;if(Ci(r))return r;if(!("toJSON"in r)){t[s]=r;const i=Rs(r)?[]:{};return Oi(r,(o,u)=>{const h=n(o,s+1);!Es(h)&&(i[u]=h)}),t[s]=void 0,i}}return r};return n(e,0)},Tk=Ln("AsyncFunction"),Nk=e=>e&&(Ii(e)||on(e))&&on(e.then)&&on(e.catch),Op=((e,t)=>e?setImmediate:t?((n,r)=>(Ur.addEventListener("message",({source:s,data:i})=>{s===Ur&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Ur.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",on(Ur.postMessage)),Ck=typeof queueMicrotask<"u"?queueMicrotask.bind(Ur):typeof process<"u"&&process.nextTick||Op,Ik=e=>e!=null&&on(e[Io]),X={isArray:Rs,isArrayBuffer:Ep,isBuffer:Ci,isFormData:nk,isArrayBufferView:Vx,isString:jx,isNumber:Tp,isBoolean:Wx,isObject:Ii,isPlainObject:Oa,isEmptyObject:Gx,isReadableStream:sk,isRequest:ik,isResponse:ak,isHeaders:ok,isUndefined:Es,isDate:Kx,isFile:Xx,isReactNativeBlob:Yx,isReactNative:Jx,isBlob:Qx,isRegExp:vk,isFunction:on,isStream:ek,isURLSearchParams:rk,isTypedArray:pk,isFileList:Zx,forEach:Oi,merge:$0,extend:ck,trim:lk,stripBOM:uk,inherits:fk,toFlatObject:hk,kindOf:Oo,kindOfTest:Ln,endsWith:dk,toArray:mk,forEachEntry:gk,matchAll:bk,isHTMLForm:yk,hasOwnProperty:ld,hasOwnProp:ld,reduceDescriptors:Ip,freezeMethods:_k,toObjectSet:xk,toCamelCase:wk,noop:kk,toFiniteNumber:Sk,findKey:Np,global:Ur,isContextDefined:Cp,isSpecCompliantForm:Ak,toJSONObject:Ek,isAsyncFn:Tk,isThenable:Nk,setImmediate:Op,asap:Ck,isIterable:Ik};let Oe=class Mp extends Error{static from(t,n,r,s,i,o){const u=new Mp(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}}};Oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Oe.ERR_BAD_OPTION="ERR_BAD_OPTION";Oe.ECONNABORTED="ECONNABORTED";Oe.ETIMEDOUT="ETIMEDOUT";Oe.ERR_NETWORK="ERR_NETWORK";Oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Oe.ERR_DEPRECATED="ERR_DEPRECATED";Oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Oe.ERR_CANCELED="ERR_CANCELED";Oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Oe.ERR_INVALID_URL="ERR_INVALID_URL";const Ok=null;function B0(e){return X.isPlainObject(e)||X.isArray(e)}function Lp(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Gl(e,t,n){return e?e.concat(t).map(function(s,i){return s=Lp(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Mk(e){return X.isArray(e)&&!e.some(B0)}const Lk=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function Lo(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,N){return!X.isUndefined(N[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(k){if(k===null)return"";if(X.isDate(k))return k.toISOString();if(X.isBoolean(k))return k.toString();if(!h&&X.isBlob(k))throw new Oe("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(k)||X.isTypedArray(k)?h&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function p(k,A,N){let I=k;if(X.isReactNative(t)&&X.isReactNativeBlob(k))return t.append(Gl(N,A,i),d(k)),!1;if(k&&!N&&typeof k=="object"){if(X.endsWith(A,"{}"))A=r?A:A.slice(0,-2),k=JSON.stringify(k);else if(X.isArray(k)&&Mk(k)||(X.isFileList(k)||X.endsWith(A,"[]"))&&(I=X.toArray(k)))return A=Lp(A),I.forEach(function(D,M){!(X.isUndefined(D)||D===null)&&t.append(o===!0?Gl([A],M,i):o===null?A:A+"[]",d(D))}),!1}return B0(k)?!0:(t.append(Gl(N,A,i),d(k)),!1)}const w=[],v=Object.assign(Lk,{defaultVisitor:p,convertValue:d,isVisitable:B0});function x(k,A){if(!X.isUndefined(k)){if(w.indexOf(k)!==-1)throw Error("Circular reference detected in "+A.join("."));w.push(k),X.forEach(k,function(I,V){(!(X.isUndefined(I)||I===null)&&s.call(t,I,X.isString(V)?V.trim():V,A,v))===!0&&x(I,A?A.concat(V):[V])}),w.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return x(e),t}function cd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bc(e,t){this._pairs=[],e&&Lo(e,this,t)}const Dp=Bc.prototype;Dp.append=function(t,n){this._pairs.push([t,n])};Dp.toString=function(t){const n=t?function(r){return t.call(this,r,cd)}:cd;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Dk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Rp(e,t,n){if(!t)return e;const r=n&&n.encode||Dk,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 Bc(t,s).toString(r),o){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ud{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 Fc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Rk=typeof URLSearchParams<"u"?URLSearchParams:Bc,Pk=typeof FormData<"u"?FormData:null,$k=typeof Blob<"u"?Blob:null,Bk={isBrowser:!0,classes:{URLSearchParams:Rk,FormData:Pk,Blob:$k},protocols:["http","https","file","blob","url","data"]},zc=typeof window<"u"&&typeof document<"u",F0=typeof navigator=="object"&&navigator||void 0,Fk=zc&&(!F0||["ReactNative","NativeScript","NS"].indexOf(F0.product)<0),zk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qk=zc&&window.location.href||"http://localhost",Uk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zc,hasStandardBrowserEnv:Fk,hasStandardBrowserWebWorkerEnv:zk,navigator:F0,origin:qk},Symbol.toStringTag,{value:"Module"})),Vt={...Uk,...Bk};function Hk(e,t){return Lo(e,new Vt.classes.URLSearchParams,{visitor:function(n,r,s,i){return Vt.isNode&&X.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Vk(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jk(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 Pp(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]=jk(s[o])),!u)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(r,s)=>{t(Vk(r),s,n,0)}),n}return null}function Wk(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 Mi={transitional:Fc,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(Pp(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 Hk(t,this.formSerializer).toString();if((u=X.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Lo(u?{"files[]":t}:t,h&&new h,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Wk(t)):t}],transformResponse:[function(t){const n=this.transitional||Mi.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"?Oe.from(u,Oe.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:Vt.classes.FormData,Blob:Vt.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=>{Mi.headers[e]={}});const Gk=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"]),Kk=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]&&Gk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fd=Symbol("internals");function Gs(e){return e&&String(e).trim().toLowerCase()}function Ma(e){return e===!1||e==null?e:X.isArray(e)?e.map(Ma):String(e)}function Xk(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 Yk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kl(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 Jk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Qk(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 ln=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(u,h,d){const p=Gs(h);if(!p)throw new Error("header name must be a non-empty string");const w=X.findKey(s,p);(!w||s[w]===void 0||d===!0||d===void 0&&s[w]!==!1)&&(s[w||h]=Ma(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())&&!Yk(t))o(Kk(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=Gs(t),t){const r=X.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Xk(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=Gs(t),t){const r=X.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Kl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Gs(o),o){const u=X.findKey(r,o);u&&(!n||Kl(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||Kl(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]=Ma(s),delete n[i];return}const u=t?Jk(i):String(i).trim();u!==i&&delete n[i],n[u]=Ma(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[fd]=this[fd]={accessors:{}}).accessors,s=this.prototype;function i(o){const u=Gs(o);r[u]||(Qk(s,o),r[u]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}};ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});X.freezeMethods(ln);function Xl(e,t){const n=this||Mi,r=t||n,s=ln.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 $p(e){return!!(e&&e.__CANCEL__)}let Li=class extends Oe{constructor(t,n,r){super(t??"canceled",Oe.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Bp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Zk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eS(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 w=i,v=0;for(;w!==s;)v+=n[w++],w=w%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),d-o<t)return;const x=p&&d-p;return x?Math.round(v*1e3/x):void 0}}function tS(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(),w=p-n;w>=r?o(d,p):(s=d,i||(i=setTimeout(()=>{i=null,o(s)},r-w)))},()=>s&&o(s)]}const ro=(e,t,n=3)=>{let r=0;const s=eS(50,250);return tS(i=>{const o=i.loaded,u=i.lengthComputable?i.total:void 0,h=o-r,d=s(h),p=o<=u;r=o;const w={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(w)},n)},hd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dd=e=>(...t)=>X.asap(()=>e(...t)),nS=Vt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vt.origin),Vt.navigator&&/(msie|trident)/i.test(Vt.navigator.userAgent)):()=>!0,rS=Vt.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 sS(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fp(e,t,n){let r=!sS(t);return e&&(r||n==!1)?iS(e,t):t}const md=e=>e instanceof ln?{...e}:e;function Xr(e,t){t=t||{};const n={};function r(d,p,w,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,w,v){if(X.isUndefined(p)){if(!X.isUndefined(d))return r(void 0,d,w,v)}else return r(d,p,w,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,w){if(w in t)return r(d,p);if(w 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,w)=>s(md(d),md(p),w,!0)};return X.forEach(Object.keys({...e,...t}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const w=X.hasOwnProp(h,p)?h[p]:s,v=w(e[p],t[p],p);X.isUndefined(v)&&w!==u||(n[p]=v)}),n}const zp=e=>{const t=Xr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:u}=t;if(t.headers=o=ln.from(o),t.url=Rp(Fp(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(Vt.hasStandardBrowserEnv||Vt.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,w])=>{d.includes(p.toLowerCase())&&o.set(p,w)})}}if(Vt.hasStandardBrowserEnv&&(r&&X.isFunction(r)&&(r=r(t)),r||r!==!1&&nS(t.url))){const h=s&&i&&rS.read(i);h&&o.set(s,h)}return t},aS=typeof XMLHttpRequest<"u",oS=aS&&function(e){return new Promise(function(n,r){const s=zp(e);let i=s.data;const o=ln.from(s.headers).normalize();let{responseType:u,onUploadProgress:h,onDownloadProgress:d}=s,p,w,v,x,k;function A(){x&&x(),k&&k(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let N=new XMLHttpRequest;N.open(s.method.toUpperCase(),s.url,!0),N.timeout=s.timeout;function I(){if(!N)return;const D=ln.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),B={data:!u||u==="text"||u==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:D,config:e,request:N};Bp(function(j){n(j),A()},function(j){r(j),A()},B),N=null}"onloadend"in N?N.onloadend=I:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(I)},N.onabort=function(){N&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,N)),N=null)},N.onerror=function(M){const B=M&&M.message?M.message:"Network Error",P=new Oe(B,Oe.ERR_NETWORK,e,N);P.event=M||null,r(P),N=null},N.ontimeout=function(){let M=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const B=s.transitional||Fc;s.timeoutErrorMessage&&(M=s.timeoutErrorMessage),r(new Oe(M,B.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,N)),N=null},i===void 0&&o.setContentType(null),"setRequestHeader"in N&&X.forEach(o.toJSON(),function(M,B){N.setRequestHeader(B,M)}),X.isUndefined(s.withCredentials)||(N.withCredentials=!!s.withCredentials),u&&u!=="json"&&(N.responseType=s.responseType),d&&([v,k]=ro(d,!0),N.addEventListener("progress",v)),h&&N.upload&&([w,x]=ro(h),N.upload.addEventListener("progress",w),N.upload.addEventListener("loadend",x)),(s.cancelToken||s.signal)&&(p=D=>{N&&(r(!D||D.type?new Li(null,e,N):D),N.abort(),N=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const V=Zk(s.url);if(V&&Vt.protocols.indexOf(V)===-1){r(new Oe("Unsupported protocol "+V+":",Oe.ERR_BAD_REQUEST,e));return}N.send(i||null)})},lS=(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 Oe?p:new Li(p instanceof Error?p.message:p))}};let o=t&&setTimeout(()=>{o=null,i(new Oe(`timeout of ${t}ms exceeded`,Oe.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}},cS=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},uS=async function*(e,t){for await(const n of fS(e))yield*cS(n,t)},fS=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()}},pd=(e,t,n,r)=>{const s=uS(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 w=p.byteLength;if(n){let v=i+=w;n(v)}h.enqueue(new Uint8Array(p))}catch(d){throw u(d),d}},cancel(h){return u(h),s.return()}},{highWaterMark:2})},gd=64*1024,{isFunction:_a}=X,hS=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:bd,TextEncoder:yd}=X.global,wd=(e,...t)=>{try{return!!e(...t)}catch{return!1}},dS=e=>{e=X.merge.call({skipUndefined:!0},hS,e);const{fetch:t,Request:n,Response:r}=e,s=t?_a(t):typeof fetch=="function",i=_a(n),o=_a(r);if(!s)return!1;const u=s&&_a(bd),h=s&&(typeof yd=="function"?(k=>A=>k.encode(A))(new yd):async k=>new Uint8Array(await new n(k).arrayBuffer())),d=i&&u&&wd(()=>{let k=!1;const A=new n(Vt.origin,{body:new bd,method:"POST",get duplex(){return k=!0,"half"}}).headers.has("Content-Type");return k&&!A}),p=o&&u&&wd(()=>X.isReadableStream(new r("").body)),w={stream:p&&(k=>k.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!w[k]&&(w[k]=(A,N)=>{let I=A&&A[k];if(I)return I.call(A);throw new Oe(`Response type '${k}' is not supported`,Oe.ERR_NOT_SUPPORT,N)})});const v=async k=>{if(k==null)return 0;if(X.isBlob(k))return k.size;if(X.isSpecCompliantForm(k))return(await new n(Vt.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if(X.isArrayBufferView(k)||X.isArrayBuffer(k))return k.byteLength;if(X.isURLSearchParams(k)&&(k=k+""),X.isString(k))return(await h(k)).byteLength},x=async(k,A)=>{const N=X.toFiniteNumber(k.getContentLength());return N??v(A)};return async k=>{let{url:A,method:N,data:I,signal:V,cancelToken:D,timeout:M,onDownloadProgress:B,onUploadProgress:P,responseType:j,headers:W,withCredentials:Y="same-origin",fetchOptions:pe}=zp(k),Me=t||fetch;j=j?(j+"").toLowerCase():"text";let be=lS([V,D&&D.toAbortSignal()],M),xe=null;const G=be&&be.unsubscribe&&(()=>{be.unsubscribe()});let he;try{if(P&&d&&N!=="get"&&N!=="head"&&(he=await x(W,I))!==0){let ve=new n(A,{method:"POST",body:I,duplex:"half"}),U;if(X.isFormData(I)&&(U=ve.headers.get("content-type"))&&W.setContentType(U),ve.body){const[ce,Ee]=hd(he,ro(dd(P)));I=pd(ve.body,gd,ce,Ee)}}X.isString(Y)||(Y=Y?"include":"omit");const Q=i&&"credentials"in n.prototype,ge={...pe,signal:be,method:N.toUpperCase(),headers:W.normalize().toJSON(),body:I,duplex:"half",credentials:Q?Y:void 0};xe=i&&new n(A,ge);let te=await(i?Me(xe,pe):Me(A,ge));const Ae=p&&(j==="stream"||j==="response");if(p&&(B||Ae&&G)){const ve={};["status","statusText","headers"].forEach(et=>{ve[et]=te[et]});const U=X.toFiniteNumber(te.headers.get("content-length")),[ce,Ee]=B&&hd(U,ro(dd(B),!0))||[];te=new r(pd(te.body,gd,ce,()=>{Ee&&Ee(),G&&G()}),ve)}j=j||"text";let Le=await w[X.findKey(w,j)||"text"](te,k);return!Ae&&G&&G(),await new Promise((ve,U)=>{Bp(ve,U,{data:Le,headers:ln.from(te.headers),status:te.status,statusText:te.statusText,config:k,request:xe})})}catch(Q){throw G&&G(),Q&&Q.name==="TypeError"&&/Load failed|fetch/i.test(Q.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,k,xe,Q&&Q.response),{cause:Q.cause||Q}):Oe.from(Q,Q&&Q.code,k,xe,Q&&Q.response)}}},mS=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=mS;for(;u--;)h=i[u],d=p.get(h),d===void 0&&p.set(h,d=u?new Map:dS(t)),p=d;return d};qp();const qc={http:Ok,xhr:oS,fetch:{get:qp}};X.forEach(qc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vd=e=>`- ${e}`,pS=e=>X.isFunction(e)||e===null||e===!1;function gS(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,!pS(r)&&(s=qc[(u=String(r)).toLowerCase()],s===void 0))throw new Oe(`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(vd).join(`
|
||
`):" "+vd(o[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return s}const Up={getAdapter:gS,adapters:qc};function Yl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Li(null,e)}function _d(e){return Yl(e),e.headers=ln.from(e.headers),e.data=Xl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Up.getAdapter(e.adapter||Mi.adapter,e)(e).then(function(r){return Yl(e),r.data=Xl.call(e,e.transformResponse,r),r.headers=ln.from(r.headers),r},function(r){return $p(r)||(Yl(e),r&&r.response&&(r.response.data=Xl.call(e,e.transformResponse,r.response),r.response.headers=ln.from(r.response.headers))),Promise.reject(r)})}const Hp="1.13.6",Do={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Do[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xd={};Do.transitional=function(t,n,r){function s(i,o){return"[Axios v"+Hp+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,u)=>{if(t===!1)throw new Oe(s(o," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!xd[o]&&(xd[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}};Do.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function bS(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.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 Oe("option "+i+" must be "+h,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+i,Oe.ERR_BAD_OPTION)}}const La={assertOptions:bS,validators:Do},yn=La.validators;let Vr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ud,response:new ud}}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=Xr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&La.assertOptions(r,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean),legacyInterceptorReqResOrdering:yn.transitional(yn.boolean)},!1),s!=null&&(X.isFunction(s)?n.paramsSerializer={serialize:s}:La.assertOptions(s,{encode:yn.function,serialize:yn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),La.assertOptions(n,{baseUrl:yn.spelling("baseURL"),withXsrfToken:yn.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"],k=>{delete i[k]}),n.headers=ln.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 N=n.transitional||Fc;N&&N.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,w=0,v;if(!h){const k=[_d.bind(this),void 0];for(k.unshift(...u),k.push(...d),v=k.length,p=Promise.resolve(n);w<v;)p=p.then(k[w++],k[w++]);return p}v=u.length;let x=n;for(;w<v;){const k=u[w++],A=u[w++];try{x=k(x)}catch(N){A.call(this,N);break}}try{p=_d.call(this,x)}catch(k){return Promise.reject(k)}for(w=0,v=d.length;w<v;)p=p.then(d[w++],d[w++]);return p}getUri(t){t=Xr(this.defaults,t);const n=Fp(t.baseURL,t.url,t.allowAbsoluteUrls);return Rp(n,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Vr.prototype[t]=function(n,r){return this.request(Xr(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(Xr(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Vr.prototype[t]=n(),Vr.prototype[t+"Form"]=n(!0)});let yS=class Vp{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 Li(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 Vp(function(s){t=s}),cancel:t}}};function wS(e){return function(n){return e.apply(null,n)}}function vS(e){return X.isObject(e)&&e.isAxiosError===!0}const z0={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(z0).forEach(([e,t])=>{z0[t]=e});function jp(e){const t=new Vr(e),n=Sp(Vr.prototype.request,t);return X.extend(n,Vr.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return jp(Xr(e,s))},n}const kt=jp(Mi);kt.Axios=Vr;kt.CanceledError=Li;kt.CancelToken=yS;kt.isCancel=$p;kt.VERSION=Hp;kt.toFormData=Lo;kt.AxiosError=Oe;kt.Cancel=kt.CanceledError;kt.all=function(t){return Promise.all(t)};kt.spread=wS;kt.isAxiosError=vS;kt.mergeConfig=Xr;kt.AxiosHeaders=ln;kt.formToJSON=e=>Pp(X.isHTMLForm(e)?new FormData(e):e);kt.getAdapter=Up.getAdapter;kt.HttpStatusCode=z0;kt.default=kt;const{Axios:pA,AxiosError:gA,CanceledError:bA,isCancel:yA,CancelToken:wA,VERSION:vA,all:_A,Cancel:xA,isAxiosError:kA,spread:SA,toFormData:AA,AxiosHeaders:EA,HttpStatusCode:TA,formToJSON:NA,getAdapter:CA,mergeConfig:IA}=kt,Uc=kt.create({baseURL:"/api",timeout:3e5,headers:{"Content-Type":"application/json"}});Uc.interceptors.request.use(e=>e,e=>Promise.reject(e));Uc.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 _S={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),Uc.post("/file_parse",t,{headers:{"Content-Type":"multipart/form-data"}})}};function xS(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=$t([]),t=$t(!1),n=ug({maxPages:1e3,backend:"hybrid-auto-engine",serverUrl:"http://localhost:30000",tableEnable:!0,formulaEnable:!0,language:"ch",forceOcr:!1}),r=$t(null),s=$t(!1),i=$t(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:x=>{if(!x||x.length===0)return;const k=[];for(let A=0;A<x.length;A++){const N=x[A],I=N.type;if(!I.startsWith("image/")&&I!=="application/pdf"){i.value="不支持的文件类型";continue}if(N.size>100*1024*1024){i.value="文件大小超出限制";continue}k.push(N)}e.value=k,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 k=await _S.parseDocument(x);if(k.results){const N=Object.values(k.results)[0].md_content||"",I=xS(N);r.value={markdown:N,source:I,mindmap:I}}}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 SS={class:"document-processor"},AS={class:"top-header"},ES={class:"main-content"},TS={class:"upload-section"},NS={class:"upload-content"},CS={class:"uploaded-files"},IS={class:"file-name"},OS={key:0,class:"settings-panel"},MS={class:"settings-header"},LS={class:"result-section"},DS={class:"result-content"},RS={key:0,class:"loading-container"},PS={key:1,class:"empty-state"},$S={key:2,class:"result-tab-content result-fade-in"},BS={class:"markdown-content"},FS={class:"markdown-box"},zS={class:"source-content"},qS={class:"mindmap-content"},US={class:"mindmap-box"},HS=_r({__name:"DocumentProcessor",setup(e){const{uploadedFiles:t,config:n,results:r,isProcessing:s,backendOptions:i,languageOptions:o,processDocument:u}=kS(),h=$t(!1),d=$t(null),p=$t(!1),w=$t("markdown"),v=$t(!1),x=()=>{if(h.value){const B=document.querySelector(".settings-panel");B&&(B.classList.remove("showing"),B.classList.add("hiding"),setTimeout(()=>{h.value=!1,B.classList.remove("hiding"),document.removeEventListener("click",k)},400))}else h.value=!0,setTimeout(()=>{const B=document.querySelector(".settings-panel");B&&B.classList.add("showing"),document.addEventListener("click",k)},10)},k=B=>{const P=document.querySelector(".settings-panel"),j=document.querySelector(".settings-button");P&&!P.contains(B.target)&&j&&!j.contains(B.target)&&(P.classList.remove("showing"),P.classList.add("hiding"),setTimeout(()=>{h.value=!1,P.classList.remove("hiding"),document.removeEventListener("click",k)},400))},A=B=>{console.log("Backend changed to:",B)},N=()=>{d.value&&d.value.click()},I=B=>{const P=B.target;P.files&&(Array.from(P.files).forEach(W=>{t.value.push(W)}),P.value="",v.value=!0,M())},V=B=>{var P;B.preventDefault(),p.value=!1,(P=B.dataTransfer)!=null&&P.files&&(Array.from(B.dataTransfer.files).forEach(W=>{t.value.push(W)}),v.value=!0,M())},D=B=>{t.value.splice(B,1),t.value.length===0&&(v.value=!1)},M=async()=>{await u(),w.value="mindmap"};return(B,P)=>{var be;const j=Pt("el-button"),W=Pt("el-icon"),Y=Pt("el-tab-pane"),pe=Pt("el-tabs"),Me=Pt("el-input");return gt(),It("div",SS,[ze("header",AS,[P[6]||(P[6]=ze("h2",{class:"ellipsis",title:"思维导图"},"思维导图",-1)),Ne(j,{type:"text",onClick:x,class:"settings-button"},{default:Ge(()=>[...P[5]||(P[5]=[gr(" 设置 ",-1)])]),_:1})]),ze("div",ES,[ze("div",TS,[ze("div",{class:fg(["drag-upload-area",{"drag-over":p.value,collapsed:v.value}]),onDrop:V,onDragover:P[0]||(P[0]=Zl(xe=>p.value=!0,["prevent"])),onDragleave:P[1]||(P[1]=xe=>p.value=!1),onClick:N},[sa(ze("div",NS,[Ne(W,{class:"upload-icon"},{default:Ge(()=>[Ne(Ct(hg))]),_:1}),P[7]||(P[7]=ze("div",{class:"upload-text"},"文件导入",-1)),P[8]||(P[8]=ze("div",{class:"upload-hint"},"支持PDF、Word、PNG格式文件,点击或拖拽文件至此处上传",-1))],512),[[ia,!v.value]]),ze("div",CS,[(gt(!0),It(ms,null,Jl(Ct(t),(xe,G)=>(gt(),It("div",{class:"file-item",key:G},[Ne(W,{class:"file-icon"},{default:Ge(()=>[Ne(Ct(Nd))]),_:1}),ze("span",IS,dn(xe.name),1),Ne(j,{type:"text",icon:Ct(pg),onClick:Zl(he=>D(G),["stop"]),class:"remove-button"},null,8,["icon","onClick"])]))),128))])],34),h.value?(gt(),It("div",OS,[ze("div",MS,[P[9]||(P[9]=ze("h3",{class:"settings-title"},"设置",-1)),Ne(j,{type:"text",onClick:x,class:"close-button"},{default:Ge(()=>[Ne(W,null,{default:Ge(()=>[Ne(Ct(dg))]),_:1})]),_:1})]),Ne(P5,{modelValue:Ct(n),"onUpdate:modelValue":P[2]||(P[2]=xe=>kd(n)?n.value=xe:null),"backend-options":Ct(i),"language-options":Ct(o),onBackendChange:A},null,8,["modelValue","backend-options","language-options"])])):Ra("",!0)]),ze("div",LS,[Ne(pe,{modelValue:w.value,"onUpdate:modelValue":P[3]||(P[3]=xe=>w.value=xe),class:"result-tabs"},{default:Ge(()=>[Ne(Y,{label:"Markdown 渲染",name:"markdown"}),Ne(Y,{label:"Markdown 源码",name:"source"}),Ne(Y,{label:"思维导图",name:"mindmap"})]),_:1},8,["modelValue"]),ze("div",DS,[Ct(s)?(gt(),It("div",RS,[Ne(W,{class:"loading-icon"},{default:Ge(()=>[Ne(Ct(mg))]),_:1}),P[10]||(P[10]=ze("p",{class:"loading-text"},"正在处理文档...",-1))])):Ct(r)?(gt(),It("div",$S,[sa(ze("div",BS,[ze("div",FS,[Ne(q5,{content:Ct(r).markdown||""},null,8,["content"])])],512),[[ia,w.value==="markdown"]]),sa(ze("div",zS,[Ne(Me,{modelValue:Ct(r).source,"onUpdate:modelValue":P[4]||(P[4]=xe=>Ct(r).source=xe),type:"textarea",rows:20,class:"source-textarea"},null,8,["modelValue"])],512),[[ia,w.value==="source"]]),sa(ze("div",qS,[ze("div",US,[Ne(Ux,{content:((be=Ct(r))==null?void 0:be.mindmap)||""},null,8,["content"])])],512),[[ia,w.value==="mindmap"]])])):(gt(),It("div",PS,[...P[11]||(P[11]=[ze("div",{class:"empty-icon"},null,-1),ze("p",{class:"empty-text"},"暂无转换结果",-1)])]))])])]),ze("input",{ref_key:"fileInput",ref:d,type:"file",multiple:"",accept:".pdf,.doc,.docx,.png",style:{position:"absolute",width:"0",height:"0",overflow:"hidden"},onChange:I},null,544)])}}}),VS=lo(HS,[["__scopeId","data-v-b0552bec"]]),jS={id:"app"},WS={class:"container"},GS=_r({__name:"App",setup(e){return(t,n)=>(gt(),It("div",jS,[ze("div",WS,[Ne(VS)])]))}}),KS={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:"网络连接错误"}},XS={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"}},YS=p5({legacy:!1,locale:navigator.language.includes("zh")?"zh":"en",fallbackLocale:"en",messages:{zh:KS,en:XS}}),Hc=gg(GS);Hc.use(bg);Hc.use(YS);Hc.mount("#app");
|