import{bL as fr,a7 as Ic,d as Nc,u as qc,ac as Lc,b as Oc,r as wr,C as Pc,h as Qi,ab as zc,c as Kr,a as Ee,m as ke,s as eu,k as Me,l as sr,c0 as $c,o as Wr,A as ru,J as _r,I as Cr,_ as Kn,c1 as Uc}from"./index-ff703318.js";import{r as Hc}from"./katex-83f11750.js";var it={exports:{}};/*! markmap-lib v0.14.4 | MIT License */(function(r,n){(function(i,a){a(n,Hc())})(fr,function(i,a){function c(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var p=c(a);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;tthis.revoke(t)}revoke(t){const u=this.listeners.indexOf(t);u>=0&&this.listeners.splice(u,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const u of this.listeners)u(...t)}}function v(){return v=Object.assign||function(e){for(var t=1;t=0)&&(u[o]=e[o]);return u}const x=["textContent"];function k(e){return e.replace(/[&<"]/g,t=>({"&":"&","<":"<",'"':"""})[t])}function E(e){return e.replace(/<(\/script>)/g,"\\x3c$2")}function D(e,t){const u=t?Object.entries(t).map(([l,o])=>{if(!(o==null||o===!1))return l=` ${k(l)}`,o===!0?l:`${l}="${k(o)}"`}).filter(Boolean).join(""):"";return`<${e}${u}>`}function Y(e){return``}function z(e,t,u){return t==null?D(e,u):D(e,u)+(t||"")+Y(e)}function Z(e,t){const u=t.map(l=>typeof l=="function"?l.toString():JSON.stringify(l??null)).join(",");return`(${e.toString()})(${u})`}function q(e,t){return e.map(u=>{if(u.type==="script"){const l=u.data,{textContent:o}=l,s=A(l,x);return z("script",o||"",s)}if(u.type==="iife"){const{fn:l,getParams:o}=u.data;return z("script",E(Z(l,(o==null?void 0:o(t))||[])))}return""})}function X(e){return e.map(t=>t.type==="stylesheet"?z("link",null,v({rel:"stylesheet"},t.data)):z("style",t.data))}Math.random().toString(36).slice(2,8);function ie(e,{before:t,after:u}){return function(...o){const s={args:o,thisObj:this};try{t&&t(s)}catch{}s.result=e.apply(s.thisObj,s.args);try{u&&u(s)}catch{}return s.result}}function ae(e){const t={};return function(...l){const o=`${l[0]}`;let s=t[o];return s||(s={value:e(...l)},t[o]=s),s.value}}function se(e,t,u){const l=document.createElement(e);return t&&Object.entries(t).forEach(([o,s])=>{l[o]=s}),u&&Object.entries(u).forEach(([o,s])=>{l.setAttribute(o,s)}),l}const fe=ae(e=>{document.head.append(se("link",{rel:"preload",as:"script",href:e}))});async function I(e,t){if(!e.loaded&&(e.type==="script"&&(e.loaded=new Promise((u,l)=>{var o;document.head.append(se("script",v({},e.data,{onload:u,onerror:l}))),(o=e.data)!=null&&o.src||u(void 0)}).then(()=>{e.loaded=!0})),e.type==="iife")){const{fn:u,getParams:l}=e.data;u(...(l==null?void 0:l(t))||[]),e.loaded=!0}await e.loaded}async function R(e,t){const u=e.filter(l=>{var o;return l.type==="script"&&((o=l.data)==null?void 0:o.src)});u.length>1&&u.forEach(l=>fe(l.data.src)),t=v({getMarkmap:()=>window.markmap},t);for(const l of e)await I(l,t)}const $=` Markmap `,V=["https://cdn.jsdelivr.net/npm/d3@6.7.0","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4"].map(e=>({type:"script",data:{src:e}}));function ue(e,t,u){u=d({baseJs:V},u);const{scripts:l,styles:o}=t,s=[...o?X(o):[]],f={getMarkmap:()=>window.markmap,getOptions:u.getOptions,jsonOptions:u.jsonOptions,root:e},h=[...q([...u.baseJs,...l||[],{type:"iife",data:{fn:(w,y,_,F)=>{const B=w();window.mm=B.Markmap.create("svg#mindmap",(y||B.deriveOptions)(F),_)},getParams:({getMarkmap:w,getOptions:y,root:_,jsonOptions:F})=>[w,y,_,F]}}],f)];return $.replace("",()=>s.join("")).replace("",()=>h.join(""))}var J={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},C=Object.prototype.hasOwnProperty;function b(e,t){return e?C.call(e,t):!1}function M(e){return b(J,e)?J[e]:e}var S=Object.prototype.hasOwnProperty;function L(e,t){return e?S.call(e,t):!1}function K(e){var t=[].slice.call(arguments,1);return t.forEach(function(u){if(u){if(typeof u!="object")throw new TypeError(u+"must be object");Object.keys(u).forEach(function(l){e[l]=u[l]})}}),e}var W=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function U(e){return e.indexOf("\\")<0?e:e.replace(W,"$1")}function re(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function oe(e){if(e>65535){e-=65536;var t=55296+(e>>10),u=56320+(e&1023);return String.fromCharCode(t,u)}return String.fromCharCode(e)}var ce=/&([a-z#][a-z0-9]{1,31});/gi,le=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function P(e,t){var u=0,l=M(t);return t!==l?l:t.charCodeAt(0)===35&&le.test(t)&&(u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),re(u))?oe(u):e}function G(e){return e.indexOf("&")<0?e:e.replace(ce,P)}var te=/[&<>"]/,ne=/[&<>"]/g,he={"&":"&","<":"<",">":">",'"':"""};function Fe(e){return he[e]}function ge(e){return te.test(e)?e.replace(ne,Fe):e}var O={};O.blockquote_open=function(){return`
`},O.blockquote_close=function(e,t){return"
"+me(e,t)},O.code=function(e,t){return e[t].block?"
"+ge(e[t].content)+"
"+me(e,t):""+ge(e[t].content)+""},O.fence=function(e,t,u,l,o){var s=e[t],f="",h=u.langPrefix,m="",w,y,_;if(s.params){if(w=s.params.split(/\s+/g),y=w.join(" "),L(o.rules.fence_custom,w[0]))return o.rules.fence_custom[w[0]](e,t,u,l,o);m=ge(G(U(y))),f=' class="'+h+m+'"'}return u.highlight?_=u.highlight.apply(u.highlight,[s.content].concat(w))||ge(s.content):_=ge(s.content),"
"+_+"
"+me(e,t)},O.fence_custom={},O.heading_open=function(e,t){return""},O.heading_close=function(e,t){return" `},O.hr=function(e,t,u){return(u.xhtmlOut?"
":"
")+me(e,t)},O.bullet_list_open=function(){return`
    `},O.bullet_list_close=function(e,t){return"
"+me(e,t)},O.list_item_open=function(){return"
  • "},O.list_item_close=function(){return`
  • `},O.ordered_list_open=function(e,t){var u=e[t],l=u.order>1?' start="'+u.order+'"':"";return" `},O.ordered_list_close=function(e,t){return""+me(e,t)},O.paragraph_open=function(e,t){return e[t].tight?"":"

    "},O.paragraph_close=function(e,t){var u=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"

    ")+(u?me(e,t):"")},O.link_open=function(e,t,u){var l=e[t].title?' title="'+ge(G(e[t].title))+'"':"",o=u.linkTarget?' target="'+u.linkTarget+'"':"";return'"},O.link_close=function(){return""},O.image=function(e,t,u){var l=' src="'+ge(e[t].src)+'"',o=e[t].title?' title="'+ge(G(e[t].title))+'"':"",s=' alt="'+(e[t].alt?ge(G(U(e[t].alt))):"")+'"',f=u.xhtmlOut?" /":"";return""},O.table_open=function(){return` `},O.table_close=function(){return`
    `},O.thead_open=function(){return` `},O.thead_close=function(){return` `},O.tbody_open=function(){return` `},O.tbody_close=function(){return` `},O.tr_open=function(){return""},O.tr_close=function(){return` `},O.th_open=function(e,t){var u=e[t];return""},O.th_close=function(){return""},O.td_open=function(e,t){var u=e[t];return""},O.td_close=function(){return""},O.strong_open=function(){return""},O.strong_close=function(){return""},O.em_open=function(){return""},O.em_close=function(){return""},O.del_open=function(){return""},O.del_close=function(){return""},O.ins_open=function(){return""},O.ins_close=function(){return""},O.mark_open=function(){return""},O.mark_close=function(){return""},O.sub=function(e,t){return""+ge(e[t].content)+""},O.sup=function(e,t){return""+ge(e[t].content)+""},O.hardbreak=function(e,t,u){return u.xhtmlOut?`
    `:`
    `},O.softbreak=function(e,t,u){return u.breaks?u.xhtmlOut?`
    `:`
    `:` `},O.text=function(e,t){return ge(e[t].content)},O.htmlblock=function(e,t){return e[t].content},O.htmltag=function(e,t){return e[t].content},O.abbr_open=function(e,t){return''},O.abbr_close=function(){return""},O.footnote_ref=function(e,t){var u=Number(e[t].id+1).toString(),l="fnref"+u;return e[t].subId>0&&(l+=":"+e[t].subId),'['+u+"]"},O.footnote_block_open=function(e,t,u){var l=u.xhtmlOut?`
    `:`
    `;return l+`
      `},O.footnote_block_close=function(){return`
    `},O.footnote_open=function(e,t){var u=Number(e[t].id+1).toString();return'
  • '},O.footnote_close=function(){return`
  • `},O.footnote_anchor=function(e,t){var u=Number(e[t].id+1).toString(),l="fnref"+u;return e[t].subId>0&&(l+=":"+e[t].subId),' '},O.dl_open=function(){return`
    `},O.dt_open=function(){return"
    "},O.dd_open=function(){return"
    "},O.dl_close=function(){return`
    `},O.dt_close=function(){return` `},O.dd_close=function(){return` `};function Be(e,t){return++t>=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?Be(e,t+2):t}var me=O.getBreak=function(t,u){return u=Be(t,u),u"u"&&(l.abbreviations[":"+m]=w),f)}function To(e){var t=e.tokens,u,l,o,s;if(!e.inlineMode){for(u=1,l=t.length-1;u1)||u===41&&(l--,l<0))break;t++}return s===t||(o=U(e.src.slice(s,t)),!e.parser.validateLink(o))?!1:(e.linkContent=o,e.pos=t,!0)}function Bt(e,t){var u,l=t,o=e.posMax,s=e.src.charCodeAt(t);if(s!==34&&s!==39&&s!==40)return!1;for(t++,s===40&&(s=41);t"u"&&(l.references[F]={title:_,href:y}),f)}function Ro(e){var t=e.tokens,u,l,o,s;if(e.env.references=e.env.references||{},!e.inlineMode){for(u=1,l=t.length-1;u0?f[t].count:1,l=0;l=0;t--)if(s=o[t],s.type==="text"){for(m=0,f=s.content,y.lastIndex=0,w=s.level,h=[];_=y.exec(f);)y.lastIndex>m&&h.push({type:"text",content:f.slice(m,_.index+_[1].length),level:w}),h.push({type:"abbr_open",title:e.env.abbreviations[":"+_[2]],level:w++}),h.push({type:"text",content:_[2],level:w}),h.push({type:"abbr_close",level:--w}),m=y.lastIndex-_[3].length;h.length&&(m=0;s--)if(e.tokens[s].type==="inline")for(o=e.tokens[s].children,t=o.length-1;t>=0;t--)u=o[t],u.type==="text"&&(l=u.content,l=zo(l),Lo.test(l)&&(l=l.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),u.content=l)}}var Uo=/['"]/,Rt=/['"]/g,Ho=/[-\s()\[\]]/,It="’";function Nt(e,t){return t<0||t>=e.length?!1:!Ho.test(e[t])}function tr(e,t,u){return e.substr(0,t)+u+e.substr(t+1)}function jo(e){var t,u,l,o,s,f,h,m,w,y,_,F,B,T,N,j,Q;if(e.options.typographer){for(Q=[],N=e.tokens.length-1;N>=0;N--)if(e.tokens[N].type==="inline"){for(j=e.tokens[N].children,Q.length=0,t=0;t=0&&!(Q[B].level<=h);B--);Q.length=B+1,l=u.content,s=0,f=l.length;e:for(;s=0&&(y=Q[B],!(Q[B].level=this.eMarks[t]},We.prototype.skipEmptyLines=function(t){for(var u=this.lineMax;tl;)if(u!==this.src.charCodeAt(--t))return t+1;return t},We.prototype.getLines=function(t,u,l,o){var s,f,h,m,w,y=t;if(t>=u)return"";if(y+1===u)return f=this.bMarks[y]+Math.min(this.tShift[y],l),h=o?this.eMarks[y]+1:this.eMarks[y],this.src.slice(f,h);for(m=new Array(u-t),s=0;yl&&(w=l),w<0&&(w=0),f=this.bMarks[y]+w,y+1=4){l++,o=l;continue}break}return e.line=l,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}function Go(e,t,u,l){var o,s,f,h,m,w=!1,y=e.bMarks[t]+e.tShift[t],_=e.eMarks[t];if(y+3>_||(o=e.src.charCodeAt(y),o!==126&&o!==96)||(m=y,y=e.skipChars(y,o),s=y-m,s<3)||(f=e.src.slice(y,_).trim(),f.indexOf("`")>=0))return!1;if(l)return!0;for(h=t;h++,!(h>=u||(y=m=e.bMarks[h]+e.tShift[h],_=e.eMarks[h],y<_&&e.tShift[h]=4)&&(y=e.skipChars(y,o),!(y-mj||e.src.charCodeAt(N++)!==62||e.level>=e.options.maxNesting)return!1;if(l)return!0;for(e.src.charCodeAt(N)===32&&N++,m=e.blkIndent,e.blkIndent=0,h=[e.bMarks[t]],e.bMarks[t]=N,N=N=j,f=[e.tShift[t]],e.tShift[t]=N-e.bMarks[t],_=e.parser.ruler.getRules("blockquote"),o=t+1;o=j));o++){if(e.src.charCodeAt(N++)===62){e.src.charCodeAt(N)===32&&N++,h.push(e.bMarks[o]),e.bMarks[o]=N,N=N=j,f.push(e.tShift[o]),e.tShift[o]=N-e.bMarks[o];continue}if(s)break;for(T=!1,F=0,B=_.length;Fm||(o=e.src.charCodeAt(h++),o!==42&&o!==45&&o!==95))return!1;for(s=1;h=o||(u=e.src.charCodeAt(l++),u!==42&&u!==45&&u!==43)||l=o||(u=e.src.charCodeAt(l++),u<48||u>57))return-1;for(;;){if(l>=o)return-1;if(u=e.src.charCodeAt(l++),!(u>=48&&u<=57)){if(u===41||u===46)break;return-1}}return l=0)j=!0;else if((_=Lt(e,t))>=0)j=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(N=e.src.charCodeAt(_-1),l)return!0;for(ee=e.tokens.length,j?(y=e.bMarks[t]+e.tShift[t],T=Number(e.src.substr(y,_-y-1)),e.tokens.push({type:"ordered_list_open",order:T,lines:Te=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:Te=[t,0],level:e.level++}),o=t,ye=!1,Yn=e.parser.ruler.getRules("list");o=F?B=1:B=Q-_,B>4&&(B=1),B<1&&(B=1),s=_-e.bMarks[o]+B,e.tokens.push({type:"list_item_open",lines:Yr=[t,0],level:e.level++}),h=e.blkIndent,m=e.tight,f=e.tShift[t],w=e.parentType,e.tShift[t]=Q-e.bMarks[t],e.blkIndent=s,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,u,!0),(!e.tight||ye)&&(Zi=!1),ye=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=h,e.tShift[t]=f,e.tight=m,e.parentType=w,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,Yr[1]=o,Q=e.bMarks[t],!(o>=u||e.isEmpty(o)||e.tShift[o]y||e.src.charCodeAt(w)!==91||e.src.charCodeAt(w+1)!==94||e.level>=e.options.maxNesting)return!1;for(h=w+2;h=y||e.src.charCodeAt(++h)!==58?!1:(l||(h++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),m=e.src.slice(w+2,h-2),e.env.footnotes.refs[":"+m]=-1,e.tokens.push({type:"footnote_reference_open",label:m,level:e.level++}),o=e.bMarks[t],s=e.tShift[t],f=e.parentType,e.tShift[t]=e.skipSpaces(h)-h,e.bMarks[t]=h,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]=m||(o=e.src.charCodeAt(h),o!==35||h>=m))return!1;for(s=1,o=e.src.charCodeAt(++h);o===35&&h6||hh&&e.src.charCodeAt(f-1)===32&&(m=f),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:s,lines:[t,e.line],level:e.level}),h=u||e.tShift[f]3||(o=e.bMarks[f]+e.tShift[f],s=e.eMarks[f],o>=s)||(l=e.src.charCodeAt(o),l!==45&&l!==61)||(o=e.skipChars(o,l),o=e.skipSpaces(o),o]/,rl=/^<\/([a-zA-Z]{1,15})[\s>]/;function nl(e){var t=e|32;return t>=97&&t<=122}function tl(e,t,u,l){var o,s,f,h=e.bMarks[t],m=e.eMarks[t],w=e.tShift[t];if(h+=w,!e.options.html||w>3||h+2>=m||e.src.charCodeAt(h)!==60)return!1;if(o=e.src.charCodeAt(h+1),o===33||o===63){if(l)return!0}else if(o===47||nl(o)){if(o===47){if(s=e.src.slice(h,m).match(rl),!s)return!1}else if(s=e.src.slice(h,m).match(el),!s)return!1;if(Pt[s[1].toLowerCase()]!==!0)return!1;if(l)return!0}else return!1;for(f=t+1;fu||(m=t+1,e.tShift[m]=e.eMarks[m])||(o=e.src.charCodeAt(f),o!==124&&o!==45&&o!==58)||(s=kn(e,t+1),!/^[-:| ]+$/.test(s))||(w=s.split("|"),w<=2))return!1;for(_=[],h=0;h=s||(l=e.src.charCodeAt(o++),l!==126&&l!==58)||(u=e.skipSpaces(o),o===u)||u>=s?-1:u}function ul(e,t){var u,l,o=e.level+2;for(u=t+2,l=e.tokens.length-2;u=0;if(y=t+1,e.isEmpty(y)&&++y>u||e.tShift[y]=e.options.maxNesting)return!1;w=e.tokens.length,e.tokens.push({type:"dl_open",lines:m=[t,0],level:e.level++}),f=t,s=y;e:for(;;){for(Q=!0,j=!1,e.tokens.push({type:"dt_open",lines:[f,f],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(f,f+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[f,f],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:h=[y,0],level:e.level++}),N=e.tight,F=e.ddIndent,_=e.blkIndent,T=e.tShift[s],B=e.parentType,e.blkIndent=e.ddIndent=e.tShift[s]+2,e.tShift[s]=o-e.bMarks[s],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,s,u,!0),(!e.tight||j)&&(Q=!1),j=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=T,e.tight=N,e.parentType=B,e.blkIndent=_,e.ddIndent=F,e.tokens.push({type:"dd_close",level:--e.level}),h[1]=y=e.line,y>=u||e.tShift[y]=u||(f=y,e.isEmpty(f))||e.tShift[f]=u)||(e.isEmpty(s)&&s++,s>=u)||e.tShift[s]3)){for(o=!1,s=0,f=m.length;s=u||e.tShift[s]=0&&(e=e.replace(al,function(h,m){var w;return e.charCodeAt(m)===10?(s=m+1,f=0,h):(w=" ".slice((m-s-f)%4),f=m-s+1,w)})),o=new We(e,this,t,u,l),this.tokenize(o,o.line,o.lineMax)};function fl(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function hl(e,t){for(var u=e.pos;u=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){for(var s=u-2;s>=0;s--)if(e.pending.charCodeAt(s)!==32){e.pending=e.pending.substring(0,s+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o?@[]^_`{|}~-".split("").forEach(function(e){En[e.charCodeAt(0)]=1});function dl(e,t){var u,l=e.pos,o=e.posMax;if(e.src.charCodeAt(l)!==92)return!1;if(l++,l=s||e.src.charCodeAt(f+1)!==126||e.level>=e.options.maxNesting||(h=f>0?e.src.charCodeAt(f-1):-1,m=e.src.charCodeAt(f+2),h===126)||m===126||m===32||m===10)return!1;for(l=f+2;lf+3)return e.pos+=l-f,t||(e.pending+=e.src.slice(f,l)),!0;for(e.pos=f+2,o=1;e.pos+1=s||e.src.charCodeAt(f+1)!==43||e.level>=e.options.maxNesting||(h=f>0?e.src.charCodeAt(f-1):-1,m=e.src.charCodeAt(f+2),h===43)||m===43||m===32||m===10)return!1;for(l=f+2;l=s||e.src.charCodeAt(f+1)!==61||e.level>=e.options.maxNesting||(h=f>0?e.src.charCodeAt(f-1):-1,m=e.src.charCodeAt(f+2),h===61)||m===61||m===32||m===10)return!1;for(l=f+2;l=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Ut(e,t){var u=t,l,o,s,f=!0,h=!0,m=e.posMax,w=e.src.charCodeAt(t);for(l=t>0?e.src.charCodeAt(t-1):-1;u=m&&(f=!1),s=u-t,s>=4?f=h=!1:(o=u=e.options.maxNesting)return!1;for(e.pos=y+u,h=[u];e.pos?@[\]^_`{|}~-])/g;function bl(e,t){var u,l,o=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==126||t||s+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos?@[\]^_`{|}~-])/g;function _l(e,t){var u,l,o=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==94||t||s+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos=e.options.maxNesting||(u=B+1,l=gr(e,B),l<0))return!1;if(h=l+1,h=F)return!1;for(B=h,Ft(e,h)?(s=e.linkContent,h=e.pos):s="",B=h;h=F||e.src.charCodeAt(h)!==41)return e.pos=_,!1;h++}else{if(e.linkLevel>0)return!1;for(;h=0?o=e.src.slice(B,h++):h=B-1),o||(typeof o>"u"&&(h=l+1),o=e.src.slice(u,l)),m=e.env.references[Tt(o)],!m)return e.pos=_,!1;s=m.href,f=m.title}return t||(e.pos=u,e.posMax=l,y?e.push({type:"image",src:s,title:f,alt:e.src.substr(u,l-u),level:e.level}):(e.push({type:"link_open",href:s,title:f,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=h,e.posMax=F,!0}function kl(e,t){var u,l,o,s,f=e.posMax,h=e.pos;return h+2>=f||e.src.charCodeAt(h)!==94||e.src.charCodeAt(h+1)!==91||e.level>=e.options.maxNesting||(u=h+2,l=gr(e,h+1),l<0)?!1:(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=u,e.posMax=l,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,s=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(s)},e.linkLevel--),e.pos=l+1,e.posMax=f,!0)}function Dl(e,t){var u,l,o,s,f=e.posMax,h=e.pos;if(h+3>f||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(h)!==91||e.src.charCodeAt(h+1)!==94||e.level>=e.options.maxNesting)return!1;for(l=h+2;l=f||(l++,u=e.src.slice(h+2,l-1),typeof e.env.footnotes.refs[":"+u]>"u")?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+u]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:u,count:0},e.env.footnotes.refs[":"+u]=o):o=e.env.footnotes.refs[":"+u],s=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:s,level:e.level})),e.pos=l,e.posMax=f,!0)}var El=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Sl=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,Fl=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Bl(e,t){var u,l,o,s,f,h=e.pos;return e.src.charCodeAt(h)!==60||(u=e.src.slice(h),u.indexOf(">")<0)?!1:(l=u.match(Fl),l?El.indexOf(l[1].toLowerCase())<0||(s=l[0].slice(1,-1),f=wn(s),!e.parser.validateLink(s))?!1:(t||(e.push({type:"link_open",href:f,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=l[0].length,!0):(o=u.match(Sl),o?(s=o[0].slice(1,-1),f=wn("mailto:"+s),e.parser.validateLink(f)?(t||(e.push({type:"link_open",href:f,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0):!1):!1))}function Pr(e,t){return e=e.source,t=t||"",function u(l,o){return l?(o=o.source||o,e=e.replace(l,o),u):new RegExp(e,t)}}var Tl=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Ml=/[^"'=<>`\x00-\x20]+/,Rl=/'[^']*'/,Il=/"[^"]*"/,Nl=Pr(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Ml)("single_quoted",Rl)("double_quoted",Il)(),ql=Pr(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Tl)("attr_value",Nl)(),Ll=Pr(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",ql)(),Ol=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Pl=/|/,zl=/<[?].*?[?]>/,$l=/]*>/,Ul=//,Hl=Pr(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Ll)("close_tag",Ol)("comment",Pl)("processing",zl)("declaration",$l)("cdata",Ul)();function jl(e){var t=e|32;return t>=97&&t<=122}function Vl(e,t){var u,l,o,s=e.pos;return!e.options.html||(o=e.posMax,e.src.charCodeAt(s)!==60||s+2>=o)||(u=e.src.charCodeAt(s+1),u!==33&&u!==63&&u!==47&&!jl(u))||(l=e.src.slice(s).match(Hl),!l)?!1:(t||e.push({type:"htmltag",content:e.src.slice(s,s+l[0].length),level:e.level}),e.pos+=l[0].length,!0)}var Gl=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Yl=/^&([a-z][a-z0-9]{1,31});/i;function Xl(e,t){var u,l,o,s=e.pos,f=e.posMax;if(e.src.charCodeAt(s)!==38)return!1;if(s+10){e.pos=s;return}for(o=0;o=l)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},zr.prototype.parse=function(e,t,u,l){var o=new Ke(e,this,t,u,l);this.tokenize(o)};function Kl(e){var t=["vbscript","javascript","file","data"],u=e.trim().toLowerCase();return u=G(u),!(u.indexOf(":")!==-1&&t.indexOf(u.split(":")[0])!==-1)}var Wl={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},Zl={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},Jl={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},Ql={default:Wl,full:Zl,commonmark:Jl};function Ht(e,t,u){this.src=t,this.env=u,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function He(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead: import Remarkable from 'remarkable'; import linkify from 'remarkable/linkify'; new Remarkable().use(linkify) `),this.inline=new zr,this.block=new Dn,this.core=new qt,this.renderer=new Oe,this.ruler=new Ce,this.options={},this.configure(Ql[e]),this.set(t||{})}He.prototype.set=function(e){K(this.options,e)},He.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(u){e.components[u].rules&&t[u].ruler.enable(e.components[u].rules,!0)})},He.prototype.use=function(e,t){return e(this,t),this},He.prototype.parse=function(e,t){var u=new Ht(this,e,t);return this.core.process(u),u.tokens},He.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},He.prototype.parseInline=function(e,t){var u=new Ht(this,e,t);return u.inlineMode=!0,this.core.process(u),u.tokens},He.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var ea=(e,t)=>{const u="\\",l="$",s=(t||{}).delimiter||l;if(s.length!==1)throw new Error("invalid delimiter");const f=p,h=(y,_)=>f.renderToString(y,{displayMode:_,throwOnError:!1}),m=(y,_,F)=>{let B=!1,T=y.bMarks[_]+y.tShift[_],N=y.eMarks[_];if(T+1>N)return!1;const j=y.src.charAt(T);if(j!==s)return!1;let Q=T;T=y.skipChars(T,j);let ee=T-Q;if(ee!==2)return!1;let ye=_;for(;++ye,!(ye>=F||(T=Q=y.bMarks[ye]+y.tShift[ye],N=y.eMarks[ye],T=4)&&(T=y.skipChars(T,j),!(T-Q{const F=y.pos,B=y.posMax;let T=F;if(y.src.charAt(T)!==s)return!1;for(++T;T2)return!1;const j=T;let Q=0;for(;T1,level:y.level})}return y.pos=Te,!0}}T+=1}return _||(y.pending+=N),y.pos+=N.length,!0};e.inline.ruler.push("katex",w,t),e.block.ruler.push("katex",m,t),e.renderer.rules.katex=(y,_)=>h(y[_].content,y[_].block),e.renderer.rules.katex.delimiter=s},mr={versions:{katex:"0.16.0",webfontloader:"1.6.28"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js"}}],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]}}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/webfontloader@1.6.28/webfontloader.js",defer:!0}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css"}}]};const jt="https://cdn.jsdelivr.net/npm/";function ra(e,t,u){return e.map(l=>(typeof l=="string"&&(l.startsWith(`${t}/`)?l=`${jt}${t}@${u}${l.slice(t.length)}`:l.startsWith(`${t}@`)&&(l=`${jt}${l}`)),l))}function na(){return{parser:new g,beforeParse:new g,afterParse:new g,htmltag:new g,retransform:new g}}function Kd(e){return e}let Fn;const ta=()=>(Fn||(Fn=R(mr.preloadScripts)),Fn),Bn="katex";var ia={name:Bn,config:mr,transform(e){const t=(l,o)=>{const{katex:s}=window;return s?s.renderToString(l,{displayMode:o,throwOnError:!1}):(ta().then(()=>{e.retransform.call()}),l)};let u=()=>{};return e.parser.tap(l=>{l.use(ea),l.renderer.rules.katex=(o,s)=>(u(),t(o[s].content,o[s].block))}),e.beforeParse.tap((l,o)=>{u=()=>{o.features[Bn]=!0}}),e.afterParse.tap((l,o)=>{const{frontmatter:s}=o;s!=null&&s.markmap&&["extraJs","extraCss"].forEach(f=>{s.markmap[f]&&(s.markmap[f]=ra(s.markmap[f],Bn,mr.versions.katex))})}),{styles:mr.styles,scripts:mr.scripts}}},Tn={versions:{prismjs:"1.28.0"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-core.min.js"}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/plugins/autoloader/prism-autoloader.min.js"}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css"}}]};let Mn;const ua=()=>(Mn||(Mn=R(Tn.preloadScripts)),Mn);function oa(e,t){ua().then(()=>{window.Prism.plugins.autoloader.loadLanguages([e],()=>{t.retransform.call()})})}const Vt="prism";var la={name:Vt,config:Tn,transform(e){let t=()=>{};return e.parser.tap(u=>{u.set({highlight:(l,o)=>{var s;t();const{Prism:f}=window,h=f==null||(s=f.languages)==null?void 0:s[o];return h?f.highlight(l,h,o):(oa(o,e),"")}})}),e.beforeParse.tap((u,l)=>{t=()=>{l.features[Vt]=!0}}),{styles:Tn.styles}}};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Gt(e){return typeof e>"u"||e===null}function aa(e){return typeof e=="object"&&e!==null}function sa(e){return Array.isArray(e)?e:Gt(e)?[]:[e]}function ca(e,t){var u,l,o,s;if(t)for(s=Object.keys(t),u=0,l=s.length;uh&&(s=" ... ",t=l-h+s.length),u-l>h&&(f=" ...",u=l+h-f.length),{str:s+e.slice(t,u).replace(/\t/g,"→")+f,pos:l-t+s.length}}function In(e,t){return de.repeat(" ",t-e.length)+e}function ya(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var u=/\r?\n|\r|\0/g,l=[0],o=[],s,f=-1;s=u.exec(e.buffer);)o.push(s.index),l.push(s.index+s[0].length),e.position<=s.index&&f<0&&(f=l.length-2);f<0&&(f=l.length-1);var h="",m,w,y=Math.min(e.line+t.linesAfter,o.length).toString().length,_=t.maxLength-(t.indent+y+3);for(m=1;m<=t.linesBefore&&!(f-m<0);m++)w=Rn(e.buffer,l[f-m],o[f-m],e.position-(l[f]-l[f-m]),_),h=de.repeat(" ",t.indent)+In((e.line-m+1).toString(),y)+" | "+w.str+` `+h;for(w=Rn(e.buffer,l[f],o[f],e.position,_),h+=de.repeat(" ",t.indent)+In((e.line+1).toString(),y)+" | "+w.str+` `,h+=de.repeat("-",t.indent+y+3+w.pos)+`^ `,m=1;m<=t.linesAfter&&!(f+m>=o.length);m++)w=Rn(e.buffer,l[f+m],o[f+m],e.position-(l[f]-l[f+m]),_),h+=de.repeat(" ",t.indent)+In((e.line+m+1).toString(),y)+" | "+w.str+` `;return h.replace(/\n$/,"")}var Aa=ya,ba=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],wa=["scalar","sequence","mapping"];function _a(e){var t={};return e!==null&&Object.keys(e).forEach(function(u){e[u].forEach(function(l){t[String(l)]=u})}),t}function Ca(e,t){if(t=t||{},Object.keys(t).forEach(function(u){if(ba.indexOf(u)===-1)throw new Ae('Unknown option "'+u+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(u){return u},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=_a(t.styleAliases||null),wa.indexOf(this.kind)===-1)throw new Ae('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ve=Ca;function Xt(e,t){var u=[];return e[t].forEach(function(l){var o=u.length;u.forEach(function(s,f){s.tag===l.tag&&s.kind===l.kind&&s.multi===l.multi&&(o=f)}),u[o]=l}),u}function ka(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,u;function l(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,u=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Oa=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Pa(e){return!(e===null||!Oa.test(e)||e[e.length-1]==="_")}function za(e){var t,u;return t=e.replace(/_/g,"").toLowerCase(),u=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:u*parseFloat(t,10)}var $a=/^[-+]?[0-9]+e/;function Ua(e,t){var u;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(de.isNegativeZero(e))return"-0.0";return u=e.toString(10),$a.test(u)?u.replace("e",".e"):u}function Ha(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||de.isNegativeZero(e))}var ti=new ve("tag:yaml.org,2002:float",{kind:"scalar",resolve:Pa,construct:za,predicate:Ha,represent:Ua,defaultStyle:"lowercase"}),ii=Qt.extend({implicit:[ei,ri,ni,ti]}),ui=ii,oi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),li=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ja(e){return e===null?!1:oi.exec(e)!==null||li.exec(e)!==null}function Va(e){var t,u,l,o,s,f,h,m=0,w=null,y,_,F;if(t=oi.exec(e),t===null&&(t=li.exec(e)),t===null)throw new Error("Date resolve error");if(u=+t[1],l=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(u,l,o));if(s=+t[4],f=+t[5],h=+t[6],t[7]){for(m=t[7].slice(0,3);m.length<3;)m+="0";m=+m}return t[9]&&(y=+t[10],_=+(t[11]||0),w=(y*60+_)*6e4,t[9]==="-"&&(w=-w)),F=new Date(Date.UTC(u,l,o,s,f,h,m)),w&&F.setTime(F.getTime()-w),F}function Ga(e){return e.toISOString()}var ai=new ve("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ja,construct:Va,instanceOf:Date,represent:Ga});function Ya(e){return e==="<<"||e===null}var si=new ve("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ya}),qn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function Xa(e){if(e===null)return!1;var t,u,l=0,o=e.length,s=qn;for(u=0;u64)){if(t<0)return!1;l+=6}return l%8===0}function Ka(e){var t,u,l=e.replace(/[\r\n=]/g,""),o=l.length,s=qn,f=0,h=[];for(t=0;t>16&255),h.push(f>>8&255),h.push(f&255)),f=f<<6|s.indexOf(l.charAt(t));return u=o%4*6,u===0?(h.push(f>>16&255),h.push(f>>8&255),h.push(f&255)):u===18?(h.push(f>>10&255),h.push(f>>2&255)):u===12&&h.push(f>>4&255),new Uint8Array(h)}function Wa(e){var t="",u=0,l,o,s=e.length,f=qn;for(l=0;l>18&63],t+=f[u>>12&63],t+=f[u>>6&63],t+=f[u&63]),u=(u<<8)+e[l];return o=s%3,o===0?(t+=f[u>>18&63],t+=f[u>>12&63],t+=f[u>>6&63],t+=f[u&63]):o===2?(t+=f[u>>10&63],t+=f[u>>4&63],t+=f[u<<2&63],t+=f[64]):o===1&&(t+=f[u>>2&63],t+=f[u<<4&63],t+=f[64],t+=f[64]),t}function Za(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var ci=new ve("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Xa,construct:Ka,predicate:Za,represent:Wa}),Ja=Object.prototype.hasOwnProperty,Qa=Object.prototype.toString;function es(e){if(e===null)return!0;var t=[],u,l,o,s,f,h=e;for(u=0,l=h.length;u>10)+55296,(e-65536&1023)+56320)}for(var bi=new Array(256),wi=new Array(256),ur=0;ur<256;ur++)bi[ur]=Ai(ur)?1:0,wi[ur]=Ai(ur);function ms(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ln,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function _i(e,t){var u={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return u.snippet=Aa(u),new Ae(t,u)}function H(e,t){throw _i(e,t)}function Hr(e,t){e.onWarning&&e.onWarning.call(null,_i(e,t))}var Ci={YAML:function(t,u,l){var o,s,f;t.version!==null&&H(t,"duplication of %YAML directive"),l.length!==1&&H(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),o===null&&H(t,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),f=parseInt(o[2],10),s!==1&&H(t,"unacceptable YAML version of the document"),t.version=l[0],t.checkLineBreaks=f<2,f!==1&&f!==2&&Hr(t,"unsupported YAML version of the document")},TAG:function(t,u,l){var o,s;l.length!==2&&H(t,"TAG directive accepts exactly two arguments"),o=l[0],s=l[1],vi.test(o)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),je.call(t.tagMap,o)&&H(t,'there is a previously declared suffix for "'+o+'" tag handle'),xi.test(s)||H(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{H(t,"tag prefix is malformed: "+s)}t.tagMap[o]=s}};function Ve(e,t,u,l){var o,s,f,h;if(t1&&(e.result+=de.repeat(` `,t-1))}function vs(e,t,u){var l,o,s,f,h,m,w,y,_=e.kind,F=e.result,B;if(B=e.input.charCodeAt(e.position),be(B)||ir(B)||B===35||B===38||B===42||B===33||B===124||B===62||B===39||B===34||B===37||B===64||B===96||(B===63||B===45)&&(o=e.input.charCodeAt(e.position+1),be(o)||u&&ir(o)))return!1;for(e.kind="scalar",e.result="",s=f=e.position,h=!1;B!==0;){if(B===58){if(o=e.input.charCodeAt(e.position+1),be(o)||u&&ir(o))break}else if(B===35){if(l=e.input.charCodeAt(e.position-1),be(l))break}else{if(e.position===e.lineStart&&jr(e)||u&&ir(B))break;if(Ie(B))if(m=e.line,w=e.lineStart,y=e.lineIndent,pe(e,!1,-1),e.lineIndent>=t){h=!0,B=e.input.charCodeAt(e.position);continue}else{e.position=f,e.line=m,e.lineStart=w,e.lineIndent=y;break}}h&&(Ve(e,s,f,!1),zn(e,e.line-m),s=f=e.position,h=!1),Ze(B)||(f=e.position+1),B=e.input.charCodeAt(++e.position)}return Ve(e,s,f,!1),e.result?!0:(e.kind=_,e.result=F,!1)}function xs(e,t){var u,l,o;if(u=e.input.charCodeAt(e.position),u!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=o=e.position;(u=e.input.charCodeAt(e.position))!==0;)if(u===39)if(Ve(e,l,e.position,!0),u=e.input.charCodeAt(++e.position),u===39)l=e.position,e.position++,o=e.position;else return!0;else Ie(u)?(Ve(e,l,o,!0),zn(e,pe(e,!1,t)),l=o=e.position):e.position===e.lineStart&&jr(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function ys(e,t){var u,l,o,s,f,h;if(h=e.input.charCodeAt(e.position),h!==34)return!1;for(e.kind="scalar",e.result="",e.position++,u=l=e.position;(h=e.input.charCodeAt(e.position))!==0;){if(h===34)return Ve(e,u,e.position,!0),e.position++,!0;if(h===92){if(Ve(e,u,e.position,!0),h=e.input.charCodeAt(++e.position),Ie(h))pe(e,!1,t);else if(h<256&&bi[h])e.result+=wi[h],e.position++;else if((f=ps(h))>0){for(o=f,s=0;o>0;o--)h=e.input.charCodeAt(++e.position),(f=hs(h))>=0?s=(s<<4)+f:H(e,"expected hexadecimal character");e.result+=gs(s),e.position++}else H(e,"unknown escape sequence");u=l=e.position}else Ie(h)?(Ve(e,u,l,!0),zn(e,pe(e,!1,t)),u=l=e.position):e.position===e.lineStart&&jr(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function As(e,t){var u=!0,l,o,s,f=e.tag,h,m=e.anchor,w,y,_,F,B,T=Object.create(null),N,j,Q,ee;if(ee=e.input.charCodeAt(e.position),ee===91)y=93,B=!1,h=[];else if(ee===123)y=125,B=!0,h={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),ee=e.input.charCodeAt(++e.position);ee!==0;){if(pe(e,!0,t),ee=e.input.charCodeAt(e.position),ee===y)return e.position++,e.tag=f,e.anchor=m,e.kind=B?"mapping":"sequence",e.result=h,!0;u?ee===44&&H(e,"expected the node content, but found ','"):H(e,"missed comma between flow collection entries"),j=N=Q=null,_=F=!1,ee===63&&(w=e.input.charCodeAt(e.position+1),be(w)&&(_=F=!0,e.position++,pe(e,!0,t))),l=e.line,o=e.lineStart,s=e.position,lr(e,t,$r,!1,!0),j=e.tag,N=e.result,pe(e,!0,t),ee=e.input.charCodeAt(e.position),(F||e.line===l)&&ee===58&&(_=!0,ee=e.input.charCodeAt(++e.position),pe(e,!0,t),lr(e,t,$r,!1,!0),Q=e.result),B?or(e,h,T,j,N,Q,l,o,s):_?h.push(or(e,null,T,j,N,Q,l,o,s)):h.push(N),pe(e,!0,t),ee=e.input.charCodeAt(e.position),ee===44?(u=!0,ee=e.input.charCodeAt(++e.position)):u=!1}H(e,"unexpected end of the stream within a flow collection")}function bs(e,t){var u,l,o=On,s=!1,f=!1,h=t,m=0,w=!1,y,_;if(_=e.input.charCodeAt(e.position),_===124)l=!1;else if(_===62)l=!0;else return!1;for(e.kind="scalar",e.result="";_!==0;)if(_=e.input.charCodeAt(++e.position),_===43||_===45)On===o?o=_===43?mi:as:H(e,"repeat of a chomping mode identifier");else if((y=ds(_))>=0)y===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):f?H(e,"repeat of an indentation width identifier"):(h=t+y-1,f=!0);else break;if(Ze(_)){do _=e.input.charCodeAt(++e.position);while(Ze(_));if(_===35)do _=e.input.charCodeAt(++e.position);while(!Ie(_)&&_!==0)}for(;_!==0;){for(Pn(e),e.lineIndent=0,_=e.input.charCodeAt(e.position);(!f||e.lineIndenth&&(h=e.lineIndent),Ie(_)){m++;continue}if(e.lineIndentt)&&m!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(j&&(f=e.line,h=e.lineStart,m=e.position),lr(e,t,Ur,!0,o)&&(j?T=e.result:N=e.result),j||(or(e,_,F,B,T,N,f,h,m),B=T=N=null),pe(e,!0,-1),ee=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&ee!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndentt?m=1:e.lineIndent===t?m=0:e.lineIndentt?m=1:e.lineIndent===t?m=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),_=0,F=e.implicitTypes.length;_"),e.result!==null&&T.kind!==e.kind&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+T.kind+'", not "'+e.kind+'"'),T.resolve(e.result,e.tag)?(e.result=T.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||y}function Ds(e){var t=e.position,u,l,o,s=!1,f;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(f=e.input.charCodeAt(e.position))!==0&&(pe(e,!0,-1),f=e.input.charCodeAt(e.position),!(e.lineIndent>0||f!==37));){for(s=!0,f=e.input.charCodeAt(++e.position),u=e.position;f!==0&&!be(f);)f=e.input.charCodeAt(++e.position);for(l=e.input.slice(u,e.position),o=[],l.length<1&&H(e,"directive name must not be less than one character in length");f!==0;){for(;Ze(f);)f=e.input.charCodeAt(++e.position);if(f===35){do f=e.input.charCodeAt(++e.position);while(f!==0&&!Ie(f));break}if(Ie(f))break;for(u=e.position;f!==0&&!be(f);)f=e.input.charCodeAt(++e.position);o.push(e.input.slice(u,e.position))}f!==0&&Pn(e),je.call(Ci,l)?Ci[l](e,l,o):Hr(e,'unknown document directive "'+l+'"')}if(pe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,pe(e,!0,-1)):s&&H(e,"directives end mark is expected"),lr(e,e.lineIndent-1,Ur,!1,!0),pe(e,!0,-1),e.checkLineBreaks&&cs.test(e.input.slice(t,e.position))&&Hr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&jr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,pe(e,!0,-1));return}if(e.position"u"&&(u=t,t=null);var l=Ei(e,u);if(typeof t!="function")return l;for(var o=0,s=l.length;o=55296&&u<=56319&&t+1=56320&&l<=57343)?(u-55296)*1024+l-56320+65536:u}function Pi(e){var t=/^\n* /;return t.test(e)}var zi=1,jn=2,$i=3,Ui=4,ar=5;function nc(e,t,u,l,o,s,f,h){var m,w=0,y=null,_=!1,F=!1,B=l!==-1,T=-1,N=ec(br(e,0))&&rc(br(e,e.length-1));if(t||f)for(m=0;m=65536?m+=2:m++){if(w=br(e,m),!Ar(w))return ar;N=N&&Oi(w,y,h),y=w}else{for(m=0;m=65536?m+=2:m++){if(w=br(e,m),w===xr)_=!0,B&&(F=F||m-T-1>l&&e[T+1]!==" ",T=m);else if(!Ar(w))return ar;N=N&&Oi(w,y,h),y=w}F=F||B&&m-T-1>l&&e[T+1]!==" "}return!_&&!F?N&&!f&&!o(e)?zi:s===yr?ar:jn:u>9&&Pi(e)?ar:f?s===yr?ar:jn:F?Ui:$i}function tc(e,t,u,l,o){e.dump=function(){if(t.length===0)return e.quotingType===yr?'""':"''";if(!e.noCompatMode&&(Ys.indexOf(t)!==-1||Xs.test(t)))return e.quotingType===yr?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,u),f=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),h=l||e.flowLevel>-1&&u>=e.flowLevel;function m(w){return Qs(e,w)}switch(nc(t,h,e.indent,f,m,e.quotingType,e.forceQuotes&&!l,o)){case zi:return t;case jn:return"'"+t.replace(/'/g,"''")+"'";case $i:return"|"+Hi(t,e.indent)+ji(qi(t,s));case Ui:return">"+Hi(t,e.indent)+ji(qi(ic(t,f),s));case ar:return'"'+uc(t)+'"';default:throw new Ae("impossible error: invalid scalar style")}}()}function Hi(e,t){var u=Pi(e)?String(t):"",l=e[e.length-1]===` `,o=l&&(e[e.length-2]===` `||e===` `),s=o?"+":l?"":"-";return u+s+` `}function ji(e){return e[e.length-1]===` `?e.slice(0,-1):e}function ic(e,t){for(var u=/(\n+)([^\n]*)/g,l=function(){var w=e.indexOf(` `);return w=w!==-1?w:e.length,u.lastIndex=w,Vi(e.slice(0,w),t)}(),o=e[0]===` `||e[0]===" ",s,f;f=u.exec(e);){var h=f[1],m=f[2];s=m[0]===" ",l+=h+(!o&&!s&&m!==""?` `:"")+Vi(m,t),o=s}return l}function Vi(e,t){if(e===""||e[0]===" ")return e;for(var u=/ [^ ]/g,l,o=0,s,f=0,h=0,m="";l=u.exec(e);)h=l.index,h-o>t&&(s=f>o?f:h,m+=` `+e.slice(o,s),o=s+1),f=h;return m+=` `,e.length-o>t&&f>o?m+=e.slice(o,f)+` `+e.slice(f+1):m+=e.slice(o),m.slice(1)}function uc(e){for(var t="",u=0,l,o=0;o=65536?o+=2:o++)u=br(e,o),l=xe[u],!l&&Ar(u)?(t+=e[o],u>=65536&&(t+=e[o+1])):t+=l||Ws(u);return t}function oc(e,t,u){var l="",o=e.tag,s,f,h;for(s=0,f=u.length;s"u"&&Pe(e,t,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=o,e.dump="["+l+"]"}function Gi(e,t,u,l){var o="",s=e.tag,f,h,m;for(f=0,h=u.length;f"u"&&Pe(e,t+1,null,!0,!0,!1,!0))&&((!l||o!=="")&&(o+=Hn(e,t)),e.dump&&xr===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=s,e.dump=o||"[]"}function lc(e,t,u){var l="",o=e.tag,s=Object.keys(u),f,h,m,w,y;for(f=0,h=s.length;f1024&&(y+="? "),y+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Pe(e,t,w,!1,!1)&&(y+=e.dump,l+=y));e.tag=o,e.dump="{"+l+"}"}function ac(e,t,u,l){var o="",s=e.tag,f=Object.keys(u),h,m,w,y,_,F;if(e.sortKeys===!0)f.sort();else if(typeof e.sortKeys=="function")f.sort(e.sortKeys);else if(e.sortKeys)throw new Ae("sortKeys must be a boolean or a function");for(h=0,m=f.length;h1024,_&&(e.dump&&xr===e.dump.charCodeAt(0)?F+="?":F+="? "),F+=e.dump,_&&(F+=Hn(e,t)),Pe(e,t+1,y,!0,_)&&(e.dump&&xr===e.dump.charCodeAt(0)?F+=":":F+=": ",F+=e.dump,o+=F));e.tag=s,e.dump=o||"{}"}function Yi(e,t,u){var l,o,s,f,h,m;for(o=u?e.explicitTypes:e.implicitTypes,s=0,f=o.length;s tag resolver accepts not "'+m+'" style');e.dump=l}return!0}return!1}function Pe(e,t,u,l,o,s,f){e.tag=null,e.dump=u,Yi(e,u,!1)||Yi(e,u,!0);var h=Fi.call(e.dump),m=l,w;l&&(l=e.flowLevel<0||e.flowLevel>t);var y=h==="[object Object]"||h==="[object Array]",_,F;if(y&&(_=e.duplicates.indexOf(u),F=_!==-1),(e.tag!==null&&e.tag!=="?"||F||e.indent!==2&&t>0)&&(o=!1),F&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(y&&F&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),h==="[object Object]")l&&Object.keys(e.dump).length!==0?(ac(e,t,e.dump,o),F&&(e.dump="&ref_"+_+e.dump)):(lc(e,t,e.dump),F&&(e.dump="&ref_"+_+" "+e.dump));else if(h==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!f&&t>0?Gi(e,t-1,e.dump,o):Gi(e,t,e.dump,o),F&&(e.dump="&ref_"+_+e.dump)):(oc(e,t,e.dump),F&&(e.dump="&ref_"+_+" "+e.dump));else if(h==="[object String]")e.tag!=="?"&&tc(e,e.dump,t,s,m);else{if(h==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ae("unacceptable kind of an object to dump "+h)}e.tag!==null&&e.tag!=="?"&&(w=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?w="!"+w:w.slice(0,18)==="tag:yaml.org,2002:"?w="!!"+w.slice(18):w="!<"+w+">",e.dump=w+" "+e.dump)}return!0}function sc(e,t){var u=[],l=[],o,s;for(Vn(e,u,l),o=0,s=l.length;o{const l=t.parse;t.parse=ie(l,{before(o){const[s]=o.args;if(!s.startsWith(`--- `))return;const f=s.indexOf(` --- `);if(f<0)return;const h=s.slice(4,f);let m;try{var w;m=Ec.load(h),(w=m)!=null&&w.markmap&&(m.markmap=Fc(m.markmap))}catch{return}u.frontmatter=m;const y=f+5;o.args[0]=s.slice(y)},after(){t.parse=l}})}),{}}};function Fc(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=Bc(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=Tc(e[t]))}),e}function Bc(e){var t;let u;return typeof e=="string"?u=[e]:Array.isArray(e)&&(u=e.filter(l=>l&&typeof l=="string")),(t=u)!=null&&t.length?u:void 0}function Tc(e){if(!isNaN(+e))return+e}const Xi=[Sc,ia,la];function Ki(e){if(e.type==="heading")e.children=e.children.filter(o=>o.type!=="paragraph");else if(e.type==="list_item"){var t;e.children=e.children.filter(o=>["paragraph","fence"].includes(o.type)?(e.content||(e.content=o.content,e.payload=d({},e.payload,o.payload)),!1):!0),((t=e.payload)==null?void 0:t.index)!=null&&(e.content=`${e.payload.index}. ${e.content}`)}else if(e.type==="ordered_list"){var u,l;let o=(u=(l=e.payload)==null?void 0:l.startIndex)!=null?u:1;e.children.forEach(s=>{s.type==="list_item"&&(s.payload=d({},s.payload,{index:o}),o+=1)})}e.children.length===0?delete e.children:(e.children.forEach(o=>Ki(o)),e.children.length===1&&!e.children[0].content&&(e.children=e.children[0].children))}function Wi(e,t=0){var u;e.depth=t,(u=e.children)==null||u.forEach(l=>{Wi(l,t+1)})}class Mc{constructor(t=Xi){this.assetsMap={},this.plugins=t,this.hooks=na();const u={};for(const{name:o,transform:s}of t)u[o]=s(this.hooks);this.assetsMap=u;const l=new He("full",{html:!0,breaks:!0,maxNesting:1/0});l.renderer.rules.htmltag=ie(l.renderer.rules.htmltag,{after:o=>{this.hooks.htmltag.call(o)}}),this.md=l,this.hooks.parser.call(l)}buildTree(t){const{md:u}=this,l={type:"root",depth:0,content:"",children:[],payload:{}},o=[l];let s=0;for(const m of t){let w=o[o.length-1];if(m.type.endsWith("_open")){const y=m.type.slice(0,-5),_={};if(m.lines&&(_.lines=m.lines),y==="heading")for(s=m.hLevel;((f=w)==null?void 0:f.depth)>=s;){var f;o.pop(),w=o[o.length-1]}else{var h;s=Math.max(s,((h=w)==null?void 0:h.depth)||0)+1,y==="ordered_list"&&(_.startIndex=m.order)}const F={type:y,depth:s,payload:_,content:"",children:[]};w.children.push(F),o.push(F)}else if(w){if(m.type===`${w.type}_close`)w.type==="heading"?s=w.depth:(o.pop(),s=0);else if(m.type==="inline"){const y=this.hooks.htmltag.tap(F=>{const B=F.result.match(/^$/),T=B==null?void 0:B[1].trim().split(" ");T[0]==="fold"&&(w.payload.fold=["all","recursively"].includes(T[1])?2:1,F.result="")}),_=u.renderer.render([m],u.options,{});y(),w.content=`${w.content||""}${_}`}else if(m.type==="fence"){let y=u.renderer.render([m],u.options,{});const _=y.match(//);_&&(y=y.replace("
    ",``)),w.children.push({type:m.type,depth:s+1,content:y,children:[]})}}else continue}return l}transform(t){var u;const l={features:{}};this.hooks.beforeParse.call(this.md,l);const o=this.md.parse(t,{});this.hooks.afterParse.call(this.md,l);let s=this.buildTree(o);return Ki(s),((u=s.children)==null?void 0:u.length)===1&&(s=s.children[0]),Wi(s),d({},l,{root:s})}getAssets(t){var u;const l=[],o=[];(u=t)!=null||(t=this.plugins.map(s=>s.name));for(const s of t.map(f=>this.assetsMap[f]))s&&(s.styles&&l.push(...s.styles),s.scripts&&o.push(...s.scripts));return{styles:l,scripts:o}}getUsedAssets(t){const u=this.plugins.map(l=>l.name).filter(l=>t[l]);return this.getAssets(u)}}const Rc={"markmap-lib":"0.14.4",d3:"6.7.0"};i.Transformer=Mc,i.builtInPlugins=Xi,i.fillTemplate=ue,i.transformerVersions=Rc})})(it,it.exports);var jc=it.exports;/*! markmap-common v0.14.2 | MIT License */class Iu{constructor(){this.listeners=[]}tap(n){return this.listeners.push(n),()=>this.revoke(n)}revoke(n){const i=this.listeners.indexOf(n);i>=0&&this.listeners.splice(i,1)}revokeAll(){this.listeners.splice(0)}call(...n){for(const i of this.listeners)i(...n)}}const Vc=Math.random().toString(36).slice(2,8);let nu=0;function Gc(){return nu+=1,`mm-${Vc}-${nu}`}function Wn(){}function ut(r,n,i="children"){const a=(c,p)=>n(c,()=>{var d;(d=c[i])==null||d.forEach(g=>{a(g,c)})},p);a(r)}function Nu(r){if(Array.from)return Array.from(r);const n=[];for(let i=0;i{a&&i.indexOf(a)<0&&i.push(a)}),i.join(" ")}function cr(r){if(typeof r=="string"){const i=r;r=a=>a.tagName===i}const n=r;return function(){let a=Nu(this.childNodes);return n&&(a=a.filter(c=>n(c))),a}}function tu(r,n){let i;if(n===void 0)for(const a of r)a!=null&&(i=a)&&(i=a);else{let a=-1;for(let c of r)(c=n(c,++a,r))!=null&&(i=c)&&(i=c)}return i}function iu(r,n){let i;if(n===void 0)for(const a of r)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let c of r)(c=n(c,++a,r))!=null&&(i>c||i===void 0&&c>=c)&&(i=c)}return i}function Xc(r,n){let i,a=-1,c=-1;if(n===void 0)for(const p of r)++c,p!=null&&(i>p||i===void 0&&p>=p)&&(i=p,a=c);else for(let p of r)(p=n(p,++c,r))!=null&&(i>p||i===void 0&&p>=p)&&(i=p,a=c);return a}var Kc={value:()=>{}};function yt(){for(var r=0,n=arguments.length,i={},a;r=0&&(a=i.slice(c+1),i=i.slice(0,c)),i&&!n.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}nn.prototype=yt.prototype={constructor:nn,on:function(r,n){var i=this._,a=Wc(r+"",i),c,p=-1,d=a.length;if(arguments.length<2){for(;++p0)for(var i=new Array(c),a=0,c,p;a=0&&(n=r.slice(0,i))!=="xmlns"&&(r=r.slice(i+1)),ou.hasOwnProperty(n)?{space:ou[n],local:r}:r}function Jc(r){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===ot&&n.documentElement.namespaceURI===ot?n.createElement(r):n.createElementNS(i,r)}}function Qc(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function qu(r){var n=vn(r);return(n.local?Qc:Jc)(n)}function ef(){}function At(r){return r==null?ef:function(){return this.querySelector(r)}}function rf(r){typeof r!="function"&&(r=At(r));for(var n=this._groups,i=n.length,a=new Array(i),c=0;c=ie&&(ie=X+1);!(se=Z[ie])&&++ie=0;)(d=a[c])&&(p&&d.compareDocumentPosition(p)^4&&p.parentNode.insertBefore(d,p),p=d);return this}function kf(r){r||(r=Df);function n(k,E){return k&&E?r(k.__data__,E.__data__):!k-!E}for(var i=this._groups,a=i.length,c=new Array(a),p=0;pn?1:r>=n?0:NaN}function Ef(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function Sf(){return Array.from(this)}function Ff(){for(var r=this._groups,n=0,i=r.length;n1?this.each((n==null?zf:typeof n=="function"?Uf:$f)(r,n,i??"")):pr(this.node(),r)}function pr(r,n){return r.style.getPropertyValue(n)||Uu(r).getComputedStyle(r,null).getPropertyValue(n)}function jf(r){return function(){delete this[r]}}function Vf(r,n){return function(){this[r]=n}}function Gf(r,n){return function(){var i=n.apply(this,arguments);i==null?delete this[r]:this[r]=i}}function Yf(r,n){return arguments.length>1?this.each((n==null?jf:typeof n=="function"?Gf:Vf)(r,n)):this.node()[r]}function Hu(r){return r.trim().split(/^|\s+/)}function bt(r){return r.classList||new ju(r)}function ju(r){this._node=r,this._names=Hu(r.getAttribute("class")||"")}ju.prototype={add:function(r){var n=this._names.indexOf(r);n<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var n=this._names.indexOf(r);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function Vu(r,n){for(var i=bt(r),a=-1,c=n.length;++a=0&&(i=n.slice(a+1),n=n.slice(0,a)),{type:n,name:i}})}function bh(r){return function(){var n=this.__on;if(n){for(var i=0,a=-1,c=n.length,p;i>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Zr(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Zr(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Rh.exec(r))?new Se(n[1],n[2],n[3],1):(n=Ih.exec(r))?new Se(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Nh.exec(r))?Zr(n[1],n[2],n[3],n[4]):(n=qh.exec(r))?Zr(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Lh.exec(r))?pu(n[1],n[2]/100,n[3]/100,1):(n=Oh.exec(r))?pu(n[1],n[2]/100,n[3]/100,n[4]):lu.hasOwnProperty(r)?cu(lu[r]):r==="transparent"?new Se(NaN,NaN,NaN,0):null}function cu(r){return new Se(r>>16&255,r>>8&255,r&255,1)}function Zr(r,n,i,a){return a<=0&&(r=n=i=NaN),new Se(r,n,i,a)}function zh(r){return r instanceof qr||(r=Mr(r)),r?(r=r.rgb(),new Se(r.r,r.g,r.b,r.opacity)):new Se}function at(r,n,i,a){return arguments.length===1?zh(r):new Se(r,n,i,a??1)}function Se(r,n,i,a){this.r=+r,this.g=+n,this.b=+i,this.opacity=+a}wt(Se,at,Ku(qr,{brighter:function(r){return r=r==null?cn:Math.pow(cn,r),new Se(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=r==null?Br:Math.pow(Br,r),new Se(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){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:fu,formatHex:fu,formatRgb:hu,toString:hu}));function fu(){return"#"+Zn(this.r)+Zn(this.g)+Zn(this.b)}function hu(){var r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(r===1?")":", "+r+")")}function Zn(r){return r=Math.max(0,Math.min(255,Math.round(r)||0)),(r<16?"0":"")+r.toString(16)}function pu(r,n,i,a){return a<=0?r=n=i=NaN:i<=0||i>=1?r=n=NaN:n<=0&&(r=NaN),new Ne(r,n,i,a)}function Wu(r){if(r instanceof Ne)return new Ne(r.h,r.s,r.l,r.opacity);if(r instanceof qr||(r=Mr(r)),!r)return new Ne;if(r instanceof Ne)return r;r=r.rgb();var n=r.r/255,i=r.g/255,a=r.b/255,c=Math.min(n,i,a),p=Math.max(n,i,a),d=NaN,g=p-c,v=(p+c)/2;return g?(n===p?d=(i-a)/g+(i0&&v<1?0:d,new Ne(d,g,v,r.opacity)}function $h(r,n,i,a){return arguments.length===1?Wu(r):new Ne(r,n,i,a??1)}function Ne(r,n,i,a){this.h=+r,this.s=+n,this.l=+i,this.opacity=+a}wt(Ne,$h,Ku(qr,{brighter:function(r){return r=r==null?cn:Math.pow(cn,r),new Ne(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=r==null?Br:Math.pow(Br,r),new Ne(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+(this.h<0)*360,n=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,c=2*i-a;return new Se(Jn(r>=240?r-240:r+120,c,a),Jn(r,c,a),Jn(r<120?r+240:r-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(r===1?")":", "+r+")")}}));function Jn(r,n,i){return(r<60?n+(i-n)*r/60:r<180?i:r<240?n+(i-n)*(240-r)/60:n)*255}const Zu=r=>()=>r;function Uh(r,n){return function(i){return r+i*n}}function Hh(r,n,i){return r=Math.pow(r,i),n=Math.pow(n,i)-r,i=1/i,function(a){return Math.pow(r+a*n,i)}}function jh(r){return(r=+r)==1?Ju:function(n,i){return i-n?Hh(n,i,r):Zu(isNaN(n)?i:n)}}function Ju(r,n){var i=n-r;return i?Uh(r,i):Zu(isNaN(r)?n:r)}const du=function r(n){var i=jh(n);function a(c,p){var d=i((c=at(c)).r,(p=at(p)).r),g=i(c.g,p.g),v=i(c.b,p.b),A=Ju(c.opacity,p.opacity);return function(x){return c.r=d(x),c.g=g(x),c.b=v(x),c.opacity=A(x),c+""}}return a.gamma=r,a}(1);function Ge(r,n){return r=+r,n=+n,function(i){return r*(1-i)+n*i}}var st=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qn=new RegExp(st.source,"g");function Vh(r){return function(){return r}}function Gh(r){return function(n){return r(n)+""}}function Yh(r,n){var i=st.lastIndex=Qn.lastIndex=0,a,c,p,d=-1,g=[],v=[];for(r=r+"",n=n+"";(a=st.exec(r))&&(c=Qn.exec(n));)(p=c.index)>i&&(p=n.slice(i,p),g[d]?g[d]+=p:g[++d]=p),(a=a[0])===(c=c[0])?g[d]?g[d]+=c:g[++d]=c:(g[++d]=null,v.push({i:d,x:Ge(a,c)})),i=Qn.lastIndex;return i180?x+=360:x-A>180&&(A+=360),E.push({i:k.push(c(k)+"rotate(",null,a)-2,x:Ge(A,x)})):x&&k.push(c(k)+"rotate("+x+a)}function g(A,x,k,E){A!==x?E.push({i:k.push(c(k)+"skewX(",null,a)-2,x:Ge(A,x)}):x&&k.push(c(k)+"skewX("+x+a)}function v(A,x,k,E,D,Y){if(A!==k||x!==E){var z=D.push(c(D)+"scale(",null,",",null,")");Y.push({i:z-4,x:Ge(A,k)},{i:z-2,x:Ge(x,E)})}else(k!==1||E!==1)&&D.push(c(D)+"scale("+k+","+E+")")}return function(A,x){var k=[],E=[];return A=r(A),x=r(x),p(A.translateX,A.translateY,x.translateX,x.translateY,k,E),d(A.rotate,x.rotate,k,E),g(A.skewX,x.skewX,k,E),v(A.scaleX,A.scaleY,x.scaleX,x.scaleY,k,E),A=x=null,function(D){for(var Y=-1,z=E.length,Z;++Y=0&&r._call.call(null,n),r=r._next;--dr}function vu(){nr=(hn=Rr.now())+xn,dr=Er=0;try{tp()}finally{dr=0,up(),nr=0}}function ip(){var r=Rr.now(),n=r-hn;n>ro&&(xn-=n,hn=r)}function up(){for(var r,n=fn,i,a=1/0;n;)n._call?(a>n._time&&(a=n._time),r=n,n=n._next):(i=n._next,n._next=null,n=r?r._next=i:fn=i);Sr=r,ft(a)}function ft(r){if(!dr){Er&&(Er=clearTimeout(Er));var n=r-nr;n>24?(r<1/0&&(Er=setTimeout(vu,r-Rr.now()-xn)),kr&&(kr=clearInterval(kr))):(kr||(hn=Rr.now(),kr=setInterval(ip,ro)),dr=1,no(vu))}}function xu(r,n,i){var a=new pn;return n=n==null?0:+n,a.restart(c=>{a.stop(),r(c+n)},n,i),a}var op=yt("start","end","cancel","interrupt"),lp=[],io=0,yu=1,ht=2,tn=3,Au=4,pt=5,un=6;function yn(r,n,i,a,c,p){var d=r.__transition;if(!d)r.__transition={};else if(i in d)return;ap(r,i,{name:n,index:a,group:c,on:op,tween:lp,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:io})}function Ct(r,n){var i=Re(r,n);if(i.state>io)throw new Error("too late; already scheduled");return i}function Le(r,n){var i=Re(r,n);if(i.state>tn)throw new Error("too late; already running");return i}function Re(r,n){var i=r.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function ap(r,n,i){var a=r.__transition,c;a[n]=i,i.timer=to(p,0,i.time);function p(A){i.state=yu,i.timer.restart(d,i.delay,i.time),i.delay<=A&&d(A-i.delay)}function d(A){var x,k,E,D;if(i.state!==yu)return v();for(x in a)if(D=a[x],D.name===i.name){if(D.state===tn)return xu(d);D.state===Au?(D.state=un,D.timer.stop(),D.on.call("interrupt",r,r.__data__,D.index,D.group),delete a[x]):+xht&&a.state=0&&(n=n.slice(0,i)),!n||n==="start"})}function Op(r,n,i){var a,c,p=Lp(n)?Ct:Le;return function(){var d=p(this,r),g=d.on;g!==a&&(c=(a=g).copy()).on(n,i),d.on=c}}function Pp(r,n){var i=this._id;return arguments.length<2?Re(this.node(),i).on.on(r):this.each(Op(i,r,n))}function zp(r){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==r)return;n&&n.removeChild(this)}}function $p(){return this.on("end.remove",zp(this._id))}function Up(r){var n=this._name,i=this._id;typeof r!="function"&&(r=At(r));for(var a=this._groups,c=a.length,p=new Array(c),d=0;der)if(!(Math.abs(x*g-v*A)>er)||!c)this._+="L"+(this._x1=r)+","+(this._y1=n);else{var E=i-p,D=a-d,Y=g*g+v*v,z=E*E+D*D,Z=Math.sqrt(Y),q=Math.sqrt(k),X=c*Math.tan((dt-Math.acos((Y+k-z)/(2*Z*q)))/2),ie=X/q,ae=X/Z;Math.abs(ie-1)>er&&(this._+="L"+(r+ie*A)+","+(n+ie*x)),this._+="A"+c+","+c+",0,0,"+ +(x*E>A*D)+","+(this._x1=r+ae*g)+","+(this._y1=n+ae*v)}},arc:function(r,n,i,a,c,p){r=+r,n=+n,i=+i,p=!!p;var d=i*Math.cos(a),g=i*Math.sin(a),v=r+d,A=n+g,x=1^p,k=p?a-c:c-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+v+","+A:(Math.abs(this._x1-v)>er||Math.abs(this._y1-A)>er)&&(this._+="L"+v+","+A),i&&(k<0&&(k=k%gt+gt),k>p0?this._+="A"+i+","+i+",0,1,"+x+","+(r-d)+","+(n-g)+"A"+i+","+i+",0,1,"+x+","+(this._x1=v)+","+(this._y1=A):k>er&&(this._+="A"+i+","+i+",0,"+ +(k>=dt)+","+x+","+(this._x1=r+i*Math.cos(c))+","+(this._y1=n+i*Math.sin(c))))},rect:function(r,n,i,a){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function d0(r,n){switch(arguments.length){case 0:break;case 1:this.range(r);break;default:this.range(n).domain(r);break}return this}const bu=Symbol("implicit");function so(){var r=new Map,n=[],i=[],a=bu;function c(p){var d=p+"",g=r.get(d);if(!g){if(a!==bu)return a;r.set(d,g=n.push(p))}return i[(g-1)%i.length]}return c.domain=function(p){if(!arguments.length)return n.slice();n=[],r=new Map;for(const d of p){const g=d+"";r.has(g)||r.set(g,n.push(d))}return c},c.range=function(p){return arguments.length?(i=Array.from(p),c):i.slice()},c.unknown=function(p){return arguments.length?(a=p,c):a},c.copy=function(){return so(n,i).unknown(a)},d0.apply(c,arguments),c}function g0(r){for(var n=r.length/6|0,i=new Array(n),a=0;a()=>r;function k0(r,{sourceEvent:n,target:i,transform:a,dispatch:c}){Object.defineProperties(this,{type:{value:r,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:c}})}function ze(r,n,i){this.k=r,this.x=n,this.y=i}ze.prototype={constructor:ze,scale:function(r){return r===1?this:new ze(this.k*r,this.x,this.y)},translate:function(r,n){return r===0&n===0?this:new ze(this.k,this.x+this.k*r,this.y+this.k*n)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var An=new ze(1,0,0);ln.prototype=ze.prototype;function ln(r){for(;!r.__zoom;)if(!(r=r.parentNode))return An;return r.__zoom}function et(r){r.stopImmediatePropagation()}function Dr(r){r.preventDefault(),r.stopImmediatePropagation()}function D0(r){return(!r.ctrlKey||r.type==="wheel")&&!r.button}function E0(){var r=this;return r instanceof SVGElement?(r=r.ownerSVGElement||r,r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]):[[0,0],[r.clientWidth,r.clientHeight]]}function _u(){return this.__zoom||An}function S0(r){return-r.deltaY*(r.deltaMode===1?.05:r.deltaMode?1:.002)*(r.ctrlKey?10:1)}function F0(){return navigator.maxTouchPoints||"ontouchstart"in this}function B0(r,n,i){var a=r.invertX(n[0][0])-i[0][0],c=r.invertX(n[1][0])-i[1][0],p=r.invertY(n[0][1])-i[0][1],d=r.invertY(n[1][1])-i[1][1];return r.translate(c>a?(a+c)/2:Math.min(0,a)||Math.max(0,c),d>p?(p+d)/2:Math.min(0,p)||Math.max(0,d))}function T0(){var r=D0,n=E0,i=B0,a=S0,c=F0,p=[0,1/0],d=[[-1/0,-1/0],[1/0,1/0]],g=250,v=rp,A=yt("start","zoom","end"),x,k,E,D=500,Y=150,z=0,Z=10;function q(b){b.property("__zoom",_u).on("wheel.zoom",R).on("mousedown.zoom",$).on("dblclick.zoom",V).filter(c).on("touchstart.zoom",ue).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}q.transform=function(b,M,S,L){var K=b.selection?b.selection():b;K.property("__zoom",_u),b!==K?se(b,M,S,L):K.interrupt().each(function(){fe(this,arguments).event(L).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},q.scaleBy=function(b,M,S,L){q.scaleTo(b,function(){var K=this.__zoom.k,W=typeof M=="function"?M.apply(this,arguments):M;return K*W},S,L)},q.scaleTo=function(b,M,S,L){q.transform(b,function(){var K=n.apply(this,arguments),W=this.__zoom,U=S==null?ae(K):typeof S=="function"?S.apply(this,arguments):S,re=W.invert(U),oe=typeof M=="function"?M.apply(this,arguments):M;return i(ie(X(W,oe),U,re),K,d)},S,L)},q.translateBy=function(b,M,S,L){q.transform(b,function(){return i(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof S=="function"?S.apply(this,arguments):S),n.apply(this,arguments),d)},null,L)},q.translateTo=function(b,M,S,L,K){q.transform(b,function(){var W=n.apply(this,arguments),U=this.__zoom,re=L==null?ae(W):typeof L=="function"?L.apply(this,arguments):L;return i(An.translate(re[0],re[1]).scale(U.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof S=="function"?-S.apply(this,arguments):-S),W,d)},L,K)};function X(b,M){return M=Math.max(p[0],Math.min(p[1],M)),M===b.k?b:new ze(M,b.x,b.y)}function ie(b,M,S){var L=M[0]-S[0]*b.k,K=M[1]-S[1]*b.k;return L===b.x&&K===b.y?b:new ze(b.k,L,K)}function ae(b){return[(+b[0][0]+ +b[1][0])/2,(+b[0][1]+ +b[1][1])/2]}function se(b,M,S,L){b.on("start.zoom",function(){fe(this,arguments).event(L).start()}).on("interrupt.zoom end.zoom",function(){fe(this,arguments).event(L).end()}).tween("zoom",function(){var K=this,W=arguments,U=fe(K,W).event(L),re=n.apply(K,W),oe=S==null?ae(re):typeof S=="function"?S.apply(K,W):S,ce=Math.max(re[1][0]-re[0][0],re[1][1]-re[0][1]),le=K.__zoom,P=typeof M=="function"?M.apply(K,W):M,G=v(le.invert(oe).concat(ce/le.k),P.invert(oe).concat(ce/P.k));return function(te){if(te===1)te=P;else{var ne=G(te),he=ce/ne[2];te=new ze(he,oe[0]-ne[0]*he,oe[1]-ne[1]*he)}U.zoom(null,te)}})}function fe(b,M,S){return!S&&b.__zooming||new I(b,M)}function I(b,M){this.that=b,this.args=M,this.active=0,this.sourceEvent=null,this.extent=n.apply(b,M),this.taps=0}I.prototype={event:function(b){return b&&(this.sourceEvent=b),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(b,M){return this.mouse&&b!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&b!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&b!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(b){var M=Xe(this.that).datum();A.call(b,this.that,new k0(b,{sourceEvent:this.sourceEvent,target:q,type:b,transform:this.that.__zoom,dispatch:A}),M)}};function R(b,...M){if(!r.apply(this,arguments))return;var S=fe(this,M).event(b),L=this.__zoom,K=Math.max(p[0],Math.min(p[1],L.k*Math.pow(2,a.apply(this,arguments)))),W=Je(b);if(S.wheel)(S.mouse[0][0]!==W[0]||S.mouse[0][1]!==W[1])&&(S.mouse[1]=L.invert(S.mouse[0]=W)),clearTimeout(S.wheel);else{if(L.k===K)return;S.mouse=[W,L.invert(W)],on(this),S.start()}Dr(b),S.wheel=setTimeout(U,Y),S.zoom("mouse",i(ie(X(L,K),S.mouse[0],S.mouse[1]),S.extent,d));function U(){S.wheel=null,S.end()}}function $(b,...M){if(E||!r.apply(this,arguments))return;var S=fe(this,M,!0).event(b),L=Xe(b.view).on("mousemove.zoom",oe,!0).on("mouseup.zoom",ce,!0),K=Je(b,W),W=b.currentTarget,U=b.clientX,re=b.clientY;Bh(b.view),et(b),S.mouse=[K,this.__zoom.invert(K)],on(this),S.start();function oe(le){if(Dr(le),!S.moved){var P=le.clientX-U,G=le.clientY-re;S.moved=P*P+G*G>z}S.event(le).zoom("mouse",i(ie(S.that.__zoom,S.mouse[0]=Je(le,W),S.mouse[1]),S.extent,d))}function ce(le){L.on("mousemove.zoom mouseup.zoom",null),Th(le.view,S.moved),Dr(le),S.event(le).end()}}function V(b,...M){if(r.apply(this,arguments)){var S=this.__zoom,L=Je(b.changedTouches?b.changedTouches[0]:b,this),K=S.invert(L),W=S.k*(b.shiftKey?.5:2),U=i(ie(X(S,W),L,K),n.apply(this,M),d);Dr(b),g>0?Xe(this).transition().duration(g).call(se,U,L,b):Xe(this).call(q.transform,U,L,b)}}function ue(b,...M){if(r.apply(this,arguments)){var S=b.touches,L=S.length,K=fe(this,M,b.changedTouches.length===L).event(b),W,U,re,oe;for(et(b),U=0;U=0;)n+=i[a].value;r.value=n}function R0(){return this.eachAfter(M0)}function I0(r){var n=this,i,a=[n],c,p,d;do for(i=a.reverse(),a=[];n=i.pop();)if(r(n),c=n.children,c)for(p=0,d=c.length;p=0;--c)i.push(a[c]);return this}function q0(r){for(var n=this,i=[n],a=[],c,p,d;n=i.pop();)if(a.push(n),c=n.children,c)for(p=0,d=c.length;p=0;)i+=a[c].value;n.value=i})}function O0(r){return this.eachBefore(function(n){n.children&&n.children.sort(r)})}function P0(r){for(var n=this,i=z0(n,r),a=[n];n!==i;)n=n.parent,a.push(n);for(var c=a.length;r!==i;)a.splice(c,0,r),r=r.parent;return a}function z0(r,n){if(r===n)return r;var i=r.ancestors(),a=n.ancestors(),c=null;for(r=i.pop(),n=a.pop();r===n;)c=r,r=i.pop(),n=a.pop();return c}function $0(){for(var r=this,n=[r];r=r.parent;)n.push(r);return n}function U0(){var r=[];return this.each(function(n){r.push(n)}),r}function H0(){var r=[];return this.eachBefore(function(n){n.children||r.push(n)}),r}function j0(){var r=this,n=[];return r.each(function(i){i!==r&&n.push({source:i.parent,target:i})}),n}function Dt(r,n){var i=new dn(r),a=+r.value&&(i.value=r.value),c,p=[i],d,g,v,A;for(n==null&&(n=G0);c=p.pop();)if(a&&(c.value=+c.data.value),(g=n(c.data))&&(A=g.length))for(c.children=new Array(A),v=A-1;v>=0;--v)p.push(d=c.children[v]=new dn(g[v])),d.parent=c,d.depth=c.depth+1;return i.eachBefore(X0)}function V0(){return Dt(this).eachBefore(Y0)}function G0(r){return r.children}function Y0(r){r.data=r.data.data}function X0(r){var n=0;do r.height=n;while((r=r.parent)&&r.height<++n)}function dn(r){this.data=r,this.depth=this.height=0,this.parent=null}dn.prototype=Dt.prototype={constructor:dn,count:R0,each:I0,eachAfter:q0,eachBefore:N0,sum:L0,sort:O0,path:P0,ancestors:$0,descendants:U0,leaves:H0,links:j0,copy:V0};var K0="d3-flextree",W0="2.1.2",Z0="build/d3-flextree.js",J0="index",Q0={name:"Chris Maloney",url:"http://chrismaloney.org"},e2="Flexible tree layout algorithm that allows for variable node sizes.",r2=["d3","d3-module","layout","tree","hierarchy","d3-hierarchy","plugin","d3-plugin","infovis","visualization","2d"],n2="https://github.com/klortho/d3-flextree",t2="WTFPL",i2={type:"git",url:"https://github.com/klortho/d3-flextree.git"},u2={clean:"rm -rf build demo test","build:demo":"rollup -c --environment BUILD:demo","build:dev":"rollup -c --environment BUILD:dev","build:prod":"rollup -c --environment BUILD:prod","build:test":"rollup -c --environment BUILD:test",build:"rollup -c",lint:"eslint index.js src","test:main":"node test/bundle.js","test:browser":"node test/browser-tests.js",test:"npm-run-all test:*",prepare:"npm-run-all clean build lint test"},o2={"d3-hierarchy":"^1.1.5"},l2={"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0",d3:"^4.13.0","d3-selection-multi":"^1.0.1",eslint:"^4.19.1",jsdom:"^11.6.2","npm-run-all":"^4.1.2",rollup:"^0.55.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-copy":"^0.2.3","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.2","rollup-plugin-uglify":"^3.0.0","uglify-es":"^3.3.9"},a2={name:K0,version:W0,main:Z0,module:J0,"jsnext:main":"index",author:Q0,description:e2,keywords:r2,homepage:n2,license:t2,repository:i2,scripts:u2,dependencies:o2,devDependencies:l2};const{version:s2}=a2,c2=Object.freeze({children:r=>r.children,nodeSize:r=>r.data.size,spacing:0});function fo(r){const n=Object.assign({},c2,r);function i(g){const v=n[g];return typeof v=="function"?v:()=>v}function a(g){const v=d(p(),g,A=>A.children);return v.update(),v.data}function c(){const g=i("nodeSize"),v=i("spacing");return class co extends Dt.prototype.constructor{constructor(x){super(x)}copy(){const x=d(this.constructor,this,k=>k.children);return x.each(k=>k.data=k.data.data),x}get size(){return g(this)}spacing(x){return v(this,x)}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 x=this.ancestors();return x[x.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((x,k)=>co.maxExtents(x,k.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(x,k){return{top:Math.min(x.top,k.top),bottom:Math.max(x.bottom,k.bottom),left:Math.min(x.left,k.left),right:Math.max(x.right,k.right)}}}}function p(){const g=c(),v=i("nodeSize"),A=i("spacing");return class extends g{constructor(x){super(x),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 v(this.data)}spacing(x){return A(this.data,x.data)}get x(){return this.data.x}set x(x){this.data.x=x}get y(){return this.data.y}set y(x){this.data.y=x}update(){return ho(this),po(this),this}}}function d(g,v,A){const x=(k,E)=>{const D=new g(k);Object.assign(D,{parent:E,depth:E===null?0:E.depth+1,height:0,length:1});const Y=A(k)||[];return D.children=Y.length===0?null:Y.map(z=>x(z,D)),D.children&&Object.assign(D,D.children.reduce((z,Z)=>({height:Math.max(z.height,Z.height+1),length:z.length+Z.length}),D)),D};return x(v,null)}return Object.assign(a,{nodeSize(g){return arguments.length?(n.nodeSize=g,a):n.nodeSize},spacing(g){return arguments.length?(n.spacing=g,a):n.spacing},children(g){return arguments.length?(n.children=g,a):n.children},hierarchy(g,v){const A=typeof v>"u"?n.children:v;return d(c(),g,A)},dump(g){const v=i("nodeSize"),A=x=>k=>{const E=x+"  ",D=x+"    ",{x:Y,y:z}=k,Z=v(k),q=k.children||[],X=q.length===0?" ":`,${E}children: [${D}${q.map(A(D)).join(D)}${E}],${x}`;return`{ size: [${Z.join(", ")}],${E}x: ${Y}, y: ${z}${X}},`};return A(`
    `)(g)}}),a}fo.version=s2;const ho=(r,n=0)=>(r.y=n,(r.children||[]).reduce((i,a)=>{const[c,p]=i;ho(a,r.y+r.ySize);const d=(c===0?a.lExt:a.rExt).bottom;c!==0&&h2(r,c,p);const g=A2(d,c,p);return[c+1,g]},[0,null]),f2(r),y2(r),r),po=(r,n,i)=>{typeof n>"u"&&(n=-r.relX-r.prelim,i=0);const a=n+r.relX;return r.relX=a+r.prelim-i,r.prelim=0,r.x=i+r.relX,(r.children||[]).forEach(c=>po(c,a,r.x)),r},f2=r=>{(r.children||[]).reduce((n,i)=>{const[a,c]=n,p=a+i.shift,d=c+p+i.change;return i.relX+=d,[p,d]},[0,0])},h2=(r,n,i)=>{const a=r.children[n-1],c=r.children[n];let p=a,d=a.relX,g=c,v=c.relX,A=!0;for(;p&&g;){p.bottom>i.lowY&&(i=i.next);const x=d+p.prelim-(v+g.prelim)+p.xSize/2+g.xSize/2+p.spacing(g);(x>0||x<0&&A)&&(v+=x,p2(c,x),d2(r,n,i.index,x)),A=!1;const k=p.bottom,E=g.bottom;k<=E&&(p=m2(p),p&&(d+=p.relX)),k>=E&&(g=g2(g),g&&(v+=g.relX))}!p&&g?v2(r,n,g,v):p&&!g&&x2(r,n,p,d)},p2=(r,n)=>{r.relX+=n,r.lExtRelX+=n,r.rExtRelX+=n},d2=(r,n,i,a)=>{const c=r.children[n],p=n-i;if(p>1){const d=a/p;r.children[i+1].shift+=d,c.shift-=d,c.change-=a-d}},g2=r=>r.hasChildren?r.firstChild:r.lThr,m2=r=>r.hasChildren?r.lastChild:r.rThr,v2=(r,n,i,a)=>{const c=r.firstChild,p=c.lExt,d=r.children[n];p.lThr=i;const g=a-i.relX-c.lExtRelX;p.relX+=g,p.prelim-=g,c.lExt=d.lExt,c.lExtRelX=d.lExtRelX},x2=(r,n,i,a)=>{const c=r.children[n],p=c.rExt,d=r.children[n-1];p.rThr=i;const g=a-i.relX-c.rExtRelX;p.relX+=g,p.prelim-=g,c.rExt=d.rExt,c.rExtRelX=d.rExtRelX},y2=r=>{if(r.hasChildren){const n=r.firstChild,i=r.lastChild,a=(n.prelim+n.relX-n.xSize/2+i.relX+i.prelim+i.xSize/2)/2;Object.assign(r,{prelim:a,lExt:n.lExt,lExtRelX:n.lExtRelX,rExt:i.rExt,rExtRelX:i.rExtRelX})}},A2=(r,n,i)=>{for(;i!==null&&r>=i.lowY;)i=i.next;return{lowY:r,index:n,next:i}};/*! @gera2ld/jsx-dom v2.1.1 | ISC License */var go=1,mo=2,rr=1,vo=4,b2="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xlink",w2={show:rt,actuate:rt,href:rt},_2=function(n){return typeof n=="string"||typeof n=="number"},C2=function(n){return(n==null?void 0:n.vtype)===go},k2=function(n){return(n==null?void 0:n.vtype)===mo};function en(r,n){var i;if(typeof r=="string")i=go;else if(typeof r=="function")i=mo;else throw new Error("Invalid VNode type");return{vtype:i,type:r,props:n}}function D2(r){return r.children}var E2={isSvg:!1};function vt(r,n){if(n.type===rr)n.node!=null&&r.append(n.node);else if(n.type===vo)n.children.forEach(function(i){vt(r,i)});else throw new Error("Unkown ref type "+JSON.stringify(n))}function S2(r,n,i){for(var a in n)a==="key"||a==="children"||a==="ref"||(a==="dangerouslySetInnerHTML"?r.innerHTML=n[a].__html:a==="innerHTML"||a==="textContent"||a==="innerText"?r[a]=n[a]:a.startsWith("on")?r[a.toLowerCase()]=n[a]:B2(r,a,n[a],i.isSvg))}var F2={className:"class",labelFor:"for"};function B2(r,n,i,a){if(n=F2[n]||n,i===!0)r.setAttribute(n,"");else if(i===!1)r.removeAttribute(n);else{var c=a?w2[n]:void 0;c!==void 0?r.setAttributeNS(c,n,i):r.setAttribute(n,i)}}function Fr(r,n){if(n===void 0&&(n=E2),r==null||typeof r=="boolean")return{type:rr,node:null};if(r instanceof Node)return{type:rr,node:r};if(k2(r)){var i=r,a=i.type,c=i.props;if(a===D2){var p=document.createDocumentFragment();if(c.children){var d=Fr(c.children,n);vt(p,d)}return{type:rr,node:p}}var g=a(c);return Fr(g,n)}if(_2(r))return{type:rr,node:document.createTextNode(""+r)};if(C2(r)){var v,A=r,x=A.type,k=A.props;!n.isSvg&&x==="svg"&&(n=Object.assign({},n,{isSvg:!0})),n.isSvg?v=document.createElementNS(b2,x):v=document.createElement(x),S2(v,k,n);var E;if(k.children){var D=n;n.isSvg&&x==="foreignObject"&&(D=Object.assign({},D,{isSvg:!1})),E=Fr(k.children,D)}E!=null&&vt(v,E);var Y=k.ref;return typeof Y=="function"&&Y(v),{type:rr,node:v}}if(Array.isArray(r))return{type:vo,children:r.map(function(z){return Fr(z,n)})};throw new Error("mount: Invalid Vnode!")}function xo(r){for(var n=[],i=0;i{i.ySizeInner=i.ySize-n,i.y+=n,a()},"children")}function ku(r,n){const i=Xc(r,n);return r[i]}function Du(r){r.stopPropagation()}function I2(){return{transformHtml:new Iu}}const N2=new Iu,q2=so(m0),L2=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh");class Ir{constructor(n,i){this.revokers=[],["handleZoom","handleClick","handlePan"].forEach(a=>{this[a]=this[a].bind(this)}),this.viewHooks=I2(),this.svg=n.datum?n:Xe(n),this.styleNode=this.svg.append("style"),this.zoom=T0().filter(a=>this.options.scrollForPan&&a.type==="wheel"?a.ctrlKey&&!a.button:(!a.ctrlKey||a.type==="wheel")&&!a.button).on("zoom",this.handleZoom),this.setOptions(i),this.state={id:this.options.id||this.svg.attr("id")||Gc()},this.g=this.svg.append("g"),this.revokers.push(N2.tap(()=>{this.setData()}))}getStyleContent(){const{style:n}=this.options,{id:i}=this.state,a=typeof n=="function"?n(i):"";return[this.options.embedGlobalCSS&&T2,a].filter(Boolean).join(`
    `)}updateStyle(){this.svg.attr("class",Yc(this.svg.attr("class"),"markmap",this.state.id));const n=this.getStyleContent();this.styleNode.text(n)}handleZoom(n){const{transform:i}=n;this.g.attr("transform",i)}handlePan(n){n.preventDefault();const i=ln(this.svg.node()),a=i.translate(-n.deltaX/i.k,-n.deltaY/i.k);this.svg.call(this.zoom.transform,a)}handleClick(n,i){var a;const{data:c}=i;c.payload=Ye({},c.payload,{fold:(a=c.payload)!=null&&a.fold?0:1}),this.renderData(i.data)}initializeData(n){let i=0;const{color:a,nodeMinHeight:c,maxWidth:p,initialExpandLevel:d}=this.options,{id:g}=this.state,v=an(en("div",{className:`markmap-container markmap ${g}-g`})),A=an(en("style",{children:[this.getStyleContent(),M2].join(`
    `)}));document.body.append(v,A);const x=p?`max-width: ${p}px`:"";let k=0;ut(n,(D,Y,z)=>{var Z,q,X;D.children=(Z=D.children)==null?void 0:Z.map(se=>Ye({},se)),i+=1;const ie=an(en("div",{className:"markmap-foreign",style:x,children:en("div",{dangerouslySetInnerHTML:{__html:D.content}})}));v.append(ie),D.state=Ye({},D.state,{id:i,el:ie.firstChild}),D.state.path=[z==null||(q=z.state)==null?void 0:q.path,D.state.id].filter(Boolean).join("."),a(D);const ae=((X=D.payload)==null?void 0:X.fold)===2;ae?k+=1:(k||d>=0&&D.depth>=d)&&(D.payload=Ye({},D.payload,{fold:1})),Y(),ae&&(k-=1)});const E=Nu(v.childNodes).map(D=>D.firstChild);this.viewHooks.transformHtml.call(this,E),E.forEach(D=>{D.parentNode.append(D.cloneNode(!0))}),ut(n,(D,Y,z)=>{var Z;const q=D.state.el.getBoundingClientRect();D.content=D.state.el.innerHTML,D.state.size=[Math.ceil(q.width)+1,Math.max(Math.ceil(q.height),c)],D.state.key=[z==null||(Z=z.state)==null?void 0:Z.id,D.state.id].filter(Boolean).join(".")+D.content,Y()}),v.remove(),A.remove()}setOptions(n){this.options=Ye({},Ir.defaultOptions,n),this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.svg.on("wheel",this.options.pan?this.handlePan:null)}setData(n,i){n&&(this.state.data=n),i&&this.setOptions(i),this.initializeData(this.state.data),this.updateStyle(),this.renderData()}renderData(n){var i,a;if(!this.state.data)return;const{spacingHorizontal:c,paddingX:p,spacingVertical:d,autoFit:g,color:v}=this.options,A=fo().children(C=>{var b;return!((b=C.payload)!=null&&b.fold)&&C.children}).nodeSize(C=>{const[b,M]=C.data.state.size;return[M,b+(b?p*2:0)+c]}).spacing((C,b)=>C.parent===b.parent?d:d*2),x=A.hierarchy(this.state.data);A(x),R2(x,c);const k=x.descendants().reverse(),E=x.links(),D=C0(),Y=iu(k,C=>C.x-C.xSize/2),z=tu(k,C=>C.x+C.xSize/2),Z=iu(k,C=>C.y),q=tu(k,C=>C.y+C.ySizeInner);Object.assign(this.state,{minX:Y,maxX:z,minY:Z,maxY:q}),g&&this.fit();const X=n&&k.find(C=>C.data===n)||x,ie=(i=X.data.state.x0)!=null?i:X.x,ae=(a=X.data.state.y0)!=null?a:X.y,se=this.g.selectAll(cr("g")).data(k,C=>C.data.state.key),fe=se.enter().append("g").attr("data-depth",C=>C.data.depth).attr("data-path",C=>C.data.state.path).attr("transform",C=>`translate(${ae+X.ySizeInner-C.ySizeInner},${ie+X.xSize/2-C.xSize})`),I=this.transition(se.exit());I.select("line").attr("x1",C=>C.ySizeInner).attr("x2",C=>C.ySizeInner),I.select("foreignObject").style("opacity",0),I.attr("transform",C=>`translate(${X.y+X.ySizeInner-C.ySizeInner},${X.x+X.xSize/2-C.xSize})`).remove();const R=se.merge(fe).attr("class",C=>{var b;return["markmap-node",((b=C.data.payload)==null?void 0:b.fold)&&"markmap-fold"].filter(Boolean).join(" ")});this.transition(R).attr("transform",C=>`translate(${C.y},${C.x-C.xSize/2})`);const $=R.selectAll(cr("line")).data(C=>[C],C=>C.data.state.key).join(C=>C.append("line").attr("x1",b=>b.ySizeInner).attr("x2",b=>b.ySizeInner),C=>C,C=>C.remove());this.transition($).attr("x1",-1).attr("x2",C=>C.ySizeInner+2).attr("y1",C=>C.xSize).attr("y2",C=>C.xSize).attr("stroke",C=>v(C.data)).attr("stroke-width",Cu);const V=R.selectAll(cr("circle")).data(C=>C.data.children?[C]:[],C=>C.data.state.key).join(C=>C.append("circle").attr("stroke-width","1.5").attr("cx",b=>b.ySizeInner).attr("cy",b=>b.xSize).attr("r",0).on("click",(b,M)=>this.handleClick(b,M)),C=>C,C=>C.remove());this.transition(V).attr("r",6).attr("cx",C=>C.ySizeInner).attr("cy",C=>C.xSize).attr("stroke",C=>v(C.data)).attr("fill",C=>{var b;return(b=C.data.payload)!=null&&b.fold&&C.data.children?v(C.data):"#fff"});const ue=R.selectAll(cr("foreignObject")).data(C=>[C],C=>C.data.state.key).join(C=>{const b=C.append("foreignObject").attr("class","markmap-foreign").attr("x",p).attr("y",0).style("opacity",0).on("mousedown",Du).on("dblclick",Du);return b.append("xhtml:div").select(function(S){const L=S.data.state.el.cloneNode(!0);return this.replaceWith(L),L}).attr("xmlns","http://www.w3.org/1999/xhtml"),b},C=>C,C=>C.remove()).attr("width",C=>Math.max(0,C.ySizeInner-p*2)).attr("height",C=>C.xSize);this.transition(ue).style("opacity",1);const J=this.g.selectAll(cr("path")).data(E,C=>C.target.data.state.key).join(C=>{const b=[ae+X.ySizeInner,ie+X.xSize/2];return C.insert("path","g").attr("class","markmap-link").attr("data-depth",M=>M.target.data.depth).attr("data-path",M=>M.target.data.state.path).attr("d",D({source:b,target:b}))},C=>C,C=>{const b=[X.y+X.ySizeInner,X.x+X.xSize/2];return this.transition(C).attr("d",D({source:b,target:b})).remove()});this.transition(J).attr("stroke",C=>v(C.target.data)).attr("stroke-width",C=>Cu(C.target)).attr("d",C=>{const b=[C.source.y+C.source.ySizeInner,C.source.x+C.source.xSize/2],M=[C.target.y,C.target.x+C.target.xSize/2];return D({source:b,target:M})}),k.forEach(C=>{C.data.state.x0=C.x,C.data.state.y0=C.y})}transition(n){const{duration:i}=this.options;return n.transition().duration(i)}async fit(){const n=this.svg.node(),{width:i,height:a}=n.getBoundingClientRect(),{fitRatio:c}=this.options,{minX:p,maxX:d,minY:g,maxY:v}=this.state,A=v-g,x=d-p,k=Math.min(i/A*c,a/x*c,2),E=An.translate((i-A*k)/2-g*k,(a-x*k)/2-p*k).scale(k);return this.transition(this.svg).call(this.zoom.transform,E).end().catch(Wn)}async ensureView(n,i){let a,c;if(this.g.selectAll(cr("g")).each(function(X){X.data===n&&(a=this,c=X)}),!a||!c)return;const p=this.svg.node(),d=p.getBoundingClientRect(),g=ln(p),[v,A]=[c.y,c.y+c.ySizeInner+2].map(q=>q*g.k+g.x),[x,k]=[c.x-c.xSize/2,c.x+c.xSize/2].map(q=>q*g.k+g.y),E=Ye({left:0,right:0,top:0,bottom:0},i),D=[E.left-v,d.width-E.right-A],Y=[E.top-x,d.height-E.bottom-k],z=D[0]*D[1]>0?ku(D,Math.abs)/g.k:0,Z=Y[0]*Y[1]>0?ku(Y,Math.abs)/g.k:0;if(z||Z){const q=g.translate(z,Z);return this.transition(this.svg).call(this.zoom.transform,q).end().catch(Wn)}}async rescale(n){const i=this.svg.node(),{width:a,height:c}=i.getBoundingClientRect(),p=a/2,d=c/2,g=ln(i),v=g.translate((p-g.x)*(1-n)/g.k,(d-g.y)*(1-n)/g.k).scale(n);return this.transition(this.svg).call(this.zoom.transform,v).end().catch(Wn)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this.revokers.forEach(n=>{n()})}static create(n,i,a){const c=new Ir(n,i);return a&&(c.setData(a),c.fit()),c}}Ir.defaultOptions={autoFit:!1,color:r=>q2(`${r.state.path}`),duration:500,embedGlobalCSS:!0,fitRatio:.95,maxWidth:0,nodeMinHeight:16,paddingX:8,scrollForPan:L2,spacingHorizontal:80,spacingVertical:5,initialExpandLevel:-1,zoom:!0,pan:!0};var Ao={exports:{}};(function(r,n){(function(i,a){a()})(fr,function(){function i(A,x){return typeof x>"u"?x={autoBom:!1}:typeof x!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),x={autoBom:!x}),x.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\uFEFF",A],{type:A.type}):A}function a(A,x,k){var E=new XMLHttpRequest;E.open("GET",A),E.responseType="blob",E.onload=function(){v(E.response,x,k)},E.onerror=function(){console.error("could not download file")},E.send()}function c(A){var x=new XMLHttpRequest;x.open("HEAD",A,!1);try{x.send()}catch{}return 200<=x.status&&299>=x.status}function p(A){try{A.dispatchEvent(new MouseEvent("click"))}catch{var x=document.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(x)}}var d=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof fr=="object"&&fr.global===fr?fr:void 0,g=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=d.saveAs||(typeof window!="object"||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!g?function(A,x,k){var E=d.URL||d.webkitURL,D=document.createElement("a");x=x||A.name||"download",D.download=x,D.rel="noopener",typeof A=="string"?(D.href=A,D.origin===location.origin?p(D):c(D.href)?a(A,x,k):p(D,D.target="_blank")):(D.href=E.createObjectURL(A),setTimeout(function(){E.revokeObjectURL(D.href)},4e4),setTimeout(function(){p(D)},0))}:"msSaveOrOpenBlob"in navigator?function(A,x,k){if(x=x||A.name||"download",typeof A!="string")navigator.msSaveOrOpenBlob(i(A,k),x);else if(c(A))a(A,x,k);else{var E=document.createElement("a");E.href=A,E.target="_blank",setTimeout(function(){p(E)})}}:function(A,x,k,E){if(E=E||open("","_blank"),E&&(E.document.title=E.document.body.innerText="downloading..."),typeof A=="string")return a(A,x,k);var D=A.type==="application/octet-stream",Y=/constructor/i.test(d.HTMLElement)||d.safari,z=/CriOS\/[\d]+/.test(navigator.userAgent);if((z||D&&Y||g)&&typeof FileReader<"u"){var Z=new FileReader;Z.onloadend=function(){var ie=Z.result;ie=z?ie:ie.replace(/^data:[^;]*;/,"data:attachment/file;"),E?E.location.href=ie:location=ie,E=null},Z.readAsDataURL(A)}else{var q=d.URL||d.webkitURL,X=q.createObjectURL(A);E?E.location=X:location.href=X,E=null,setTimeout(function(){q.revokeObjectURL(X)},4e4)}});d.saveAs=v.saveAs=v,r.exports=v})})(Ao);var nt=Ao.exports;function O2(r,n){if(r.match(/^[a-z]+:\/\//i))return r;if(r.match(/^\/\//))return window.location.protocol+r;if(r.match(/^[a-z]+:/i))return r;const i=document.implementation.createHTMLDocument(),a=i.createElement("base"),c=i.createElement("a");return i.head.appendChild(a),i.body.appendChild(c),n&&(a.href=n),c.href=r,c.href}const P2=(()=>{let r=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(r+=1,`u${n()}${r}`)})();function $e(r){const n=[];for(let i=0,a=r.length;iDe||r.height>De)&&(r.width>De&&r.height>De?r.width>r.height?(r.height*=De/r.width,r.width=De):(r.width*=De/r.height,r.height=De):r.width>De?(r.height*=De/r.width,r.width=De):(r.width*=De/r.height,r.height=De))}function mn(r){return new Promise((n,i)=>{const a=new Image;a.decode=()=>n(a),a.onload=()=>n(a),a.onerror=i,a.crossOrigin="anonymous",a.decoding="async",a.src=r})}async function j2(r){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function V2(r,n,i){const a="http://www.w3.org/2000/svg",c=document.createElementNS(a,"svg"),p=document.createElementNS(a,"foreignObject");return c.setAttribute("width",`${n}`),c.setAttribute("height",`${i}`),c.setAttribute("viewBox",`0 0 ${n} ${i}`),p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("externalResourcesRequired","true"),c.appendChild(p),p.appendChild(r),j2(c)}const we=(r,n)=>{if(r instanceof n)return!0;const i=Object.getPrototypeOf(r);return i===null?!1:i.constructor.name===n.name||we(i,n)};function G2(r){const n=r.getPropertyValue("content");return`${r.cssText} content: '${n.replace(/'|"/g,"")}';`}function Y2(r){return $e(r).map(n=>{const i=r.getPropertyValue(n),a=r.getPropertyPriority(n);return`${n}: ${i}${a?" !important":""};`}).join(" ")}function X2(r,n,i){const a=`.${r}:${n}`,c=i.cssText?G2(i):Y2(i);return document.createTextNode(`${a}{${c}}`)}function Eu(r,n,i){const a=window.getComputedStyle(r,i),c=a.getPropertyValue("content");if(c===""||c==="none")return;const p=P2();try{n.className=`${n.className} ${p}`}catch{return}const d=document.createElement("style");d.appendChild(X2(p,i,a)),n.appendChild(d)}function K2(r,n){Eu(r,n,":before"),Eu(r,n,":after")}const Su="application/font-woff",Fu="image/jpeg",W2={woff:Su,woff2:Su,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Fu,jpeg:Fu,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Z2(r){const n=/\.([^./]*?)$/g.exec(r);return n?n[1]:""}function Et(r){const n=Z2(r).toLowerCase();return W2[n]||""}function J2(r){return r.split(/,/)[1]}function xt(r){return r.search(/^(data:)/)!==-1}function wo(r,n){return`data:${n};base64,${r}`}async function _o(r,n,i){const a=await fetch(r,n);if(a.status===404)throw new Error(`Resource "${a.url}" not found`);const c=await a.blob();return new Promise((p,d)=>{const g=new FileReader;g.onerror=d,g.onloadend=()=>{try{p(i({res:a,result:g.result}))}catch(v){d(v)}},g.readAsDataURL(c)})}const tt={};function Q2(r,n,i){let a=r.replace(/\?.*/,"");return i&&(a=r),/ttf|otf|eot|woff2?/i.test(a)&&(a=a.replace(/.*\//,"")),n?`[${n}]${a}`:a}async function St(r,n,i){const a=Q2(r,n,i.includeQueryParams);if(tt[a]!=null)return tt[a];i.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let c;try{const p=await _o(r,i.fetchRequestInit,({res:d,result:g})=>(n||(n=d.headers.get("Content-Type")||""),J2(g)));c=wo(p,n)}catch(p){c=i.imagePlaceholder||"";let d=`Failed to fetch resource: ${r}`;p&&(d=typeof p=="string"?p:p.message),d&&console.warn(d)}return tt[a]=c,c}async function ed(r){const n=r.toDataURL();return n==="data:,"?r.cloneNode(!1):mn(n)}async function rd(r,n){if(r.currentSrc){const p=document.createElement("canvas"),d=p.getContext("2d");p.width=r.clientWidth,p.height=r.clientHeight,d==null||d.drawImage(r,0,0,p.width,p.height);const g=p.toDataURL();return mn(g)}const i=r.poster,a=Et(i),c=await St(i,a,n);return mn(c)}async function nd(r){var n;try{if(!((n=r==null?void 0:r.contentDocument)===null||n===void 0)&&n.body)return await bn(r.contentDocument.body,{},!0)}catch{}return r.cloneNode(!1)}async function td(r,n){return we(r,HTMLCanvasElement)?ed(r):we(r,HTMLVideoElement)?rd(r,n):we(r,HTMLIFrameElement)?nd(r):r.cloneNode(!1)}const id=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT";async function ud(r,n,i){var a,c;let p=[];return id(r)&&r.assignedNodes?p=$e(r.assignedNodes()):we(r,HTMLIFrameElement)&&(!((a=r.contentDocument)===null||a===void 0)&&a.body)?p=$e(r.contentDocument.body.childNodes):p=$e(((c=r.shadowRoot)!==null&&c!==void 0?c:r).childNodes),p.length===0||we(r,HTMLVideoElement)||await p.reduce((d,g)=>d.then(()=>bn(g,i)).then(v=>{v&&n.appendChild(v)}),Promise.resolve()),n}function od(r,n){const i=n.style;if(!i)return;const a=window.getComputedStyle(r);a.cssText?(i.cssText=a.cssText,i.transformOrigin=a.transformOrigin):$e(a).forEach(c=>{let p=a.getPropertyValue(c);c==="font-size"&&p.endsWith("px")&&(p=`${Math.floor(parseFloat(p.substring(0,p.length-2)))-.1}px`),we(r,HTMLIFrameElement)&&c==="display"&&p==="inline"&&(p="block"),c==="d"&&n.getAttribute("d")&&(p=`path(${n.getAttribute("d")})`),i.setProperty(c,p,a.getPropertyPriority(c))})}function ld(r,n){we(r,HTMLTextAreaElement)&&(n.innerHTML=r.value),we(r,HTMLInputElement)&&n.setAttribute("value",r.value)}function ad(r,n){if(we(r,HTMLSelectElement)){const i=n,a=Array.from(i.children).find(c=>r.value===c.getAttribute("value"));a&&a.setAttribute("selected","")}}function sd(r,n){return we(n,Element)&&(od(r,n),K2(r,n),ld(r,n),ad(r,n)),n}async function cd(r,n){const i=r.querySelectorAll?r.querySelectorAll("use"):[];if(i.length===0)return r;const a={};for(let p=0;ptd(a,n)).then(a=>ud(r,a,n)).then(a=>sd(r,a)).then(a=>cd(a,n))}const Co=/url\((['"]?)([^'"]+?)\1\)/g,fd=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,hd=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function pd(r){const n=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function dd(r){const n=[];return r.replace(Co,(i,a,c)=>(n.push(c),i)),n.filter(i=>!xt(i))}async function gd(r,n,i,a,c){try{const p=i?O2(n,i):n,d=Et(n);let g;if(c){const v=await c(p);g=wo(v,d)}else g=await St(p,d,a);return r.replace(pd(n),`$1${g}$3`)}catch{}return r}function md(r,{preferredFontFormat:n}){return n?r.replace(hd,i=>{for(;;){const[a,,c]=fd.exec(i)||[];if(!c)return"";if(c===n)return`src: ${a};`}}):r}function ko(r){return r.search(Co)!==-1}async function Do(r,n,i){if(!ko(r))return r;const a=md(r,i);return dd(a).reduce((p,d)=>p.then(g=>gd(g,d,n,i)),Promise.resolve(a))}async function rn(r,n,i){var a;const c=(a=n.style)===null||a===void 0?void 0:a.getPropertyValue(r);if(c){const p=await Do(c,null,i);return n.style.setProperty(r,p,n.style.getPropertyPriority(r)),!0}return!1}async function vd(r,n){await rn("background",r,n)||await rn("background-image",r,n),await rn("mask",r,n)||await rn("mask-image",r,n)}async function xd(r,n){const i=we(r,HTMLImageElement);if(!(i&&!xt(r.src))&&!(we(r,SVGImageElement)&&!xt(r.href.baseVal)))return;const a=i?r.src:r.href.baseVal,c=await St(a,Et(a),n);await new Promise((p,d)=>{r.onload=p,r.onerror=d;const g=r;g.decode&&(g.decode=p),g.loading==="lazy"&&(g.loading="eager"),i?(r.srcset="",r.src=c):r.href.baseVal=c})}async function yd(r,n){const a=$e(r.childNodes).map(c=>Eo(c,n));await Promise.all(a).then(()=>r)}async function Eo(r,n){we(r,Element)&&(await vd(r,n),await xd(r,n),await yd(r,n))}function Ad(r,n){const{style:i}=r;n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.width&&(i.width=`${n.width}px`),n.height&&(i.height=`${n.height}px`);const a=n.style;return a!=null&&Object.keys(a).forEach(c=>{i[c]=a[c]}),r}const Bu={};async function Tu(r){let n=Bu[r];if(n!=null)return n;const a=await(await fetch(r)).text();return n={url:r,cssText:a},Bu[r]=n,n}async function Mu(r,n){let i=r.cssText;const a=/url\(["']?([^"')]+)["']?\)/g,p=(i.match(/url\([^)]+\)/g)||[]).map(async d=>{let g=d.replace(a,"$1");return g.startsWith("https://")||(g=new URL(g,r.url).href),_o(g,n.fetchRequestInit,({result:v})=>(i=i.replace(d,`url(${v})`),[d,v]))});return Promise.all(p).then(()=>i)}function Ru(r){if(r==null)return[];const n=[],i=/(\/\*[\s\S]*?\*\/)/gi;let a=r.replace(i,"");const c=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const v=c.exec(a);if(v===null)break;n.push(v[0])}a=a.replace(c,"");const p=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,d="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",g=new RegExp(d,"gi");for(;;){let v=p.exec(a);if(v===null){if(v=g.exec(a),v===null)break;p.lastIndex=g.lastIndex}else g.lastIndex=p.lastIndex;n.push(v[0])}return n}async function bd(r,n){const i=[],a=[];return r.forEach(c=>{if("cssRules"in c)try{$e(c.cssRules||[]).forEach((p,d)=>{if(p.type===CSSRule.IMPORT_RULE){let g=d+1;const v=p.href,A=Tu(v).then(x=>Mu(x,n)).then(x=>Ru(x).forEach(k=>{try{c.insertRule(k,k.startsWith("@import")?g+=1:c.cssRules.length)}catch(E){console.error("Error inserting rule from remote css",{rule:k,error:E})}})).catch(x=>{console.error("Error loading remote css",x.toString())});a.push(A)}})}catch(p){const d=r.find(g=>g.href==null)||document.styleSheets[0];c.href!=null&&a.push(Tu(c.href).then(g=>Mu(g,n)).then(g=>Ru(g).forEach(v=>{d.insertRule(v,c.cssRules.length)})).catch(g=>{console.error("Error loading remote stylesheet",g)})),console.error("Error inlining remote css file",p)}}),Promise.all(a).then(()=>(r.forEach(c=>{if("cssRules"in c)try{$e(c.cssRules||[]).forEach(p=>{i.push(p)})}catch(p){console.error(`Error while reading CSS rules from ${c.href}`,p)}}),i))}function wd(r){return r.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>ko(n.style.getPropertyValue("src")))}async function _d(r,n){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");const i=$e(r.ownerDocument.styleSheets),a=await bd(i,n);return wd(a)}async function Cd(r,n){const i=await _d(r,n);return(await Promise.all(i.map(c=>{const p=c.parentStyleSheet?c.parentStyleSheet.href:null;return Do(c.cssText,p,n)}))).join(`
    `)}async function kd(r,n){const i=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await Cd(r,n);if(i){const a=document.createElement("style"),c=document.createTextNode(i);a.appendChild(c),r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a)}}async function Dd(r,n={}){const{width:i,height:a}=bo(r,n),c=await bn(r,n,!0);return await kd(c,n),await Eo(c,n),Ad(c,n),await V2(c,i,a)}async function Ed(r,n={}){const{width:i,height:a}=bo(r,n),c=await Dd(r,n),p=await mn(c),d=document.createElement("canvas"),g=d.getContext("2d"),v=n.pixelRatio||U2(),A=n.canvasWidth||i,x=n.canvasHeight||a;return d.width=A*v,d.height=x*v,n.skipAutoScale||H2(d),d.style.width=`${A}`,d.style.height=`${x}`,n.backgroundColor&&(g.fillStyle=n.backgroundColor,g.fillRect(0,0,d.width,d.height)),g.drawImage(p,0,0,d.width,d.height),d}async function Sd(r,n={}){return(await Ed(r,n)).toDataURL()}var So={exports:{}};(function(r){(function(n){var i=ie(),a=ae(),c=se(),p=fe(),d={imagePlaceholder:void 0,cacheBust:!1},g={toSvg:v,toPng:x,toJpeg:k,toBlob:E,toPixelData:A,impl:{fontFaces:c,images:p,util:i,inliner:a,options:{}}};r.exports=g;function v(I,R){return R=R||{},D(R),Promise.resolve(I).then(function(V){return z(V,R.filter,!0)}).then(Z).then(q).then($).then(function(V){return X(V,R.width||i.width(I),R.height||i.height(I))});function $(V){return R.bgcolor&&(V.style.backgroundColor=R.bgcolor),R.width&&(V.style.width=R.width+"px"),R.height&&(V.style.height=R.height+"px"),R.style&&Object.keys(R.style).forEach(function(ue){V.style[ue]=R.style[ue]}),V}}function A(I,R){return Y(I,R||{}).then(function($){return $.getContext("2d").getImageData(0,0,i.width(I),i.height(I)).data})}function x(I,R){return Y(I,R||{}).then(function($){return $.toDataURL()})}function k(I,R){return R=R||{},Y(I,R).then(function($){return $.toDataURL("image/jpeg",R.quality||1)})}function E(I,R){return Y(I,R||{}).then(i.canvasToBlob)}function D(I){typeof I.imagePlaceholder>"u"?g.impl.options.imagePlaceholder=d.imagePlaceholder:g.impl.options.imagePlaceholder=I.imagePlaceholder,typeof I.cacheBust>"u"?g.impl.options.cacheBust=d.cacheBust:g.impl.options.cacheBust=I.cacheBust}function Y(I,R){return v(I,R).then(i.makeImage).then(i.delay(100)).then(function(V){var ue=$(I);return ue.getContext("2d").drawImage(V,0,0),ue});function $(V){var ue=document.createElement("canvas");if(ue.width=R.width||i.width(V),ue.height=R.height||i.height(V),R.bgcolor){var J=ue.getContext("2d");J.fillStyle=R.bgcolor,J.fillRect(0,0,ue.width,ue.height)}return ue}}function z(I,R,$){if(!$&&R&&!R(I))return Promise.resolve();return Promise.resolve(I).then(V).then(function(C){return ue(I,C,R)}).then(function(C){return J(I,C)});function V(C){return C instanceof HTMLCanvasElement?i.makeImage(C.toDataURL()):C.cloneNode(!1)}function ue(C,b,M){var S=C.childNodes;if(S.length===0)return Promise.resolve(b);return L(b,i.asArray(S),M).then(function(){return b});function L(K,W,U){var re=Promise.resolve();return W.forEach(function(oe){re=re.then(function(){return z(oe,U)}).then(function(ce){ce&&K.appendChild(ce)})}),re}}function J(C,b){if(!(b instanceof Element))return b;return Promise.resolve().then(M).then(S).then(L).then(K).then(function(){return b});function M(){W(window.getComputedStyle(C),b.style);function W(U,re){U.cssText?re.cssText=U.cssText:oe(U,re);function oe(ce,le){i.asArray(ce).forEach(function(P){le.setProperty(P,ce.getPropertyValue(P),ce.getPropertyPriority(P))})}}}function S(){[":before",":after"].forEach(function(U){W(U)});function W(U){var re=window.getComputedStyle(C,U),oe=re.getPropertyValue("content");if(oe===""||oe==="none")return;var ce=i.uid();b.className=b.className+" "+ce;var le=document.createElement("style");le.appendChild(P(ce,U,re)),b.appendChild(le);function P(G,te,ne){var he="."+G+":"+te,Fe=ne.cssText?ge(ne):O(ne);return document.createTextNode(he+"{"+Fe+"}");function ge(Be){var me=Be.getPropertyValue("content");return Be.cssText+" content: "+me+";"}function O(Be){return i.asArray(Be).map(me).join("; ")+";";function me(Oe){return Oe+": "+Be.getPropertyValue(Oe)+(Be.getPropertyPriority(Oe)?" !important":"")}}}}}function L(){C instanceof HTMLTextAreaElement&&(b.innerHTML=C.value),C instanceof HTMLInputElement&&b.setAttribute("value",C.value)}function K(){b instanceof SVGElement&&(b.setAttribute("xmlns","http://www.w3.org/2000/svg"),b instanceof SVGRectElement&&["width","height"].forEach(function(W){var U=b.getAttribute(W);U&&b.style.setProperty(W,U)}))}}}function Z(I){return c.resolveAll().then(function(R){var $=document.createElement("style");return I.appendChild($),$.appendChild(document.createTextNode(R)),I})}function q(I){return p.inlineAll(I).then(function(){return I})}function X(I,R,$){return Promise.resolve(I).then(function(V){return V.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(V)}).then(i.escapeXhtml).then(function(V){return''+V+""}).then(function(V){return''+V+""}).then(function(V){return"data:image/svg+xml;charset=utf-8,"+V})}function ie(){return{escape:K,parseExtension:R,mimeType:$,dataAsUrl:L,isDataUrl:V,canvasToBlob:J,resolveUrl:C,getAndEncode:S,uid:b(),delay:W,asArray:U,escapeXhtml:re,makeImage:M,width:oe,height:ce};function I(){var P="application/font-woff",G="image/jpeg";return{woff:P,woff2:P,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:G,jpeg:G,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function R(P){var G=/\.([^\.\/]*?)$/g.exec(P);return G?G[1]:""}function $(P){var G=R(P).toLowerCase();return I()[G]||""}function V(P){return P.search(/^(data:)/)!==-1}function ue(P){return new Promise(function(G){for(var te=window.atob(P.toDataURL().split(",")[1]),ne=te.length,he=new Uint8Array(ne),Fe=0;Fe{setTimeout(()=>{Y()},1e3)});let z;function Z(){const I=new XMLSerializer().serializeToString(E.value),R=new Blob([I],{type:"image/svg+xml;charset=utf-8"});nt.saveAs(R,"nineai-mind.svg")}async function q(){const R=`
    
    
    
      
      Markmap Export
    
    
      ${await Bd.toSvg(E.value)}
    
    `,$=new Blob([R],{type:"text/html;charset=utf-8"});nt.saveAs($,"nineai-mind.html")}async function X(){g.value=!0,D.value="";try{const I="";let R="";const $=()=>(D.value=R,g.value?!0:(D.value=R,!1)),V=setInterval(()=>{$()||clearInterval(V)},1e3);await(async()=>{await $c({prompt:x.value,onDownloadProgress:({event:J})=>{const C=J.target,{responseText:b}=C,M=b.lastIndexOf(`
    `,b.length-2);let S=b;M!==-1&&(S=b.substring(M));try{const L=JSON.parse(S);R=I+(L.text??"")}catch{}}}),g.value=!1})()}catch(I){g.value=!1;const{code:R=500,message:$="好像出错了,请稍后再试!"}=I;if(R===429&&$.includes("balance has been exhausted"))return a.error("当前系统Key余额耗尽、请联系管理员补充!");if(R===500){let V=(I==null?void 0:I.message)??"好像出错了,请稍后再试!";V==="Request failed with status code 401"&&(V="非法操作、请先登录后再进行问答使用!"),a.error(V);return}if(I.code===402){a.error(I.message,{duration:5e3}),i.updateGoodsDialog(!0);return}a.error("出了点小错误、请稍后试试吧!")}finally{g.value=!1}}async function ie(){const I=await Sd(E.value);nt.saveAs(I,"markmap.png")}function ae(){D.value=A}const se=()=>{const{root:I}=d.transform(D.value);z.setData(I),z.fit()};return Qi(()=>{z=Ir.create(E.value),se()}),zc(se),(I,R)=>(Wr(),Kr("div",Td,[Ee("div",Md,[Ee("div",Rd,[ke(v)?(Wr(),Kr("header",Id,qd)):eu("",!0),Ld,Me(ke(ru),{ref_key:"inputRef",ref:p,value:x.value,"onUpdate:value":R[0]||(R[0]=$=>x.value=$),type:"textarea",disabled:g.value,autosize:{minRows:3},placeholder:"请输入您想要生成内容的简单描述、AI将为您输出一份完整的markdown内容及其思维导图!"},null,8,["value","disabled"]),Ee("div",Od,[Me(ke(Cr),{type:"primary",size:"small",style:{width:"100%"},loading:g.value,onClick:X},{default:sr(()=>[_r(" 智能生成生成思维导图 ")]),_:1},8,["loading"])]),Ee("div",Pd,[zd,Me(ke(Cr),{text:"",onClick:ae},{default:sr(()=>[_r(" 试试示例 ")]),_:1})]),Me(ke(ru),{value:D.value,"onUpdate:value":R[1]||(R[1]=$=>D.value=$),type:"textarea",disabled:g.value,autosize:{minRows:8,maxRows:24},placeholder:"请用markdown语法输入您想要生成思维导图的内容或在上方使用描述让AI帮您完善!"},null,8,["value","disabled"])]),Ee("div",$d,[Ud,Ee("div",null,[Me(ke(Uc),{size:"small"},{default:sr(()=>[Me(ke(Cr),{type:"primary",onClick:q},{default:sr(()=>[Me(ke(Kn),{icon:"ri:error-warning-line",class:"text-base"}),_r(" 导出HTML ")]),_:1}),Me(ke(Cr),{type:"primary",onClick:ie},{default:sr(()=>[Me(ke(Kn),{icon:"ri:error-warning-line",class:"text-base"}),_r(" 导出PNG ")]),_:1}),Me(ke(Cr),{type:"warning",onClick:Z},{default:sr(()=>[Me(ke(Kn),{icon:"ri:error-warning-line",class:"text-base"}),_r(" 导出SVG ")]),_:1})]),_:1})])])]),Ee("div",Hd,[ke(v)?eu("",!0):(Wr(),Kr("header",jd,Gd)),Ee("div",Yd,[(Wr(),Kr("svg",{ref_key:"svgRef",ref:E,class:"box-border w-full h-full border rounded-md"},null,512))])])]))}});export{Qd as default};