|
|
"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[317],{80317:function(t,e,n){n.d(e,{Z:function(){return Vwt}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"h-full"},[n("halo-editor",{ref:"editor",attrs:{boxShadow:!1,subfield:t.subfield,toolbars:t.toolbars,uploadRequest:t.handleAttachmentUpload,autofocus:""},on:{change:t.handleChange,openImagePicker:function(e){t.attachmentSelectVisible=!0},save:t.handleSave},model:{value:t.originalContentData,callback:function(e){t.originalContentData=e},expression:"originalContentData"}}),n("AttachmentSelectModal",{attrs:{visible:t.attachmentSelectVisible},on:{"update:visible":function(e){t.attachmentSelectVisible=e},confirm:t.handleSelectAttachment}})],1)},i=[];n(31875),n(21082),n(93418);const a={F8:119,F9:120,F10:121,F11:122,F12:123,B:66,I:73,H:72,U:85,D:68,M:77,Q:81,O:79,L:76,S:83,Z:90,Y:89,C:67,T:84,R:82,DELETE:8,TAB:9,ENTER:13,ONE:97,TWO:98,THREE:99,FOUR:100,FIVE:101,SIX:102,_ONE:49,_TWO:50,_THREE:51,_FOUR:52,_FIVE:53,_SIX:54},o=t=>{t.shortCut&&t.$el.addEventListener("keydown",(function(e){if(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)if(!e.ctrlKey&&!e.metaKey||e.altKey||e.shiftKey){if((e.ctrlKey||e.metaKey)&&e.altKey&&!e.shiftKey)switch(e.keyCode){case a.S:e.preventDefault(),t.clickCommands("superscript");break;case a.U:e.preventDefault(),t.clickCommands("ul");break;case a.L:e.preventDefault(),t.clickCommands("imagelink");break;case a.C:e.preventDefault(),t.clickCommands("code");break;case a.T:e.preventDefault(),t.clickCommands("table");break}else if((e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey)switch(e.keyCode){case a.S:e.preventDefault(),t.clickCommands("subscript");break;case a.D:e.preventDefault(),t.clickCommands("strikethrough");break;case a.I:e.preventDefault(),t.openImagePicker();break}}else switch(e.keyCode){case a.B:e.preventDefault(),t.clickCommands("bold");break;case a.I:e.preventDefault(),t.clickCommands("italic");break;case a.H:e.preventDefault(),t.clickCommands("header",{level:1});break;case a.U:e.preventDefault(),t.clickCommands("underline");break;case a.Q:e.preventDefault(),t.clickCommands("quote");break;case a.O:e.preventDefault(),t.clickCommands("ol");break;case a.L:e.preventDefault(),t.insertLink("","");break;case a.ONE:case a._ONE:e.preventDefault(),t.clickCommands("header",{level:1});break;case a.TWO:case a._TWO:e.preventDefault(),t.clickCommands("header",{level:2});break;case a.THREE:case a._THREE:e.preventDefault(),t.clickCommands("header",{level:3});break;case a.FOUR:case a._FOUR:e.preventDefault(),t.clickCommands("header",{level:4});break;case a.FIVE:case a._FIVE:e.preventDefault(),t.clickCommands("header",{level:5});break;case a.SIX:case a._SIX:e.preventDefault(),t.clickCommands("header",{level:6});break}else switch(e.keyCode){case a.F8:t.toolbars.navigation&&(e.preventDefault(),t.toolbar_right_click("navigation"));break;case a.F9:t.toolbars.preview&&(e.preventDefault(),t.toolbar_right_click("preview"));break;case a.F10:t.toolbars.fullscreen&&(e.preventDefault(),t.toolbar_right_click("fullscreen"));break;case a.F11:t.toolbars.readmodel&&(e.preventDefault(),t.toolbar_right_click("read"));break;case a.F12:t.toolbars.subfield&&(e.preventDefault(),t.toolbar_right_click("subfield"));break;case a.ENTER:t.$refs.toolbar_left.s_img_link_open&&(e.preventDefault(),t.$refs.toolbar_left.handleAddLink());break}}))},s=t=>{let e;e=t.$refs.navigationContent,e.innerHTML=t.d_render;let n=e.children;if(n.length)for(let i=0;i<n.length;i++)r(n[i],i);function r(e,n){let r=/^H[1-6]{1}$/;r.exec(e.tagName)?e.onclick=function(){const e=t.$refs.vShowContent;t.s_preview_switch&&e&&(e.scrollTop=e.children[n].offsetTop)}:e.style.display="none"}},l=t=>{t.$el.addEventListener("fullscreenchange",(function(){t.$toolbar_right_read_change_status()}),!1),t.$el.addEventListener("mozfullscreenchange",(function(){t.$toolbar_right_read_change_status()}),!1),t.$el.addEventListener("webkitfullscreenchange",(function(){t.$toolbar_right_read_change_status()}),!1),t.$el.addEventListener("msfullscreenchange",(function(){t.$toolbar_right_read_change_status()}),!1)},c=t=>{t.$refs.vShowContent.addEventListener("click",(function(e){e=e||window.event;let n=e.srcElement?e.srcElement:e.target;"IMG"===n.tagName&&(null!=t.imageClick?t.imageClick(n):t.d_preview_imgsrc=n.src)}))};function u(t){t.s_html_code=!t.s_html_code,t.htmlcode&&t.htmlcode(t.s_html_code,t.d_value)}function h(t){let e=t.$refs.vReadModel;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}function f(t){t.s_preview_switch=!t.s_preview_switch,t.previewtoggle&&t.previewtoggle(t.s_preview_switch,t.d_value)}function d(t){t.s_fullScreen=!t.s_fullScreen,t.fullscreen&&t.fullscreen(t.s_fullScreen,t.d_value)}function p(t){t.s_subfield=!t.s_subfield,t.s_preview_switch=t.s_subfield,t.previewtoggle&&t.previewtoggle(t.s_preview_switch,t.d_value),t.subfieldtoggle&&t.subfieldtoggle(t.s_subfield,t.d_value)}function g(t){t.s_navigation=!t.s_navigation,t.s_navigation&&(t.s_preview_switch=!0),t.navigationtoggle&&t.navigationtoggle(t.s_navigation,t.d_value),t.s_navigation&&t.getNavigation(t,!1)}const m=(t,e)=>{var n={html:u,read:h,preview:f,fullscreen:d,navigation:g,subfield:p};n.hasOwnProperty(t)&&n[t](e)},y={toolbars:{bold:!0,italic:!0,header:!0,underline:!0,strikethrough:!0,superscript:!0,subscript:!0,quote:!0,ol:!0,ul:!0,link:!0,imagelink:!0,code:!0,table:!0,undo:!0,redo:!0,save:!0,navigation:!0,subfield:!0,fullscreen:!0,readmodel:!0,htmlcode:!0,preview:!0}};var v=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,x=(t,e)=>{var n={};for(var r in t)b.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&v)for(var r of v(t))e.indexOf(r)<0&&_.call(t,r)&&(n[r]=t[r]);return n},w="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function k(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})})),e}var C=1/0,E="[object Symbol]",S=/[&<>"'`]/g,T=RegExp(S.source),A={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},M="object"==typeof w&&w&&w.Object===Object&&w,N="object"==typeof self&&self&&self.Object===Object&&self,D=M||N||Function("return this")();function O(t){return function(e){return null==t?void 0:t[e]}}var L=O(A),B=Object.prototype,I=B.toString,R=D.Symbol,F=R?R.prototype:void 0,P=F?F.toString:void 0;function z(t){if("string"==typeof t)return t;if(j(t))return P?P.call(t):"";var e=t+"";return"0"==e&&1/t==-C?"-0":e}function q(t){return!!t&&"object"==typeof t}function j(t){return"symbol"==typeof t||q(t)&&I.call(t)==E}function H(t){return null==t?"":z(t)}function U(t){return t=H(t),t&&T.test(t)?t.replace(S,L):t}var $=U,W={};const Y="Á",V="á",G="Ă",X="ă",Z="∾",K="∿",Q="∾̳",J="Â",tt="â",et="´",nt="А",rt="а",it="Æ",at="æ",ot="",st="𝔄",lt="𝔞",ct="À",ut="à",ht="ℵ",ft="ℵ",dt="Α",pt="α",gt="Ā",mt="ā",yt="⨿",vt="&",bt="&",_t="⩕",xt="⩓",wt="∧",kt="⩜",Ct="⩘",Et="⩚",St="∠",Tt="⦤",At="∠",Mt="⦨",Nt="⦩",Dt="⦪",Ot="⦫",Lt="⦬",Bt="⦭",It="⦮",Rt="⦯",Ft="∡",Pt="∟",zt="⊾",qt="⦝",jt="∢",Ht="Å",Ut="⍼",$t="Ą",Wt="ą",Yt="𝔸",Vt="𝕒",Gt="⩯",Xt="≈",Zt="⩰",Kt="≊",Qt="≋",Jt="'",te="",ee="≈",ne="≊",re="Å",ie="å",ae="𝒜",oe="𝒶",se="≔",le="*",ce="≈",ue="≍",he="Ã",fe="ã",de="Ä",pe="ä",ge="∳",me="⨑",ye="≌",ve="϶",be="‵",_e="∽",xe="⋍",we="∖",ke="⫧",Ce="⊽",Ee="⌅",Se="⌆",Te="⌅",Ae="⎵",Me="⎶",Ne="≌",De="Б",Oe="б",Le="„",Be="∵",Ie="∵",Re="∵",Fe="⦰",Pe="϶",ze="ℬ",qe="ℬ",je="Β",He="β",Ue="ℶ",$e="≬",We="𝔅",Ye="𝔟",Ve="⋂",Ge="◯",Xe="⋃",Ze="⨀",Ke="⨁",Qe="⨂",Je="⨆",tn="★",en="▽",nn="△",rn="⨄",an="⋁",on="⋀",sn="⤍",ln="⧫",cn="▪",un="▴",hn="▾",fn="◂",dn="▸",pn="␣",gn="▒",mn="░",yn="▓",vn="█",bn="=⃥",_n="≡⃥",xn="⫭",wn="⌐",kn="𝔹",Cn="𝕓",En="⊥",Sn="⊥",Tn="⋈",An="⧉",Mn="┐",Nn="╕",Dn="╖",On="╗",Ln="┌",Bn="╒",In="╓",Rn="╔",Fn="─",Pn="═",zn="┬",qn="╤",jn="╥",Hn="╦",Un="┴",$n="╧",Wn="╨",Yn="╩",Vn="⊟",Gn="⊞",Xn="⊠",Zn="┘",Kn="╛",Qn="╜",Jn="╝",tr="└",er="╘",nr="╙",rr="╚",ir="│",ar="║",or="┼",sr="╪",lr="╫",cr="╬",ur="┤",hr="╡",fr="╢",dr="╣",pr="├",gr="╞",mr="╟",yr="╠",vr="‵",br="˘",_r="˘",xr="¦",wr="𝒷",kr="ℬ",Cr="⁏",Er="∽",Sr="⋍",Tr="⧅",Ar="\\",Mr="⟈",Nr="•",Dr="•",Or="≎",Lr="⪮",Br="≏",Ir="≎",Rr="≏",Fr="Ć",Pr="ć",zr="⩄",qr="⩉",jr="⩋",Hr="∩",Ur="⋒",$r="⩇",Wr="⩀",Yr="ⅅ",Vr="∩︀",Gr="⁁",Xr="ˇ",Zr="ℭ",Kr="⩍",Qr="Č",Jr="č",ti="Ç",ei="ç",ni="Ĉ",ri="ĉ",ii="∰",ai="⩌",oi="⩐",si="Ċ",li="ċ",ci="¸",ui="¸",hi="⦲",fi="¢",di="·",pi="·",gi="𝔠",mi="ℭ",yi="Ч",vi="ч",bi="✓",_i="✓",xi="Χ",wi="χ",ki="ˆ",Ci="≗",Ei="↺",Si="↻",Ti="⊛",Ai="⊚",Mi="⊝",Ni="⊙",Di="®",Oi="Ⓢ",Li="⊖",Bi="⊕",Ii="⊗",Ri="○",Fi="⧃",Pi="≗",zi="⨐",qi="⫯",ji="⧂",Hi="∲",Ui="”",$i="’",Wi="♣",Yi="♣",Vi=":",Gi="∷",Xi="⩴",Zi="≔",Ki="≔",Qi=",",Ji="@",ta="∁",ea="∘",na="∁",ra="ℂ",ia="≅",aa="⩭",oa="≡",sa="∮",la="∯",ca="∮",ua="𝕔",ha="ℂ",fa="∐",da="∐",pa="©",ga="©",ma="℗",ya="∳",va="↵",ba="✗",_a="⨯",xa="𝒞",wa="𝒸",ka="⫏",Ca="⫑",Ea="⫐",Sa="⫒",Ta="⋯",Aa="⤸",Ma="⤵",Na="⋞",Da="⋟",Oa="↶",La="⤽",Ba="⩈",Ia="⩆",Ra="≍",Fa="∪",Pa="⋓",za="⩊",qa="⊍",ja="⩅",Ha="∪︀",Ua="↷",$a="⤼",Wa="⋞",Ya="⋟",Va="⋎",Ga="⋏",Xa="¤",Za="↶",Ka="↷",Qa="⋎",Ja="⋏",to="∲",eo="∱",no="⌭",ro="†",io="‡",ao="ℸ",oo="↓",so="↡",lo="⇓",co="‐",uo="⫤",ho="⊣",fo="⤏",po="˝",go="Ď",mo="ď",yo="Д",vo="д",bo="‡",_o="⇊",xo="ⅅ",wo="ⅆ",ko="⤑",Co="⩷",Eo="°",So="∇",To="Δ",Ao="δ",Mo="⦱",No="⥿",Do="𝔇",Oo="𝔡",Lo="⥥",Bo="⇃",Io="⇂",Ro="´",Fo="˙",Po="˝",zo="`",qo="˜",jo="⋄",Ho="⋄",Uo="⋄",$o="♦",Wo="♦",Yo="¨",Vo="ⅆ",Go="ϝ",Xo="⋲",Zo="÷",Ko="÷",Qo="⋇",Jo="⋇",ts="Ђ",es="ђ",ns="⌞",rs="⌍",is="$",as="𝔻",os="𝕕",ss="¨",ls="˙",cs="⃜",us="≐",hs="≑",fs="≐",ds="∸",ps="∔",gs="⊡",ms="⌆",ys="∯",vs="¨",bs="⇓",_s="⇐",xs="⇔",ws="⫤",ks="⟸",Cs="⟺",Es="⟹",Ss="⇒",Ts="⊨",As="⇑",Ms="⇕",Ns="∥",Ds="⤓",Os="↓",Ls="↓",Bs="⇓",Is="⇵",Rs="̑",Fs="⇊",Ps="⇃",zs="⇂",qs="⥐",js="⥞",Hs="⥖",Us="↽",$s="⥟",Ws="⥗",Ys="⇁",Vs="↧",Gs="⊤",Xs="⤐",Zs="⌟",Ks="⌌",Qs="𝒟",Js="𝒹",tl="Ѕ",el="ѕ",nl="⧶",rl="Đ",il="đ",al="⋱",ol="▿",sl="▾",ll="⇵",cl="⥯",ul="⦦",hl="Џ",fl="џ",dl="⟿",pl="É",gl="é",ml="⩮",yl="Ě",vl="ě",bl="Ê",_l="ê",xl="≖",wl="≕",kl="Э",Cl="э",El="⩷",Sl="Ė",Tl="ė",Al="≑",Ml="ⅇ",Nl="≒",Dl="𝔈",Ol="𝔢",Ll="⪚",Bl="È",Il="è",Rl="⪖",Fl="⪘",Pl="⪙",zl="∈",ql="⏧",jl="ℓ",Hl="⪕",Ul="⪗",$l="Ē",Wl="ē",Yl="∅",Vl="∅",Gl="◻",Xl="∅",Zl="▫",Kl=" ",Ql=" ",Jl=" ",tc="Ŋ",ec="ŋ",nc=" ",rc="Ę",ic="ę",ac="𝔼",oc="𝕖",sc="⋕",lc="⧣",cc="⩱",uc="ε",hc="Ε",fc="ε",dc="ϵ",pc="≖",gc="≕",mc="≂",yc="⪖",vc="⪕",bc="⩵",_c="=",xc="≂",wc="≟",kc="⇌",Cc="≡",Ec="⩸",Sc="⧥",Tc="⥱",Ac="≓",Mc="ℯ",Nc="ℰ",Dc="≐",Oc="⩳",Lc="≂",Bc="Η",Ic="η",Rc="Ð",Fc="ð",Pc="Ë",zc="ë",qc="€",jc="!",Hc="∃",Uc="∃",$c="ℰ",Wc="ⅇ",Yc="ⅇ",Vc="≒",Gc="Ф",Xc="ф",Zc="♀",Kc="ffi",Qc="ff",Jc="ffl",tu="𝔉",eu="𝔣",nu="fi",ru="◼",iu="▪",au="fj",ou="♭",su="fl",lu="▱",cu="ƒ",uu="𝔽",hu="𝕗",fu="∀",du="∀",pu="⋔",gu="⫙",mu="ℱ",yu="⨍",vu="½",bu="⅓",_u="¼",xu="⅕",wu="⅙",ku="⅛",Cu="⅔",Eu="⅖",Su="¾",Tu="⅗",Au="⅜",Mu="⅘",Nu="⅚",Du="⅝",Ou="⅞",Lu="⁄",Bu="⌢",Iu="𝒻",Ru="ℱ",Fu="ǵ",Pu="Γ",zu="γ",qu="Ϝ",ju="ϝ",Hu="⪆",Uu="Ğ",$u="ğ",Wu="Ģ",Yu="Ĝ",Vu="ĝ",Gu="Г",Xu="г",Zu="Ġ",Ku="ġ",Qu="≥",Ju="≧",th="⪌",eh="⋛",nh="≥",rh="≧",ih="⩾",ah="⪩",oh="⩾",sh="⪀",lh="⪂",ch="⪄",uh="⋛︀",hh="⪔",fh="𝔊",dh="𝔤",ph="≫",gh="⋙",mh="⋙",yh="ℷ",vh="Ѓ",bh="ѓ",_h="⪥",xh="≷",wh="⪒",kh="⪤",Ch="⪊",Eh="⪊",Sh="⪈",Th="≩",Ah="⪈",Mh="≩",Nh="⋧",Dh="𝔾",Oh="𝕘",Lh="`",Bh="≥",Ih="⋛",Rh="≧",Fh="⪢",Ph="≷",zh="⩾",qh="≳",jh="𝒢",Hh="ℊ",Uh="≳",$h="⪎",Wh="⪐",Yh="⪧",Vh="⩺",Gh=">",Xh=">",Zh="≫",Kh="⋗",Qh="⦕",Jh="⩼",tf="⪆",ef="⥸",nf="⋗",rf="⋛",af="⪌",of="≷",sf="≳",lf="≩︀",cf="≩︀",uf="ˇ",hf=" ",ff="½",df="ℋ",pf="Ъ",gf="ъ",mf="⥈",yf="↔",vf="⇔",bf="↭",_f="^",xf="ℏ",wf="Ĥ",kf="ĥ",Cf="♥",Ef="♥",Sf="…",Tf="⊹",Af="𝔥",Mf="ℌ",Nf="ℋ",Df="⤥",Of="⤦",Lf="⇿",Bf="∻",If="↩",Rf="↪",Ff="𝕙",Pf="ℍ",zf="―",qf="─",jf="𝒽",Hf="ℋ",Uf="ℏ",$f="Ħ",Wf="ħ",Yf="≎",Vf="≏",Gf="⁃",Xf="‐",Zf="Í",Kf="í",Qf="",Jf="Î",td="î",ed="И",nd="и",rd="İ",id="Е",ad="е",od="¡",sd="⇔",ld="𝔦",cd="ℑ",ud="Ì",hd="ì",fd="ⅈ",dd="⨌",pd="∭",gd="⧜",md="℩",yd="IJ",vd="ij",bd="Ī",_d="ī",xd="ℑ",wd="ⅈ",kd="ℐ",Cd="ℑ",Ed="ı",Sd="ℑ",Td="⊷",Ad="Ƶ",Md="⇒",Nd="℅",Dd="∞",Od="⧝",Ld="ı",Bd="⊺",Id="∫",Rd="∬",Fd="ℤ",Pd="∫",zd="⊺",qd="⋂",jd="⨗",Hd="⨼",Ud="",$d="",Wd="Ё",Yd="ё",Vd="Į",Gd="į",Xd="𝕀",Zd="𝕚",Kd="Ι",Qd="ι",Jd="⨼",tp="¿",ep="𝒾",np="ℐ",rp="∈",ip="⋵",ap="⋹",op="⋴",sp="⋳",lp="∈",cp="",up="Ĩ",hp="ĩ",fp="І",dp="і",pp="Ï",gp="ï",mp="Ĵ",yp="ĵ",vp="Й",bp="й",_p="𝔍",xp="𝔧",wp="ȷ",kp="𝕁",Cp="𝕛",Ep="𝒥",Sp="𝒿",Tp="Ј",Ap="ј",Mp="Є",Np="є",Dp="Κ",Op="κ",Lp="ϰ",Bp="Ķ",Ip="ķ",Rp="К",Fp="к",Pp="𝔎",zp="𝔨",qp="ĸ",jp="Х",Hp="х",Up="Ќ",$p="ќ",Wp="𝕂",Yp="𝕜",Vp="𝒦",Gp="𝓀",Xp="⇚",Zp="Ĺ",Kp="ĺ",Qp="⦴",Jp="ℒ",tg="Λ",eg="λ",ng="⟨",rg="⟪",ig="⦑",ag="⟨",og="⪅",sg="ℒ",lg="«",cg="⇤",ug="⤟",hg="←",fg="↞",dg="⇐",pg="⤝",gg="↩",mg="↫",yg="⤹",vg="⥳",bg="↢",_g="⤙",xg="⤛",wg="⪫",kg="⪭",Cg="⪭︀",Eg="⤌",Sg="⤎",Tg="❲",Ag="{",Mg="[",Ng="⦋",Dg="⦏",Og="⦍",Lg="Ľ",Bg="ľ",Ig="Ļ",Rg="ļ",Fg="⌈",Pg="{",zg="Л",qg="л",jg="⤶",Hg="“",Ug="„",$g="⥧",Wg="⥋",Yg="↲",Vg="≤",Gg="≦",Xg="⟨",Zg="⇤",Kg="←",Qg="←",Jg="⇐",tm="⇆",em="↢",nm="⌈",rm="⟦",im="⥡",am="⥙",om="⇃",sm="⌊",lm="↽",cm="↼",um="⇇",hm="↔",fm="↔",dm="⇔",pm="⇆",gm="⇋",mm="↭",ym="⥎",vm="↤",bm="⊣",_m="⥚",xm="⋋",wm="⧏",km="⊲",Cm="⊴",Em="⥑",Sm="⥠",Tm="⥘",Am="↿",Mm="⥒",Nm="↼",Dm="⪋",Om="⋚",Lm="≤",Bm="≦",Im="⩽",Rm="⪨",Fm="⩽",Pm="⩿",zm="⪁",qm="⪃",jm="⋚︀",Hm="⪓",Um="⪅",$m="⋖",Wm="⋚",Ym="⪋",Vm="⋚",Gm="≦",Xm="≶",Zm="≶",Km="⪡",Qm="≲",Jm="⩽",ty="≲",ey="⥼",ny="⌊",ry="𝔏",iy="𝔩",ay="≶",oy="⪑",sy="⥢",ly="↽",cy="↼",uy="⥪",hy="▄",fy="Љ",dy="љ",py="⇇",gy="≪",my="⋘",yy="⌞",vy="⇚",by="⥫",_y="◺",xy="Ŀ",wy="ŀ",ky="⎰",Cy="⎰",Ey="⪉",Sy="⪉",Ty="⪇",Ay="≨",My="⪇",Ny="≨",Dy="⋦",Oy="⟬",Ly="⇽",By="⟦",Iy="⟵",Ry="⟵",Fy="⟸",Py="⟷",zy="⟷",qy="⟺",jy="⟼",Hy="⟶",Uy="⟶",$y="⟹",Wy="↫",Yy="↬",Vy="⦅",Gy="𝕃",Xy="𝕝",Zy="⨭",Ky="⨴",Qy="∗",Jy="_",tv="↙",ev="↘",nv="◊",rv="◊",iv="⧫",av="(",ov="⦓",sv="⇆",lv="⌟",cv="⇋",uv="⥭",hv="",fv="⊿",dv="‹",pv="𝓁",gv="ℒ",mv="↰",yv="↰",vv="≲",bv="⪍",_v="⪏",xv="[",wv="‘",kv="‚",Cv="Ł",Ev="ł",Sv="⪦",Tv="⩹",Av="<",Mv="<",Nv="≪",Dv="⋖",Ov="⋋",Lv="⋉",Bv="⥶",Iv="⩻",Rv="◃",Fv="⊴",Pv="◂",zv="⦖",qv="⥊",jv="⥦",Hv="≨︀",Uv="≨︀",$v="¯",Wv="♂",Yv="✠",Vv="✠",Gv="↦",Xv="↦",Zv="↧",Kv="↤",Qv="↥",Jv="▮",tb="⨩",eb="М",nb="м",rb="—",ib="∺",ab="∡",ob=" ",sb="ℳ",lb="𝔐",cb="𝔪",ub="℧",hb="µ",fb="*",db="⫰",pb="∣",gb="·",mb="⊟",yb="−",vb="∸",bb="⨪",_b="∓",xb="⫛",wb="…",kb="∓",Cb="⊧",Eb="𝕄",Sb="𝕞",Tb="∓",Ab="𝓂",Mb="ℳ",Nb="∾",Db="Μ",Ob="μ",Lb="⊸",Bb="⊸",Ib="∇",Rb="Ń",Fb="ń",Pb="∠⃒",zb="≉",qb="⩰̸",jb="≋̸",Hb="ʼn",Ub="≉",$b="♮",Wb="ℕ",Yb="♮",Vb=" ",Gb="≎̸",Xb="≏̸",Zb="⩃",Kb="Ň",Qb="ň",Jb="Ņ",t_="ņ",e_="≇",n_="⩭̸",r_="⩂",i_="Н",a_="н",o_="–",s_="⤤",l_="↗",c_="⇗",u_="↗",h_="≠",f_="≐̸",d_="",p_="",g_="",m_="",y_="≢",v_="⤨",b_="≂̸",__="≫",x_="≪",w_="\n",k_="∄",C_="∄",E_="𝔑",S_="𝔫",T_="≧̸",A_="≱",M_="≱",N_="≧̸",D_="⩾̸",O_="⩾̸",L_="⋙̸",B_="≵",I_="≫⃒",R_="≯",F_="≯",P_="≫̸",z_="↮",q_="⇎",j_="⫲",H_="∋",U_="⋼",$_="⋺",W_="∋",Y_="Њ",V_="њ",G_="↚",X_="⇍",Z_="‥",K_="≦̸",Q_="≰",J_="↚",tx="⇍",ex="↮",nx="⇎",rx="≰",ix="≦̸",ax="⩽̸",ox="⩽̸",sx="≮",lx="⋘̸",cx="≴",ux="≪⃒",hx="≮",fx="⋪",dx="⋬",px="≪̸",gx="∤",mx="",yx=" ",vx="𝕟",bx="ℕ",_x="⫬",xx="¬",wx="≢",kx="≭",Cx="∦",Ex="∉",Sx="≠",Tx="≂̸",Ax="∄",Mx="≯",Nx="≱",Dx="≧̸",Ox="≫̸",Lx="≹",Bx="⩾̸",Ix="≵",Rx="≎̸",Fx="≏̸",Px="∉",zx="⋵̸",qx="⋹̸",jx="∉",Hx="⋷",Ux="⋶",$x="⧏̸",Wx="⋪",Yx="⋬",Vx="≮",Gx="≰",Xx="≸",Zx="≪̸",Kx="⩽̸",Qx="≴",Jx="⪢̸",tw="⪡̸",ew="∌",nw="∌",rw="⋾",iw="⋽",aw="⊀",ow="⪯̸",sw="⋠",lw="∌",cw="⧐̸",uw="⋫",hw="⋭",fw="⊏̸",dw="⋢",pw="⊐̸",gw="⋣",mw="⊂⃒",yw="⊈",vw="⊁",bw="⪰̸",_w="⋡",xw="≿̸",ww="⊃⃒",kw="⊉",Cw="≁",Ew="≄",Sw="≇",Tw="≉",Aw="∤",Mw="∦",Nw="∦",Dw="⫽⃥",Ow="∂̸",Lw="⨔",Bw="⊀",Iw="⋠",Rw="⊀",Fw="⪯̸",Pw="⪯̸",zw="⤳̸",qw="↛",jw="⇏",Hw="↝̸",Uw="↛",$w="⇏",Ww="⋫",Yw="⋭",Vw="⊁",Gw="⋡",Xw="⪰̸",Zw="𝒩",Kw="𝓃",Qw="∤",Jw="∦",tk="≁",ek="≄",nk="≄",rk="∤",ik="∦",ak="⋢",ok="⋣",sk="⊄",lk="⫅̸",ck="⊈",uk="⊂⃒",hk="⊈",fk="⫅̸",dk="⊁",pk="⪰̸",gk="⊅",mk="⫆̸",yk="⊉",vk="⊃⃒",bk="⊉",_k="⫆̸",xk="≹",wk="Ñ",kk="ñ",Ck="≸",Ek="⋪",Sk="⋬",Tk="⋫",Ak="⋭",Mk="Ν",Nk="ν",Dk="#",Ok="№",Lk=" ",Bk="≍⃒",Ik="⊬",Rk="⊭",Fk="⊮",Pk="⊯",zk="≥⃒",qk=">⃒",jk="⤄",Hk="⧞",Uk="⤂",$k="≤⃒",Wk="<⃒",Yk="⊴⃒",Vk="⤃",Gk="⊵⃒",Xk="∼⃒",Zk="⤣",Kk="↖",Qk="⇖",Jk="↖",tC="⤧",eC="Ó",nC="ó",rC="⊛",iC="Ô",aC="ô",oC="⊚",sC="О",lC="о",cC="⊝",uC="Ő",hC="ő",fC="⨸",dC="⊙",pC="⦼",gC="Œ",mC="œ",yC="⦿",vC="𝔒",bC="𝔬",_C="˛",xC="Ò",wC="ò",kC="⧁",CC="⦵",EC="Ω",SC="∮",TC="↺",AC="⦾",MC="⦻",NC="‾",DC="⧀",OC="Ō",LC="ō",BC="Ω",IC="ω",RC="Ο",FC="ο",PC="⦶",zC="⊖",qC="𝕆",jC="𝕠",HC="⦷",UC="“",$C="‘",WC="⦹",YC="⊕",VC="↻",GC="⩔",XC="∨",ZC="⩝",KC="ℴ",QC="ℴ",JC="ª",tE="º",eE="⊶",nE="⩖",rE="⩗",iE="⩛",aE="Ⓢ",oE="𝒪",sE="ℴ",lE="Ø",cE="ø",uE="⊘",hE="Õ",fE="õ",dE="⨶",pE="⨷",gE="⊗",mE="Ö",yE="ö",vE="⌽",bE="‾",_E="⏞",xE="⎴",wE="⏜",kE="¶",CE="∥",EE="∥",SE="⫳",TE="⫽",AE="∂",ME="∂",NE="П",DE="п",OE="%",LE=".",BE="‰",IE="⊥",RE="‱",FE="𝔓",PE="𝔭",zE="Φ",qE="φ",jE="ϕ",HE="ℳ",UE="☎",$E="Π",WE="π",YE="⋔",VE="ϖ",GE="ℏ",XE="ℎ",ZE="ℏ",KE="⨣",QE="⊞",JE="⨢",tS="+",eS="∔",nS="⨥",rS="⩲",iS="±",aS="±",oS="⨦",sS="⨧",lS="±",cS="ℌ",uS="⨕",hS="𝕡",fS="ℙ",dS="£",pS="⪷",gS="⪻",mS="≺",yS="≼",vS="⪷",bS="≺",_S="≼",xS="≺",wS="⪯",kS="≼",CS="≾",ES="⪯",SS="⪹",TS="⪵",AS="⋨",MS="⪯",NS="⪳",DS="≾",OS="′",LS="″",BS="ℙ",IS="⪹",RS="⪵",FS="⋨",PS="∏",zS="∏",qS="⌮",jS="⌒",HS="⌓",US="∝",$S="∝",WS="∷",YS="∝",VS="≾",GS="⊰",XS="𝒫",ZS="𝓅",KS="Ψ",QS="ψ",JS=" ",tT="𝔔",eT="𝔮",nT="⨌",rT="𝕢",iT="ℚ",aT="⁗",oT="𝒬",sT="𝓆",lT="ℍ",cT="⨖",uT="?",hT="≟",fT='"',dT='"',pT="⇛",gT="∽̱",mT="Ŕ",yT="ŕ",vT="√",bT="⦳",_T="⟩",xT="⟫",wT="⦒",kT="⦥",CT="⟩",ET="»",ST="⥵",TT="⇥",AT="⤠",MT="⤳",NT="→",DT="↠",OT="⇒",LT="⤞",BT="↪",IT="↬",RT="⥅",FT="⥴",PT="⤖",zT="↣",qT="↝",jT="⤚",HT="⤜",UT="∶",$T="ℚ",WT="⤍",YT="⤏",VT="⤐",GT="❳",XT="}",ZT="]",KT="⦌",QT="⦎",JT="⦐",tA="Ř",eA="ř",nA="Ŗ",rA="ŗ",iA="⌉",aA="}",oA="Р",sA="р",lA="⤷",cA="⥩",uA="”",hA="”",fA="↳",dA="ℜ",pA="ℛ",gA="ℜ",mA="ℝ",yA="ℜ",vA="▭",bA="®",_A="®",xA="∋",wA="⇋",kA="⥯",CA="⥽",EA="⌋",SA="𝔯",TA="ℜ",AA="⥤",MA="⇁",NA="⇀",DA="⥬",OA="Ρ",LA="ρ",BA="ϱ",IA="⟩",RA="⇥",FA="→",PA="→",zA="⇒",qA="⇄",jA="↣",HA="⌉",UA="⟧",$A="⥝",WA="⥕",YA="⇂",VA="⌋",GA="⇁",XA="⇀",ZA="⇄",KA="⇌",QA="⇉",JA="↝",tM="↦",eM="⊢",nM="⥛",rM="⋌",iM="⧐",aM="⊳",oM="⊵",sM="⥏",lM="⥜",cM="⥔",uM="↾",hM="⥓",fM="⇀",dM="˚",pM="≓",gM="⇄",mM="⇌",yM="",vM="⎱",bM="⎱",_M="⫮",xM="⟭",wM="⇾",kM="⟧",CM="⦆",EM="𝕣",SM="ℝ",TM="⨮",AM="⨵",MM="⥰",NM=")",DM="⦔",OM="⨒",LM="⇉",BM="⇛",IM="›",RM="𝓇",FM="ℛ",PM="↱",zM="↱",qM="]",jM="’",HM="’",UM="⋌",$M="⋊",WM="▹",YM="⊵",VM="▸",GM="⧎",XM="⧴",ZM="⥨",KM="℞",QM="Ś",JM="ś",tN="‚",eN="⪸",nN="Š",rN="š",iN="⪼",aN="≻",oN="≽",sN="⪰",lN="⪴",cN="Ş",uN="ş",hN="Ŝ",fN="ŝ",dN="⪺",pN="⪶",gN="⋩",mN="⨓",yN="≿",vN="С",bN="с",_N="⊡",xN="⋅",wN="⩦",kN="⤥",CN="↘",EN="⇘",SN="↘",TN="§",AN=";",MN="⤩",NN="∖",DN="∖",ON="✶",LN="𝔖",BN="𝔰",IN="⌢",RN="♯",FN="Щ",PN="щ",zN="Ш",qN="ш",jN="↓",HN="←",UN="∣",$N="∥",WN="→",YN="↑",VN="",GN="Σ",XN="σ",ZN="ς",KN="ς",QN="∼",JN="⩪",tD="≃",eD="≃",nD="⪞",rD="⪠",iD="⪝",aD="⪟",oD="≆",sD="⨤",lD="⥲",cD="←",uD="∘",hD="∖",fD="⨳",dD="⧤",pD="∣",gD="⌣",mD="⪪",yD="⪬",vD="⪬︀",bD="Ь",_D="ь",xD="⌿",wD="⧄",kD="/",CD="𝕊",ED="𝕤",SD="♠",TD="♠",AD="∥",MD="⊓",ND="⊓︀",DD="⊔",OD="⊔︀",LD="√",BD="⊏",ID="⊑",RD="⊏",FD="⊑",PD="⊐",zD="⊒",qD="⊐",jD="⊒",HD="□",UD="□",$D="⊓",WD="⊏",YD="⊑",VD="⊐",GD="⊒",XD="⊔",ZD="▪",KD="□",QD="▪",JD="→",tO="𝒮",eO="𝓈",nO="∖",rO="⌣",iO="⋆",aO="⋆",oO="☆",sO="★",lO="ϵ",cO="ϕ",uO="¯",hO="⊂",fO="⋐",dO="⪽",pO="⫅",gO="⊆",mO="⫃",yO="⫁",vO="⫋",bO="⊊",_O="⪿",xO="⥹",wO="⊂",kO="⋐",CO="⊆",EO="⫅",SO="⊆",TO="⊊",AO="⫋",MO="⫇",NO="⫕",DO="⫓",OO="⪸",LO="≻",BO="≽",IO="≻",RO="⪰",FO="≽",PO="≿",zO="⪰",qO="⪺",jO="⪶",HO="⋩",UO="≿",$O="∋",WO="∑",YO="∑",VO="♪",GO="¹",XO="²",ZO="³",KO="⊃",QO="⋑",JO="⪾",tL="⫘",eL="⫆",nL="⊇",rL="⫄",iL="⊃",aL="⊇",oL="⟉",sL="⫗",lL="⥻",cL="⫂",uL="⫌",hL="⊋",fL="⫀",dL="⊃",pL="⋑",gL="⊇",mL="⫆",yL="⊋",vL="⫌",bL="⫈",_L="⫔",xL="⫖",wL="⤦",kL="↙",CL="⇙",EL="↙",SL="⤪",TL="ß",AL="\t",ML="⌖",NL="Τ",DL="τ",OL="⎴",LL="Ť",BL="ť",IL="Ţ",RL="ţ",FL="Т",PL="т",zL="⃛",qL="⌕",jL="𝔗",HL="𝔱",UL="∴",$L="∴",WL="∴",YL="Θ",VL="θ",GL="ϑ",XL="ϑ",ZL="≈",KL="∼",QL=" ",JL=" ",tB=" ",eB="≈",nB="∼",rB="Þ",iB="þ",aB="˜",oB="∼",sB="≃",lB="≅",cB="≈",uB="⨱",hB="⊠",fB="×",dB="⨰",pB="∭",gB="⤨",mB="⌶",yB="⫱",vB="⊤",bB="𝕋",_B="𝕥",xB="⫚",wB="⤩",kB="‴",CB="™",EB="™",SB="▵",TB="▿",AB="◃",MB="⊴",NB="≜",DB="▹",OB="⊵",LB="◬",BB="≜",IB="⨺",RB="⃛",FB="⨹",PB="⧍",zB="⨻",qB="⏢",jB="𝒯",HB="𝓉",UB="Ц",$B="ц",WB="Ћ",YB="ћ",VB="Ŧ",GB="ŧ",XB="≬",ZB="↞",KB="↠",QB="Ú",JB="ú",tI="↑",eI="↟",nI="⇑",rI="⥉",iI="Ў",aI="ў",oI="Ŭ",sI="ŭ",lI="Û",cI="û",uI="У",hI="у",fI="⇅",dI="Ű",pI="ű",gI="⥮",mI="⥾",yI="𝔘",vI="𝔲",bI="Ù",_I="ù",xI="⥣",wI="↿",kI="↾",CI="▀",EI="⌜",SI="⌜",TI="⌏",AI="◸",MI="Ū",NI="ū",DI="¨",OI="_",LI="⏟",BI="⎵",II="⏝",RI="⋃",FI="⊎",PI="Ų",zI="ų",qI="𝕌",jI="𝕦",HI="⤒",UI="↑",$I="↑",WI="⇑",YI="⇅",VI="↕",GI="↕",XI="⇕",ZI="⥮",KI="↿",QI="↾",JI="⊎",tR="↖",eR="↗",nR="υ",rR="ϒ",iR="ϒ",aR="Υ",oR="υ",sR="↥",lR="⊥",cR="⇈",uR="⌝",hR="⌝",fR="⌎",dR="Ů",pR="ů",gR="◹",mR="𝒰",yR="𝓊",vR="⋰",bR="Ũ",_R="ũ",xR="▵",wR="▴",kR="⇈",CR="Ü",ER="ü",SR="⦧",TR="⦜",AR="ϵ",MR="ϰ",NR="∅",DR="ϕ",OR="ϖ",LR="∝",BR="↕",IR="⇕",RR="ϱ",FR="ς",PR="⊊︀",zR="⫋︀",qR="⊋︀",jR="⫌︀",HR="ϑ",UR="⊲",$R="⊳",WR="⫨",YR="⫫",VR="⫩",GR="В",XR="в",ZR="⊢",KR="⊨",QR="⊩",JR="⊫",tF="⫦",eF="⊻",nF="∨",rF="⋁",iF="≚",aF="⋮",oF="|",sF="‖",lF="|",cF="‖",uF="∣",hF="|",fF="❘",dF="≀",pF=" ",gF="𝔙",mF="𝔳",yF="⊲",vF="⊂⃒",bF="⊃⃒",_F="𝕍",xF="𝕧",wF="∝",kF="⊳",CF="𝒱",EF="𝓋",SF="⫋︀",TF="⊊︀",AF="⫌︀",MF="⊋︀",NF="⊪",DF="⦚",OF="Ŵ",LF="ŵ",BF="⩟",IF="∧",RF="⋀",FF="≙",PF="℘",zF="𝔚",qF="𝔴",jF="𝕎",HF="𝕨",UF="℘",$F="≀",WF="≀",YF="𝒲",VF="𝓌",GF="⋂",XF="◯",ZF="⋃",KF="▽",QF="𝔛",JF="𝔵",tP="⟷",eP="⟺",nP="Ξ",rP="ξ",iP="⟵",aP="⟸",oP="⟼",sP="⋻",lP="⨀",cP="𝕏",uP="𝕩",hP="⨁",fP="⨂",dP="⟶",pP="⟹",gP="𝒳",mP="𝓍",yP="⨆",vP="⨄",bP="△",_P="⋁",xP="⋀",wP="Ý",kP="ý",CP="Я",EP="я",SP="Ŷ",TP="ŷ",AP="Ы",MP="ы",NP="¥",DP="𝔜",OP="𝔶",LP="Ї",BP="ї",IP="𝕐",RP="𝕪",FP="𝒴",PP="𝓎",zP="Ю",qP="ю",jP="ÿ",HP="Ÿ",UP="Ź",$P="ź",WP="Ž",YP="ž",VP="З",GP="з",XP="Ż",ZP="ż",KP="ℨ",QP="",JP="Ζ",tz="ζ",ez="𝔷",nz="ℨ",rz="Ж",iz="ж",az="⇝",oz="𝕫",sz="ℤ",lz="𝒵",cz="𝓏",uz="",hz="";var fz={Aacute:Y,aacute:V,Abreve:G,abreve:X,ac:Z,acd:K,acE:Q,Acirc:J,acirc:tt,acute:et,Acy:nt,acy:rt,AElig:it,aelig:at,af:ot,Afr:st,afr:lt,Agrave:ct,agrave:ut,alefsym:ht,aleph:ft,Alpha:dt,alpha:pt,Amacr:gt,amacr:mt,amalg:yt,amp:vt,AMP:bt,andand:_t,And:xt,and:wt,andd:kt,andslope:Ct,andv:Et,ang:St,ange:Tt,angle:At,angmsdaa:Mt,angmsdab:Nt,angmsdac:Dt,angmsdad:Ot,angmsdae:Lt,angmsdaf:Bt,angmsdag:It,angmsdah:Rt,angmsd:Ft,angrt:Pt,angrtvb:zt,angrtvbd:qt,angsph:jt,angst:Ht,angzarr:Ut,Aogon:$t,aogon:Wt,Aopf:Yt,aopf:Vt,apacir:Gt,ap:Xt,apE:Zt,ape:Kt,apid:Qt,apos:Jt,ApplyFunction:te,approx:ee,approxeq:ne,Aring:re,aring:ie,Ascr:ae,ascr:oe,Assign:se,ast:le,asymp:ce,asympeq:ue,Atilde:he,atilde:fe,Auml:de,auml:pe,awconint:ge,awint:me,backcong:ye,backepsilon:ve,backprime:be,backsim:_e,backsimeq:xe,Backslash:we,Barv:ke,barvee:Ce,barwed:Ee,Barwed:Se,barwedge:Te,bbrk:Ae,bbrktbrk:Me,bcong:Ne,Bcy:De,bcy:Oe,bdquo:Le,becaus:Be,because:Ie,Because:Re,bemptyv:Fe,bepsi:Pe,bernou:ze,Bernoullis:qe,Beta:je,beta:He,beth:Ue,between:$e,Bfr:We,bfr:Ye,bigcap:Ve,bigcirc:Ge,bigcup:Xe,bigodot:Ze,bigoplus:Ke,bigotimes:Qe,bigsqcup:Je,bigstar:tn,bigtriangledown:en,bigtriangleup:nn,biguplus:rn,bigvee:an,bigwedge:on,bkarow:sn,blacklozenge:ln,blacksquare:cn,blacktriangle:un,blacktriangledown:hn,blacktriangleleft:fn,blacktriangleright:dn,blank:pn,blk12:gn,blk14:mn,blk34:yn,block:vn,bne:bn,bnequiv:_n,bNot:xn,bnot:wn,Bopf:kn,bopf:Cn,bot:En,bottom:Sn,bowtie:Tn,boxbox:An,boxdl:Mn,boxdL:Nn,boxDl:Dn,boxDL:On,boxdr:Ln,boxdR:Bn,boxDr:In,boxDR:Rn,boxh:Fn,boxH:Pn,boxhd:zn,boxHd:qn,boxhD:jn,boxHD:Hn,boxhu:Un,boxHu:$n,boxhU:Wn,boxHU:Yn,boxminus:Vn,boxplus:Gn,boxtimes:Xn,boxul:Zn,boxuL:Kn,boxUl:Qn,boxUL:Jn,boxur:tr,boxuR:er,boxUr:nr,boxUR:rr,boxv:ir,boxV:ar,boxvh:or,boxvH:sr,boxVh:lr,boxVH:cr,boxvl:ur,boxvL:hr,boxVl:fr,boxVL:dr,boxvr:pr,boxvR:gr,boxVr:mr,boxVR:yr,bprime:vr,breve:br,Breve:_r,brvbar:xr,bscr:wr,Bscr:kr,bsemi:Cr,bsim:Er,bsime:Sr,bsolb:Tr,bsol:Ar,bsolhsub:Mr,bull:Nr,bullet:Dr,bump:Or,bumpE:Lr,bumpe:Br,Bumpeq:Ir,bumpeq:Rr,Cacute:Fr,cacute:Pr,capand:zr,capbrcup:qr,capcap:jr,cap:Hr,Cap:Ur,capcup:$r,capdot:Wr,CapitalDifferentialD:Yr,caps:Vr,caret:Gr,caron:Xr,Cayleys:Zr,ccaps:Kr,Ccaron:Qr,ccaron:Jr,Ccedil:ti,ccedil:ei,Ccirc:ni,ccirc:ri,Cconint:ii,ccups:ai,ccupssm:oi,Cdot:si,cdot:li,cedil:ci,Cedilla:ui,cemptyv:hi,cent:fi,centerdot:di,CenterDot:pi,cfr:gi,Cfr:mi,CHcy:yi,chcy:vi,check:bi,checkmark:_i,Chi:xi,chi:wi,circ:ki,circeq:Ci,circlearrowleft:Ei,circlearrowright:Si,circledast:Ti,circledcirc:Ai,circleddash:Mi,CircleDot:Ni,circledR:Di,circledS:Oi,CircleMinus:Li,CirclePlus:Bi,CircleTimes:Ii,cir:Ri,cirE:Fi,cire:Pi,cirfnint:zi,cirmid:qi,cirscir:ji,ClockwiseContourIntegral:Hi,CloseCurlyDoubleQuote:Ui,CloseCurlyQuote:$i,clubs:Wi,clubsuit:Yi,colon:Vi,Colon:Gi,Colone:Xi,colone:Zi,coloneq:Ki,comma:Qi,commat:Ji,comp:ta,compfn:ea,complement:na,complexes:ra,cong:ia,congdot:aa,Congruent:oa,conint:sa,Conint:la,ContourIntegral:ca,copf:ua,Copf:ha,coprod:fa,Coproduct:da,copy:pa,COPY:ga,copysr:ma,CounterClockwiseContourIntegral:ya,crarr:va,cross:ba,Cross:_a,Cscr:xa,cscr:wa,csub:ka,csube:Ca,csup:Ea,csupe:Sa,ctdot:Ta,cudarrl:Aa,cudarrr:Ma,cuepr:Na,cuesc:Da,cularr:Oa,cularrp:La,cupbrcap:Ba,cupcap:Ia,CupCap:Ra,cup:Fa,Cup:Pa,cupcup:za,cupdot:qa,cupor:ja,cups:Ha,curarr:Ua,curarrm:$a,curlyeqprec:Wa,curlyeqsucc:Ya,curlyvee:Va,curlywedge:Ga,curren:Xa,curvearrowleft:Za,curvearrowright:Ka,cuvee:Qa,cuwed:Ja,cwconint:to,cwint:eo,cylcty:no,dagger:ro,Dagger:io,daleth:ao,darr:oo,Darr:so,dArr:lo,dash:co,Dashv:uo,dashv:ho,dbkarow:fo,dblac:po,Dcaron:go,dcaron:mo,Dcy:yo,dcy:vo,ddagger:bo,ddarr:_o,DD:xo,dd:wo,DDotrahd:ko,ddotseq:Co,deg:Eo,Del:So,Delta:To,delta:Ao,demptyv:Mo,dfisht:No,Dfr:Do,dfr:Oo,dHar:Lo,dharl:Bo,dharr:Io,DiacriticalAcute:Ro,DiacriticalDot:Fo,DiacriticalDoubleAcute:Po,DiacriticalGrave:zo,DiacriticalTilde:qo,diam:jo,diamond:Ho,Diamond:Uo,diamondsuit:$o,diams:Wo,die:Yo,DifferentialD:Vo,digamma:Go,disin:Xo,div:Zo,divide:Ko,divideontimes:Qo,divonx:Jo,DJcy:ts,djcy:es,dlcorn:ns,dlcrop:rs,dollar:is,Dopf:as,dopf:os,Dot:ss,dot:ls,DotDot:cs,doteq:us,doteqdot:hs,DotEqual:fs,dotminus:ds,dotplus:ps,dotsquare:gs,doublebarwedge:ms,DoubleContourIntegral:ys,DoubleDot:vs,DoubleDownArrow:bs,DoubleLeftArrow:_s,DoubleLeftRightArrow:xs,DoubleLeftTee:ws,DoubleLongLeftArrow:ks,DoubleLongLeftRightArrow:Cs,DoubleLongRightArrow:Es,DoubleRightArrow:Ss,DoubleRightTee:Ts,DoubleUpArrow:As,DoubleUpDownArrow:Ms,DoubleVerticalBar:Ns,DownArrowBar:Ds,downarrow:Os,DownArrow:Ls,Downarrow:Bs,DownArrowUpArrow:Is,DownBreve:Rs,downdownarrows:Fs,downharpoonleft:Ps,downharpoonright:zs,DownLeftRightVector:qs,DownLeftTeeVector:js,DownLeftVectorBar:Hs,DownLeftVector:Us,DownRightTeeVector:$s,DownRightVectorBar:Ws,DownRightVector:Ys,DownTeeArrow:Vs,DownTee:Gs,drbkarow:Xs,drcorn:Zs,drcrop:Ks,Dscr:Qs,dscr:Js,DScy:tl,dscy:el,dsol:nl,Dstrok:rl,dstrok:il,dtdot:al,dtri:ol,dtrif:sl,duarr:ll,duhar:cl,dwangle:ul,DZcy:hl,dzcy:fl,dzigrarr:dl,Eacute:pl,eacute:gl,easter:ml,Ecaron:yl,ecaron:vl,Ecirc:bl,ecirc:_l,ecir:xl,ecolon:wl,Ecy:kl,ecy:Cl,eDDot:El,Edot:Sl,edot:Tl,eDot:Al,ee:Ml,efDot:Nl,Efr:Dl,efr:Ol,eg:Ll,Egrave:Bl,egrave:Il,egs:Rl,egsdot:Fl,el:Pl,Element:zl,elinters:ql,ell:jl,els:Hl,elsdot:Ul,Emacr:$l,emacr:Wl,empty:Yl,emptyset:Vl,EmptySmallSquare:Gl,emptyv:Xl,EmptyVerySmallSquare:Zl,emsp13:Kl,emsp14:Ql,emsp:Jl,ENG:tc,eng:ec,ensp:nc,Eogon:rc,eogon:ic,Eopf:ac,eopf:oc,epar:sc,eparsl:lc,eplus:cc,epsi:uc,Epsilon:hc,epsilon:fc,epsiv:dc,eqcirc:pc,eqcolon:gc,eqsim:mc,eqslantgtr:yc,eqslantless:vc,Equal:bc,equals:_c,EqualTilde:xc,equest:wc,Equilibrium:kc,equiv:Cc,equivDD:Ec,eqvparsl:Sc,erarr:Tc,erDot:Ac,escr:Mc,Escr:Nc,esdot:Dc,Esim:Oc,esim:Lc,Eta:Bc,eta:Ic,ETH:Rc,eth:Fc,Euml:Pc,euml:zc,euro:qc,excl:jc,exist:Hc,Exists:Uc,expectation:$c,exponentiale:Wc,ExponentialE:Yc,fallingdotseq:Vc,Fcy:Gc,fcy:Xc,female:Zc,ffilig:Kc,fflig:Qc,ffllig:Jc,Ffr:tu,ffr:eu,filig:nu,FilledSmallSquare:ru,FilledVerySmallSquare:iu,fjlig:au,flat:ou,fllig:su,fltns:lu,fnof:cu,Fopf:uu,fopf:hu,forall:fu,ForAll:du,fork:pu,forkv:gu,Fouriertrf:mu,fpartint:yu,frac12:vu,frac13:bu,frac14:_u,frac15:xu,frac16:wu,frac18:ku,frac23:Cu,frac25:Eu,frac34:Su,frac35:Tu,frac38:Au,frac45:Mu,frac56:Nu,frac58:Du,frac78:Ou,frasl:Lu,frown:Bu,fscr:Iu,Fscr:Ru,gacute:Fu,Gamma:Pu,gamma:zu,Gammad:qu,gammad:ju,gap:Hu,Gbreve:Uu,gbreve:$u,Gcedil:Wu,Gcirc:Yu,gcirc:Vu,Gcy:Gu,gcy:Xu,Gdot:Zu,gdot:Ku,ge:Qu,gE:Ju,gEl:th,gel:eh,geq:nh,geqq:rh,geqslant:ih,gescc:ah,ges:oh,gesdot:sh,gesdoto:lh,gesdotol:ch,gesl:uh,gesles:hh,Gfr:fh,gfr:dh,gg:ph,Gg:gh,ggg:mh,gimel:yh,GJcy:vh,gjcy:bh,gla:_h,gl:xh,glE:wh,glj:kh,gnap:Ch,gnapprox:Eh,gne:Sh,gnE:Th,gneq:Ah,gneqq:Mh,gnsim:Nh,Gopf:Dh,gopf:Oh,grave:Lh,GreaterEqual:Bh,GreaterEqualLess:Ih,GreaterFullEqual:Rh,GreaterGreater:Fh,GreaterLess:Ph,GreaterSlantEqual:zh,GreaterTilde:qh,Gscr:jh,gscr:Hh,gsim:Uh,gsime:$h,gsiml:Wh,gtcc:Yh,gtcir:Vh,gt:Gh,GT:Xh,Gt:Zh,gtdot:Kh,gtlPar:Qh,gtquest:Jh,gtrapprox:tf,gtrarr:ef,gtrdot:nf,gtreqless:rf,gtreqqless:af,gtrless:of,gtrsim:sf,gvertneqq:lf,gvnE:cf,Hacek:uf,hairsp:hf,half:ff,hamilt:df,HARDcy:pf,hardcy:gf,harrcir:mf,harr:yf,hArr:vf,harrw:bf,Hat:_f,hbar:xf,Hcirc:wf,hcirc:kf,hearts:Cf,heartsuit:Ef,hellip:Sf,hercon:Tf,hfr:Af,Hfr:Mf,HilbertSpace:Nf,hksearow:Df,hkswarow:Of,hoarr:Lf,homtht:Bf,hookleftarrow:If,hookrightarrow:Rf,hopf:Ff,Hopf:Pf,horbar:zf,HorizontalLine:qf,hscr:jf,Hscr:Hf,hslash:Uf,Hstrok:$f,hstrok:Wf,HumpDownHump:Yf,HumpEqual:Vf,hybull:Gf,hyphen:Xf,Iacute:Zf,iacute:Kf,ic:Qf,Icirc:Jf,icirc:td,Icy:ed,icy:nd,Idot:rd,IEcy:id,iecy:ad,iexcl:od,iff:sd,ifr:ld,Ifr:cd,Igrave:ud,igrave:hd,ii:fd,iiiint:dd,iiint:pd,iinfin:gd,iiota:md,IJlig:yd,ijlig:vd,Imacr:bd,imacr:_d,image:xd,ImaginaryI:wd,imagline:kd,imagpart:Cd,imath:Ed,Im:Sd,imof:Td,imped:Ad,Implies:Md,incare:Nd,in:"∈",infin:Dd,infintie:Od,inodot:Ld,intcal:Bd,int:Id,Int:Rd,integers:Fd,Integral:Pd,intercal:zd,Intersection:qd,intlarhk:jd,intprod:Hd,InvisibleComma:Ud,InvisibleTimes:$d,IOcy:Wd,iocy:Yd,Iogon:Vd,iogon:Gd,Iopf:Xd,iopf:Zd,Iota:Kd,iota:Qd,iprod:Jd,iquest:tp,iscr:ep,Iscr:np,isin:rp,isindot:ip,isinE:ap,isins:op,isinsv:sp,isinv:lp,it:cp,Itilde:up,itilde:hp,Iukcy:fp,iukcy:dp,Iuml:pp,iuml:gp,Jcirc:mp,jcirc:yp,Jcy:vp,jcy:bp,Jfr:_p,jfr:xp,jmath:wp,Jopf:kp,jopf:Cp,Jscr:Ep,jscr:Sp,Jsercy:Tp,jsercy:Ap,Jukcy:Mp,jukcy:Np,Kappa:Dp,kappa:Op,kappav:Lp,Kcedil:Bp,kcedil:Ip,Kcy:Rp,kcy:Fp,Kfr:Pp,kfr:zp,kgreen:qp,KHcy:jp,khcy:Hp,KJcy:Up,kjcy:$p,Kopf:Wp,kopf:Yp,Kscr:Vp,kscr:Gp,lAarr:Xp,Lacute:Zp,lacute:Kp,laemptyv:Qp,lagran:Jp,Lambda:tg,lambda:eg,lang:ng,Lang:rg,langd:ig,langle:ag,lap:og,Laplacetrf:sg,laquo:lg,larrb:cg,larrbfs:ug,larr:hg,Larr:fg,lArr:dg,larrfs:pg,larrhk:gg,larrlp:mg,larrpl:yg,larrsim:vg,larrtl:bg,latail:_g,lAtail:xg,lat:wg,late:kg,lates:Cg,lbarr:Eg,lBarr:Sg,lbbrk:Tg,lbrace:Ag,lbrack:Mg,lbrke:Ng,lbrksld:Dg,lbrkslu:Og,Lcaron:Lg,lcaron:Bg,Lcedil:Ig,lcedil:Rg,lceil:Fg,lcub:Pg,Lcy:zg,lcy:qg,ldca:jg,ldquo:Hg,ldquor:Ug,ldrdhar:$g,ldrushar:Wg,ldsh:Yg,le:Vg,lE:Gg,LeftAngleBracket:Xg,LeftArrowBar:Zg,leftarrow:Kg,LeftArrow:Qg,Leftarrow:Jg,LeftArrowRightArrow:tm,leftarrowtail:em,LeftCeiling:nm,LeftDoubleBracket:rm,LeftDownTeeVector:im,LeftDownVectorBar:am,LeftDownVector:om,LeftFloor:sm,leftharpoondown:lm,leftharpoonup:cm,leftleftarrows:um,leftrightarrow:hm,LeftRightArrow:fm,Leftrightarrow:dm,leftrightarrows:pm,leftrightharpoons:gm,leftrightsquigarrow:mm,LeftRightVector:ym,LeftTeeArrow:vm,LeftTee:bm,LeftTeeVector:_m,leftthreetimes:xm,LeftTriangleBar:wm,LeftTriangle:km,LeftTriangleEqual:Cm,LeftUpDownVector:Em,LeftUpTeeVector:Sm,LeftUpVectorBar:Tm,LeftUpVector:Am,LeftVectorBar:Mm,LeftVector:Nm,lEg:Dm,leg:Om,leq:Lm,leqq:Bm,leqslant:Im,lescc:Rm,les:Fm,lesdot:Pm,lesdoto:zm,lesdotor:qm,lesg:jm,lesges:Hm,lessapprox:Um,lessdot:$m,lesseqgtr:Wm,lesseqqgtr:Ym,LessEqualGreater:Vm,LessFullEqual:Gm,LessGreater:Xm,lessgtr:Zm,LessLess:Km,lesssim:Qm,LessSlantEqual:Jm,LessTilde:ty,lfisht:ey,lfloor:ny,Lfr:ry,lfr:iy,lg:ay,lgE:oy,lHar:sy,lhard:ly,lharu:cy,lharul:uy,lhblk:hy,LJcy:fy,ljcy:dy,llarr:py,ll:gy,Ll:my,llcorner:yy,Lleftarrow:vy,llhard:by,lltri:_y,Lmidot:xy,lmidot:wy,lmoustache:ky,lmoust:Cy,lnap:Ey,lnapprox:Sy,lne:Ty,lnE:Ay,lneq:My,lneqq:Ny,lnsim:Dy,loang:Oy,loarr:Ly,lobrk:By,longleftarrow:Iy,LongLeftArrow:Ry,Longleftarrow:Fy,longleftrightarrow:Py,LongLeftRightArrow:zy,Longleftrightarrow:qy,longmapsto:jy,longrightarrow:Hy,LongRightArrow:Uy,Longrightarrow:$y,looparrowleft:Wy,looparrowright:Yy,lopar:Vy,Lopf:Gy,lopf:Xy,loplus:Zy,lotimes:Ky,lowast:Qy,lowbar:Jy,LowerLeftArrow:tv,LowerRightArrow:ev,loz:nv,lozenge:rv,lozf:iv,lpar:av,lparlt:ov,lrarr:sv,lrcorner:lv,lrhar:cv,lrhard:uv,lrm:hv,lrtri:fv,lsaquo:dv,lscr:pv,Lscr:gv,lsh:mv,Lsh:yv,lsim:vv,lsime:bv,lsimg:_v,lsqb:xv,lsquo:wv,lsquor:kv,Lstrok:Cv,lstrok:Ev,ltcc:Sv,ltcir:Tv,lt:Av,LT:Mv,Lt:Nv,ltdot:Dv,lthree:Ov,ltimes:Lv,ltlarr:Bv,ltquest:Iv,ltri:Rv,ltrie:Fv,ltrif:Pv,ltrPar:zv,lurdshar:qv,luruhar:jv,lvertneqq:Hv,lvnE:Uv,macr:$v,male:Wv,malt:Yv,maltese:Vv,Map:"⤅",map:Gv,mapsto:Xv,mapstodown:Zv,mapstoleft:Kv,mapstoup:Qv,marker:Jv,mcomma:tb,Mcy:eb,mcy:nb,mdash:rb,mDDot:ib,measuredangle:ab,MediumSpace:ob,Mellintrf:sb,Mfr:lb,mfr:cb,mho:ub,micro:hb,midast:fb,midcir:db,mid:pb,middot:gb,minusb:mb,minus:yb,minusd:vb,minusdu:bb,MinusPlus:_b,mlcp:xb,mldr:wb,mnplus:kb,models:Cb,Mopf:Eb,mopf:Sb,mp:Tb,mscr:Ab,Mscr:Mb,mstpos:Nb,Mu:Db,mu:Ob,multimap:Lb,mumap:Bb,nabla:Ib,Nacute:Rb,nacute:Fb,nang:Pb,nap:zb,napE:qb,napid:jb,napos:Hb,napprox:Ub,natural:$b,naturals:Wb,natur:Yb,nbsp:Vb,nbump:Gb,nbumpe:Xb,ncap:Zb,Ncaron:Kb,ncaron:Qb,Ncedil:Jb,ncedil:t_,ncong:e_,ncongdot:n_,ncup:r_,Ncy:i_,ncy:a_,ndash:o_,nearhk:s_,nearr:l_,neArr:c_,nearrow:u_,ne:h_,nedot:f_,NegativeMediumSpace:d_,NegativeThickSpace:p_,NegativeThinSpace:g_,NegativeVeryThinSpace:m_,nequiv:y_,nesear:v_,nesim:b_,NestedGreaterGreater:__,NestedLessLess:x_,NewLine:w_,nexist:k_,nexists:C_,Nfr:E_,nfr:S_,ngE:T_,nge:A_,ngeq:M_,ngeqq:N_,ngeqslant:D_,nges:O_,nGg:L_,ngsim:B_,nGt:I_,ngt:R_,ngtr:F_,nGtv:P_,nharr:z_,nhArr:q_,nhpar:j_,ni:H_,nis:U_,nisd:$_,niv:W_,NJcy:Y_,njcy:V_,nlarr:G_,nlArr:X_,nldr:Z_,nlE:K_,nle:Q_,nleftarrow:J_,nLeftarrow:tx,nleftrightarrow:ex,nLeftrightarrow:nx,nleq:rx,nleqq:ix,nleqslant:ax,nles:ox,nless:sx,nLl:lx,nlsim:cx,nLt:ux,nlt:hx,nltri:fx,nltrie:dx,nLtv:px,nmid:gx,NoBreak:mx,NonBreakingSpace:yx,nopf:vx,Nopf:bx,Not:_x,not:xx,NotCongruent:wx,NotCupCap:kx,NotDoubleVerticalBar:Cx,NotElement:Ex,NotEqual:Sx,NotEqualTilde:Tx,NotExists:Ax,NotGreater:Mx,NotGreaterEqual:Nx,NotGreaterFullEqual:Dx,NotGreaterGreater:Ox,NotGreaterLess:Lx,NotGreaterSlantEqual:Bx,NotGreaterTilde:Ix,NotHumpDownHump:Rx,NotHumpEqual:Fx,notin:Px,notindot:zx,notinE:qx,notinva:jx,notinvb:Hx,notinvc:Ux,NotLeftTriangleBar:$x,NotLeftTriangle:Wx,NotLeftTriangleEqual:Yx,NotLess:Vx,NotLessEqual:Gx,NotLessGreater:Xx,NotLessLess:Zx,NotLessSlantEqual:Kx,NotLessTilde:Qx,NotNestedGreaterGreater:Jx,NotNestedLessLess:tw,notni:ew,notniva:nw,notnivb:rw,notnivc:iw,NotPrecedes:aw,NotPrecedesEqual:ow,NotPrecedesSlantEqual:sw,NotReverseElement:lw,NotRightTriangleBar:cw,NotRightTriangle:uw,NotRightTriangleEqual:hw,NotSquareSubset:fw,NotSquareSubsetEqual:dw,NotSquareSuperset:pw,NotSquareSupersetEqual:gw,NotSubset:mw,NotSubsetEqual:yw,NotSucceeds:vw,NotSucceedsEqual:bw,NotSucceedsSlantEqual:_w,NotSucceedsTilde:xw,NotSuperset:ww,NotSupersetEqual:kw,NotTilde:Cw,NotTildeEqual:Ew,NotTildeFullEqual:Sw,NotTildeTilde:Tw,NotVerticalBar:Aw,nparallel:Mw,npar:Nw,nparsl:Dw,npart:Ow,npolint:Lw,npr:Bw,nprcue:Iw,nprec:Rw,npreceq:Fw,npre:Pw,nrarrc:zw,nrarr:qw,nrArr:jw,nrarrw:Hw,nrightarrow:Uw,nRightarrow:$w,nrtri:Ww,nrtrie:Yw,nsc:Vw,nsccue:Gw,nsce:Xw,Nscr:Zw,nscr:Kw,nshortmid:Qw,nshortparallel:Jw,nsim:tk,nsime:ek,nsimeq:nk,nsmid:rk,nspar:ik,nsqsube:ak,nsqsupe:ok,nsub:sk,nsubE:lk,nsube:ck,nsubset:uk,nsubseteq:hk,nsubseteqq:fk,nsucc:dk,nsucceq:pk,nsup:gk,nsupE:mk,nsupe:yk,nsupset:vk,nsupseteq:bk,nsupseteqq:_k,ntgl:xk,Ntilde:wk,ntilde:kk,ntlg:Ck,ntriangleleft:Ek,ntrianglelefteq:Sk,ntriangleright:Tk,ntrianglerighteq:Ak,Nu:Mk,nu:Nk,num:Dk,numero:Ok,numsp:Lk,nvap:Bk,nvdash:Ik,nvDash:Rk,nVdash:Fk,nVDash:Pk,nvge:zk,nvgt:qk,nvHarr:jk,nvinfin:Hk,nvlArr:Uk,nvle:$k,nvlt:Wk,nvltrie:Yk,nvrArr:Vk,nvrtrie:Gk,nvsim:Xk,nwarhk:Zk,nwarr:Kk,nwArr:Qk,nwarrow:Jk,nwnear:tC,Oacute:eC,oacute:nC,oast:rC,Ocirc:iC,ocirc:aC,ocir:oC,Ocy:sC,ocy:lC,odash:cC,Odblac:uC,odblac:hC,odiv:fC,odot:dC,odsold:pC,OElig:gC,oelig:mC,ofcir:yC,Ofr:vC,ofr:bC,ogon:_C,Ograve:xC,ograve:wC,ogt:kC,ohbar:CC,ohm:EC,oint:SC,olarr:TC,olcir:AC,olcross:MC,oline:NC,olt:DC,Omacr:OC,omacr:LC,Omega:BC,omega:IC,Omicron:RC,omicron:FC,omid:PC,ominus:zC,Oopf:qC,oopf:jC,opar:HC,OpenCurlyDoubleQuote:UC,OpenCurlyQuote:$C,operp:WC,oplus:YC,orarr:VC,Or:GC,or:XC,ord:ZC,order:KC,orderof:QC,ordf:JC,ordm:tE,origof:eE,oror:nE,orslope:rE,orv:iE,oS:aE,Oscr:oE,oscr:sE,Oslash:lE,oslash:cE,osol:uE,Otilde:hE,otilde:fE,otimesas:dE,Otimes:pE,otimes:gE,Ouml:mE,ouml:yE,ovbar:vE,OverBar:bE,OverBrace:_E,OverBracket:xE,OverParenthesis:wE,para:kE,parallel:CE,par:EE,parsim:SE,parsl:TE,part:AE,PartialD:ME,Pcy:NE,pcy:DE,percnt:OE,period:LE,permil:BE,perp:IE,pertenk:RE,Pfr:FE,pfr:PE,Phi:zE,phi:qE,phiv:jE,phmmat:HE,phone:UE,Pi:$E,pi:WE,pitchfork:YE,piv:VE,planck:GE,planckh:XE,plankv:ZE,plusacir:KE,plusb:QE,pluscir:JE,plus:tS,plusdo:eS,plusdu:nS,pluse:rS,PlusMinus:iS,plusmn:aS,plussim:oS,plustwo:sS,pm:lS,Poincareplane:cS,pointint:uS,popf:hS,Popf:fS,pound:dS,prap:pS,Pr:gS,pr:mS,prcue:yS,precapprox:vS,prec:bS,preccurlyeq:_S,Precedes:xS,PrecedesEqual:wS,PrecedesSlantEqual:kS,PrecedesTilde:CS,preceq:ES,precnapprox:SS,precneqq:TS,precnsim:AS,pre:MS,prE:NS,precsim:DS,prime:OS,Prime:LS,primes:BS,prnap:IS,prnE:RS,prnsim:FS,prod:PS,Product:zS,profalar:qS,profline:jS,profsurf:HS,prop:US,Proportional:$S,Proportion:WS,propto:YS,prsim:VS,prurel:GS,Pscr:XS,pscr:ZS,Psi:KS,psi:QS,puncsp:JS,Qfr:tT,qfr:eT,qint:nT,qopf:rT,Qopf:iT,qprime:aT,Qscr:oT,qscr:sT,quaternions:lT,quatint:cT,quest:uT,questeq:hT,quot:fT,QUOT:dT,rAarr:pT,race:gT,Racute:mT,racute:yT,radic:vT,raemptyv:bT,rang:_T,Rang:xT,rangd:wT,range:kT,rangle:CT,raquo:ET,rarrap:ST,rarrb:TT,rarrbfs:AT,rarrc:MT,rarr:NT,Rarr:DT,rArr:OT,rarrfs:LT,rarrhk:BT,rarrlp:IT,rarrpl:RT,rarrsim:FT,Rarrtl:PT,rarrtl:zT,rarrw:qT,ratail:jT,rAtail:HT,ratio:UT,rationals:$T,rbarr:WT,rBarr:YT,RBarr:VT,rbbrk:GT,rbrace:XT,rbrack:ZT,rbrke:KT,rbrksld:QT,rbrkslu:JT,Rcaron:tA,rcaron:eA,Rcedil:nA,rcedil:rA,rceil:iA,rcub:aA,Rcy:oA,rcy:sA,rdca:lA,rdldhar:cA,rdquo:uA,rdquor:hA,rdsh:fA,real:dA,realine:pA,realpart:gA,reals:mA,Re:yA,rect:vA,reg:bA,REG:_A,ReverseElement:xA,ReverseEquilibrium:wA,ReverseUpEquilibrium:kA,rfisht:CA,rfloor:EA,rfr:SA,Rfr:TA,rHar:AA,rhard:MA,rharu:NA,rharul:DA,Rho:OA,rho:LA,rhov:BA,RightAngleBracket:IA,RightArrowBar:RA,rightarrow:FA,RightArrow:PA,Rightarrow:zA,RightArrowLeftArrow:qA,rightarrowtail:jA,RightCeiling:HA,RightDoubleBracket:UA,RightDownTeeVector:$A,RightDownVectorBar:WA,RightDownVector:YA,RightFloor:VA,rightharpoondown:GA,rightharpoonup:XA,rightleftarrows:ZA,rightleftharpoons:KA,rightrightarrows:QA,rightsquigarrow:JA,RightTeeArrow:tM,RightTee:eM,RightTeeVector:nM,rightthreetimes:rM,RightTriangleBar:iM,RightTriangle:aM,RightTriangleEqual:oM,RightUpDownVector:sM,RightUpTeeVector:lM,RightUpVectorBar:cM,RightUpVector:uM,RightVectorBar:hM,RightVector:fM,ring:dM,risingdotseq:pM,rlarr:gM,rlhar:mM,rlm:yM,rmoustache:vM,rmoust:bM,rnmid:_M,roang:xM,roarr:wM,robrk:kM,ropar:CM,ropf:EM,Ropf:SM,roplus:TM,rotimes:AM,RoundImplies:MM,rpar:NM,rpargt:DM,rppolint:OM,rrarr:LM,Rrightarrow:BM,rsaquo:IM,rscr:RM,Rscr:FM,rsh:PM,Rsh:zM,rsqb:qM,rsquo:jM,rsquor:HM,rthree:UM,rtimes:$M,rtri:WM,rtrie:YM,rtrif:VM,rtriltri:GM,RuleDelayed:XM,ruluhar:ZM,rx:KM,Sacute:QM,sacute:JM,sbquo:tN,scap:eN,Scaron:nN,scaron:rN,Sc:iN,sc:aN,sccue:oN,sce:sN,scE:lN,Scedil:cN,scedil:uN,Scirc:hN,scirc:fN,scnap:dN,scnE:pN,scnsim:gN,scpolint:mN,scsim:yN,Scy:vN,scy:bN,sdotb:_N,sdot:xN,sdote:wN,searhk:kN,searr:CN,seArr:EN,searrow:SN,sect:TN,semi:AN,seswar:MN,setminus:NN,setmn:DN,sext:ON,Sfr:LN,sfr:BN,sfrown:IN,sharp:RN,SHCHcy:FN,shchcy:PN,SHcy:zN,shcy:qN,ShortDownArrow:jN,ShortLeftArrow:HN,shortmid:UN,shortparallel:$N,ShortRightArrow:WN,ShortUpArrow:YN,shy:VN,Sigma:GN,sigma:XN,sigmaf:ZN,sigmav:KN,sim:QN,simdot:JN,sime:tD,simeq:eD,simg:nD,simgE:rD,siml:iD,simlE:aD,simne:oD,simplus:sD,simrarr:lD,slarr:cD,SmallCircle:uD,smallsetminus:hD,smashp:fD,smeparsl:dD,smid:pD,smile:gD,smt:mD,smte:yD,smtes:vD,SOFTcy:bD,softcy:_D,solbar:xD,solb:wD,sol:kD,Sopf:CD,sopf:ED,spades:SD,spadesuit:TD,spar:AD,sqcap:MD,sqcaps:ND,sqcup:DD,sqcups:OD,Sqrt:LD,sqsub:BD,sqsube:ID,sqsubset:RD,sqsubseteq:FD,sqsup:PD,sqsupe:zD,sqsupset:qD,sqsupseteq:jD,square:HD,Square:UD,SquareIntersection:$D,SquareSubset:WD,SquareSubsetEqual:YD,SquareSuperset:VD,SquareSupersetEqual:GD,SquareUnion:XD,squarf:ZD,squ:KD,squf:QD,srarr:JD,Sscr:tO,sscr:eO,ssetmn:nO,ssmile:rO,sstarf:iO,Star:aO,star:oO,starf:sO,straightepsilon:lO,straightphi:cO,strns:uO,sub:hO,Sub:fO,subdot:dO,subE:pO,sube:gO,subedot:mO,submult:yO,subnE:vO,subne:bO,subplus:_O,subrarr:xO,subset:wO,Subset:kO,subseteq:CO,subseteqq:EO,SubsetEqual:SO,subsetneq:TO,subsetneqq:AO,subsim:MO,subsub:NO,subsup:DO,succapprox:OO,succ:LO,succcurlyeq:BO,Succeeds:IO,SucceedsEqual:RO,SucceedsSlantEqual:FO,SucceedsTilde:PO,succeq:zO,succnapprox:qO,succneqq:jO,succnsim:HO,succsim:UO,SuchThat:$O,sum:WO,Sum:YO,sung:VO,sup1:GO,sup2:XO,sup3:ZO,sup:KO,Sup:QO,supdot:JO,supdsub:tL,supE:eL,supe:nL,supedot:rL,Superset:iL,SupersetEqual:aL,suphsol:oL,suphsub:sL,suplarr:lL,supmult:cL,supnE:uL,supne:hL,supplus:fL,supset:dL,Supset:pL,supseteq:gL,supseteqq:mL,supsetneq:yL,supsetneqq:vL,supsim:bL,supsub:_L,supsup:xL,swarhk:wL,swarr:kL,swArr:CL,swarrow:EL,swnwar:SL,szlig:TL,Tab:AL,target:ML,Tau:NL,tau:DL,tbrk:OL,Tcaron:LL,tcaron:BL,Tcedil:IL,tcedil:RL,Tcy:FL,tcy:PL,tdot:zL,telrec:qL,Tfr:jL,tfr:HL,there4:UL,therefore:$L,Therefore:WL,Theta:YL,theta:VL,thetasym:GL,thetav:XL,thickapprox:ZL,thicksim:KL,ThickSpace:QL,ThinSpace:JL,thinsp:tB,thkap:eB,thksim:nB,THORN:rB,thorn:iB,tilde:aB,Tilde:oB,TildeEqual:sB,TildeFullEqual:lB,TildeTilde:cB,timesbar:uB,timesb:hB,times:fB,timesd:dB,tint:pB,toea:gB,topbot:mB,topcir:yB,top:vB,Topf:bB,topf:_B,topfork:xB,tosa:wB,tprime:kB,trade:CB,TRADE:EB,triangle:SB,triangledown:TB,triangleleft:AB,trianglelefteq:MB,triangleq:NB,triangleright:DB,trianglerighteq:OB,tridot:LB,trie:BB,triminus:IB,TripleDot:RB,triplus:FB,trisb:PB,tritime:zB,trpezium:qB,Tscr:jB,tscr:HB,TScy:UB,tscy:$B,TSHcy:WB,tshcy:YB,Tstrok:VB,tstrok:GB,twixt:XB,twoheadleftarrow:ZB,twoheadrightarrow:KB,Uacute:QB,uacute:JB,uarr:tI,Uarr:eI,uArr:nI,Uarrocir:rI,Ubrcy:iI,ubrcy:aI,Ubreve:oI,ubreve:sI,Ucirc:lI,ucirc:cI,Ucy:uI,ucy:hI,udarr:fI,Udblac:dI,udblac:pI,udhar:gI,ufisht:mI,Ufr:yI,ufr:vI,Ugrave:bI,ugrave:_I,uHar:xI,uharl:wI,uharr:kI,uhblk:CI,ulcorn:EI,ulcorner:SI,ulcrop:TI,ultri:AI,Umacr:MI,umacr:NI,uml:DI,UnderBar:OI,UnderBrace:LI,UnderBracket:BI,UnderParenthesis:II,Union:RI,UnionPlus:FI,Uogon:PI,uogon:zI,Uopf:qI,uopf:jI,UpArrowBar:HI,uparrow:UI,UpArrow:$I,Uparrow:WI,UpArrowDownArrow:YI,updownarrow:VI,UpDownArrow:GI,Updownarrow:XI,UpEquilibrium:ZI,upharpoonleft:KI,upharpoonright:QI,uplus:JI,UpperLeftArrow:tR,UpperRightArrow:eR,upsi:nR,Upsi:rR,upsih:iR,Upsilon:aR,upsilon:oR,UpTeeArrow:sR,UpTee:lR,upuparrows:cR,urcorn:uR,urcorner:hR,urcrop:fR,Uring:dR,uring:pR,urtri:gR,Uscr:mR,uscr:yR,utdot:vR,Utilde:bR,utilde:_R,utri:xR,utrif:wR,uuarr:kR,Uuml:CR,uuml:ER,uwangle:SR,vangrt:TR,varepsilon:AR,varkappa:MR,varnothing:NR,varphi:DR,varpi:OR,varpropto:LR,varr:BR,vArr:IR,varrho:RR,varsigma:FR,varsubsetneq:PR,varsubsetneqq:zR,varsupsetneq:qR,varsupsetneqq:jR,vartheta:HR,vartriangleleft:UR,vartriangleright:$R,vBar:WR,Vbar:YR,vBarv:VR,Vcy:GR,vcy:XR,vdash:ZR,vDash:KR,Vdash:QR,VDash:JR,Vdashl:tF,veebar:eF,vee:nF,Vee:rF,veeeq:iF,vellip:aF,verbar:oF,Verbar:sF,vert:lF,Vert:cF,VerticalBar:uF,VerticalLine:hF,VerticalSeparator:fF,VerticalTilde:dF,VeryThinSpace:pF,Vfr:gF,vfr:mF,vltri:yF,vnsub:vF,vnsup:bF,Vopf:_F,vopf:xF,vprop:wF,vrtri:kF,Vscr:CF,vscr:EF,vsubnE:SF,vsubne:TF,vsupnE:AF,vsupne:MF,Vvdash:NF,vzigzag:DF,Wcirc:OF,wcirc:LF,wedbar:BF,wedge:IF,Wedge:RF,wedgeq:FF,weierp:PF,Wfr:zF,wfr:qF,Wopf:jF,wopf:HF,wp:UF,wr:$F,wreath:WF,Wscr:YF,wscr:VF,xcap:GF,xcirc:XF,xcup:ZF,xdtri:KF,Xfr:QF,xfr:JF,xharr:tP,xhArr:eP,Xi:nP,xi:rP,xlarr:iP,xlArr:aP,xmap:oP,xnis:sP,xodot:lP,Xopf:cP,xopf:uP,xoplus:hP,xotime:fP,xrarr:dP,xrArr:pP,Xscr:gP,xscr:mP,xsqcup:yP,xuplus:vP,xutri:bP,xvee:_P,xwedge:xP,Yacute:wP,yacute:kP,YAcy:CP,yacy:EP,Ycirc:SP,ycirc:TP,Ycy:AP,ycy:MP,yen:NP,Yfr:DP,yfr:OP,YIcy:LP,yicy:BP,Yopf:IP,yopf:RP,Yscr:FP,yscr:PP,YUcy:zP,yucy:qP,yuml:jP,Yuml:HP,Zacute:UP,zacute:$P,Zcaron:WP,zcaron:YP,Zcy:VP,zcy:GP,Zdot:XP,zdot:ZP,zeetrf:KP,ZeroWidthSpace:QP,Zeta:JP,zeta:tz,zfr:ez,Zfr:nz,ZHcy:rz,zhcy:iz,zigrarr:az,zopf:oz,Zopf:sz,Zscr:lz,zscr:cz,zwj:uz,zwnj:hz},dz=fz,pz=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,gz={},mz={};function yz(t){var e,n,r=mz[t];if(r)return r;for(r=mz[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function vz(t,e,n){var r,i,a,o,s,l="";for("string"!==typeof e&&(n=e,e=vz.defaultChars),"undefined"===typeof n&&(n=!0),s=yz(e),r=0,i=t.length;r<i;r++)if(a=t.charCodeAt(r),n&&37===a&&r+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3)))l+=t.slice(r,r+3),r+=2;else if(a<128)l+=s[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&r+1<i&&(o=t.charCodeAt(r+1),o>=56320&&o<=57343)){l+=encodeURIComponent(t[r]+t[r+1]),r++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(t[r]);return l}vz.defaultChars=";/?:@&=+$,-_.!~*'()#",vz.componentChars="-_.!~*'()";var bz=vz,_z={};function xz(t){var e,n,r=_z[t];if(r)return r;for(r=_z[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function wz(t,e){var n;return"string"!==typeof e&&(e=wz.defaultChars),n=xz(e),t.replace(/(%[a-f0-9]{2})+/gi,(function(t){var e,r,i,a,o,s,l,c="";for(e=0,r=t.length;e<r;e+=3)i=parseInt(t.slice(e+1,e+3),16),i<128?c+=n[i]:192===(224&i)&&e+3<r&&(a=parseInt(t.slice(e+4,e+6),16),128===(192&a))?(l=i<<6&1984|63&a,c+=l<128?"<22><>":String.fromCharCode(l),e+=3):224===(240&i)&&e+6<r&&(a=parseInt(t.slice(e+4,e+6),16),o=parseInt(t.slice(e+7,e+9),16),128===(192&a)&&128===(192&o))?(l=i<<12&61440|a<<6&4032|63&o,c+=l<2048||l>=55296&&l<=57343?"<22><><EFBFBD>":String.fromCharCode(l),e+=6):240===(248&i)&&e+9<r&&(a=parseInt(t.slice(e+4,e+6),16),o=parseInt(t.slice(e+7,e+9),16),s=parseInt(t.slice(e+10,e+12),16),128===(192&a)&&128===(192&o)&&128===(192&s))?(l=i<<18&1835008|a<<12&258048|o<<6&4032|63&s,l<65536||l>1114111?c+="<22><><EFBFBD><EFBFBD>":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),e+=9):c+="<22>";return c}))}wz.defaultChars=";/?:@&=+$,#",wz.componentChars="";var kz=wz,Cz=function(t){var e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&-1!==t.hostname.indexOf(":")?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e};function Ez(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Sz=/^([a-z0-9.+-]+:)/i,Tz=/:[0-9]*$/,Az=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Mz=["<",">",'"',"`"," ","\r","\n","\t"],Nz=["{","}","|","\\","^","`"].concat(Mz),Dz=["'"].concat(Nz),Oz=["%","/","?",";","#"].concat(Dz),Lz=["/","?","#"],Bz=255,Iz=/^[+a-z0-9A-Z_-]{0,63}$/,Rz=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Fz={javascript:!0,"javascript:":!0},Pz={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function zz(t,e){if(t&&t instanceof Ez)return t;var n=new Ez;return n.parse(t,e),n}Ez.prototype.parse=function(t,e){var n,r,i,a,o,s=t;if(s=s.trim(),!e&&1===t.split("#").length){var l=Az.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=Sz.exec(s);if(c&&(c=c[0],i=c.toLowerCase(),this.protocol=c,s=s.substr(c.length)),(e||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===s.substr(0,2),!o||c&&Fz[c]||(s=s.substr(2),this.slashes=!0)),!Fz[c]&&(o||c&&!Pz[c])){var u,h,f=-1;for(n=0;n<Lz.length;n++)a=s.indexOf(Lz[n]),-1!==a&&(-1===f||a<f)&&(f=a);for(h=-1===f?s.lastIndexOf("@"):s.lastIndexOf("@",f),-1!==h&&(u=s.slice(0,h),s=s.slice(h+1),this.auth=u),f=-1,n=0;n<Oz.length;n++)a=s.indexOf(Oz[n]),-1!==a&&(-1===f||a<f)&&(f=a);-1===f&&(f=s.length),":"===s[f-1]&&f--;var d=s.slice(0,f);s=s.slice(f),this.parseHost(d),this.hostname=this.hostname||"";var p="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!p){var g=this.hostname.split(/\./);for(n=0,r=g.length;n<r;n++){var m=g[n];if(m&&!m.match(Iz)){for(var y="",v=0,b=m.length;v<b;v++)m.charCodeAt(v)>127?y+="x":y+=m[v];if(!y.match(Iz)){var _=g.slice(0,n),x=g.slice(n+1),w=m.match(Rz);w&&(_.push(w[1]),x.unshift(w[2])),x.length&&(s=x.join(".")+s),this.hostname=_.join(".");break}}}}this.hostname.length>Bz&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var k=s.indexOf("#");-1!==k&&(this.hash=s.substr(k),s=s.slice(0,k));var C=s.indexOf("?");return-1!==C&&(this.search=s.substr(C),s=s.slice(0,C)),s&&(this.pathname=s),Pz[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ez.prototype.parseHost=function(t){var e=Tz.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var qz=zz;gz.encode=bz,gz.decode=kz,gz.format=Cz,gz.parse=qz;var jz={},Hz=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Uz=/[\0-\x1F\x7F-\x9F]/,$z=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Wz=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;jz.Any=Hz,jz.Cc=Uz,jz.Cf=$z,jz.P=pz,jz.Z=Wz,function(t){function e(t){return Object.prototype.toString.call(t)}function n(t){return"[object String]"===e(t)}var r=Object.prototype.hasOwnProperty;function i(t,e){return r.call(t,e)}function a(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach((function(e){if(e){if("object"!==typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(n){t[n]=e[n]}))}})),t}function o(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function s(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!==(65535&t)&&65534!==(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function l(t){if(t>65535){t-=65536;var e=55296+(t>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(c.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=dz;function p(t,e){var n=0;return i(d,e)?d[e]:35===e.charCodeAt(0)&&f.test(e)&&(n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10),s(n))?l(n):t}function g(t){return t.indexOf("\\")<0?t:t.replace(c,"$1")}function m(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(h,(function(t,e,n){return e||p(t,n)}))}var y=/[&<>"]/,v=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function _(t){return b[t]}function x(t){return y.test(t)?t.replace(v,_):t}var w=/[.?*+^$[\]\\(){}|-]/g;function k(t){return t.replace(w,"\\$&")}function C(t){switch(t){case 9:case 32:return!0}return!1}function E(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var S=pz;function T(t){return S.test(t)}function A(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=gz,t.lib.ucmicro=jz,t.assign=a,t.isString=n,t.has=i,t.unescapeMd=g,t.unescapeAll=m,t.isValidEntityCode=s,t.fromCodePoint=l,t.escapeHtml=x,t.arrayReplaceAt=o,t.isSpace=C,t.isWhiteSpace=E,t.isMdAsciiPunct=A,t.isPunctChar=T,t.escapeRE=k,t.normalizeReference=M}(W);var Yz={},Vz=function(t,e,n){var r,i,a,o,s=-1,l=t.posMax,c=t.pos;t.pos=e+1,r=1;while(t.pos<l){if(a=t.src.charCodeAt(t.pos),93===a&&(r--,0===r)){i=!0;break}if(o=t.pos,t.md.inline.skipToken(t),91===a)if(o===t.pos-1)r++;else if(n)return t.pos=c,-1}return i&&(s=t.pos),t.pos=c,s},Gz=W.unescapeAll,Xz=function(t,e,n){var r,i,a=0,o=e,s={ok:!1,pos:0,lines:0,str:""};if(60===t.charCodeAt(e)){e++;while(e<n){if(r=t.charCodeAt(e),10===r)return s;if(60===r)return s;if(62===r)return s.pos=e+1,s.str=Gz(t.slice(o+1,e)),s.ok=!0,s;92===r&&e+1<n?e+=2:e++}return s}i=0;while(e<n){if(r=t.charCodeAt(e),32===r)break;if(r<32||127===r)break;if(92===r&&e+1<n){if(32===t.charCodeAt(e+1))break;e+=2}else{if(40===r&&(i++,i>32))return s;if(41===r){if(0===i)break;i--}e++}}return o===e||0!==i||(s.str=Gz(t.slice(o,e)),s.lines=a,s.pos=e,s.ok=!0),s},Zz=W.unescapeAll,Kz=function(t,e,n){var r,i,a=0,o=e,s={ok:!1,pos:0,lines:0,str:""};if(e>=n)return s;if(i=t.charCodeAt(e),34!==i&&39!==i&&40!==i)return s;e++,40===i&&(i=41);while(e<n){if(r=t.charCodeAt(e),r===i)return s.pos=e+1,s.lines=a,s.str=Zz(t.slice(o+1,e)),s.ok=!0,s;if(40===r&&41===i)return s;10===r?a++:92===r&&e+1<n&&(e++,10===t.charCodeAt(e)&&a++),e++}return s};Yz.parseLinkLabel=Vz,Yz.parseLinkDestination=Xz,Yz.parseLinkTitle=Kz;var Qz=W.assign,Jz=W.unescapeAll,tq=W.escapeHtml,eq={};function nq(){this.rules=Qz({},eq)}eq.code_inline=function(t,e,n,r,i){var a=t[e];return"<code"+i.renderAttrs(a)+">"+tq(t[e].content)+"</code>"},eq.code_block=function(t,e,n,r,i){var a=t[e];return"<pre"+i.renderAttrs(a)+"><code>"+tq(t[e].content)+"</code></pre>\n"},eq.fence=function(t,e,n,r,i){var a,o,s,l,c,u=t[e],h=u.info?Jz(u.info).trim():"",f="",d="";return h&&(s=h.split(/(\s+)/g),f=s[0],d=s.slice(2).join("")),a=n.highlight&&n.highlight(u.content,f,d)||tq(u.content),0===a.indexOf("<pre")?a+"\n":h?(o=u.attrIndex("class"),l=u.attrs?u.attrs.slice():[],o<0?l.push(["class",n.langPrefix+f]):(l[o]=l[o].slice(),l[o][1]+=" "+n.langPrefix+f),c={attrs:l},"<pre><code"+i.renderAttrs(c)+">"+a+"</code></pre>\n"):"<pre><code"+i.renderAttrs(u)+">"+a+"</code></pre>\n"},eq.image=function(t,e,n,r,i){var a=t[e];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(t,e,n)},eq.hardbreak=function(t,e,n){return n.xhtmlOut?"<br />\n":"<br>\n"},eq.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},eq.text=function(t,e){return tq(t[e].content)},eq.html_block=function(t,e){return t[e].content},eq.html_inline=function(t,e){return t[e].content},nq.prototype.renderAttrs=function(t){var e,n,r;if(!t.attrs)return"";for(r="",e=0,n=t.attrs.length;e<n;e++)r+=" "+tq(t.attrs[e][0])+'="'+tq(t.attrs[e][1])+'"';return r},nq.prototype.renderToken=function(t,e,n){var r,i="",a=!1,o=t[e];return o.hidden?"":(o.block&&-1!==o.nesting&&e&&t[e-1].hidden&&(i+="\n"),i+=(-1===o.nesting?"</":"<")+o.tag,i+=this.renderAttrs(o),0===o.nesting&&n.xhtmlOut&&(i+=" /"),o.block&&(a=!0,1===o.nesting&&e+1<t.length&&(r=t[e+1],("inline"===r.type||r.hidden||-1===r.nesting&&r.tag===o.tag)&&(a=!1))),i+=a?">\n":">",i)},nq.prototype.renderInline=function(t,e,n){for(var r,i="",a=this.rules,o=0,s=t.length;o<s;o++)r=t[o].type,"undefined"!==typeof a[r]?i+=a[r](t,o,e,n,this):i+=this.renderToken(t,o,e);return i},nq.prototype.renderInlineAsText=function(t,e,n){for(var r="",i=0,a=t.length;i<a;i++)"text"===t[i].type?r+=t[i].content:"image"===t[i].type?r+=this.renderInlineAsText(t[i].children,e,n):"softbreak"===t[i].type&&(r+="\n");return r},nq.prototype.render=function(t,e,n){var r,i,a,o="",s=this.rules;for(r=0,i=t.length;r<i;r++)a=t[r].type,"inline"===a?o+=this.renderInline(t[r].children,e,n):"undefined"!==typeof s[a]?o+=s[t[r].type](t,r,e,n,this):o+=this.renderToken(t,r,e,n);return o};var rq=nq;function iq(){this.__rules__=[],this.__cache__=null}iq.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},iq.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach((function(t){t.enabled&&t.alt.forEach((function(t){e.indexOf(t)<0&&e.push(t)}))})),t.__cache__={},e.forEach((function(e){t.__cache__[e]=[],t.__rules__.forEach((function(n){n.enabled&&(e&&n.alt.indexOf(e)<0||t.__cache__[e].push(n.fn))}))}))},iq.prototype.at=function(t,e,n){var r=this.__find__(t),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null},iq.prototype.before=function(t,e,n,r){var i=this.__find__(t),a=r||{};if(-1===i)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},iq.prototype.after=function(t,e,n,r){var i=this.__find__(t),a=r||{};if(-1===i)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},iq.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},iq.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach((function(t){var r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!0,n.push(t)}),this),this.__cache__=null,n},iq.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach((function(t){t.enabled=!1})),this.enable(t,e)},iq.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach((function(t){var r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!1,n.push(t)}),this),this.__cache__=null,n},iq.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]};var aq=iq,oq=/\r\n?|\n/g,sq=/\0/g,lq=function(t){var e;e=t.src.replace(oq,"\n"),e=e.replace(sq,"<22>"),t.src=e},cq=function(t){var e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)},uq=function(t){var e,n,r,i=t.tokens;for(n=0,r=i.length;n<r;n++)e=i[n],"inline"===e.type&&t.md.inline.parse(e.content,t.md,t.env,e.children)},hq=W.arrayReplaceAt;function fq(t){return/^<a[>\s]/i.test(t)}function dq(t){return/^<\/a\s*>/i.test(t)}var pq=function(t){var e,n,r,i,a,o,s,l,c,u,h,f,d,p,g,m,y,v=t.tokens;if(t.md.options.linkify)for(n=0,r=v.length;n<r;n++)if("inline"===v[n].type&&t.md.linkify.pretest(v[n].content))for(i=v[n].children,d=0,e=i.length-1;e>=0;e--)if(o=i[e],"link_close"!==o.type){if("html_inline"===o.type&&(fq(o.content)&&d>0&&d--,dq(o.content)&&d++),!(d>0)&&"text"===o.type&&t.md.linkify.test(o.content)){for(c=o.content,y=t.md.linkify.match(c),s=[],f=o.level,h=0,l=0;l<y.length;l++)p=y[l].url,g=t.md.normalizeLink(p),t.md.validateLink(g)&&(m=y[l].text,m=y[l].schema?"mailto:"!==y[l].schema||/^mailto:/i.test(m)?t.md.normalizeLinkText(m):t.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):t.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,""),u=y[l].index,u>h&&(a=new t.Token("text","",0),a.content=c.slice(h,u),a.level=f,s.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",g]],a.level=f++,a.markup="linkify",a.info="auto",s.push(a),a=new t.Token("text","",0),a.content=m,a.level=f,s.push(a),a=new t.Token("link_close","a",-1),a.level=--f,a.markup="linkify",a.info="auto",s.push(a),h=y[l].lastIndex);h<c.length&&(a=new t.Token("text","",0),a.content=c.slice(h),a.level=f,s.push(a)),v[n].children=i=hq(i,e,s)}}else{e--;while(i[e].level!==o.level&&"link_open"!==i[e].type)e--}},gq=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,mq=/\((c|tm|r|p)\)/i,yq=/\((c|tm|r|p)\)/gi,vq={c:"©",r:"®",p:"§",tm:"™"};function bq(t,e){return vq[e.toLowerCase()]}function _q(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],"text"!==n.type||r||(n.content=n.content.replace(yq,bq)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function xq(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],"text"!==n.type||r||gq.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var wq=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&(mq.test(t.tokens[e].content)&&_q(t.tokens[e].children),gq.test(t.tokens[e].content)&&xq(t.tokens[e].children))},kq=W.isWhiteSpace,Cq=W.isPunctChar,Eq=W.isMdAsciiPunct,Sq=/['"]/,Tq=/['"]/g,Aq="’";function Mq(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function Nq(t,e){var n,r,i,a,o,s,l,c,u,h,f,d,p,g,m,y,v,b,_,x,w;for(_=[],n=0;n<t.length;n++){for(r=t[n],l=t[n].level,v=_.length-1;v>=0;v--)if(_[v].level<=l)break;if(_.length=v+1,"text"===r.type){i=r.content,o=0,s=i.length;t:while(o<s){if(Tq.lastIndex=o,a=Tq.exec(i),!a)break;if(m=y=!0,o=a.index+1,b="'"===a[0],u=32,a.index-1>=0)u=i.charCodeAt(a.index-1);else for(v=n-1;v>=0;v--){if("softbreak"===t[v].type||"hardbreak"===t[v].type)break;if(t[v].content){u=t[v].content.charCodeAt(t[v].content.length-1);break}}if(h=32,o<s)h=i.charCodeAt(o);else for(v=n+1;v<t.length;v++){if("softbreak"===t[v].type||"hardbreak"===t[v].type)break;if(t[v].content){h=t[v].content.charCodeAt(0);break}}if(f=Eq(u)||Cq(String.fromCharCode(u)),d=Eq(h)||Cq(String.fromCharCode(h)),p=kq(u),g=kq(h),g?m=!1:d&&(p||f||(m=!1)),p?y=!1:f&&(g||d||(y=!1)),34===h&&'"'===a[0]&&u>=48&&u<=57&&(y=m=!1),m&&y&&(m=f,y=d),m||y){if(y)for(v=_.length-1;v>=0;v--){if(c=_[v],_[v].level<l)break;if(c.single===b&&_[v].level===l){c=_[v],b?(x=e.md.options.quotes[2],w=e.md.options.quotes[3]):(x=e.md.options.quotes[0],w=e.md.options.quotes[1]),r.content=Mq(r.content,a.index,w),t[c.token].content=Mq(t[c.token].content,c.pos,x),o+=w.length-1,c.token===n&&(o+=x.length-1),i=r.content,s=i.length,_.length=v;continue t}}m?_.push({token:n,pos:a.index,single:b,level:l}):y&&b&&(r.content=Mq(r.content,a.index,Aq))}else b&&(r.content=Mq(r.content,a.index,Aq))}}}}var Dq=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&Sq.test(t.tokens[e].content)&&Nq(t.tokens[e].children,t)};function Oq(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Oq.prototype.attrIndex=function(t){var e,n,r;if(!this.attrs)return-1;for(e=this.attrs,n=0,r=e.length;n<r;n++)if(e[n][0]===t)return n;return-1},Oq.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},Oq.prototype.attrSet=function(t,e){var n=this.attrIndex(t),r=[t,e];n<0?this.attrPush(r):this.attrs[n]=r},Oq.prototype.attrGet=function(t){var e=this.attrIndex(t),n=null;return e>=0&&(n=this.attrs[e][1]),n},Oq.prototype.attrJoin=function(t,e){var n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e};var Lq=Oq,Bq=Lq;function Iq(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}Iq.prototype.Token=Bq;var Rq=Iq,Fq=aq,Pq=[["normalize",lq],["block",cq],["inline",uq],["linkify",pq],["replacements",wq],["smartquotes",Dq]];function zq(){this.ruler=new Fq;for(var t=0;t<Pq.length;t++)this.ruler.push(Pq[t][0],Pq[t][1])}zq.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},zq.prototype.State=Rq;var qq=zq,jq=W.isSpace;function Hq(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function Uq(t){var e,n=[],r=0,i=t.length,a=!1,o=0,s="";e=t.charCodeAt(r);while(r<i)124===e&&(a?(s+=t.substring(o,r-1),o=r):(n.push(s+t.substring(o,r)),s="",o=r+1)),a=92===e,r++,e=t.charCodeAt(r);return n.push(s+t.substring(o)),n}var $q=function(t,e,n,r){var i,a,o,s,l,c,u,h,f,d,p,g,m,y,v,b,_,x;if(e+2>n)return!1;if(c=e+1,t.sCount[c]<t.blkIndent)return!1;if(t.sCount[c]-t.blkIndent>=4)return!1;if(o=t.bMarks[c]+t.tShift[c],o>=t.eMarks[c])return!1;if(_=t.src.charCodeAt(o++),124!==_&&45!==_&&58!==_)return!1;if(o>=t.eMarks[c])return!1;if(x=t.src.charCodeAt(o++),124!==x&&45!==x&&58!==x&&!jq(x))return!1;if(45===_&&jq(x))return!1;while(o<t.eMarks[c]){if(i=t.src.charCodeAt(o),124!==i&&45!==i&&58!==i&&!jq(i))return!1;o++}for(a=Hq(t,e+1),u=a.split("|"),d=[],s=0;s<u.length;s++){if(p=u[s].trim(),!p){if(0===s||s===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(p))return!1;58===p.charCodeAt(p.length-1)?d.push(58===p.charCodeAt(0)?"center":"right"):58===p.charCodeAt(0)?d.push("left"):d.push("")}if(a=Hq(t,e).trim(),-1===a.indexOf("|"))return!1;if(t.sCount[e]-t.blkIndent>=4)return!1;if(u=Uq(a),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),h=u.length,0===h||h!==d.length)return!1;if(r)return!0;for(y=t.parentType,t.parentType="table",b=t.md.block.ruler.getRules("blockquote"),f=t.push("table_open","table",1),f.map=g=[e,0],f=t.push("thead_open","thead",1),f.map=[e,e+1],f=t.push("tr_open","tr",1),f.map=[e,e+1],s=0;s<u.length;s++)f=t.push("th_open","th",1),d[s]&&(f.attrs=[["style","text-align:"+d[s]]]),f=t.push("inline","",0),f.content=u[s].trim(),f.children=[],f=t.push("th_close","th",-1);for(f=t.push("tr_close","tr",-1),f=t.push("thead_close","thead",-1),c=e+2;c<n;c++){if(t.sCount[c]<t.blkIndent)break;for(v=!1,s=0,l=b.length;s<l;s++)if(b[s](t,c,n,!0)){v=!0;break}if(v)break;if(a=Hq(t,c).trim(),!a)break;if(t.sCount[c]-t.blkIndent>=4)break;for(u=Uq(a),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),c===e+2&&(f=t.push("tbody_open","tbody",1),f.map=m=[e+2,0]),f=t.push("tr_open","tr",1),f.map=[c,c+1],s=0;s<h;s++)f=t.push("td_open","td",1),d[s]&&(f.attrs=[["style","text-align:"+d[s]]]),f=t.push("inline","",0),f.content=u[s]?u[s].trim():"",f.children=[],f=t.push("td_close","td",-1);f=t.push("tr_close","tr",-1)}return m&&(f=t.push("tbody_close","tbody",-1),m[1]=c),f=t.push("table_close","table",-1),g[1]=c,t.parentType=y,t.line=c,!0},Wq=function(t,e,n){var r,i,a;if(t.sCount[e]-t.blkIndent<4)return!1;i=r=e+1;while(r<n)if(t.isEmpty(r))r++;else{if(!(t.sCount[r]-t.blkIndent>=4))break;r++,i=r}return t.line=i,a=t.push("code_block","code",0),a.content=t.getLines(e,i,4+t.blkIndent,!1)+"\n",a.map=[e,t.line],!0},Yq=function(t,e,n,r){var i,a,o,s,l,c,u,h=!1,f=t.bMarks[e]+t.tShift[e],d=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(f+3>d)return!1;if(i=t.src.charCodeAt(f),126!==i&&96!==i)return!1;if(l=f,f=t.skipChars(f,i),a=f-l,a<3)return!1;if(u=t.src.slice(l,f),o=t.src.slice(f,d),96===i&&o.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=e;;){if(s++,s>=n)break;if(f=l=t.bMarks[s]+t.tShift[s],d=t.eMarks[s],f<d&&t.sCount[s]<t.blkIndent)break;if(t.src.charCodeAt(f)===i&&(!(t.sCount[s]-t.blkIndent>=4)&&(f=t.skipChars(f,i),!(f-l<a)&&(f=t.skipSpaces(f),!(f<d))))){h=!0;break}}return a=t.sCount[e],t.line=s+(h?1:0),c=t.push("fence","code",0),c.info=o,c.content=t.getLines(e+1,s,a,!0),c.markup=u,c.map=[e,t.line],!0},Vq=W.isSpace,Gq=function(t,e,n,r){var i,a,o,s,l,c,u,h,f,d,p,g,m,y,v,b,_,x,w,k,C=t.lineMax,E=t.bMarks[e]+t.tShift[e],S=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(62!==t.src.charCodeAt(E++))return!1;if(r)return!0;s=f=t.sCount[e]+1,32===t.src.charCodeAt(E)?(E++,s++,f++,i=!1,b=!0):9===t.src.charCodeAt(E)?(b=!0,(t.bsCount[e]+f)%4===3?(E++,s++,f++,i=!1):i=!0):b=!1,d=[t.bMarks[e]],t.bMarks[e]=E;while(E<S){if(a=t.src.charCodeAt(E),!Vq(a))break;9===a?f+=4-(f+t.bsCount[e]+(i?1:0))%4:f++,E++}for(p=[t.bsCount[e]],t.bsCount[e]=t.sCount[e]+1+(b?1:0),c=E>=S,y=[t.sCount[e]],t.sCount[e]=f-s,v=[t.tShift[e]],t.tShift[e]=E-t.bMarks[e],x=t.md.block.ruler.getRules("blockquote"),m=t.parentType,t.parentType="blockquote",h=e+1;h<n;h++){if(k=t.sCount[h]<t.blkIndent,E=t.bMarks[h]+t.tShift[h],S=t.eMarks[h],E>=S)break;if(62!==t.src.charCodeAt(E++)||k){if(c)break;for(_=!1,o=0,l=x.length;o<l;o++)if(x[o](t,h,n,!0)){_=!0;break}if(_){t.lineMax=h,0!==t.blkIndent&&(d.push(t.bMarks[h]),p.push(t.bsCount[h]),v.push(t.tShift[h]),y.push(t.sCount[h]),t.sCount[h]-=t.blkIndent);break}d.push(t.bMarks[h]),p.push(t.bsCount[h]),v.push(t.tShift[h]),y.push(t.sCount[h]),t.sCount[h]=-1}else{s=f=t.sCount[h]+1,32===t.src.charCodeAt(E)?(E++,s++,f++,i=!1,b=!0):9===t.src.charCodeAt(E)?(b=!0,(t.bsCount[h]+f)%4===3?(E++,s++,f++,i=!1):i=!0):b=!1,d.push(t.bMarks[h]),t.bMarks[h]=E;while(E<S){if(a=t.src.charCodeAt(E),!Vq(a))break;9===a?f+=4-(f+t.bsCount[h]+(i?1:0))%4:f++,E++}c=E>=S,p.push(t.bsCount[h]),t.bsCount[h]=t.sCount[h]+1+(b?1:0),y.push(t.sCount[h]),t.sCount[h]=f-s,v.push(t.tShift[h]),t.tShift[h]=E-t.bMarks[h]}}for(g=t.blkIndent,t.blkIndent=0,w=t.push("blockquote_open","blockquote",1),w.markup=">",w.map=u=[e,0],t.md.block.tokenize(t,e,h),w=t.push("blockquote_close","blockquote",-1),w.markup=">",t.lineMax=C,t.parentType=m,u[1]=t.line,o=0;o<v.length;o++)t.bMarks[o+e]=d[o],t.tShift[o+e]=v[o],t.sCount[o+e]=y[o],t.bsCount[o+e]=p[o];return t.blkIndent=g,!0},Xq=W.isSpace,Zq=function(t,e,n,r){var i,a,o,s,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(i=t.src.charCodeAt(l++),42!==i&&45!==i&&95!==i)return!1;a=1;while(l<c){if(o=t.src.charCodeAt(l++),o!==i&&!Xq(o))return!1;o===i&&a++}return!(a<3)&&(r||(t.line=e+1,s=t.push("hr","hr",0),s.map=[e,t.line],s.markup=Array(a+1).join(String.fromCharCode(i))),!0)},Kq=W.isSpace;function Qq(t,e){var n,r,i,a;return r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(r++),42!==n&&45!==n&&43!==n||r<i&&(a=t.src.charCodeAt(r),!Kq(a))?-1:r}function Jq(t,e){var n,r=t.bMarks[e]+t.tShift[e],i=r,a=t.eMarks[e];if(i+1>=a)return-1;if(n=t.src.charCodeAt(i++),n<48||n>57)return-1;for(;;){if(i>=a)return-1;if(n=t.src.charCodeAt(i++),!(n>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<a&&(n=t.src.charCodeAt(i),!Kq(n))?-1:i}function tj(t,e){var n,r,i=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===i&&"paragraph_open"===t.tokens[n].type&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var ej=function(t,e,n,r){var i,a,o,s,l,c,u,h,f,d,p,g,m,y,v,b,_,x,w,k,C,E,S,T,A,M,N,D,O=!1,L=!0;if(t.sCount[e]-t.blkIndent>=4)return!1;if(t.listIndent>=0&&t.sCount[e]-t.listIndent>=4&&t.sCount[e]<t.blkIndent)return!1;if(r&&"paragraph"===t.parentType&&t.sCount[e]>=t.blkIndent&&(O=!0),(S=Jq(t,e))>=0){if(u=!0,A=t.bMarks[e]+t.tShift[e],m=Number(t.src.slice(A,S-1)),O&&1!==m)return!1}else{if(!((S=Qq(t,e))>=0))return!1;u=!1}if(O&&t.skipSpaces(S)>=t.eMarks[e])return!1;if(g=t.src.charCodeAt(S-1),r)return!0;p=t.tokens.length,u?(D=t.push("ordered_list_open","ol",1),1!==m&&(D.attrs=[["start",m]])):D=t.push("bullet_list_open","ul",1),D.map=d=[e,0],D.markup=String.fromCharCode(g),v=e,T=!1,N=t.md.block.ruler.getRules("list"),x=t.parentType,t.parentType="list";while(v<n){E=S,y=t.eMarks[v],c=b=t.sCount[v]+S-(t.bMarks[e]+t.tShift[e]);while(E<y){if(i=t.src.charCodeAt(E),9===i)b+=4-(b+t.bsCount[v])%4;else{if(32!==i)break;b++}E++}if(a=E,l=a>=y?1:b-c,l>4&&(l=1),s=c+l,D=t.push("list_item_open","li",1),D.markup=String.fromCharCode(g),D.map=h=[e,0],u&&(D.info=t.src.slice(A,S-1)),C=t.tight,k=t.tShift[e],w=t.sCount[e],_=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=s,t.tight=!0,t.tShift[e]=a-t.bMarks[e],t.sCount[e]=b,a>=y&&t.isEmpty(e+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,e,n,!0),t.tight&&!T||(L=!1),T=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=_,t.tShift[e]=k,t.sCount[e]=w,t.tight=C,D=t.push("list_item_close","li",-1),D.markup=String.fromCharCode(g),v=e=t.line,h[1]=v,a=t.bMarks[e],v>=n)break;if(t.sCount[v]<t.blkIndent)break;if(t.sCount[e]-t.blkIndent>=4)break;for(M=!1,o=0,f=N.length;o<f;o++)if(N[o](t,v,n,!0)){M=!0;break}if(M)break;if(u){if(S=Jq(t,v),S<0)break;A=t.bMarks[v]+t.tShift[v]}else if(S=Qq(t,v),S<0)break;if(g!==t.src.charCodeAt(S-1))break}return D=u?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1),D.markup=String.fromCharCode(g),d[1]=v,t.line=v,t.parentType=x,L&&tj(t,p),!0},nj=W.normalizeReference,rj=W.isSpace,ij=function(t,e,n,r){var i,a,o,s,l,c,u,h,f,d,p,g,m,y,v,b,_=0,x=t.bMarks[e]+t.tShift[e],w=t.eMarks[e],k=e+1;if(t.sCount[e]-t.blkIndent>=4)return!1;if(91!==t.src.charCodeAt(x))return!1;while(++x<w)if(93===t.src.charCodeAt(x)&&92!==t.src.charCodeAt(x-1)){if(x+1===w)return!1;if(58!==t.src.charCodeAt(x+1))return!1;break}for(s=t.lineMax,v=t.md.block.ruler.getRules("reference"),d=t.parentType,t.parentType="reference";k<s&&!t.isEmpty(k);k++)if(!(t.sCount[k]-t.blkIndent>3)&&!(t.sCount[k]<0)){for(y=!1,c=0,u=v.length;c<u;c++)if(v[c](t,k,s,!0)){y=!0;break}if(y)break}for(m=t.getLines(e,k,t.blkIndent,!1).trim(),w=m.length,x=1;x<w;x++){if(i=m.charCodeAt(x),91===i)return!1;if(93===i){f=x;break}10===i?_++:92===i&&(x++,x<w&&10===m.charCodeAt(x)&&_++)}if(f<0||58!==m.charCodeAt(f+1))return!1;for(x=f+2;x<w;x++)if(i=m.charCodeAt(x),10===i)_++;else if(!rj(i))break;if(p=t.md.helpers.parseLinkDestination(m,x,w),!p.ok)return!1;if(l=t.md.normalizeLink(p.str),!t.md.validateLink(l))return!1;for(x=p.pos,_+=p.lines,a=x,o=_,g=x;x<w;x++)if(i=m.charCodeAt(x),10===i)_++;else if(!rj(i))break;p=t.md.helpers.parseLinkTitle(m,x,w),x<w&&g!==x&&p.ok?(b=p.str,x=p.pos,_+=p.lines):(b="",x=a,_=o);while(x<w){if(i=m.charCodeAt(x),!rj(i))break;x++}if(x<w&&10!==m.charCodeAt(x)&&b){b="",x=a,_=o;while(x<w){if(i=m.charCodeAt(x),!rj(i))break;x++}}return!(x<w&&10!==m.charCodeAt(x))&&(h=nj(m.slice(1,f)),!!h&&(r||("undefined"===typeof t.env.references&&(t.env.references={}),"undefined"===typeof t.env.references[h]&&(t.env.references[h]={title:b,href:l}),t.parentType=d,t.line=e+_+1),!0))},aj=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],oj={},sj="[a-zA-Z_:][a-zA-Z0-9:._-]*",lj="[^\"'=<>`\\x00-\\x20]+",cj="'[^']*'",uj='"[^"]*"',hj="(?:"+lj+"|"+cj+"|"+uj+")",fj="(?:\\s+"+sj+"(?:\\s*=\\s*"+hj+")?)",dj="<[A-Za-z][A-Za-z0-9\\-]*"+fj+"*\\s*\\/?>",pj="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",gj="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e",mj="<[?][\\s\\S]*?[?]>",yj="<![A-Z]+\\s+[^>]*>",vj="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",bj=new RegExp("^(?:"+dj+"|"+pj+"|"+gj+"|"+mj+"|"+yj+"|"+vj+")"),_j=new RegExp("^(?:"+dj+"|"+pj+")");oj.HTML_TAG_RE=bj,oj.HTML_OPEN_CLOSE_TAG_RE=_j;var xj=aj,wj=oj.HTML_OPEN_CLOSE_TAG_RE,kj=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+xj.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(wj.source+"\\s*$"),/^$/,!1]],Cj=function(t,e,n,r){var i,a,o,s,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(l))return!1;for(s=t.src.slice(l,c),i=0;i<kj.length;i++)if(kj[i][0].test(s))break;if(i===kj.length)return!1;if(r)return kj[i][2];if(a=e+1,!kj[i][1].test(s))for(;a<n;a++){if(t.sCount[a]<t.blkIndent)break;if(l=t.bMarks[a]+t.tShift[a],c=t.eMarks[a],s=t.src.slice(l,c),kj[i][1].test(s)){0!==s.length&&a++;break}}return t.line=a,o=t.push("html_block","",0),o.map=[e,a],o.content=t.getLines(e,a,t.blkIndent,!0),!0},Ej=W.isSpace,Sj=function(t,e,n,r){var i,a,o,s,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(i=t.src.charCodeAt(l),35!==i||l>=c)return!1;a=1,i=t.src.charCodeAt(++l);while(35===i&&l<c&&a<=6)a++,i=t.src.charCodeAt(++l);return!(a>6||l<c&&!Ej(i))&&(r||(c=t.skipSpacesBack(c,l),o=t.skipCharsBack(c,35,l),o>l&&Ej(t.src.charCodeAt(o-1))&&(c=o),t.line=e+1,s=t.push("heading_open","h"+String(a),1),s.markup="########".slice(0,a),s.map=[e,t.line],s=t.push("inline","",0),s.content=t.src.slice(l,c).trim(),s.map=[e,t.line],s.children=[],s=t.push("heading_close","h"+String(a),-1),s.markup="########".slice(0,a)),!0)},Tj=function(t,e,n){var r,i,a,o,s,l,c,u,h,f,d=e+1,p=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;for(f=t.parentType,t.parentType="paragraph";d<n&&!t.isEmpty(d);d++)if(!(t.sCount[d]-t.blkIndent>3)){if(t.sCount[d]>=t.blkIndent&&(l=t.bMarks[d]+t.tShift[d],c=t.eMarks[d],l<c&&(h=t.src.charCodeAt(l),(45===h||61===h)&&(l=t.skipChars(l,h),l=t.skipSpaces(l),l>=c)))){u=61===h?1:2;break}if(!(t.sCount[d]<0)){for(i=!1,a=0,o=p.length;a<o;a++)if(p[a](t,d,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=t.getLines(e,d,t.blkIndent,!1).trim(),t.line=d+1,s=t.push("heading_open","h"+String(u),1),s.markup=String.fromCharCode(h),s.map=[e,t.line],s=t.push("inline","",0),s.content=r,s.map=[e,t.line-1],s.children=[],s=t.push("heading_close","h"+String(u),-1),s.markup=String.fromCharCode(h),t.parentType=f,!0)},Aj=function(t,e){var n,r,i,a,o,s,l=e+1,c=t.md.block.ruler.getRules("paragraph"),u=t.lineMax;for(s=t.parentType,t.parentType="paragraph";l<u&&!t.isEmpty(l);l++)if(!(t.sCount[l]-t.blkIndent>3)&&!(t.sCount[l]<0)){for(r=!1,i=0,a=c.length;i<a;i++)if(c[i](t,l,u,!0)){r=!0;break}if(r)break}return n=t.getLines(e,l,t.blkIndent,!1).trim(),t.line=l,o=t.push("paragraph_open","p",1),o.map=[e,t.line],o=t.push("inline","",0),o.content=n,o.map=[e,t.line],o.children=[],o=t.push("paragraph_close","p",-1),t.parentType=s,!0},Mj=Lq,Nj=W.isSpace;function Dj(t,e,n,r){var i,a,o,s,l,c,u,h;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,h=!1,o=s=c=u=0,l=a.length;s<l;s++){if(i=a.charCodeAt(s),!h){if(Nj(i)){c++,9===i?u+=4-u%4:u++;continue}h=!0}10!==i&&s!==l-1||(10!==i&&s++,this.bMarks.push(o),this.eMarks.push(s),this.tShift.push(c),this.sCount.push(u),this.bsCount.push(0),h=!1,c=0,u=0,o=s+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Dj.prototype.push=function(t,e,n){var r=new Mj(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Dj.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Dj.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e;t++)if(this.bMarks[t]+this.tShift[t]<this.eMarks[t])break;return t},Dj.prototype.skipSpaces=function(t){for(var e,n=this.src.length;t<n;t++)if(e=this.src.charCodeAt(t),!Nj(e))break;return t},Dj.prototype.skipSpacesBack=function(t,e){if(t<=e)return t;while(t>e)if(!Nj(this.src.charCodeAt(--t)))return t+1;return t},Dj.prototype.skipChars=function(t,e){for(var n=this.src.length;t<n;t++)if(this.src.charCodeAt(t)!==e)break;return t},Dj.prototype.skipCharsBack=function(t,e,n){if(t<=n)return t;while(t>n)if(e!==this.src.charCodeAt(--t))return t+1;return t},Dj.prototype.getLines=function(t,e,n,r){var i,a,o,s,l,c,u,h=t;if(t>=e)return"";for(c=new Array(e-t),i=0;h<e;h++,i++){a=0,u=s=this.bMarks[h],l=h+1<e||r?this.eMarks[h]+1:this.eMarks[h];while(s<l&&a<n){if(o=this.src.charCodeAt(s),Nj(o))9===o?a+=4-(a+this.bsCount[h])%4:a++;else{if(!(s-u<this.tShift[h]))break;a++}s++}c[i]=a>n?new Array(a-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return c.join("")},Dj.prototype.Token=Mj;var Oj=Dj,Lj=aq,Bj=[["table",$q,["paragraph","reference"]],["code",Wq],["fence",Yq,["paragraph","reference","blockquote","list"]],["blockquote",Gq,["paragraph","reference","blockquote","list"]],["hr",Zq,["paragraph","reference","blockquote","list"]],["list",ej,["paragraph","reference","blockquote"]],["reference",ij],["html_block",Cj,["paragraph","reference","blockquote"]],["heading",Sj,["paragraph","reference","blockquote"]],["lheading",Tj],["paragraph",Aj]];function Ij(){this.ruler=new Lj;for(var t=0;t<Bj.length;t++)this.ruler.push(Bj[t][0],Bj[t][1],{alt:(Bj[t][2]||[]).slice()})}Ij.prototype.tokenize=function(t,e,n){var r,i,a=this.ruler.getRules(""),o=a.length,s=e,l=!1,c=t.md.options.maxNesting;while(s<n){if(t.line=s=t.skipEmptyLines(s),s>=n)break;if(t.sCount[s]<t.blkIndent)break;if(t.level>=c){t.line=n;break}for(i=0;i<o;i++)if(r=a[i](t,s,n,!1),r)break;t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),s=t.line,s<n&&t.isEmpty(s)&&(l=!0,s++,t.line=s)}},Ij.prototype.parse=function(t,e,n,r){var i;t&&(i=new this.State(t,e,n,r),this.tokenize(i,i.line,i.lineMax))},Ij.prototype.State=Oj;var Rj=Ij;function Fj(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var Pj=function(t,e){var n=t.pos;while(n<t.posMax&&!Fj(t.src.charCodeAt(n)))n++;return n!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)},zj=W.isSpace,qj=function(t,e){var n,r,i,a=t.pos;if(10!==t.src.charCodeAt(a))return!1;if(n=t.pending.length-1,r=t.posMax,!e)if(n>=0&&32===t.pending.charCodeAt(n))if(n>=1&&32===t.pending.charCodeAt(n-1)){i=n-1;while(i>=1&&32===t.pending.charCodeAt(i-1))i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);a++;while(a<r&&zj(t.src.charCodeAt(a)))a++;return t.pos=a,!0},jj=W.isSpace,Hj=[],Uj=0;Uj<256;Uj++)Hj.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(t){Hj[t.charCodeAt(0)]=1}));var $j=function(t,e){var n,r=t.pos,i=t.posMax;if(92!==t.src.charCodeAt(r))return!1;if(r++,r<i){if(n=t.src.charCodeAt(r),n<256&&0!==Hj[n])return e||(t.pending+=t.src[r]),t.pos+=2,!0;if(10===n){e||t.push("hardbreak","br",0),r++;while(r<i){if(n=t.src.charCodeAt(r),!jj(n))break;r++}return t.pos=r,!0}}return e||(t.pending+="\\"),t.pos++,!0},Wj=function(t,e){var n,r,i,a,o,s,l,c,u=t.pos,h=t.src.charCodeAt(u);if(96!==h)return!1;n=u,u++,r=t.posMax;while(u<r&&96===t.src.charCodeAt(u))u++;if(i=t.src.slice(n,u),l=i.length,t.backticksScanned&&(t.backticks[l]||0)<=n)return e||(t.pending+=i),t.pos+=l,!0;o=s=u;while(-1!==(o=t.src.indexOf("`",s))){s=o+1;while(s<r&&96===t.src.charCodeAt(s))s++;if(c=s-o,c===l)return e||(a=t.push("code_inline","code",0),a.markup=i,a.content=t.src.slice(u,o).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=s,!0;t.backticks[c]=o}return t.backticksScanned=!0,e||(t.pending+=i),t.pos+=l,!0},Yj={};function Vj(t,e){var n,r,i,a,o,s=[],l=e.length;for(n=0;n<l;n++)i=e[n],126===i.marker&&-1!==i.end&&(a=e[i.end],o=t.tokens[i.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=t.tokens[a.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===t.tokens[a.token-1].type&&"~"===t.tokens[a.token-1].content&&s.push(a.token-1));while(s.length){n=s.pop(),r=n+1;while(r<t.tokens.length&&"s_close"===t.tokens[r].type)r++;r--,n!==r&&(o=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=o)}}Yj.tokenize=function(t,e){var n,r,i,a,o,s=t.pos,l=t.src.charCodeAt(s);if(e)return!1;if(126!==l)return!1;if(r=t.scanDelims(t.pos,!0),a=r.length,o=String.fromCharCode(l),a<2)return!1;for(a%2&&(i=t.push("text","",0),i.content=o,a--),n=0;n<a;n+=2)i=t.push("text","",0),i.content=o+o,t.delimiters.push({marker:l,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0},Yj.postProcess=function(t){var e,n=t.tokens_meta,r=t.tokens_meta.length;for(Vj(t,t.delimiters),e=0;e<r;e++)n[e]&&n[e].delimiters&&Vj(t,n[e].delimiters)};var Gj={};function Xj(t,e){var n,r,i,a,o,s,l=e.length;for(n=l-1;n>=0;n--)r=e[n],95!==r.marker&&42!==r.marker||-1!==r.end&&(i=e[r.end],s=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),a=t.tokens[r.token],a.type=s?"strong_open":"em_open",a.tag=s?"strong":"em",a.nesting=1,a.markup=s?o+o:o,a.content="",a=t.tokens[i.token],a.type=s?"strong_close":"em_close",a.tag=s?"strong":"em",a.nesting=-1,a.markup=s?o+o:o,a.content="",s&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}Gj.tokenize=function(t,e){var n,r,i,a=t.pos,o=t.src.charCodeAt(a);if(e)return!1;if(95!==o&&42!==o)return!1;for(r=t.scanDelims(t.pos,42===o),n=0;n<r.length;n++)i=t.push("text","",0),i.content=String.fromCharCode(o),t.delimiters.push({marker:o,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0},Gj.postProcess=function(t){var e,n=t.tokens_meta,r=t.tokens_meta.length;for(Xj(t,t.delimiters),e=0;e<r;e++)n[e]&&n[e].delimiters&&Xj(t,n[e].delimiters)};var Zj=W.normalizeReference,Kj=W.isSpace,Qj=function(t,e){var n,r,i,a,o,s,l,c,u,h="",f="",d=t.pos,p=t.posMax,g=t.pos,m=!0;if(91!==t.src.charCodeAt(t.pos))return!1;if(o=t.pos+1,a=t.md.helpers.parseLinkLabel(t,t.pos,!0),a<0)return!1;if(s=a+1,s<p&&40===t.src.charCodeAt(s)){for(m=!1,s++;s<p;s++)if(r=t.src.charCodeAt(s),!Kj(r)&&10!==r)break;if(s>=p)return!1;if(g=s,l=t.md.helpers.parseLinkDestination(t.src,s,t.posMax),l.ok){for(h=t.md.normalizeLink(l.str),t.md.validateLink(h)?s=l.pos:h="",g=s;s<p;s++)if(r=t.src.charCodeAt(s),!Kj(r)&&10!==r)break;if(l=t.md.helpers.parseLinkTitle(t.src,s,t.posMax),s<p&&g!==s&&l.ok)for(f=l.str,s=l.pos;s<p;s++)if(r=t.src.charCodeAt(s),!Kj(r)&&10!==r)break}(s>=p||41!==t.src.charCodeAt(s))&&(m=!0),s++}if(m){if("undefined"===typeof t.env.references)return!1;if(s<p&&91===t.src.charCodeAt(s)?(g=s+1,s=t.md.helpers.parseLinkLabel(t,s),s>=0?i=t.src.slice(g,s++):s=a+1):s=a+1,i||(i=t.src.slice(o,a)),c=t.env.references[Zj(i)],!c)return t.pos=d,!1;h=c.href,f=c.title}return e||(t.pos=o,t.posMax=a,u=t.push("link_open","a",1),u.attrs=n=[["href",h]],f&&n.push(["title",f]),t.md.inline.tokenize(t),u=t.push("link_close","a",-1)),t.pos=s,t.posMax=p,!0},Jj=W.normalizeReference,tH=W.isSpace,eH=function(t,e){var n,r,i,a,o,s,l,c,u,h,f,d,p,g="",m=t.pos,y=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;if(s=t.pos+2,o=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),o<0)return!1;if(l=o+1,l<y&&40===t.src.charCodeAt(l)){for(l++;l<y;l++)if(r=t.src.charCodeAt(l),!tH(r)&&10!==r)break;if(l>=y)return!1;for(p=l,u=t.md.helpers.parseLinkDestination(t.src,l,t.posMax),u.ok&&(g=t.md.normalizeLink(u.str),t.md.validateLink(g)?l=u.pos:g=""),p=l;l<y;l++)if(r=t.src.charCodeAt(l),!tH(r)&&10!==r)break;if(u=t.md.helpers.parseLinkTitle(t.src,l,t.posMax),l<y&&p!==l&&u.ok){for(h=u.str,l=u.pos;l<y;l++)if(r=t.src.charCodeAt(l),!tH(r)&&10!==r)break}else h="";if(l>=y||41!==t.src.charCodeAt(l))return t.pos=m,!1;l++}else{if("undefined"===typeof t.env.references)return!1;if(l<y&&91===t.src.charCodeAt(l)?(p=l+1,l=t.md.helpers.parseLinkLabel(t,l),l>=0?a=t.src.slice(p,l++):l=o+1):l=o+1,a||(a=t.src.slice(s,o)),c=t.env.references[Jj(a)],!c)return t.pos=m,!1;g=c.href,h=c.title}return e||(i=t.src.slice(s,o),t.md.inline.parse(i,t.md,t.env,d=[]),f=t.push("image","img",0),f.attrs=n=[["src",g],["alt",""]],f.children=d,f.content=i,h&&n.push(["title",h])),t.pos=l,t.posMax=y,!0},nH=/^([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])?)*)$/,rH=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,iH=function(t,e){var n,r,i,a,o,s,l=t.pos;if(60!==t.src.charCodeAt(l))return!1;for(o=t.pos,s=t.posMax;;){if(++l>=s)return!1;if(a=t.src.charCodeAt(l),60===a)return!1;if(62===a)break}return n=t.src.slice(o+1,l),rH.test(n)?(r=t.md.normalizeLink(n),!!t.md.validateLink(r)&&(e||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(n),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=n.length+2,!0)):!!nH.test(n)&&(r=t.md.normalizeLink("mailto:"+n),!!t.md.validateLink(r)&&(e||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(n),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=n.length+2,!0))},aH=oj.HTML_TAG_RE;function oH(t){var e=32|t;return e>=97&&e<=122}var sH=function(t,e){var n,r,i,a,o=t.pos;return!!t.md.options.html&&(i=t.posMax,!(60!==t.src.charCodeAt(o)||o+2>=i)&&(n=t.src.charCodeAt(o+1),!(33!==n&&63!==n&&47!==n&&!oH(n))&&(r=t.src.slice(o).match(aH),!!r&&(e||(a=t.push("html_inline","",0),a.content=t.src.slice(o,o+r[0].length)),t.pos+=r[0].length,!0))))},lH=dz,cH=W.has,uH=W.isValidEntityCode,hH=W.fromCodePoint,fH=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,dH=/^&([a-z][a-z0-9]{1,31});/i,pH=function(t,e){var n,r,i,a=t.pos,o=t.posMax;if(38!==t.src.charCodeAt(a))return!1;if(a+1<o)if(n=t.src.charCodeAt(a+1),35===n){if(i=t.src.slice(a).match(fH),i)return e||(r="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),t.pending+=uH(r)?hH(r):hH(65533)),t.pos+=i[0].length,!0}else if(i=t.src.slice(a).match(dH),i&&cH(lH,i[1]))return e||(t.pending+=lH[i[1]]),t.pos+=i[0].length,!0;return e||(t.pending+="&"),t.pos++,!0};function gH(t,e){var n,r,i,a,o,s,l,c,u={},h=e.length;if(h){var f=0,d=-2,p=[];for(n=0;n<h;n++)if(i=e[n],p.push(0),e[f].marker===i.marker&&d===i.token-1||(f=n),d=i.token,i.length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),o=u[i.marker][(i.open?3:0)+i.length%3],r=f-p[f]-1,s=r;r>o;r-=p[r]+1)if(a=e[r],a.marker===i.marker&&a.open&&a.end<0&&(l=!1,(a.close||i.open)&&(a.length+i.length)%3===0&&(a.length%3===0&&i.length%3===0||(l=!0)),!l)){c=r>0&&!e[r-1].open?p[r-1]+1:0,p[n]=n-r+c,p[r]=c,i.open=!1,a.end=n,a.close=!1,s=-1,d=-2;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}var mH=function(t){var e,n=t.tokens_meta,r=t.tokens_meta.length;for(gH(t,t.delimiters),e=0;e<r;e++)n[e]&&n[e].delimiters&&gH(t,n[e].delimiters)},yH=function(t){var e,n,r=0,i=t.tokens,a=t.tokens.length;for(e=n=0;e<a;e++)i[e].nesting<0&&r--,i[e].level=r,i[e].nesting>0&&r++,"text"===i[e].type&&e+1<a&&"text"===i[e+1].type?i[e+1].content=i[e].content+i[e+1].content:(e!==n&&(i[n]=i[e]),n++);e!==n&&(i.length=n)},vH=Lq,bH=W.isWhiteSpace,_H=W.isPunctChar,xH=W.isMdAsciiPunct;function wH(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}wH.prototype.pushPending=function(){var t=new vH("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},wH.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new vH(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},wH.prototype.scanDelims=function(t,e){var n,r,i,a,o,s,l,c,u,h=t,f=!0,d=!0,p=this.posMax,g=this.src.charCodeAt(t);n=t>0?this.src.charCodeAt(t-1):32;while(h<p&&this.src.charCodeAt(h)===g)h++;return i=h-t,r=h<p?this.src.charCodeAt(h):32,l=xH(n)||_H(String.fromCharCode(n)),u=xH(r)||_H(String.fromCharCode(r)),s=bH(n),c=bH(r),c?f=!1:u&&(s||l||(f=!1)),s?d=!1:l&&(c||u||(d=!1)),e?(a=f,o=d):(a=f&&(!d||l),o=d&&(!f||u)),{can_open:a,can_close:o,length:i}},wH.prototype.Token=vH;var kH=wH,CH=aq,EH=[["text",Pj],["newline",qj],["escape",$j],["backticks",Wj],["strikethrough",Yj.tokenize],["emphasis",Gj.tokenize],["link",Qj],["image",eH],["autolink",iH],["html_inline",sH],["entity",pH]],SH=[["balance_pairs",mH],["strikethrough",Yj.postProcess],["emphasis",Gj.postProcess],["text_collapse",yH]];function TH(){var t;for(this.ruler=new CH,t=0;t<EH.length;t++)this.ruler.push(EH[t][0],EH[t][1]);for(this.ruler2=new CH,t=0;t<SH.length;t++)this.ruler2.push(SH[t][0],SH[t][1])}TH.prototype.skipToken=function(t){var e,n,r=t.pos,i=this.ruler.getRules(""),a=i.length,o=t.md.options.maxNesting,s=t.cache;if("undefined"===typeof s[r]){if(t.level<o){for(n=0;n<a;n++)if(t.level++,e=i[n](t,!0),t.level--,e)break}else t.pos=t.posMax;e||t.pos++,s[r]=t.pos}else t.pos=s[r]},TH.prototype.tokenize=function(t){var e,n,r=this.ruler.getRules(""),i=r.length,a=t.posMax,o=t.md.options.maxNesting;while(t.pos<a){if(t.level<o)for(n=0;n<i;n++)if(e=r[n](t,!1),e)break;if(e){if(t.pos>=a)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},TH.prototype.parse=function(t,e,n,r){var i,a,o,s=new this.State(t,e,n,r);for(this.tokenize(s),a=this.ruler2.getRules(""),o=a.length,i=0;i<o;i++)a[i](s)},TH.prototype.State=kH;var AH=TH,MH=function(t){var e={};e.src_Any=Hz.source,e.src_Cc=Uz.source,e.src_Z=Wz.source,e.src_P=pz.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e};function NH(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach((function(e){e&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t}function DH(t){return Object.prototype.toString.call(t)}function OH(t){return"[object String]"===DH(t)}function LH(t){return"[object Object]"===DH(t)}function BH(t){return"[object RegExp]"===DH(t)}function IH(t){return"[object Function]"===DH(t)}function RH(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var FH={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function PH(t){return Object.keys(t||{}).reduce((function(t,e){return t||FH.hasOwnProperty(e)}),!1)}var zH={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&":"===t[e-3]||e>=3&&"/"===t[e-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},qH="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",jH="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function HH(t){t.__index__=-1,t.__text_cache__=""}function UH(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function $H(){return function(t,e){e.normalize(t)}}function WH(t){var e=t.re=MH(t.__opts__),n=t.__tlds__.slice();function r(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||n.push(qH),n.push(e.src_xn),e.src_tlds=n.join("|"),e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];function a(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach((function(e){var n=t.__schemas__[e];if(null!==n){var r={validate:null,link:null};if(t.__compiled__[e]=r,LH(n))return BH(n.validate)?r.validate=UH(n.validate):IH(n.validate)?r.validate=n.validate:a(e,n),void(IH(n.normalize)?r.normalize=n.normalize:n.normalize?a(e,n):r.normalize=$H());OH(n)?i.push(e):a(e,n)}})),i.forEach((function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)})),t.__compiled__[""]={validate:null,normalize:$H()};var o=Object.keys(t.__compiled__).filter((function(e){return e.length>0&&t.__compiled__[e]})).map(RH).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),HH(t)}function YH(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function VH(t,e){var n=new YH(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function GH(t,e){if(!(this instanceof GH))return new GH(t,e);e||PH(t)&&(e=t,t={}),this.__opts__=NH({},FH,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=NH({},zH,t),this.__compiled__={},this.__tlds__=jH,this.__tlds_replaced__=!1,this.re={},WH(this)}GH.prototype.add=function(t,e){return this.__schemas__[t]=e,WH(this),this},GH.prototype.set=function(t){return this.__opts__=NH(this.__opts__,t),this},GH.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,i,a,o,s,l,c;if(this.re.schema_test.test(t)){s=this.re.schema_search,s.lastIndex=0;while(null!==(e=s.exec(t)))if(i=this.testSchemaAt(t,e[2],s.lastIndex),i){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=t.indexOf("@"),c>=0&&null!==(r=t.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=o))),this.__index__>=0},GH.prototype.pretest=function(t){return this.re.pretest.test(t)},GH.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},GH.prototype.match=function(t){var e=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(VH(this,e)),e=this.__last_index__);var r=e?t.slice(e):t;while(this.test(r))n.push(VH(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},GH.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,n){return t!==n[e-1]})).reverse(),WH(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,WH(this),this)},GH.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},GH.prototype.onCompile=function(){};var XH=GH;const ZH=2147483647,KH=36,QH=1,JH=26,tU=38,eU=700,nU=72,rU=128,iU="-",aU=/^xn--/,oU=/[^\0-\x7E]/,sU=/[\x2E\u3002\uFF0E\uFF61]/g,lU={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},cU=KH-QH,uU=Math.floor,hU=String.fromCharCode;function fU(t){throw new RangeError(lU[t])}function dU(t,e){const n=[];let r=t.length;while(r--)n[r]=e(t[r]);return n}function pU(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(sU,".");const i=t.split("."),a=dU(i,e).join(".");return r+a}function gU(t){const e=[];let n=0;const r=t.length;while(n<r){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=t.charCodeAt(n++);56320==(64512&r)?e.push(((1023&i)<<10)+(1023&r)+65536):(e.push(i),n--)}else e.push(i)}return e}const mU=t=>String.fromCodePoint(...t),yU=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:KH},vU=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},bU=function(t,e,n){let r=0;for(t=n?uU(t/eU):t>>1,t+=uU(t/e);t>cU*JH>>1;r+=KH)t=uU(t/cU);return uU(r+(cU+1)*t/(t+tU))},_U=function(t){const e=[],n=t.length;let r=0,i=rU,a=nU,o=t.lastIndexOf(iU);o<0&&(o=0);for(let s=0;s<o;++s)t.charCodeAt(s)>=128&&fU("not-basic"),e.push(t.charCodeAt(s));for(let s=o>0?o+1:0;s<n;){let o=r;for(let e=1,i=KH;;i+=KH){s>=n&&fU("invalid-input");const o=yU(t.charCodeAt(s++));(o>=KH||o>uU((ZH-r)/e))&&fU("overflow"),r+=o*e;const l=i<=a?QH:i>=a+JH?JH:i-a;if(o<l)break;const c=KH-l;e>uU(ZH/c)&&fU("overflow"),e*=c}const l=e.length+1;a=bU(r-o,l,0==o),uU(r/l)>ZH-i&&fU("overflow"),i+=uU(r/l),r%=l,e.splice(r++,0,i)}return String.fromCodePoint(...e)},xU=function(t){const e=[];t=gU(t);let n=t.length,r=rU,i=0,a=nU;for(const l of t)l<128&&e.push(hU(l));let o=e.length,s=o;o&&e.push(iU);while(s<n){let n=ZH;for(const e of t)e>=r&&e<n&&(n=e);const l=s+1;n-r>uU((ZH-i)/l)&&fU("overflow"),i+=(n-r)*l,r=n;for(const c of t)if(c<r&&++i>ZH&&fU("overflow"),c==r){let t=i;for(let n=KH;;n+=KH){const r=n<=a?QH:n>=a+JH?JH:n-a;if(t<r)break;const i=t-r,o=KH-r;e.push(hU(vU(r+i%o,0))),t=uU(i/o)}e.push(hU(vU(t,0))),a=bU(i,l,s==o),i=0,++s}++i,++r}return e.join("")},wU=function(t){return pU(t,(function(t){return aU.test(t)?_U(t.slice(4).toLowerCase()):t}))},kU=function(t){return pU(t,(function(t){return oU.test(t)?"xn--"+xU(t):t}))},CU={version:"2.1.0",ucs2:{decode:gU,encode:mU},decode:_U,encode:xU,toASCII:kU,toUnicode:wU};var EU=Object.freeze(Object.defineProperty({__proto__:null,ucs2decode:gU,ucs2encode:mU,decode:_U,encode:xU,toASCII:kU,toUnicode:wU,default:CU},Symbol.toStringTag,{value:"Module"})),SU=k(EU),TU={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},AU={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},MU={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},NU=W,DU=Yz,OU=rq,LU=qq,BU=Rj,IU=AH,RU=XH,FU=gz,PU=SU,zU={default:TU,zero:AU,commonmark:MU},qU=/^(vbscript|javascript|file|data):/,jU=/^data:image\/(gif|png|jpeg|webp);/;function HU(t){var e=t.trim().toLowerCase();return!qU.test(e)||!!jU.test(e)}var UU=["http:","https:","mailto:"];function $U(t){var e=FU.parse(t,!0);if(e.hostname&&(!e.protocol||UU.indexOf(e.protocol)>=0))try{e.hostname=PU.toASCII(e.hostname)}catch(n){}return FU.encode(FU.format(e))}function WU(t){var e=FU.parse(t,!0);if(e.hostname&&(!e.protocol||UU.indexOf(e.protocol)>=0))try{e.hostname=PU.toUnicode(e.hostname)}catch(n){}return FU.decode(FU.format(e),FU.decode.defaultChars+"%")}function YU(t,e){if(!(this instanceof YU))return new YU(t,e);e||NU.isString(t)||(e=t||{},t="default"),this.inline=new IU,this.block=new BU,this.core=new LU,this.renderer=new OU,this.linkify=new RU,this.validateLink=HU,this.normalizeLink=$U,this.normalizeLinkText=WU,this.utils=NU,this.helpers=NU.assign({},DU),this.options={},this.configure(t),e&&this.set(e)}YU.prototype.set=function(t){return NU.assign(this.options,t),this},YU.prototype.configure=function(t){var e,n=this;if(NU.isString(t)&&(e=t,t=zU[e],!t))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach((function(e){t.components[e].rules&&n[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&n[e].ruler2.enableOnly(t.components[e].rules2)})),this},YU.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.enable(t,!0))}),this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter((function(t){return n.indexOf(t)<0}));if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},YU.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.disable(t,!0))}),this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter((function(t){return n.indexOf(t)<0}));if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},YU.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},YU.prototype.parse=function(t,e){if("string"!==typeof t)throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},YU.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},YU.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},YU.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var VU=YU,GU=VU,XU=function(t){var e=t.utils.escapeRE,n=t.utils.arrayReplaceAt,r=" \r\n$+<=>^`|~",i=t.utils.lib.ucmicro.P.source,a=t.utils.lib.ucmicro.Z.source;function o(t,e,n,r){var i,a,o,s,l,c=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];if(c+2>=u)return!1;if(42!==t.src.charCodeAt(c++))return!1;if(91!==t.src.charCodeAt(c++))return!1;for(s=c;c<u;c++){if(o=t.src.charCodeAt(c),91===o)return!1;if(93===o){l=c;break}92===o&&c++}return!(l<0||58!==t.src.charCodeAt(l+1))&&(!!r||(i=t.src.slice(s,l).replace(/\\(.)/g,"$1"),a=t.src.slice(l+2,u).trim(),0!==i.length&&(0!==a.length&&(t.env.abbreviations||(t.env.abbreviations={}),"undefined"===typeof t.env.abbreviations[":"+i]&&(t.env.abbreviations[":"+i]=a),t.line=e+1,!0))))}function s(t){var o,s,l,c,u,h,f,d,p,g,m,y,v,b=t.tokens;if(t.env.abbreviations)for(y=new RegExp("(?:"+Object.keys(t.env.abbreviations).map((function(t){return t.substr(1)})).sort((function(t,e){return e.length-t.length})).map(e).join("|")+")"),m="(^|"+i+"|"+a+"|["+r.split("").map(e).join("")+"])("+Object.keys(t.env.abbreviations).map((function(t){return t.substr(1)})).sort((function(t,e){return e.length-t.length})).map(e).join("|")+")($|"+i+"|"+a+"|["+r.split("").map(e).join("")+"])",p=new RegExp(m,"g"),s=0,l=b.length;s<l;s++)if("inline"===b[s].type)for(c=b[s].children,o=c.length-1;o>=0;o--)if(v=c[o],"text"===v.type&&(d=0,h=v.content,p.lastIndex=0,f=[],y.test(h))){while(g=p.exec(h))(g.index>0||g[1].length>0)&&(u=new t.Token("text","",0),u.content=h.slice(d,g.index+g[1].length),f.push(u)),u=new t.Token("abbr_open","abbr",1),u.attrs=[["title",t.env.abbreviations[":"+g[2]]]],f.push(u),u=new t.Token("text","",0),u.content=g[2],f.push(u),u=new t.Token("abbr_close","abbr",-1),f.push(u),p.lastIndex-=g[3].length,d=p.lastIndex;f.length&&(d<h.length&&(u=new t.Token("text","",0),u.content=h.slice(d),f.push(u)),b[s].children=c=n(c,o,f))}}t.block.ruler.before("reference","abbr_def",o,{alt:["paragraph","reference"]}),t.core.ruler.after("linkify","abbr_replace",s)},ZU=!1,KU={false:"push",true:"unshift",after:"push",before:"unshift"},QU={isPermalinkSymbol:!0};function JU(t,e,n,r){var i;if(!ZU){var a="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#todo-anchor-or-file";"object"==typeof process&&process&&process.emitWarning?process.emitWarning(a):console.warn(a),ZU=!0}var o=[Object.assign(new n.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(t,n)]],Object.entries(e.permalinkAttrs(t,n)))}),Object.assign(new n.Token("html_block","",0),{content:e.permalinkSymbol,meta:QU}),new n.Token("link_close","a",-1)];e.permalinkSpace&&n.tokens[r+1].children[KU[e.permalinkBefore]](Object.assign(new n.Token("text","",0),{content:" "})),(i=n.tokens[r+1].children)[KU[e.permalinkBefore]].apply(i,o)}function t$(t){return"#"+t}function e$(t){return{}}var n$={class:"header-anchor",symbol:"#",renderHref:t$,renderAttrs:e$};function r$(t){function e(n){return n=Object.assign({},e.defaults,n),function(e,r,i,a){return t(e,n,r,i,a)}}return e.defaults=Object.assign({},n$),e.renderPermalinkImpl=t,e}var i$=r$((function(t,e,n,r,i){var a,o=[Object.assign(new r.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,r)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(t,r)))}),Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:QU}),new r.Token("link_close","a",-1)];if(e.space){var s="string"==typeof e.space?e.space:" ";r.tokens[i+1].children[KU[e.placement]](Object.assign(new r.Token("string"==typeof e.space?"html_inline":"text","",0),{content:s}))}(a=r.tokens[i+1].children)[KU[e.placement]].apply(a,o)}));Object.assign(i$.defaults,{space:!0,placement:"after",ariaHidden:!1});var a$=r$(i$.renderPermalinkImpl);a$.defaults=Object.assign({},i$.defaults,{ariaHidden:!0});var o$=r$((function(t,e,n,r,i){var a=[Object.assign(new r.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,r)]],Object.entries(e.renderAttrs(t,r)))})].concat(e.safariReaderFix?[new r.Token("span_open","span",1)]:[],r.tokens[i+1].children,e.safariReaderFix?[new r.Token("span_close","span",-1)]:[],[new r.Token("link_close","a",-1)]);r.tokens[i+1]=Object.assign(new r.Token("inline","",0),{children:a})}));Object.assign(o$.defaults,{safariReaderFix:!1});var s$=r$((function(t,e,n,r,i){var a;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if("visually-hidden"===e.style&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=r.tokens[i+1].children.filter((function(t){return"text"===t.type||"code_inline"===t.type})).reduce((function(t,e){return t+e.content}),""),s=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(t,r)]),l.push.apply(l,Object.entries(e.renderAttrs(t,r))),"visually-hidden"===e.style){if(s.push(Object.assign(new r.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new r.Token("text","",0),{content:e.assistiveText(o)}),new r.Token("span_close","span",-1)),e.space){var c="string"==typeof e.space?e.space:" ";s[KU[e.placement]](Object.assign(new r.Token("string"==typeof e.space?"html_inline":"text","",0),{content:c}))}s[KU[e.placement]](Object.assign(new r.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:QU}),new r.Token("span_close","span",-1))}else s.push(Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:QU}));"aria-label"===e.style?l.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,t]);var u=[Object.assign(new r.Token("link_open","a",1),{attrs:l})].concat(s,[new r.Token("link_close","a",-1)]);(a=r.tokens).splice.apply(a,[i+3,0].concat(u)),e.wrapper&&(r.tokens.splice(i,0,Object.assign(new r.Token("html_block","",0),{content:e.wrapper[0]+"\n"})),r.tokens.splice(i+3+u.length+1,0,Object.assign(new r.Token("html_block","",0),{content:e.wrapper[1]+"\n"})))}));function l$(t,e,n,r){var i=t,a=r;if(n&&Object.prototype.hasOwnProperty.call(e,i))throw new Error("User defined `id` attribute `"+t+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,i);)i=t+"-"+a,a+=1;return e[i]=!0,i}function c$(t,e){e=Object.assign({},c$.defaults,e),t.core.ruler.push("anchor",(function(t){for(var n,r={},i=t.tokens,a=Array.isArray(e.level)?(n=e.level,function(t){return n.includes(t)}):function(t){return function(e){return e>=t}}(e.level),o=0;o<i.length;o++){var s=i[o];if("heading_open"===s.type&&a(Number(s.tag.substr(1)))){var l=e.getTokensText(i[o+1].children),c=s.attrGet("id");c=null==c?l$(e.slugify(l),r,!1,e.uniqueSlugStartIndex):l$(c,r,!0,e.uniqueSlugStartIndex),s.attrSet("id",c),!1!==e.tabIndex&&s.attrSet("tabindex",""+e.tabIndex),"function"==typeof e.permalink?e.permalink(c,e,t,o):(e.permalink||e.renderPermalink&&e.renderPermalink!==JU)&&e.renderPermalink(c,e,t,o),o=i.indexOf(s),e.callback&&e.callback(s,{slug:c,title:l})}}}))}Object.assign(s$.defaults,{style:"visually-hidden",space:!0,placement:"after",wrapper:null}),c$.permalink={__proto__:null,legacy:JU,renderHref:t$,renderAttrs:e$,makePermalink:r$,linkInsideHeader:i$,ariaHidden:a$,headerLink:o$,linkAfterHeader:s$},c$.defaults={level:1,slugify:function(t){return encodeURIComponent(String(t).trim().toLowerCase().replace(/\s+/g,"-"))},uniqueSlugStartIndex:1,tabIndex:"-1",getTokensText:function(t){return t.filter((function(t){return["text","code_inline"].includes(t.type)})).map((function(t){return t.content})).join("")},permalink:!1,renderPermalink:JU,permalinkClass:a$.defaults.class,permalinkSpace:a$.defaults.space,permalinkSymbol:"¶",permalinkBefore:"before"===a$.defaults.placement,permalinkHref:a$.defaults.renderHref,permalinkAttrs:a$.defaults.renderAttrs},c$.default=c$;var u$={};function h$(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}u$.getAttrs=function(t,e,n){const r=/[^\t\n\f />"'=]/,i=" ",a="=",o=".",s="#",l=[];let c="",u="",h=!0,f=!1;for(let d=e+n.leftDelimiter.length;d<t.length;d++){if(t.slice(d,d+n.rightDelimiter.length)===n.rightDelimiter){""!==c&&l.push([c,u]);break}const e=t.charAt(d);if(e===a&&h)h=!1;else if(e!==o||""!==c)if(e!==s||""!==c)if('"'!==e||""!==u)if('"'===e&&f)f=!1;else if(e!==i||f)h&&-1===e.search(r)||(h?c+=e:u+=e);else{if(""===c)continue;l.push([c,u]),c="",u="",h=!0}else f=!0;else c="id",h=!1;else t.charAt(d+1)===o?(c="css-module",d+=1):c="class",h=!1}if(n.allowedAttributes&&n.allowedAttributes.length){const t=n.allowedAttributes;return l.filter((function(e){const n=e[0];function r(t){return n===t||t instanceof RegExp&&t.test(n)}return t.some(r)}))}return l},u$.addAttrs=function(t,e){for(let n=0,r=t.length;n<r;++n){const r=t[n][0];"class"===r?e.attrJoin("class",t[n][1]):"css-module"===r?e.attrJoin("css-module",t[n][1]):e.attrPush(t[n])}return e},u$.hasDelimiters=function(t,e){if(!t)throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');return function(n){const r=e.leftDelimiter.length+1+e.rightDelimiter.length;if(!n||"string"!==typeof n||n.length<r)return!1;function i(t){const n="."===t.charAt(e.leftDelimiter.length),i="#"===t.charAt(e.leftDelimiter.length);return n||i?t.length>=r+1:t.length>=r}let a,o,s,l;const c=r-e.rightDelimiter.length;switch(t){case"start":s=n.slice(0,e.leftDelimiter.length),a=s===e.leftDelimiter?0:-1,o=-1===a?-1:n.indexOf(e.rightDelimiter,c),l=n.charAt(o+e.rightDelimiter.length),l&&-1!==e.rightDelimiter.indexOf(l)&&(o=-1);break;case"end":a=n.lastIndexOf(e.leftDelimiter),o=-1===a?-1:n.indexOf(e.rightDelimiter,a+c),o=o===n.length-e.rightDelimiter.length?o:-1;break;case"only":s=n.slice(0,e.leftDelimiter.length),a=s===e.leftDelimiter?0:-1,s=n.slice(n.length-e.rightDelimiter.length),o=s===e.rightDelimiter?n.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${t}, expected 'start', 'end' or 'only'`)}return-1!==a&&-1!==o&&i(n.substring(a,o+e.rightDelimiter.length))}},u$.removeDelimiter=function(t,e){const n=h$(e.leftDelimiter),r=h$(e.rightDelimiter),i=new RegExp("[ \\n]?"+n+"[^"+n+r+"]+"+r+"$"),a=t.search(i);return-1!==a?t.slice(0,a):t},u$.escapeRegExp=h$,u$.getMatchingOpeningToken=function(t,e){if("softbreak"===t[e].type)return!1;if(0===t[e].nesting)return t[e];const n=t[e].level,r=t[e].type.replace("_close","_open");for(;e>=0;--e)if(t[e].type===r&&t[e].level===n)return t[e];return!1};const f$=/[&<>"]/,d$=/[&<>"]/g,p$={"&":"&","<":"<",">":">",'"':"""};function g$(t){return p$[t]}u$.escapeHtml=function(t){return f$.test(t)?t.replace(d$,g$):t};const m$=u$;var y$=t=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+m$.escapeRegExp(t.leftDelimiter)+"[^"+m$.escapeRegExp(t.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:m$.hasDelimiters("end",t)}],transform:(e,n)=>{const r=e[n],i=r.info.lastIndexOf(t.leftDelimiter),a=m$.getAttrs(r.info,i,t);m$.addAttrs(a,r),r.info=m$.removeDelimiter(r.info,t)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:t=>"image"===t||"code_inline"===t},{shift:0,type:"text",content:m$.hasDelimiters("start",t)}]}],transform:(e,n,r)=>{const i=e[n].children[r],a=i.content.indexOf(t.rightDelimiter),o=e[n].children[r-1],s=m$.getAttrs(i.content,0,t);m$.addAttrs(s,o),i.content.length===a+t.rightDelimiter.length?e[n].children.splice(r,1):i.content=i.content.slice(a+t.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:m$.hasDelimiters("only",t)}],transform:(e,n)=>{const r=e[n+2],i=m$.getMatchingOpeningToken(e,n),a=m$.getAttrs(r.content,0,t);m$.addAttrs(a,i),e.splice(n+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:m$.hasDelimiters("start",t)}]}],transform:(e,n,r)=>{const i=e[n].children[r],a=i.content,o=m$.getAttrs(a,0,t),s=m$.getMatchingOpeningToken(e[n].children,r-1);m$.addAttrs(o,s),i.content=a.slice(a.indexOf(t.rightDelimiter)+t.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:m$.hasDelimiters("only",t)}]}],transform:(e,n,r)=>{const i=e[n].children[r],a=i.content,o=m$.getAttrs(a,0,t);let s=n-2;while(e[s-1]&&"ordered_list_open"!==e[s-1].type&&"bullet_list_open"!==e[s-1].type)s--;m$.addAttrs(o,e[s-1]),e[n].children=e[n].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:t=>"bullet_list_close"===t||"ordered_list_close"===t},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:m$.hasDelimiters("only",t),children:t=>1===t.length},{shift:3,type:"paragraph_close"}],transform:(e,n)=>{const r=e[n+2],i=r.content,a=m$.getAttrs(i,0,t),o=m$.getMatchingOpeningToken(e,n);m$.addAttrs(a,o),e.splice(n+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:m$.hasDelimiters("end",t)}]}],transform:(e,n,r)=>{const i=e[n].children[r],a=i.content,o=m$.getAttrs(a,a.lastIndexOf(t.leftDelimiter),t);m$.addAttrs(o,e[n-2]);const s=a.slice(0,a.lastIndexOf(t.leftDelimiter));i.content=" "!==v$(s)?s:s.slice(0,-1)}},{name:"\n{.a} softbreak then curly in start",tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:m$.hasDelimiters("only",t)}]}],transform:(e,n,r)=>{const i=e[n].children[r],a=m$.getAttrs(i.content,0,t);let o=n+1;while(e[o+1]&&-1===e[o+1].nesting)o++;const s=m$.getMatchingOpeningToken(e,o);m$.addAttrs(a,s),e[n].children=e[n].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:t=>1===t.length,content:t=>null!==t.match(e)},{shift:2,type:"paragraph_close"}],transform:(e,n)=>{const r=e[n];r.type="hr",r.tag="hr",r.nesting=0;const i=e[n+1].content,a=i.lastIndexOf(t.leftDelimiter),o=m$.getAttrs(i,a,t);m$.addAttrs(o,r),r.markup=i,e.splice(n+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:m$.hasDelimiters("end",t),type:t=>"code_inline"!==t&&"math_inline"!==t}]}],transform:(e,n,r)=>{const i=e[n].children[r],a=i.content,o=m$.getAttrs(a,a.lastIndexOf(t.leftDelimiter),t);let s=n+1;while(e[s+1]&&-1===e[s+1].nesting)s++;const l=m$.getMatchingOpeningToken(e,s);m$.addAttrs(o,l);const c=a.slice(0,a.lastIndexOf(t.leftDelimiter));i.content=" "!==v$(c)?c:c.slice(0,-1)}}]};function v$(t){return t.slice(-1)[0]}const b$=y$,_$={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var x$=function(t,e){let n=Object.assign({},_$);n=Object.assign(n,e);const r=b$(n);function i(t){const e=t.tokens;for(let n=0;n<e.length;n++)for(let t=0;t<r.length;t++){const i=r[t];let a=null;const o=i.tests.every((t=>{const r=w$(e,n,t);return null!==r.j&&(a=r.j),r.match}));o&&(i.transform(e,n,a),"inline attributes"!==i.name&&"inline nesting 0"!==i.name||t--)}}t.core.ruler.before("linkify","curly_attributes",i)};function w$(t,e,n){const r={match:!1,j:null},i=void 0!==n.shift?e+n.shift:n.position;if(void 0!==n.shift&&i<0)return r;const a=E$(t,i);if(void 0===a)return r;for(const o of Object.keys(n))if("shift"!==o&&"position"!==o){if(void 0===a[o])return r;if("children"===o&&k$(n.children)){if(0===a.children.length)return r;let t;const e=n.children,i=a.children;if(e.every((t=>void 0!==t.position))){if(t=e.every((t=>w$(i,t.position,t).match)),t){const t=S$(e).position;r.j=t>=0?t:i.length+t}}else for(let n=0;n<i.length;n++)if(t=e.every((t=>w$(i,n,t).match)),t){r.j=n;break}if(!1===t)return r}else switch(typeof n[o]){case"boolean":case"number":case"string":if(a[o]!==n[o])return r;break;case"function":if(!n[o](a[o]))return r;break;case"object":if(C$(n[o])){const t=n[o].every((t=>t(a[o])));if(!1===t)return r;break}default:throw new Error(`Unknown type of pattern test (key: ${o}). Test should be of type boolean, number, string, function or array of functions.`)}}return r.match=!0,r}function k$(t){return Array.isArray(t)&&t.length&&t.every((t=>"object"===typeof t))}function C$(t){return Array.isArray(t)&&t.length&&t.every((t=>"function"===typeof t))}function E$(t,e){return e>=0?t[e]:t[t.length+e]}function S$(t){return t.slice(-1)[0]||{}}const T$="😀",A$="😃",M$="😄",N$="😁",D$="😆",O$="😆",L$="😅",B$="🤣",I$="😂",R$="🙂",F$="🙃",P$="😉",z$="😊",q$="😇",j$="🥰",H$="😍",U$="🤩",$$="😘",W$="😗",Y$="☺️",V$="😚",G$="😙",X$="🥲",Z$="😋",K$="😛",Q$="😜",J$="🤪",tW="😝",eW="🤑",nW="🤗",rW="🤭",iW="🤫",aW="🤔",oW="🤐",sW="🤨",lW="😐",cW="😑",uW="😶",hW="😏",fW="😒",dW="🙄",pW="😬",gW="🤥",mW="😌",yW="😔",vW="😪",bW="🤤",_W="😴",xW="😷",wW="🤒",kW="🤕",CW="🤢",EW="🤮",SW="🤧",TW="🥵",AW="🥶",MW="🥴",NW="😵",DW="🤯",OW="🤠",LW="🥳",BW="🥸",IW="😎",RW="🤓",FW="🧐",PW="😕",zW="😟",qW="🙁",jW="☹️",HW="😮",UW="😯",$W="😲",WW="😳",YW="🥺",VW="😦",GW="😧",XW="😨",ZW="😰",KW="😥",QW="😢",JW="😭",tY="😱",eY="😖",nY="😣",rY="😞",iY="😓",aY="😩",oY="😫",sY="🥱",lY="😤",cY="😡",uY="😡",hY="😠",fY="🤬",dY="😈",pY="👿",gY="💀",mY="☠️",yY="💩",vY="💩",bY="💩",_Y="🤡",xY="👹",wY="👺",kY="👻",CY="👽",EY="👾",SY="🤖",TY="😺",AY="😸",MY="😹",NY="😻",DY="😼",OY="😽",LY="🙀",BY="😿",IY="😾",RY="🙈",FY="🙉",PY="🙊",zY="💋",qY="💌",jY="💘",HY="💝",UY="💖",$Y="💗",WY="💓",YY="💞",VY="💕",GY="💟",XY="❣️",ZY="💔",KY="❤️",QY="🧡",JY="💛",tV="💚",eV="💙",nV="💜",rV="🤎",iV="🖤",aV="🤍",oV="💢",sV="💥",lV="💥",cV="💫",uV="💦",hV="💨",fV="🕳️",dV="💣",pV="💬",gV="👁️🗨️",mV="🗨️",yV="🗯️",vV="💭",bV="💤",_V="👋",xV="🤚",wV="🖐️",kV="✋",CV="✋",EV="🖖",SV="👌",TV="🤌",AV="🤏",MV="✌️",NV="🤞",DV="🤟",OV="🤘",LV="🤙",BV="👈",IV="👉",RV="👆",FV="🖕",PV="🖕",zV="👇",qV="☝️",jV="👍",HV="👎",UV="✊",$V="✊",WV="👊",YV="👊",VV="👊",GV="🤛",XV="🤜",ZV="👏",KV="🙌",QV="👐",JV="🤲",tG="🤝",eG="🙏",nG="✍️",rG="💅",iG="🤳",aG="💪",oG="🦾",sG="🦿",lG="🦵",cG="🦶",uG="👂",hG="🦻",fG="👃",dG="🧠",pG="🫀",gG="🫁",mG="🦷",yG="🦴",vG="👀",bG="👁️",_G="👅",xG="👄",wG="👶",kG="🧒",CG="👦",EG="👧",SG="🧑",TG="👱",AG="👨",MG="🧔",NG="👨🦰",DG="👨🦱",OG="👨🦳",LG="👨🦲",BG="👩",IG="👩🦰",RG="🧑🦰",FG="👩🦱",PG="🧑🦱",zG="👩🦳",qG="🧑🦳",jG="👩🦲",HG="🧑🦲",UG="👱♀️",$G="👱♀️",WG="👱♂️",YG="🧓",VG="👴",GG="👵",XG="🙍",ZG="🙍♂️",KG="🙍♀️",QG="🙎",JG="🙎♂️",tX="🙎♀️",eX="🙅",nX="🙅♂️",rX="🙅♂️",iX="🙅♀️",aX="🙅♀️",oX="🙆",sX="🙆♂️",lX="🙆♀️",cX="💁",uX="💁",hX="💁♂️",fX="💁♂️",dX="💁♀️",pX="💁♀️",gX="🙋",mX="🙋♂️",yX="🙋♀️",vX="🧏",bX="🧏♂️",_X="🧏♀️",xX="🙇",wX="🙇♂️",kX="🙇♀️",CX="🤦",EX="🤦♂️",SX="🤦♀️",TX="🤷",AX="🤷♂️",MX="🤷♀️",NX="🧑⚕️",DX="👨⚕️",OX="👩⚕️",LX="🧑🎓",BX="👨🎓",IX="👩🎓",RX="🧑🏫",FX="👨🏫",PX="👩🏫",zX="🧑⚖️",qX="👨⚖️",jX="👩⚖️",HX="🧑🌾",UX="👨🌾",$X="👩🌾",WX="🧑🍳",YX="👨🍳",VX="👩🍳",GX="🧑🔧",XX="👨🔧",ZX="👩🔧",KX="🧑🏭",QX="👨🏭",JX="👩🏭",tZ="🧑💼",eZ="👨💼",nZ="👩💼",rZ="🧑🔬",iZ="👨🔬",aZ="👩🔬",oZ="🧑💻",sZ="👨💻",lZ="👩💻",cZ="🧑🎤",uZ="👨🎤",hZ="👩🎤",fZ="🧑🎨",dZ="👨🎨",pZ="👩🎨",gZ="🧑✈️",mZ="👨✈️",yZ="👩✈️",vZ="🧑🚀",bZ="👨🚀",_Z="👩🚀",xZ="🧑🚒",wZ="👨🚒",kZ="👩🚒",CZ="👮",EZ="👮",SZ="👮♂️",TZ="👮♀️",AZ="🕵️",MZ="🕵️♂️",NZ="🕵️♀️",DZ="💂",OZ="💂♂️",LZ="💂♀️",BZ="🥷",IZ="👷",RZ="👷♂️",FZ="👷♀️",PZ="🤴",zZ="👸",qZ="👳",jZ="👳♂️",HZ="👳♀️",UZ="👲",$Z="🧕",WZ="🤵",YZ="🤵♂️",VZ="🤵♀️",GZ="👰",XZ="👰♂️",ZZ="👰♀️",KZ="👰♀️",QZ="🤰",JZ="🤱",tK="👩🍼",eK="👨🍼",nK="🧑🍼",rK="👼",iK="🎅",aK="🤶",oK="🧑🎄",sK="🦸",lK="🦸♂️",cK="🦸♀️",uK="🦹",hK="🦹♂️",fK="🦹♀️",dK="🧙",pK="🧙♂️",gK="🧙♀️",mK="🧚",yK="🧚♂️",vK="🧚♀️",bK="🧛",_K="🧛♂️",xK="🧛♀️",wK="🧜",kK="🧜♂️",CK="🧜♀️",EK="🧝",SK="🧝♂️",TK="🧝♀️",AK="🧞",MK="🧞♂️",NK="🧞♀️",DK="🧟",OK="🧟♂️",LK="🧟♀️",BK="💆",IK="💆♂️",RK="💆♀️",FK="💇",PK="💇♂️",zK="💇♀️",qK="🚶",jK="🚶♂️",HK="🚶♀️",UK="🧍",$K="🧍♂️",WK="🧍♀️",YK="🧎",VK="🧎♂️",GK="🧎♀️",XK="🧑🦯",ZK="👨🦯",KK="👩🦯",QK="🧑🦼",JK="👨🦼",tQ="👩🦼",eQ="🧑🦽",nQ="👨🦽",rQ="👩🦽",iQ="🏃",aQ="🏃",oQ="🏃♂️",sQ="🏃♀️",lQ="💃",cQ="💃",uQ="🕺",hQ="🕴️",fQ="👯",dQ="👯♂️",pQ="👯♀️",gQ="🧖",mQ="🧖♂️",yQ="🧖♀️",vQ="🧗",bQ="🧗♂️",_Q="🧗♀️",xQ="🤺",wQ="🏇",kQ="⛷️",CQ="🏂",EQ="🏌️",SQ="🏌️♂️",TQ="🏌️♀️",AQ="🏄",MQ="🏄♂️",NQ="🏄♀️",DQ="🚣",OQ="🚣♂️",LQ="🚣♀️",BQ="🏊",IQ="🏊♂️",RQ="🏊♀️",FQ="⛹️",PQ="⛹️♂️",zQ="⛹️♂️",qQ="⛹️♀️",jQ="⛹️♀️",HQ="🏋️",UQ="🏋️♂️",$Q="🏋️♀️",WQ="🚴",YQ="🚴♂️",VQ="🚴♀️",GQ="🚵",XQ="🚵♂️",ZQ="🚵♀️",KQ="🤸",QQ="🤸♂️",JQ="🤸♀️",tJ="🤼",eJ="🤼♂️",nJ="🤼♀️",rJ="🤽",iJ="🤽♂️",aJ="🤽♀️",oJ="🤾",sJ="🤾♂️",lJ="🤾♀️",cJ="🤹",uJ="🤹♂️",hJ="🤹♀️",fJ="🧘",dJ="🧘♂️",pJ="🧘♀️",gJ="🛀",mJ="🛌",yJ="🧑🤝🧑",vJ="👭",bJ="👫",_J="👬",xJ="💏",wJ="👩❤️💋👨",kJ="👨❤️💋👨",CJ="👩❤️💋👩",EJ="💑",SJ="👩❤️👨",TJ="👨❤️👨",AJ="👩❤️👩",MJ="👪",NJ="👨👩👦",DJ="👨👩👧",OJ="👨👩👧👦",LJ="👨👩👦👦",BJ="👨👩👧👧",IJ="👨👨👦",RJ="👨👨👧",FJ="👨👨👧👦",PJ="👨👨👦👦",zJ="👨👨👧👧",qJ="👩👩👦",jJ="👩👩👧",HJ="👩👩👧👦",UJ="👩👩👦👦",$J="👩👩👧👧",WJ="👨👦",YJ="👨👦👦",VJ="👨👧",GJ="👨👧👦",XJ="👨👧👧",ZJ="👩👦",KJ="👩👦👦",QJ="👩👧",JJ="👩👧👦",t0="👩👧👧",e0="🗣️",n0="👤",r0="👥",i0="🫂",a0="👣",o0="🐵",s0="🐒",l0="🦍",c0="🦧",u0="🐶",h0="🐕",f0="🦮",d0="🐕🦺",p0="🐩",g0="🐺",m0="🦊",y0="🦝",v0="🐱",b0="🐈",_0="🐈⬛",x0="🦁",w0="🐯",k0="🐅",C0="🐆",E0="🐴",S0="🐎",T0="🦄",A0="🦓",M0="🦌",N0="🦬",D0="🐮",O0="🐂",L0="🐃",B0="🐄",I0="🐷",R0="🐖",F0="🐗",P0="🐽",z0="🐏",q0="🐑",j0="🐐",H0="🐪",U0="🐫",$0="🦙",W0="🦒",Y0="🐘",V0="🦣",G0="🦏",X0="🦛",Z0="🐭",K0="🐁",Q0="🐀",J0="🐹",t1="🐰",e1="🐇",n1="🐿️",r1="🦫",i1="🦔",a1="🦇",o1="🐻",s1="🐻❄️",l1="🐨",c1="🐼",u1="🦥",h1="🦦",f1="🦨",d1="🦘",p1="🦡",g1="🐾",m1="🐾",y1="🦃",v1="🐔",b1="🐓",_1="🐣",x1="🐤",w1="🐥",k1="🐦",C1="🐧",E1="🕊️",S1="🦅",T1="🦆",A1="🦢",M1="🦉",N1="🦤",D1="🪶",O1="🦩",L1="🦚",B1="🦜",I1="🐸",R1="🐊",F1="🐢",P1="🦎",z1="🐍",q1="🐲",j1="🐉",H1="🦕",U1="🐳",$1="🐋",W1="🐬",Y1="🐬",V1="🦭",G1="🐟",X1="🐠",Z1="🐡",K1="🦈",Q1="🐙",J1="🐚",t2="🐌",e2="🦋",n2="🐛",r2="🐜",i2="🐝",a2="🐝",o2="🪲",s2="🐞",l2="🦗",c2="🪳",u2="🕷️",h2="🕸️",f2="🦂",d2="🦟",p2="🪰",g2="🪱",m2="🦠",y2="💐",v2="🌸",b2="💮",_2="🏵️",x2="🌹",w2="🥀",k2="🌺",C2="🌻",E2="🌼",S2="🌷",T2="🌱",A2="🪴",M2="🌲",N2="🌳",D2="🌴",O2="🌵",L2="🌾",B2="🌿",I2="☘️",R2="🍀",F2="🍁",P2="🍂",z2="🍃",q2="🍇",j2="🍈",H2="🍉",U2="🍊",$2="🍊",W2="🍊",Y2="🍋",V2="🍌",G2="🍍",X2="🥭",Z2="🍎",K2="🍏",Q2="🍐",J2="🍑",t4="🍒",e4="🍓",n4="🫐",r4="🥝",i4="🍅",a4="🫒",o4="🥥",s4="🥑",l4="🍆",c4="🥔",u4="🥕",h4="🌽",f4="🌶️",d4="🫑",p4="🥒",g4="🥬",m4="🥦",y4="🧄",v4="🧅",b4="🍄",_4="🥜",x4="🌰",w4="🍞",k4="🥐",C4="🥖",E4="🫓",S4="🥨",T4="🥯",A4="🥞",M4="🧇",N4="🧀",D4="🍖",O4="🍗",L4="🥩",B4="🥓",I4="🍔",R4="🍟",F4="🍕",P4="🌭",z4="🥪",q4="🌮",j4="🌯",H4="🫔",U4="🥙",$4="🧆",W4="🥚",Y4="🍳",V4="🥘",G4="🍲",X4="🫕",Z4="🥣",K4="🥗",Q4="🍿",J4="🧈",t3="🧂",e3="🥫",n3="🍱",r3="🍘",i3="🍙",a3="🍚",o3="🍛",s3="🍜",l3="🍝",c3="🍠",u3="🍢",h3="🍣",f3="🍤",d3="🍥",p3="🥮",g3="🍡",m3="🥟",y3="🥠",v3="🥡",b3="🦀",_3="🦞",x3="🦐",w3="🦑",k3="🦪",C3="🍦",E3="🍧",S3="🍨",T3="🍩",A3="🍪",M3="🎂",N3="🍰",D3="🧁",O3="🥧",L3="🍫",B3="🍬",I3="🍭",R3="🍮",F3="🍯",P3="🍼",z3="🥛",q3="☕",j3="🫖",H3="🍵",U3="🍶",$3="🍾",W3="🍷",Y3="🍸",V3="🍹",G3="🍺",X3="🍻",Z3="🥂",K3="🥃",Q3="🥤",J3="🧋",t5="🧃",e5="🧉",n5="🧊",r5="🥢",i5="🍽️",a5="🍴",o5="🥄",s5="🔪",l5="🔪",c5="🏺",u5="🌍",h5="🌎",f5="🌏",d5="🌐",p5="🗺️",g5="🗾",m5="🧭",y5="🏔️",v5="⛰️",b5="🌋",_5="🗻",x5="🏕️",w5="🏖️",k5="🏜️",C5="🏝️",E5="🏞️",S5="🏟️",T5="🏛️",A5="🏗️",M5="🧱",N5="🪨",D5="🪵",O5="🛖",L5="🏘️",B5="🏚️",I5="🏠",R5="🏡",F5="🏢",P5="🏣",z5="🏤",q5="🏥",j5="🏦",H5="🏨",U5="🏩",$5="🏪",W5="🏫",Y5="🏬",V5="🏭",G5="🏯",X5="🏰",Z5="💒",K5="🗼",Q5="🗽",J5="⛪",t6="🕌",e6="🛕",n6="🕍",r6="⛩️",i6="🕋",a6="⛲",o6="⛺",s6="🌁",l6="🌃",c6="🏙️",u6="🌄",h6="🌅",f6="🌆",d6="🌇",p6="🌉",g6="♨️",m6="🎠",y6="🎡",v6="🎢",b6="💈",_6="🎪",x6="🚂",w6="🚃",k6="🚄",C6="🚅",E6="🚆",S6="🚇",T6="🚈",A6="🚉",M6="🚊",N6="🚝",D6="🚞",O6="🚋",L6="🚌",B6="🚍",I6="🚎",R6="🚐",F6="🚑",P6="🚒",z6="🚓",q6="🚔",j6="🚕",H6="🚖",U6="🚗",$6="🚗",W6="🚘",Y6="🚙",V6="🛻",G6="🚚",X6="🚛",Z6="🚜",K6="🏎️",Q6="🏍️",J6="🛵",t8="🦽",e8="🦼",n8="🛺",r8="🚲",i8="🛴",a8="🛹",o8="🛼",s8="🚏",l8="🛣️",c8="🛤️",u8="🛢️",h8="⛽",f8="🚨",d8="🚥",p8="🚦",g8="🛑",m8="🚧",y8="⚓",v8="⛵",b8="⛵",_8="🛶",x8="🚤",w8="🛳️",k8="⛴️",C8="🛥️",E8="🚢",S8="✈️",T8="🛩️",A8="🛫",M8="🛬",N8="🪂",D8="💺",O8="🚁",L8="🚟",B8="🚠",I8="🚡",R8="🛰️",F8="🚀",P8="🛸",z8="🛎️",q8="🧳",j8="⌛",H8="⏳",U8="⌚",$8="⏰",W8="⏱️",Y8="⏲️",V8="🕰️",G8="🕛",X8="🕧",Z8="🕐",K8="🕜",Q8="🕑",J8="🕝",t7="🕒",e7="🕞",n7="🕓",r7="🕟",i7="🕔",a7="🕠",o7="🕕",s7="🕡",l7="🕖",c7="🕢",u7="🕗",h7="🕣",f7="🕘",d7="🕤",p7="🕙",g7="🕥",m7="🕚",y7="🕦",v7="🌑",b7="🌒",_7="🌓",x7="🌔",w7="🌔",k7="🌕",C7="🌖",E7="🌗",S7="🌘",T7="🌙",A7="🌚",M7="🌛",N7="🌜",D7="🌡️",O7="☀️",L7="🌝",B7="🌞",I7="🪐",R7="⭐",F7="🌟",P7="🌠",z7="🌌",q7="☁️",j7="⛅",H7="⛈️",U7="🌤️",$7="🌥️",W7="🌦️",Y7="🌧️",V7="🌨️",G7="🌩️",X7="🌪️",Z7="🌫️",K7="🌬️",Q7="🌀",J7="🌈",t9="🌂",e9="☂️",n9="☔",r9="⛱️",i9="⚡",a9="❄️",o9="☃️",s9="⛄",l9="☄️",c9="🔥",u9="💧",h9="🌊",f9="🎃",d9="🎄",p9="🎆",g9="🎇",m9="🧨",y9="✨",v9="🎈",b9="🎉",_9="🎊",x9="🎋",w9="🎍",k9="🎎",C9="🎏",E9="🎐",S9="🎑",T9="🧧",A9="🎀",M9="🎁",N9="🎗️",D9="🎟️",O9="🎫",L9="🎖️",B9="🏆",I9="🏅",R9="⚽",F9="⚾",P9="🥎",z9="🏀",q9="🏐",j9="🏈",H9="🏉",U9="🎾",$9="🥏",W9="🎳",Y9="🏏",V9="🏑",G9="🏒",X9="🥍",Z9="🏓",K9="🏸",Q9="🥊",J9="🥋",ttt="🥅",ett="⛳",ntt="⛸️",rtt="🎣",itt="🤿",att="🎽",ott="🎿",stt="🛷",ltt="🥌",ctt="🎯",utt="🪀",htt="🪁",ftt="🔮",dtt="🪄",ptt="🧿",gtt="🎮",mtt="🕹️",ytt="🎰",vtt="🎲",btt="🧩",_tt="🧸",xtt="🪅",wtt="🪆",ktt="♠️",Ctt="♥️",Ett="♦️",Stt="♣️",Ttt="♟️",Att="🃏",Mtt="🀄",Ntt="🎴",Dtt="🎭",Ott="🖼️",Ltt="🎨",Btt="🧵",Itt="🪡",Rtt="🧶",Ftt="🪢",Ptt="👓",ztt="🕶️",qtt="🥽",jtt="🥼",Htt="🦺",Utt="👔",$tt="👕",Wtt="👕",Ytt="👖",Vtt="🧣",Gtt="🧤",Xtt="🧥",Ztt="🧦",Ktt="👗",Qtt="👘",Jtt="🥻",tet="🩱",eet="🩲",net="🩳",ret="👙",iet="👚",aet="👛",oet="👜",set="👝",cet="🛍️",uet="🎒",het="🩴",fet="👞",det="👞",pet="👟",get="🥾",met="🥿",yet="👠",vet="👡",bet="🩰",_et="👢",xet="👑",wet="👒",ket="🎩",Cet="🎓",Eet="🧢",Tet="🪖",Aet="⛑️",Met="📿",Net="💄",Det="💍",Oet="💎",Let="🔇",Bet="🔈",Iet="🔉",Ret="🔊",Fet="📢",Pet="📣",zet="📯",qet="🔔",jet="🔕",Het="🎼",Uet="🎵",$et="🎶",Wet="🎙️",Yet="🎚️",Vet="🎛️",Get="🎤",Xet="🎧",Zet="📻",Ket="🎷",Qet="🪗",Jet="🎸",tnt="🎹",ent="🎺",nnt="🎻",rnt="🪕",int="🥁",ant="🪘",ont="📱",snt="📲",lnt="☎️",cnt="☎️",unt="📞",hnt="📟",fnt="📠",dnt="🔋",pnt="🔌",gnt="💻",mnt="🖥️",ynt="🖨️",vnt="⌨️",bnt="🖱️",_nt="🖲️",xnt="💽",wnt="💾",knt="💿",Cnt="📀",Ent="🧮",Snt="🎥",Tnt="🎞️",Ant="📽️",Mnt="🎬",Nnt="📺",Dnt="📷",Ont="📸",Lnt="📹",Bnt="📼",Int="🔍",Rnt="🔎",Fnt="🕯️",Pnt="💡",znt="🔦",qnt="🏮",jnt="🏮",Hnt="🪔",Unt="📔",$nt="📕",Wnt="📖",Ynt="📖",Vnt="📗",Gnt="📘",Xnt="📙",Znt="📚",Knt="📓",Qnt="📒",Jnt="📃",trt="📜",ert="📄",nrt="📰",rrt="🗞️",irt="📑",art="🔖",ort="🏷️",srt="💰",lrt="🪙",crt="💴",urt="💵",hrt="💶",frt="💷",drt="💸",prt="💳",grt="🧾",mrt="💹",yrt="✉️",vrt="📧",brt="📨",_rt="📩",xrt="📤",wrt="📥",krt="📫",Crt="📪",Ert="📬",Srt="📭",Trt="📮",Art="🗳️",Mrt="✏️",Nrt="✒️",Drt="🖋️",Ort="🖊️",Lrt="🖌️",Brt="🖍️",Irt="📝",Rrt="📝",Frt="💼",Prt="📁",zrt="📂",qrt="🗂️",jrt="📅",Hrt="📆",Urt="🗒️",$rt="🗓️",Wrt="📇",Yrt="📈",Vrt="📉",Grt="📊",Xrt="📋",Zrt="📌",Krt="📍",Qrt="📎",Jrt="🖇️",tit="📏",eit="📐",nit="✂️",rit="🗃️",iit="🗄️",ait="🗑️",oit="🔒",sit="🔓",lit="🔏",cit="🔐",uit="🔑",hit="🗝️",fit="🔨",dit="🪓",pit="⛏️",git="⚒️",mit="🛠️",yit="🗡️",vit="⚔️",bit="🔫",_it="🪃",xit="🏹",wit="🛡️",kit="🪚",Cit="🔧",Eit="🪛",Sit="🔩",Tit="⚙️",Ait="🗜️",Mit="⚖️",Nit="🦯",Dit="🔗",Oit="⛓️",Lit="🪝",Bit="🧰",Iit="🧲",Rit="🪜",Fit="⚗️",Pit="🧪",zit="🧫",qit="🧬",jit="🔬",Hit="🔭",Uit="📡",$it="💉",Wit="🩸",Yit="💊",Vit="🩹",Git="🩺",Xit="🚪",Zit="🛗",Kit="🪞",Qit="🪟",Jit="🛏️",tat="🛋️",eat="🪑",nat="🚽",rat="🪠",iat="🚿",aat="🛁",oat="🪤",sat="🪒",lat="🧴",cat="🧷",uat="🧹",hat="🧺",fat="🧻",dat="🪣",pat="🧼",gat="🪥",mat="🧽",yat="🧯",vat="🛒",bat="🚬",_at="⚰️",xat="🪦",wat="⚱️",kat="🗿",Cat="🪧",Eat="🏧",Sat="🚮",Tat="🚰",Aat="♿",Mat="🚹",Nat="🚺",Dat="🚻",Oat="🚼",Lat="🚾",Bat="🛂",Iat="🛃",Rat="🛄",Fat="🛅",Pat="⚠️",zat="🚸",qat="⛔",jat="🚫",Hat="🚳",Uat="🚭",$at="🚯",Wat="🚷",Yat="📵",Vat="🔞",Gat="☢️",Xat="☣️",Zat="⬆️",Kat="↗️",Qat="➡️",Jat="↘️",tot="⬇️",eot="↙️",not="⬅️",rot="↖️",iot="↕️",aot="↔️",oot="↩️",sot="↪️",lot="⤴️",cot="⤵️",uot="🔃",hot="🔄",fot="🔙",dot="🔚",pot="🔛",got="🔜",mot="🔝",yot="🛐",vot="⚛️",bot="🕉️",_ot="✡️",xot="☸️",wot="☯️",kot="✝️",Cot="☦️",Eot="☪️",Sot="☮️",Tot="🕎",Aot="🔯",Mot="♈",Not="♉",Dot="♊",Oot="♋",Lot="♌",Bot="♍",Iot="♎",Rot="♏",Fot="♐",Pot="♑",zot="♒",qot="♓",jot="⛎",Hot="🔀",Uot="🔁",$ot="🔂",Wot="▶️",Yot="⏩",Vot="⏭️",Got="⏯️",Xot="◀️",Zot="⏪",Kot="⏮️",Qot="🔼",Jot="⏫",tst="🔽",est="⏬",nst="⏸️",rst="⏹️",ist="⏺️",ast="⏏️",ost="🎦",sst="🔅",lst="🔆",cst="📶",ust="📳",hst="📴",fst="♀️",dst="♂️",pst="⚧️",gst="✖️",mst="➕",yst="➖",vst="➗",bst="♾️",_st="‼️",xst="⁉️",wst="❓",kst="❔",Cst="❕",Est="❗",Sst="❗",Tst="〰️",Ast="💱",Mst="💲",Nst="⚕️",Dst="♻️",Ost="⚜️",Lst="🔱",Bst="📛",Ist="🔰",Rst="⭕",Fst="✅",Pst="☑️",zst="✔️",qst="❌",jst="❎",Hst="➰",Ust="➿",$st="〽️",Wst="✳️",Yst="✴️",Vst="❇️",Gst="©️",Xst="®️",Zst="™️",Kst="#️⃣",Qst="*️⃣",Jst="0️⃣",tlt="1️⃣",elt="2️⃣",nlt="3️⃣",rlt="4️⃣",ilt="5️⃣",alt="6️⃣",olt="7️⃣",slt="8️⃣",llt="9️⃣",clt="🔟",ult="🔠",hlt="🔡",flt="🔣",dlt="🔤",plt="🅰️",glt="🆎",mlt="🅱️",ylt="🆑",vlt="🆒",blt="🆓",_lt="ℹ️",xlt="🆔",wlt="Ⓜ️",klt="🆖",Clt="🅾️",Elt="🆗",Slt="🅿️",Tlt="🆘",Alt="🆙",Mlt="🆚",Nlt="🈁",Dlt="🈂️",Olt="🉐",Llt="🉑",Blt="㊗️",Ilt="㊙️",Rlt="🈵",Flt="🔴",Plt="🟠",zlt="🟡",qlt="🟢",jlt="🔵",Hlt="🟣",Ult="🟤",$lt="⚫",Wlt="⚪",Ylt="🟥",Vlt="🟧",Glt="🟨",Xlt="🟩",Zlt="🟦",Klt="🟪",Qlt="🟫",Jlt="⬛",tct="⬜",ect="◼️",nct="◻️",rct="◾",ict="◽",act="▪️",oct="▫️",sct="🔶",lct="🔷",cct="🔸",uct="🔹",hct="🔺",fct="🔻",dct="💠",pct="🔘",gct="🔳",mct="🔲",yct="🏁",vct="🚩",bct="🎌",_ct="🏴",xct="🏳️",wct="🏳️🌈",kct="🏳️⚧️",Cct="🏴☠️",Ect="🇦🇨",Sct="🇦🇩",Tct="🇦🇪",Act="🇦🇫",Mct="🇦🇬",Nct="🇦🇮",Dct="🇦🇱",Oct="🇦🇲",Lct="🇦🇴",Bct="🇦🇶",Ict="🇦🇷",Rct="🇦🇸",Fct="🇦🇹",Pct="🇦🇺",zct="🇦🇼",qct="🇦🇽",jct="🇦🇿",Hct="🇧🇦",Uct="🇧🇧",$ct="🇧🇩",Wct="🇧🇪",Yct="🇧🇫",Vct="🇧🇬",Gct="🇧🇭",Xct="🇧🇮",Zct="🇧🇯",Kct="🇧🇱",Qct="🇧🇲",Jct="🇧🇳",tut="🇧🇴",eut="🇧🇶",nut="🇧🇷",rut="🇧🇸",iut="🇧🇹",aut="🇧🇻",out="🇧🇼",sut="🇧🇾",lut="🇧🇿",cut="🇨🇦",uut="🇨🇨",hut="🇨🇩",fut="🇨🇫",dut="🇨🇬",put="🇨🇭",gut="🇨🇮",mut="🇨🇰",yut="🇨🇱",vut="🇨🇲",but="🇨🇳",_ut="🇨🇴",xut="🇨🇵",wut="🇨🇷",kut="🇨🇺",Cut="🇨🇻",Eut="🇨🇼",Sut="🇨🇽",Tut="🇨🇾",Aut="🇨🇿",Mut="🇩🇪",Nut="🇩🇬",Dut="🇩🇯",Out="🇩🇰",Lut="🇩🇲",But="🇩🇴",Iut="🇩🇿",Rut="🇪🇦",Fut="🇪🇨",Put="🇪🇪",zut="🇪🇬",qut="🇪🇭",jut="🇪🇷",Hut="🇪🇸",Uut="🇪🇹",$ut="🇪🇺",Wut="🇪🇺",Yut="🇫🇮",Vut="🇫🇯",Gut="🇫🇰",Xut="🇫🇲",Zut="🇫🇴",Kut="🇫🇷",Qut="🇬🇦",Jut="🇬🇧",tht="🇬🇧",eht="🇬🇩",nht="🇬🇪",rht="🇬🇫",iht="🇬🇬",aht="🇬🇭",oht="🇬🇮",sht="🇬🇱",lht="🇬🇲",cht="🇬🇳",uht="🇬🇵",hht="🇬🇶",fht="🇬🇷",dht="🇬🇸",pht="🇬🇹",ght="🇬🇺",mht="🇬🇼",yht="🇬🇾",vht="🇭🇰",bht="🇭🇲",_ht="🇭🇳",xht="🇭🇷",wht="🇭🇹",kht="🇭🇺",Cht="🇮🇨",Eht="🇮🇩",Sht="🇮🇪",Tht="🇮🇱",Aht="🇮🇲",Mht="🇮🇳",Nht="🇮🇴",Dht="🇮🇶",Oht="🇮🇷",Lht="🇮🇸",Bht="🇮🇹",Iht="🇯🇪",Rht="🇯🇲",Fht="🇯🇴",Pht="🇯🇵",zht="🇰🇪",qht="🇰🇬",jht="🇰🇭",Hht="🇰🇮",Uht="🇰🇲",$ht="🇰🇳",Wht="🇰🇵",Yht="🇰🇷",Vht="🇰🇼",Ght="🇰🇾",Xht="🇰🇿",Zht="🇱🇦",Kht="🇱🇧",Qht="🇱🇨",Jht="🇱🇮",tft="🇱🇰",eft="🇱🇷",nft="🇱🇸",rft="🇱🇹",ift="🇱🇺",aft="🇱🇻",oft="🇱🇾",sft="🇲🇦",lft="🇲🇨",cft="🇲🇩",uft="🇲🇪",hft="🇲🇫",fft="🇲🇬",dft="🇲🇭",pft="🇲🇰",gft="🇲🇱",mft="🇲🇲",yft="🇲🇳",vft="🇲🇴",bft="🇲🇵",_ft="🇲🇶",xft="🇲🇷",wft="🇲🇸",kft="🇲🇹",Cft="🇲🇺",Eft="🇲🇻",Sft="🇲🇼",Tft="🇲🇽",Aft="🇲🇾",Mft="🇲🇿",Nft="🇳🇦",Dft="🇳🇨",Oft="🇳🇪",Lft="🇳🇫",Bft="🇳🇬",Ift="🇳🇮",Rft="🇳🇱",Fft="🇳🇴",Pft="🇳🇵",zft="🇳🇷",qft="🇳🇺",jft="🇳🇿",Hft="🇴🇲",Uft="🇵🇦",$ft="🇵🇪",Wft="🇵🇫",Yft="🇵🇬",Vft="🇵🇭",Gft="🇵🇰",Xft="🇵🇱",Zft="🇵🇲",Kft="🇵🇳",Qft="🇵🇷",Jft="🇵🇸",tdt="🇵🇹",edt="🇵🇼",ndt="🇵🇾",rdt="🇶🇦",idt="🇷🇪",adt="🇷🇴",odt="🇷🇸",sdt="🇷🇺",ldt="🇷🇼",cdt="🇸🇦",udt="🇸🇧",hdt="🇸🇨",fdt="🇸🇩",ddt="🇸🇪",pdt="🇸🇬",gdt="🇸🇭",mdt="🇸🇮",ydt="🇸🇯",vdt="🇸🇰",bdt="🇸🇱",_dt="🇸🇲",xdt="🇸🇳",wdt="🇸🇴",kdt="🇸🇷",Cdt="🇸🇸",Edt="🇸🇹",Sdt="🇸🇻",Tdt="🇸🇽",Adt="🇸🇾",Mdt="🇸🇿",Ndt="🇹🇦",Ddt="🇹🇨",Odt="🇹🇩",Ldt="🇹🇫",Bdt="🇹🇬",Idt="🇹🇭",Rdt="🇹🇯",Fdt="🇹🇰",Pdt="🇹🇱",zdt="🇹🇲",qdt="🇹🇳",jdt="🇹🇴",Hdt="🇹🇷",Udt="🇹🇹",$dt="🇹🇻",Wdt="🇹🇼",Ydt="🇹🇿",Vdt="🇺🇦",Gdt="🇺🇬",Xdt="🇺🇲",Zdt="🇺🇳",Kdt="🇺🇸",Qdt="🇺🇾",Jdt="🇺🇿",tpt="🇻🇦",ept="🇻🇨",npt="🇻🇪",rpt="🇻🇬",ipt="🇻🇮",apt="🇻🇳",opt="🇻🇺",spt="🇼🇫",lpt="🇼🇸",cpt="🇽🇰",upt="🇾🇪",hpt="🇾🇹",fpt="🇿🇦",dpt="🇿🇲",ppt="🇿🇼",gpt="🏴",mpt="🏴",ypt="🏴";var vpt={100:"💯",1234:"🔢",grinning:T$,smiley:A$,smile:M$,grin:N$,laughing:D$,satisfied:O$,sweat_smile:L$,rofl:B$,joy:I$,slightly_smiling_face:R$,upside_down_face:F$,wink:P$,blush:z$,innocent:q$,smiling_face_with_three_hearts:j$,heart_eyes:H$,star_struck:U$,kissing_heart:$$,kissing:W$,relaxed:Y$,kissing_closed_eyes:V$,kissing_smiling_eyes:G$,smiling_face_with_tear:X$,yum:Z$,stuck_out_tongue:K$,stuck_out_tongue_winking_eye:Q$,zany_face:J$,stuck_out_tongue_closed_eyes:tW,money_mouth_face:eW,hugs:nW,hand_over_mouth:rW,shushing_face:iW,thinking:aW,zipper_mouth_face:oW,raised_eyebrow:sW,neutral_face:lW,expressionless:cW,no_mouth:uW,smirk:hW,unamused:fW,roll_eyes:dW,grimacing:pW,lying_face:gW,relieved:mW,pensive:yW,sleepy:vW,drooling_face:bW,sleeping:_W,mask:xW,face_with_thermometer:wW,face_with_head_bandage:kW,nauseated_face:CW,vomiting_face:EW,sneezing_face:SW,hot_face:TW,cold_face:AW,woozy_face:MW,dizzy_face:NW,exploding_head:DW,cowboy_hat_face:OW,partying_face:LW,disguised_face:BW,sunglasses:IW,nerd_face:RW,monocle_face:FW,confused:PW,worried:zW,slightly_frowning_face:qW,frowning_face:jW,open_mouth:HW,hushed:UW,astonished:$W,flushed:WW,pleading_face:YW,frowning:VW,anguished:GW,fearful:XW,cold_sweat:ZW,disappointed_relieved:KW,cry:QW,sob:JW,scream:tY,confounded:eY,persevere:nY,disappointed:rY,sweat:iY,weary:aY,tired_face:oY,yawning_face:sY,triumph:lY,rage:cY,pout:uY,angry:hY,cursing_face:fY,smiling_imp:dY,imp:pY,skull:gY,skull_and_crossbones:mY,hankey:yY,poop:vY,shit:bY,clown_face:_Y,japanese_ogre:xY,japanese_goblin:wY,ghost:kY,alien:CY,space_invader:EY,robot:SY,smiley_cat:TY,smile_cat:AY,joy_cat:MY,heart_eyes_cat:NY,smirk_cat:DY,kissing_cat:OY,scream_cat:LY,crying_cat_face:BY,pouting_cat:IY,see_no_evil:RY,hear_no_evil:FY,speak_no_evil:PY,kiss:zY,love_letter:qY,cupid:jY,gift_heart:HY,sparkling_heart:UY,heartpulse:$Y,heartbeat:WY,revolving_hearts:YY,two_hearts:VY,heart_decoration:GY,heavy_heart_exclamation:XY,broken_heart:ZY,heart:KY,orange_heart:QY,yellow_heart:JY,green_heart:tV,blue_heart:eV,purple_heart:nV,brown_heart:rV,black_heart:iV,white_heart:aV,anger:oV,boom:sV,collision:lV,dizzy:cV,sweat_drops:uV,dash:hV,hole:fV,bomb:dV,speech_balloon:pV,eye_speech_bubble:gV,left_speech_bubble:mV,right_anger_bubble:yV,thought_balloon:vV,zzz:bV,wave:_V,raised_back_of_hand:xV,raised_hand_with_fingers_splayed:wV,hand:kV,raised_hand:CV,vulcan_salute:EV,ok_hand:SV,pinched_fingers:TV,pinching_hand:AV,v:MV,crossed_fingers:NV,love_you_gesture:DV,metal:OV,call_me_hand:LV,point_left:BV,point_right:IV,point_up_2:RV,middle_finger:FV,fu:PV,point_down:zV,point_up:qV,"+1":"👍",thumbsup:jV,"-1":"👎",thumbsdown:HV,fist_raised:UV,fist:$V,fist_oncoming:WV,facepunch:YV,punch:VV,fist_left:GV,fist_right:XV,clap:ZV,raised_hands:KV,open_hands:QV,palms_up_together:JV,handshake:tG,pray:eG,writing_hand:nG,nail_care:rG,selfie:iG,muscle:aG,mechanical_arm:oG,mechanical_leg:sG,leg:lG,foot:cG,ear:uG,ear_with_hearing_aid:hG,nose:fG,brain:dG,anatomical_heart:pG,lungs:gG,tooth:mG,bone:yG,eyes:vG,eye:bG,tongue:_G,lips:xG,baby:wG,child:kG,boy:CG,girl:EG,adult:SG,blond_haired_person:TG,man:AG,bearded_person:MG,red_haired_man:NG,curly_haired_man:DG,white_haired_man:OG,bald_man:LG,woman:BG,red_haired_woman:IG,person_red_hair:RG,curly_haired_woman:FG,person_curly_hair:PG,white_haired_woman:zG,person_white_hair:qG,bald_woman:jG,person_bald:HG,blond_haired_woman:UG,blonde_woman:$G,blond_haired_man:WG,older_adult:YG,older_man:VG,older_woman:GG,frowning_person:XG,frowning_man:ZG,frowning_woman:KG,pouting_face:QG,pouting_man:JG,pouting_woman:tX,no_good:eX,no_good_man:nX,ng_man:rX,no_good_woman:iX,ng_woman:aX,ok_person:oX,ok_man:sX,ok_woman:lX,tipping_hand_person:cX,information_desk_person:uX,tipping_hand_man:hX,sassy_man:fX,tipping_hand_woman:dX,sassy_woman:pX,raising_hand:gX,raising_hand_man:mX,raising_hand_woman:yX,deaf_person:vX,deaf_man:bX,deaf_woman:_X,bow:xX,bowing_man:wX,bowing_woman:kX,facepalm:CX,man_facepalming:EX,woman_facepalming:SX,shrug:TX,man_shrugging:AX,woman_shrugging:MX,health_worker:NX,man_health_worker:DX,woman_health_worker:OX,student:LX,man_student:BX,woman_student:IX,teacher:RX,man_teacher:FX,woman_teacher:PX,judge:zX,man_judge:qX,woman_judge:jX,farmer:HX,man_farmer:UX,woman_farmer:$X,cook:WX,man_cook:YX,woman_cook:VX,mechanic:GX,man_mechanic:XX,woman_mechanic:ZX,factory_worker:KX,man_factory_worker:QX,woman_factory_worker:JX,office_worker:tZ,man_office_worker:eZ,woman_office_worker:nZ,scientist:rZ,man_scientist:iZ,woman_scientist:aZ,technologist:oZ,man_technologist:sZ,woman_technologist:lZ,singer:cZ,man_singer:uZ,woman_singer:hZ,artist:fZ,man_artist:dZ,woman_artist:pZ,pilot:gZ,man_pilot:mZ,woman_pilot:yZ,astronaut:vZ,man_astronaut:bZ,woman_astronaut:_Z,firefighter:xZ,man_firefighter:wZ,woman_firefighter:kZ,police_officer:CZ,cop:EZ,policeman:SZ,policewoman:TZ,detective:AZ,male_detective:MZ,female_detective:NZ,guard:DZ,guardsman:OZ,guardswoman:LZ,ninja:BZ,construction_worker:IZ,construction_worker_man:RZ,construction_worker_woman:FZ,prince:PZ,princess:zZ,person_with_turban:qZ,man_with_turban:jZ,woman_with_turban:HZ,man_with_gua_pi_mao:UZ,woman_with_headscarf:$Z,person_in_tuxedo:WZ,man_in_tuxedo:YZ,woman_in_tuxedo:VZ,person_with_veil:GZ,man_with_veil:XZ,woman_with_veil:ZZ,bride_with_veil:KZ,pregnant_woman:QZ,breast_feeding:JZ,woman_feeding_baby:tK,man_feeding_baby:eK,person_feeding_baby:nK,angel:rK,santa:iK,mrs_claus:aK,mx_claus:oK,superhero:sK,superhero_man:lK,superhero_woman:cK,supervillain:uK,supervillain_man:hK,supervillain_woman:fK,mage:dK,mage_man:pK,mage_woman:gK,fairy:mK,fairy_man:yK,fairy_woman:vK,vampire:bK,vampire_man:_K,vampire_woman:xK,merperson:wK,merman:kK,mermaid:CK,elf:EK,elf_man:SK,elf_woman:TK,genie:AK,genie_man:MK,genie_woman:NK,zombie:DK,zombie_man:OK,zombie_woman:LK,massage:BK,massage_man:IK,massage_woman:RK,haircut:FK,haircut_man:PK,haircut_woman:zK,walking:qK,walking_man:jK,walking_woman:HK,standing_person:UK,standing_man:$K,standing_woman:WK,kneeling_person:YK,kneeling_man:VK,kneeling_woman:GK,person_with_probing_cane:XK,man_with_probing_cane:ZK,woman_with_probing_cane:KK,person_in_motorized_wheelchair:QK,man_in_motorized_wheelchair:JK,woman_in_motorized_wheelchair:tQ,person_in_manual_wheelchair:eQ,man_in_manual_wheelchair:nQ,woman_in_manual_wheelchair:rQ,runner:iQ,running:aQ,running_man:oQ,running_woman:sQ,woman_dancing:lQ,dancer:cQ,man_dancing:uQ,business_suit_levitating:hQ,dancers:fQ,dancing_men:dQ,dancing_women:pQ,sauna_person:gQ,sauna_man:mQ,sauna_woman:yQ,climbing:vQ,climbing_man:bQ,climbing_woman:_Q,person_fencing:xQ,horse_racing:wQ,skier:kQ,snowboarder:CQ,golfing:EQ,golfing_man:SQ,golfing_woman:TQ,surfer:AQ,surfing_man:MQ,surfing_woman:NQ,rowboat:DQ,rowing_man:OQ,rowing_woman:LQ,swimmer:BQ,swimming_man:IQ,swimming_woman:RQ,bouncing_ball_person:FQ,bouncing_ball_man:PQ,basketball_man:zQ,bouncing_ball_woman:qQ,basketball_woman:jQ,weight_lifting:HQ,weight_lifting_man:UQ,weight_lifting_woman:$Q,bicyclist:WQ,biking_man:YQ,biking_woman:VQ,mountain_bicyclist:GQ,mountain_biking_man:XQ,mountain_biking_woman:ZQ,cartwheeling:KQ,man_cartwheeling:QQ,woman_cartwheeling:JQ,wrestling:tJ,men_wrestling:eJ,women_wrestling:nJ,water_polo:rJ,man_playing_water_polo:iJ,woman_playing_water_polo:aJ,handball_person:oJ,man_playing_handball:sJ,woman_playing_handball:lJ,juggling_person:cJ,man_juggling:uJ,woman_juggling:hJ,lotus_position:fJ,lotus_position_man:dJ,lotus_position_woman:pJ,bath:gJ,sleeping_bed:mJ,people_holding_hands:yJ,two_women_holding_hands:vJ,couple:bJ,two_men_holding_hands:_J,couplekiss:xJ,couplekiss_man_woman:wJ,couplekiss_man_man:kJ,couplekiss_woman_woman:CJ,couple_with_heart:EJ,couple_with_heart_woman_man:SJ,couple_with_heart_man_man:TJ,couple_with_heart_woman_woman:AJ,family:MJ,family_man_woman_boy:NJ,family_man_woman_girl:DJ,family_man_woman_girl_boy:OJ,family_man_woman_boy_boy:LJ,family_man_woman_girl_girl:BJ,family_man_man_boy:IJ,family_man_man_girl:RJ,family_man_man_girl_boy:FJ,family_man_man_boy_boy:PJ,family_man_man_girl_girl:zJ,family_woman_woman_boy:qJ,family_woman_woman_girl:jJ,family_woman_woman_girl_boy:HJ,family_woman_woman_boy_boy:UJ,family_woman_woman_girl_girl:$J,family_man_boy:WJ,family_man_boy_boy:YJ,family_man_girl:VJ,family_man_girl_boy:GJ,family_man_girl_girl:XJ,family_woman_boy:ZJ,family_woman_boy_boy:KJ,family_woman_girl:QJ,family_woman_girl_boy:JJ,family_woman_girl_girl:t0,speaking_head:e0,bust_in_silhouette:n0,busts_in_silhouette:r0,people_hugging:i0,footprints:a0,monkey_face:o0,monkey:s0,gorilla:l0,orangutan:c0,dog:u0,dog2:h0,guide_dog:f0,service_dog:d0,poodle:p0,wolf:g0,fox_face:m0,raccoon:y0,cat:v0,cat2:b0,black_cat:_0,lion:x0,tiger:w0,tiger2:k0,leopard:C0,horse:E0,racehorse:S0,unicorn:T0,zebra:A0,deer:M0,bison:N0,cow:D0,ox:O0,water_buffalo:L0,cow2:B0,pig:I0,pig2:R0,boar:F0,pig_nose:P0,ram:z0,sheep:q0,goat:j0,dromedary_camel:H0,camel:U0,llama:$0,giraffe:W0,elephant:Y0,mammoth:V0,rhinoceros:G0,hippopotamus:X0,mouse:Z0,mouse2:K0,rat:Q0,hamster:J0,rabbit:t1,rabbit2:e1,chipmunk:n1,beaver:r1,hedgehog:i1,bat:a1,bear:o1,polar_bear:s1,koala:l1,panda_face:c1,sloth:u1,otter:h1,skunk:f1,kangaroo:d1,badger:p1,feet:g1,paw_prints:m1,turkey:y1,chicken:v1,rooster:b1,hatching_chick:_1,baby_chick:x1,hatched_chick:w1,bird:k1,penguin:C1,dove:E1,eagle:S1,duck:T1,swan:A1,owl:M1,dodo:N1,feather:D1,flamingo:O1,peacock:L1,parrot:B1,frog:I1,crocodile:R1,turtle:F1,lizard:P1,snake:z1,dragon_face:q1,dragon:j1,sauropod:H1,"t-rex":"🦖",whale:U1,whale2:$1,dolphin:W1,flipper:Y1,seal:V1,fish:G1,tropical_fish:X1,blowfish:Z1,shark:K1,octopus:Q1,shell:J1,snail:t2,butterfly:e2,bug:n2,ant:r2,bee:i2,honeybee:a2,beetle:o2,lady_beetle:s2,cricket:l2,cockroach:c2,spider:u2,spider_web:h2,scorpion:f2,mosquito:d2,fly:p2,worm:g2,microbe:m2,bouquet:y2,cherry_blossom:v2,white_flower:b2,rosette:_2,rose:x2,wilted_flower:w2,hibiscus:k2,sunflower:C2,blossom:E2,tulip:S2,seedling:T2,potted_plant:A2,evergreen_tree:M2,deciduous_tree:N2,palm_tree:D2,cactus:O2,ear_of_rice:L2,herb:B2,shamrock:I2,four_leaf_clover:R2,maple_leaf:F2,fallen_leaf:P2,leaves:z2,grapes:q2,melon:j2,watermelon:H2,tangerine:U2,orange:$2,mandarin:W2,lemon:Y2,banana:V2,pineapple:G2,mango:X2,apple:Z2,green_apple:K2,pear:Q2,peach:J2,cherries:t4,strawberry:e4,blueberries:n4,kiwi_fruit:r4,tomato:i4,olive:a4,coconut:o4,avocado:s4,eggplant:l4,potato:c4,carrot:u4,corn:h4,hot_pepper:f4,bell_pepper:d4,cucumber:p4,leafy_green:g4,broccoli:m4,garlic:y4,onion:v4,mushroom:b4,peanuts:_4,chestnut:x4,bread:w4,croissant:k4,baguette_bread:C4,flatbread:E4,pretzel:S4,bagel:T4,pancakes:A4,waffle:M4,cheese:N4,meat_on_bone:D4,poultry_leg:O4,cut_of_meat:L4,bacon:B4,hamburger:I4,fries:R4,pizza:F4,hotdog:P4,sandwich:z4,taco:q4,burrito:j4,tamale:H4,stuffed_flatbread:U4,falafel:$4,egg:W4,fried_egg:Y4,shallow_pan_of_food:V4,stew:G4,fondue:X4,bowl_with_spoon:Z4,green_salad:K4,popcorn:Q4,butter:J4,salt:t3,canned_food:e3,bento:n3,rice_cracker:r3,rice_ball:i3,rice:a3,curry:o3,ramen:s3,spaghetti:l3,sweet_potato:c3,oden:u3,sushi:h3,fried_shrimp:f3,fish_cake:d3,moon_cake:p3,dango:g3,dumpling:m3,fortune_cookie:y3,takeout_box:v3,crab:b3,lobster:_3,shrimp:x3,squid:w3,oyster:k3,icecream:C3,shaved_ice:E3,ice_cream:S3,doughnut:T3,cookie:A3,birthday:M3,cake:N3,cupcake:D3,pie:O3,chocolate_bar:L3,candy:B3,lollipop:I3,custard:R3,honey_pot:F3,baby_bottle:P3,milk_glass:z3,coffee:q3,teapot:j3,tea:H3,sake:U3,champagne:$3,wine_glass:W3,cocktail:Y3,tropical_drink:V3,beer:G3,beers:X3,clinking_glasses:Z3,tumbler_glass:K3,cup_with_straw:Q3,bubble_tea:J3,beverage_box:t5,mate:e5,ice_cube:n5,chopsticks:r5,plate_with_cutlery:i5,fork_and_knife:a5,spoon:o5,hocho:s5,knife:l5,amphora:c5,earth_africa:u5,earth_americas:h5,earth_asia:f5,globe_with_meridians:d5,world_map:p5,japan:g5,compass:m5,mountain_snow:y5,mountain:v5,volcano:b5,mount_fuji:_5,camping:x5,beach_umbrella:w5,desert:k5,desert_island:C5,national_park:E5,stadium:S5,classical_building:T5,building_construction:A5,bricks:M5,rock:N5,wood:D5,hut:O5,houses:L5,derelict_house:B5,house:I5,house_with_garden:R5,office:F5,post_office:P5,european_post_office:z5,hospital:q5,bank:j5,hotel:H5,love_hotel:U5,convenience_store:$5,school:W5,department_store:Y5,factory:V5,japanese_castle:G5,european_castle:X5,wedding:Z5,tokyo_tower:K5,statue_of_liberty:Q5,church:J5,mosque:t6,hindu_temple:e6,synagogue:n6,shinto_shrine:r6,kaaba:i6,fountain:a6,tent:o6,foggy:s6,night_with_stars:l6,cityscape:c6,sunrise_over_mountains:u6,sunrise:h6,city_sunset:f6,city_sunrise:d6,bridge_at_night:p6,hotsprings:g6,carousel_horse:m6,ferris_wheel:y6,roller_coaster:v6,barber:b6,circus_tent:_6,steam_locomotive:x6,railway_car:w6,bullettrain_side:k6,bullettrain_front:C6,train2:E6,metro:S6,light_rail:T6,station:A6,tram:M6,monorail:N6,mountain_railway:D6,train:O6,bus:L6,oncoming_bus:B6,trolleybus:I6,minibus:R6,ambulance:F6,fire_engine:P6,police_car:z6,oncoming_police_car:q6,taxi:j6,oncoming_taxi:H6,car:U6,red_car:$6,oncoming_automobile:W6,blue_car:Y6,pickup_truck:V6,truck:G6,articulated_lorry:X6,tractor:Z6,racing_car:K6,motorcycle:Q6,motor_scooter:J6,manual_wheelchair:t8,motorized_wheelchair:e8,auto_rickshaw:n8,bike:r8,kick_scooter:i8,skateboard:a8,roller_skate:o8,busstop:s8,motorway:l8,railway_track:c8,oil_drum:u8,fuelpump:h8,rotating_light:f8,traffic_light:d8,vertical_traffic_light:p8,stop_sign:g8,construction:m8,anchor:y8,boat:v8,sailboat:b8,canoe:_8,speedboat:x8,passenger_ship:w8,ferry:k8,motor_boat:C8,ship:E8,airplane:S8,small_airplane:T8,flight_departure:A8,flight_arrival:M8,parachute:N8,seat:D8,helicopter:O8,suspension_railway:L8,mountain_cableway:B8,aerial_tramway:I8,artificial_satellite:R8,rocket:F8,flying_saucer:P8,bellhop_bell:z8,luggage:q8,hourglass:j8,hourglass_flowing_sand:H8,watch:U8,alarm_clock:$8,stopwatch:W8,timer_clock:Y8,mantelpiece_clock:V8,clock12:G8,clock1230:X8,clock1:Z8,clock130:K8,clock2:Q8,clock230:J8,clock3:t7,clock330:e7,clock4:n7,clock430:r7,clock5:i7,clock530:a7,clock6:o7,clock630:s7,clock7:l7,clock730:c7,clock8:u7,clock830:h7,clock9:f7,clock930:d7,clock10:p7,clock1030:g7,clock11:m7,clock1130:y7,new_moon:v7,waxing_crescent_moon:b7,first_quarter_moon:_7,moon:x7,waxing_gibbous_moon:w7,full_moon:k7,waning_gibbous_moon:C7,last_quarter_moon:E7,waning_crescent_moon:S7,crescent_moon:T7,new_moon_with_face:A7,first_quarter_moon_with_face:M7,last_quarter_moon_with_face:N7,thermometer:D7,sunny:O7,full_moon_with_face:L7,sun_with_face:B7,ringed_planet:I7,star:R7,star2:F7,stars:P7,milky_way:z7,cloud:q7,partly_sunny:j7,cloud_with_lightning_and_rain:H7,sun_behind_small_cloud:U7,sun_behind_large_cloud:$7,sun_behind_rain_cloud:W7,cloud_with_rain:Y7,cloud_with_snow:V7,cloud_with_lightning:G7,tornado:X7,fog:Z7,wind_face:K7,cyclone:Q7,rainbow:J7,closed_umbrella:t9,open_umbrella:e9,umbrella:n9,parasol_on_ground:r9,zap:i9,snowflake:a9,snowman_with_snow:o9,snowman:s9,comet:l9,fire:c9,droplet:u9,ocean:h9,jack_o_lantern:f9,christmas_tree:d9,fireworks:p9,sparkler:g9,firecracker:m9,sparkles:y9,balloon:v9,tada:b9,confetti_ball:_9,tanabata_tree:x9,bamboo:w9,dolls:k9,flags:C9,wind_chime:E9,rice_scene:S9,red_envelope:T9,ribbon:A9,gift:M9,reminder_ribbon:N9,tickets:D9,ticket:O9,medal_military:L9,trophy:B9,medal_sports:I9,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:R9,baseball:F9,softball:P9,basketball:z9,volleyball:q9,football:j9,rugby_football:H9,tennis:U9,flying_disc:$9,bowling:W9,cricket_game:Y9,field_hockey:V9,ice_hockey:G9,lacrosse:X9,ping_pong:Z9,badminton:K9,boxing_glove:Q9,martial_arts_uniform:J9,goal_net:ttt,golf:ett,ice_skate:ntt,fishing_pole_and_fish:rtt,diving_mask:itt,running_shirt_with_sash:att,ski:ott,sled:stt,curling_stone:ltt,dart:ctt,yo_yo:utt,kite:htt,"8ball":"🎱",crystal_ball:ftt,magic_wand:dtt,nazar_amulet:ptt,video_game:gtt,joystick:mtt,slot_machine:ytt,game_die:vtt,jigsaw:btt,teddy_bear:_tt,pinata:xtt,nesting_dolls:wtt,spades:ktt,hearts:Ctt,diamonds:Ett,clubs:Stt,chess_pawn:Ttt,black_joker:Att,mahjong:Mtt,flower_playing_cards:Ntt,performing_arts:Dtt,framed_picture:Ott,art:Ltt,thread:Btt,sewing_needle:Itt,yarn:Rtt,knot:Ftt,eyeglasses:Ptt,dark_sunglasses:ztt,goggles:qtt,lab_coat:jtt,safety_vest:Htt,necktie:Utt,shirt:$tt,tshirt:Wtt,jeans:Ytt,scarf:Vtt,gloves:Gtt,coat:Xtt,socks:Ztt,dress:Ktt,kimono:Qtt,sari:Jtt,one_piece_swimsuit:tet,swim_brief:eet,shorts:net,bikini:ret,womans_clothes:iet,purse:aet,handbag:oet,pouch:set,shopping:cet,school_satchel:uet,thong_sandal:het,mans_shoe:fet,shoe:det,athletic_shoe:pet,hiking_boot:get,flat_shoe:met,high_heel:yet,sandal:vet,ballet_shoes:bet,boot:_et,crown:xet,womans_hat:wet,tophat:ket,mortar_board:Cet,billed_cap:Eet,military_helmet:Tet,rescue_worker_helmet:Aet,prayer_beads:Met,lipstick:Net,ring:Det,gem:Oet,mute:Let,speaker:Bet,sound:Iet,loud_sound:Ret,loudspeaker:Fet,mega:Pet,postal_horn:zet,bell:qet,no_bell:jet,musical_score:Het,musical_note:Uet,notes:$et,studio_microphone:Wet,level_slider:Yet,control_knobs:Vet,microphone:Get,headphones:Xet,radio:Zet,saxophone:Ket,accordion:Qet,guitar:Jet,musical_keyboard:tnt,trumpet:ent,violin:nnt,banjo:rnt,drum:int,long_drum:ant,iphone:ont,calling:snt,phone:lnt,telephone:cnt,telephone_receiver:unt,pager:hnt,fax:fnt,battery:dnt,electric_plug:pnt,computer:gnt,desktop_computer:mnt,printer:ynt,keyboard:vnt,computer_mouse:bnt,trackball:_nt,minidisc:xnt,floppy_disk:wnt,cd:knt,dvd:Cnt,abacus:Ent,movie_camera:Snt,film_strip:Tnt,film_projector:Ant,clapper:Mnt,tv:Nnt,camera:Dnt,camera_flash:Ont,video_camera:Lnt,vhs:Bnt,mag:Int,mag_right:Rnt,candle:Fnt,bulb:Pnt,flashlight:znt,izakaya_lantern:qnt,lantern:jnt,diya_lamp:Hnt,notebook_with_decorative_cover:Unt,closed_book:$nt,book:Wnt,open_book:Ynt,green_book:Vnt,blue_book:Gnt,orange_book:Xnt,books:Znt,notebook:Knt,ledger:Qnt,page_with_curl:Jnt,scroll:trt,page_facing_up:ert,newspaper:nrt,newspaper_roll:rrt,bookmark_tabs:irt,bookmark:art,label:ort,moneybag:srt,coin:lrt,yen:crt,dollar:urt,euro:hrt,pound:frt,money_with_wings:drt,credit_card:prt,receipt:grt,chart:mrt,envelope:yrt,email:vrt,"e-mail":"📧",incoming_envelope:brt,envelope_with_arrow:_rt,outbox_tray:xrt,inbox_tray:wrt,package:"📦",mailbox:krt,mailbox_closed:Crt,mailbox_with_mail:Ert,mailbox_with_no_mail:Srt,postbox:Trt,ballot_box:Art,pencil2:Mrt,black_nib:Nrt,fountain_pen:Drt,pen:Ort,paintbrush:Lrt,crayon:Brt,memo:Irt,pencil:Rrt,briefcase:Frt,file_folder:Prt,open_file_folder:zrt,card_index_dividers:qrt,date:jrt,calendar:Hrt,spiral_notepad:Urt,spiral_calendar:$rt,card_index:Wrt,chart_with_upwards_trend:Yrt,chart_with_downwards_trend:Vrt,bar_chart:Grt,clipboard:Xrt,pushpin:Zrt,round_pushpin:Krt,paperclip:Qrt,paperclips:Jrt,straight_ruler:tit,triangular_ruler:eit,scissors:nit,card_file_box:rit,file_cabinet:iit,wastebasket:ait,lock:oit,unlock:sit,lock_with_ink_pen:lit,closed_lock_with_key:cit,key:uit,old_key:hit,hammer:fit,axe:dit,pick:pit,hammer_and_pick:git,hammer_and_wrench:mit,dagger:yit,crossed_swords:vit,gun:bit,boomerang:_it,bow_and_arrow:xit,shield:wit,carpentry_saw:kit,wrench:Cit,screwdriver:Eit,nut_and_bolt:Sit,gear:Tit,clamp:Ait,balance_scale:Mit,probing_cane:Nit,link:Dit,chains:Oit,hook:Lit,toolbox:Bit,magnet:Iit,ladder:Rit,alembic:Fit,test_tube:Pit,petri_dish:zit,dna:qit,microscope:jit,telescope:Hit,satellite:Uit,syringe:$it,drop_of_blood:Wit,pill:Yit,adhesive_bandage:Vit,stethoscope:Git,door:Xit,elevator:Zit,mirror:Kit,window:Qit,bed:Jit,couch_and_lamp:tat,chair:eat,toilet:nat,plunger:rat,shower:iat,bathtub:aat,mouse_trap:oat,razor:sat,lotion_bottle:lat,safety_pin:cat,broom:uat,basket:hat,roll_of_paper:fat,bucket:dat,soap:pat,toothbrush:gat,sponge:mat,fire_extinguisher:yat,shopping_cart:vat,smoking:bat,coffin:_at,headstone:xat,funeral_urn:wat,moyai:kat,placard:Cat,atm:Eat,put_litter_in_its_place:Sat,potable_water:Tat,wheelchair:Aat,mens:Mat,womens:Nat,restroom:Dat,baby_symbol:Oat,wc:Lat,passport_control:Bat,customs:Iat,baggage_claim:Rat,left_luggage:Fat,warning:Pat,children_crossing:zat,no_entry:qat,no_entry_sign:jat,no_bicycles:Hat,no_smoking:Uat,do_not_litter:$at,"non-potable_water":"🚱",no_pedestrians:Wat,no_mobile_phones:Yat,underage:Vat,radioactive:Gat,biohazard:Xat,arrow_up:Zat,arrow_upper_right:Kat,arrow_right:Qat,arrow_lower_right:Jat,arrow_down:tot,arrow_lower_left:eot,arrow_left:not,arrow_upper_left:rot,arrow_up_down:iot,left_right_arrow:aot,leftwards_arrow_with_hook:oot,arrow_right_hook:sot,arrow_heading_up:lot,arrow_heading_down:cot,arrows_clockwise:uot,arrows_counterclockwise:hot,back:fot,end:dot,on:pot,soon:got,top:mot,place_of_worship:yot,atom_symbol:vot,om:bot,star_of_david:_ot,wheel_of_dharma:xot,yin_yang:wot,latin_cross:kot,orthodox_cross:Cot,star_and_crescent:Eot,peace_symbol:Sot,menorah:Tot,six_pointed_star:Aot,aries:Mot,taurus:Not,gemini:Dot,cancer:Oot,leo:Lot,virgo:Bot,libra:Iot,scorpius:Rot,sagittarius:Fot,capricorn:Pot,aquarius:zot,pisces:qot,ophiuchus:jot,twisted_rightwards_arrows:Hot,repeat:Uot,repeat_one:$ot,arrow_forward:Wot,fast_forward:Yot,next_track_button:Vot,play_or_pause_button:Got,arrow_backward:Xot,rewind:Zot,previous_track_button:Kot,arrow_up_small:Qot,arrow_double_up:Jot,arrow_down_small:tst,arrow_double_down:est,pause_button:nst,stop_button:rst,record_button:ist,eject_button:ast,cinema:ost,low_brightness:sst,high_brightness:lst,signal_strength:cst,vibration_mode:ust,mobile_phone_off:hst,female_sign:fst,male_sign:dst,transgender_symbol:pst,heavy_multiplication_x:gst,heavy_plus_sign:mst,heavy_minus_sign:yst,heavy_division_sign:vst,infinity:bst,bangbang:_st,interrobang:xst,question:wst,grey_question:kst,grey_exclamation:Cst,exclamation:Est,heavy_exclamation_mark:Sst,wavy_dash:Tst,currency_exchange:Ast,heavy_dollar_sign:Mst,medical_symbol:Nst,recycle:Dst,fleur_de_lis:Ost,trident:Lst,name_badge:Bst,beginner:Ist,o:Rst,white_check_mark:Fst,ballot_box_with_check:Pst,heavy_check_mark:zst,x:qst,negative_squared_cross_mark:jst,curly_loop:Hst,loop:Ust,part_alternation_mark:$st,eight_spoked_asterisk:Wst,eight_pointed_black_star:Yst,sparkle:Vst,copyright:Gst,registered:Xst,tm:Zst,hash:Kst,asterisk:Qst,zero:Jst,one:tlt,two:elt,three:nlt,four:rlt,five:ilt,six:alt,seven:olt,eight:slt,nine:llt,keycap_ten:clt,capital_abcd:ult,abcd:hlt,symbols:flt,abc:dlt,a:plt,ab:glt,b:mlt,cl:ylt,cool:vlt,free:blt,information_source:_lt,id:xlt,m:wlt,new:"🆕",ng:klt,o2:Clt,ok:Elt,parking:Slt,sos:Tlt,up:Alt,vs:Mlt,koko:Nlt,sa:Dlt,ideograph_advantage:Olt,accept:Llt,congratulations:Blt,secret:Ilt,u6e80:Rlt,red_circle:Flt,orange_circle:Plt,yellow_circle:zlt,green_circle:qlt,large_blue_circle:jlt,purple_circle:Hlt,brown_circle:Ult,black_circle:$lt,white_circle:Wlt,red_square:Ylt,orange_square:Vlt,yellow_square:Glt,green_square:Xlt,blue_square:Zlt,purple_square:Klt,brown_square:Qlt,black_large_square:Jlt,white_large_square:tct,black_medium_square:ect,white_medium_square:nct,black_medium_small_square:rct,white_medium_small_square:ict,black_small_square:act,white_small_square:oct,large_orange_diamond:sct,large_blue_diamond:lct,small_orange_diamond:cct,small_blue_diamond:uct,small_red_triangle:hct,small_red_triangle_down:fct,diamond_shape_with_a_dot_inside:dct,radio_button:pct,white_square_button:gct,black_square_button:mct,checkered_flag:yct,triangular_flag_on_post:vct,crossed_flags:bct,black_flag:_ct,white_flag:xct,rainbow_flag:wct,transgender_flag:kct,pirate_flag:Cct,ascension_island:Ect,andorra:Sct,united_arab_emirates:Tct,afghanistan:Act,antigua_barbuda:Mct,anguilla:Nct,albania:Dct,armenia:Oct,angola:Lct,antarctica:Bct,argentina:Ict,american_samoa:Rct,austria:Fct,australia:Pct,aruba:zct,aland_islands:qct,azerbaijan:jct,bosnia_herzegovina:Hct,barbados:Uct,bangladesh:$ct,belgium:Wct,burkina_faso:Yct,bulgaria:Vct,bahrain:Gct,burundi:Xct,benin:Zct,st_barthelemy:Kct,bermuda:Qct,brunei:Jct,bolivia:tut,caribbean_netherlands:eut,brazil:nut,bahamas:rut,bhutan:iut,bouvet_island:aut,botswana:out,belarus:sut,belize:lut,canada:cut,cocos_islands:uut,congo_kinshasa:hut,central_african_republic:fut,congo_brazzaville:dut,switzerland:put,cote_divoire:gut,cook_islands:mut,chile:yut,cameroon:vut,cn:but,colombia:_ut,clipperton_island:xut,costa_rica:wut,cuba:kut,cape_verde:Cut,curacao:Eut,christmas_island:Sut,cyprus:Tut,czech_republic:Aut,de:Mut,diego_garcia:Nut,djibouti:Dut,denmark:Out,dominica:Lut,dominican_republic:But,algeria:Iut,ceuta_melilla:Rut,ecuador:Fut,estonia:Put,egypt:zut,western_sahara:qut,eritrea:jut,es:Hut,ethiopia:Uut,eu:$ut,european_union:Wut,finland:Yut,fiji:Vut,falkland_islands:Gut,micronesia:Xut,faroe_islands:Zut,fr:Kut,gabon:Qut,gb:Jut,uk:tht,grenada:eht,georgia:nht,french_guiana:rht,guernsey:iht,ghana:aht,gibraltar:oht,greenland:sht,gambia:lht,guinea:cht,guadeloupe:uht,equatorial_guinea:hht,greece:fht,south_georgia_south_sandwich_islands:dht,guatemala:pht,guam:ght,guinea_bissau:mht,guyana:yht,hong_kong:vht,heard_mcdonald_islands:bht,honduras:_ht,croatia:xht,haiti:wht,hungary:kht,canary_islands:Cht,indonesia:Eht,ireland:Sht,israel:Tht,isle_of_man:Aht,india:Mht,british_indian_ocean_territory:Nht,iraq:Dht,iran:Oht,iceland:Lht,it:Bht,jersey:Iht,jamaica:Rht,jordan:Fht,jp:Pht,kenya:zht,kyrgyzstan:qht,cambodia:jht,kiribati:Hht,comoros:Uht,st_kitts_nevis:$ht,north_korea:Wht,kr:Yht,kuwait:Vht,cayman_islands:Ght,kazakhstan:Xht,laos:Zht,lebanon:Kht,st_lucia:Qht,liechtenstein:Jht,sri_lanka:tft,liberia:eft,lesotho:nft,lithuania:rft,luxembourg:ift,latvia:aft,libya:oft,morocco:sft,monaco:lft,moldova:cft,montenegro:uft,st_martin:hft,madagascar:fft,marshall_islands:dft,macedonia:pft,mali:gft,myanmar:mft,mongolia:yft,macau:vft,northern_mariana_islands:bft,martinique:_ft,mauritania:xft,montserrat:wft,malta:kft,mauritius:Cft,maldives:Eft,malawi:Sft,mexico:Tft,malaysia:Aft,mozambique:Mft,namibia:Nft,new_caledonia:Dft,niger:Oft,norfolk_island:Lft,nigeria:Bft,nicaragua:Ift,netherlands:Rft,norway:Fft,nepal:Pft,nauru:zft,niue:qft,new_zealand:jft,oman:Hft,panama:Uft,peru:$ft,french_polynesia:Wft,papua_new_guinea:Yft,philippines:Vft,pakistan:Gft,poland:Xft,st_pierre_miquelon:Zft,pitcairn_islands:Kft,puerto_rico:Qft,palestinian_territories:Jft,portugal:tdt,palau:edt,paraguay:ndt,qatar:rdt,reunion:idt,romania:adt,serbia:odt,ru:sdt,rwanda:ldt,saudi_arabia:cdt,solomon_islands:udt,seychelles:hdt,sudan:fdt,sweden:ddt,singapore:pdt,st_helena:gdt,slovenia:mdt,svalbard_jan_mayen:ydt,slovakia:vdt,sierra_leone:bdt,san_marino:_dt,senegal:xdt,somalia:wdt,suriname:kdt,south_sudan:Cdt,sao_tome_principe:Edt,el_salvador:Sdt,sint_maarten:Tdt,syria:Adt,swaziland:Mdt,tristan_da_cunha:Ndt,turks_caicos_islands:Ddt,chad:Odt,french_southern_territories:Ldt,togo:Bdt,thailand:Idt,tajikistan:Rdt,tokelau:Fdt,timor_leste:Pdt,turkmenistan:zdt,tunisia:qdt,tonga:jdt,tr:Hdt,trinidad_tobago:Udt,tuvalu:$dt,taiwan:Wdt,tanzania:Ydt,ukraine:Vdt,uganda:Gdt,us_outlying_islands:Xdt,united_nations:Zdt,us:Kdt,uruguay:Qdt,uzbekistan:Jdt,vatican_city:tpt,st_vincent_grenadines:ept,venezuela:npt,british_virgin_islands:rpt,us_virgin_islands:ipt,vietnam:apt,vanuatu:opt,wallis_futuna:spt,samoa:lpt,kosovo:cpt,yemen:upt,mayotte:hpt,south_africa:fpt,zambia:dpt,zimbabwe:ppt,england:gpt,scotland:mpt,wales:ypt},bpt={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]},_pt=function(t,e){return t[e].content},xpt=function(t,e,n,r,i){var a=t.utils.arrayReplaceAt,o=t.utils.lib.ucmicro,s=new RegExp([o.Z.source,o.P.source,o.Cc.source].join("|"));function l(t,r,a){var o,l=0,c=[];return t.replace(i,(function(r,i,u){var h;if(n.hasOwnProperty(r)){if(h=n[r],i>0&&!s.test(u[i-1]))return;if(i+r.length<u.length&&!s.test(u[i+r.length]))return}else h=r.slice(1,-1);i>l&&(o=new a("text","",0),o.content=t.slice(l,i),c.push(o)),o=new a("emoji","",0),o.markup=h,o.content=e[h],c.push(o),l=i+r.length})),l<t.length&&(o=new a("text","",0),o.content=t.slice(l),c.push(o)),c}return function(t){var e,n,i,o,s,c=t.tokens,u=0;for(n=0,i=c.length;n<i;n++)if("inline"===c[n].type)for(o=c[n].children,e=o.length-1;e>=0;e--)s=o[e],"link_open"!==s.type&&"link_close"!==s.type||"auto"===s.info&&(u-=s.nesting),"text"===s.type&&0===u&&r.test(s.content)&&(c[n].children=o=a(o,e,l(s.content,s.level,t.Token)))}};function wpt(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var kpt=function(t){var e,n=t.defs;t.enabled.length&&(n=Object.keys(n).reduce((function(e,r){return t.enabled.indexOf(r)>=0&&(e[r]=n[r]),e}),{})),e=Object.keys(t.shortcuts).reduce((function(e,r){return n[r]?Array.isArray(t.shortcuts[r])?(t.shortcuts[r].forEach((function(t){e[t]=r})),e):(e[t.shortcuts[r]]=r,e):e}),{});var r,i=Object.keys(n);r=0===i.length?"^$":i.map((function(t){return":"+t+":"})).concat(Object.keys(e)).sort().reverse().map((function(t){return wpt(t)})).join("|");var a=RegExp(r),o=RegExp(r,"g");return{defs:n,shortcuts:e,scanRE:a,replaceRE:o}},Cpt=_pt,Ept=xpt,Spt=kpt,Tpt=function(t,e){var n={defs:{},shortcuts:{},enabled:[]},r=Spt(t.utils.assign({},n,e||{}));t.renderer.rules.emoji=Cpt,t.core.ruler.after("linkify","emoji",Ept(t,r.defs,r.shortcuts,r.scanRE,r.replaceRE))},Apt=vpt,Mpt=bpt,Npt=Tpt,Dpt=function(t,e){var n={defs:Apt,shortcuts:Mpt,enabled:[]},r=t.utils.assign({},n,e||{});Npt(t,r)};function Opt(t,e,n,r){var i=Number(t[e].meta.id+1).toString(),a="";return"string"===typeof r.docId&&(a="-"+r.docId+"-"),a+i}function Lpt(t,e){var n=Number(t[e].meta.id+1).toString();return t[e].meta.subId>0&&(n+=":"+t[e].meta.subId),"["+n+"]"}function Bpt(t,e,n,r,i){var a=i.rules.footnote_anchor_name(t,e,n,r,i),o=i.rules.footnote_caption(t,e,n,r,i),s=a;return t[e].meta.subId>0&&(s+=":"+t[e].meta.subId),'<sup class="footnote-ref"><a href="#fn'+a+'" id="fnref'+s+'">'+o+"</a></sup>"}function Ipt(t,e,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'}function Rpt(){return"</ol>\n</section>\n"}function Fpt(t,e,n,r,i){var a=i.rules.footnote_anchor_name(t,e,n,r,i);return t[e].meta.subId>0&&(a+=":"+t[e].meta.subId),'<li id="fn'+a+'" class="footnote-item">'}function Ppt(){return"</li>\n"}function zpt(t,e,n,r,i){var a=i.rules.footnote_anchor_name(t,e,n,r,i);return t[e].meta.subId>0&&(a+=":"+t[e].meta.subId),' <a href="#fnref'+a+'" class="footnote-backref">↩︎</a>'}var qpt=function(t){var e=t.helpers.parseLinkLabel,n=t.utils.isSpace;function r(t,e,r,i){var a,o,s,l,c,u,h,f,d,p,g,m=t.bMarks[e]+t.tShift[e],y=t.eMarks[e];if(m+4>y)return!1;if(91!==t.src.charCodeAt(m))return!1;if(94!==t.src.charCodeAt(m+1))return!1;for(c=m+2;c<y;c++){if(32===t.src.charCodeAt(c))return!1;if(93===t.src.charCodeAt(c))break}if(c===m+2)return!1;if(c+1>=y||58!==t.src.charCodeAt(++c))return!1;if(i)return!0;c++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),u=t.src.slice(m+2,c-2),t.env.footnotes.refs[":"+u]=-1,h=new t.Token("footnote_reference_open","",1),h.meta={label:u},h.level=t.level++,t.tokens.push(h),a=t.bMarks[e],o=t.tShift[e],s=t.sCount[e],l=t.parentType,g=c,f=d=t.sCount[e]+c-(t.bMarks[e]+t.tShift[e]);while(c<y){if(p=t.src.charCodeAt(c),!n(p))break;9===p?d+=4-d%4:d++,c++}return t.tShift[e]=c-g,t.sCount[e]=d-f,t.bMarks[e]=g,t.blkIndent+=4,t.parentType="footnote",t.sCount[e]<t.blkIndent&&(t.sCount[e]+=t.blkIndent),t.md.block.tokenize(t,e,r,!0),t.parentType=l,t.blkIndent-=4,t.tShift[e]=o,t.sCount[e]=s,t.bMarks[e]=a,h=new t.Token("footnote_reference_close","",-1),h.level=--t.level,t.tokens.push(h),!0}function i(t,n){var r,i,a,o,s,l=t.posMax,c=t.pos;return!(c+2>=l)&&(94===t.src.charCodeAt(c)&&(91===t.src.charCodeAt(c+1)&&(r=c+2,i=e(t,c+1),!(i<0)&&(n||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),a=t.env.footnotes.list.length,t.md.inline.parse(t.src.slice(r,i),t.md,t.env,s=[]),o=t.push("footnote_ref","",0),o.meta={id:a},t.env.footnotes.list[a]={content:t.src.slice(r,i),tokens:s}),t.pos=i+1,t.posMax=l,!0))))}function a(t,e){var n,r,i,a,o,s=t.posMax,l=t.pos;if(l+3>s)return!1;if(!t.env.footnotes||!t.env.footnotes.refs)return!1;if(91!==t.src.charCodeAt(l))return!1;if(94!==t.src.charCodeAt(l+1))return!1;for(r=l+2;r<s;r++){if(32===t.src.charCodeAt(r))return!1;if(10===t.src.charCodeAt(r))return!1;if(93===t.src.charCodeAt(r))break}return r!==l+2&&(!(r>=s)&&(r++,n=t.src.slice(l+2,r-1),"undefined"!==typeof t.env.footnotes.refs[":"+n]&&(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+n]<0?(i=t.env.footnotes.list.length,t.env.footnotes.list[i]={label:n,count:0},t.env.footnotes.refs[":"+n]=i):i=t.env.footnotes.refs[":"+n],a=t.env.footnotes.list[i].count,t.env.footnotes.list[i].count++,o=t.push("footnote_ref","",0),o.meta={id:i,subId:a,label:n}),t.pos=r,t.posMax=s,!0)))}function o(t){var e,n,r,i,a,o,s,l,c,u,h=!1,f={};if(t.env.footnotes&&(t.tokens=t.tokens.filter((function(t){return"footnote_reference_open"===t.type?(h=!0,c=[],u=t.meta.label,!1):"footnote_reference_close"===t.type?(h=!1,f[":"+u]=c,!1):(h&&c.push(t),!h)})),t.env.footnotes.list)){for(o=t.env.footnotes.list,s=new t.Token("footnote_block_open","",1),t.tokens.push(s),e=0,n=o.length;e<n;e++){for(s=new t.Token("footnote_open","",1),s.meta={id:e,label:o[e].label},t.tokens.push(s),o[e].tokens?(l=[],s=new t.Token("paragraph_open","p",1),s.block=!0,l.push(s),s=new t.Token("inline","",0),s.children=o[e].tokens,s.content=o[e].content,l.push(s),s=new t.Token("paragraph_close","p",-1),s.block=!0,l.push(s)):o[e].label&&(l=f[":"+o[e].label]),l&&(t.tokens=t.tokens.concat(l)),a="paragraph_close"===t.tokens[t.tokens.length-1].type?t.tokens.pop():null,i=o[e].count>0?o[e].count:1,r=0;r<i;r++)s=new t.Token("footnote_anchor","",0),s.meta={id:e,subId:r,label:o[e].label},t.tokens.push(s);a&&t.tokens.push(a),s=new t.Token("footnote_close","",-1),t.tokens.push(s)}s=new t.Token("footnote_block_close","",-1),t.tokens.push(s)}}t.renderer.rules.footnote_ref=Bpt,t.renderer.rules.footnote_block_open=Ipt,t.renderer.rules.footnote_block_close=Rpt,t.renderer.rules.footnote_open=Fpt,t.renderer.rules.footnote_close=Ppt,t.renderer.rules.footnote_anchor=zpt,t.renderer.rules.footnote_caption=Lpt,t.renderer.rules.footnote_anchor_name=Opt,t.block.ruler.before("reference","footnote_def",r,{alt:["paragraph","reference"]}),t.inline.ruler.after("image","footnote_inline",i),t.inline.ruler.after("footnote_inline","footnote_ref",a),t.core.ruler.after("inline","footnote_tail",o)},jpt=function(t,e){t.image_add=function(e,n){t.__image instanceof Object||(t.__image={}),t.__image[e]=n},t.image_del=function(e){t.__image instanceof Object||(t.__image={}),delete t.__image[e]};var n=t.renderer.rules.image;t.renderer.rules.image=function(e,r,i,a,o){var s=e[r].attrs;if(t.__image instanceof Object)for(var l=0;l<s.length;l++)if("src"==s[l][0]&&t.__image.hasOwnProperty(e[r].attrs[l][1])){s.push(["rel",s[l][1]]),s[l][1]=t.__image[e[r].attrs[l][1]];break}return n(e,r,i,a,o)}},Hpt=function(t){function e(t,e){var n,r,i,a,o,s=t.pos,l=t.src.charCodeAt(s);if(e)return!1;if(43!==l)return!1;if(r=t.scanDelims(t.pos,!0),a=r.length,o=String.fromCharCode(l),a<2)return!1;for(a%2&&(i=t.push("text","",0),i.content=o,a--),n=0;n<a;n+=2)i=t.push("text","",0),i.content=o+o,(r.can_open||r.can_close)&&t.delimiters.push({marker:l,length:0,jump:n/2,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0}function n(t,e){var n,r,i,a,o,s=[],l=e.length;for(n=0;n<l;n++)i=e[n],43===i.marker&&-1!==i.end&&(a=e[i.end],o=t.tokens[i.token],o.type="ins_open",o.tag="ins",o.nesting=1,o.markup="++",o.content="",o=t.tokens[a.token],o.type="ins_close",o.tag="ins",o.nesting=-1,o.markup="++",o.content="","text"===t.tokens[a.token-1].type&&"+"===t.tokens[a.token-1].content&&s.push(a.token-1));while(s.length){n=s.pop(),r=n+1;while(r<t.tokens.length&&"ins_close"===t.tokens[r].type)r++;r--,n!==r&&(o=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=o)}}t.inline.ruler.before("emphasis","ins",e),t.inline.ruler2.before("emphasis","ins",(function(t){var e,r=t.tokens_meta,i=(t.tokens_meta||[]).length;for(n(t,t.delimiters),e=0;e<i;e++)r[e]&&r[e].delimiters&&n(t,r[e].delimiters)}))},Upt={exports:{}};(function(t,e){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){},function(t,e,n){n.r(e),n(0);var r=function(){function t(t,e,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=n}return t.range=function(e,n){return n?e&&e.loc&&n.loc&&e.loc.lexer===n.loc.lexer?new t(e.loc.lexer,e.loc.start,n.loc.end):null:e&&e.loc},t}(),i=function(){function t(t,e){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=e}var e=t.prototype;return e.range=function(e,n){return new t(n,r.range(this,e))},t}(),a=function t(e,n){this.position=void 0;var r,i="KaTeX parse error: "+e,a=n&&n.loc;if(a&&a.start<=a.end){var o=a.lexer.input;r=a.start;var s=a.end;r===o.length?i+=" at end of input: ":i+=" at position "+(r+1)+": ";var l,c,u=o.slice(r,s).replace(/[^]/g,"$&̲");l=r>15?"…"+o.slice(r-15,r):o.slice(0,r),c=s+15<o.length?o.slice(s,s+15)+"…":o.slice(s),i+=l+u+c}var h=new Error(i);return h.name="ParseError",h.__proto__=t.prototype,h.position=r,h};a.prototype.__proto__=Error.prototype;var o=a,s=function(t,e){return-1!==t.indexOf(e)},l=function(t,e){return void 0===t?e:t},c=/([A-Z])/g,u=function(t){return t.replace(c,"-$1").toLowerCase()},h={"&":"&",">":">","<":"<",'"':""","'":"'"},f=/[&><"']/g;function d(t){return String(t).replace(f,(function(t){return h[t]}))}var p=function t(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e},g=function(t){var e=p(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},m=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},y=function(t){var e=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return null!=e?e[1]:"_relative"},v={contains:s,deflt:l,escape:d,hyphenate:u,getBaseElem:p,isCharacterBox:g,protocolFromUrl:y},b=function(){function t(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{},this.displayMode=v.deflt(t.displayMode,!1),this.output=v.deflt(t.output,"htmlAndMathml"),this.leqno=v.deflt(t.leqno,!1),this.fleqn=v.deflt(t.fleqn,!1),this.throwOnError=v.deflt(t.throwOnError,!0),this.errorColor=v.deflt(t.errorColor,"#cc0000"),this.macros=t.macros||{},this.minRuleThickness=Math.max(0,v.deflt(t.minRuleThickness,0)),this.colorIsTextColor=v.deflt(t.colorIsTextColor,!1),this.strict=v.deflt(t.strict,"warn"),this.trust=v.deflt(t.trust,!1),this.maxSize=Math.max(0,v.deflt(t.maxSize,1/0)),this.maxExpand=Math.max(0,v.deflt(t.maxExpand,1e3)),this.globalGroup=v.deflt(t.globalGroup,!1)}var e=t.prototype;return e.reportNonstrict=function(t,e,n){var r=this.strict;if("function"===typeof r&&(r=r(t,e,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new o("LaTeX-incompatible input and strict mode is set to 'error': "+e+" ["+t+"]",n);"warn"===r?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+e+" ["+t+"]")}},e.useStrictBehavior=function(t,e,n){var r=this.strict;if("function"===typeof r)try{r=r(t,e,n)}catch(i){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r||("warn"===r?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+e+" ["+t+"]"),!1)))},e.isTrusted=function(t){t.url&&!t.protocol&&(t.protocol=v.protocolFromUrl(t.url));var e="function"===typeof this.trust?this.trust(t):this.trust;return Boolean(e)},t}(),_=function(){function t(t,e,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=e,this.cramped=n}var e=t.prototype;return e.sup=function(){return M[N[this.id]]},e.sub=function(){return M[D[this.id]]},e.fracNum=function(){return M[O[this.id]]},e.fracDen=function(){return M[L[this.id]]},e.cramp=function(){return M[B[this.id]]},e.text=function(){return M[I[this.id]]},e.isTight=function(){return this.size>=2},t}(),x=0,w=1,k=2,C=3,E=4,S=5,T=6,A=7,M=[new _(x,0,!1),new _(w,0,!0),new _(k,1,!1),new _(C,1,!0),new _(E,2,!1),new _(S,2,!0),new _(T,3,!1),new _(A,3,!0)],N=[E,S,E,S,T,A,T,A],D=[S,S,S,S,A,A,A,A],O=[k,C,E,S,T,A,T,A],L=[C,C,S,S,A,A,A,A],B=[w,w,C,C,S,S,A,A],I=[x,w,k,C,k,C,k,C],R={DISPLAY:M[x],TEXT:M[k],SCRIPT:M[E],SCRIPTSCRIPT:M[T]},F=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function P(t){for(var e=0;e<F.length;e++)for(var n=F[e],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(t>=i[0]&&t<=i[1])return n.name}return null}var z=[];function q(t){for(var e=0;e<z.length;e+=2)if(t>=z[e]&&t<=z[e+1])return!0;return!1}F.forEach((function(t){return t.blocks.forEach((function(t){return z.push.apply(z,t)}))}));var j=80,H=function(t,e){return"M95,"+(622+t+e)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+t/2.075+" -"+t+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+t)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},U=function(t,e){return"M263,"+(601+t+e)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+t/2.084+" -"+t+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+t)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},$=function(t,e){return"M983 "+(10+t+e)+"\nl"+t/3.13+" -"+t+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+t)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},W=function(t,e){return"M424,"+(2398+t+e)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+t/4.223+" -"+t+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+t)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+t)+" "+e+"\nh400000v"+(40+t)+"h-400000z"},Y=function(t,e){return"M473,"+(2713+t+e)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+t/5.298+" -"+t+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+t)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+t)+" "+e+"h400000v"+(40+t)+"H1017.7z"},V=function(t,e,n){var r=n-54-e-t;return"M702 "+(t+e)+"H400000"+(40+t)+"\nH742v"+r+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+e+"H400000v"+(40+t)+"H742z"},G=function(t,e,n){e*=1e3;var r="";switch(t){case"sqrtMain":r=H(e,j);break;case"sqrtSize1":r=U(e,j);break;case"sqrtSize2":r=$(e,j);break;case"sqrtSize3":r=W(e,j);break;case"sqrtSize4":r=Y(e,j);break;case"sqrtTall":r=V(e,j,n)}return r},X={leftParenInner:"M291 0 H417 V300 H291 z",rightParenInner:"M457 0 H583 V300 H457 z",doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},Z=function(){function t(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var e=t.prototype;return e.hasClass=function(t){return v.contains(this.classes,t)},e.toNode=function(){for(var t=document.createDocumentFragment(),e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t},e.toMarkup=function(){for(var t="",e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t},e.toText=function(){var t=function(t){return t.toText()};return this.children.map(t).join("")},t}(),K=function(t){return t.filter((function(t){return t})).join(" ")},Q=function(t,e,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},e){e.style.isTight()&&this.classes.push("mtight");var r=e.getColor();r&&(this.style.color=r)}},J=function(t){var e=document.createElement(t);for(var n in e.className=K(this.classes),this.style)this.style.hasOwnProperty(n)&&(e.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&e.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)e.appendChild(this.children[i].toNode());return e},tt=function(t){var e="<"+t;this.classes.length&&(e+=' class="'+v.escape(K(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=v.hyphenate(r)+":"+this.style[r]+";");for(var i in n&&(e+=' style="'+v.escape(n)+'"'),this.attributes)this.attributes.hasOwnProperty(i)&&(e+=" "+i+'="'+v.escape(this.attributes[i])+'"');e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</"+t+">",e},et=function(){function t(t,e,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Q.call(this,t,n,r),this.children=e||[]}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return v.contains(this.classes,t)},e.toNode=function(){return J.call(this,"span")},e.toMarkup=function(){return tt.call(this,"span")},t}(),nt=function(){function t(t,e,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Q.call(this,e,r),this.children=n||[],this.setAttribute("href",t)}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return v.contains(this.classes,t)},e.toNode=function(){return J.call(this,"a")},e.toMarkup=function(){return tt.call(this,"a")},t}(),rt=function(){function t(t,e,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=e,this.src=t,this.classes=["mord"],this.style=n}var e=t.prototype;return e.hasClass=function(t){return v.contains(this.classes,t)},e.toNode=function(){var t=document.createElement("img");for(var e in t.src=this.src,t.alt=this.alt,t.className="mord",this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);return t},e.toMarkup=function(){var t="<img src='"+this.src+" 'alt='"+this.alt+"' ",e="";for(var n in this.style)this.style.hasOwnProperty(n)&&(e+=v.hyphenate(n)+":"+this.style[n]+";");return e&&(t+=' style="'+v.escape(e)+'"'),t+="'/>",t},t}(),it={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"},at=function(){function t(t,e,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=e||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=P(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=it[this.text])}var e=t.prototype;return e.hasClass=function(t){return v.contains(this.classes,t)},e.toNode=function(){var t=document.createTextNode(this.text),e=null;for(var n in this.italic>0&&(e=document.createElement("span"),e.style.marginRight=this.italic+"em"),this.classes.length>0&&(e=e||document.createElement("span"),e.className=K(this.classes)),this.style)this.style.hasOwnProperty(n)&&(e=e||document.createElement("span"),e.style[n]=this.style[n]);return e?(e.appendChild(t),e):t},e.toMarkup=function(){var t=!1,e="<span";this.classes.length&&(t=!0,e+=' class="',e+=v.escape(K(this.classes)),e+='"');var n="";for(var r in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=v.hyphenate(r)+":"+this.style[r]+";");n&&(t=!0,e+=' style="'+v.escape(n)+'"');var i=v.escape(this.text);return t?(e+=">",e+=i,e+="</span>",e):i},t}(),ot=function(){function t(t,e){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=e||{}}var e=t.prototype;return e.toNode=function(){var t="http://www.w3.org/2000/svg",e=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e},e.toMarkup=function(){var t="<svg";for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+"='"+this.attributes[e]+"'");t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t},t}(),st=function(){function t(t,e){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=e}var e=t.prototype;return e.toNode=function(){var t="http://www.w3.org/2000/svg",e=document.createElementNS(t,"path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",X[this.pathName]),e},e.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+X[this.pathName]+"'/>"},t}(),lt=function(){function t(t){this.attributes=void 0,this.attributes=t||{}}var e=t.prototype;return e.toNode=function(){var t="http://www.w3.org/2000/svg",e=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);return e},e.toMarkup=function(){var t="<line";for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+"='"+this.attributes[e]+"'");return t+="/>",t},t}();function ct(t){if(t instanceof at)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function ut(t){if(t instanceof et)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var ht={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ft={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},dt={"Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function pt(t,e){ht[t]=e}function gt(t,e,n){if(!ht[e])throw new Error("Font metrics not found for font: "+e+".");var r=t.charCodeAt(0),i=ht[e][r];if(!i&&t[0]in dt&&(r=dt[t[0]].charCodeAt(0),i=ht[e][r]),i||"text"!==n||q(r)&&(i=ht[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var mt={};function yt(t){var e;if(e=t>=5?0:t>=3?1:2,!mt[e]){var n=mt[e]={cssEmPerMu:ft.quad[e]/18};for(var r in ft)ft.hasOwnProperty(r)&&(n[r]=ft[r][e])}return mt[e]}var vt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},bt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},_t={math:{},text:{}},xt=_t;function wt(t,e,n,r,i,a){_t[t][i]={font:e,group:n,replace:r},a&&r&&(_t[t][r]=_t[t][i])}var kt="math",Ct="text",Et="main",St="ams",Tt="accent-token",At="bin",Mt="close",Nt="inner",Dt="mathord",Ot="op-token",Lt="open",Bt="punct",It="rel",Rt="spacing",Ft="textord";wt(kt,Et,It,"≡","\\equiv",!0),wt(kt,Et,It,"≺","\\prec",!0),wt(kt,Et,It,"≻","\\succ",!0),wt(kt,Et,It,"∼","\\sim",!0),wt(kt,Et,It,"⊥","\\perp"),wt(kt,Et,It,"⪯","\\preceq",!0),wt(kt,Et,It,"⪰","\\succeq",!0),wt(kt,Et,It,"≃","\\simeq",!0),wt(kt,Et,It,"∣","\\mid",!0),wt(kt,Et,It,"≪","\\ll",!0),wt(kt,Et,It,"≫","\\gg",!0),wt(kt,Et,It,"≍","\\asymp",!0),wt(kt,Et,It,"∥","\\parallel"),wt(kt,Et,It,"⋈","\\bowtie",!0),wt(kt,Et,It,"⌣","\\smile",!0),wt(kt,Et,It,"⊑","\\sqsubseteq",!0),wt(kt,Et,It,"⊒","\\sqsupseteq",!0),wt(kt,Et,It,"≐","\\doteq",!0),wt(kt,Et,It,"⌢","\\frown",!0),wt(kt,Et,It,"∋","\\ni",!0),wt(kt,Et,It,"∝","\\propto",!0),wt(kt,Et,It,"⊢","\\vdash",!0),wt(kt,Et,It,"⊣","\\dashv",!0),wt(kt,Et,It,"∋","\\owns"),wt(kt,Et,Bt,".","\\ldotp"),wt(kt,Et,Bt,"⋅","\\cdotp"),wt(kt,Et,Ft,"#","\\#"),wt(Ct,Et,Ft,"#","\\#"),wt(kt,Et,Ft,"&","\\&"),wt(Ct,Et,Ft,"&","\\&"),wt(kt,Et,Ft,"ℵ","\\aleph",!0),wt(kt,Et,Ft,"∀","\\forall",!0),wt(kt,Et,Ft,"ℏ","\\hbar",!0),wt(kt,Et,Ft,"∃","\\exists",!0),wt(kt,Et,Ft,"∇","\\nabla",!0),wt(kt,Et,Ft,"♭","\\flat",!0),wt(kt,Et,Ft,"ℓ","\\ell",!0),wt(kt,Et,Ft,"♮","\\natural",!0),wt(kt,Et,Ft,"♣","\\clubsuit",!0),wt(kt,Et,Ft,"℘","\\wp",!0),wt(kt,Et,Ft,"♯","\\sharp",!0),wt(kt,Et,Ft,"♢","\\diamondsuit",!0),wt(kt,Et,Ft,"ℜ","\\Re",!0),wt(kt,Et,Ft,"♡","\\heartsuit",!0),wt(kt,Et,Ft,"ℑ","\\Im",!0),wt(kt,Et,Ft,"♠","\\spadesuit",!0),wt(Ct,Et,Ft,"§","\\S",!0),wt(Ct,Et,Ft,"¶","\\P",!0),wt(kt,Et,Ft,"†","\\dag"),wt(Ct,Et,Ft,"†","\\dag"),wt(Ct,Et,Ft,"†","\\textdagger"),wt(kt,Et,Ft,"‡","\\ddag"),wt(Ct,Et,Ft,"‡","\\ddag"),wt(Ct,Et,Ft,"‡","\\textdaggerdbl"),wt(kt,Et,Mt,"⎱","\\rmoustache",!0),wt(kt,Et,Lt,"⎰","\\lmoustache",!0),wt(kt,Et,Mt,"⟯","\\rgroup",!0),wt(kt,Et,Lt,"⟮","\\lgroup",!0),wt(kt,Et,At,"∓","\\mp",!0),wt(kt,Et,At,"⊖","\\ominus",!0),wt(kt,Et,At,"⊎","\\uplus",!0),wt(kt,Et,At,"⊓","\\sqcap",!0),wt(kt,Et,At,"∗","\\ast"),wt(kt,Et,At,"⊔","\\sqcup",!0),wt(kt,Et,At,"◯","\\bigcirc"),wt(kt,Et,At,"∙","\\bullet"),wt(kt,Et,At,"‡","\\ddagger"),wt(kt,Et,At,"≀","\\wr",!0),wt(kt,Et,At,"⨿","\\amalg"),wt(kt,Et,At,"&","\\And"),wt(kt,Et,It,"⟵","\\longleftarrow",!0),wt(kt,Et,It,"⇐","\\Leftarrow",!0),wt(kt,Et,It,"⟸","\\Longleftarrow",!0),wt(kt,Et,It,"⟶","\\longrightarrow",!0),wt(kt,Et,It,"⇒","\\Rightarrow",!0),wt(kt,Et,It,"⟹","\\Longrightarrow",!0),wt(kt,Et,It,"↔","\\leftrightarrow",!0),wt(kt,Et,It,"⟷","\\longleftrightarrow",!0),wt(kt,Et,It,"⇔","\\Leftrightarrow",!0),wt(kt,Et,It,"⟺","\\Longleftrightarrow",!0),wt(kt,Et,It,"↦","\\mapsto",!0),wt(kt,Et,It,"⟼","\\longmapsto",!0),wt(kt,Et,It,"↗","\\nearrow",!0),wt(kt,Et,It,"↩","\\hookleftarrow",!0),wt(kt,Et,It,"↪","\\hookrightarrow",!0),wt(kt,Et,It,"↘","\\searrow",!0),wt(kt,Et,It,"↼","\\leftharpoonup",!0),wt(kt,Et,It,"⇀","\\rightharpoonup",!0),wt(kt,Et,It,"↙","\\swarrow",!0),wt(kt,Et,It,"↽","\\leftharpoondown",!0),wt(kt,Et,It,"⇁","\\rightharpoondown",!0),wt(kt,Et,It,"↖","\\nwarrow",!0),wt(kt,Et,It,"⇌","\\rightleftharpoons",!0),wt(kt,St,It,"≮","\\nless",!0),wt(kt,St,It,"","\\@nleqslant"),wt(kt,St,It,"","\\@nleqq"),wt(kt,St,It,"⪇","\\lneq",!0),wt(kt,St,It,"≨","\\lneqq",!0),wt(kt,St,It,"","\\@lvertneqq"),wt(kt,St,It,"⋦","\\lnsim",!0),wt(kt,St,It,"⪉","\\lnapprox",!0),wt(kt,St,It,"⊀","\\nprec",!0),wt(kt,St,It,"⋠","\\npreceq",!0),wt(kt,St,It,"⋨","\\precnsim",!0),wt(kt,St,It,"⪹","\\precnapprox",!0),wt(kt,St,It,"≁","\\nsim",!0),wt(kt,St,It,"","\\@nshortmid"),wt(kt,St,It,"∤","\\nmid",!0),wt(kt,St,It,"⊬","\\nvdash",!0),wt(kt,St,It,"⊭","\\nvDash",!0),wt(kt,St,It,"⋪","\\ntriangleleft"),wt(kt,St,It,"⋬","\\ntrianglelefteq",!0),wt(kt,St,It,"⊊","\\subsetneq",!0),wt(kt,St,It,"","\\@varsubsetneq"),wt(kt,St,It,"⫋","\\subsetneqq",!0),wt(kt,St,It,"","\\@varsubsetneqq"),wt(kt,St,It,"≯","\\ngtr",!0),wt(kt,St,It,"","\\@ngeqslant"),wt(kt,St,It,"","\\@ngeqq"),wt(kt,St,It,"⪈","\\gneq",!0),wt(kt,St,It,"≩","\\gneqq",!0),wt(kt,St,It,"","\\@gvertneqq"),wt(kt,St,It,"⋧","\\gnsim",!0),wt(kt,St,It,"⪊","\\gnapprox",!0),wt(kt,St,It,"⊁","\\nsucc",!0),wt(kt,St,It,"⋡","\\nsucceq",!0),wt(kt,St,It,"⋩","\\succnsim",!0),wt(kt,St,It,"⪺","\\succnapprox",!0),wt(kt,St,It,"≆","\\ncong",!0),wt(kt,St,It,"","\\@nshortparallel"),wt(kt,St,It,"∦","\\nparallel",!0),wt(kt,St,It,"⊯","\\nVDash",!0),wt(kt,St,It,"⋫","\\ntriangleright"),wt(kt,St,It,"⋭","\\ntrianglerighteq",!0),wt(kt,St,It,"","\\@nsupseteqq"),wt(kt,St,It,"⊋","\\supsetneq",!0),wt(kt,St,It,"","\\@varsupsetneq"),wt(kt,St,It,"⫌","\\supsetneqq",!0),wt(kt,St,It,"","\\@varsupsetneqq"),wt(kt,St,It,"⊮","\\nVdash",!0),wt(kt,St,It,"⪵","\\precneqq",!0),wt(kt,St,It,"⪶","\\succneqq",!0),wt(kt,St,It,"","\\@nsubseteqq"),wt(kt,St,At,"⊴","\\unlhd"),wt(kt,St,At,"⊵","\\unrhd"),wt(kt,St,It,"↚","\\nleftarrow",!0),wt(kt,St,It,"↛","\\nrightarrow",!0),wt(kt,St,It,"⇍","\\nLeftarrow",!0),wt(kt,St,It,"⇏","\\nRightarrow",!0),wt(kt,St,It,"↮","\\nleftrightarrow",!0),wt(kt,St,It,"⇎","\\nLeftrightarrow",!0),wt(kt,St,It,"△","\\vartriangle"),wt(kt,St,Ft,"ℏ","\\hslash"),wt(kt,St,Ft,"▽","\\triangledown"),wt(kt,St,Ft,"◊","\\lozenge"),wt(kt,St,Ft,"Ⓢ","\\circledS"),wt(kt,St,Ft,"®","\\circledR"),wt(Ct,St,Ft,"®","\\circledR"),wt(kt,St,Ft,"∡","\\measuredangle",!0),wt(kt,St,Ft,"∄","\\nexists"),wt(kt,St,Ft,"℧","\\mho"),wt(kt,St,Ft,"Ⅎ","\\Finv",!0),wt(kt,St,Ft,"⅁","\\Game",!0),wt(kt,St,Ft,"‵","\\backprime"),wt(kt,St,Ft,"▲","\\blacktriangle"),wt(kt,St,Ft,"▼","\\blacktriangledown"),wt(kt,St,Ft,"■","\\blacksquare"),wt(kt,St,Ft,"⧫","\\blacklozenge"),wt(kt,St,Ft,"★","\\bigstar"),wt(kt,St,Ft,"∢","\\sphericalangle",!0),wt(kt,St,Ft,"∁","\\complement",!0),wt(kt,St,Ft,"ð","\\eth",!0),wt(Ct,Et,Ft,"ð","ð"),wt(kt,St,Ft,"╱","\\diagup"),wt(kt,St,Ft,"╲","\\diagdown"),wt(kt,St,Ft,"□","\\square"),wt(kt,St,Ft,"□","\\Box"),wt(kt,St,Ft,"◊","\\Diamond"),wt(kt,St,Ft,"¥","\\yen",!0),wt(Ct,St,Ft,"¥","\\yen",!0),wt(kt,St,Ft,"✓","\\checkmark",!0),wt(Ct,St,Ft,"✓","\\checkmark"),wt(kt,St,Ft,"ℶ","\\beth",!0),wt(kt,St,Ft,"ℸ","\\daleth",!0),wt(kt,St,Ft,"ℷ","\\gimel",!0),wt(kt,St,Ft,"ϝ","\\digamma",!0),wt(kt,St,Ft,"ϰ","\\varkappa"),wt(kt,St,Lt,"┌","\\@ulcorner",!0),wt(kt,St,Mt,"┐","\\@urcorner",!0),wt(kt,St,Lt,"└","\\@llcorner",!0),wt(kt,St,Mt,"┘","\\@lrcorner",!0),wt(kt,St,It,"≦","\\leqq",!0),wt(kt,St,It,"⩽","\\leqslant",!0),wt(kt,St,It,"⪕","\\eqslantless",!0),wt(kt,St,It,"≲","\\lesssim",!0),wt(kt,St,It,"⪅","\\lessapprox",!0),wt(kt,St,It,"≊","\\approxeq",!0),wt(kt,St,At,"⋖","\\lessdot"),wt(kt,St,It,"⋘","\\lll",!0),wt(kt,St,It,"≶","\\lessgtr",!0),wt(kt,St,It,"⋚","\\lesseqgtr",!0),wt(kt,St,It,"⪋","\\lesseqqgtr",!0),wt(kt,St,It,"≑","\\doteqdot"),wt(kt,St,It,"≓","\\risingdotseq",!0),wt(kt,St,It,"≒","\\fallingdotseq",!0),wt(kt,St,It,"∽","\\backsim",!0),wt(kt,St,It,"⋍","\\backsimeq",!0),wt(kt,St,It,"⫅","\\subseteqq",!0),wt(kt,St,It,"⋐","\\Subset",!0),wt(kt,St,It,"⊏","\\sqsubset",!0),wt(kt,St,It,"≼","\\preccurlyeq",!0),wt(kt,St,It,"⋞","\\curlyeqprec",!0),wt(kt,St,It,"≾","\\precsim",!0),wt(kt,St,It,"⪷","\\precapprox",!0),wt(kt,St,It,"⊲","\\vartriangleleft"),wt(kt,St,It,"⊴","\\trianglelefteq"),wt(kt,St,It,"⊨","\\vDash",!0),wt(kt,St,It,"⊪","\\Vvdash",!0),wt(kt,St,It,"⌣","\\smallsmile"),wt(kt,St,It,"⌢","\\smallfrown"),wt(kt,St,It,"≏","\\bumpeq",!0),wt(kt,St,It,"≎","\\Bumpeq",!0),wt(kt,St,It,"≧","\\geqq",!0),wt(kt,St,It,"⩾","\\geqslant",!0),wt(kt,St,It,"⪖","\\eqslantgtr",!0),wt(kt,St,It,"≳","\\gtrsim",!0),wt(kt,St,It,"⪆","\\gtrapprox",!0),wt(kt,St,At,"⋗","\\gtrdot"),wt(kt,St,It,"⋙","\\ggg",!0),wt(kt,St,It,"≷","\\gtrless",!0),wt(kt,St,It,"⋛","\\gtreqless",!0),wt(kt,St,It,"⪌","\\gtreqqless",!0),wt(kt,St,It,"≖","\\eqcirc",!0),wt(kt,St,It,"≗","\\circeq",!0),wt(kt,St,It,"≜","\\triangleq",!0),wt(kt,St,It,"∼","\\thicksim"),wt(kt,St,It,"≈","\\thickapprox"),wt(kt,St,It,"⫆","\\supseteqq",!0),wt(kt,St,It,"⋑","\\Supset",!0),wt(kt,St,It,"⊐","\\sqsupset",!0),wt(kt,St,It,"≽","\\succcurlyeq",!0),wt(kt,St,It,"⋟","\\curlyeqsucc",!0),wt(kt,St,It,"≿","\\succsim",!0),wt(kt,St,It,"⪸","\\succapprox",!0),wt(kt,St,It,"⊳","\\vartriangleright"),wt(kt,St,It,"⊵","\\trianglerighteq"),wt(kt,St,It,"⊩","\\Vdash",!0),wt(kt,St,It,"∣","\\shortmid"),wt(kt,St,It,"∥","\\shortparallel"),wt(kt,St,It,"≬","\\between",!0),wt(kt,St,It,"⋔","\\pitchfork",!0),wt(kt,St,It,"∝","\\varpropto"),wt(kt,St,It,"◀","\\blacktriangleleft"),wt(kt,St,It,"∴","\\therefore",!0),wt(kt,St,It,"∍","\\backepsilon"),wt(kt,St,It,"▶","\\blacktriangleright"),wt(kt,St,It,"∵","\\because",!0),wt(kt,St,It,"⋘","\\llless"),wt(kt,St,It,"⋙","\\gggtr"),wt(kt,St,At,"⊲","\\lhd"),wt(kt,St,At,"⊳","\\rhd"),wt(kt,St,It,"≂","\\eqsim",!0),wt(kt,Et,It,"⋈","\\Join"),wt(kt,St,It,"≑","\\Doteq",!0),wt(kt,St,At,"∔","\\dotplus",!0),wt(kt,St,At,"∖","\\smallsetminus"),wt(kt,St,At,"⋒","\\Cap",!0),wt(kt,St,At,"⋓","\\Cup",!0),wt(kt,St,At,"⩞","\\doublebarwedge",!0),wt(kt,St,At,"⊟","\\boxminus",!0),wt(kt,St,At,"⊞","\\boxplus",!0),wt(kt,St,At,"⋇","\\divideontimes",!0),wt(kt,St,At,"⋉","\\ltimes",!0),wt(kt,St,At,"⋊","\\rtimes",!0),wt(kt,St,At,"⋋","\\leftthreetimes",!0),wt(kt,St,At,"⋌","\\rightthreetimes",!0),wt(kt,St,At,"⋏","\\curlywedge",!0),wt(kt,St,At,"⋎","\\curlyvee",!0),wt(kt,St,At,"⊝","\\circleddash",!0),wt(kt,St,At,"⊛","\\circledast",!0),wt(kt,St,At,"⋅","\\centerdot"),wt(kt,St,At,"⊺","\\intercal",!0),wt(kt,St,At,"⋒","\\doublecap"),wt(kt,St,At,"⋓","\\doublecup"),wt(kt,St,At,"⊠","\\boxtimes",!0),wt(kt,St,It,"⇢","\\dashrightarrow",!0),wt(kt,St,It,"⇠","\\dashleftarrow",!0),wt(kt,St,It,"⇇","\\leftleftarrows",!0),wt(kt,St,It,"⇆","\\leftrightarrows",!0),wt(kt,St,It,"⇚","\\Lleftarrow",!0),wt(kt,St,It,"↞","\\twoheadleftarrow",!0),wt(kt,St,It,"↢","\\leftarrowtail",!0),wt(kt,St,It,"↫","\\looparrowleft",!0),wt(kt,St,It,"⇋","\\leftrightharpoons",!0),wt(kt,St,It,"↶","\\curvearrowleft",!0),wt(kt,St,It,"↺","\\circlearrowleft",!0),wt(kt,St,It,"↰","\\Lsh",!0),wt(kt,St,It,"⇈","\\upuparrows",!0),wt(kt,St,It,"↿","\\upharpoonleft",!0),wt(kt,St,It,"⇃","\\downharpoonleft",!0),wt(kt,St,It,"⊸","\\multimap",!0),wt(kt,St,It,"↭","\\leftrightsquigarrow",!0),wt(kt,St,It,"⇉","\\rightrightarrows",!0),wt(kt,St,It,"⇄","\\rightleftarrows",!0),wt(kt,St,It,"↠","\\twoheadrightarrow",!0),wt(kt,St,It,"↣","\\rightarrowtail",!0),wt(kt,St,It,"↬","\\looparrowright",!0),wt(kt,St,It,"↷","\\curvearrowright",!0),wt(kt,St,It,"↻","\\circlearrowright",!0),wt(kt,St,It,"↱","\\Rsh",!0),wt(kt,St,It,"⇊","\\downdownarrows",!0),wt(kt,St,It,"↾","\\upharpoonright",!0),wt(kt,St,It,"⇂","\\downharpoonright",!0),wt(kt,St,It,"⇝","\\rightsquigarrow",!0),wt(kt,St,It,"⇝","\\leadsto"),wt(kt,St,It,"⇛","\\Rrightarrow",!0),wt(kt,St,It,"↾","\\restriction"),wt(kt,Et,Ft,"‘","`"),wt(kt,Et,Ft,"$","\\$"),wt(Ct,Et,Ft,"$","\\$"),wt(Ct,Et,Ft,"$","\\textdollar"),wt(kt,Et,Ft,"%","\\%"),wt(Ct,Et,Ft,"%","\\%"),wt(kt,Et,Ft,"_","\\_"),wt(Ct,Et,Ft,"_","\\_"),wt(Ct,Et,Ft,"_","\\textunderscore"),wt(kt,Et,Ft,"∠","\\angle",!0),wt(kt,Et,Ft,"∞","\\infty",!0),wt(kt,Et,Ft,"′","\\prime"),wt(kt,Et,Ft,"△","\\triangle"),wt(kt,Et,Ft,"Γ","\\Gamma",!0),wt(kt,Et,Ft,"Δ","\\Delta",!0),wt(kt,Et,Ft,"Θ","\\Theta",!0),wt(kt,Et,Ft,"Λ","\\Lambda",!0),wt(kt,Et,Ft,"Ξ","\\Xi",!0),wt(kt,Et,Ft,"Π","\\Pi",!0),wt(kt,Et,Ft,"Σ","\\Sigma",!0),wt(kt,Et,Ft,"Υ","\\Upsilon",!0),wt(kt,Et,Ft,"Φ","\\Phi",!0),wt(kt,Et,Ft,"Ψ","\\Psi",!0),wt(kt,Et,Ft,"Ω","\\Omega",!0),wt(kt,Et,Ft,"A","Α"),wt(kt,Et,Ft,"B","Β"),wt(kt,Et,Ft,"E","Ε"),wt(kt,Et,Ft,"Z","Ζ"),wt(kt,Et,Ft,"H","Η"),wt(kt,Et,Ft,"I","Ι"),wt(kt,Et,Ft,"K","Κ"),wt(kt,Et,Ft,"M","Μ"),wt(kt,Et,Ft,"N","Ν"),wt(kt,Et,Ft,"O","Ο"),wt(kt,Et,Ft,"P","Ρ"),wt(kt,Et,Ft,"T","Τ"),wt(kt,Et,Ft,"X","Χ"),wt(kt,Et,Ft,"¬","\\neg",!0),wt(kt,Et,Ft,"¬","\\lnot"),wt(kt,Et,Ft,"⊤","\\top"),wt(kt,Et,Ft,"⊥","\\bot"),wt(kt,Et,Ft,"∅","\\emptyset"),wt(kt,St,Ft,"∅","\\varnothing"),wt(kt,Et,Dt,"α","\\alpha",!0),wt(kt,Et,Dt,"β","\\beta",!0),wt(kt,Et,Dt,"γ","\\gamma",!0),wt(kt,Et,Dt,"δ","\\delta",!0),wt(kt,Et,Dt,"ϵ","\\epsilon",!0),wt(kt,Et,Dt,"ζ","\\zeta",!0),wt(kt,Et,Dt,"η","\\eta",!0),wt(kt,Et,Dt,"θ","\\theta",!0),wt(kt,Et,Dt,"ι","\\iota",!0),wt(kt,Et,Dt,"κ","\\kappa",!0),wt(kt,Et,Dt,"λ","\\lambda",!0),wt(kt,Et,Dt,"μ","\\mu",!0),wt(kt,Et,Dt,"ν","\\nu",!0),wt(kt,Et,Dt,"ξ","\\xi",!0),wt(kt,Et,Dt,"ο","\\omicron",!0),wt(kt,Et,Dt,"π","\\pi",!0),wt(kt,Et,Dt,"ρ","\\rho",!0),wt(kt,Et,Dt,"σ","\\sigma",!0),wt(kt,Et,Dt,"τ","\\tau",!0),wt(kt,Et,Dt,"υ","\\upsilon",!0),wt(kt,Et,Dt,"ϕ","\\phi",!0),wt(kt,Et,Dt,"χ","\\chi",!0),wt(kt,Et,Dt,"ψ","\\psi",!0),wt(kt,Et,Dt,"ω","\\omega",!0),wt(kt,Et,Dt,"ε","\\varepsilon",!0),wt(kt,Et,Dt,"ϑ","\\vartheta",!0),wt(kt,Et,Dt,"ϖ","\\varpi",!0),wt(kt,Et,Dt,"ϱ","\\varrho",!0),wt(kt,Et,Dt,"ς","\\varsigma",!0),wt(kt,Et,Dt,"φ","\\varphi",!0),wt(kt,Et,At,"∗","*"),wt(kt,Et,At,"+","+"),wt(kt,Et,At,"−","-"),wt(kt,Et,At,"⋅","\\cdot",!0),wt(kt,Et,At,"∘","\\circ"),wt(kt,Et,At,"÷","\\div",!0),wt(kt,Et,At,"±","\\pm",!0),wt(kt,Et,At,"×","\\times",!0),wt(kt,Et,At,"∩","\\cap",!0),wt(kt,Et,At,"∪","\\cup",!0),wt(kt,Et,At,"∖","\\setminus"),wt(kt,Et,At,"∧","\\land"),wt(kt,Et,At,"∨","\\lor"),wt(kt,Et,At,"∧","\\wedge",!0),wt(kt,Et,At,"∨","\\vee",!0),wt(kt,Et,Ft,"√","\\surd"),wt(kt,Et,Lt,"⟨","\\langle",!0),wt(kt,Et,Lt,"∣","\\lvert"),wt(kt,Et,Lt,"∥","\\lVert"),wt(kt,Et,Mt,"?","?"),wt(kt,Et,Mt,"!","!"),wt(kt,Et,Mt,"⟩","\\rangle",!0),wt(kt,Et,Mt,"∣","\\rvert"),wt(kt,Et,Mt,"∥","\\rVert"),wt(kt,Et,It,"=","="),wt(kt,Et,It,":",":"),wt(kt,Et,It,"≈","\\approx",!0),wt(kt,Et,It,"≅","\\cong",!0),wt(kt,Et,It,"≥","\\ge"),wt(kt,Et,It,"≥","\\geq",!0),wt(kt,Et,It,"←","\\gets"),wt(kt,Et,It,">","\\gt",!0),wt(kt,Et,It,"∈","\\in",!0),wt(kt,Et,It,"","\\@not"),wt(kt,Et,It,"⊂","\\subset",!0),wt(kt,Et,It,"⊃","\\supset",!0),wt(kt,Et,It,"⊆","\\subseteq",!0),wt(kt,Et,It,"⊇","\\supseteq",!0),wt(kt,St,It,"⊈","\\nsubseteq",!0),wt(kt,St,It,"⊉","\\nsupseteq",!0),wt(kt,Et,It,"⊨","\\models"),wt(kt,Et,It,"←","\\leftarrow",!0),wt(kt,Et,It,"≤","\\le"),wt(kt,Et,It,"≤","\\leq",!0),wt(kt,Et,It,"<","\\lt",!0),wt(kt,Et,It,"→","\\rightarrow",!0),wt(kt,Et,It,"→","\\to"),wt(kt,St,It,"≱","\\ngeq",!0),wt(kt,St,It,"≰","\\nleq",!0),wt(kt,Et,Rt," ","\\ "),wt(kt,Et,Rt," ","~"),wt(kt,Et,Rt," ","\\space"),wt(kt,Et,Rt," ","\\nobreakspace"),wt(Ct,Et,Rt," ","\\ "),wt(Ct,Et,Rt," "," "),wt(Ct,Et,Rt," ","~"),wt(Ct,Et,Rt," ","\\space"),wt(Ct,Et,Rt," ","\\nobreakspace"),wt(kt,Et,Rt,null,"\\nobreak"),wt(kt,Et,Rt,null,"\\allowbreak"),wt(kt,Et,Bt,",",","),wt(kt,Et,Bt,";",";"),wt(kt,St,At,"⊼","\\barwedge",!0),wt(kt,St,At,"⊻","\\veebar",!0),wt(kt,Et,At,"⊙","\\odot",!0),wt(kt,Et,At,"⊕","\\oplus",!0),wt(kt,Et,At,"⊗","\\otimes",!0),wt(kt,Et,Ft,"∂","\\partial",!0),wt(kt,Et,At,"⊘","\\oslash",!0),wt(kt,St,At,"⊚","\\circledcirc",!0),wt(kt,St,At,"⊡","\\boxdot",!0),wt(kt,Et,At,"△","\\bigtriangleup"),wt(kt,Et,At,"▽","\\bigtriangledown"),wt(kt,Et,At,"†","\\dagger"),wt(kt,Et,At,"⋄","\\diamond"),wt(kt,Et,At,"⋆","\\star"),wt(kt,Et,At,"◃","\\triangleleft"),wt(kt,Et,At,"▹","\\triangleright"),wt(kt,Et,Lt,"{","\\{"),wt(Ct,Et,Ft,"{","\\{"),wt(Ct,Et,Ft,"{","\\textbraceleft"),wt(kt,Et,Mt,"}","\\}"),wt(Ct,Et,Ft,"}","\\}"),wt(Ct,Et,Ft,"}","\\textbraceright"),wt(kt,Et,Lt,"{","\\lbrace"),wt(kt,Et,Mt,"}","\\rbrace"),wt(kt,Et,Lt,"[","\\lbrack",!0),wt(Ct,Et,Ft,"[","\\lbrack",!0),wt(kt,Et,Mt,"]","\\rbrack",!0),wt(Ct,Et,Ft,"]","\\rbrack",!0),wt(kt,Et,Lt,"(","\\lparen",!0),wt(kt,Et,Mt,")","\\rparen",!0),wt(Ct,Et,Ft,"<","\\textless",!0),wt(Ct,Et,Ft,">","\\textgreater",!0),wt(kt,Et,Lt,"⌊","\\lfloor",!0),wt(kt,Et,Mt,"⌋","\\rfloor",!0),wt(kt,Et,Lt,"⌈","\\lceil",!0),wt(kt,Et,Mt,"⌉","\\rceil",!0),wt(kt,Et,Ft,"\\","\\backslash"),wt(kt,Et,Ft,"∣","|"),wt(kt,Et,Ft,"∣","\\vert"),wt(Ct,Et,Ft,"|","\\textbar",!0),wt(kt,Et,Ft,"∥","\\|"),wt(kt,Et,Ft,"∥","\\Vert"),wt(Ct,Et,Ft,"∥","\\textbardbl"),wt(Ct,Et,Ft,"~","\\textasciitilde"),wt(Ct,Et,Ft,"\\","\\textbackslash"),wt(Ct,Et,Ft,"^","\\textasciicircum"),wt(kt,Et,It,"↑","\\uparrow",!0),wt(kt,Et,It,"⇑","\\Uparrow",!0),wt(kt,Et,It,"↓","\\downarrow",!0),wt(kt,Et,It,"⇓","\\Downarrow",!0),wt(kt,Et,It,"↕","\\updownarrow",!0),wt(kt,Et,It,"⇕","\\Updownarrow",!0),wt(kt,Et,Ot,"∐","\\coprod"),wt(kt,Et,Ot,"⋁","\\bigvee"),wt(kt,Et,Ot,"⋀","\\bigwedge"),wt(kt,Et,Ot,"⨄","\\biguplus"),wt(kt,Et,Ot,"⋂","\\bigcap"),wt(kt,Et,Ot,"⋃","\\bigcup"),wt(kt,Et,Ot,"∫","\\int"),wt(kt,Et,Ot,"∫","\\intop"),wt(kt,Et,Ot,"∬","\\iint"),wt(kt,Et,Ot,"∭","\\iiint"),wt(kt,Et,Ot,"∏","\\prod"),wt(kt,Et,Ot,"∑","\\sum"),wt(kt,Et,Ot,"⨂","\\bigotimes"),wt(kt,Et,Ot,"⨁","\\bigoplus"),wt(kt,Et,Ot,"⨀","\\bigodot"),wt(kt,Et,Ot,"∮","\\oint"),wt(kt,Et,Ot,"⨆","\\bigsqcup"),wt(kt,Et,Ot,"∫","\\smallint"),wt(Ct,Et,Nt,"…","\\textellipsis"),wt(kt,Et,Nt,"…","\\mathellipsis"),wt(Ct,Et,Nt,"…","\\ldots",!0),wt(kt,Et,Nt,"…","\\ldots",!0),wt(kt,Et,Nt,"⋯","\\@cdots",!0),wt(kt,Et,Nt,"⋱","\\ddots",!0),wt(kt,Et,Ft,"⋮","\\varvdots"),wt(kt,Et,Tt,"ˊ","\\acute"),wt(kt,Et,Tt,"ˋ","\\grave"),wt(kt,Et,Tt,"¨","\\ddot"),wt(kt,Et,Tt,"~","\\tilde"),wt(kt,Et,Tt,"ˉ","\\bar"),wt(kt,Et,Tt,"˘","\\breve"),wt(kt,Et,Tt,"ˇ","\\check"),wt(kt,Et,Tt,"^","\\hat"),wt(kt,Et,Tt,"⃗","\\vec"),wt(kt,Et,Tt,"˙","\\dot"),wt(kt,Et,Tt,"˚","\\mathring"),wt(kt,Et,Dt,"","\\@imath"),wt(kt,Et,Dt,"","\\@jmath"),wt(kt,Et,Ft,"ı","ı"),wt(kt,Et,Ft,"ȷ","ȷ"),wt(Ct,Et,Ft,"ı","\\i",!0),wt(Ct,Et,Ft,"ȷ","\\j",!0),wt(Ct,Et,Ft,"ß","\\ss",!0),wt(Ct,Et,Ft,"æ","\\ae",!0),wt(Ct,Et,Ft,"œ","\\oe",!0),wt(Ct,Et,Ft,"ø","\\o",!0),wt(Ct,Et,Ft,"Æ","\\AE",!0),wt(Ct,Et,Ft,"Œ","\\OE",!0),wt(Ct,Et,Ft,"Ø","\\O",!0),wt(Ct,Et,Tt,"ˊ","\\'"),wt(Ct,Et,Tt,"ˋ","\\`"),wt(Ct,Et,Tt,"ˆ","\\^"),wt(Ct,Et,Tt,"˜","\\~"),wt(Ct,Et,Tt,"ˉ","\\="),wt(Ct,Et,Tt,"˘","\\u"),wt(Ct,Et,Tt,"˙","\\."),wt(Ct,Et,Tt,"˚","\\r"),wt(Ct,Et,Tt,"ˇ","\\v"),wt(Ct,Et,Tt,"¨",'\\"'),wt(Ct,Et,Tt,"˝","\\H"),wt(Ct,Et,Tt,"◯","\\textcircled");var Pt={"--":!0,"---":!0,"``":!0,"''":!0};wt(Ct,Et,Ft,"–","--",!0),wt(Ct,Et,Ft,"–","\\textendash"),wt(Ct,Et,Ft,"—","---",!0),wt(Ct,Et,Ft,"—","\\textemdash"),wt(Ct,Et,Ft,"‘","`",!0),wt(Ct,Et,Ft,"‘","\\textquoteleft"),wt(Ct,Et,Ft,"’","'",!0),wt(Ct,Et,Ft,"’","\\textquoteright"),wt(Ct,Et,Ft,"“","``",!0),wt(Ct,Et,Ft,"“","\\textquotedblleft"),wt(Ct,Et,Ft,"”","''",!0),wt(Ct,Et,Ft,"”","\\textquotedblright"),wt(kt,Et,Ft,"°","\\degree",!0),wt(Ct,Et,Ft,"°","\\degree"),wt(Ct,Et,Ft,"°","\\textdegree",!0),wt(kt,Et,Ft,"£","\\pounds"),wt(kt,Et,Ft,"£","\\mathsterling",!0),wt(Ct,Et,Ft,"£","\\pounds"),wt(Ct,Et,Ft,"£","\\textsterling",!0),wt(kt,St,Ft,"✠","\\maltese"),wt(Ct,St,Ft,"✠","\\maltese");for(var zt='0123456789/@."',qt=0;qt<zt.length;qt++){var jt=zt.charAt(qt);wt(kt,Et,Ft,jt,jt)}for(var Ht='0123456789!@*()-=+";:?/.,',Ut=0;Ut<Ht.length;Ut++){var $t=Ht.charAt(Ut);wt(Ct,Et,Ft,$t,$t)}for(var Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Yt=0;Yt<Wt.length;Yt++){var Vt=Wt.charAt(Yt);wt(kt,Et,Dt,Vt,Vt),wt(Ct,Et,Ft,Vt,Vt)}wt(kt,St,Ft,"C","ℂ"),wt(Ct,St,Ft,"C","ℂ"),wt(kt,St,Ft,"H","ℍ"),wt(Ct,St,Ft,"H","ℍ"),wt(kt,St,Ft,"N","ℕ"),wt(Ct,St,Ft,"N","ℕ"),wt(kt,St,Ft,"P","ℙ"),wt(Ct,St,Ft,"P","ℙ"),wt(kt,St,Ft,"Q","ℚ"),wt(Ct,St,Ft,"Q","ℚ"),wt(kt,St,Ft,"R","ℝ"),wt(Ct,St,Ft,"R","ℝ"),wt(kt,St,Ft,"Z","ℤ"),wt(Ct,St,Ft,"Z","ℤ"),wt(kt,Et,Dt,"h","ℎ"),wt(Ct,Et,Dt,"h","ℎ");for(var Gt="",Xt=0;Xt<Wt.length;Xt++){var Zt=Wt.charAt(Xt);Gt=String.fromCharCode(55349,56320+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt),Gt=String.fromCharCode(55349,56372+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt),Gt=String.fromCharCode(55349,56424+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt),Gt=String.fromCharCode(55349,56580+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt),Gt=String.fromCharCode(55349,56736+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt),Gt=String.fromCharCode(55349,56788+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt),Gt=String.fromCharCode(55349,56840+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt),Gt=String.fromCharCode(55349,56944+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt),Xt<26&&(Gt=String.fromCharCode(55349,56632+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt),Gt=String.fromCharCode(55349,56476+Xt),wt(kt,Et,Dt,Zt,Gt),wt(Ct,Et,Ft,Zt,Gt))}Gt=String.fromCharCode(55349,56668),wt(kt,Et,Dt,"k",Gt),wt(Ct,Et,Ft,"k",Gt);for(var Kt=0;Kt<10;Kt++){var Qt=Kt.toString();Gt=String.fromCharCode(55349,57294+Kt),wt(kt,Et,Dt,Qt,Gt),wt(Ct,Et,Ft,Qt,Gt),Gt=String.fromCharCode(55349,57314+Kt),wt(kt,Et,Dt,Qt,Gt),wt(Ct,Et,Ft,Qt,Gt),Gt=String.fromCharCode(55349,57324+Kt),wt(kt,Et,Dt,Qt,Gt),wt(Ct,Et,Ft,Qt,Gt),Gt=String.fromCharCode(55349,57334+Kt),wt(kt,Et,Dt,Qt,Gt),wt(Ct,Et,Ft,Qt,Gt)}for(var Jt="ÇÐÞçþ",te=0;te<Jt.length;te++){var ee=Jt.charAt(te);wt(kt,Et,Dt,ee,ee),wt(Ct,Et,Ft,ee,ee)}var ne=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],re=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],ie=function(t,e){var n=t.charCodeAt(0),r=t.charCodeAt(1),i=1024*(n-55296)+(r-56320)+65536,a="math"===e?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[ne[s][2],ne[s][a]]}if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[re[l][2],re[l][a]]}if(120485===i||120486===i)return[ne[0][2],ne[0][a]];if(120486<i&&i<120782)return["",""];throw new o("Unsupported character: "+t)},ae=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],oe=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],se=function(t,e){return e.size<2?t:ae[t-1][e.size-1]},le=function(){function t(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=oe[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}var e=t.prototype;return e.extend=function(e){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return new t(n)},e.havingStyle=function(t){return this.style===t?this:this.extend({style:t,size:se(this.textSize,t)})},e.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},e.havingSize=function(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:oe[t-1]})},e.havingBaseStyle=function(e){e=e||this.style.text();var n=se(t.BASESIZE,e);return this.size===n&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:n})},e.havingBaseSizing=function(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})},e.withColor=function(t){return this.extend({color:t})},e.withPhantom=function(){return this.extend({phantom:!0})},e.withFont=function(t){return this.extend({font:t})},e.withTextFontFamily=function(t){return this.extend({fontFamily:t,font:""})},e.withTextFontWeight=function(t){return this.extend({fontWeight:t,font:""})},e.withTextFontShape=function(t){return this.extend({fontShape:t,font:""})},e.sizingClasses=function(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]},e.baseSizingClasses=function(){return this.size!==t.BASESIZE?["sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]},e.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=yt(this.size)),this._fontMetrics},e.getColor=function(){return this.phantom?"transparent":this.color},t}();le.BASESIZE=6;var ce=le,ue={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},he={ex:!0,em:!0,mu:!0},fe=function(t){return"string"!==typeof t&&(t=t.unit),t in ue||t in he||"ex"===t},de=function(t,e){var n;if(t.unit in ue)n=ue[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if("mu"===t.unit)n=e.fontMetrics().cssEmPerMu;else{var r;if(r=e.style.isTight()?e.havingStyle(e.style.text()):e,"ex"===t.unit)n=r.fontMetrics().xHeight;else{if("em"!==t.unit)throw new o("Invalid unit: '"+t.unit+"'");n=r.fontMetrics().quad}r!==e&&(n*=r.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*n,e.maxSize)},pe=function(t,e,n){return xt[n][t]&&xt[n][t].replace&&(t=xt[n][t].replace),{value:t,metrics:gt(t,e,n)}},ge=function(t,e,n,r,i){var a,o=pe(t,e,n),s=o.metrics;if(t=o.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),a=new at(t,s.height,s.depth,l,s.skew,s.width,i)}else"undefined"!==typeof console&&console.warn("No character metrics for '"+t+"' in style '"+e+"' and mode '"+n+"'"),a=new at(t,0,0,0,0,0,i);if(r){a.maxFontSize=r.sizeMultiplier,r.style.isTight()&&a.classes.push("mtight");var c=r.getColor();c&&(a.style.color=c)}return a},me=function(t,e,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&pe(t,"Main-Bold",e).metrics?ge(t,"Main-Bold",e,n,r.concat(["mathbf"])):"\\"===t||"main"===xt[e][t].font?ge(t,"Main-Regular",e,n,r):ge(t,"AMS-Regular",e,n,r.concat(["amsrm"]))},ye=function(t,e,n,r,i){return"textord"!==i&&pe(t,"Math-BoldItalic",e).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},ve=function(t,e,n){var r=t.mode,i=t.text,a=["mord"],o="math"===r||"text"===r&&e.font,s=o?e.font:e.fontFamily;if(55349===i.charCodeAt(0)){var l=ie(i,r),c=l[0],u=l[1];return ge(i,c,r,e,a.concat(u))}if(s){var h,f;if("boldsymbol"===s){var d=ye(i,r,e,a,n);h=d.fontName,f=[d.fontClass]}else o?(h=Oe[s].fontName,f=[s]):(h=De(s,e.fontWeight,e.fontShape),f=[s,e.fontWeight,e.fontShape]);if(pe(i,h,r).metrics)return ge(i,h,r,e,a.concat(f));if(Pt.hasOwnProperty(i)&&"Typewriter"===h.substr(0,10)){for(var p=[],g=0;g<i.length;g++)p.push(ge(i[g],h,r,e,a.concat(f)));return Se(p)}}if("mathord"===n)return ge(i,"Math-Italic",r,e,a.concat(["mathnormal"]));if("textord"===n){var m=xt[r][i]&&xt[r][i].font;if("ams"===m){var y=De("amsrm",e.fontWeight,e.fontShape);return ge(i,y,r,e,a.concat("amsrm",e.fontWeight,e.fontShape))}if("main"!==m&&m){var v=De(m,e.fontWeight,e.fontShape);return ge(i,v,r,e,a.concat(v,e.fontWeight,e.fontShape))}var b=De("textrm",e.fontWeight,e.fontShape);return ge(i,b,r,e,a.concat(e.fontWeight,e.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},be=function(t,e){if(K(t.classes)!==K(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;for(var n in t.style)if(t.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;for(var r in e.style)if(e.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;return!0},_e=function(t){for(var e=0;e<t.length-1;e++){var n=t[e],r=t[e+1];n instanceof at&&r instanceof at&&be(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,t.splice(e+1,1),e--)}return t},xe=function(t){for(var e=0,n=0,r=0,i=0;i<t.children.length;i++){var a=t.children[i];a.height>e&&(e=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}t.height=e,t.depth=n,t.maxFontSize=r},we=function(t,e,n,r){var i=new et(t,e,n,r);return xe(i),i},ke=function(t,e,n,r){return new et(t,e,n,r)},Ce=function(t,e,n){var r=we([t],[],e);return r.height=Math.max(n||e.fontMetrics().defaultRuleThickness,e.minRuleThickness),r.style.borderBottomWidth=r.height+"em",r.maxFontSize=1,r},Ee=function(t,e,n,r){var i=new nt(t,e,n,r);return xe(i),i},Se=function(t){var e=new Z(t);return xe(e),e},Te=function(t,e){return t instanceof Z?we([],[t],e):t},Ae=function(t){if("individualShift"===t.positionType){for(var e=t.children,n=[e[0]],r=-e[0].shift-e[0].elem.depth,i=r,a=1;a<e.length;a++){var o=-e[a].shift-i-e[a].elem.depth,s=o-(e[a-1].elem.height+e[a-1].elem.depth);i+=o,n.push({type:"kern",size:s}),n.push(e[a])}return{children:n,depth:r}}var l;if("top"===t.positionType){for(var c=t.positionData,u=0;u<t.children.length;u++){var h=t.children[u];c-="kern"===h.type?h.size:h.elem.height+h.elem.depth}l=c}else if("bottom"===t.positionType)l=-t.positionData;else{var f=t.children[0];if("elem"!==f.type)throw new Error('First child must have type "elem".');if("shift"===t.positionType)l=-f.elem.depth-t.positionData;else{if("firstBaseline"!==t.positionType)throw new Error("Invalid positionType "+t.positionType+".");l=-f.elem.depth}}return{children:t.children,depth:l}},Me=function(t,e){for(var n=Ae(t),r=n.children,i=n.depth,a=0,o=0;o<r.length;o++){var s=r[o];if("elem"===s.type){var l=s.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var c=we(["pstrut"],[]);c.style.height=a+"em";for(var u=[],h=i,f=i,d=i,p=0;p<r.length;p++){var g=r[p];if("kern"===g.type)d+=g.size;else{var m=g.elem,y=g.wrapperClasses||[],v=g.wrapperStyle||{},b=we(y,[c,m],void 0,v);b.style.top=-a-d-m.depth+"em",g.marginLeft&&(b.style.marginLeft=g.marginLeft),g.marginRight&&(b.style.marginRight=g.marginRight),u.push(b),d+=m.height+m.depth}h=Math.min(h,d),f=Math.max(f,d)}var _,x=we(["vlist"],u);if(x.style.height=f+"em",h<0){var w=we([],[]),k=we(["vlist"],[w]);k.style.height=-h+"em";var C=we(["vlist-s"],[new at("")]);_=[we(["vlist-r"],[x,C]),we(["vlist-r"],[k])]}else _=[we(["vlist-r"],[x])];var E=we(["vlist-t"],_);return 2===_.length&&E.classes.push("vlist-t2"),E.height=f,E.depth=-h,E},Ne=function(t,e){var n=we(["mspace"],[],e),r=de(t,e);return n.style.marginRight=r+"em",n},De=function(t,e,n){var r,i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}return r="textbf"===e&&"textit"===n?"BoldItalic":"textbf"===e?"Bold":"textit"===e?"Italic":"Regular",i+"-"+r},Oe={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Le={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659],leftParenInner:["leftParenInner",.875,.3],rightParenInner:["rightParenInner",.875,.3]},Be=function(t,e){var n=Le[t],r=n[0],i=n[1],a=n[2],o=new st(r),s=new ot([o],{width:i+"em",height:a+"em",style:"width:"+i+"em",viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=ke(["overlay"],[s],e);return l.height=a,l.style.height=a+"em",l.style.width=i+"em",l},Ie={fontMap:Oe,makeSymbol:ge,mathsym:me,makeSpan:we,makeSvgSpan:ke,makeLineSpan:Ce,makeAnchor:Ee,makeFragment:Se,wrapFragment:Te,makeVList:Me,makeOrd:ve,makeGlue:Ne,staticSvg:Be,svgData:Le,tryCombineChars:_e},Re={number:3,unit:"mu"},Fe={number:4,unit:"mu"},Pe={number:5,unit:"mu"},ze={mord:{mop:Re,mbin:Fe,mrel:Pe,minner:Re},mop:{mord:Re,mop:Re,mrel:Pe,minner:Re},mbin:{mord:Fe,mop:Fe,mopen:Fe,minner:Fe},mrel:{mord:Pe,mop:Pe,mopen:Pe,minner:Pe},mopen:{},mclose:{mop:Re,mbin:Fe,mrel:Pe,minner:Re},mpunct:{mord:Re,mop:Re,mrel:Pe,mopen:Re,mclose:Re,mpunct:Re,minner:Re},minner:{mord:Re,mop:Re,mbin:Fe,mrel:Pe,mopen:Re,mpunct:Re,minner:Re}},qe={mord:{mop:Re},mop:{mord:Re,mop:Re},mbin:{},mrel:{},mopen:{},mclose:{mop:Re},mpunct:{},minner:{mop:Re}},je={},He={},Ue={};function $e(t){for(var e=t.type,n=t.names,r=t.props,i=t.handler,a=t.htmlBuilder,o=t.mathmlBuilder,s={type:e,numArgs:r.numArgs,argTypes:r.argTypes,greediness:void 0===r.greediness?1:r.greediness,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,handler:i},l=0;l<n.length;++l)je[n[l]]=s;e&&(a&&(He[e]=a),o&&(Ue[e]=o))}function We(t){var e=t.type,n=t.htmlBuilder,r=t.mathmlBuilder;$e({type:e,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Ye=function(t){return"ordgroup"===t.type?t.body:[t]},Ve=Ie.makeSpan,Ge=["leftmost","mbin","mopen","mrel","mop","mpunct"],Xe=["rightmost","mrel","mclose","mpunct"],Ze={display:R.DISPLAY,text:R.TEXT,script:R.SCRIPT,scriptscript:R.SCRIPTSCRIPT},Ke={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Qe=function(t,e,n,r){void 0===r&&(r=[null,null]);for(var i=[],a=0;a<t.length;a++){var o=an(t[a],e);if(o instanceof Z){var s=o.children;i.push.apply(i,s)}else i.push(o)}if(!n)return i;var l=e;if(1===t.length){var c=t[0];"sizing"===c.type?l=e.havingSize(c.size):"styling"===c.type&&(l=e.havingStyle(Ze[c.style]))}var u=Ve([r[0]||"leftmost"],[],e),h=Ve([r[1]||"rightmost"],[],e),f="root"===n;return Je(i,(function(t,e){var n=e.classes[0],r=t.classes[0];"mbin"===n&&v.contains(Xe,r)?e.classes[0]="mord":"mbin"===r&&v.contains(Ge,n)&&(t.classes[0]="mord")}),{node:u},h,f),Je(i,(function(t,e){var n=nn(e),r=nn(t),i=n&&r?t.hasClass("mtight")?qe[n][r]:ze[n][r]:null;if(i)return Ie.makeGlue(i,l)}),{node:u},h,f),i},Je=function t(e,n,r,i,a){i&&e.push(i);for(var o=0;o<e.length;o++){var s=e[o],l=tn(s);if(l)t(l.children,n,r,null,a);else{var c=!s.hasClass("mspace");if(c){var u=n(s,r.node);u&&(r.insertAfter?r.insertAfter(u):(e.unshift(u),o++))}c?r.node=s:a&&s.hasClass("newline")&&(r.node=Ve(["leftmost"])),r.insertAfter=function(t){return function(n){e.splice(t+1,0,n),o++}}(o)}}i&&e.pop()},tn=function(t){return t instanceof Z||t instanceof nt||t instanceof et&&t.hasClass("enclosing")?t:null},en=function t(e,n){var r=tn(e);if(r){var i=r.children;if(i.length){if("right"===n)return t(i[i.length-1],"right");if("left"===n)return t(i[0],"left")}}return e},nn=function(t,e){return t?(e&&(t=en(t,e)),Ke[t.classes[0]]||null):null},rn=function(t,e){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Ve(e.concat(n))},an=function(t,e,n){if(!t)return Ve();if(He[t.type]){var r=He[t.type](t,e);if(n&&e.size!==n.size){r=Ve(e.sizingClasses(n),[r],e);var i=e.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new o("Got group of unknown type: '"+t.type+"'")};function on(t,e){var n=Ve(["base"],t,e),r=Ve(["strut"]);return r.style.height=n.height+n.depth+"em",r.style.verticalAlign=-n.depth+"em",n.children.unshift(r),n}function sn(t,e){var n=null;1===t.length&&"tag"===t[0].type&&(n=t[0].tag,t=t[0].body);for(var r,i=Qe(t,e,"root"),a=[],o=[],s=0;s<i.length;s++)if(o.push(i[s]),i[s].hasClass("mbin")||i[s].hasClass("mrel")||i[s].hasClass("allowbreak")){var l=!1;while(s<i.length-1&&i[s+1].hasClass("mspace")&&!i[s+1].hasClass("newline"))s++,o.push(i[s]),i[s].hasClass("nobreak")&&(l=!0);l||(a.push(on(o,e)),o=[])}else i[s].hasClass("newline")&&(o.pop(),o.length>0&&(a.push(on(o,e)),o=[]),a.push(i[s]));o.length>0&&a.push(on(o,e)),n&&(r=on(Qe(n,e,!0)),r.classes=["tag"],a.push(r));var c=Ve(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),r){var u=r.children[0];u.style.height=c.height+c.depth+"em",u.style.verticalAlign=-c.depth+"em"}return c}function ln(t){return new Z(t)}var cn=function(){function t(t,e){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=t,this.attributes={},this.children=e||[]}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.getAttribute=function(t){return this.attributes[t]},e.toNode=function(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t},e.toMarkup=function(){var t="<"+this.type;for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+'="',t+=v.escape(this.attributes[e]),t+='"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t},e.toText=function(){return this.children.map((function(t){return t.toText()})).join("")},t}(),un=function(){function t(t){this.text=void 0,this.text=t}var e=t.prototype;return e.toNode=function(){return document.createTextNode(this.text)},e.toMarkup=function(){return v.escape(this.toText())},e.toText=function(){return this.text},t}(),hn=function(){function t(t){this.width=void 0,this.character=void 0,this.width=t,this.character=t>=.05555&&t<=.05556?" ":t>=.1666&&t<=.1667?" ":t>=.2222&&t<=.2223?" ":t>=.2777&&t<=.2778?" ":t>=-.05556&&t<=-.05555?" ":t>=-.1667&&t<=-.1666?" ":t>=-.2223&&t<=-.2222?" ":t>=-.2778&&t<=-.2777?" ":null}var e=t.prototype;return e.toNode=function(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",this.width+"em"),t},e.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},e.toText=function(){return this.character?this.character:" "},t}(),fn={MathNode:cn,TextNode:un,SpaceNode:hn,newDocumentFragment:ln},dn=function(t,e,n){return!xt[e][t]||!xt[e][t].replace||55349===t.charCodeAt(0)||Pt.hasOwnProperty(t)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(t=xt[e][t].replace),new fn.TextNode(t)},pn=function(t){return 1===t.length?t[0]:new fn.MathNode("mrow",t)},gn=function(t,e){if("texttt"===e.fontFamily)return"monospace";if("textsf"===e.fontFamily)return"textit"===e.fontShape&&"textbf"===e.fontWeight?"sans-serif-bold-italic":"textit"===e.fontShape?"sans-serif-italic":"textbf"===e.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===e.fontShape&&"textbf"===e.fontWeight)return"bold-italic";if("textit"===e.fontShape)return"italic";if("textbf"===e.fontWeight)return"bold";var n=e.font;if(!n||"mathnormal"===n)return null;var r=t.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===t.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var i=t.text;if(v.contains(["\\imath","\\jmath"],i))return null;xt[r][i]&&xt[r][i].replace&&(i=xt[r][i].replace);var a=Ie.fontMap[n].fontName;return gt(i,a,r)?Ie.fontMap[n].variant:null},mn=function(t,e,n){if(1===t.length){var r=vn(t[0],e);return n&&r instanceof cn&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i,a=[],o=0;o<t.length;o++){var s=vn(t[o],e);if(s instanceof cn&&i instanceof cn){if("mtext"===s.type&&"mtext"===i.type&&s.getAttribute("mathvariant")===i.getAttribute("mathvariant")){var l;(l=i.children).push.apply(l,s.children);continue}if("mn"===s.type&&"mn"===i.type){var c;(c=i.children).push.apply(c,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===i.type){var u=s.children[0];if(u instanceof un&&"."===u.text){var h;(h=i.children).push.apply(h,s.children);continue}}else if("mi"===i.type&&1===i.children.length){var f=i.children[0];if(f instanceof un&&"̸"===f.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var d=s.children[0];d instanceof un&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(s),i=s}return a},yn=function(t,e,n){return pn(mn(t,e,n))},vn=function(t,e){if(!t)return new fn.MathNode("mrow");if(Ue[t.type]){var n=Ue[t.type](t,e);return n}throw new o("Got group of unknown type: '"+t.type+"'")};function bn(t,e,n,r,i){var a,o=mn(t,n);a=1===o.length&&o[0]instanceof cn&&v.contains(["mrow","mtable"],o[0].type)?o[0]:new fn.MathNode("mrow",o);var s=new fn.MathNode("annotation",[new fn.TextNode(e)]);s.setAttribute("encoding","application/x-tex");var l=new fn.MathNode("semantics",[a,s]),c=new fn.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return Ie.makeSpan([u],[c])}var _n=function(t){return new ce({style:t.displayMode?R.DISPLAY:R.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},xn=function(t,e){if(e.displayMode){var n=["katex-display"];e.leqno&&n.push("leqno"),e.fleqn&&n.push("fleqn"),t=Ie.makeSpan(n,[t])}return t},wn=function(t,e,n){var r,i=_n(n);if("mathml"===n.output)return bn(t,e,i,n.displayMode,!0);if("html"===n.output){var a=sn(t,i);r=Ie.makeSpan(["katex"],[a])}else{var o=bn(t,e,i,n.displayMode,!1),s=sn(t,i);r=Ie.makeSpan(["katex"],[o,s])}return xn(r,n)},kn=function(t,e,n){var r=_n(n),i=sn(t,r),a=Ie.makeSpan(["katex"],[i]);return xn(a,n)},Cn={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},En=function(t){var e=new fn.MathNode("mo",[new fn.TextNode(Cn[t.substr(1)])]);return e.setAttribute("stretchy","true"),e},Sn={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Tn=function(t){return"ordgroup"===t.type?t.body.length:1},An=function(t,e){function n(){var n=4e5,r=t.label.substr(1);if(v.contains(["widehat","widecheck","widetilde","utilde"],r)){var i,a,o,s=t,l=Tn(s.base);if(l>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,o=.42,a=r+"4"):(i=312,n=2340,o=.34,a="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][c],i=[0,239,300,360,420][c],o=[0,.24,.3,.3,.36,.42][c],a=r+c):(n=[0,600,1033,2339,2340][c],i=[0,260,286,306,312][c],o=[0,.26,.286,.3,.306,.34][c],a="tilde"+c)}var u=new st(a),h=new ot([u],{width:"100%",height:o+"em",viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:Ie.makeSvgSpan([],[h],e),minWidth:0,height:o}}var f,d,p=[],g=Sn[r],m=g[0],y=g[1],b=g[2],_=b/1e3,x=m.length;if(1===x){var w=g[3];f=["hide-tail"],d=[w]}else if(2===x)f=["halfarrow-left","halfarrow-right"],d=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");f=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var k=0;k<x;k++){var C=new st(m[k]),E=new ot([C],{width:"400em",height:_+"em",viewBox:"0 0 "+n+" "+b,preserveAspectRatio:d[k]+" slice"}),S=Ie.makeSvgSpan([f[k]],[E],e);if(1===x)return{span:S,minWidth:y,height:_};S.style.height=_+"em",p.push(S)}return{span:Ie.makeSpan(["stretchy"],p,e),minWidth:y,height:_}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=o+"em",a>0&&(i.style.minWidth=a+"em"),i},Mn=function(t,e,n,r){var i,a=t.height+t.depth+2*n;if(/fbox|color/.test(e)){if(i=Ie.makeSpan(["stretchy",e],[],r),"fbox"===e){var o=r.color&&r.getColor();o&&(i.style.borderColor=o)}}else{var s=[];/^[bx]cancel$/.test(e)&&s.push(new lt({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&s.push(new lt({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new ot(s,{width:"100%",height:a+"em"});i=Ie.makeSvgSpan([],[l],r)}return i.height=a,i.style.height=a+"em",i},Nn={encloseSpan:Mn,mathMLnode:En,svgSpan:An};function Dn(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function On(t){var e=Ln(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Ln(t){return t&&("atom"===t.type||bt.hasOwnProperty(t.type))?t:null}var Bn=function(t,e){var n,r,i;t&&"supsub"===t.type?(r=Dn(t.base,"accent"),n=r.base,t.base=n,i=ut(an(t,e)),t.base=r):(r=Dn(t,"accent"),n=r.base);var a=an(n,e.havingCrampedStyle()),o=r.isShifty&&v.isCharacterBox(n),s=0;if(o){var l=v.getBaseElem(n),c=an(l,e.havingCrampedStyle());s=ct(c).skew}var u,h=Math.min(a.height,e.fontMetrics().xHeight);if(r.isStretchy)u=Nn.svgSpan(r,e),u=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+2*s+"em)",marginLeft:2*s+"em"}:void 0}]},e);else{var f,d;"\\vec"===r.label?(f=Ie.staticSvg("vec",e),d=Ie.svgData.vec[1]):(f=Ie.makeOrd({mode:r.mode,text:r.label},e,"textord"),f=ct(f),f.italic=0,d=f.width),u=Ie.makeSpan(["accent-body"],[f]);var p="\\textcircled"===r.label;p&&(u.classes.push("accent-full"),h=a.height);var g=s;p||(g-=d/2),u.style.left=g+"em","\\textcircled"===r.label&&(u.style.top=".2em"),u=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:u}]},e)}var m=Ie.makeSpan(["mord","accent"],[u],e);return i?(i.children[0]=m,i.height=Math.max(m.height,i.height),i.classes[0]="mord",i):m},In=function(t,e){var n=t.isStretchy?Nn.mathMLnode(t.label):new fn.MathNode("mo",[dn(t.label,t.mode)]),r=new fn.MathNode("mover",[vn(t.base,e),n]);return r.setAttribute("accent","true"),r},Rn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(t){return"\\"+t})).join("|"));$e({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(t,e){var n=e[0],r=!Rn.test(t.funcName),i=!r||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Bn,mathmlBuilder:In}),$e({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(t,e){var n=e[0];return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Bn,mathmlBuilder:In}),$e({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,e){var n=t.parser,r=t.funcName,i=e[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:function(t,e){var n=an(t.base,e),r=Nn.svgSpan(t,e),i="\\utilde"===t.label?.12:0,a=Ie.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},e);return Ie.makeSpan(["mord","accentunder"],[a],e)},mathmlBuilder:function(t,e){var n=Nn.mathMLnode(t.label),r=new fn.MathNode("munder",[vn(t.base,e),n]);return r.setAttribute("accentunder","true"),r}});var Fn=function(t){var e=new fn.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};$e({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(t,e,n){var r=t.parser,i=t.funcName;return{type:"xArrow",mode:r.mode,label:i,body:e[0],below:n[0]}},htmlBuilder:function(t,e){var n,r=e.style,i=e.havingStyle(r.sup()),a=Ie.wrapFragment(an(t.body,i,e),e);a.classes.push("x-arrow-pad"),t.below&&(i=e.havingStyle(r.sub()),n=Ie.wrapFragment(an(t.below,i,e),e),n.classes.push("x-arrow-pad"));var o,s=Nn.svgSpan(t,e),l=-e.fontMetrics().axisHeight+.5*s.height,c=-e.fontMetrics().axisHeight-.5*s.height-.111;if((a.depth>.25||"\\xleftequilibrium"===t.label)&&(c-=a.depth),n){var u=-e.fontMetrics().axisHeight+n.height+.5*s.height+.111;o=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:n,shift:u}]},e)}else o=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:c},{type:"elem",elem:s,shift:l}]},e);return o.children[0].children[0].children[1].classes.push("svg-align"),Ie.makeSpan(["mrel","x-arrow"],[o],e)},mathmlBuilder:function(t,e){var n,r=Nn.mathMLnode(t.label);if(t.body){var i=Fn(vn(t.body,e));if(t.below){var a=Fn(vn(t.below,e));n=new fn.MathNode("munderover",[r,a,i])}else n=new fn.MathNode("mover",[r,i])}else if(t.below){var o=Fn(vn(t.below,e));n=new fn.MathNode("munder",[r,o])}else n=Fn(),n=new fn.MathNode("mover",[r,n]);return n}}),$e({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){for(var n=t.parser,r=Dn(e[0],"ordgroup"),i=r.body,a="",s=0;s<i.length;s++){var l=Dn(i[s],"textord");a+=l.text}var c=parseInt(a);if(isNaN(c))throw new o("\\@char has non-numeric argument "+a);return{type:"textord",mode:n.mode,text:String.fromCharCode(c)}}});var Pn=function(t,e){var n=Qe(t.body,e.withColor(t.color),!1);return Ie.makeFragment(n)},zn=function(t,e){var n=mn(t.body,e.withColor(t.color)),r=new fn.MathNode("mstyle",n);return r.setAttribute("mathcolor",t.color),r};$e({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(t,e){var n=t.parser,r=Dn(e[0],"color-token").color,i=e[1];return{type:"color",mode:n.mode,color:r,body:Ye(i)}},htmlBuilder:Pn,mathmlBuilder:zn}),$e({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(t,e){var n=t.parser,r=t.breakOnTokenText,i=Dn(e[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:Pn,mathmlBuilder:zn}),$e({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(t,e,n){var r=t.parser,i=t.funcName,a=n[0],o="\\cr"===i,s=!1;return o||(s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")),{type:"cr",mode:r.mode,newLine:s,newRow:o,size:a&&Dn(a,"size").value}},htmlBuilder:function(t,e){if(t.newRow)throw new o("\\cr valid only within a tabular/array environment");var n=Ie.makeSpan(["mspace"],[],e);return t.newLine&&(n.classes.push("newline"),t.size&&(n.style.marginTop=de(t.size,e)+"em")),n},mathmlBuilder:function(t,e){var n=new fn.MathNode("mspace");return t.newLine&&(n.setAttribute("linebreak","newline"),t.size&&n.setAttribute("height",de(t.size,e)+"em")),n}});var qn={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},jn=function(t){var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new o("Expected a control sequence",t);return e},Hn=function(t){var e=t.gullet.popToken();return"="===e.text&&(e=t.gullet.popToken()," "===e.text&&(e=t.gullet.popToken())),e},Un=function(t,e,n,r){var i=t.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!t.gullet.isExpandable(n.text)}),t.gullet.macros.set(e,i,r)};$e({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(t){var e=t.parser,n=t.funcName;e.consumeSpaces();var r=e.fetch();if(qn[r.text])return"\\global"!==n&&"\\\\globallong"!==n||(r.text=qn[r.text]),Dn(e.parseFunction(),"internal");throw new o("Invalid token after macro prefix",r)}}),$e({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0},handler:function(t){var e=t.parser,n=t.funcName,r=e.gullet.consumeArgs(1)[0];if(1!==r.length)throw new o("\\gdef's first argument must be a macro name");var i=r[0].text,a=0;r=e.gullet.consumeArgs(1)[0];while(1===r.length&&"#"===r[0].text){if(r=e.gullet.consumeArgs(1)[0],1!==r.length)throw new o('Invalid argument number length "'+r.length+'"');if(!/^[1-9]$/.test(r[0].text))throw new o('Invalid argument number "'+r[0].text+'"');if(a++,parseInt(r[0].text)!==a)throw new o('Argument number "'+r[0].text+'" out of order');r=e.gullet.consumeArgs(1)[0]}return"\\edef"!==n&&"\\xdef"!==n||(r=e.gullet.expandTokens(r),r.reverse()),e.gullet.macros.set(i,{tokens:r,numArgs:a},n===qn[n]),{type:"internal",mode:e.mode}}}),$e({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0},handler:function(t){var e=t.parser,n=t.funcName,r=jn(e.gullet.popToken());e.gullet.consumeSpaces();var i=Hn(e);return Un(e,r,i,"\\\\globallet"===n),{type:"internal",mode:e.mode}}}),$e({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0},handler:function(t){var e=t.parser,n=t.funcName,r=jn(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return Un(e,r,a,"\\\\globalfuture"===n),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var $n=function(t,e,n){var r=xt.math[t]&&xt.math[t].replace,i=gt(r||t,e,n);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+e+".");return i},Wn=function(t,e,n,r){var i=n.havingBaseStyle(e),a=Ie.makeSpan(r.concat(i.sizingClasses(n)),[t],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Yn=function(t,e,n){var r=e.havingBaseStyle(n),i=(1-e.sizeMultiplier/r.sizeMultiplier)*e.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=i+"em",t.height-=i,t.depth+=i},Vn=function(t,e,n,r,i,a){var o=Ie.makeSymbol(t,"Main-Regular",i,r),s=Wn(o,e,r,a);return n&&Yn(s,r,e),s},Gn=function(t,e,n,r){return Ie.makeSymbol(t,"Size"+e+"-Regular",n,r)},Xn=function(t,e,n,r,i,a){var o=Gn(t,e,i,r),s=Wn(Ie.makeSpan(["delimsizing","size"+e],[o],r),R.TEXT,r,a);return n&&Yn(s,r,R.TEXT),s},Zn=function(t,e,n){var r;r="Size1-Regular"===e?"delim-size1":"delim-size4";var i=Ie.makeSpan(["delimsizinginner",r],[Ie.makeSpan([],[Ie.makeSymbol(t,e,n)])]);return{type:"elem",elem:i}},Kn={type:"kern",size:-.005},Qn=function(t,e,n,r,i,a){var o,s,l,c;o=l=c=t,s=null;var u="Size1-Regular";"\\uparrow"===t?l=c="⏐":"\\Uparrow"===t?l=c="‖":"\\downarrow"===t?o=l="⏐":"\\Downarrow"===t?o=l="‖":"\\updownarrow"===t?(o="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===t?(o="\\Uparrow",l="‖",c="\\Downarrow"):"["===t||"\\lbrack"===t?(o="⎡",l="⎢",c="⎣",u="Size4-Regular"):"]"===t||"\\rbrack"===t?(o="⎤",l="⎥",c="⎦",u="Size4-Regular"):"\\lfloor"===t||"⌊"===t?(l=o="⎢",c="⎣",u="Size4-Regular"):"\\lceil"===t||"⌈"===t?(o="⎡",l=c="⎢",u="Size4-Regular"):"\\rfloor"===t||"⌋"===t?(l=o="⎥",c="⎦",u="Size4-Regular"):"\\rceil"===t||"⌉"===t?(o="⎤",l=c="⎥",u="Size4-Regular"):"("===t||"\\lparen"===t?(o="⎛",l="⎜",c="⎝",u="Size4-Regular"):")"===t||"\\rparen"===t?(o="⎞",l="⎟",c="⎠",u="Size4-Regular"):"\\{"===t||"\\lbrace"===t?(o="⎧",s="⎨",c="⎩",l="⎪",u="Size4-Regular"):"\\}"===t||"\\rbrace"===t?(o="⎫",s="⎬",c="⎭",l="⎪",u="Size4-Regular"):"\\lgroup"===t||"⟮"===t?(o="⎧",c="⎩",l="⎪",u="Size4-Regular"):"\\rgroup"===t||"⟯"===t?(o="⎫",c="⎭",l="⎪",u="Size4-Regular"):"\\lmoustache"===t||"⎰"===t?(o="⎧",c="⎭",l="⎪",u="Size4-Regular"):"\\rmoustache"!==t&&"⎱"!==t||(o="⎫",c="⎩",l="⎪",u="Size4-Regular");var h=$n(o,u,i),f=h.height+h.depth,d=$n(l,u,i),p=d.height+d.depth,g=$n(c,u,i),m=g.height+g.depth,y=0,v=1;if(null!==s){var b=$n(s,u,i);y=b.height+b.depth,v=2}var _=f+m+y,x=Math.max(0,Math.ceil((e-_)/(v*p))),w=_+x*v*p,k=r.fontMetrics().axisHeight;n&&(k*=r.sizeMultiplier);var C=w/2-k,E=.005*(x+1)-p,S=[];if(S.push(Zn(c,u,i)),null===s)for(var T=0;T<x;T++)S.push(Kn),S.push(Zn(l,u,i));else{for(var A=0;A<x;A++)S.push(Kn),S.push(Zn(l,u,i));S.push({type:"kern",size:E}),S.push(Zn(l,u,i)),S.push(Kn),S.push(Zn(s,u,i));for(var M=0;M<x;M++)S.push(Kn),S.push(Zn(l,u,i))}if("⎜"!==l&&"⎟"!==l||0!==x)S.push({type:"kern",size:E}),S.push(Zn(l,u,i)),S.push(Kn);else{var N=Ie.svgData.leftParenInner[2]/2;S.push({type:"kern",size:-N});var D="⎜"===l?"leftParenInner":"rightParenInner",O=Ie.staticSvg(D,r);S.push({type:"elem",elem:O}),S.push({type:"kern",size:-N})}S.push(Zn(o,u,i));var L=r.havingBaseStyle(R.TEXT),B=Ie.makeVList({positionType:"bottom",positionData:C,children:S},L);return Wn(Ie.makeSpan(["delimsizing","mult"],[B],L),R.TEXT,r,a)},Jn=80,tr=.08,er=function(t,e,n,r,i){var a=G(t,r,n),o=new st(t,a),s=new ot([o],{width:"400em",height:e+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Ie.makeSvgSpan(["hide-tail"],[s],i)},nr=function(t,e){var n,r,i=e.havingBaseSizing(),a=fr("\\surd",t*i.sizeMultiplier,ur,i),o=i.sizeMultiplier,s=Math.max(0,e.minRuleThickness-e.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===a.type?(u=1e3+1e3*s+Jn,t<1?o=1:t<1.4&&(o=.7),l=(1+s+tr)/o,c=(1+s)/o,n=er("sqrtMain",l,u,s,e),n.style.minWidth="0.853em",r=.833/o):"large"===a.type?(u=(1e3+Jn)*or[a.size],c=(or[a.size]+s)/o,l=(or[a.size]+s+tr)/o,n=er("sqrtSize"+a.size,l,u,s,e),n.style.minWidth="1.02em",r=1/o):(l=t+s+tr,c=t+s,u=Math.floor(1e3*t+s)+Jn,n=er("sqrtTall",l,u,s,e),n.style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=l+"em",{span:n,advanceWidth:r,ruleWidth:(e.fontMetrics().sqrtRuleThickness+s)*o}},rr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],ir=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],ar=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],or=[0,1.2,1.8,2.4,3],sr=function(t,e,n,r,i){if("<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle"),v.contains(rr,t)||v.contains(ar,t))return Xn(t,e,!1,n,r,i);if(v.contains(ir,t))return Qn(t,or[e],!1,n,r,i);throw new o("Illegal delimiter: '"+t+"'")},lr=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],cr=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"stack"}],ur=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],hr=function(t){if("small"===t.type)return"Main-Regular";if("large"===t.type)return"Size"+t.size+"-Regular";if("stack"===t.type)return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},fr=function(t,e,n,r){for(var i=Math.min(2,3-r.style.size),a=i;a<n.length;a++){if("stack"===n[a].type)break;var o=$n(t,hr(n[a]),"math"),s=o.height+o.depth;if("small"===n[a].type){var l=r.havingBaseStyle(n[a].style);s*=l.sizeMultiplier}if(s>e)return n[a]}return n[n.length-1]},dr=function(t,e,n,r,i,a){var o;"<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle"),o=v.contains(ar,t)?lr:v.contains(rr,t)?ur:cr;var s=fr(t,e,o,r);return"small"===s.type?Vn(t,s.style,n,r,i,a):"large"===s.type?Xn(t,s.size,n,r,i,a):Qn(t,e,n,r,i,a)},pr=function(t,e,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,c=Math.max(e-o,n+o),u=Math.max(c/500*s,2*c-l);return dr(t,u,!0,r,i,a)},gr={sqrtImage:nr,sizedDelim:sr,customSizedDelim:dr,leftRightDelim:pr},mr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},yr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function vr(t,e){var n=Ln(t);if(n&&v.contains(yr,n.text))return n;throw new o(n?"Invalid delimiter '"+n.text+"' after '"+e.funcName+"'":"Invalid delimiter type '"+t.type+"'",t)}function br(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}$e({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(t,e){var n=vr(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:mr[t.funcName].size,mclass:mr[t.funcName].mclass,delim:n.text}},htmlBuilder:function(t,e){return"."===t.delim?Ie.makeSpan([t.mclass]):gr.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass])},mathmlBuilder:function(t){var e=[];"."!==t.delim&&e.push(dn(t.delim,t.mode));var n=new fn.MathNode("mo",e);return"mopen"===t.mclass||"mclose"===t.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),$e({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(t,e){var n=t.parser.gullet.macros.get("\\current@color");if(n&&"string"!==typeof n)throw new o("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:vr(e[0],t).text,color:n}}}),$e({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(t,e){var n=vr(e[0],t),r=t.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=Dn(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:function(t,e){br(t);for(var n,r,i=Qe(t.body,e,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;l<i.length;l++)i[l].isMiddle?s=!0:(a=Math.max(i[l].height,a),o=Math.max(i[l].depth,o));if(a*=e.sizeMultiplier,o*=e.sizeMultiplier,n="."===t.left?rn(e,["mopen"]):gr.leftRightDelim(t.left,a,o,e,t.mode,["mopen"]),i.unshift(n),s)for(var c=1;c<i.length;c++){var u=i[c],h=u.isMiddle;h&&(i[c]=gr.leftRightDelim(h.delim,a,o,h.options,t.mode,[]))}if("."===t.right)r=rn(e,["mclose"]);else{var f=t.rightColor?e.withColor(t.rightColor):e;r=gr.leftRightDelim(t.right,a,o,f,t.mode,["mclose"])}return i.push(r),Ie.makeSpan(["minner"],i,e)},mathmlBuilder:function(t,e){br(t);var n=mn(t.body,e);if("."!==t.left){var r=new fn.MathNode("mo",[dn(t.left,t.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==t.right){var i=new fn.MathNode("mo",[dn(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),n.push(i)}return pn(n)}}),$e({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(t,e){var n=vr(e[0],t);if(!t.parser.leftrightDepth)throw new o("\\middle without preceding \\left",n);return{type:"middle",mode:t.parser.mode,delim:n.text}},htmlBuilder:function(t,e){var n;if("."===t.delim)n=rn(e,[]);else{n=gr.sizedDelim(t.delim,1,e,t.mode,[]);var r={delim:t.delim,options:e};n.isMiddle=r}return n},mathmlBuilder:function(t,e){var n="\\vert"===t.delim||"|"===t.delim?dn("|","text"):dn(t.delim,t.mode),r=new fn.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var _r=function(t,e){var n,r,i=Ie.wrapFragment(an(t.body,e),e),a=t.label.substr(1),o=e.sizeMultiplier,s=0,l=v.isCharacterBox(t.body);if("sout"===a)n=Ie.makeSpan(["stretchy","sout"]),n.height=e.fontMetrics().defaultRuleThickness/o,s=-.5*e.fontMetrics().xHeight;else{/cancel/.test(a)?l||i.classes.push("cancel-pad"):i.classes.push("boxpad");var c=0,u=0;/box/.test(a)?(u=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),c=e.fontMetrics().fboxsep+("colorbox"===a?0:u)):c=l?.2:0,n=Nn.encloseSpan(i,a,c,e),/fbox|boxed|fcolorbox/.test(a)&&(n.style.borderStyle="solid",n.style.borderWidth=u+"em"),s=i.depth+c,t.backgroundColor&&(n.style.backgroundColor=t.backgroundColor,t.borderColor&&(n.style.borderColor=t.borderColor))}return r=t.backgroundColor?Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:i,shift:0}]},e):Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:/cancel/.test(a)?["svg-align"]:[]}]},e),/cancel/.test(a)&&(r.height=i.height,r.depth=i.depth),/cancel/.test(a)&&!l?Ie.makeSpan(["mord","cancel-lap"],[r],e):Ie.makeSpan(["mord"],[r],e)},xr=function(t,e){var n=0,r=new fn.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[vn(t.body,e)]);switch(t.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===t.label){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&r.setAttribute("mathbackground",t.backgroundColor),r};$e({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(t,e,n){var r=t.parser,i=t.funcName,a=Dn(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:_r,mathmlBuilder:xr}),$e({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(t,e,n){var r=t.parser,i=t.funcName,a=Dn(e[0],"color-token").color,o=Dn(e[1],"color-token").color,s=e[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:_r,mathmlBuilder:xr}),$e({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(t,e){var n=t.parser;return{type:"enclose",mode:n.mode,label:"\\fbox",body:e[0]}}}),$e({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(t,e,n){var r=t.parser,i=t.funcName,a=e[0];return{type:"enclose",mode:r.mode,label:i,body:a}},htmlBuilder:_r,mathmlBuilder:xr});var wr={};function kr(t){for(var e=t.type,n=t.names,r=t.props,i=t.handler,a=t.htmlBuilder,o=t.mathmlBuilder,s={type:e,numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)wr[n[l]]=s;a&&(He[e]=a),o&&(Ue[e]=o)}function Cr(t){var e=[];t.consumeSpaces();var n=t.fetch().text;while("\\hline"===n||"\\hdashline"===n)t.consume(),e.push("\\hdashline"===n),t.consumeSpaces(),n=t.fetch().text;return e}function Er(t,e,n){var r=e.hskipBeforeAndAfter,i=e.addJot,a=e.cols,s=e.arraystretch,l=e.colSeparationType;if(t.gullet.beginGroup(),t.gullet.macros.set("\\\\","\\cr"),!s){var c=t.gullet.expandMacroAsText("\\arraystretch");if(null==c)s=1;else if(s=parseFloat(c),!s||s<0)throw new o("Invalid \\arraystretch: "+c)}t.gullet.beginGroup();var u=[],h=[u],f=[],d=[];d.push(Cr(t));while(1){var p=t.parseExpression(!1,"\\cr");t.gullet.endGroup(),t.gullet.beginGroup(),p={type:"ordgroup",mode:t.mode,body:p},n&&(p={type:"styling",mode:t.mode,style:n,body:[p]}),u.push(p);var g=t.fetch().text;if("&"===g)t.consume();else{if("\\end"===g){1===u.length&&"styling"===p.type&&0===p.body[0].body.length&&h.pop(),d.length<h.length+1&&d.push([]);break}if("\\cr"!==g)throw new o("Expected & or \\\\ or \\cr or \\end",t.nextToken);var m=Dn(t.parseFunction(),"cr");f.push(m.size),d.push(Cr(t)),u=[],h.push(u)}}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:i,arraystretch:s,body:h,cols:a,rowGaps:f,hskipBeforeAndAfter:r,hLinesBeforeRow:d,colSeparationType:l}}function Sr(t){return"d"===t.substr(0,1)?"display":"text"}var Tr=function(t,e){var n,r,i=t.body.length,a=t.hLinesBeforeRow,s=0,l=new Array(i),c=[],u=Math.max(e.fontMetrics().arrayRuleWidth,e.minRuleThickness),h=1/e.fontMetrics().ptPerEm,f=5*h;if(t.colSeparationType&&"small"===t.colSeparationType){var d=e.havingStyle(R.SCRIPT).sizeMultiplier;f=d/e.sizeMultiplier*.2778}var p=12*h,g=3*h,m=t.arraystretch*p,y=.7*m,b=.3*m,_=0;function x(t){for(var e=0;e<t.length;++e)e>0&&(_+=.25),c.push({pos:_,isDashed:t[e]})}for(x(a[0]),n=0;n<t.body.length;++n){var w=t.body[n],k=y,C=b;s<w.length&&(s=w.length);var E=new Array(w.length);for(r=0;r<w.length;++r){var S=an(w[r],e);C<S.depth&&(C=S.depth),k<S.height&&(k=S.height),E[r]=S}var T=t.rowGaps[n],A=0;T&&(A=de(T,e),A>0&&(A+=b,C<A&&(C=A),A=0)),t.addJot&&(C+=g),E.height=k,E.depth=C,_+=k,E.pos=_,_+=C+A,l[n]=E,x(a[n+1])}var M,N,D=_/2+e.fontMetrics().axisHeight,O=t.cols||[],L=[];for(r=0,N=0;r<s||N<O.length;++r,++N){var B=O[N]||{},I=!0;while("separator"===B.type){if(I||(M=Ie.makeSpan(["arraycolsep"],[]),M.style.width=e.fontMetrics().doubleRuleSep+"em",L.push(M)),"|"!==B.separator&&":"!==B.separator)throw new o("Invalid separator type: "+B.separator);var F="|"===B.separator?"solid":"dashed",P=Ie.makeSpan(["vertical-separator"],[],e);P.style.height=_+"em",P.style.borderRightWidth=u+"em",P.style.borderRightStyle=F,P.style.margin="0 -"+u/2+"em",P.style.verticalAlign=-(_-D)+"em",L.push(P),N++,B=O[N]||{},I=!1}if(!(r>=s)){var z=void 0;(r>0||t.hskipBeforeAndAfter)&&(z=v.deflt(B.pregap,f),0!==z&&(M=Ie.makeSpan(["arraycolsep"],[]),M.style.width=z+"em",L.push(M)));var q=[];for(n=0;n<i;++n){var j=l[n],H=j[r];if(H){var U=j.pos-D;H.depth=j.depth,H.height=j.height,q.push({type:"elem",elem:H,shift:U})}}q=Ie.makeVList({positionType:"individualShift",children:q},e),q=Ie.makeSpan(["col-align-"+(B.align||"c")],[q]),L.push(q),(r<s-1||t.hskipBeforeAndAfter)&&(z=v.deflt(B.postgap,f),0!==z&&(M=Ie.makeSpan(["arraycolsep"],[]),M.style.width=z+"em",L.push(M)))}}if(l=Ie.makeSpan(["mtable"],L),c.length>0){var $=Ie.makeLineSpan("hline",e,u),W=Ie.makeLineSpan("hdashline",e,u),Y=[{type:"elem",elem:l,shift:0}];while(c.length>0){var V=c.pop(),G=V.pos-D;V.isDashed?Y.push({type:"elem",elem:W,shift:G}):Y.push({type:"elem",elem:$,shift:G})}l=Ie.makeVList({positionType:"individualShift",children:Y},e)}return Ie.makeSpan(["mord"],[l],e)},Ar={c:"center ",l:"left ",r:"right "},Mr=function(t,e){var n=new fn.MathNode("mtable",t.body.map((function(t){return new fn.MathNode("mtr",t.map((function(t){return new fn.MathNode("mtd",[vn(t,e)])})))}))),r=.5===t.arraystretch?.1:.16+t.arraystretch-1+(t.addJot?.09:0);n.setAttribute("rowspacing",r+"em");var i="",a="";if(t.cols&&t.cols.length>0){var o=t.cols,s="",l=!1,c=0,u=o.length;"separator"===o[0].type&&(i+="top ",c=1),"separator"===o[o.length-1].type&&(i+="bottom ",u-=1);for(var h=c;h<u;h++)"align"===o[h].type?(a+=Ar[o[h].align],l&&(s+="none "),l=!0):"separator"===o[h].type&&l&&(s+="|"===o[h].separator?"solid ":"dashed ",l=!1);n.setAttribute("columnalign",a.trim()),/[sd]/.test(s)&&n.setAttribute("columnlines",s.trim())}if("align"===t.colSeparationType){for(var f=t.cols||[],d="",p=1;p<f.length;p++)d+=p%2?"0em ":"1em ";n.setAttribute("columnspacing",d.trim())}else"alignat"===t.colSeparationType?n.setAttribute("columnspacing","0em"):"small"===t.colSeparationType?n.setAttribute("columnspacing","0.2778em"):n.setAttribute("columnspacing","1em");var g="",m=t.hLinesBeforeRow;i+=m[0].length>0?"left ":"",i+=m[m.length-1].length>0?"right ":"";for(var y=1;y<m.length-1;y++)g+=0===m[y].length?"none ":m[y][0]?"dashed ":"solid ";return/[sd]/.test(g)&&n.setAttribute("rowlines",g.trim()),""!==i&&(n=new fn.MathNode("menclose",[n]),n.setAttribute("notation",i.trim())),t.arraystretch&&t.arraystretch<1&&(n=new fn.MathNode("mstyle",[n]),n.setAttribute("scriptlevel","1")),n},Nr=function(t,e){var n,r=[],i=Er(t.parser,{cols:r,addJot:!0},"display"),a=0,s={type:"ordgroup",mode:t.mode,body:[]};if(e[0]&&"ordgroup"===e[0].type){for(var l="",c=0;c<e[0].body.length;c++){var u=Dn(e[0].body[c],"textord");l+=u.text}n=Number(l),a=2*n}var h=!a;i.body.forEach((function(t){for(var e=1;e<t.length;e+=2){var r=Dn(t[e],"styling"),i=Dn(r.body[0],"ordgroup");i.body.unshift(s)}if(h)a<t.length&&(a=t.length);else{var l=t.length/2;if(n<l)throw new o("Too many math in a row: expected "+n+", but got "+l,t[0])}}));for(var f=0;f<a;++f){var d="r",p=0;f%2===1?d="l":f>0&&h&&(p=1),r[f]={type:"align",align:d,pregap:p,postgap:0}}return i.colSeparationType=h?"align":"alignat",i};kr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(t,e){var n=Ln(e[0]),r=n?[e[0]]:Dn(e[0],"ordgroup").body,i=r.map((function(t){var e=On(t),n=e.text;if(-1!=="lcr".indexOf(n))return{type:"align",align:n};if("|"===n)return{type:"separator",separator:"|"};if(":"===n)return{type:"separator",separator:":"};throw new o("Unknown column alignment: "+n,t)})),a={cols:i,hskipBeforeAndAfter:!0};return Er(t.parser,a,Sr(t.envName))},htmlBuilder:Tr,mathmlBuilder:Mr}),kr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName],n={hskipBeforeAndAfter:!1},r=Er(t.parser,n,Sr(t.envName));return e?{type:"leftright",mode:t.mode,body:[r],left:e[0],right:e[1],rightColor:void 0}:r},htmlBuilder:Tr,mathmlBuilder:Mr}),kr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(t){var e={arraystretch:.5},n=Er(t.parser,e,"script");return n.colSeparationType="small",n},htmlBuilder:Tr,mathmlBuilder:Mr}),kr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(t,e){var n=Ln(e[0]),r=n?[e[0]]:Dn(e[0],"ordgroup").body,i=r.map((function(t){var e=On(t),n=e.text;if(-1!=="lc".indexOf(n))return{type:"align",align:n};throw new o("Unknown column alignment: "+n,t)}));if(i.length>1)throw new o("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Er(t.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new o("{subarray} can contain only one column");return a},htmlBuilder:Tr,mathmlBuilder:Mr}),kr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Er(t.parser,e,Sr(t.envName));return{type:"leftright",mode:t.mode,body:[n],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Tr,mathmlBuilder:Mr}),kr({type:"array",names:["aligned"],props:{numArgs:0},handler:Nr,htmlBuilder:Tr,mathmlBuilder:Mr}),kr({type:"array",names:["gathered"],props:{numArgs:0},handler:function(t){var e={cols:[{type:"align",align:"c"}],addJot:!0};return Er(t.parser,e,"display")},htmlBuilder:Tr,mathmlBuilder:Mr}),kr({type:"array",names:["alignedat"],props:{numArgs:1},handler:Nr,htmlBuilder:Tr,mathmlBuilder:Mr}),$e({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(t,e){throw new o(t.funcName+" valid only within array environment")}});var Dr=wr,Or=Dr;$e({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(t,e){var n=t.parser,r=t.funcName,i=e[0];if("ordgroup"!==i.type)throw new o("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=Dn(i.body[s],"textord").text;if("\\begin"===r){if(!Or.hasOwnProperty(a))throw new o("No such environment: "+a,i);var l=Or[a],c=n.parseArguments("\\begin{"+a+"}",l),u=c.args,h=c.optArgs,f={mode:n.mode,envName:a,parser:n},d=l.handler(f,u,h);n.expect("\\end",!1);var p=n.nextToken,g=Dn(n.parseFunction(),"environment");if(g.name!==a)throw new o("Mismatch: \\begin{"+a+"} matched by \\end{"+g.name+"}",p);return d}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var Lr=Ie.makeSpan;function Br(t,e){var n=Qe(t.body,e,!0);return Lr([t.mclass],n,e)}function Ir(t,e){var n,r=mn(t.body,e);return"minner"===t.mclass?fn.newDocumentFragment(r):("mord"===t.mclass?t.isCharacterBox?(n=r[0],n.type="mi"):n=new fn.MathNode("mi",r):(t.isCharacterBox?(n=r[0],n.type="mo"):n=new fn.MathNode("mo",r),"mbin"===t.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===t.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"!==t.mclass&&"mclose"!==t.mclass||(n.attributes.lspace="0em",n.attributes.rspace="0em")),n)}$e({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(t,e){var n=t.parser,r=t.funcName,i=e[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.substr(5),body:Ye(i),isCharacterBox:v.isCharacterBox(i)}},htmlBuilder:Br,mathmlBuilder:Ir});var Rr=function(t){var e="ordgroup"===t.type&&t.body.length?t.body[0]:t;return"atom"!==e.type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family};$e({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(t,e){var n=t.parser;return{type:"mclass",mode:n.mode,mclass:Rr(e[0]),body:[e[1]],isCharacterBox:v.isCharacterBox(e[1])}}}),$e({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(t,e){var n,r=t.parser,i=t.funcName,a=e[1],o=e[0];n="\\stackrel"!==i?Rr(a):"mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:Ye(a)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===i?null:o,sub:"\\underset"===i?o:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:v.isCharacterBox(l)}},htmlBuilder:Br,mathmlBuilder:Ir});var Fr=function(t,e){var n=t.font,r=e.withFont(n);return an(t.body,r)},Pr=function(t,e){var n=t.font,r=e.withFont(n);return vn(t.body,r)},zr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};$e({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(t,e){var n=t.parser,r=t.funcName,i=e[0],a=r;return a in zr&&(a=zr[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Fr,mathmlBuilder:Pr}),$e({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(t,e){var n=t.parser,r=e[0],i=v.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Rr(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}}),$e({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(t,e){var n=t.parser,r=t.funcName,i=t.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i),s="math"+r.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:Fr,mathmlBuilder:Pr});var qr=function(t,e){var n=e;return"display"===t?n=n.id>=R.SCRIPT.id?n.text():R.DISPLAY:"text"===t&&n.size===R.DISPLAY.size?n=R.TEXT:"script"===t?n=R.SCRIPT:"scriptscript"===t&&(n=R.SCRIPTSCRIPT),n},jr=function(t,e){var n,r=qr(t.size,e.style),i=r.fracNum(),a=r.fracDen();n=e.havingStyle(i);var o=an(t.numer,n,e);if(t.continued){var s=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}n=e.havingStyle(a);var c,u,h,f,d,p,g,m,y,v,b=an(t.denom,n,e);if(t.hasBarLine?(t.barSize?(u=de(t.barSize,e),c=Ie.makeLineSpan("frac-line",e,u)):c=Ie.makeLineSpan("frac-line",e),u=c.height,h=c.height):(c=null,u=0,h=e.fontMetrics().defaultRuleThickness),r.size===R.DISPLAY.size||"display"===t.size?(f=e.fontMetrics().num1,d=u>0?3*h:7*h,p=e.fontMetrics().denom1):(u>0?(f=e.fontMetrics().num2,d=h):(f=e.fontMetrics().num3,d=3*h),p=e.fontMetrics().denom2),c){var _=e.fontMetrics().axisHeight;f-o.depth-(_+.5*u)<d&&(f+=d-(f-o.depth-(_+.5*u))),_-.5*u-(b.height-p)<d&&(p+=d-(_-.5*u-(b.height-p)));var x=-(_-.5*u);g=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:p},{type:"elem",elem:c,shift:x},{type:"elem",elem:o,shift:-f}]},e)}else{var w=f-o.depth-(b.height-p);w<d&&(f+=.5*(d-w),p+=.5*(d-w)),g=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:p},{type:"elem",elem:o,shift:-f}]},e)}return n=e.havingStyle(r),g.height*=n.sizeMultiplier/e.sizeMultiplier,g.depth*=n.sizeMultiplier/e.sizeMultiplier,m=r.size===R.DISPLAY.size?e.fontMetrics().delim1:e.fontMetrics().delim2,y=null==t.leftDelim?rn(e,["mopen"]):gr.customSizedDelim(t.leftDelim,m,!0,e.havingStyle(r),t.mode,["mopen"]),v=t.continued?Ie.makeSpan([]):null==t.rightDelim?rn(e,["mclose"]):gr.customSizedDelim(t.rightDelim,m,!0,e.havingStyle(r),t.mode,["mclose"]),Ie.makeSpan(["mord"].concat(n.sizingClasses(e)),[y,Ie.makeSpan(["mfrac"],[g]),v],e)},Hr=function(t,e){var n=new fn.MathNode("mfrac",[vn(t.numer,e),vn(t.denom,e)]);if(t.hasBarLine){if(t.barSize){var r=de(t.barSize,e);n.setAttribute("linethickness",r+"em")}}else n.setAttribute("linethickness","0px");var i=qr(t.size,e.style);if(i.size!==e.style.size){n=new fn.MathNode("mstyle",[n]);var a=i.size===R.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(null!=t.leftDelim||null!=t.rightDelim){var o=[];if(null!=t.leftDelim){var s=new fn.MathNode("mo",[new fn.TextNode(t.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),null!=t.rightDelim){var l=new fn.MathNode("mo",[new fn.TextNode(t.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return pn(o)}return n};$e({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(t,e){var n,r=t.parser,i=t.funcName,a=e[0],o=e[1],s=null,l=null,c="auto";switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\cfrac":case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:r.mode,continued:"\\cfrac"===i,numer:a,denom:o,hasBarLine:n,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:jr,mathmlBuilder:Hr}),$e({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(t){var e,n=t.parser,r=t.funcName,i=t.token;switch(r){case"\\over":e="\\frac";break;case"\\choose":e="\\binom";break;case"\\atop":e="\\\\atopfrac";break;case"\\brace":e="\\\\bracefrac";break;case"\\brack":e="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:e,token:i}}});var Ur=["display","text","script","scriptscript"],$r=function(t){var e=null;return t.length>0&&(e=t,e="."===e?null:e),e};$e({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(t,e){var n,r=t.parser,i=e[4],a=e[5],o="atom"===e[0].type&&"open"===e[0].family?$r(e[0].text):null,s="atom"===e[1].type&&"close"===e[1].family?$r(e[1].text):null,l=Dn(e[2],"size"),c=null;l.isBlank?n=!0:(c=l.value,n=c.number>0);var u="auto",h=e[3];if("ordgroup"===h.type){if(h.body.length>0){var f=Dn(h.body[0],"textord");u=Ur[Number(f.text)]}}else h=Dn(h,"textord"),u=Ur[Number(h.text)];return{type:"genfrac",mode:r.mode,numer:i,denom:a,continued:!1,hasBarLine:n,barSize:c,leftDelim:o,rightDelim:s,size:u}},htmlBuilder:jr,mathmlBuilder:Hr}),$e({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(t,e){var n=t.parser;t.funcName;var r=t.token;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Dn(e[0],"size").value,token:r}}}),$e({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(t,e){var n=t.parser;t.funcName;var r=e[0],i=m(Dn(e[1],"infix").size),a=e[2],o=i.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:jr,mathmlBuilder:Hr});var Wr=function(t,e){var n,r,i=e.style;"supsub"===t.type?(n=t.sup?an(t.sup,e.havingStyle(i.sup()),e):an(t.sub,e.havingStyle(i.sub()),e),r=Dn(t.base,"horizBrace")):r=Dn(t,"horizBrace");var a,o=an(r.base,e.havingBaseStyle(R.DISPLAY)),s=Nn.svgSpan(r,e);if(r.isOver?(a=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),a.children[0].children[0].children[1].classes.push("svg-align")):(a=Ie.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),a.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Ie.makeSpan(["mord",r.isOver?"mover":"munder"],[a],e);a=r.isOver?Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},e):Ie.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return Ie.makeSpan(["mord",r.isOver?"mover":"munder"],[a],e)},Yr=function(t,e){var n=Nn.mathMLnode(t.label);return new fn.MathNode(t.isOver?"mover":"munder",[vn(t.base,e),n])};$e({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(t,e){var n=t.parser,r=t.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:e[0]}},htmlBuilder:Wr,mathmlBuilder:Yr}),$e({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(t,e){var n=t.parser,r=e[1],i=Dn(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Ye(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(t,e){var n=Qe(t.body,e,!1);return Ie.makeAnchor(t.href,[],n,e)},mathmlBuilder:function(t,e){var n=yn(t.body,e);return n instanceof cn||(n=new cn("mrow",[n])),n.setAttribute("href",t.href),n}}),$e({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(t,e){var n=t.parser,r=Dn(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<r.length;a++){var o=r[a];"~"===o&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:Ye(s)}}}),$e({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(t,e){var n=t.parser,r=t.funcName;t.token;var i,a=Dn(e[0],"raw").string,s=e[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(r){case"\\htmlClass":l.class=a,i={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,i={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,i={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var c=a.split(","),u=0;u<c.length;u++){var h=c[u].split("=");if(2!==h.length)throw new o("Error parsing key-value for \\htmlData");l["data-"+h[0].trim()]=h[1].trim()}i={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(i)?{type:"html",mode:n.mode,attributes:l,body:Ye(s)}:n.formatUnsupportedCmd(r)},htmlBuilder:function(t,e){var n=Qe(t.body,e,!1),r=["enclosing"];t.attributes.class&&r.push.apply(r,t.attributes.class.trim().split(/\s+/));var i=Ie.makeSpan(r,n,e);for(var a in t.attributes)"class"!==a&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:function(t,e){return yn(t.body,e)}}),$e({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(t,e){var n=t.parser;return{type:"htmlmathml",mode:n.mode,html:Ye(e[0]),mathml:Ye(e[1])}},htmlBuilder:function(t,e){var n=Qe(t.html,e,!1);return Ie.makeFragment(n)},mathmlBuilder:function(t,e){return yn(t.mathml,e)}});var Vr=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var e=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!e)throw new o("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(e[1]+e[2]),unit:e[3]};if(!fe(n))throw new o("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};$e({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(t,e,n){var r=t.parser,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(n[0])for(var c=Dn(n[0],"raw").string,u=c.split(","),h=0;h<u.length;h++){var f=u[h].split("=");if(2===f.length){var d=f[1].trim();switch(f[0].trim()){case"alt":l=d;break;case"width":i=Vr(d);break;case"height":a=Vr(d);break;case"totalheight":s=Vr(d);break;default:throw new o("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var p=Dn(e[0],"url").url;return""===l&&(l=p,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:r.mode,alt:l,width:i,height:a,totalheight:s,src:p}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(t,e){var n=de(t.height,e),r=0;t.totalheight.number>0&&(r=de(t.totalheight,e)-n,r=Number(r.toFixed(2)));var i=0;t.width.number>0&&(i=de(t.width,e));var a={height:n+r+"em"};i>0&&(a.width=i+"em"),r>0&&(a.verticalAlign=-r+"em");var o=new rt(t.src,t.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:function(t,e){var n=new fn.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var r=de(t.height,e),i=0;if(t.totalheight.number>0&&(i=de(t.totalheight,e)-r,i=i.toFixed(2),n.setAttribute("valign","-"+i+"em")),n.setAttribute("height",r+i+"em"),t.width.number>0){var a=de(t.width,e);n.setAttribute("width",a+"em")}return n.setAttribute("src",t.src),n}}),$e({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(t,e){var n=t.parser,r=t.funcName,i=Dn(e[0],"size");if(n.settings.strict){var a="m"===r[1],o="mu"===i.value.unit;a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:function(t,e){return Ie.makeGlue(t.dimension,e)},mathmlBuilder:function(t,e){var n=de(t.dimension,e);return new fn.SpaceNode(n)}}),$e({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){var n=t.parser,r=t.funcName,i=e[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:function(t,e){var n;"clap"===t.alignment?(n=Ie.makeSpan([],[an(t.body,e)]),n=Ie.makeSpan(["inner"],[n],e)):n=Ie.makeSpan(["inner"],[an(t.body,e)]);var r=Ie.makeSpan(["fix"],[]),i=Ie.makeSpan([t.alignment],[n,r],e),a=Ie.makeSpan(["strut"]);return a.style.height=i.height+i.depth+"em",a.style.verticalAlign=-i.depth+"em",i.children.unshift(a),i=Ie.makeSpan(["thinbox"],[i],e),Ie.makeSpan(["mord","vbox"],[i],e)},mathmlBuilder:function(t,e){var n=new fn.MathNode("mpadded",[vn(t.body,e)]);if("rlap"!==t.alignment){var r="llap"===t.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),$e({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(t,e){var n=t.funcName,r=t.parser,i=r.mode;r.switchMode("math");var a="\\("===n?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}}),$e({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(t,e){throw new o("Mismatched "+t.funcName)}});var Gr=function(t,e){switch(e.style.size){case R.DISPLAY.size:return t.display;case R.TEXT.size:return t.text;case R.SCRIPT.size:return t.script;case R.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};$e({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(t,e){var n=t.parser;return{type:"mathchoice",mode:n.mode,display:Ye(e[0]),text:Ye(e[1]),script:Ye(e[2]),scriptscript:Ye(e[3])}},htmlBuilder:function(t,e){var n=Gr(t,e),r=Qe(n,e,!1);return Ie.makeFragment(r)},mathmlBuilder:function(t,e){var n=Gr(t,e);return yn(n,e)}});var Xr=function(t,e,n,r,i,a,o){var s,l,c;if(t=Ie.makeSpan([],[t]),e){var u=an(e,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var h=an(n,r.havingStyle(i.sub()),r);s={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-h.height)}}if(l&&s){var f=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+t.depth+o;c=Ie.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-a+"em"},{type:"kern",size:s.kern},{type:"elem",elem:t},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var d=t.height-o;c=Ie.makeVList({positionType:"top",positionData:d,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-a+"em"},{type:"kern",size:s.kern},{type:"elem",elem:t}]},r)}else{if(!l)return t;var p=t.depth+o;c=Ie.makeVList({positionType:"bottom",positionData:p,children:[{type:"elem",elem:t},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}return Ie.makeSpan(["mop","op-limits"],[c],r)},Zr=["\\smallint"],Kr=function(t,e){var n,r,i,a=!1;"supsub"===t.type?(n=t.sup,r=t.sub,i=Dn(t.base,"op"),a=!0):i=Dn(t,"op");var o,s=e.style,l=!1;if(s.size===R.DISPLAY.size&&i.symbol&&!v.contains(Zr,i.name)&&(l=!0),i.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(u=i.name.substr(1),i.name="oiint"===u?"\\iint":"\\iiint"),o=Ie.makeSymbol(i.name,c,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var h=o.italic,f=Ie.staticSvg(u+"Size"+(l?"2":"1"),e);o=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:f,shift:l?.08:0}]},e),i.name="\\"+u,o.classes.unshift("mop"),o.italic=h}}else if(i.body){var d=Qe(i.body,e,!0);1===d.length&&d[0]instanceof at?(o=d[0],o.classes[0]="mop"):o=Ie.makeSpan(["mop"],Ie.tryCombineChars(d),e)}else{for(var p=[],g=1;g<i.name.length;g++)p.push(Ie.mathsym(i.name[g],i.mode,e));o=Ie.makeSpan(["mop"],p,e)}var m=0,y=0;return(o instanceof at||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(m=(o.height-o.depth)/2-e.fontMetrics().axisHeight,y=o.italic),a?Xr(o,n,r,e,s,y,m):(m&&(o.style.position="relative",o.style.top=m+"em"),o)},Qr=function(t,e){var n;if(t.symbol)n=new cn("mo",[dn(t.name,t.mode)]),v.contains(Zr,t.name)&&n.setAttribute("largeop","false");else if(t.body)n=new cn("mo",mn(t.body,e));else{n=new cn("mi",[new un(t.name.slice(1))]);var r=new cn("mo",[dn("","text")]);n=t.parentIsSupSub?new cn("mo",[n,r]):ln([n,r])}return n},Jr={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};$e({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(t,e){var n=t.parser,r=t.funcName,i=r;return 1===i.length&&(i=Jr[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Kr,mathmlBuilder:Qr}),$e({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(t,e){var n=t.parser,r=e[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ye(r)}},htmlBuilder:Kr,mathmlBuilder:Qr});var ti={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};$e({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(t){var e=t.parser,n=t.funcName;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Kr,mathmlBuilder:Qr}),$e({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(t){var e=t.parser,n=t.funcName;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Kr,mathmlBuilder:Qr}),$e({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(t){var e=t.parser,n=t.funcName,r=n;return 1===r.length&&(r=ti[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Kr,mathmlBuilder:Qr});var ei=function(t,e){var n,r,i,a,o=!1;if("supsub"===t.type?(n=t.sup,r=t.sub,i=Dn(t.base,"operatorname"),o=!0):i=Dn(t,"operatorname"),i.body.length>0){for(var s=i.body.map((function(t){var e=t.text;return"string"===typeof e?{type:"textord",mode:t.mode,text:e}:t})),l=Qe(s,e.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof at&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=Ie.makeSpan(["mop"],l,e)}else a=Ie.makeSpan(["mop"],[],e);return o?Xr(a,n,r,e,e.style,0,0):a},ni=function(t,e){for(var n=mn(t.body,e.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var a=n[i];if(a instanceof fn.SpaceNode);else if(a instanceof fn.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=a.children[0];1===a.children.length&&o instanceof fn.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var s=n.map((function(t){return t.toText()})).join("");n=[new fn.TextNode(s)]}var l=new fn.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new fn.MathNode("mo",[dn("","text")]);return t.parentIsSupSub?new fn.MathNode("mo",[l,c]):fn.newDocumentFragment([l,c])};function ri(t,e,n){for(var r=Qe(t,e,!1),i=e.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[a].classes,e.sizingClasses(n)):r[a].classes[o+1]==="reset-size"+e.size&&(r[a].classes[o+1]="reset-size"+n.size),r[a].height*=i,r[a].depth*=i}return Ie.makeFragment(r)}$e({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(t,e){var n=t.parser,r=t.funcName,i=e[0];return{type:"operatorname",mode:n.mode,body:Ye(i),alwaysHandleSupSub:"\\operatorname*"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:ei,mathmlBuilder:ni}),We({type:"ordgroup",htmlBuilder:function(t,e){return t.semisimple?Ie.makeFragment(Qe(t.body,e,!1)):Ie.makeSpan(["mord"],Qe(t.body,e,!0),e)},mathmlBuilder:function(t,e){return yn(t.body,e,!0)}}),$e({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(t,e){var n=t.parser,r=e[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder:function(t,e){var n=an(t.body,e.havingCrampedStyle()),r=Ie.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},e);return Ie.makeSpan(["mord","overline"],[a],e)},mathmlBuilder:function(t,e){var n=new fn.MathNode("mo",[new fn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new fn.MathNode("mover",[vn(t.body,e),n]);return r.setAttribute("accent","true"),r}}),$e({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){var n=t.parser,r=e[0];return{type:"phantom",mode:n.mode,body:Ye(r)}},htmlBuilder:function(t,e){var n=Qe(t.body,e.withPhantom(),!1);return Ie.makeFragment(n)},mathmlBuilder:function(t,e){var n=mn(t.body,e);return new fn.MathNode("mphantom",n)}}),$e({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){var n=t.parser,r=e[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:function(t,e){var n=Ie.makeSpan([],[an(t.body,e.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e),Ie.makeSpan(["mord"],[n],e)},mathmlBuilder:function(t,e){var n=mn(Ye(t.body),e),r=new fn.MathNode("mphantom",n),i=new fn.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}}),$e({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){var n=t.parser,r=e[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:function(t,e){var n=Ie.makeSpan(["inner"],[an(t.body,e.withPhantom())]),r=Ie.makeSpan(["fix"],[]);return Ie.makeSpan(["mord","rlap"],[n,r],e)},mathmlBuilder:function(t,e){var n=mn(Ye(t.body),e),r=new fn.MathNode("mphantom",n),i=new fn.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}}),$e({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(t,e){var n=t.parser,r=Dn(e[0],"size").value,i=e[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder:function(t,e){var n=an(t.body,e),r=de(t.dy,e);return Ie.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},e)},mathmlBuilder:function(t,e){var n=new fn.MathNode("mpadded",[vn(t.body,e)]),r=t.dy.number+t.dy.unit;return n.setAttribute("voffset",r),n}}),$e({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(t,e,n){var r=t.parser,i=n[0],a=Dn(e[0],"size"),o=Dn(e[1],"size");return{type:"rule",mode:r.mode,shift:i&&Dn(i,"size").value,width:a.value,height:o.value}},htmlBuilder:function(t,e){var n=Ie.makeSpan(["mord","rule"],[],e),r=de(t.width,e),i=de(t.height,e),a=t.shift?de(t.shift,e):0;return n.style.borderRightWidth=r+"em",n.style.borderTopWidth=i+"em",n.style.bottom=a+"em",n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=1.125*i*e.sizeMultiplier,n},mathmlBuilder:function(t,e){var n=de(t.width,e),r=de(t.height,e),i=t.shift?de(t.shift,e):0,a=e.color&&e.getColor()||"black",o=new fn.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",n+"em"),o.setAttribute("height",r+"em");var s=new fn.MathNode("mpadded",[o]);return i>=0?s.setAttribute("height","+"+i+"em"):(s.setAttribute("height",i+"em"),s.setAttribute("depth","+"+-i+"em")),s.setAttribute("voffset",i+"em"),s}});var ii=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ai=function(t,e){var n=e.havingSize(t.size);return ri(t.body,n,e)};$e({type:"sizing",names:ii,props:{numArgs:0,allowedInText:!0},handler:function(t,e){var n=t.breakOnTokenText,r=t.funcName,i=t.parser,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:ii.indexOf(r)+1,body:a}},htmlBuilder:ai,mathmlBuilder:function(t,e){var n=e.havingSize(t.size),r=mn(t.body,n),i=new fn.MathNode("mstyle",r);return i.setAttribute("mathsize",n.sizeMultiplier+"em"),i}}),$e({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(t,e,n){var r=t.parser,i=!1,a=!1,o=n[0]&&Dn(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l){var c=o.body[l];if(s=c.text,"t"===s)i=!0;else{if("b"!==s){i=!1,a=!1;break}a=!0}}else i=!0,a=!0;var u=e[0];return{type:"smash",mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:function(t,e){var n=Ie.makeSpan([],[an(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return n;if(t.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(t.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var a=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e);return Ie.makeSpan(["mord"],[a],e)},mathmlBuilder:function(t,e){var n=new fn.MathNode("mpadded",[vn(t.body,e)]);return t.smashHeight&&n.setAttribute("height","0px"),t.smashDepth&&n.setAttribute("depth","0px"),n}}),$e({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(t,e,n){var r=t.parser,i=n[0],a=e[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder:function(t,e){var n=an(t.body,e.havingCrampedStyle());0===n.height&&(n.height=e.fontMetrics().xHeight),n=Ie.wrapFragment(n,e);var r=e.fontMetrics(),i=r.defaultRuleThickness,a=i;e.style.id<R.TEXT.id&&(a=e.fontMetrics().xHeight);var o=i+a/4,s=n.height+n.depth+o+i,l=gr.sqrtImage(s,e),c=l.span,u=l.ruleWidth,h=l.advanceWidth,f=c.height-u;f>n.height+n.depth+o&&(o=(o+f-n.height-n.depth)/2);var d=c.height-n.height-o-u;n.style.paddingLeft=h+"em";var p=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:c},{type:"kern",size:u}]},e);if(t.index){var g=e.havingStyle(R.SCRIPTSCRIPT),m=an(t.index,g,e),y=.6*(p.height-p.depth),v=Ie.makeVList({positionType:"shift",positionData:-y,children:[{type:"elem",elem:m}]},e),b=Ie.makeSpan(["root"],[v]);return Ie.makeSpan(["mord","sqrt"],[b,p],e)}return Ie.makeSpan(["mord","sqrt"],[p],e)},mathmlBuilder:function(t,e){var n=t.body,r=t.index;return r?new fn.MathNode("mroot",[vn(n,e),vn(r,e)]):new fn.MathNode("msqrt",[vn(n,e)])}});var oi={display:R.DISPLAY,text:R.TEXT,script:R.SCRIPT,scriptscript:R.SCRIPTSCRIPT};$e({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(t,e){var n=t.breakOnTokenText,r=t.funcName,i=t.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder:function(t,e){var n=oi[t.style],r=e.havingStyle(n).withFont("");return ri(t.body,r,e)},mathmlBuilder:function(t,e){var n=oi[t.style],r=e.havingStyle(n),i=mn(t.body,r),a=new fn.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=o[t.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var si=function(t,e){var n=t.base;if(n){if("op"===n.type){var r=n.limits&&(e.style.size===R.DISPLAY.size||n.alwaysHandleSupSub);return r?Kr:null}if("operatorname"===n.type){var i=n.alwaysHandleSupSub&&(e.style.size===R.DISPLAY.size||n.limits);return i?ei:null}if("accent"===n.type)return v.isCharacterBox(n.base)?Bn:null;if("horizBrace"===n.type){var a=!t.sub;return a===n.isOver?Wr:null}return null}return null};We({type:"supsub",htmlBuilder:function(t,e){var n=si(t,e);if(n)return n(t,e);var r,i,a,o=t.base,s=t.sup,l=t.sub,c=an(o,e),u=e.fontMetrics(),h=0,f=0,d=o&&v.isCharacterBox(o);if(s){var p=e.havingStyle(e.style.sup());r=an(s,p,e),d||(h=c.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(l){var g=e.havingStyle(e.style.sub());i=an(l,g,e),d||(f=c.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}a=e.style===R.DISPLAY?u.sup1:e.style.cramped?u.sup3:u.sup2;var m,y=e.sizeMultiplier,b=.5/u.ptPerEm/y+"em",_=null;if(i){var x=t.base&&"op"===t.base.type&&t.base.name&&("\\oiint"===t.base.name||"\\oiiint"===t.base.name);(c instanceof at||x)&&(_=-c.italic+"em")}if(r&&i){h=Math.max(h,a,r.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var w=u.defaultRuleThickness,k=4*w;if(h-r.depth-(i.height-f)<k){f=k-(h-r.depth)+i.height;var C=.8*u.xHeight-(h-r.depth);C>0&&(h+=C,f-=C)}var E=[{type:"elem",elem:i,shift:f,marginRight:b,marginLeft:_},{type:"elem",elem:r,shift:-h,marginRight:b}];m=Ie.makeVList({positionType:"individualShift",children:E},e)}else if(i){f=Math.max(f,u.sub1,i.height-.8*u.xHeight);var S=[{type:"elem",elem:i,marginLeft:_,marginRight:b}];m=Ie.makeVList({positionType:"shift",positionData:f,children:S},e)}else{if(!r)throw new Error("supsub must have either sup or sub.");h=Math.max(h,a,r.depth+.25*u.xHeight),m=Ie.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:r,marginRight:b}]},e)}var T=nn(c,"right")||"mord";return Ie.makeSpan([T],[c,Ie.makeSpan(["msupsub"],[m])],e)},mathmlBuilder:function(t,e){var n,r,i=!1;t.base&&"horizBrace"===t.base.type&&(r=!!t.sup,r===t.base.isOver&&(i=!0,n=t.base.isOver)),!t.base||"op"!==t.base.type&&"operatorname"!==t.base.type||(t.base.parentIsSupSub=!0);var a,o=[vn(t.base,e)];if(t.sub&&o.push(vn(t.sub,e)),t.sup&&o.push(vn(t.sup,e)),i)a=n?"mover":"munder";else if(t.sub)if(t.sup){var s=t.base;a=s&&"op"===s.type&&s.limits&&e.style===R.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(e.style===R.DISPLAY||s.limits)?"munderover":"msubsup"}else{var l=t.base;a=l&&"op"===l.type&&l.limits&&(e.style===R.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||e.style===R.DISPLAY)?"munder":"msub"}else{var c=t.base;a=c&&"op"===c.type&&c.limits&&(e.style===R.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||e.style===R.DISPLAY)?"mover":"msup"}var u=new fn.MathNode(a,o);return u}}),We({type:"atom",htmlBuilder:function(t,e){return Ie.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder:function(t,e){var n=new fn.MathNode("mo",[dn(t.text,t.mode)]);if("bin"===t.family){var r=gn(t,e);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===t.family?n.setAttribute("separator","true"):"open"!==t.family&&"close"!==t.family||n.setAttribute("stretchy","false");return n}});var li={mi:"italic",mn:"normal",mtext:"normal"};We({type:"mathord",htmlBuilder:function(t,e){return Ie.makeOrd(t,e,"mathord")},mathmlBuilder:function(t,e){var n=new fn.MathNode("mi",[dn(t.text,t.mode,e)]),r=gn(t,e)||"italic";return r!==li[n.type]&&n.setAttribute("mathvariant",r),n}}),We({type:"textord",htmlBuilder:function(t,e){return Ie.makeOrd(t,e,"textord")},mathmlBuilder:function(t,e){var n,r=dn(t.text,t.mode,e),i=gn(t,e)||"normal";return n="text"===t.mode?new fn.MathNode("mtext",[r]):/[0-9]/.test(t.text)?new fn.MathNode("mn",[r]):"\\prime"===t.text?new fn.MathNode("mo",[r]):new fn.MathNode("mi",[r]),i!==li[n.type]&&n.setAttribute("mathvariant",i),n}});var ci={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ui={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};We({type:"spacing",htmlBuilder:function(t,e){if(ui.hasOwnProperty(t.text)){var n=ui[t.text].className||"";if("text"===t.mode){var r=Ie.makeOrd(t,e,"textord");return r.classes.push(n),r}return Ie.makeSpan(["mspace",n],[Ie.mathsym(t.text,t.mode,e)],e)}if(ci.hasOwnProperty(t.text))return Ie.makeSpan(["mspace",ci[t.text]],[],e);throw new o('Unknown type of space "'+t.text+'"')},mathmlBuilder:function(t,e){var n;if(!ui.hasOwnProperty(t.text)){if(ci.hasOwnProperty(t.text))return new fn.MathNode("mspace");throw new o('Unknown type of space "'+t.text+'"')}return n=new fn.MathNode("mtext",[new fn.TextNode(" ")]),n}});var hi=function(){var t=new fn.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};We({type:"tag",mathmlBuilder:function(t,e){var n=new fn.MathNode("mtable",[new fn.MathNode("mtr",[hi(),new fn.MathNode("mtd",[yn(t.body,e)]),hi(),new fn.MathNode("mtd",[yn(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var fi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},di={"\\textbf":"textbf","\\textmd":"textmd"},pi={"\\textit":"textit","\\textup":"textup"},gi=function(t,e){var n=t.font;return n?fi[n]?e.withTextFontFamily(fi[n]):di[n]?e.withTextFontWeight(di[n]):e.withTextFontShape(pi[n]):e};$e({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(t,e){var n=t.parser,r=t.funcName,i=e[0];return{type:"text",mode:n.mode,body:Ye(i),font:r}},htmlBuilder:function(t,e){var n=gi(t,e),r=Qe(t.body,n,!0);return Ie.makeSpan(["mord","text"],Ie.tryCombineChars(r),n)},mathmlBuilder:function(t,e){var n=gi(t,e);return yn(t.body,n)}}),$e({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){var n=t.parser;return{type:"underline",mode:n.mode,body:e[0]}},htmlBuilder:function(t,e){var n=an(t.body,e),r=Ie.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Ie.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},e);return Ie.makeSpan(["mord","underline"],[a],e)},mathmlBuilder:function(t,e){var n=new fn.MathNode("mo",[new fn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new fn.MathNode("munder",[vn(t.body,e),n]);return r.setAttribute("accentunder","true"),r}}),$e({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(t,e,n){throw new o("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(t,e){for(var n=mi(t),r=[],i=e.havingStyle(e.style.text()),a=0;a<n.length;a++){var o=n[a];"~"===o&&(o="\\textasciitilde"),r.push(Ie.makeSymbol(o,"Typewriter-Regular",t.mode,i,["mord","texttt"]))}return Ie.makeSpan(["mord","text"].concat(i.sizingClasses(e)),Ie.tryCombineChars(r),i)},mathmlBuilder:function(t,e){var n=new fn.TextNode(mi(t)),r=new fn.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var mi=function(t){return t.body.replace(/ /g,t.star?"␣":" ")},yi=je,vi=yi,bi="[ \r\n\t]",_i="\\\\[a-zA-Z@]+",xi="\\\\[^\ud800-\udfff]",wi=""+_i+bi+"*",ki=new RegExp("^("+_i+")"+bi+"*$"),Ci="[̀-ͯ]",Ei=new RegExp(Ci+"+$"),Si="("+bi+"+)|([!-\\[\\]-‧-豈-]"+Ci+"*|[\ud800-\udbff][\udc00-\udfff]"+Ci+"*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*|"+wi+"|"+xi+")",Ti=function(){function t(t,e){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=e,this.tokenRegex=new RegExp(Si,"g"),this.catcodes={"%":14}}var e=t.prototype;return e.setCatcode=function(t,e){this.catcodes[t]=e},e.lex=function(){var t=this.input,e=this.tokenRegex.lastIndex;if(e===t.length)return new i("EOF",new r(this,e,e));var n=this.tokenRegex.exec(t);if(null===n||n.index!==e)throw new o("Unexpected character: '"+t[e]+"'",new i(t[e],new r(this,e,e+1)));var a=n[2]||" ";if(14===this.catcodes[a]){var s=t.indexOf("\n",this.tokenRegex.lastIndex);return-1===s?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}var l=a.match(ki);return l&&(a=l[1]),new i(a,new r(this,e,this.tokenRegex.lastIndex))},t}(),Ai=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=e,this.builtins=t,this.undefStack=[]}var e=t.prototype;return e.beginGroup=function(){this.undefStack.push({})},e.endGroup=function(){if(0===this.undefStack.length)throw new o("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var e in t)t.hasOwnProperty(e)&&(void 0===t[e]?delete this.current[e]:this.current[e]=t[e])},e.has=function(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)},e.get=function(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]},e.set=function(t,e,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=e)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}this.current[t]=e},t}(),Mi={},Ni=Mi;function Di(t,e){Mi[t]=e}Di("\\noexpand",(function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}})),Di("\\expandafter",(function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}})),Di("\\@firstoftwo",(function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}})),Di("\\@secondoftwo",(function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}})),Di("\\@ifnextchar",(function(t){var e=t.consumeArgs(3);t.consumeSpaces();var n=t.future();return 1===e[0].length&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}})),Di("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Di("\\TextOrMath",(function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}}));var Oi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Di("\\char",(function(t){var e,n=t.popToken(),r="";if("'"===n.text)e=8,n=t.popToken();else if('"'===n.text)e=16,n=t.popToken();else if("`"===n.text)if(n=t.popToken(),"\\"===n.text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new o("\\char` missing argument");r=n.text.charCodeAt(0)}else e=10;if(e){if(r=Oi[n.text],null==r||r>=e)throw new o("Invalid base-"+e+" digit "+n.text);var i;while(null!=(i=Oi[t.future().text])&&i<e)r*=e,r+=i,t.popToken()}return"\\@char{"+r+"}"}));var Li=function(t,e,n){var r=t.consumeArgs(1)[0];if(1!==r.length)throw new o("\\newcommand's first argument must be a macro name");var i=r[0].text,a=t.isDefined(i);if(a&&!e)throw new o("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!n)throw new o("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=t.consumeArgs(1)[0],1===r.length&&"["===r[0].text){var l="",c=t.expandNextToken();while("]"!==c.text&&"EOF"!==c.text)l+=c.text,c=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new o("Invalid number of arguments: "+l);s=parseInt(l),r=t.consumeArgs(1)[0]}return t.macros.set(i,{tokens:r,numArgs:s}),""};Di("\\newcommand",(function(t){return Li(t,!1,!0)})),Di("\\renewcommand",(function(t){return Li(t,!0,!1)})),Di("\\providecommand",(function(t){return Li(t,!0,!0)})),Di("\\message",(function(t){var e=t.consumeArgs(1)[0];return console.log(e.reverse().map((function(t){return t.text})).join("")),""})),Di("\\errmessage",(function(t){var e=t.consumeArgs(1)[0];return console.error(e.reverse().map((function(t){return t.text})).join("")),""})),Di("\\show",(function(t){var e=t.popToken(),n=e.text;return console.log(e,t.macros.get(n),vi[n],xt.math[n],xt.text[n]),""})),Di("\\bgroup","{"),Di("\\egroup","}"),Di("\\lq","`"),Di("\\rq","'"),Di("\\aa","\\r a"),Di("\\AA","\\r A"),Di("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Di("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Di("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Di("ℬ","\\mathscr{B}"),Di("ℰ","\\mathscr{E}"),Di("ℱ","\\mathscr{F}"),Di("ℋ","\\mathscr{H}"),Di("ℐ","\\mathscr{I}"),Di("ℒ","\\mathscr{L}"),Di("ℳ","\\mathscr{M}"),Di("ℛ","\\mathscr{R}"),Di("ℭ","\\mathfrak{C}"),Di("ℌ","\\mathfrak{H}"),Di("ℨ","\\mathfrak{Z}"),Di("\\Bbbk","\\Bbb{k}"),Di("·","\\cdotp"),Di("\\llap","\\mathllap{\\textrm{#1}}"),Di("\\rlap","\\mathrlap{\\textrm{#1}}"),Di("\\clap","\\mathclap{\\textrm{#1}}"),Di("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Di("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Di("\\ne","\\neq"),Di("≠","\\neq"),Di("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Di("∉","\\notin"),Di("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Di("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Di("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Di("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Di("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Di("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Di("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Di("⟂","\\perp"),Di("‼","\\mathclose{!\\mkern-0.8mu!}"),Di("∌","\\notni"),Di("⌜","\\ulcorner"),Di("⌝","\\urcorner"),Di("⌞","\\llcorner"),Di("⌟","\\lrcorner"),Di("©","\\copyright"),Di("®","\\textregistered"),Di("️","\\textregistered"),Di("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Di("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Di("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Di("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Di("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Di("⋮","\\vdots"),Di("\\varGamma","\\mathit{\\Gamma}"),Di("\\varDelta","\\mathit{\\Delta}"),Di("\\varTheta","\\mathit{\\Theta}"),Di("\\varLambda","\\mathit{\\Lambda}"),Di("\\varXi","\\mathit{\\Xi}"),Di("\\varPi","\\mathit{\\Pi}"),Di("\\varSigma","\\mathit{\\Sigma}"),Di("\\varUpsilon","\\mathit{\\Upsilon}"),Di("\\varPhi","\\mathit{\\Phi}"),Di("\\varPsi","\\mathit{\\Psi}"),Di("\\varOmega","\\mathit{\\Omega}"),Di("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Di("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Di("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Di("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Di("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Di("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Bi={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Di("\\dots",(function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in Bi?e=Bi[n]:("\\not"===n.substr(0,4)||n in xt.math&&v.contains(["bin","rel"],xt.math[n].group))&&(e="\\dotsb"),e}));var Ii={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Di("\\dotso",(function(t){var e=t.future().text;return e in Ii?"\\ldots\\,":"\\ldots"})),Di("\\dotsc",(function(t){var e=t.future().text;return e in Ii&&","!==e?"\\ldots\\,":"\\ldots"})),Di("\\cdots",(function(t){var e=t.future().text;return e in Ii?"\\@cdots\\,":"\\@cdots"})),Di("\\dotsb","\\cdots"),Di("\\dotsm","\\cdots"),Di("\\dotsi","\\!\\cdots"),Di("\\dotsx","\\ldots\\,"),Di("\\DOTSI","\\relax"),Di("\\DOTSB","\\relax"),Di("\\DOTSX","\\relax"),Di("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Di("\\,","\\tmspace+{3mu}{.1667em}"),Di("\\thinspace","\\,"),Di("\\>","\\mskip{4mu}"),Di("\\:","\\tmspace+{4mu}{.2222em}"),Di("\\medspace","\\:"),Di("\\;","\\tmspace+{5mu}{.2777em}"),Di("\\thickspace","\\;"),Di("\\!","\\tmspace-{3mu}{.1667em}"),Di("\\negthinspace","\\!"),Di("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Di("\\negthickspace","\\tmspace-{5mu}{.277em}"),Di("\\enspace","\\kern.5em "),Di("\\enskip","\\hskip.5em\\relax"),Di("\\quad","\\hskip1em\\relax"),Di("\\qquad","\\hskip2em\\relax"),Di("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Di("\\tag@paren","\\tag@literal{({#1})}"),Di("\\tag@literal",(function(t){if(t.macros.get("\\df@tag"))throw new o("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Di("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Di("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Di("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Di("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Di("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Di("\\\\","\\newline"),Di("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ri=ht["Main-Regular"]["T".charCodeAt(0)][1]-.7*ht["Main-Regular"]["A".charCodeAt(0)][1]+"em";Di("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Ri+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Di("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Ri+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Di("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Di("\\@hspace","\\hskip #1\\relax"),Di("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Di("\\ordinarycolon",":"),Di("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Di("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Di("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Di("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Di("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Di("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Di("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Di("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Di("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Di("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Di("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Di("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Di("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Di("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Di("∷","\\dblcolon"),Di("∹","\\eqcolon"),Di("≔","\\coloneqq"),Di("≕","\\eqqcolon"),Di("⩴","\\Coloneqq"),Di("\\ratio","\\vcentcolon"),Di("\\coloncolon","\\dblcolon"),Di("\\colonequals","\\coloneqq"),Di("\\coloncolonequals","\\Coloneqq"),Di("\\equalscolon","\\eqqcolon"),Di("\\equalscoloncolon","\\Eqqcolon"),Di("\\colonminus","\\coloneq"),Di("\\coloncolonminus","\\Coloneq"),Di("\\minuscolon","\\eqcolon"),Di("\\minuscoloncolon","\\Eqcolon"),Di("\\coloncolonapprox","\\Colonapprox"),Di("\\coloncolonsim","\\Colonsim"),Di("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Di("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Di("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Di("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Di("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Di("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Di("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Di("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Di("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Di("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Di("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Di("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Di("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Di("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Di("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Di("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Di("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Di("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Di("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Di("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Di("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Di("\\imath","\\html@mathml{\\@imath}{ı}"),Di("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Di("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Di("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Di("⟦","\\llbracket"),Di("⟧","\\rrbracket"),Di("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Di("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Di("⦃","\\lBrace"),Di("⦄","\\rBrace"),Di("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Di("⦵","\\minuso"),Di("\\darr","\\downarrow"),Di("\\dArr","\\Downarrow"),Di("\\Darr","\\Downarrow"),Di("\\lang","\\langle"),Di("\\rang","\\rangle"),Di("\\uarr","\\uparrow"),Di("\\uArr","\\Uparrow"),Di("\\Uarr","\\Uparrow"),Di("\\N","\\mathbb{N}"),Di("\\R","\\mathbb{R}"),Di("\\Z","\\mathbb{Z}"),Di("\\alef","\\aleph"),Di("\\alefsym","\\aleph"),Di("\\Alpha","\\mathrm{A}"),Di("\\Beta","\\mathrm{B}"),Di("\\bull","\\bullet"),Di("\\Chi","\\mathrm{X}"),Di("\\clubs","\\clubsuit"),Di("\\cnums","\\mathbb{C}"),Di("\\Complex","\\mathbb{C}"),Di("\\Dagger","\\ddagger"),Di("\\diamonds","\\diamondsuit"),Di("\\empty","\\emptyset"),Di("\\Epsilon","\\mathrm{E}"),Di("\\Eta","\\mathrm{H}"),Di("\\exist","\\exists"),Di("\\harr","\\leftrightarrow"),Di("\\hArr","\\Leftrightarrow"),Di("\\Harr","\\Leftrightarrow"),Di("\\hearts","\\heartsuit"),Di("\\image","\\Im"),Di("\\infin","\\infty"),Di("\\Iota","\\mathrm{I}"),Di("\\isin","\\in"),Di("\\Kappa","\\mathrm{K}"),Di("\\larr","\\leftarrow"),Di("\\lArr","\\Leftarrow"),Di("\\Larr","\\Leftarrow"),Di("\\lrarr","\\leftrightarrow"),Di("\\lrArr","\\Leftrightarrow"),Di("\\Lrarr","\\Leftrightarrow"),Di("\\Mu","\\mathrm{M}"),Di("\\natnums","\\mathbb{N}"),Di("\\Nu","\\mathrm{N}"),Di("\\Omicron","\\mathrm{O}"),Di("\\plusmn","\\pm"),Di("\\rarr","\\rightarrow"),Di("\\rArr","\\Rightarrow"),Di("\\Rarr","\\Rightarrow"),Di("\\real","\\Re"),Di("\\reals","\\mathbb{R}"),Di("\\Reals","\\mathbb{R}"),Di("\\Rho","\\mathrm{P}"),Di("\\sdot","\\cdot"),Di("\\sect","\\S"),Di("\\spades","\\spadesuit"),Di("\\sub","\\subset"),Di("\\sube","\\subseteq"),Di("\\supe","\\supseteq"),Di("\\Tau","\\mathrm{T}"),Di("\\thetasym","\\vartheta"),Di("\\weierp","\\wp"),Di("\\Zeta","\\mathrm{Z}"),Di("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Di("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Di("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Di("\\bra","\\mathinner{\\langle{#1}|}"),Di("\\ket","\\mathinner{|{#1}\\rangle}"),Di("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Di("\\Bra","\\left\\langle#1\\right|"),Di("\\Ket","\\left|#1\\right\\rangle"),Di("\\blue","\\textcolor{##6495ed}{#1}"),Di("\\orange","\\textcolor{##ffa500}{#1}"),Di("\\pink","\\textcolor{##ff00af}{#1}"),Di("\\red","\\textcolor{##df0030}{#1}"),Di("\\green","\\textcolor{##28ae7b}{#1}"),Di("\\gray","\\textcolor{gray}{#1}"),Di("\\purple","\\textcolor{##9d38bd}{#1}"),Di("\\blueA","\\textcolor{##ccfaff}{#1}"),Di("\\blueB","\\textcolor{##80f6ff}{#1}"),Di("\\blueC","\\textcolor{##63d9ea}{#1}"),Di("\\blueD","\\textcolor{##11accd}{#1}"),Di("\\blueE","\\textcolor{##0c7f99}{#1}"),Di("\\tealA","\\textcolor{##94fff5}{#1}"),Di("\\tealB","\\textcolor{##26edd5}{#1}"),Di("\\tealC","\\textcolor{##01d1c1}{#1}"),Di("\\tealD","\\textcolor{##01a995}{#1}"),Di("\\tealE","\\textcolor{##208170}{#1}"),Di("\\greenA","\\textcolor{##b6ffb0}{#1}"),Di("\\greenB","\\textcolor{##8af281}{#1}"),Di("\\greenC","\\textcolor{##74cf70}{#1}"),Di("\\greenD","\\textcolor{##1fab54}{#1}"),Di("\\greenE","\\textcolor{##0d923f}{#1}"),Di("\\goldA","\\textcolor{##ffd0a9}{#1}"),Di("\\goldB","\\textcolor{##ffbb71}{#1}"),Di("\\goldC","\\textcolor{##ff9c39}{#1}"),Di("\\goldD","\\textcolor{##e07d10}{#1}"),Di("\\goldE","\\textcolor{##a75a05}{#1}"),Di("\\redA","\\textcolor{##fca9a9}{#1}"),Di("\\redB","\\textcolor{##ff8482}{#1}"),Di("\\redC","\\textcolor{##f9685d}{#1}"),Di("\\redD","\\textcolor{##e84d39}{#1}"),Di("\\redE","\\textcolor{##bc2612}{#1}"),Di("\\maroonA","\\textcolor{##ffbde0}{#1}"),Di("\\maroonB","\\textcolor{##ff92c6}{#1}"),Di("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Di("\\maroonD","\\textcolor{##ca337c}{#1}"),Di("\\maroonE","\\textcolor{##9e034e}{#1}"),Di("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Di("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Di("\\purpleC","\\textcolor{##aa87ff}{#1}"),Di("\\purpleD","\\textcolor{##7854ab}{#1}"),Di("\\purpleE","\\textcolor{##543b78}{#1}"),Di("\\mintA","\\textcolor{##f5f9e8}{#1}"),Di("\\mintB","\\textcolor{##edf2df}{#1}"),Di("\\mintC","\\textcolor{##e0e5cc}{#1}"),Di("\\grayA","\\textcolor{##f6f7f7}{#1}"),Di("\\grayB","\\textcolor{##f0f1f2}{#1}"),Di("\\grayC","\\textcolor{##e3e5e6}{#1}"),Di("\\grayD","\\textcolor{##d6d8da}{#1}"),Di("\\grayE","\\textcolor{##babec2}{#1}"),Di("\\grayF","\\textcolor{##888d93}{#1}"),Di("\\grayG","\\textcolor{##626569}{#1}"),Di("\\grayH","\\textcolor{##3b3e40}{#1}"),Di("\\grayI","\\textcolor{##21242c}{#1}"),Di("\\kaBlue","\\textcolor{##314453}{#1}"),Di("\\kaGreen","\\textcolor{##71B307}{#1}");var Fi={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Pi=function(){function t(t,e,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=e,this.expansionCount=0,this.feed(t),this.macros=new Ai(Ni,e.macros),this.mode=n,this.stack=[]}var e=t.prototype;return e.feed=function(t){this.lexer=new Ti(t,this.settings)},e.switchMode=function(t){this.mode=t},e.beginGroup=function(){this.macros.beginGroup()},e.endGroup=function(){this.macros.endGroup()},e.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},e.popToken=function(){return this.future(),this.stack.pop()},e.pushToken=function(t){this.stack.push(t)},e.pushTokens=function(t){var e;(e=this.stack).push.apply(e,t)},e.consumeSpaces=function(){for(;;){var t=this.future();if(" "!==t.text)break;this.stack.pop()}},e.consumeArgs=function(t){for(var e=[],n=0;n<t;++n){this.consumeSpaces();var r=this.popToken();if("{"===r.text){var i=[],a=1;while(0!==a){var s=this.popToken();if(i.push(s),"{"===s.text)++a;else if("}"===s.text)--a;else if("EOF"===s.text)throw new o("End of input in macro argument",r)}i.pop(),i.reverse(),e[n]=i}else{if("EOF"===r.text)throw new o("End of input expecting macro argument");e[n]=[r]}}return e},e.expandOnce=function(t){var e=this.popToken(),n=e.text,r=e.noexpand?null:this._getExpansion(n);if(null==r||t&&r.unexpandable){if(t&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new o("Undefined control sequence: "+n);return this.pushToken(e),e}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new o("Too many expansions: infinite loop or need to increase maxExpand setting");var i=r.tokens;if(r.numArgs){var a=this.consumeArgs(r.numArgs);i=i.slice();for(var s=i.length-1;s>=0;--s){var l=i[s];if("#"===l.text){if(0===s)throw new o("Incomplete placeholder at end of macro body",l);if(l=i[--s],"#"===l.text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new o("Not a valid argument number",l);var c;(c=i).splice.apply(c,[s,2].concat(a[+l.text-1]))}}}}return this.pushTokens(i),i},e.expandAfterFuture=function(){return this.expandOnce(),this.future()},e.expandNextToken=function(){for(;;){var t=this.expandOnce();if(t instanceof i){if("\\relax"!==t.text&&!t.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},e.expandMacro=function(t){return this.macros.has(t)?this.expandTokens([new i(t)]):void 0},e.expandTokens=function(t){var e=[],n=this.stack.length;this.pushTokens(t);while(this.stack.length>n){var r=this.expandOnce(!0);r instanceof i&&(r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),e.push(this.stack.pop()))}return e},e.expandMacroAsText=function(t){var e=this.expandMacro(t);return e?e.map((function(t){return t.text})).join(""):e},e._getExpansion=function(t){var e=this.macros.get(t);if(null==e)return e;var n="function"===typeof e?e(this):e;if("string"===typeof n){var r=0;if(-1!==n.indexOf("#")){var i=n.replace(/##/g,"");while(-1!==i.indexOf("#"+(r+1)))++r}var a=new Ti(n,this.settings),o=[],s=a.lex();while("EOF"!==s.text)o.push(s),s=a.lex();o.reverse();var l={tokens:o,numArgs:r};return l}return n},e.isDefined=function(t){return this.macros.has(t)||vi.hasOwnProperty(t)||xt.math.hasOwnProperty(t)||xt.text.hasOwnProperty(t)||Fi.hasOwnProperty(t)},e.isExpandable=function(t){var e=this.macros.get(t);return null!=e?"string"===typeof e||"function"===typeof e||!e.unexpandable:vi.hasOwnProperty(t)},t}(),zi={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},qi={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},ji=function(){function t(t,e){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Pi(t,e,this.mode),this.settings=e,this.leftrightDepth=0}var e=t.prototype;return e.expect=function(t,e){if(void 0===e&&(e=!0),this.fetch().text!==t)throw new o("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());e&&this.consume()},e.consume=function(){this.nextToken=null},e.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},e.switchMode=function(t){this.mode=t,this.gullet.switchMode(t)},e.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t},e.parseExpression=function(e,n){var r=[];while(1){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==t.endOfExpression.indexOf(i.text))break;if(n&&i.text===n)break;if(e&&vi[i.text]&&vi[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;"internal"!==a.type&&r.push(a)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},e.handleInfixNodes=function(t){for(var e,n=-1,r=0;r<t.length;r++)if("infix"===t[r].type){if(-1!==n)throw new o("only one infix operator per group",t[r].token);n=r,e=t[r].replaceWith}if(-1!==n&&e){var i,a,s,l=t.slice(0,n),c=t.slice(n+1);return i=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},a=1===c.length&&"ordgroup"===c[0].type?c[0]:{type:"ordgroup",mode:this.mode,body:c},s="\\\\abovefrac"===e?this.callFunction(e,[i,t[n],a],[]):this.callFunction(e,[i,a],[]),[s]}return t},e.handleSupSubscript=function(e){var n=this.fetch(),r=n.text;this.consume();var i=this.parseGroup(e,!1,t.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!i)throw new o("Expected group after '"+r+"'",n);return i},e.formatUnsupportedCmd=function(t){for(var e=[],n=0;n<t.length;n++)e.push({type:"textord",mode:"text",text:t[n]});var r={type:"text",mode:this.mode,body:e},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]};return i},e.parseAtom=function(t){var e,n,r=this.parseGroup("atom",!1,null,t);if("text"===this.mode)return r;while(1){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(r&&"op"===r.type){var a="\\limits"===i.text;r.limits=a,r.alwaysHandleSupSub=!0}else{if(!r||"operatorname"!==r.type||!r.alwaysHandleSupSub)throw new o("Limit controls must follow a math operator",i);var s="\\limits"===i.text;r.limits=s}this.consume()}else if("^"===i.text){if(e)throw new o("Double superscript",i);e=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new o("Double subscript",i);n=this.handleSupSubscript("subscript")}else{if("'"!==i.text)break;if(e)throw new o("Double superscript",i);var l={type:"textord",mode:this.mode,text:"\\prime"},c=[l];this.consume();while("'"===this.fetch().text)c.push(l),this.consume();"^"===this.fetch().text&&c.push(this.handleSupSubscript("superscript")),e={type:"ordgroup",mode:this.mode,body:c}}}return e||n?{type:"supsub",mode:this.mode,base:r,sup:e,sub:n}:r},e.parseFunction=function(t,e,n){var r=this.fetch(),i=r.text,a=vi[i];if(!a)return null;if(this.consume(),null!=n&&a.greediness<=n)throw new o("Got function '"+i+"' with no arguments"+(e?" as "+e:""),r);if("text"===this.mode&&!a.allowedInText)throw new o("Can't use function '"+i+"' in text mode",r);if("math"===this.mode&&!1===a.allowedInMath)throw new o("Can't use function '"+i+"' in math mode",r);var s=this.parseArguments(i,a),l=s.args,c=s.optArgs;return this.callFunction(i,l,c,r,t)},e.callFunction=function(t,e,n,r,i){var a={funcName:t,parser:this,token:r,breakOnTokenText:i},s=vi[t];if(s&&s.handler)return s.handler(a,e,n);throw new o("No function handler for "+t)},e.parseArguments=function(t,e){var n=e.numArgs+e.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=e.greediness,i=[],a=[],s=0;s<n;s++){var l=e.argTypes&&e.argTypes[s],c=s<e.numOptionalArgs,u=s>0&&!c||0===s&&!c&&"math"===this.mode,h=this.parseGroupOfType("argument to '"+t+"'",l,c,r,u);if(!h){if(c){a.push(null);continue}throw new o("Expected group after '"+t+"'",this.fetch())}(c?a:i).push(h)}return{args:i,optArgs:a}},e.parseGroupOfType=function(t,e,n,r,i){switch(e){case"color":return i&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return i&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,i);case"math":case"text":return this.parseGroup(t,n,r,void 0,e,i);case"hbox":var a=this.parseGroup(t,n,r,void 0,"text",i);if(!a)return a;var s={type:"styling",mode:a.mode,body:[a],style:"text"};return s;case"raw":if(i&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var l=this.parseStringGroup("raw",n,!0);if(l)return{type:"raw",mode:"text",string:l.text};throw new o("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(t,n,r,void 0,void 0,i);default:throw new o("Unknown group type as "+t,this.fetch())}},e.consumeSpaces=function(){while(" "===this.fetch().text)this.consume()},e.parseStringGroup=function(t,e,n){var r=e?"[":"{",i=e?"]":"}",a=this.fetch();if(a.text!==r){if(e)return null;if(n&&"EOF"!==a.text&&/[^{}[\]]/.test(a.text))return this.consume(),a}var s=this.mode;this.mode="text",this.expect(r);var l,c="",u=this.fetch(),h=0,f=u;while((l=this.fetch()).text!==i||n&&h>0){switch(l.text){case"EOF":throw new o("Unexpected end of input in "+t,u.range(f,c));case r:h++;break;case i:h--;break}f=l,c+=f.text,this.consume()}return this.expect(i),this.mode=s,u.range(f,c)},e.parseRegexGroup=function(t,e){var n=this.mode;this.mode="text";var r,i=this.fetch(),a=i,s="";while("EOF"!==(r=this.fetch()).text&&t.test(s+r.text))a=r,s+=a.text,this.consume();if(""===s)throw new o("Invalid "+e+": '"+i.text+"'",i);return this.mode=n,i.range(a,s)},e.parseColorGroup=function(t){var e=this.parseStringGroup("color",t);if(!e)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(e.text);if(!n)throw new o("Invalid color: '"+e.text+"'",e);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}},e.parseSizeGroup=function(t){var e,n=!1;if(e=t||"{"===this.fetch().text?this.parseStringGroup("size",t):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"),!e)return null;t||0!==e.text.length||(e.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e.text);if(!r)throw new o("Invalid size: '"+e.text+"'",e);var i={number:+(r[1]+r[2]),unit:r[3]};if(!fe(i))throw new o("Invalid unit: '"+i.unit+"'",e);return{type:"size",mode:this.mode,value:i,isBlank:n}},e.parseUrlGroup=function(t,e){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",t,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}},e.parseGroup=function(e,n,i,a,s,l){var c=this.mode;s&&this.switchMode(s),l&&this.consumeSpaces();var u,h=this.fetch(),f=h.text;if(n?"["===f:"{"===f||"\\begingroup"===f){this.consume();var d=t.endOfGroup[f];this.gullet.beginGroup();var p=this.parseExpression(!1,d),g=this.fetch();this.expect(d),this.gullet.endGroup(),u={type:"ordgroup",mode:this.mode,loc:r.range(h,g),body:p,semisimple:"\\begingroup"===f||void 0}}else if(n)u=null;else if(u=this.parseFunction(a,e,i)||this.parseSymbol(),null==u&&"\\"===f[0]&&!Fi.hasOwnProperty(f)){if(this.settings.throwOnError)throw new o("Undefined control sequence: "+f,h);u=this.formatUnsupportedCmd(f),this.consume()}return s&&this.switchMode(c),u},e.formLigatures=function(t){for(var e=t.length-1,n=0;n<e;++n){var i=t[n],a=i.text;"-"===a&&"-"===t[n+1].text&&(n+1<e&&"-"===t[n+2].text?(t.splice(n,3,{type:"textord",mode:"text",loc:r.range(i,t[n+2]),text:"---"}),e-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:r.range(i,t[n+1]),text:"--"}),e-=1)),"'"!==a&&"`"!==a||t[n+1].text!==a||(t.splice(n,2,{type:"textord",mode:"text",loc:r.range(i,t[n+1]),text:a+a}),e-=1)}},e.parseSymbol=function(){var t=this.fetch(),e=t.text;if(/^\\verb[^a-zA-Z]/.test(e)){this.consume();var n=e.slice(5),i="*"===n.charAt(0);if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new o("\\verb assertion failed --\n please report what input caused this bug");return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}qi.hasOwnProperty(e[0])&&!xt[this.mode][e[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+e[0]+'" used in math mode',t),e=qi[e[0]]+e.substr(1));var a,s=Ei.exec(e);if(s&&(e=e.substring(0,s.index),"i"===e?e="ı":"j"===e&&(e="ȷ")),xt[this.mode][e]){this.settings.strict&&"math"===this.mode&&Jt.indexOf(e)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var l,c=xt[this.mode][e].group,u=r.range(t);if(vt.hasOwnProperty(c)){var h=c;l={type:"atom",mode:this.mode,family:h,loc:u,text:e}}else l={type:c,mode:this.mode,loc:u,text:e};a=l}else{if(!(e.charCodeAt(0)>=128))return null;this.settings.strict&&(q(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),a={type:"textord",mode:"text",loc:r.range(t),text:e}}if(this.consume(),s)for(var f=0;f<s[0].length;f++){var d=s[0][f];if(!zi[d])throw new o("Unknown accent ' "+d+"'",t);var p=zi[d][this.mode];if(!p)throw new o("Accent "+d+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:r.range(t),label:p,isStretchy:!1,isShifty:!0,base:a}}return a},t}();ji.endOfExpression=["}","\\endgroup","\\end","\\right","&"],ji.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},ji.SUPSUB_GREEDINESS=1;var Hi=function(t,e){if(!("string"===typeof t||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new ji(t,e);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(n.gullet.macros.get("\\df@tag")){if(!e.displayMode)throw new o("\\tag works only in display equations");n.gullet.feed("\\df@tag"),r=[{type:"tag",mode:"text",body:r,tag:n.parse()}]}return r},Ui=Hi,$i=function(t,e,n){e.textContent="";var r=Gi(t,n).toNode();e.appendChild(r)};"undefined"!==typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!==typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),$i=function(){throw new o("KaTeX doesn't work in quirks mode.")});var Wi=function(t,e){var n=Gi(t,e).toMarkup();return n},Yi=function(t,e){var n=new b(e);return Ui(t,n)},Vi=function(t,e,n){if(n.throwOnError||!(t instanceof o))throw t;var r=Ie.makeSpan(["katex-error"],[new at(e)]);return r.setAttribute("title",t.toString()),r.setAttribute("style","color:"+n.errorColor),r},Gi=function(t,e){var n=new b(e);try{var r=Ui(t,n);return wn(r,t,n)}catch(i){return Vi(i,t,n)}},Xi=function(t,e){var n=new b(e);try{var r=Ui(t,n);return kn(r,t,n)}catch(i){return Vi(i,t,n)}},Zi={version:"0.12.0",render:$i,renderToString:Wi,ParseError:o,__parse:Yi,__renderToDomTree:Gi,__renderToHTMLTree:Xi,__setFontMetrics:pt,__defineSymbol:wt,__defineMacro:Di,__domTree:{Span:et,Anchor:nt,SymbolNode:at,SvgNode:ot,PathNode:st,LineNode:lt}};e["default"]=Zi}])["default"]}))})(Upt);var $pt=Upt.exports;function Wpt(t,e){var n,r,i=t.posMax,a=!0,o=!0;return n=e>0?t.src.charCodeAt(e-1):-1,r=e+1<=i?t.src.charCodeAt(e+1):-1,(32===n||9===n||r>=48&&r<=57)&&(o=!1),32!==r&&9!==r||(a=!1),{can_open:a,can_close:o}}function Ypt(t,e){var n,r,i,a,o;if("$"!==t.src[t.pos])return!1;if(a=Wpt(t,t.pos),!a.can_open)return e||(t.pending+="$"),t.pos+=1,!0;n=t.pos+1,r=n;while(-1!==(r=t.src.indexOf("$",r))){o=r-1;while("\\"===t.src[o])o-=1;if((r-o)%2==1)break;r+=1}return-1===r?(e||(t.pending+="$"),t.pos=n,!0):r-n===0?(e||(t.pending+="$$"),t.pos=n+1,!0):(a=Wpt(t,r),a.can_close?(e||(i=t.push("math_inline","math",0),i.markup="$",i.content=t.src.slice(n,r)),t.pos=r+1,!0):(e||(t.pending+="$"),t.pos=n,!0))}function Vpt(t,e,n,r){var i,a,o,s,l,c=!1,u=t.bMarks[e]+t.tShift[e],h=t.eMarks[e];if(u+2>h)return!1;if("$$"!==t.src.slice(u,u+2))return!1;if(u+=2,i=t.src.slice(u,h),r)return!0;for("$$"===i.trim().slice(-2)&&(i=i.trim().slice(0,-2),c=!0),o=e;!c;){if(o++,o>=n)break;if(u=t.bMarks[o]+t.tShift[o],h=t.eMarks[o],u<h&&t.tShift[o]<t.blkIndent)break;"$$"===t.src.slice(u,h).trim().slice(-2)&&(s=t.src.slice(0,h).lastIndexOf("$$"),a=t.src.slice(u,s),c=!0)}return t.line=o+1,l=t.push("math_block","math",0),l.block=!0,l.content=(i&&i.trim()?i+"\n":"")+t.getLines(e+1,o,t.tShift[e],!0)+(a&&a.trim()?a:""),l.map=[e,t.line],l.markup="$$",!0}function Gpt(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var Xpt=function(t,e){e=e||{};var n=function(t){e.displayMode=!1;try{return $pt.renderToString(t,e)}catch(n){return e.throwOnError&&console.log(n),`<span class='katex-error' title='${Gpt(n.toString())}'>${Gpt(t)}</span>`}},r=function(t,e){return n(t[e].content)},i=function(t){e.displayMode=!0;try{return"<p class='katex-block'>"+$pt.renderToString(t,e)+"</p>"}catch(n){return e.throwOnError&&console.log(n),`<p class='katex-block katex-error' title='${Gpt(n.toString())}'>${Gpt(t)}</p>`}},a=function(t,e){return i(t[e].content)+"\n"};t.inline.ruler.after("escape","math_inline",Ypt),t.block.ruler.after("blockquote","math_block",Vpt,{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules.math_inline=r,t.renderer.rules.math_block=a},Zpt=function(t){function e(t,e){var n,r,i,a,o,s=t.pos,l=t.src.charCodeAt(s);if(e)return!1;if(61!==l)return!1;if(r=t.scanDelims(t.pos,!0),a=r.length,o=String.fromCharCode(l),a<2)return!1;for(a%2&&(i=t.push("text","",0),i.content=o,a--),n=0;n<a;n+=2)i=t.push("text","",0),i.content=o+o,(r.can_open||r.can_close)&&t.delimiters.push({marker:l,length:0,jump:n/2,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0}function n(t,e){var n,r,i,a,o,s=[],l=e.length;for(n=0;n<l;n++)i=e[n],61===i.marker&&-1!==i.end&&(a=e[i.end],o=t.tokens[i.token],o.type="mark_open",o.tag="mark",o.nesting=1,o.markup="==",o.content="",o=t.tokens[a.token],o.type="mark_close",o.tag="mark",o.nesting=-1,o.markup="==",o.content="","text"===t.tokens[a.token-1].type&&"="===t.tokens[a.token-1].content&&s.push(a.token-1));while(s.length){n=s.pop(),r=n+1;while(r<t.tokens.length&&"mark_close"===t.tokens[r].type)r++;r--,n!==r&&(o=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=o)}}t.inline.ruler.before("emphasis","mark",e),t.inline.ruler2.before("emphasis","mark",(function(t){var e,r=t.tokens_meta,i=(t.tokens_meta||[]).length;for(n(t,t.delimiters),e=0;e<i;e++)r[e]&&r[e].delimiters&&n(t,r[e].delimiters)}))},Kpt=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Qpt(t,e){var n,r,i,a=t.posMax,o=t.pos;if(126!==t.src.charCodeAt(o))return!1;if(e)return!1;if(o+2>=a)return!1;t.pos=o+1;while(t.pos<a){if(126===t.src.charCodeAt(t.pos)){n=!0;break}t.md.inline.skipToken(t)}return n&&o+1!==t.pos?(r=t.src.slice(o+1,t.pos),r.match(/(^|[^\\])(\\\\)*\s/)?(t.pos=o,!1):(t.posMax=t.pos,t.pos=o+1,i=t.push("sub_open","sub",1),i.markup="~",i=t.push("text","",0),i.content=r.replace(Kpt,"$1"),i=t.push("sub_close","sub",-1),i.markup="~",t.pos=t.posMax+1,t.posMax=a,!0)):(t.pos=o,!1)}var Jpt=function(t){t.inline.ruler.after("emphasis","sub",Qpt)},tgt=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function egt(t,e){var n,r,i,a=t.posMax,o=t.pos;if(94!==t.src.charCodeAt(o))return!1;if(e)return!1;if(o+2>=a)return!1;t.pos=o+1;while(t.pos<a){if(94===t.src.charCodeAt(t.pos)){n=!0;break}t.md.inline.skipToken(t)}return n&&o+1!==t.pos?(r=t.src.slice(o+1,t.pos),r.match(/(^|[^\\])(\\\\)*\s/)?(t.pos=o,!1):(t.posMax=t.pos,t.pos=o+1,i=t.push("sup_open","sup",1),i.markup="^",i=t.push("text","",0),i.content=r.replace(tgt,"$1"),i=t.push("sup_close","sup",-1),i.markup="^",t.pos=t.posMax+1,t.posMax=a,!0)):(t.pos=o,!1)}var ngt=function(t){t.inline.ruler.after("emphasis","sup",egt)};const rgt=function(t){return encodeURIComponent(String(t).trim().toLowerCase().replace(/\s+/g,"-"))},igt={includeLevel:[1,2],containerClass:"table-of-contents",slugify:rgt,markerPattern:/^\[\[toc\]\]/im,listType:"ul",format:function(t,e){return e.renderInline(t)},forceFullToc:!1,containerHeaderHtml:void 0,containerFooterHtml:void 0,transformLink:void 0};function agt(t,e,n){const r=[];let i=null;return e.forEach((e=>{if("heading_open"===e.type){const n=ogt(e),r=parseInt(e.tag.toLowerCase().replace("h",""),10);t.indexOf(r)>=0&&(i={level:r,text:null,anchor:n||null})}else if(i&&"inline"===e.type){const t=e.children.filter((t=>"text"===t.type||"code_inline"===t.type)).reduce(((t,e)=>t+e.content),"");i.text=t,i.anchor||(i.anchor=n.slugify(t,e.content))}else"heading_close"===e.type&&(i&&r.push(i),i=null)})),r}function ogt(t){if(t&&t.attrs&&t.attrs.length>0){const e=t.attrs.find((t=>!!(Array.isArray(t)&&t.length>=2)&&"id"===t[0]));if(e&&Array.isArray(e)&&e.length>=2){const[t,n]=e;return n}}return null}function sgt(t){return Math.min(...t.map((t=>t.level)))}function lgt(t,e,n,r){const i={level:t,text:e,anchor:n,children:[],parent:r};return r.children.push(i),i}function cgt(t){const e={level:sgt(t)-1,anchor:null,text:null,children:[],parent:null};let n=e,r=n;return t.forEach((t=>{if(t.level>r.level)Array.from({length:t.level-r.level}).forEach((e=>{n=r,r=lgt(t.level,null,null,n)})),r.text=t.text,r.anchor=t.anchor;else if(t.level===r.level)r=lgt(t.level,t.text,t.anchor,n);else if(t.level<r.level){for(let e=0;e<r.level-t.level;e++)n=n.parent;r=lgt(t.level,t.text,t.anchor,n)}})),e}function ugt(t,e,n){return"<"+e.listType+">"+t.children.map((t=>{let r="<li>",i=t.anchor;e&&e.transformLink&&(i=e.transformLink(i));let a=t.text?e.format(t.text,n,i):null;return r+=i?`<a href="#${i}">${a}</a>`:a||"",r+(t.children.length>0?ugt(t,e,n):"")+"</li>"})).join("")+"</"+e.listType+">"}var hgt=function(t,e){const n=Object.assign({},igt,e),r=n.markerPattern;let i;function a(t,e){let n,i;if(91!==t.src.charCodeAt(t.pos))return!1;if(e)return!1;if(i=r.exec(t.src.substr(t.pos)),i=i?i.filter((function(t){return t})):[],i.length<1)return!1;n=t.push("toc_open","toc",1),n.markup="[[toc]]",n=t.push("toc_body","",0),n=t.push("toc_close","toc",-1);var a=t.src.indexOf("\n",t.pos);return t.pos=-1!==a?a:t.pos+t.posMax+1,!0}t.renderer.rules.toc_open=function(t,e){var r='<div class="'+n.containerClass+'">';return n.containerHeaderHtml&&(r+=n.containerHeaderHtml),r},t.renderer.rules.toc_close=function(t,e){var r="";return n.containerFooterHtml&&(r=n.containerFooterHtml),r+"</div>"},t.renderer.rules.toc_body=function(e,r){if(n.forceFullToc)throw"forceFullToc was removed in version 0.5.0. For more information, see https://github.com/Oktavilla/markdown-it-table-of-contents/pull/41";{const e=agt(n.includeLevel,i.tokens,n),r=cgt(e),a=ugt(r,n,t);return a}},t.core.ruler.push("grab_state",(function(t){i=t})),t.inline.ruler.after("emphasis","toc",a)},fgt=!0,dgt=!1,pgt=!1,ggt=function(t,e){e&&(fgt=!e.enabled,dgt=!!e.label,pgt=!!e.labelAfter),t.core.ruler.after("inline","github-task-lists",(function(t){for(var e=t.tokens,n=2;n<e.length;n++)vgt(e,n)&&(bgt(e[n],t.Token),mgt(e[n-2],"class","task-list-item"+(fgt?"":" enabled")),mgt(e[ygt(e,n-2)],"class","contains-task-list"))}))};function mgt(t,e,n){var r=t.attrIndex(e),i=[e,n];r<0?t.attrPush(i):t.attrs[r]=i}function ygt(t,e){for(var n=t[e].level-1,r=e-1;r>=0;r--)if(t[r].level===n)return r;return-1}function vgt(t,e){return Cgt(t[e])&&Egt(t[e-1])&&Sgt(t[e-2])&&Tgt(t[e])}function bgt(t,e){if(t.children.unshift(_gt(t,e)),t.children[1].content=t.children[1].content.slice(3),t.content=t.content.slice(3),dgt)if(pgt){t.children.pop();var n="task-item-"+Math.ceil(1e7*Math.random()-1e3);t.children[0].content=t.children[0].content.slice(0,-1)+' id="'+n+'">',t.children.push(kgt(t.content,n,e))}else t.children.unshift(xgt(e)),t.children.push(wgt(e))}function _gt(t,e){var n=new e("html_inline","",0),r=fgt?' disabled="" ':"";return 0===t.content.indexOf("[ ] ")?n.content='<input class="task-list-item-checkbox"'+r+'type="checkbox">':0!==t.content.indexOf("[x] ")&&0!==t.content.indexOf("[X] ")||(n.content='<input class="task-list-item-checkbox" checked=""'+r+'type="checkbox">'),n}function xgt(t){var e=new t("html_inline","",0);return e.content="<label>",e}function wgt(t){var e=new t("html_inline","",0);return e.content="</label>",e}function kgt(t,e,n){var r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+e+'">'+t+"</label>",r.attrs=[{for:e}],r}function Cgt(t){return"inline"===t.type}function Egt(t){return"paragraph_open"===t.type}function Sgt(t){return"list_item_open"===t.type}function Tgt(t){return 0===t.content.indexOf("[ ] ")||0===t.content.indexOf("[x] ")||0===t.content.indexOf("[X] ")}
|
|
|
/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var Agt={1362:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,6],n=[1,7],r=[1,8],i=[1,9],a=[1,12],o=[1,11],s=[1,15,24],l=[1,19],c=[1,31],u=[1,34],h=[1,32],f=[1,33],d=[1,35],p=[1,36],g=[1,37],m=[1,38],y=[1,41],v=[1,42],b=[1,43],_=[1,44],x=[15,24],w=[1,56],k=[1,57],C=[1,58],E=[1,59],S=[1,60],T=[1,61],A=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],M=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],N=[7,8,9,10,15,18,22,24],D=[47,77,78,79,80],O=[47,54,55,77,78,79,80],L=[47,50,51,52,53,77,78,79,80],B=[15,24,31],I=[1,93],R={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setDirection("TB");break;case 5:r.setDirection("BT");break;case 6:r.setDirection("RL");break;case 7:r.setDirection("LR");break;case 11:r.parseDirective("%%{","open_directive");break;case 12:r.parseDirective(a[s],"type_directive");break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 14:r.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=a[s];break;case 21:this.$=a[s-1]+a[s];break;case 22:case 23:this.$=a[s-1]+"~"+a[s];break;case 24:r.addRelation(a[s]);break;case 25:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 33:r.addClass(a[s]);break;case 34:r.addClass(a[s-2]),r.setCssClass(a[s-2],a[s]);break;case 35:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 36:r.addClass(a[s-5]),r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 37:r.addAnnotation(a[s],a[s-2]);break;case 38:this.$=[a[s]];break;case 39:a[s].push(a[s-1]),this.$=a[s];break;case 40:case 42:case 43:break;case 41:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 44:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 46:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 47:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 48:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 49:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 50:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 51:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 52:this.$=r.relationType.AGGREGATION;break;case 53:this.$=r.relationType.EXTENSION;break;case 54:this.$=r.relationType.COMPOSITION;break;case 55:this.$=r.relationType.DEPENDENCY;break;case 56:this.$=r.lineType.LINE;break;case 57:this.$=r.lineType.DOTTED_LINE;break;case 58:case 64:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 59:case 65:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 60:case 68:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 61:case 69:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 62:case 70:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 63:case 71:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 66:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 67:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 72:r.setCssClass(a[s-1],a[s])}},table:[{3:1,4:2,5:3,6:4,7:e,8:n,9:r,10:i,11:5,12:10,18:a,22:o},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:e,8:n,9:r,10:i,11:5,12:10,18:a,22:o},{1:[2,8]},t(s,[2,4]),t(s,[2,5]),t(s,[2,6]),t(s,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:l},t([16,21],[2,12]),{5:29,6:28,7:e,8:n,9:r,10:i,12:10,18:a,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:c,42:u,44:h,45:f,56:d,57:p,59:g,63:m,77:y,78:v,79:b,80:_},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},t(x,[2,24],{31:[1,50]}),t(x,[2,26]),t(x,[2,27]),t(x,[2,28]),t(x,[2,29]),t(x,[2,30]),t(x,[2,31]),t(x,[2,32]),t(x,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:w,51:k,52:C,53:E,54:S,55:T}),{26:62,27:39,28:40,77:y,78:v,79:b,80:_},t(x,[2,42]),t(x,[2,43]),{27:63,77:y,78:v,79:b},{26:64,27:39,28:40,77:y,78:v,79:b,80:_},{26:65,27:39,28:40,77:y,78:v,79:b,80:_},{26:66,27:39,28:40,77:y,78:v,79:b,80:_},{47:[1,67]},t(A,[2,19],{27:39,28:40,26:68,29:[1,69],77:y,78:v,79:b,80:_}),t(A,[2,20],{29:[1,70]}),t(M,[2,86]),t(M,[2,87]),t(M,[2,88]),t([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),t(N,[2,9]),{14:71,21:l},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:e,8:n,9:r,10:i,12:10,18:a,23:72,24:[2,17],25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:c,42:u,44:h,45:f,56:d,57:p,59:g,63:m,77:y,78:v,79:b,80:_},t(x,[2,25]),{26:73,27:39,28:40,47:[1,74],77:y,78:v,79:b,80:_},{46:75,48:54,49:55,50:w,51:k,52:C,53:E,54:S,55:T},t(x,[2,41]),{49:76,54:S,55:T},t(D,[2,51],{48:77,50:w,51:k,52:C,53:E}),t(O,[2,52]),t(O,[2,53]),t(O,[2,54]),t(O,[2,55]),t(L,[2,56]),t(L,[2,57]),t(x,[2,33],{38:[1,78],39:[1,79]}),{43:[1,80]},{47:[1,81]},{47:[1,82]},{60:[1,83],62:[1,84]},{27:85,77:y,78:v,79:b},t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),{15:[1,86]},{24:[2,18]},t(B,[2,44]),{26:87,27:39,28:40,77:y,78:v,79:b,80:_},{26:88,27:39,28:40,47:[1,89],77:y,78:v,79:b,80:_},t(D,[2,50],{48:90,50:w,51:k,52:C,53:E}),t(D,[2,49]),{27:91,77:y,78:v,79:b},{40:92,44:I},{26:94,27:39,28:40,77:y,78:v,79:b,80:_},t(x,[2,58],{47:[1,95]}),t(x,[2,60],{47:[1,97],58:[1,96]}),t(x,[2,64],{47:[1,98],61:[1,99]}),t(x,[2,68],{47:[1,101],58:[1,100]}),t(x,[2,72]),t(N,[2,10]),t(B,[2,46]),t(B,[2,45]),{26:102,27:39,28:40,77:y,78:v,79:b,80:_},t(D,[2,48]),t(x,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:I},t(x,[2,37]),t(x,[2,59]),t(x,[2,61]),t(x,[2,62],{58:[1,106]}),t(x,[2,65]),t(x,[2,66],{47:[1,107]}),t(x,[2,69]),t(x,[2,70],{58:[1,108]}),t(B,[2,47]),{40:109,44:I},t(x,[2,35]),{41:[2,39]},t(x,[2,63]),t(x,[2,67]),t(x,[2,71]),{41:[1,110]},t(x,[2,36])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],12:[2,11],13:[2,3],19:[2,14],47:[2,13],48:[2,15],72:[2,18],105:[2,39]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},F={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:case 10:case 12:case 19:break;case 11:return 15;case 13:case 14:return 22;case 15:return this.begin("struct"),39;case 16:return"EOF_IN_STRUCT";case 17:return"OPEN_IN_STRUCT";case 18:return this.popState(),41;case 20:return"MEMBER";case 21:return 37;case 22:return 63;case 23:return 56;case 24:return 57;case 25:return 59;case 26:return 42;case 27:return 43;case 28:this.begin("generic");break;case 29:case 32:case 35:case 38:case 41:case 44:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 33:return"STR";case 34:this.begin("bqstring");break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 39:return 62;case 40:this.begin("callback_name");break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;case 45:return 61;case 46:case 47:case 48:case 49:return 58;case 50:case 51:return 51;case 52:case 53:return 53;case 54:return 52;case 55:return 50;case 56:return 54;case 57:return 55;case 58:return 31;case 59:return 38;case 60:return 75;case 61:return"DOT";case 62:return"PLUS";case 63:return 72;case 64:case 65:return"EQUALS";case 66:return 79;case 67:return"PUNCTUATION";case 68:return 78;case 69:return 77;case 70:return 74;case 71:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[44,45],inclusive:!1},callback_name:{rules:[41,42,43],inclusive:!1},href:{rules:[38,39],inclusive:!1},struct:{rules:[16,17,18,19,20],inclusive:!1},generic:{rules:[29,30],inclusive:!1},bqstring:{rules:[35,36],inclusive:!1},string:{rules:[32,33],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,21,22,23,24,25,26,27,28,31,34,37,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71],inclusive:!0}}};function P(){this.yy={}}return R.lexer=F,P.prototype=R,R.Parser=P,new P}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(8218).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},5890:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,23,41],i=[1,17],a=[1,20],o=[1,25],s=[1,26],l=[1,27],c=[1,28],u=[1,37],h=[23,38,39],f=[4,6,9,11,23,41],d=[34,35,36,37],p=[22,29],g=[1,55],m={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,attributeKeyType:27,attributeComment:28,ATTRIBUTE_WORD:29,ATTRIBUTE_KEY:30,COMMENT:31,cardinality:32,relType:33,ZERO_OR_ONE:34,ZERO_OR_MORE:35,ONE_OR_MORE:36,ONLY_ONE:37,NON_IDENTIFYING:38,IDENTIFYING:39,WORD:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",29:"ATTRIBUTE_WORD",30:"ATTRIBUTE_KEY",31:"COMMENT",34:"ZERO_OR_ONE",35:"ZERO_OR_MORE",36:"ONE_OR_MORE",37:"ONLY_ONE",38:"NON_IDENTIFYING",39:"IDENTIFYING",40:"WORD",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[24,3],[24,3],[24,4],[25,1],[26,1],[27,1],[28,1],[18,3],[32,1],[32,1],[32,1],[32,1],[33,1],[33,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:case 16:case 23:case 24:case 25:case 35:this.$=a[s];break;case 12:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s]);break;case 17:this.$=[a[s]];break;case 18:a[s].push(a[s-1]),this.$=a[s];break;case 19:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 20:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyType:a[s]};break;case 21:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 22:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyType:a[s-1],attributeComment:a[s]};break;case 26:case 34:this.$=a[s].replace(/"/g,"");break;case 27:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 28:this.$=r.Cardinality.ZERO_OR_ONE;break;case 29:this.$=r.Cardinality.ZERO_OR_MORE;break;case 30:this.$=r.Cardinality.ONE_OR_MORE;break;case 31:this.$=r.Cardinality.ONLY_ONE;break;case 32:this.$=r.Identification.NON_IDENTIFYING;break;case 33:this.$=r.Identification.IDENTIFYING;break;case 36:r.parseDirective("%%{","open_directive");break;case 37:r.parseDirective(a[s],"type_directive");break;case 38:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 39:r.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:e,7:3,12:4,41:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,41:n},{13:8,42:[1,9]},{42:[2,36]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:i,41:n},{1:[2,2]},{14:18,15:[1,19],44:a},t([15,44],[2,37]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:15,10:21,12:4,17:16,23:i,41:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,15],{18:22,32:24,20:[1,23],34:o,35:s,36:l,37:c}),t([6,9,11,15,20,23,34,35,36,37,41],[2,16]),{11:[1,29]},{16:30,43:[1,31]},{11:[2,39]},t(r,[2,5]),{17:32,23:i},{21:33,22:[1,34],24:35,25:36,29:u},{33:38,38:[1,39],39:[1,40]},t(h,[2,28]),t(h,[2,29]),t(h,[2,30]),t(h,[2,31]),t(f,[2,9]),{14:41,44:a},{44:[2,38]},{15:[1,42]},{22:[1,43]},t(r,[2,14]),{21:44,22:[2,17],24:35,25:36,29:u},{26:45,29:[1,46]},{29:[2,23]},{32:47,34:o,35:s,36:l,37:c},t(d,[2,32]),t(d,[2,33]),{11:[1,48]},{19:49,23:[1,51],40:[1,50]},t(r,[2,13]),{22:[2,18]},t(p,[2,19],{27:52,28:53,30:[1,54],31:g}),t([22,29,30,31],[2,24]),{23:[2,27]},t(f,[2,10]),t(r,[2,12]),t(r,[2,34]),t(r,[2,35]),t(p,[2,20],{28:56,31:g}),t(p,[2,21]),t([22,29,31],[2,25]),t(p,[2,26]),t(p,[2,22])],defaultActions:{5:[2,36],7:[2,2],20:[2,39],31:[2,38],37:[2,23],44:[2,18],47:[2,27]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},y={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:case 6:case 8:case 13:case 17:break;case 7:return 11;case 9:return 9;case 10:return 40;case 11:return 4;case 12:return this.begin("block"),20;case 14:return 30;case 15:return 29;case 16:return 31;case 18:return this.popState(),22;case 19:case 32:return e.yytext[0];case 20:case 24:return 34;case 21:case 25:return 35;case 22:case 26:return 36;case 23:return 37;case 27:case 29:case 30:return 38;case 28:return 39;case 31:return 23;case 33:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:(?:PK)|(?:FK))/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17,18,19],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0}}};function v(){this.yy={}}return m.lexer=y,v.prototype=m,m.Parser=v,new v}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(8009).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3602:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,9],n=[1,7],r=[1,6],i=[1,8],a=[1,20,21,22,23,38,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],o=[2,10],s=[1,20],l=[1,21],c=[1,22],u=[1,23],h=[1,30],f=[1,59],d=[1,45],p=[1,49],g=[1,33],m=[1,34],y=[1,35],v=[1,36],b=[1,37],_=[1,53],x=[1,60],w=[1,48],k=[1,50],C=[1,52],E=[1,56],S=[1,57],T=[1,38],A=[1,39],M=[1,40],N=[1,41],D=[1,58],O=[1,47],L=[1,51],B=[1,54],I=[1,55],R=[1,46],F=[1,63],P=[1,68],z=[1,20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],q=[1,72],j=[1,71],H=[1,73],U=[20,21,23,74,75],$=[1,94],W=[1,99],Y=[1,102],V=[1,103],G=[1,96],X=[1,101],Z=[1,104],K=[1,97],Q=[1,109],J=[1,108],tt=[1,98],et=[1,100],nt=[1,105],rt=[1,106],it=[1,107],at=[1,110],ot=[20,21,22,23,74,75],st=[20,21,22,23,48,74,75],lt=[20,21,22,23,40,47,48,50,52,54,56,58,59,60,62,64,66,67,69,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],ct=[20,21,23],ut=[20,21,23,47,59,60,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],ht=[1,12,20,21,22,23,24,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],ft=[47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],dt=[1,143],pt=[1,151],gt=[1,152],mt=[1,153],yt=[1,154],vt=[1,138],bt=[1,139],_t=[1,135],xt=[1,146],wt=[1,147],kt=[1,148],Ct=[1,149],Et=[1,150],St=[1,155],Tt=[1,156],At=[1,141],Mt=[1,144],Nt=[1,140],Dt=[1,137],Ot=[20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Lt=[1,159],Bt=[20,21,22,23,26,47,59,60,84,98,99,102,104,105,115,116,117,118,119,120],It=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,60,61,63,65,66,68,70,74,75,79,80,81,82,83,84,85,88,98,99,102,104,105,106,107,115,116,117,118,119,120],Rt=[12,21,22,24],Ft=[22,99],Pt=[1,242],zt=[1,237],qt=[1,238],jt=[1,246],Ht=[1,243],Ut=[1,240],$t=[1,239],Wt=[1,241],Yt=[1,244],Vt=[1,245],Gt=[1,247],Xt=[1,265],Zt=[20,21,23,99],Kt=[20,21,22,23,59,60,79,95,98,99,102,103,104,105,106],Qt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,link:44,node:45,vertex:46,AMP:47,STYLE_SEPARATOR:48,idString:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,ALPHA:59,COLON:60,PIPE:61,CYLINDERSTART:62,CYLINDEREND:63,DIAMOND_START:64,DIAMOND_STOP:65,TAGEND:66,TRAPSTART:67,TRAPEND:68,INVTRAPSTART:69,INVTRAPEND:70,linkStatement:71,arrowText:72,TESTSTR:73,START_LINK:74,LINK:75,textToken:76,STR:77,keywords:78,STYLE:79,LINKSTYLE:80,CLASSDEF:81,CLASS:82,CLICK:83,DOWN:84,UP:85,textNoTags:86,textNoTagsToken:87,DEFAULT:88,stylesOpt:89,alphaNum:90,CALLBACKNAME:91,CALLBACKARGS:92,HREF:93,LINK_TARGET:94,HEX:95,numList:96,INTERPOLATE:97,NUM:98,COMMA:99,style:100,styleComponent:101,MINUS:102,UNIT:103,BRKT:104,DOT:105,PCT:106,TAGSTART:107,alphaNumToken:108,idStringToken:109,alphaNumStatement:110,direction_tb:111,direction_bt:112,direction_rl:113,direction_lr:114,PUNCTUATION:115,UNICODE_TEXT:116,PLUS:117,EQUALS:118,MULT:119,UNDERSCORE:120,graphCodeTokens:121,ARROW_CROSS:122,ARROW_POINT:123,ARROW_CIRCLE:124,ARROW_OPEN:125,QUOTE:126,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",47:"AMP",48:"STYLE_SEPARATOR",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"ALPHA",60:"COLON",61:"PIPE",62:"CYLINDERSTART",63:"CYLINDEREND",64:"DIAMOND_START",65:"DIAMOND_STOP",66:"TAGEND",67:"TRAPSTART",68:"TRAPEND",69:"INVTRAPSTART",70:"INVTRAPEND",73:"TESTSTR",74:"START_LINK",75:"LINK",77:"STR",79:"STYLE",80:"LINKSTYLE",81:"CLASSDEF",82:"CLASS",83:"CLICK",84:"DOWN",85:"UP",88:"DEFAULT",91:"CALLBACKNAME",92:"CALLBACKARGS",93:"HREF",94:"LINK_TARGET",95:"HEX",97:"INTERPOLATE",98:"NUM",99:"COMMA",102:"MINUS",103:"UNIT",104:"BRKT",105:"DOT",106:"PCT",107:"TAGSTART",111:"direction_tb",112:"direction_bt",113:"direction_rl",114:"direction_lr",115:"PUNCTUATION",116:"UNICODE_TEXT",117:"PLUS",118:"EQUALS",119:"MULT",120:"UNDERSCORE",122:"ARROW_CROSS",123:"ARROW_POINT",124:"ARROW_CIRCLE",125:"ARROW_OPEN",126:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[45,1],[45,5],[45,3],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[44,2],[44,3],[44,3],[44,1],[44,3],[71,1],[72,3],[39,1],[39,2],[39,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[86,1],[86,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[96,1],[96,3],[89,1],[89,3],[100,1],[100,2],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[87,1],[87,1],[87,1],[87,1],[49,1],[49,2],[90,1],[90,2],[110,1],[110,1],[110,1],[110,1],[43,1],[43,1],[43,1],[43,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(a[s],"type_directive");break;case 7:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:a[s]!==[]&&a[s-1].push(a[s]),this.$=a[s-1];break;case 12:case 78:case 80:case 92:case 148:case 150:case 151:case 74:case 146:this.$=a[s];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(a[s-1]),this.$=a[s-1];break;case 35:this.$=a[s-1].nodes;break;case 41:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 42:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 43:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 48:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 49:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 50:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 51:this.$={stmt:a[s],nodes:a[s]};break;case 52:case 119:case 121:this.$=[a[s]];break;case 53:this.$=a[s-4].concat(a[s]);break;case 54:this.$=[a[s-2]],r.setClass(a[s-2],a[s]);break;case 55:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"square");break;case 56:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"circle");break;case 57:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"ellipse");break;case 58:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"stadium");break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"subroutine");break;case 60:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"cylinder");break;case 62:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"round");break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"diamond");break;case 64:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"hexagon");break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"odd");break;case 66:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"trapezoid");break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"inv_trapezoid");break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_right");break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_left");break;case 70:this.$=a[s],r.addVertex(a[s]);break;case 71:a[s-1].text=a[s],this.$=a[s-1];break;case 72:case 73:a[s-2].text=a[s-1],this.$=a[s-2];break;case 75:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1]};break;case 76:l=r.destructLink(a[s]),this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 77:this.$=a[s-1];break;case 79:case 93:case 149:case 147:this.$=a[s-1]+""+a[s];break;case 94:case 95:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 97:case 105:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 98:case 106:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 99:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 101:case 107:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 102:case 108:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 103:case 109:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 104:case 110:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 111:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 112:case 114:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 113:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 115:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 116:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 117:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 118:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 120:case 122:a[s-2].push(a[s]),this.$=a[s-2];break;case 124:this.$=a[s-1]+a[s];break;case 152:this.$="v";break;case 153:this.$="-";break;case 154:this.$={stmt:"dir",value:"TB"};break;case 155:this.$={stmt:"dir",value:"BT"};break;case 156:this.$={stmt:"dir",value:"RL"};break;case 157:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},t(a,o,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:r,24:i},{16:15,21:n,22:r,24:i},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s,21:l,22:c,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:31,45:32,46:42,47:f,49:43,59:d,60:p,79:g,80:m,81:y,82:v,83:b,84:_,88:x,98:w,99:k,102:C,104:E,105:S,109:44,111:T,112:A,113:M,114:N,115:D,116:O,117:L,118:B,119:I,120:R},{8:61,10:[1,62],15:F},t([10,15],[2,6]),t(a,[2,17]),t(a,[2,18]),t(a,[2,19]),{20:[1,65],21:[1,66],22:P,27:64,30:67},t(z,[2,11]),t(z,[2,12]),t(z,[2,13]),t(z,[2,14]),t(z,[2,15]),t(z,[2,16]),{9:69,20:q,21:j,23:H,44:70,71:74,74:[1,75],75:[1,76]},{9:77,20:q,21:j,23:H},{9:78,20:q,21:j,23:H},{9:79,20:q,21:j,23:H},{9:80,20:q,21:j,23:H},{9:81,20:q,21:j,23:H},{9:83,20:q,21:j,22:[1,82],23:H},t(z,[2,44]),t(U,[2,51],{30:84,22:P}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:$,47:W,59:Y,60:V,77:[1,92],84:G,90:91,91:[1,89],93:[1,90],98:X,99:Z,102:K,104:Q,105:J,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(z,[2,154]),t(z,[2,155]),t(z,[2,156]),t(z,[2,157]),t(ot,[2,52],{48:[1,111]}),t(st,[2,70],{109:123,40:[1,112],47:f,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],59:d,60:p,62:[1,118],64:[1,119],66:[1,120],67:[1,121],69:[1,122],84:_,88:x,98:w,99:k,102:C,104:E,105:S,115:D,116:O,117:L,118:B,119:I,120:R}),t(lt,[2,146]),t(lt,[2,171]),t(lt,[2,172]),t(lt,[2,173]),t(lt,[2,174]),t(lt,[2,175]),t(lt,[2,176]),t(lt,[2,177]),t(lt,[2,178]),t(lt,[2,179]),t(lt,[2,180]),t(lt,[2,181]),t(lt,[2,182]),t(lt,[2,183]),t(lt,[2,184]),t(lt,[2,185]),t(lt,[2,186]),{9:124,20:q,21:j,23:H},{11:125,14:[1,126]},t(ct,[2,8]),t(a,[2,20]),t(a,[2,26]),t(a,[2,27]),{21:[1,127]},t(ut,[2,34],{30:128,22:P}),t(z,[2,35]),{45:129,46:42,47:f,49:43,59:d,60:p,84:_,88:x,98:w,99:k,102:C,104:E,105:S,109:44,115:D,116:O,117:L,118:B,119:I,120:R},t(ht,[2,45]),t(ht,[2,46]),t(ht,[2,47]),t(ft,[2,74],{72:130,61:[1,132],73:[1,131]}),{22:dt,24:pt,26:gt,38:mt,39:133,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t([47,59,60,61,73,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,76]),t(z,[2,36]),t(z,[2,37]),t(z,[2,38]),t(z,[2,39]),t(z,[2,40]),{22:dt,24:pt,26:gt,38:mt,39:157,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(Ot,o,{17:158}),t(U,[2,50],{47:Lt}),{26:$,47:W,59:Y,60:V,84:G,90:160,95:[1,161],98:X,99:Z,102:K,104:Q,105:J,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},{88:[1,162],96:163,98:[1,164]},{26:$,47:W,59:Y,60:V,84:G,88:[1,165],90:166,98:X,99:Z,102:K,104:Q,105:J,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},{26:$,47:W,59:Y,60:V,84:G,90:167,98:X,99:Z,102:K,104:Q,105:J,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(ct,[2,97],{22:[1,168],92:[1,169]}),t(ct,[2,101],{22:[1,170]}),t(ct,[2,105],{108:95,110:172,22:[1,171],26:$,47:W,59:Y,60:V,84:G,98:X,99:Z,102:K,104:Q,105:J,115:tt,116:et,117:nt,118:rt,119:it,120:at}),t(ct,[2,107],{22:[1,173]}),t(Bt,[2,148]),t(Bt,[2,150]),t(Bt,[2,151]),t(Bt,[2,152]),t(Bt,[2,153]),t(It,[2,158]),t(It,[2,159]),t(It,[2,160]),t(It,[2,161]),t(It,[2,162]),t(It,[2,163]),t(It,[2,164]),t(It,[2,165]),t(It,[2,166]),t(It,[2,167]),t(It,[2,168]),t(It,[2,169]),t(It,[2,170]),{47:f,49:174,59:d,60:p,84:_,88:x,98:w,99:k,102:C,104:E,105:S,109:44,115:D,116:O,117:L,118:B,119:I,120:R},{22:dt,24:pt,26:gt,38:mt,39:175,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:177,42:yt,47:W,50:[1,176],59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:178,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:179,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:180,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{59:[1,181]},{22:dt,24:pt,26:gt,38:mt,39:182,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:183,42:yt,47:W,59:Y,60:V,64:[1,184],66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:185,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:186,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:187,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(lt,[2,147]),t(Rt,[2,3]),{8:188,15:F},{15:[2,7]},t(a,[2,28]),t(ut,[2,33]),t(U,[2,48],{30:189,22:P}),t(ft,[2,71],{22:[1,190]}),{22:[1,191]},{22:dt,24:pt,26:gt,38:mt,39:192,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,59:Y,60:V,66:vt,74:bt,75:[1,193],76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(It,[2,78]),t(It,[2,80]),t(It,[2,136]),t(It,[2,137]),t(It,[2,138]),t(It,[2,139]),t(It,[2,140]),t(It,[2,141]),t(It,[2,142]),t(It,[2,143]),t(It,[2,144]),t(It,[2,145]),t(It,[2,81]),t(It,[2,82]),t(It,[2,83]),t(It,[2,84]),t(It,[2,85]),t(It,[2,86]),t(It,[2,87]),t(It,[2,88]),t(It,[2,89]),t(It,[2,90]),t(It,[2,91]),{9:196,20:q,21:j,22:dt,23:H,24:pt,26:gt,38:mt,40:[1,195],42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{18:18,19:19,20:s,21:l,22:c,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,197],43:31,45:32,46:42,47:f,49:43,59:d,60:p,79:g,80:m,81:y,82:v,83:b,84:_,88:x,98:w,99:k,102:C,104:E,105:S,109:44,111:T,112:A,113:M,114:N,115:D,116:O,117:L,118:B,119:I,120:R},{22:P,30:198},{22:[1,199],26:$,47:W,59:Y,60:V,84:G,98:X,99:Z,102:K,104:Q,105:J,108:95,110:172,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:[1,200]},{22:[1,201]},{22:[1,202],99:[1,203]},t(Ft,[2,119]),{22:[1,204]},{22:[1,205],26:$,47:W,59:Y,60:V,84:G,98:X,99:Z,102:K,104:Q,105:J,108:95,110:172,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:[1,206],26:$,47:W,59:Y,60:V,84:G,98:X,99:Z,102:K,104:Q,105:J,108:95,110:172,115:tt,116:et,117:nt,118:rt,119:it,120:at},{77:[1,207]},t(ct,[2,99],{22:[1,208]}),{77:[1,209],94:[1,210]},{77:[1,211]},t(Bt,[2,149]),{77:[1,212],94:[1,213]},t(ot,[2,54],{109:123,47:f,59:d,60:p,84:_,88:x,98:w,99:k,102:C,104:E,105:S,115:D,116:O,117:L,118:B,119:I,120:R}),{22:dt,24:pt,26:gt,38:mt,41:[1,214],42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:215,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,51:[1,216],59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,53:[1,217],59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,55:[1,218],59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,57:[1,219],59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{60:[1,220]},{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,59:Y,60:V,63:[1,221],66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,59:Y,60:V,65:[1,222],66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,39:223,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,41:[1,224],42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,59:Y,60:V,66:vt,68:[1,225],70:[1,226],74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,59:Y,60:V,66:vt,68:[1,228],70:[1,227],74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{9:229,20:q,21:j,23:H},t(U,[2,49],{47:Lt}),t(ft,[2,73]),t(ft,[2,72]),{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,59:Y,60:V,61:[1,230],66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(ft,[2,75]),t(It,[2,79]),{22:dt,24:pt,26:gt,38:mt,39:231,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(Ot,o,{17:232}),t(z,[2,43]),{46:233,47:f,49:43,59:d,60:p,84:_,88:x,98:w,99:k,102:C,104:E,105:S,109:44,115:D,116:O,117:L,118:B,119:I,120:R},{22:Pt,59:zt,60:qt,79:jt,89:234,95:Ht,98:Ut,100:235,101:236,102:$t,103:Wt,104:Yt,105:Vt,106:Gt},{22:Pt,59:zt,60:qt,79:jt,89:248,95:Ht,98:Ut,100:235,101:236,102:$t,103:Wt,104:Yt,105:Vt,106:Gt},{22:Pt,59:zt,60:qt,79:jt,89:249,95:Ht,97:[1,250],98:Ut,100:235,101:236,102:$t,103:Wt,104:Yt,105:Vt,106:Gt},{22:Pt,59:zt,60:qt,79:jt,89:251,95:Ht,97:[1,252],98:Ut,100:235,101:236,102:$t,103:Wt,104:Yt,105:Vt,106:Gt},{98:[1,253]},{22:Pt,59:zt,60:qt,79:jt,89:254,95:Ht,98:Ut,100:235,101:236,102:$t,103:Wt,104:Yt,105:Vt,106:Gt},{22:Pt,59:zt,60:qt,79:jt,89:255,95:Ht,98:Ut,100:235,101:236,102:$t,103:Wt,104:Yt,105:Vt,106:Gt},{26:$,47:W,59:Y,60:V,84:G,90:256,98:X,99:Z,102:K,104:Q,105:J,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(ct,[2,98]),{77:[1,257]},t(ct,[2,102],{22:[1,258]}),t(ct,[2,103]),t(ct,[2,106]),t(ct,[2,108],{22:[1,259]}),t(ct,[2,109]),t(st,[2,55]),{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,51:[1,260],59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(st,[2,62]),t(st,[2,57]),t(st,[2,58]),t(st,[2,59]),{59:[1,261]},t(st,[2,61]),t(st,[2,63]),{22:dt,24:pt,26:gt,38:mt,42:yt,47:W,59:Y,60:V,65:[1,262],66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(st,[2,65]),t(st,[2,66]),t(st,[2,68]),t(st,[2,67]),t(st,[2,69]),t(Rt,[2,4]),t([22,47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,77]),{22:dt,24:pt,26:gt,38:mt,41:[1,263],42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{18:18,19:19,20:s,21:l,22:c,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,264],43:31,45:32,46:42,47:f,49:43,59:d,60:p,79:g,80:m,81:y,82:v,83:b,84:_,88:x,98:w,99:k,102:C,104:E,105:S,109:44,111:T,112:A,113:M,114:N,115:D,116:O,117:L,118:B,119:I,120:R},t(ot,[2,53]),t(ct,[2,111],{99:Xt}),t(Zt,[2,121],{101:266,22:Pt,59:zt,60:qt,79:jt,95:Ht,98:Ut,102:$t,103:Wt,104:Yt,105:Vt,106:Gt}),t(Kt,[2,123]),t(Kt,[2,125]),t(Kt,[2,126]),t(Kt,[2,127]),t(Kt,[2,128]),t(Kt,[2,129]),t(Kt,[2,130]),t(Kt,[2,131]),t(Kt,[2,132]),t(Kt,[2,133]),t(Kt,[2,134]),t(Kt,[2,135]),t(ct,[2,112],{99:Xt}),t(ct,[2,113],{99:Xt}),{22:[1,267]},t(ct,[2,114],{99:Xt}),{22:[1,268]},t(Ft,[2,120]),t(ct,[2,94],{99:Xt}),t(ct,[2,95],{99:Xt}),t(ct,[2,96],{108:95,110:172,26:$,47:W,59:Y,60:V,84:G,98:X,99:Z,102:K,104:Q,105:J,115:tt,116:et,117:nt,118:rt,119:it,120:at}),t(ct,[2,100]),{94:[1,269]},{94:[1,270]},{51:[1,271]},{61:[1,272]},{65:[1,273]},{9:274,20:q,21:j,23:H},t(z,[2,42]),{22:Pt,59:zt,60:qt,79:jt,95:Ht,98:Ut,100:275,101:236,102:$t,103:Wt,104:Yt,105:Vt,106:Gt},t(Kt,[2,124]),{26:$,47:W,59:Y,60:V,84:G,90:276,98:X,99:Z,102:K,104:Q,105:J,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},{26:$,47:W,59:Y,60:V,84:G,90:277,98:X,99:Z,102:K,104:Q,105:J,108:95,110:93,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(ct,[2,104]),t(ct,[2,110]),t(st,[2,56]),{22:dt,24:pt,26:gt,38:mt,39:278,42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:134,77:_t,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},t(st,[2,64]),t(Ot,o,{17:279}),t(Zt,[2,122],{101:266,22:Pt,59:zt,60:qt,79:jt,95:Ht,98:Ut,102:$t,103:Wt,104:Yt,105:Vt,106:Gt}),t(ct,[2,117],{108:95,110:172,22:[1,280],26:$,47:W,59:Y,60:V,84:G,98:X,99:Z,102:K,104:Q,105:J,115:tt,116:et,117:nt,118:rt,119:it,120:at}),t(ct,[2,118],{108:95,110:172,22:[1,281],26:$,47:W,59:Y,60:V,84:G,98:X,99:Z,102:K,104:Q,105:J,115:tt,116:et,117:nt,118:rt,119:it,120:at}),{22:dt,24:pt,26:gt,38:mt,41:[1,282],42:yt,47:W,59:Y,60:V,66:vt,74:bt,76:194,78:145,79:xt,80:wt,81:kt,82:Ct,83:Et,84:St,85:Tt,87:136,88:At,98:X,99:Z,102:Mt,104:Q,105:J,106:Nt,107:Dt,108:142,115:tt,116:et,117:nt,118:rt,119:it,120:at},{18:18,19:19,20:s,21:l,22:c,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,283],43:31,45:32,46:42,47:f,49:43,59:d,60:p,79:g,80:m,81:y,82:v,83:b,84:_,88:x,98:w,99:k,102:C,104:E,105:S,109:44,111:T,112:A,113:M,114:N,115:D,116:O,117:L,118:B,119:I,120:R},{22:Pt,59:zt,60:qt,79:jt,89:284,95:Ht,98:Ut,100:235,101:236,102:$t,103:Wt,104:Yt,105:Vt,106:Gt},{22:Pt,59:zt,60:qt,79:jt,89:285,95:Ht,98:Ut,100:235,101:236,102:$t,103:Wt,104:Yt,105:Vt,106:Gt},t(st,[2,60]),t(z,[2,41]),t(ct,[2,115],{99:Xt}),t(ct,[2,116],{99:Xt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],126:[2,7]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},Jt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:case 17:case 20:case 23:case 26:this.popState();break;case 9:return"STR";case 10:return 79;case 11:return 88;case 12:return 80;case 13:return 97;case 14:return 81;case 15:return 82;case 16:this.begin("href");break;case 18:return 93;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 91;case 24:return 92;case 25:this.begin("click");break;case 27:return 83;case 28:case 29:return t.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 94;case 36:return this.popState(),25;case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:return this.popState(),26;case 47:return 111;case 48:return 112;case 49:return 113;case 50:return 114;case 51:return 98;case 52:return 104;case 53:return 48;case 54:return 60;case 55:return 47;case 56:return 20;case 57:return 99;case 58:return 119;case 59:case 60:case 61:return 75;case 62:case 63:case 64:return 74;case 65:return 52;case 66:return 53;case 67:return 54;case 68:return 55;case 69:return 56;case 70:return 57;case 71:return 58;case 72:return 62;case 73:return 63;case 74:return 102;case 75:return 105;case 76:return 120;case 77:return 117;case 78:return 106;case 79:case 80:return 118;case 81:return 107;case 82:return 66;case 83:return 85;case 84:return"SEP";case 85:return 84;case 86:return 59;case 87:return 68;case 88:return 67;case 89:return 70;case 90:return 69;case 91:return 115;case 92:return 116;case 93:return 61;case 94:return 50;case 95:return 51;case 96:return 40;case 97:return 41;case 98:return 64;case 99:return 65;case 100:return 126;case 101:return 21;case 102:return 22;case 103:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[23,24],inclusive:!1},callbackname:{rules:[20,21,22],inclusive:!1},href:{rules:[17,18],inclusive:!1},click:{rules:[26,27],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[36,37,38,39,40,41,42,43,44,45,46],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,19,25,28,29,30,31,32,33,34,35,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],inclusive:!0}}};function te(){this.yy={}}return Qt.lexer=Jt,te.prototype=Qt,Qt.Parser=te,new te}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(5354).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9959:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],i=[1,15],a=[1,16],o=[1,17],s=[1,18],l=[1,19],c=[1,20],u=[1,21],h=[1,22],f=[1,23],d=[1,25],p=[1,27],g=[1,30],m=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],y={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,section:20,clickStatement:21,taskTxt:22,taskData:23,openDirective:24,typeDirective:25,closeDirective:26,":":27,argDirective:28,click:29,callbackname:30,callbackargs:31,href:32,clickStatementDebug:33,open_directive:34,type_directive:35,arg_directive:36,close_directive:37,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"section",22:"taskTxt",23:"taskData",27:":",29:"click",30:"callbackname",31:"callbackargs",32:"href",34:"open_directive",35:"type_directive",36:"arg_directive",37:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[21,2],[21,3],[21,3],[21,4],[21,3],[21,4],[21,2],[33,2],[33,3],[33,3],[33,4],[33,3],[33,4],[33,2],[24,1],[25,1],[28,1],[26,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 2:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 9:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 11:r.TopAxis(),this.$=a[s].substr(8);break;case 12:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 13:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 14:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 15:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 16:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 17:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 19:r.addTask(a[s-1],a[s]),this.$="task";break;case 23:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 24:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 25:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 26:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 27:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 28:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 29:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 30:case 36:this.$=a[s-1]+" "+a[s];break;case 31:case 32:case 34:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 33:case 35:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s];break;case 37:r.parseDirective("%%{","open_directive");break;case 38:r.parseDirective(a[s],"type_directive");break;case 39:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 40:r.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:e,24:4,34:n},{1:[3]},{3:6,4:2,5:e,24:4,34:n},t(r,[2,3],{6:7}),{25:8,35:[1,9]},{35:[2,37]},{1:[2,1]},{4:26,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:a,14:o,15:s,16:l,17:c,18:u,19:h,20:f,21:24,22:d,24:4,29:p,34:n},{26:28,27:[1,29],37:g},t([27,37],[2,38]),t(r,[2,8],{1:[2,2]}),t(r,[2,4]),{4:26,10:31,12:i,13:a,14:o,15:s,16:l,17:c,18:u,19:h,20:f,21:24,22:d,24:4,29:p,34:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),t(r,[2,18]),{23:[1,32]},t(r,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},t(r,[2,5]),t(r,[2,19]),t(r,[2,23],{31:[1,38],32:[1,39]}),t(r,[2,29],{30:[1,40]}),t(m,[2,21]),{26:41,37:g},{37:[2,39]},t(r,[2,24],{32:[1,42]}),t(r,[2,25]),t(r,[2,27],{31:[1,43]}),{11:[1,44]},t(r,[2,26]),t(r,[2,28]),t(m,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},v={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),34;case 1:return this.begin("type_directive"),35;case 2:return this.popState(),this.begin("arg_directive"),27;case 3:return this.popState(),this.popState(),37;case 4:return 36;case 5:case 6:case 7:case 9:case 10:case 11:break;case 8:return 11;case 12:this.begin("href");break;case 13:case 16:case 19:case 22:this.popState();break;case 14:return 32;case 15:this.begin("callbackname");break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 30;case 20:return 31;case 21:this.begin("click");break;case 23:return 29;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 17;case 30:return 16;case 31:return 18;case 32:return"date";case 33:return 19;case 34:return 20;case 35:return 22;case 36:return 23;case 37:return 27;case 38:return 7;case 39:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};function b(){this.yy={}}return y.lexer=v,b.prototype=y,y.Parser=b,new b}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(6878).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},2553:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[2,3],n=[1,7],r=[7,12,15,17,19,20,21],i=[7,11,12,15,17,19,20,21],a=[2,20],o=[1,32],s={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:return r.setDirection(a[s-3]),a[s-1];case 4:r.setOptions(a[s-1]),this.$=a[s];break;case 5:a[s-1]+=a[s],this.$=a[s-1];break;case 7:this.$=[];break;case 8:a[s-1].push(a[s]),this.$=a[s-1];break;case 9:this.$=a[s-1];break;case 11:r.commit(a[s]);break;case 12:r.branch(a[s]);break;case 13:r.checkout(a[s]);break;case 14:r.merge(a[s]);break;case 15:r.reset(a[s]);break;case 16:this.$="";break;case 17:this.$=a[s];break;case 18:this.$=a[s-1]+":"+a[s];break;case 19:this.$=a[s-1]+":"+r.count,r.count=0;break;case 20:r.count=0;break;case 21:r.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:e,9:6,12:n},{5:[1,8]},{7:[1,9]},t(r,[2,7],{10:10,11:[1,11]}),t(i,[2,6]),{6:12,7:e,9:6,12:n},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},t(i,[2,5]),{7:[1,21]},t(r,[2,8]),{12:[1,22]},t(r,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},t(r,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:a,25:31,26:o},{12:a,25:33,26:o},{12:[2,18]},{12:a,25:34,26:o},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},l={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:case 18:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function c(){this.yy={}}return s.lexer=l,c.prototype=s,s.Parser=c,new c}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(8183).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6765:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,r,i,a,o){switch(a.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(1428).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},7062:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,5],r=[1,6],i=[1,7],a=[1,9],o=[1,11,13,20,21,22,23],s=[2,5],l=[1,6,11,13,20,21,22,23],c=[20,21,22],u=[2,8],h=[1,18],f=[1,19],d=[1,24],p=[6,20,21,22,23],g={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,openDirective:15,typeDirective:16,closeDirective:17,":":18,argDirective:19,NEWLINE:20,";":21,EOF:22,open_directive:23,type_directive:24,arg_directive:25,close_directive:26,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",18:":",20:"NEWLINE",21:";",22:"EOF",23:"open_directive",24:"type_directive",25:"arg_directive",26:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[15,1],[16,1],[19,1],[17,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setShowData(!0);break;case 7:this.$=a[s-1];break;case 9:r.addSection(a[s-1],r.cleanupValue(a[s]));break;case 10:this.$=a[s].trim(),r.setTitle(this.$);break;case 17:r.parseDirective("%%{","open_directive");break;case 18:r.parseDirective(a[s],"type_directive");break;case 19:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 20:r.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:e,15:8,20:n,21:r,22:i,23:a},{1:[3]},{3:10,4:2,5:3,6:e,15:8,20:n,21:r,22:i,23:a},{3:11,4:2,5:3,6:e,15:8,20:n,21:r,22:i,23:a},t(o,s,{7:12,8:[1,13]}),t(l,[2,14]),t(l,[2,15]),t(l,[2,16]),{16:14,24:[1,15]},{24:[2,17]},{1:[2,1]},{1:[2,2]},t(c,u,{15:8,9:16,10:17,5:20,1:[2,3],11:h,13:f,23:a}),t(o,s,{7:21}),{17:22,18:[1,23],26:d},t([18,26],[2,18]),t(o,[2,6]),{4:25,20:n,21:r,22:i},{12:[1,26]},{14:[1,27]},t(c,[2,11]),t(c,u,{15:8,9:16,10:17,5:20,1:[2,4],11:h,13:f,23:a}),t(p,[2,12]),{19:28,25:[1,29]},t(p,[2,20]),t(o,[2,7]),t(c,[2,9]),t(c,[2,10]),{17:30,26:d},{26:[2,19]},t(p,[2,13])],defaultActions:{9:[2,17],10:[2,1],11:[2,2],29:[2,19]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),23;case 1:return this.begin("type_directive"),24;case 2:return this.popState(),this.begin("arg_directive"),18;case 3:return this.popState(),this.popState(),26;case 4:return 25;case 5:case 6:case 8:case 9:break;case 7:return 20;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return 8;case 17:return"value";case 18:return 22}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17,18],inclusive:!0}}};function y(){this.yy={}}return g.lexer=m,y.prototype=g,g.Parser=y,new y}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(4551).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3176:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[1,17],i=[2,10],a=[1,21],o=[1,22],s=[1,23],l=[1,24],c=[1,25],u=[1,26],h=[1,19],f=[1,27],d=[1,28],p=[1,31],g=[66,67],m=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],y=[5,6,8,14,35,36,37,38,39,40,48,66,67],v=[1,51],b=[1,52],_=[1,53],x=[1,54],w=[1,55],k=[1,56],C=[1,57],E=[57,58],S=[1,69],T=[1,65],A=[1,66],M=[1,67],N=[1,68],D=[1,70],O=[1,74],L=[1,75],B=[1,72],I=[1,73],R=[5,8,14,35,36,37,38,39,40,48,66,67],F={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,open_directive:14,type_directive:15,arg_directive:16,close_directive:17,requirementDef:18,elementDef:19,relationshipDef:20,requirementType:21,requirementName:22,STRUCT_START:23,requirementBody:24,ID:25,COLONSEP:26,id:27,TEXT:28,text:29,RISK:30,riskLevel:31,VERIFYMTHD:32,verifyType:33,STRUCT_STOP:34,REQUIREMENT:35,FUNCTIONAL_REQUIREMENT:36,INTERFACE_REQUIREMENT:37,PERFORMANCE_REQUIREMENT:38,PHYSICAL_REQUIREMENT:39,DESIGN_CONSTRAINT:40,LOW_RISK:41,MED_RISK:42,HIGH_RISK:43,VERIFY_ANALYSIS:44,VERIFY_DEMONSTRATION:45,VERIFY_INSPECTION:46,VERIFY_TEST:47,ELEMENT:48,elementName:49,elementBody:50,TYPE:51,type:52,DOCREF:53,ref:54,END_ARROW_L:55,relationship:56,LINE:57,END_ARROW_R:58,CONTAINS:59,COPIES:60,DERIVES:61,SATISFIES:62,VERIFIES:63,REFINES:64,TRACES:65,unqString:66,qString:67,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"open_directive",15:"type_directive",16:"arg_directive",17:"close_directive",23:"STRUCT_START",25:"ID",26:"COLONSEP",28:"TEXT",30:"RISK",32:"VERIFYMTHD",34:"STRUCT_STOP",35:"REQUIREMENT",36:"FUNCTIONAL_REQUIREMENT",37:"INTERFACE_REQUIREMENT",38:"PERFORMANCE_REQUIREMENT",39:"PHYSICAL_REQUIREMENT",40:"DESIGN_CONSTRAINT",41:"LOW_RISK",42:"MED_RISK",43:"HIGH_RISK",44:"VERIFY_ANALYSIS",45:"VERIFY_DEMONSTRATION",46:"VERIFY_INSPECTION",47:"VERIFY_TEST",48:"ELEMENT",51:"TYPE",53:"DOCREF",55:"END_ARROW_L",57:"LINE",58:"END_ARROW_R",59:"CONTAINS",60:"COPIES",61:"DERIVES",62:"SATISFIES",63:"VERIFIES",64:"REFINES",65:"TRACES",66:"unqString",67:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[18,5],[24,5],[24,5],[24,5],[24,5],[24,2],[24,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[31,1],[31,1],[31,1],[33,1],[33,1],[33,1],[33,1],[19,5],[50,5],[50,5],[50,2],[50,1],[20,5],[20,5],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[27,1],[27,1],[29,1],[29,1],[49,1],[49,1],[52,1],[52,1],[54,1],[54,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 6:r.parseDirective("%%{","open_directive");break;case 7:r.parseDirective(a[s],"type_directive");break;case 8:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 9:r.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:r.addRequirement(a[s-3],a[s-4]);break;case 17:r.setNewReqId(a[s-2]);break;case 18:r.setNewReqText(a[s-2]);break;case 19:r.setNewReqRisk(a[s-2]);break;case 20:r.setNewReqVerifyMethod(a[s-2]);break;case 23:this.$=r.RequirementType.REQUIREMENT;break;case 24:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=r.RiskLevel.LOW_RISK;break;case 30:this.$=r.RiskLevel.MED_RISK;break;case 31:this.$=r.RiskLevel.HIGH_RISK;break;case 32:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=r.VerifyType.VERIFY_TEST;break;case 36:r.addElement(a[s-3]);break;case 37:r.setNewElementType(a[s-2]);break;case 38:r.setNewElementDocRef(a[s-2]);break;case 41:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 42:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 43:this.$=r.Relationships.CONTAINS;break;case 44:this.$=r.Relationships.COPIES;break;case 45:this.$=r.Relationships.DERIVES;break;case 46:this.$=r.Relationships.SATISFIES;break;case 47:this.$=r.Relationships.VERIFIES;break;case 48:this.$=r.Relationships.REFINES;break;case 49:this.$=r.Relationships.TRACES}},table:[{3:1,4:2,6:e,9:4,14:n},{1:[3]},{3:7,4:2,5:[1,6],6:e,9:4,14:n},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:e,9:4,14:n},{1:[2,2]},{4:16,5:r,7:12,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:l,39:c,40:u,48:h,66:f,67:d},{11:29,12:[1,30],17:p},t([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:r,7:33,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:l,39:c,40:u,48:h,66:f,67:d},{4:16,5:r,7:34,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:l,39:c,40:u,48:h,66:f,67:d},{4:16,5:r,7:35,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:l,39:c,40:u,48:h,66:f,67:d},{4:16,5:r,7:36,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:l,39:c,40:u,48:h,66:f,67:d},{4:16,5:r,7:37,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:l,39:c,40:u,48:h,66:f,67:d},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),t(g,[2,26]),t(g,[2,27]),t(g,[2,28]),t(m,[2,52]),t(m,[2,53]),t(y,[2,4]),{13:46,16:[1,47]},t(y,[2,9]),{1:[2,3]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{23:[1,48]},{23:[2,50]},{23:[2,51]},{23:[1,49]},{23:[2,56]},{23:[2,57]},{56:50,59:v,60:b,61:_,62:x,63:w,64:k,65:C},{56:58,59:v,60:b,61:_,62:x,63:w,64:k,65:C},{11:59,17:p},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},t(E,[2,43]),t(E,[2,44]),t(E,[2,45]),t(E,[2,46]),t(E,[2,47]),t(E,[2,48]),t(E,[2,49]),{58:[1,63]},t(y,[2,5]),{5:S,24:64,25:T,28:A,30:M,32:N,34:D},{5:O,34:L,50:71,51:B,53:I},{27:76,66:f,67:d},{27:77,66:f,67:d},t(R,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:S,24:82,25:T,28:A,30:M,32:N,34:D},t(R,[2,22]),t(R,[2,36]),{26:[1,83]},{26:[1,84]},{5:O,34:L,50:85,51:B,53:I},t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),{27:86,66:f,67:d},{29:87,66:[1,88],67:[1,89]},{31:90,41:[1,91],42:[1,92],43:[1,93]},{33:94,44:[1,95],45:[1,96],46:[1,97],47:[1,98]},t(R,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},t(R,[2,39]),{5:[1,105]},{5:[1,106]},{5:[2,54]},{5:[2,55]},{5:[1,107]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[1,108]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[1,109]},{5:[2,58]},{5:[2,59]},{5:[1,110]},{5:[2,60]},{5:[2,61]},{5:S,24:111,25:T,28:A,30:M,32:N,34:D},{5:S,24:112,25:T,28:A,30:M,32:N,34:D},{5:S,24:113,25:T,28:A,30:M,32:N,34:D},{5:S,24:114,25:T,28:A,30:M,32:N,34:D},{5:O,34:L,50:115,51:B,53:I},{5:O,34:L,50:116,51:B,53:I},t(R,[2,17]),t(R,[2,18]),t(R,[2,19]),t(R,[2,20]),t(R,[2,37]),t(R,[2,38])],defaultActions:{5:[2,6],7:[2,2],11:[2,1],32:[2,3],33:[2,11],34:[2,12],35:[2,13],36:[2,14],37:[2,15],39:[2,50],40:[2,51],42:[2,56],43:[2,57],47:[2,8],88:[2,54],89:[2,55],91:[2,29],92:[2,30],93:[2,31],95:[2,32],96:[2,33],97:[2,34],98:[2,35],100:[2,58],101:[2,59],103:[2,60],104:[2,61]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},P={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),14;case 1:return this.begin("type_directive"),15;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),17;case 4:return 16;case 5:return 5;case 6:case 7:case 8:break;case 9:return 8;case 10:return 6;case 11:return 23;case 12:return 34;case 13:return 26;case 14:return 25;case 15:return 28;case 16:return 30;case 17:return 32;case 18:return 35;case 19:return 36;case 20:return 37;case 21:return 38;case 22:return 39;case 23:return 40;case 24:return 41;case 25:return 42;case 26:return 43;case 27:return 44;case 28:return 45;case 29:return 46;case 30:return 47;case 31:return 48;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 62;case 36:return 63;case 37:return 64;case 38:return 65;case 39:return 51;case 40:return 53;case 41:return 55;case 42:return 58;case 43:return 57;case 44:this.begin("string");break;case 45:this.popState();break;case 46:return"qString";case 47:return e.yytext=e.yytext.trim(),66}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[45,46],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,47],inclusive:!0}}};function z(){this.yy={}}return F.lexer=P,z.prototype=F,F.Parser=z,new z}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(8800).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6876:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],l=[1,18],c=[1,19],u=[1,21],h=[1,22],f=[1,23],d=[1,29],p=[1,30],g=[1,31],m=[1,32],y=[1,33],v=[1,34],b=[1,37],_=[1,38],x=[1,39],w=[1,40],k=[1,41],C=[1,42],E=[1,45],S=[1,4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],T=[1,58],A=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,42,46,47,48,49,57,67],M=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,41,42,46,47,48,49,57,67],N=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,42,46,47,48,49,57,67],D=[55,56,57],O=[1,4,5,7,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],L={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,activate:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,text2:31,loop:32,end:33,rect:34,opt:35,alt:36,else_sections:37,par:38,par_sections:39,and:40,else:41,note:42,placement:43,over:44,actor_pair:45,links:46,link:47,properties:48,details:49,spaceList:50,",":51,left_of:52,right_of:53,signaltype:54,"+":55,"-":56,ACTOR:57,SOLID_OPEN_ARROW:58,DOTTED_OPEN_ARROW:59,SOLID_ARROW:60,DOTTED_ARROW:61,SOLID_CROSS:62,DOTTED_CROSS:63,SOLID_POINT:64,DOTTED_POINT:65,TXT:66,open_directive:67,type_directive:68,arg_directive:69,close_directive:70,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"activate",24:"deactivate",30:"title",32:"loop",33:"end",34:"rect",35:"opt",36:"alt",38:"par",40:"and",41:"else",42:"note",44:"over",46:"links",47:"link",48:"properties",49:"details",51:",",52:"left_of",53:"right_of",55:"+",56:"-",57:"ACTOR",58:"SOLID_OPEN_ARROW",59:"DOTTED_OPEN_ARROW",60:"SOLID_ARROW",61:"DOTTED_ARROW",62:"SOLID_CROSS",63:"DOTTED_CROSS",64:"SOLID_POINT",65:"DOTTED_POINT",66:"TXT",67:"open_directive",68:"type_directive",69:"arg_directive",70:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[39,1],[39,4],[37,1],[37,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[50,2],[50,1],[45,3],[45,1],[43,1],[43,1],[21,5],[21,5],[21,4],[17,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[31,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.apply(a[s]),a[s];case 5:case 9:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:case 45:this.$=a[s];break;case 12:a[s-3].type="addParticipant",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 13:a[s-1].type="addParticipant",this.$=a[s-1];break;case 14:a[s-3].type="addActor",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 15:a[s-1].type="addActor",this.$=a[s-1];break;case 17:r.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]};break;case 19:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1]};break;case 25:this.$=[{type:"setTitle",text:a[s-1]}];break;case 26:a[s-1].unshift({type:"loopStart",loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:"loopEnd",loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 27:a[s-1].unshift({type:"rectStart",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:"rectEnd",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 28:a[s-1].unshift({type:"optStart",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:"optEnd",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 29:a[s-1].unshift({type:"altStart",altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 30:a[s-1].unshift({type:"parStart",parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 33:this.$=a[s-3].concat([{type:"and",parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 35:this.$=a[s-3].concat([{type:"else",altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 36:this.$=[a[s-1],{type:"addNote",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 37:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 38:this.$=[a[s-1],{type:"addLinks",actor:a[s-1].actor,text:a[s]}];break;case 39:this.$=[a[s-1],{type:"addALink",actor:a[s-1].actor,text:a[s]}];break;case 40:this.$=[a[s-1],{type:"addProperties",actor:a[s-1].actor,text:a[s]}];break;case 41:this.$=[a[s-1],{type:"addDetails",actor:a[s-1].actor,text:a[s]}];break;case 44:this.$=[a[s-2],a[s]];break;case 46:this.$=r.PLACEMENT.LEFTOF;break;case 47:this.$=r.PLACEMENT.RIGHTOF;break;case 48:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]}];break;case 49:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4]}];break;case 50:this.$=[a[s-3],a[s-1],{type:"addMessage",from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 51:this.$={type:"addParticipant",actor:a[s]};break;case 52:this.$=r.LINETYPE.SOLID_OPEN;break;case 53:this.$=r.LINETYPE.DOTTED_OPEN;break;case 54:this.$=r.LINETYPE.SOLID;break;case 55:this.$=r.LINETYPE.DOTTED;break;case 56:this.$=r.LINETYPE.SOLID_CROSS;break;case 57:this.$=r.LINETYPE.DOTTED_CROSS;break;case 58:this.$=r.LINETYPE.SOLID_POINT;break;case 59:this.$=r.LINETYPE.DOTTED_POINT;break;case 60:this.$=r.parseMessage(a[s].trim().substring(1));break;case 61:r.parseDirective("%%{","open_directive");break;case 62:r.parseDirective(a[s],"type_directive");break;case 63:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 64:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,5:n,6:4,7:r,11:6,67:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,11:6,67:i},{3:9,4:e,5:n,6:4,7:r,11:6,67:i},{3:10,4:e,5:n,6:4,7:r,11:6,67:i},t([1,4,5,16,20,22,23,24,30,32,34,35,36,38,42,46,47,48,49,57,67],a,{8:11}),{12:12,68:[1,13]},{68:[2,61]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:35,9:14,10:16,11:6,16:l,17:36,20:c,21:20,22:u,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,32:p,34:g,35:m,36:y,38:v,42:b,46:_,47:x,48:w,49:k,57:C,67:i},{13:43,14:[1,44],70:E},t([14,70],[2,62]),t(S,[2,6]),{6:35,10:46,11:6,16:l,17:36,20:c,21:20,22:u,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,32:p,34:g,35:m,36:y,38:v,42:b,46:_,47:x,48:w,49:k,57:C,67:i},t(S,[2,8]),t(S,[2,9]),{17:47,57:C},{17:48,57:C},{5:[1,49]},t(S,[2,17]),{17:50,57:C},{17:51,57:C},{5:[1,52]},{5:[1,53]},{5:[1,54]},{5:[1,55]},{5:[1,56]},{31:57,66:T},{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},t(S,[2,31]),{54:64,58:[1,65],59:[1,66],60:[1,67],61:[1,68],62:[1,69],63:[1,70],64:[1,71],65:[1,72]},{43:73,44:[1,74],52:[1,75],53:[1,76]},{17:77,57:C},{17:78,57:C},{17:79,57:C},{17:80,57:C},t([5,18,51,58,59,60,61,62,63,64,65,66],[2,51]),{5:[1,81]},{15:82,69:[1,83]},{5:[2,64]},t(S,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},t(S,[2,16]),{5:[1,88]},{5:[1,89]},t(S,[2,20]),t(S,[2,21]),t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),{5:[1,90]},{5:[2,60]},t(A,a,{8:91}),t(A,a,{8:92}),t(A,a,{8:93}),t(M,a,{37:94,8:95}),t(N,a,{39:96,8:97}),{17:100,55:[1,98],56:[1,99],57:C},t(D,[2,52]),t(D,[2,53]),t(D,[2,54]),t(D,[2,55]),t(D,[2,56]),t(D,[2,57]),t(D,[2,58]),t(D,[2,59]),{17:101,57:C},{17:103,45:102,57:C},{57:[2,46]},{57:[2,47]},{31:104,66:T},{31:105,66:T},{31:106,66:T},{31:107,66:T},t(O,[2,10]),{13:108,70:E},{70:[2,63]},{19:[1,109]},t(S,[2,13]),{19:[1,110]},t(S,[2,15]),t(S,[2,18]),t(S,[2,19]),t(S,[2,25]),{4:o,5:s,6:35,9:14,10:16,11:6,16:l,17:36,20:c,21:20,22:u,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,32:p,33:[1,111],34:g,35:m,36:y,38:v,42:b,46:_,47:x,48:w,49:k,57:C,67:i},{4:o,5:s,6:35,9:14,10:16,11:6,16:l,17:36,20:c,21:20,22:u,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,32:p,33:[1,112],34:g,35:m,36:y,38:v,42:b,46:_,47:x,48:w,49:k,57:C,67:i},{4:o,5:s,6:35,9:14,10:16,11:6,16:l,17:36,20:c,21:20,22:u,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,32:p,33:[1,113],34:g,35:m,36:y,38:v,42:b,46:_,47:x,48:w,49:k,57:C,67:i},{33:[1,114]},{4:o,5:s,6:35,9:14,10:16,11:6,16:l,17:36,20:c,21:20,22:u,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,32:p,33:[2,34],34:g,35:m,36:y,38:v,41:[1,115],42:b,46:_,47:x,48:w,49:k,57:C,67:i},{33:[1,116]},{4:o,5:s,6:35,9:14,10:16,11:6,16:l,17:36,20:c,21:20,22:u,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,32:p,33:[2,32],34:g,35:m,36:y,38:v,40:[1,117],42:b,46:_,47:x,48:w,49:k,57:C,67:i},{17:118,57:C},{17:119,57:C},{31:120,66:T},{31:121,66:T},{31:122,66:T},{51:[1,123],66:[2,45]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},{5:[1,124]},{5:[1,125]},{5:[1,126]},t(S,[2,26]),t(S,[2,27]),t(S,[2,28]),t(S,[2,29]),{19:[1,127]},t(S,[2,30]),{19:[1,128]},{31:129,66:T},{31:130,66:T},{5:[2,50]},{5:[2,36]},{5:[2,37]},{17:131,57:C},t(O,[2,11]),t(S,[2,12]),t(S,[2,14]),t(M,a,{8:95,37:132}),t(N,a,{8:97,39:133}),{5:[2,48]},{5:[2,49]},{66:[2,44]},{33:[2,35]},{33:[2,33]}],defaultActions:{7:[2,61],8:[2,1],9:[2,2],10:[2,3],45:[2,64],58:[2,60],75:[2,46],76:[2,47],83:[2,63],104:[2,38],105:[2,39],106:[2,40],107:[2,41],120:[2,50],121:[2,36],122:[2,37],129:[2,48],130:[2,49],131:[2,44],132:[2,35],133:[2,33]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},B={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),67;case 1:return this.begin("type_directive"),68;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),70;case 4:return 69;case 5:case 39:case 52:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return this.begin("ID"),20;case 13:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),57;case 14:return this.popState(),this.popState(),this.begin("LINE"),18;case 15:return this.popState(),this.popState(),5;case 16:return this.begin("LINE"),32;case 17:return this.begin("LINE"),34;case 18:return this.begin("LINE"),35;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),38;case 22:return this.begin("LINE"),40;case 23:return this.popState(),19;case 24:return 33;case 25:return 52;case 26:return 53;case 27:return 46;case 28:return 47;case 29:return 48;case 30:return 49;case 31:return 44;case 32:return 42;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 7;case 37:return 22;case 38:return 51;case 40:return e.yytext=e.yytext.trim(),57;case 41:return 60;case 42:return 61;case 43:return 58;case 44:return 59;case 45:return 62;case 46:return 63;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 55;case 51:return 56;case 53:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,13],inclusive:!1},ALIAS:{rules:[7,8,14,15],inclusive:!1},LINE:{rules:[7,8,23],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],inclusive:!0}}};function I(){this.yy={}}return L.lexer=B,I.prototype=L,L.Parser=I,new I}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(1993).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3584:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],l=[1,19],c=[1,20],u=[1,21],h=[1,22],f=[1,30],d=[1,23],p=[1,24],g=[1,25],m=[1,26],y=[1,27],v=[1,32],b=[1,33],_=[1,34],x=[1,35],w=[1,31],k=[1,38],C=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],E=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],S=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],T=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],A={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,openDirective:31,typeDirective:32,closeDirective:33,":":34,argDirective:35,direction_tb:36,direction_bt:37,direction_rl:38,direction_lr:39,eol:40,";":41,EDGE_STATE:42,left_of:43,right_of:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",34:":",36:"direction_tb",37:"direction_bt",38:"direction_rl",39:"direction_lr",41:";",42:"EDGE_STATE",43:"left_of",44:"right_of",45:"open_directive",46:"type_directive",47:"arg_directive",48:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[40,1],[40,1],[11,1],[11,1],[28,1],[28,1],[31,1],[32,1],[35,1],[33,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.setRootDoc(a[s]),a[s];case 5:this.$=[];break;case 6:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 7:case 8:case 36:case 37:this.$=a[s];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:a[s],type:"default",description:""};break;case 11:this.$={stmt:"state",id:a[s-1],type:"default",description:r.trimColon(a[s])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-2],type:"default",description:""},state2:{stmt:"state",id:a[s],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-3],type:"default",description:""},state2:{stmt:"state",id:a[s-1],type:"default",description:""},description:a[s].substr(1).trim()};break;case 17:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 18:var l=a[s],c=a[s-2].trim();if(a[s].match(":")){var u=a[s].split(":");l=u[0],c=[c,u[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 19:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 20:this.$={stmt:"state",id:a[s],type:"fork"};break;case 21:this.$={stmt:"state",id:a[s],type:"join"};break;case 22:this.$={stmt:"state",id:a[s],type:"choice"};break;case 23:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 30:r.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:r.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:r.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:r.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:r.parseDirective("%%{","open_directive");break;case 41:r.parseDirective(a[s],"type_directive");break;case 42:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 43:r.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:e,5:n,6:4,7:r,31:6,45:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,31:6,45:i},{3:9,4:e,5:n,6:4,7:r,31:6,45:i},{3:10,4:e,5:n,6:4,7:r,31:6,45:i},t([1,4,5,14,15,17,20,22,23,24,25,26,27,36,37,38,39,42,45],a,{8:11}),{32:12,46:[1,13]},{46:[2,40]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:28,9:14,10:16,11:18,14:l,15:c,17:u,20:h,22:f,23:d,24:p,25:g,26:m,27:y,30:29,31:6,36:v,37:b,38:_,39:x,42:w,45:i},{33:36,34:[1,37],48:k},t([34,48],[2,41]),t(C,[2,6]),{6:28,10:39,11:18,14:l,15:c,17:u,20:h,22:f,23:d,24:p,25:g,26:m,27:y,30:29,31:6,36:v,37:b,38:_,39:x,42:w,45:i},t(C,[2,8]),t(C,[2,9]),t(C,[2,10],{12:[1,40],13:[1,41]}),t(C,[2,14]),{16:[1,42]},t(C,[2,16],{18:[1,43]}),{21:[1,44]},t(C,[2,20]),t(C,[2,21]),t(C,[2,22]),t(C,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},t(C,[2,26]),t(C,[2,27]),t(E,[2,36]),t(E,[2,37]),t(C,[2,30]),t(C,[2,31]),t(C,[2,32]),t(C,[2,33]),t(S,[2,28]),{35:49,47:[1,50]},t(S,[2,43]),t(C,[2,7]),t(C,[2,11]),{11:51,22:f,42:w},t(C,[2,15]),t(T,a,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:k},{48:[2,42]},t(C,[2,12],{12:[1,57]}),{4:o,5:s,6:28,9:14,10:16,11:18,14:l,15:c,17:u,19:[1,58],20:h,22:f,23:d,24:p,25:g,26:m,27:y,30:29,31:6,36:v,37:b,38:_,39:x,42:w,45:i},t(C,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},t(S,[2,29]),t(C,[2,13]),t(C,[2,17]),t(T,a,{8:62}),t(C,[2,24]),t(C,[2,25]),{4:o,5:s,6:28,9:14,10:16,11:18,14:l,15:c,17:u,19:[1,63],20:h,22:f,23:d,24:p,25:g,26:m,27:y,30:29,31:6,36:v,37:b,38:_,39:x,42:w,45:i},t(C,[2,19])],defaultActions:{7:[2,40],8:[2,1],9:[2,2],10:[2,3],47:[2,38],48:[2,39],50:[2,42]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:case 26:return 36;case 1:case 27:return 37;case 2:case 28:return 38;case 3:case 29:return 39;case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),34;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 13:case 14:case 15:case 39:case 45:break;case 11:case 59:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 33:case 36:this.popState();break;case 19:this.pushState("STATE");break;case 20:case 23:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),25;case 30:this.begin("STATE_STRING");break;case 31:return this.popState(),this.pushState("STATE_ID"),"AS";case 32:case 47:return this.popState(),"ID";case 34:return"STATE_DESCR";case 35:return 17;case 37:return this.popState(),this.pushState("struct"),18;case 38:return this.popState(),19;case 40:return this.begin("NOTE"),27;case 41:return this.popState(),this.pushState("NOTE_ID"),43;case 42:return this.popState(),this.pushState("NOTE_ID"),44;case 43:this.popState(),this.pushState("FLOATING_NOTE");break;case 44:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 46:return"NOTE_TEXT";case 48:return this.popState(),this.pushState("NOTE_TEXT"),22;case 49:return this.popState(),e.yytext=e.yytext.substr(2).trim(),29;case 50:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),29;case 51:case 52:return 7;case 53:return 14;case 54:return 42;case 55:return 22;case 56:return e.yytext=e.yytext.trim(),12;case 57:return 13;case 58:return 26;case 60:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,19,26,27,28,29,38,39,40,54,55,56,57,58],inclusive:!1},FLOATING_NOTE_ID:{rules:[47],inclusive:!1},FLOATING_NOTE:{rules:[44,45,46],inclusive:!1},NOTE_TEXT:{rules:[49,50],inclusive:!1},NOTE_ID:{rules:[48],inclusive:!1},NOTE:{rules:[41,42,43],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[32],inclusive:!1},STATE_STRING:{rules:[33,34],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,20,21,22,23,24,25,30,31,35,36,37],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,37,40,51,52,53,54,55,56,57,59,60],inclusive:!0}}};function N(){this.yy={}}return A.lexer=M,N.prototype=A,A.Parser=N,new N}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(3069).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9763:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,17,18,19,21],i=[1,15],a=[1,16],o=[1,17],s=[1,21],l=[4,6,9,11,17,18,19,21],c={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 11:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$="task";break;case 15:r.parseDirective("%%{","open_directive");break;case 16:r.parseDirective(a[s],"type_directive");break;case 17:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 18:r.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:e,7:3,12:4,21:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,21:n},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:a,19:o,21:n},{1:[2,2]},{14:19,15:[1,20],24:s},t([15,24],[2,16]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:18,10:22,12:4,17:i,18:a,19:o,21:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,12]),{20:[1,23]},t(r,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},t(r,[2,5]),t(r,[2,13]),t(l,[2,9]),{14:27,24:s},{24:[2,17]},{11:[1,28]},t(l,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",l=0,c=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,C,E,S,T,A={};;){if(x=n[n.length-1],this.defaultActions[x]?w=this.defaultActions[x]:(null==b&&(b=v()),w=o[x]&&o[x][b]),void 0===w||!w.length||!w[0]){var M="";for(C in T=[],o[x])this.terminals_[C]&&C>u&&T.push("'"+this.terminals_[C]+"'");M=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:T})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(w[1]),b=null,_?(b=_,_=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,m=d.yylloc);break;case 2:if(E=this.productions_[w[1]][1],A.$=i[i.length-E],A._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(A._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[s,c,l,p.yy,w[1],i,a].concat(f))))return k;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),i.push(A.$),a.push(A._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},u={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function h(){this.yy={}}return c.lexer=u,h.prototype=c,c.Parser=h,new h}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(9143).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9609:t=>{var e=/^(%20|\s)*(javascript|data)/im,n=/[^\x20-\x7E]/gim,r=/^([^:]+):/gm,i=[".","/"];t.exports={sanitizeUrl:function(t){if(!t)return"about:blank";var a,o,s=t.replace(n,"").trim();return function(t){return i.indexOf(t[0])>-1}(s)?s:(o=s.match(r))?(a=o[0],e.test(a)?"about:blank":s):"about:blank"}}},3841:t=>{t.exports=function(t,e){return t.intersect(e)}},7458:(t,e,n)=>{n.d(e,{Z:()=>AE});var r=n(1941),i=n.n(r),a={debug:1,info:2,warn:3,error:4,fatal:5},o={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),void 0!==a[t]&&(t=a[t])),o.trace=function(){},o.debug=function(){},o.info=function(){},o.warn=function(){},o.error=function(){},o.fatal=function(){},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"[35m",l("FATAL"))),t<=a.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"[31m",l("ERROR"))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"[33m",l("WARN"))),t<=a.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"[34m",l("INFO"))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"[32m",l("DEBUG")))},l=function(t){var e=i()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function c(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function u(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function h(t){return t}var f=1e-6;function d(t){return"translate("+t+",0)"}function p(t){return"translate(0,"+t+")"}function g(t){return e=>+t(e)}function m(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function y(){return!this.__axis}function v(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===t||4===t?-1:1,u=4===t||2===t?"x":"y",v=1===t||3===t?d:p;function b(d){var p=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,b=null==i?e.tickFormat?e.tickFormat.apply(e,n):h:i,_=Math.max(a,0)+s,x=e.range(),w=+x[0]+l,k=+x[x.length-1]+l,C=(e.bandwidth?m:g)(e.copy(),l),E=d.selection?d.selection():d,S=E.selectAll(".domain").data([null]),T=E.selectAll(".tick").data(p,e).order(),A=T.exit(),M=T.enter().append("g").attr("class","tick"),N=T.select("line"),D=T.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(M),N=N.merge(M.append("line").attr("stroke","currentColor").attr(u+"2",c*a)),D=D.merge(M.append("text").attr("fill","currentColor").attr(u,c*_).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),d!==E&&(S=S.transition(d),T=T.transition(d),N=N.transition(d),D=D.transition(d),A=A.transition(d).attr("opacity",f).attr("transform",(function(t){return isFinite(t=C(t))?v(t+l):this.getAttribute("transform")})),M.attr("opacity",f).attr("transform",(function(t){var e=this.parentNode.__axis;return v((e&&isFinite(e=e(t))?e:C(t))+l)}))),A.remove(),S.attr("d",4===t||2===t?o?"M"+c*o+","+w+"H"+l+"V"+k+"H"+c*o:"M"+l+","+w+"V"+k:o?"M"+w+","+c*o+"V"+l+"H"+k+"V"+c*o:"M"+w+","+l+"H"+k),T.attr("opacity",1).attr("transform",(function(t){return v(C(t)+l)})),N.attr(u+"2",c*a),D.attr(u,c*_).text(b),E.filter(y).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),E.each((function(){this.__axis=C}))}return b.scale=function(t){return arguments.length?(e=t,b):e},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),b):n.slice()},b.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),b):r&&r.slice()},b.tickFormat=function(t){return arguments.length?(i=t,b):i},b.tickSize=function(t){return arguments.length?(a=o=+t,b):a},b.tickSizeInner=function(t){return arguments.length?(a=+t,b):a},b.tickSizeOuter=function(t){return arguments.length?(o=+t,b):o},b.tickPadding=function(t){return arguments.length?(s=+t,b):s},b.offset=function(t){return arguments.length?(l=+t,b):l},b}function b(){}function _(t){return null==t?b:function(){return this.querySelector(t)}}function x(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function w(){return[]}function k(t){return null==t?w:function(){return this.querySelectorAll(t)}}function C(t){return function(){return this.matches(t)}}function E(t){return function(e){return e.matches(t)}}var S=Array.prototype.find;function T(){return this.firstElementChild}var A=Array.prototype.filter;function M(){return Array.from(this.children)}function N(t){return new Array(t.length)}function D(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function O(t){return function(){return t}}function L(t,e,n,r,i,a){for(var o,s=0,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new D(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function B(t,e,n,r,i,a,o){var s,l,c,u=new Map,h=e.length,f=a.length,d=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(d[s]=c=o.call(l,l.__data__,s,e)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<f;++s)c=o.call(t,a[s],s,a)+"",(l=u.get(c))?(r[s]=l,l.__data__=a[s],u.delete(c)):n[s]=new D(t,a[s]);for(s=0;s<h;++s)(l=e[s])&&u.get(d[s])===l&&(i[s]=l)}function I(t){return t.__data__}function R(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function F(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}D.prototype={constructor:D,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var P="http://www.w3.org/1999/xhtml";const z={svg:"http://www.w3.org/2000/svg",xhtml:P,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function q(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),z.hasOwnProperty(e)?{space:z[e],local:t}:t}function j(t){return function(){this.removeAttribute(t)}}function H(t){return function(){this.removeAttributeNS(t.space,t.local)}}function U(t,e){return function(){this.setAttribute(t,e)}}function $(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function W(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Y(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function V(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function G(t){return function(){this.style.removeProperty(t)}}function X(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Z(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function K(t,e){return t.style.getPropertyValue(e)||V(t).getComputedStyle(t,null).getPropertyValue(e)}function Q(t){return function(){delete this[t]}}function J(t,e){return function(){this[t]=e}}function tt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function et(t){return t.trim().split(/^|\s+/)}function nt(t){return t.classList||new rt(t)}function rt(t){this._node=t,this._names=et(t.getAttribute("class")||"")}function it(t,e){for(var n=nt(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function at(t,e){for(var n=nt(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ot(t){return function(){it(this,t)}}function st(t){return function(){at(this,t)}}function lt(t,e){return function(){(e.apply(this,arguments)?it:at)(this,t)}}function ct(){this.textContent=""}function ut(t){return function(){this.textContent=t}}function ht(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ft(){this.innerHTML=""}function dt(t){return function(){this.innerHTML=t}}function pt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function gt(){this.nextSibling&&this.parentNode.appendChild(this)}function mt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===P&&e.documentElement.namespaceURI===P?e.createElement(t):e.createElementNS(n,t)}}function vt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function bt(t){var e=q(t);return(e.local?vt:yt)(e)}function _t(){return null}function xt(){var t=this.parentNode;t&&t.removeChild(this)}function wt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function kt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ct(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Et(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function St(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Tt(t,e,n){var r=V(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function At(t,e){return function(){return Tt(this,t,e)}}function Mt(t,e){return function(){return Tt(this,t,e.apply(this,arguments))}}rt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Nt=[null];function Dt(t,e){this._groups=t,this._parents=e}function Ot(){return new Dt([[document.documentElement]],Nt)}Dt.prototype=Ot.prototype={constructor:Dt,select:function(t){"function"!=typeof t&&(t=_(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new Dt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return x(t.apply(this,arguments))}}(t):k(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],l=s.length,c=0;c<l;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new Dt(r,i)},selectChild:function(t){return this.select(null==t?T:function(t){return function(){return S.call(this.children,t)}}("function"==typeof t?t:E(t)))},selectChildren:function(t){return this.selectAll(null==t?M:function(t){return function(){return A.call(this.children,t)}}("function"==typeof t?t:E(t)))},filter:function(t){"function"!=typeof t&&(t=C(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new Dt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,I);var n=e?B:L,r=this._parents,i=this._groups;"function"!=typeof t&&(t=O(t));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],h=i[c],f=h.length,d=R(t.call(u,u&&u.__data__,c,r)),p=d.length,g=s[c]=new Array(p),m=o[c]=new Array(p),y=l[c]=new Array(f);n(u,h,g,m,y,d,e);for(var v,b,_=0,x=0;_<p;++_)if(v=g[_]){for(_>=x&&(x=_+1);!(b=m[x])&&++x<p;);v._next=b||null}}return(o=new Dt(o,r))._enter=s,o._exit=l,o},enter:function(){return new Dt(this._enter||this._groups.map(N),this._parents)},exit:function(){return new Dt(this._exit||this._groups.map(N),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var c,u=n[l],h=r[l],f=u.length,d=s[l]=new Array(f),p=0;p<f;++p)(c=u[p]||h[p])&&(d[p]=c);for(;l<i;++l)s[l]=n[l];return new Dt(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=F);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],l=s.length,c=i[a]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(e)}return new Dt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=q(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?H:j:"function"==typeof e?n.local?Y:W:n.local?$:U)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?G:"function"==typeof e?Z:X)(t,e,null==n?"":n)):K(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Q:"function"==typeof e?tt:J)(t,e)):this.node()[t]},classed:function(t,e){var n=et(t+"");if(arguments.length<2){for(var r=nt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?lt:e?ot:st)(n,e))},text:function(t){return arguments.length?this.each(null==t?ct:("function"==typeof t?ht:ut)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ft:("function"==typeof t?pt:dt)(t)):this.node().innerHTML},raise:function(){return this.each(gt)},lower:function(){return this.each(mt)},append:function(t){var e="function"==typeof t?t:bt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:bt(t),r=null==e?_t:"function"==typeof e?e:_(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(xt)},clone:function(t){return this.select(t?kt:wt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=Ct(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?St:Et,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<o;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Mt:At)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};const Lt=Ot;var Bt={value:()=>{}};function It(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Rt(r)}function Rt(t){this._=t}function Ft(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Pt(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function zt(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Bt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Rt.prototype=It.prototype={constructor:Rt,on:function(t,e){var n,r=this._,i=Ft(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=zt(r[n],t.name,e);else if(null==e)for(n in r)r[n]=zt(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=Pt(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Rt(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};const qt=It;var jt,Ht,Ut=0,$t=0,Wt=0,Yt=0,Vt=0,Gt=0,Xt="object"==typeof performance&&performance.now?performance:Date,Zt="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Kt(){return Vt||(Zt(Qt),Vt=Xt.now()+Gt)}function Qt(){Vt=0}function Jt(){this._call=this._time=this._next=null}function te(t,e,n){var r=new Jt;return r.restart(t,e,n),r}function ee(){Vt=(Yt=Xt.now())+Gt,Ut=$t=0;try{!function(){Kt(),++Ut;for(var t,e=jt;e;)(t=Vt-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ut}()}finally{Ut=0,function(){for(var t,e,n=jt,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:jt=e);Ht=t,re(r)}(),Vt=0}}function ne(){var t=Xt.now(),e=t-Yt;e>1e3&&(Gt-=e,Yt=t)}function re(t){Ut||($t&&($t=clearTimeout($t)),t-Vt>24?(t<1/0&&($t=setTimeout(ee,t-Xt.now()-Gt)),Wt&&(Wt=clearInterval(Wt))):(Wt||(Yt=Xt.now(),Wt=setInterval(ne,1e3)),Ut=1,Zt(ee)))}function ie(t,e,n){var r=new Jt;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Jt.prototype=te.prototype={constructor:Jt,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Kt():+n)+(null==e?0:+e),this._next||Ht===this||(Ht?Ht._next=this:jt=this,Ht=this),this._call=t,this._time=n,re()},stop:function(){this._call&&(this._call=null,this._time=1/0,re())}};var ae=qt("start","end","cancel","interrupt"),oe=[];function se(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(l){var c,u,h,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return ie(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(ie((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=te((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ae,tween:oe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function le(t,e){var n=ue(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function ce(t,e){var n=ue(t,e);if(n.state>3)throw new Error("too late; already running");return n}function ue(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function he(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var fe,de=180/Math.PI,pe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ge(t,e,n,r,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*de,skewX:Math.atan(l)*de,scaleX:o,scaleY:s}}function me(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var l=o.push("translate(",null,e,null,n);s.push({i:l-4,x:he(t,i)},{i:l-2,x:he(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:he(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,l),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:he(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,l),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:he(t,n)},{i:s-2,x:he(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,n=-1,r=l.length;++n<r;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var ye=me((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?pe:ge(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),ve=me((function(t){return null==t?pe:(fe||(fe=document.createElementNS("http://www.w3.org/2000/svg","g")),fe.setAttribute("transform",t),(t=fe.transform.baseVal.consolidate())?ge((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):pe)}),", ",")",")");function be(t,e){var n,r;return function(){var i=ce(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function _e(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=ce(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function xe(t,e,n){var r=t._id;return t.each((function(){var t=ce(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ue(t,r).value[e]}}function we(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ke(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ce(){}var Ee=.7,Se=1/Ee,Te="\\s*([+-]?\\d+)\\s*",Ae="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Me="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ne=/^#([0-9a-f]{3,8})$/,De=new RegExp("^rgb\\("+[Te,Te,Te]+"\\)$"),Oe=new RegExp("^rgb\\("+[Me,Me,Me]+"\\)$"),Le=new RegExp("^rgba\\("+[Te,Te,Te,Ae]+"\\)$"),Be=new RegExp("^rgba\\("+[Me,Me,Me,Ae]+"\\)$"),Ie=new RegExp("^hsl\\("+[Ae,Me,Me]+"\\)$"),Re=new RegExp("^hsla\\("+[Ae,Me,Me,Ae]+"\\)$"),Fe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Pe(){return this.rgb().formatHex()}function ze(){return this.rgb().formatRgb()}function qe(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ne.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?je(e):3===n?new We(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?He(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?He(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=De.exec(t))?new We(e[1],e[2],e[3],1):(e=Oe.exec(t))?new We(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Le.exec(t))?He(e[1],e[2],e[3],e[4]):(e=Be.exec(t))?He(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ie.exec(t))?Xe(e[1],e[2]/100,e[3]/100,1):(e=Re.exec(t))?Xe(e[1],e[2]/100,e[3]/100,e[4]):Fe.hasOwnProperty(t)?je(Fe[t]):"transparent"===t?new We(NaN,NaN,NaN,0):null}function je(t){return new We(t>>16&255,t>>8&255,255&t,1)}function He(t,e,n,r){return r<=0&&(t=e=n=NaN),new We(t,e,n,r)}function Ue(t){return t instanceof Ce||(t=qe(t)),t?new We((t=t.rgb()).r,t.g,t.b,t.opacity):new We}function $e(t,e,n,r){return 1===arguments.length?Ue(t):new We(t,e,n,null==r?1:r)}function We(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ye(){return"#"+Ge(this.r)+Ge(this.g)+Ge(this.b)}function Ve(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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))+(1===t?")":", "+t+")")}function Ge(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Xe(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ke(t,e,n,r)}function Ze(t){if(t instanceof Ke)return new Ke(t.h,t.s,t.l,t.opacity);if(t instanceof Ce||(t=qe(t)),!t)return new Ke;if(t instanceof Ke)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Ke(o,s,l,t.opacity)}function Ke(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Qe(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}we(Ce,qe,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Pe,formatHex:Pe,formatHsl:function(){return Ze(this).formatHsl()},formatRgb:ze,toString:ze}),we(We,$e,ke(Ce,{brighter:function(t){return t=null==t?Se:Math.pow(Se,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Ee:Math.pow(Ee,t),new We(this.r*t,this.g*t,this.b*t,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:Ye,formatHex:Ye,formatRgb:Ve,toString:Ve})),we(Ke,(function(t,e,n,r){return 1===arguments.length?Ze(t):new Ke(t,e,n,null==r?1:r)}),ke(Ce,{brighter:function(t){return t=null==t?Se:Math.pow(Se,t),new Ke(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ee:Math.pow(Ee,t),new Ke(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new We(Qe(t>=240?t-240:t+120,i,r),Qe(t,i,r),Qe(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Je=t=>()=>t;function tn(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Je(isNaN(t)?e:t)}const en=function t(e){var n=function(t){return 1==(t=+t)?tn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Je(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=$e(t)).r,(e=$e(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=tn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);var nn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rn=new RegExp(nn.source,"g");function an(t,e){var n,r,i,a=nn.lastIndex=rn.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(n=nn.exec(t))&&(r=rn.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:he(n,r)})),a=rn.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function on(t,e){var n;return("number"==typeof e?he:e instanceof qe?en:(n=qe(e))?(e=n,en):an)(t,e)}function sn(t){return function(){this.removeAttribute(t)}}function ln(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cn(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function un(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function hn(t,e,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttribute(t))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,l));this.removeAttribute(t)}}function fn(t,e,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,l));this.removeAttributeNS(t.space,t.local)}}function dn(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function pn(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function gn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&pn(t,i)),n}return i._value=e,i}function mn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&dn(t,i)),n}return i._value=e,i}function yn(t,e){return function(){le(this,t).delay=+e.apply(this,arguments)}}function vn(t,e){return e=+e,function(){le(this,t).delay=e}}function bn(t,e){return function(){ce(this,t).duration=+e.apply(this,arguments)}}function _n(t,e){return e=+e,function(){ce(this,t).duration=e}}function xn(t,e){if("function"!=typeof e)throw new Error;return function(){ce(this,t).ease=e}}function wn(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?le:ce;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var kn=Lt.prototype.constructor;function Cn(t){return function(){this.style.removeProperty(t)}}function En(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Sn(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&En(t,a,n)),r}return a._value=e,a}function Tn(t){return function(e){this.textContent=t.call(this,e)}}function An(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Tn(r)),e}return r._value=t,r}var Mn=0;function Nn(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Dn(){return++Mn}var On=Lt.prototype;Nn.prototype={constructor:Nn,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=_(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,l,c=r[o],u=c.length,h=a[o]=new Array(u),f=0;f<u;++f)(s=c[f])&&(l=t.call(s,s.__data__,f,c))&&("__data__"in s&&(l.__data__=s.__data__),h[f]=l,se(h[f],e,n,f,h,ue(s,n)));return new Nn(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=k(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var f,d=t.call(l,l.__data__,h,c),p=ue(l,n),g=0,m=d.length;g<m;++g)(f=d[g])&&se(f,e,n,g,d,p);a.push(d),o.push(l)}return new Nn(a,o,e,n)},selectChild:On.selectChild,selectChildren:On.selectChildren,filter:function(t){"function"!=typeof t&&(t=C(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new Nn(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l,c=e[s],u=n[s],h=c.length,f=o[s]=new Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(f[d]=l);for(;s<r;++s)o[s]=e[s];return new Nn(o,this._parents,this._name,this._id)},selection:function(){return new kn(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Dn(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=ue(o,e);se(o,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Nn(r,this._parents,t,n)},call:On.call,nodes:On.nodes,node:On.node,size:On.size,empty:On.empty,each:On.each,on:function(t,e){var n=this._id;return arguments.length<2?ue(this.node(),n).on.on(t):this.each(wn(n,t,e))},attr:function(t,e){var n=q(t),r="transform"===n?ve:on;return this.attrTween(t,"function"==typeof e?(n.local?fn:hn)(n,r,xe(this,"attr."+t,e)):null==e?(n.local?ln:sn)(n):(n.local?un:cn)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=q(t);return this.tween(n,(r.local?gn:mn)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?ye:on;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=K(this,t),o=(this.style.removeProperty(t),K(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Cn(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=K(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=K(this,t)),o===l?null:o===r&&l===i?a:(i=l,a=e(r=o,s))}}(t,r,xe(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var l=ce(this,t),c=l.on,u=null==l.value[o]?a||(a=Cn(e)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=K(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Sn(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(xe(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,An(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ue(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?be:_e)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?yn:vn)(e,t)):ue(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?bn:_n)(e,t)):ue(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(xn(e,t)):ue(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;ce(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},l={value:function(){0==--i&&a()}};n.each((function(){var n=ce(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e})),0===i&&a()}))},[Symbol.iterator]:On[Symbol.iterator]};var Ln={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Bn(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function In(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Rn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Fn(){}Lt.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},Lt.prototype.transition=function(t){var e,n;t instanceof Nn?(e=t._id,t=t._name):(e=Dn(),(n=Ln).time=Kt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)(o=s[c])&&se(o,t,e,c,s,n||Bn(o,e));return new Nn(r,this._parents,t,e)};var Pn=.7,zn=1/Pn,qn="\\s*([+-]?\\d+)\\s*",jn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Un=/^#([0-9a-f]{3,8})$/,$n=new RegExp("^rgb\\("+[qn,qn,qn]+"\\)$"),Wn=new RegExp("^rgb\\("+[Hn,Hn,Hn]+"\\)$"),Yn=new RegExp("^rgba\\("+[qn,qn,qn,jn]+"\\)$"),Vn=new RegExp("^rgba\\("+[Hn,Hn,Hn,jn]+"\\)$"),Gn=new RegExp("^hsl\\("+[jn,Hn,Hn]+"\\)$"),Xn=new RegExp("^hsla\\("+[jn,Hn,Hn,jn]+"\\)$"),Zn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Kn(){return this.rgb().formatHex()}function Qn(){return this.rgb().formatRgb()}function Jn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Un.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?tr(e):3===n?new ir(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?er(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?er(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=$n.exec(t))?new ir(e[1],e[2],e[3],1):(e=Wn.exec(t))?new ir(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Yn.exec(t))?er(e[1],e[2],e[3],e[4]):(e=Vn.exec(t))?er(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Gn.exec(t))?lr(e[1],e[2]/100,e[3]/100,1):(e=Xn.exec(t))?lr(e[1],e[2]/100,e[3]/100,e[4]):Zn.hasOwnProperty(t)?tr(Zn[t]):"transparent"===t?new ir(NaN,NaN,NaN,0):null}function tr(t){return new ir(t>>16&255,t>>8&255,255&t,1)}function er(t,e,n,r){return r<=0&&(t=e=n=NaN),new ir(t,e,n,r)}function nr(t){return t instanceof Fn||(t=Jn(t)),t?new ir((t=t.rgb()).r,t.g,t.b,t.opacity):new ir}function rr(t,e,n,r){return 1===arguments.length?nr(t):new ir(t,e,n,null==r?1:r)}function ir(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ar(){return"#"+sr(this.r)+sr(this.g)+sr(this.b)}function or(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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))+(1===t?")":", "+t+")")}function sr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function lr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ur(t,e,n,r)}function cr(t){if(t instanceof ur)return new ur(t.h,t.s,t.l,t.opacity);if(t instanceof Fn||(t=Jn(t)),!t)return new ur;if(t instanceof ur)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new ur(o,s,l,t.opacity)}function ur(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function hr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}In(Fn,Jn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Kn,formatHex:Kn,formatHsl:function(){return cr(this).formatHsl()},formatRgb:Qn,toString:Qn}),In(ir,rr,Rn(Fn,{brighter:function(t){return t=null==t?zn:Math.pow(zn,t),new ir(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Pn:Math.pow(Pn,t),new ir(this.r*t,this.g*t,this.b*t,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:ar,formatHex:ar,formatRgb:or,toString:or})),In(ur,(function(t,e,n,r){return 1===arguments.length?cr(t):new ur(t,e,n,null==r?1:r)}),Rn(Fn,{brighter:function(t){return t=null==t?zn:Math.pow(zn,t),new ur(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Pn:Math.pow(Pn,t),new ur(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ir(hr(t>=240?t-240:t+120,i,r),hr(t,i,r),hr(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const fr=Math.PI/180,dr=180/Math.PI,pr=.96422,gr=.82521,mr=4/29,yr=6/29,vr=3*yr*yr;function br(t){if(t instanceof _r)return new _r(t.l,t.a,t.b,t.opacity);if(t instanceof Tr)return Ar(t);t instanceof ir||(t=nr(t));var e,n,r=Cr(t.r),i=Cr(t.g),a=Cr(t.b),o=xr((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?e=n=o:(e=xr((.4360747*r+.3850649*i+.1430804*a)/pr),n=xr((.0139322*r+.0971045*i+.7141733*a)/gr)),new _r(116*o-16,500*(e-o),200*(o-n),t.opacity)}function _r(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function xr(t){return t>.008856451679035631?Math.pow(t,1/3):t/vr+mr}function wr(t){return t>yr?t*t*t:vr*(t-mr)}function kr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Cr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Er(t){if(t instanceof Tr)return new Tr(t.h,t.c,t.l,t.opacity);if(t instanceof _r||(t=br(t)),0===t.a&&0===t.b)return new Tr(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*dr;return new Tr(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Sr(t,e,n,r){return 1===arguments.length?Er(t):new Tr(t,e,n,null==r?1:r)}function Tr(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Ar(t){if(isNaN(t.h))return new _r(t.l,0,0,t.opacity);var e=t.h*fr;return new _r(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}In(_r,(function(t,e,n,r){return 1===arguments.length?br(t):new _r(t,e,n,null==r?1:r)}),Rn(Fn,{brighter:function(t){return new _r(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new _r(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new ir(kr(3.1338561*(e=pr*wr(e))-1.6168667*(t=1*wr(t))-.4906146*(n=gr*wr(n))),kr(-.9787684*e+1.9161415*t+.033454*n),kr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),In(Tr,Sr,Rn(Fn,{brighter:function(t){return new Tr(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Tr(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ar(this).rgb()}}));const Mr=t=>()=>t;function Nr(t,e){return function(n){return t+n*e}}function Dr(t,e){var n=e-t;return n?Nr(t,n):Mr(isNaN(t)?e:t)}function Or(t){return function(e,n){var r=t((e=Sr(e)).h,(n=Sr(n)).h),i=Dr(e.c,n.c),a=Dr(e.l,n.l),o=Dr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const Lr=Or((function(t,e){var n=e-t;return n?Nr(t,n>180||n<-180?n-360*Math.round(n/360):n):Mr(isNaN(t)?e:t)}));var Br=Math.sqrt(50),Ir=Math.sqrt(10),Rr=Math.sqrt(2);function Fr(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=Br?10:a>=Ir?5:a>=Rr?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Br?10:a>=Ir?5:a>=Rr?2:1)}function Pr(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Br?i*=10:a>=Ir?i*=5:a>=Rr&&(i*=2),e<t?-i:i}function zr(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qr(t){let e=t,n=t,r=t;function i(t,e,i=0,a=t.length){if(i<a){if(0!==n(e,e))return a;do{const n=i+a>>>1;r(t[n],e)<0?i=n+1:a=n}while(i<a)}return i}return 2!==t.length&&(e=(e,n)=>t(e)-n,n=zr,r=(e,n)=>zr(t(e),n)),{left:i,center:function(t,n,r=0,a=t.length){const o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i=0,a=t.length){if(i<a){if(0!==n(e,e))return a;do{const n=i+a>>>1;r(t[n],e)<=0?i=n+1:a=n}while(i<a)}return i}}}const jr=qr(zr),Hr=jr.right,Ur=(qr((function(t){return null===t?NaN:+t})).center,Hr);function $r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Wr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Yr(){}var Vr=.7,Gr=1.4285714285714286,Xr="\\s*([+-]?\\d+)\\s*",Zr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qr=/^#([0-9a-f]{3,8})$/,Jr=new RegExp("^rgb\\("+[Xr,Xr,Xr]+"\\)$"),ti=new RegExp("^rgb\\("+[Kr,Kr,Kr]+"\\)$"),ei=new RegExp("^rgba\\("+[Xr,Xr,Xr,Zr]+"\\)$"),ni=new RegExp("^rgba\\("+[Kr,Kr,Kr,Zr]+"\\)$"),ri=new RegExp("^hsl\\("+[Zr,Kr,Kr]+"\\)$"),ii=new RegExp("^hsla\\("+[Zr,Kr,Kr,Zr]+"\\)$"),ai={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function oi(){return this.rgb().formatHex()}function si(){return this.rgb().formatRgb()}function li(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Qr.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ci(e):3===n?new di(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ui(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ui(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Jr.exec(t))?new di(e[1],e[2],e[3],1):(e=ti.exec(t))?new di(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ei.exec(t))?ui(e[1],e[2],e[3],e[4]):(e=ni.exec(t))?ui(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ri.exec(t))?yi(e[1],e[2]/100,e[3]/100,1):(e=ii.exec(t))?yi(e[1],e[2]/100,e[3]/100,e[4]):ai.hasOwnProperty(t)?ci(ai[t]):"transparent"===t?new di(NaN,NaN,NaN,0):null}function ci(t){return new di(t>>16&255,t>>8&255,255&t,1)}function ui(t,e,n,r){return r<=0&&(t=e=n=NaN),new di(t,e,n,r)}function hi(t){return t instanceof Yr||(t=li(t)),t?new di((t=t.rgb()).r,t.g,t.b,t.opacity):new di}function fi(t,e,n,r){return 1===arguments.length?hi(t):new di(t,e,n,null==r?1:r)}function di(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function pi(){return"#"+mi(this.r)+mi(this.g)+mi(this.b)}function gi(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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))+(1===t?")":", "+t+")")}function mi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function yi(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new bi(t,e,n,r)}function vi(t){if(t instanceof bi)return new bi(t.h,t.s,t.l,t.opacity);if(t instanceof Yr||(t=li(t)),!t)return new bi;if(t instanceof bi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new bi(o,s,l,t.opacity)}function bi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function _i(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}$r(Yr,li,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:oi,formatHex:oi,formatHsl:function(){return vi(this).formatHsl()},formatRgb:si,toString:si}),$r(di,fi,Wr(Yr,{brighter:function(t){return t=null==t?Gr:Math.pow(Gr,t),new di(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Vr:Math.pow(Vr,t),new di(this.r*t,this.g*t,this.b*t,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:pi,formatHex:pi,formatRgb:gi,toString:gi})),$r(bi,(function(t,e,n,r){return 1===arguments.length?vi(t):new bi(t,e,n,null==r?1:r)}),Wr(Yr,{brighter:function(t){return t=null==t?Gr:Math.pow(Gr,t),new bi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Vr:Math.pow(Vr,t),new bi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new di(_i(t>=240?t-240:t+120,i,r),_i(t,i,r),_i(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const xi=t=>()=>t;function wi(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):xi(isNaN(t)?e:t)}const ki=function t(e){var n=function(t){return 1==(t=+t)?wi:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):xi(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=fi(t)).r,(e=fi(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=wi(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Ci(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=Oi(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function Ei(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Si(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ti(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Oi(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Ai=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mi=new RegExp(Ai.source,"g");function Ni(t,e){var n,r,i,a=Ai.lastIndex=Mi.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(n=Ai.exec(t))&&(r=Mi.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:Si(n,r)})),a=Mi.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function Di(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Oi(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?xi(e):("number"===i?Si:"string"===i?(n=li(e))?(e=n,ki):Ni:e instanceof li?ki:e instanceof Date?Ei:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Ci:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ti:Si:Di))(t,e)}function Li(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Bi(t){return+t}var Ii=[0,1];function Ri(t){return t}function Fi(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Pi(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=Fi(i,r),a=n(o,a)):(r=Fi(r,i),a=n(a,o)),function(t){return a(r(t))}}function zi(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Fi(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=Ur(t,e,1,r)-1;return a[n](i[n](e))}}function qi(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ji(){return function(){var t,e,n,r,i,a,o=Ii,s=Ii,l=Oi,c=Ri;function u(){var t,e,n,l=Math.min(o.length,s.length);return c!==Ri&&(t=o[0],e=o[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?zi:Pi,i=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,l)))(t(c(e)))}return h.invert=function(n){return c(e((a||(a=r(s,o.map(t),Si)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,Bi),u()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=Li,u()},h.clamp=function(t){return arguments.length?(c=!!t||Ri,u()):c!==Ri},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,u()}}()(Ri,Ri)}function Hi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Ui,$i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wi(t){if(!(e=$i.exec(t)))throw new Error("invalid format: "+t);var e;return new Yi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Yi(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Vi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Gi(t){return(t=Vi(Math.abs(t)))?t[1]:NaN}function Xi(t,e){var n=Vi(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Wi.prototype=Yi.prototype,Yi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Zi={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Xi(100*t,e),r:Xi,s:function(t,e){var n=Vi(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Ui=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Vi(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ki(t){return t}var Qi,Ji,ta,ea=Array.prototype.map,na=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ra(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=Fr(t,e,n))||!isFinite(o))return[];if(o>0){let n=Math.round(t/o),r=Math.round(e/o);for(n*o<t&&++n,r*o>e&&--r,a=new Array(i=r-n+1);++s<i;)a[s]=(n+s)*o}else{o=-o;let n=Math.round(t*o),r=Math.round(e*o);for(n/o<t&&++n,r/o>e&&--r,a=new Array(i=r-n+1);++s<i;)a[s]=(n+s)/o}return r&&a.reverse(),a}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,a=Pr(t,e,n);switch((r=Wi(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Gi(e)/3)))-Gi(Math.abs(t)))}(a,o))||(r.precision=i),ta(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Gi(e)-Gi(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Gi(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return Ji(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,s=a.length-1,l=a[o],c=a[s],u=10;for(c<l&&(i=l,l=c,c=i,i=o,o=s,s=i);u-- >0;){if((i=Fr(l,c,n))===r)return a[o]=l,a[s]=c,e(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function ia(){var t=ji();return t.copy=function(){return qi(t,ia())},Hi.apply(t,arguments),ra(t)}Qi=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Ki:(e=ea.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Ki:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ea.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Wi(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,m=t.precision,y=t.trim,v=t.type;"n"===v?(g=!0,v="g"):Zi[v]||(void 0===m&&(m=12),y=!0,v="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===f?a:/[%p]/.test(v)?l:"",x=Zi[v],w=/[defgprs%]/.test(v);function k(t){var i,a,l,f=b,k=_;if("c"===v)k=x(t)+k,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:x(Math.abs(t),m),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),C&&0==+t&&"+"!==h&&(C=!1),f=(C?"("===h?h:c:"-"===h||"("===h?"":h)+f,k=("s"===v?na[8+Ui/3]:"")+k+(C&&"("===h?")":""),w)for(i=-1,a=t.length;++i<a;)if(48>(l=t.charCodeAt(i))||l>57){k=(46===l?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var E=f.length+t.length+k.length,S=E<p?new Array(p-E+1).join(e):"";switch(g&&d&&(t=r(S+t,S.length?p-k.length:1/0),S=""),n){case"<":t=f+t+k+S;break;case"=":t=f+S+t+k;break;case"^":t=S.slice(0,E=S.length>>1)+f+t+k+S.slice(E);break;default:t=S+f+t+k}return s(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=Wi(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Gi(e)/3))),i=Math.pow(10,-r),a=na[8+r/3];return function(t){return n(i*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ji=Qi.format,ta=Qi.formatPrefix;class aa extends Map{constructor(t,e=sa){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(oa(this,t))}has(t){return super.has(oa(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function oa({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function sa(t){return null!==t&&"object"==typeof t?t.valueOf():t}const la=Symbol("implicit");function ca(){var t=new aa,e=[],n=[],r=la;function i(i){let a=t.get(i);if(void 0===a){if(r!==la)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new aa;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return ca(e,n).unknown(r)},Hi.apply(i,arguments),i}const ua=1e3,ha=6e4,fa=36e5,da=864e5,pa=6048e5,ga=31536e6;var ma=new Date,ya=new Date;function va(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return va((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return ma.setTime(+e),ya.setTime(+r),t(ma),t(ya),Math.floor(n(ma,ya))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var ba=va((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));ba.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?va((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):ba:null};const _a=ba;var xa=va((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*ua)}),(function(t,e){return(e-t)/ua}),(function(t){return t.getUTCSeconds()}));const wa=xa;var ka=va((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*ua)}),(function(t,e){t.setTime(+t+e*ha)}),(function(t,e){return(e-t)/ha}),(function(t){return t.getMinutes()}));const Ca=ka;var Ea=va((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*ua-t.getMinutes()*ha)}),(function(t,e){t.setTime(+t+e*fa)}),(function(t,e){return(e-t)/fa}),(function(t){return t.getHours()}));const Sa=Ea;var Ta=va((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ha)/da),(t=>t.getDate()-1));const Aa=Ta;function Ma(t){return va((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ha)/pa}))}var Na=Ma(0),Da=Ma(1);Ma(2),Ma(3);var Oa=Ma(4);Ma(5),Ma(6);var La=va((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const Ba=La;var Ia=va((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Ia.every=function(t){return isFinite(t=Math.floor(t))&&t>0?va((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Ra=Ia;va((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*ha)}),(function(t,e){return(e-t)/ha}),(function(t){return t.getUTCMinutes()})),va((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*fa)}),(function(t,e){return(e-t)/fa}),(function(t){return t.getUTCHours()}));var Fa=va((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/da}),(function(t){return t.getUTCDate()-1}));const Pa=Fa;function za(t){return va((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/pa}))}var qa=za(0),ja=za(1);za(2),za(3);var Ha=za(4);za(5),za(6),va((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));var Ua=va((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Ua.every=function(t){return isFinite(t=Math.floor(t))&&t>0?va((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const $a=Ua;function Wa(t,e,n,r,i,a){const o=[[wa,1,ua],[wa,5,5e3],[wa,15,15e3],[wa,30,3e4],[a,1,ha],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,fa],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,da],[r,2,1728e5],[n,1,pa],[e,1,2592e6],[e,3,7776e6],[t,1,ga]];function s(e,n,r){const i=Math.abs(n-e)/r,a=qr((([,,t])=>t)).right(o,i);if(a===o.length)return t.every(Pr(e/ga,n/ga,r));if(0===a)return _a.every(Math.max(Pr(e,n,r),1));const[s,l]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(l)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:s(t,e,n),a=i?i.range(t,+e+1):[];return r?a.reverse():a},s]}const[Ya,Va]=Wa(Ra,Ba,Na,Aa,Sa,Ca);function Ga(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Xa(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Za(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Ka,Qa,Ja={"-":"",_:" ",0:"0"},to=/^\s*\d+/,eo=/^%/,no=/[\\^$*+?|[\]().{}]/g;function ro(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function io(t){return t.replace(no,"\\$&")}function ao(t){return new RegExp("^(?:"+t.map(io).join("|")+")","i")}function oo(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function so(t,e,n){var r=to.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function lo(t,e,n){var r=to.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function co(t,e,n){var r=to.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function uo(t,e,n){var r=to.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function ho(t,e,n){var r=to.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function fo(t,e,n){var r=to.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function po(t,e,n){var r=to.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function go(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function mo(t,e,n){var r=to.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function yo(t,e,n){var r=to.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function vo(t,e,n){var r=to.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function bo(t,e,n){var r=to.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function _o(t,e,n){var r=to.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function xo(t,e,n){var r=to.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function wo(t,e,n){var r=to.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ko(t,e,n){var r=to.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Co(t,e,n){var r=to.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Eo(t,e,n){var r=eo.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function So(t,e,n){var r=to.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function To(t,e,n){var r=to.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ao(t,e){return ro(t.getDate(),e,2)}function Mo(t,e){return ro(t.getHours(),e,2)}function No(t,e){return ro(t.getHours()%12||12,e,2)}function Do(t,e){return ro(1+Aa.count(Ra(t),t),e,3)}function Oo(t,e){return ro(t.getMilliseconds(),e,3)}function Lo(t,e){return Oo(t,e)+"000"}function Bo(t,e){return ro(t.getMonth()+1,e,2)}function Io(t,e){return ro(t.getMinutes(),e,2)}function Ro(t,e){return ro(t.getSeconds(),e,2)}function Fo(t){var e=t.getDay();return 0===e?7:e}function Po(t,e){return ro(Na.count(Ra(t)-1,t),e,2)}function zo(t){var e=t.getDay();return e>=4||0===e?Oa(t):Oa.ceil(t)}function qo(t,e){return t=zo(t),ro(Oa.count(Ra(t),t)+(4===Ra(t).getDay()),e,2)}function jo(t){return t.getDay()}function Ho(t,e){return ro(Da.count(Ra(t)-1,t),e,2)}function Uo(t,e){return ro(t.getFullYear()%100,e,2)}function $o(t,e){return ro((t=zo(t)).getFullYear()%100,e,2)}function Wo(t,e){return ro(t.getFullYear()%1e4,e,4)}function Yo(t,e){var n=t.getDay();return ro((t=n>=4||0===n?Oa(t):Oa.ceil(t)).getFullYear()%1e4,e,4)}function Vo(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ro(e/60|0,"0",2)+ro(e%60,"0",2)}function Go(t,e){return ro(t.getUTCDate(),e,2)}function Xo(t,e){return ro(t.getUTCHours(),e,2)}function Zo(t,e){return ro(t.getUTCHours()%12||12,e,2)}function Ko(t,e){return ro(1+Pa.count($a(t),t),e,3)}function Qo(t,e){return ro(t.getUTCMilliseconds(),e,3)}function Jo(t,e){return Qo(t,e)+"000"}function ts(t,e){return ro(t.getUTCMonth()+1,e,2)}function es(t,e){return ro(t.getUTCMinutes(),e,2)}function ns(t,e){return ro(t.getUTCSeconds(),e,2)}function rs(t){var e=t.getUTCDay();return 0===e?7:e}function is(t,e){return ro(qa.count($a(t)-1,t),e,2)}function as(t){var e=t.getUTCDay();return e>=4||0===e?Ha(t):Ha.ceil(t)}function os(t,e){return t=as(t),ro(Ha.count($a(t),t)+(4===$a(t).getUTCDay()),e,2)}function ss(t){return t.getUTCDay()}function ls(t,e){return ro(ja.count($a(t)-1,t),e,2)}function cs(t,e){return ro(t.getUTCFullYear()%100,e,2)}function us(t,e){return ro((t=as(t)).getUTCFullYear()%100,e,2)}function hs(t,e){return ro(t.getUTCFullYear()%1e4,e,4)}function fs(t,e){var n=t.getUTCDay();return ro((t=n>=4||0===n?Ha(t):Ha.ceil(t)).getUTCFullYear()%1e4,e,4)}function ds(){return"+0000"}function ps(){return"%"}function gs(t){return+t}function ms(t){return Math.floor(+t/1e3)}function ys(t){return new Date(t)}function vs(t){return t instanceof Date?+t:+new Date(+t)}function bs(t,e,n,r,i,a,o,s,l,c){var u=ji(),h=u.invert,f=u.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),v=c("%b %d"),b=c("%B"),_=c("%Y");function x(t){return(l(t)<t?d:s(t)<t?p:o(t)<t?g:a(t)<t?m:r(t)<t?i(t)<t?y:v:n(t)<t?b:_)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?f(Array.from(t,vs)):f().map(ys)},u.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?x:c(e)},u.nice=function(t){var n=f();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}(n,t)):u},u.copy=function(){return qi(u,bs(t,e,n,r,i,a,o,s,l,c))},u}function _s(){}function xs(t){return null==t?_s:function(){return this.querySelector(t)}}function ws(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function ks(){return[]}function Cs(t){return null==t?ks:function(){return this.querySelectorAll(t)}}function Es(t){return function(){return this.matches(t)}}function Ss(t){return function(e){return e.matches(t)}}Ka=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,l=t.shortMonths,c=ao(i),u=oo(i),h=ao(a),f=oo(a),d=ao(o),p=oo(o),g=ao(s),m=oo(s),y=ao(l),v=oo(l),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Ao,e:Ao,f:Lo,g:$o,G:Yo,H:Mo,I:No,j:Do,L:Oo,m:Bo,M:Io,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:gs,s:ms,S:Ro,u:Fo,U:Po,V:qo,w:jo,W:Ho,x:null,X:null,y:Uo,Y:Wo,Z:Vo,"%":ps},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Go,e:Go,f:Jo,g:us,G:fs,H:Xo,I:Zo,j:Ko,L:Qo,m:ts,M:es,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:gs,s:ms,S:ns,u:rs,U:is,V:os,w:ss,W:ls,x:null,X:null,y:cs,Y:hs,Z:ds,"%":ps},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:vo,e:vo,f:Co,g:po,G:fo,H:_o,I:_o,j:bo,L:ko,m:yo,M:xo,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:mo,Q:So,s:To,S:wo,u:lo,U:co,V:uo,w:so,W:ho,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:po,Y:fo,Z:go,"%":Eo};function w(t,e){return function(n){var r,i,a,o=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=Ja[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),l=s+1);return o.push(t.slice(l,s)),o.join("")}}function k(t,e){return function(n){var r,i,a=Za(1900,void 0,1);if(C(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Xa(Za(a.y,0,1))).getUTCDay(),r=i>4||0===i?ja.ceil(r):ja(r),r=Pa.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Ga(Za(a.y,0,1))).getDay(),r=i>4||0===i?Da.ceil(r):Da(r),r=Aa.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Xa(Za(a.y,0,1)).getUTCDay():Ga(Za(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Xa(a)):Ga(a)}}function C(t,e,n,r){for(var i,a,o=0,s=e.length,l=n.length;o<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in Ja?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Qa=Ka.format,Ka.parse,Ka.utcFormat,Ka.utcParse;var Ts=Array.prototype.find;function As(){return this.firstElementChild}var Ms=Array.prototype.filter;function Ns(){return Array.from(this.children)}function Ds(t){return new Array(t.length)}function Os(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ls(t){return function(){return t}}function Bs(t,e,n,r,i,a){for(var o,s=0,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new Os(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function Is(t,e,n,r,i,a,o){var s,l,c,u=new Map,h=e.length,f=a.length,d=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(d[s]=c=o.call(l,l.__data__,s,e)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<f;++s)c=o.call(t,a[s],s,a)+"",(l=u.get(c))?(r[s]=l,l.__data__=a[s],u.delete(c)):n[s]=new Os(t,a[s]);for(s=0;s<h;++s)(l=e[s])&&u.get(d[s])===l&&(i[s]=l)}function Rs(t){return t.__data__}function Fs(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Ps(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Os.prototype={constructor:Os,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var zs="http://www.w3.org/1999/xhtml";const qs={svg:"http://www.w3.org/2000/svg",xhtml:zs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function js(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),qs.hasOwnProperty(e)?{space:qs[e],local:t}:t}function Hs(t){return function(){this.removeAttribute(t)}}function Us(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $s(t,e){return function(){this.setAttribute(t,e)}}function Ws(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ys(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Vs(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Gs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Xs(t){return function(){this.style.removeProperty(t)}}function Zs(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ks(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Qs(t,e){return t.style.getPropertyValue(e)||Gs(t).getComputedStyle(t,null).getPropertyValue(e)}function Js(t){return function(){delete this[t]}}function tl(t,e){return function(){this[t]=e}}function el(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function nl(t){return t.trim().split(/^|\s+/)}function rl(t){return t.classList||new il(t)}function il(t){this._node=t,this._names=nl(t.getAttribute("class")||"")}function al(t,e){for(var n=rl(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function ol(t,e){for(var n=rl(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function sl(t){return function(){al(this,t)}}function ll(t){return function(){ol(this,t)}}function cl(t,e){return function(){(e.apply(this,arguments)?al:ol)(this,t)}}function ul(){this.textContent=""}function hl(t){return function(){this.textContent=t}}function fl(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function dl(){this.innerHTML=""}function pl(t){return function(){this.innerHTML=t}}function gl(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function ml(){this.nextSibling&&this.parentNode.appendChild(this)}function yl(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vl(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===zs&&e.documentElement.namespaceURI===zs?e.createElement(t):e.createElementNS(n,t)}}function bl(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _l(t){var e=js(t);return(e.local?bl:vl)(e)}function xl(){return null}function wl(){var t=this.parentNode;t&&t.removeChild(this)}function kl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Cl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function El(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Sl(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Tl(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Al(t,e,n){var r=Gs(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Ml(t,e){return function(){return Al(this,t,e)}}function Nl(t,e){return function(){return Al(this,t,e.apply(this,arguments))}}il.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Dl=[null];function Ol(t,e){this._groups=t,this._parents=e}function Ll(){return new Ol([[document.documentElement]],Dl)}Ol.prototype=Ll.prototype={constructor:Ol,select:function(t){"function"!=typeof t&&(t=xs(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new Ol(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return ws(t.apply(this,arguments))}}(t):Cs(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],l=s.length,c=0;c<l;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new Ol(r,i)},selectChild:function(t){return this.select(null==t?As:function(t){return function(){return Ts.call(this.children,t)}}("function"==typeof t?t:Ss(t)))},selectChildren:function(t){return this.selectAll(null==t?Ns:function(t){return function(){return Ms.call(this.children,t)}}("function"==typeof t?t:Ss(t)))},filter:function(t){"function"!=typeof t&&(t=Es(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new Ol(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Rs);var n=e?Is:Bs,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Ls(t));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],h=i[c],f=h.length,d=Fs(t.call(u,u&&u.__data__,c,r)),p=d.length,g=s[c]=new Array(p),m=o[c]=new Array(p),y=l[c]=new Array(f);n(u,h,g,m,y,d,e);for(var v,b,_=0,x=0;_<p;++_)if(v=g[_]){for(_>=x&&(x=_+1);!(b=m[x])&&++x<p;);v._next=b||null}}return(o=new Ol(o,r))._enter=s,o._exit=l,o},enter:function(){return new Ol(this._enter||this._groups.map(Ds),this._parents)},exit:function(){return new Ol(this._exit||this._groups.map(Ds),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var c,u=n[l],h=r[l],f=u.length,d=s[l]=new Array(f),p=0;p<f;++p)(c=u[p]||h[p])&&(d[p]=c);for(;l<i;++l)s[l]=n[l];return new Ol(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ps);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],l=s.length,c=i[a]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(e)}return new Ol(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=js(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Us:Hs:"function"==typeof e?n.local?Vs:Ys:n.local?Ws:$s)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Xs:"function"==typeof e?Ks:Zs)(t,e,null==n?"":n)):Qs(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Js:"function"==typeof e?el:tl)(t,e)):this.node()[t]},classed:function(t,e){var n=nl(t+"");if(arguments.length<2){for(var r=rl(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?cl:e?sl:ll)(n,e))},text:function(t){return arguments.length?this.each(null==t?ul:("function"==typeof t?fl:hl)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?dl:("function"==typeof t?gl:pl)(t)):this.node().innerHTML},raise:function(){return this.each(ml)},lower:function(){return this.each(yl)},append:function(t){var e="function"==typeof t?t:_l(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:_l(t),r=null==e?xl:"function"==typeof e?e:xs(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(wl)},clone:function(t){return this.select(t?Cl:kl)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=El(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Tl:Sl,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<o;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Nl:Ml)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};const Bl=Ll;function Il(t){return"string"==typeof t?new Ol([[document.querySelector(t)]],[document.documentElement]):new Ol([[t]],Dl)}function Rl(t){return"string"==typeof t?new Ol([document.querySelectorAll(t)],[document.documentElement]):new Ol([ws(t)],Dl)}const Fl=Math.PI,Pl=2*Fl,zl=1e-6,ql=Pl-zl;function jl(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Hl(){return new jl}jl.prototype=Hl.prototype={constructor:jl,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,l=r-e,c=a-t,u=o-e,h=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>zl)if(Math.abs(u*s-l*c)>zl&&i){var f=n-a,d=r-o,p=s*s+l*l,g=f*f+d*d,m=Math.sqrt(p),y=Math.sqrt(h),v=i*Math.tan((Fl-Math.acos((p+h-g)/(2*m*y)))/2),b=v/y,_=v/m;Math.abs(b-1)>zl&&(this._+="L"+(t+b*c)+","+(e+b*u)),this._+="A"+i+","+i+",0,0,"+ +(u*f>c*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+o,c=e+s,u=1^a,h=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>zl||Math.abs(this._y1-c)>zl)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%Pl+Pl),h>ql?this._+="A"+n+","+n+",0,1,"+u+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>zl&&(this._+="A"+n+","+n+",0,"+ +(h>=Fl)+","+u+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Ul=Hl;function $l(t){return function(){return t}}var Wl=Math.abs,Yl=Math.atan2,Vl=Math.cos,Gl=Math.max,Xl=Math.min,Zl=Math.sin,Kl=Math.sqrt,Ql=1e-12,Jl=Math.PI,tc=Jl/2,ec=2*Jl;function nc(t){return t>1?0:t<-1?Jl:Math.acos(t)}function rc(t){return t>=1?tc:t<=-1?-tc:Math.asin(t)}function ic(t){return t.innerRadius}function ac(t){return t.outerRadius}function oc(t){return t.startAngle}function sc(t){return t.endAngle}function lc(t){return t&&t.padAngle}function cc(t,e,n,r,i,a,o,s){var l=n-t,c=r-e,u=o-i,h=s-a,f=h*l-u*c;if(!(f*f<Ql))return[t+(f=(u*(e-a)-h*(t-i))/f)*l,e+f*c]}function uc(t,e,n,r,i,a,o){var s=t-n,l=e-r,c=(o?a:-a)/Kl(s*s+l*l),u=c*l,h=-c*s,f=t+u,d=e+h,p=n+u,g=r+h,m=(f+p)/2,y=(d+g)/2,v=p-f,b=g-d,_=v*v+b*b,x=i-a,w=f*g-p*d,k=(b<0?-1:1)*Kl(Gl(0,x*x*_-w*w)),C=(w*b-v*k)/_,E=(-w*v-b*k)/_,S=(w*b+v*k)/_,T=(-w*v+b*k)/_,A=C-m,M=E-y,N=S-m,D=T-y;return A*A+M*M>N*N+D*D&&(C=S,E=T),{cx:C,cy:E,x01:-u,y01:-h,x11:C*(i/x-1),y11:E*(i/x-1)}}function hc(){var t=ic,e=ac,n=$l(0),r=null,i=oc,a=sc,o=lc,s=null;function l(){var l,c,u=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-tc,d=a.apply(this,arguments)-tc,p=Wl(d-f),g=d>f;if(s||(s=l=Ul()),h<u&&(c=h,h=u,u=c),h>Ql)if(p>ec-Ql)s.moveTo(h*Vl(f),h*Zl(f)),s.arc(0,0,h,f,d,!g),u>Ql&&(s.moveTo(u*Vl(d),u*Zl(d)),s.arc(0,0,u,d,f,g));else{var m,y,v=f,b=d,_=f,x=d,w=p,k=p,C=o.apply(this,arguments)/2,E=C>Ql&&(r?+r.apply(this,arguments):Kl(u*u+h*h)),S=Xl(Wl(h-u)/2,+n.apply(this,arguments)),T=S,A=S;if(E>Ql){var M=rc(E/u*Zl(C)),N=rc(E/h*Zl(C));(w-=2*M)>Ql?(_+=M*=g?1:-1,x-=M):(w=0,_=x=(f+d)/2),(k-=2*N)>Ql?(v+=N*=g?1:-1,b-=N):(k=0,v=b=(f+d)/2)}var D=h*Vl(v),O=h*Zl(v),L=u*Vl(x),B=u*Zl(x);if(S>Ql){var I,R=h*Vl(b),F=h*Zl(b),P=u*Vl(_),z=u*Zl(_);if(p<Jl&&(I=cc(D,O,P,z,R,F,L,B))){var q=D-I[0],j=O-I[1],H=R-I[0],U=F-I[1],$=1/Zl(nc((q*H+j*U)/(Kl(q*q+j*j)*Kl(H*H+U*U)))/2),W=Kl(I[0]*I[0]+I[1]*I[1]);T=Xl(S,(u-W)/($-1)),A=Xl(S,(h-W)/($+1))}}k>Ql?A>Ql?(m=uc(P,z,D,O,h,A,g),y=uc(R,F,L,B,h,A,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),A<S?s.arc(m.cx,m.cy,A,Yl(m.y01,m.x01),Yl(y.y01,y.x01),!g):(s.arc(m.cx,m.cy,A,Yl(m.y01,m.x01),Yl(m.y11,m.x11),!g),s.arc(0,0,h,Yl(m.cy+m.y11,m.cx+m.x11),Yl(y.cy+y.y11,y.cx+y.x11),!g),s.arc(y.cx,y.cy,A,Yl(y.y11,y.x11),Yl(y.y01,y.x01),!g))):(s.moveTo(D,O),s.arc(0,0,h,v,b,!g)):s.moveTo(D,O),u>Ql&&w>Ql?T>Ql?(m=uc(L,B,R,F,u,-T,g),y=uc(D,O,P,z,u,-T,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),T<S?s.arc(m.cx,m.cy,T,Yl(m.y01,m.x01),Yl(y.y01,y.x01),!g):(s.arc(m.cx,m.cy,T,Yl(m.y01,m.x01),Yl(m.y11,m.x11),!g),s.arc(0,0,u,Yl(m.cy+m.y11,m.cx+m.x11),Yl(y.cy+y.y11,y.cx+y.x11),g),s.arc(y.cx,y.cy,T,Yl(y.y11,y.x11),Yl(y.y01,y.x01),!g))):s.arc(0,0,u,x,_,g):s.lineTo(L,B)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Jl/2;return[Vl(r)*n,Zl(r)*n]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:$l(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:$l(+t),l):e},l.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:$l(+t),l):n},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:$l(+t),l):r},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:$l(+t),l):i},l.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:$l(+t),l):a},l.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:$l(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function fc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function dc(t){this._context=t}function pc(t){return new dc(t)}function gc(t){return t[0]}function mc(t){return t[1]}function yc(t,e){var n=$l(!0),r=null,i=pc,a=null;function o(o){var s,l,c,u=(o=fc(o)).length,h=!1;for(null==r&&(a=i(c=Ul())),s=0;s<=u;++s)!(s<u&&n(l=o[s],s,o))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+t(l,s,o),+e(l,s,o));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?gc:$l(t),e="function"==typeof e?e:void 0===e?mc:$l(e),o.x=function(e){return arguments.length?(t="function"==typeof e?e:$l(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:$l(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:$l(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o}function vc(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function bc(t){return t}function _c(){}function xc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function wc(t){this._context=t}function kc(t){return new wc(t)}function Cc(t){this._context=t}function Ec(t){this._context=t}function Sc(t){this._context=t}function Tc(t){return t<0?-1:1}function Ac(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Tc(a)+Tc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Mc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Nc(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Dc(t){this._context=t}function Oc(t){this._context=new Lc(t)}function Lc(t){this._context=t}function Bc(t){this._context=t}function Ic(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Rc(t,e){this._context=t,this._t=e}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Cc.prototype={areaStart:_c,areaEnd:_c,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:xc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:xc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Sc.prototype={areaStart:_c,areaEnd:_c,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Nc(this,this._t0,Mc(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Nc(this,Mc(this,n=Ac(this,t,e)),n);break;default:Nc(this,this._t0,n=Ac(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Oc.prototype=Object.create(Dc.prototype)).point=function(t,e){Dc.prototype.point.call(this,e,t)},Lc.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},Bc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Ic(t),i=Ic(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Rc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Fc=new Date,Pc=new Date;function zc(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return zc((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Fc.setTime(+e),Pc.setTime(+r),t(Fc),t(Pc),Math.floor(n(Fc,Pc))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}const qc=864e5,jc=6048e5;function Hc(t){return zc((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/jc}))}var Uc=Hc(0),$c=Hc(1);Hc(2),Hc(3);var Wc=Hc(4);Hc(5),Hc(6);var Yc=zc((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/qc}),(function(t){return t.getUTCDate()-1}));const Vc=Yc;function Gc(t){return zc((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/jc}))}var Xc=Gc(0),Zc=Gc(1);Gc(2),Gc(3);var Kc=Gc(4);Gc(5),Gc(6);var Qc=zc((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/qc),(t=>t.getDate()-1));const Jc=Qc;var tu=zc((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));tu.every=function(t){return isFinite(t=Math.floor(t))&&t>0?zc((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const eu=tu;var nu=zc((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));nu.every=function(t){return isFinite(t=Math.floor(t))&&t>0?zc((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const ru=nu;function iu(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function au(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ou(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var su,lu,cu={"-":"",_:" ",0:"0"},uu=/^\s*\d+/,hu=/^%/,fu=/[\\^$*+?|[\]().{}]/g;function du(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function pu(t){return t.replace(fu,"\\$&")}function gu(t){return new RegExp("^(?:"+t.map(pu).join("|")+")","i")}function mu(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function yu(t,e,n){var r=uu.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function vu(t,e,n){var r=uu.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function bu(t,e,n){var r=uu.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function _u(t,e,n){var r=uu.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function xu(t,e,n){var r=uu.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function wu(t,e,n){var r=uu.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ku(t,e,n){var r=uu.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Cu(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Eu(t,e,n){var r=uu.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Su(t,e,n){var r=uu.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Tu(t,e,n){var r=uu.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Au(t,e,n){var r=uu.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Mu(t,e,n){var r=uu.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Nu(t,e,n){var r=uu.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Du(t,e,n){var r=uu.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ou(t,e,n){var r=uu.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Lu(t,e,n){var r=uu.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Bu(t,e,n){var r=hu.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Iu(t,e,n){var r=uu.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ru(t,e,n){var r=uu.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Fu(t,e){return du(t.getDate(),e,2)}function Pu(t,e){return du(t.getHours(),e,2)}function zu(t,e){return du(t.getHours()%12||12,e,2)}function qu(t,e){return du(1+Jc.count(eu(t),t),e,3)}function ju(t,e){return du(t.getMilliseconds(),e,3)}function Hu(t,e){return ju(t,e)+"000"}function Uu(t,e){return du(t.getMonth()+1,e,2)}function $u(t,e){return du(t.getMinutes(),e,2)}function Wu(t,e){return du(t.getSeconds(),e,2)}function Yu(t){var e=t.getDay();return 0===e?7:e}function Vu(t,e){return du(Xc.count(eu(t)-1,t),e,2)}function Gu(t){var e=t.getDay();return e>=4||0===e?Kc(t):Kc.ceil(t)}function Xu(t,e){return t=Gu(t),du(Kc.count(eu(t),t)+(4===eu(t).getDay()),e,2)}function Zu(t){return t.getDay()}function Ku(t,e){return du(Zc.count(eu(t)-1,t),e,2)}function Qu(t,e){return du(t.getFullYear()%100,e,2)}function Ju(t,e){return du((t=Gu(t)).getFullYear()%100,e,2)}function th(t,e){return du(t.getFullYear()%1e4,e,4)}function eh(t,e){var n=t.getDay();return du((t=n>=4||0===n?Kc(t):Kc.ceil(t)).getFullYear()%1e4,e,4)}function nh(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+du(e/60|0,"0",2)+du(e%60,"0",2)}function rh(t,e){return du(t.getUTCDate(),e,2)}function ih(t,e){return du(t.getUTCHours(),e,2)}function ah(t,e){return du(t.getUTCHours()%12||12,e,2)}function oh(t,e){return du(1+Vc.count(ru(t),t),e,3)}function sh(t,e){return du(t.getUTCMilliseconds(),e,3)}function lh(t,e){return sh(t,e)+"000"}function ch(t,e){return du(t.getUTCMonth()+1,e,2)}function uh(t,e){return du(t.getUTCMinutes(),e,2)}function hh(t,e){return du(t.getUTCSeconds(),e,2)}function fh(t){var e=t.getUTCDay();return 0===e?7:e}function dh(t,e){return du(Uc.count(ru(t)-1,t),e,2)}function ph(t){var e=t.getUTCDay();return e>=4||0===e?Wc(t):Wc.ceil(t)}function gh(t,e){return t=ph(t),du(Wc.count(ru(t),t)+(4===ru(t).getUTCDay()),e,2)}function mh(t){return t.getUTCDay()}function yh(t,e){return du($c.count(ru(t)-1,t),e,2)}function vh(t,e){return du(t.getUTCFullYear()%100,e,2)}function bh(t,e){return du((t=ph(t)).getUTCFullYear()%100,e,2)}function _h(t,e){return du(t.getUTCFullYear()%1e4,e,4)}function xh(t,e){var n=t.getUTCDay();return du((t=n>=4||0===n?Wc(t):Wc.ceil(t)).getUTCFullYear()%1e4,e,4)}function wh(){return"+0000"}function kh(){return"%"}function Ch(t){return+t}function Eh(t){return Math.floor(+t/1e3)}su=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,l=t.shortMonths,c=gu(i),u=mu(i),h=gu(a),f=mu(a),d=gu(o),p=mu(o),g=gu(s),m=mu(s),y=gu(l),v=mu(l),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Fu,e:Fu,f:Hu,g:Ju,G:eh,H:Pu,I:zu,j:qu,L:ju,m:Uu,M:$u,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ch,s:Eh,S:Wu,u:Yu,U:Vu,V:Xu,w:Zu,W:Ku,x:null,X:null,y:Qu,Y:th,Z:nh,"%":kh},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:rh,e:rh,f:lh,g:bh,G:xh,H:ih,I:ah,j:oh,L:sh,m:ch,M:uh,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ch,s:Eh,S:hh,u:fh,U:dh,V:gh,w:mh,W:yh,x:null,X:null,y:vh,Y:_h,Z:wh,"%":kh},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:Tu,e:Tu,f:Lu,g:ku,G:wu,H:Mu,I:Mu,j:Au,L:Ou,m:Su,M:Nu,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Eu,Q:Iu,s:Ru,S:Du,u:vu,U:bu,V:_u,w:yu,W:xu,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:ku,Y:wu,Z:Cu,"%":Bu};function w(t,e){return function(n){var r,i,a,o=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=cu[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),l=s+1);return o.push(t.slice(l,s)),o.join("")}}function k(t,e){return function(n){var r,i,a=ou(1900,void 0,1);if(C(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=au(ou(a.y,0,1))).getUTCDay(),r=i>4||0===i?$c.ceil(r):$c(r),r=Vc.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=iu(ou(a.y,0,1))).getDay(),r=i>4||0===i?Zc.ceil(r):Zc(r),r=Jc.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?au(ou(a.y,0,1)).getUTCDay():iu(ou(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,au(a)):iu(a)}}function C(t,e,n,r){for(var i,a,o=0,s=e.length,l=n.length;o<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in cu?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),lu=su.format,su.parse,su.utcFormat,su.utcParse;var Sh={value:()=>{}};function Th(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Ah(r)}function Ah(t){this._=t}function Mh(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Nh(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Dh(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Sh,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Ah.prototype=Th.prototype={constructor:Ah,on:function(t,e){var n,r=this._,i=Mh(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=Dh(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Dh(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=Nh(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ah(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};const Oh=Th;var Lh,Bh,Ih=0,Rh=0,Fh=0,Ph=0,zh=0,qh=0,jh="object"==typeof performance&&performance.now?performance:Date,Hh="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Uh(){return zh||(Hh($h),zh=jh.now()+qh)}function $h(){zh=0}function Wh(){this._call=this._time=this._next=null}function Yh(t,e,n){var r=new Wh;return r.restart(t,e,n),r}function Vh(){zh=(Ph=jh.now())+qh,Ih=Rh=0;try{!function(){Uh(),++Ih;for(var t,e=Lh;e;)(t=zh-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ih}()}finally{Ih=0,function(){for(var t,e,n=Lh,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Lh=e);Bh=t,Xh(r)}(),zh=0}}function Gh(){var t=jh.now(),e=t-Ph;e>1e3&&(qh-=e,Ph=t)}function Xh(t){Ih||(Rh&&(Rh=clearTimeout(Rh)),t-zh>24?(t<1/0&&(Rh=setTimeout(Vh,t-jh.now()-qh)),Fh&&(Fh=clearInterval(Fh))):(Fh||(Ph=jh.now(),Fh=setInterval(Gh,1e3)),Ih=1,Hh(Vh)))}function Zh(t,e,n){var r=new Wh;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Wh.prototype=Yh.prototype={constructor:Wh,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Uh():+n)+(null==e?0:+e),this._next||Bh===this||(Bh?Bh._next=this:Lh=this,Bh=this),this._call=t,this._time=n,Xh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xh())}};var Kh=Oh("start","end","cancel","interrupt"),Qh=[];function Jh(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(l){var c,u,h,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return Zh(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(Zh((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Yh((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Kh,tween:Qh,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function tf(t,e){var n=nf(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function ef(t,e){var n=nf(t,e);if(n.state>3)throw new Error("too late; already running");return n}function nf(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function rf(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var af,of=180/Math.PI,sf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lf(t,e,n,r,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*of,skewX:Math.atan(l)*of,scaleX:o,scaleY:s}}function cf(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var l=o.push("translate(",null,e,null,n);s.push({i:l-4,x:rf(t,i)},{i:l-2,x:rf(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:rf(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,l),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:rf(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,l),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:rf(t,n)},{i:s-2,x:rf(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,n=-1,r=l.length;++n<r;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var uf=cf((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?sf:lf(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),hf=cf((function(t){return null==t?sf:(af||(af=document.createElementNS("http://www.w3.org/2000/svg","g")),af.setAttribute("transform",t),(t=af.transform.baseVal.consolidate())?lf((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):sf)}),", ",")",")");function ff(t,e){var n,r;return function(){var i=ef(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function df(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=ef(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function pf(t,e,n){var r=t._id;return t.each((function(){var t=ef(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return nf(t,r).value[e]}}const gf=function t(e){var n=function(t){return 1==(t=+t)?Dr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Mr(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=rr(t)).r,(e=rr(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Dr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);var mf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yf=new RegExp(mf.source,"g");function vf(t,e){var n,r,i,a=mf.lastIndex=yf.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(n=mf.exec(t))&&(r=yf.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:rf(n,r)})),a=yf.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function bf(t,e){var n;return("number"==typeof e?rf:e instanceof Jn?gf:(n=Jn(e))?(e=n,gf):vf)(t,e)}function _f(t){return function(){this.removeAttribute(t)}}function xf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function wf(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function kf(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function Cf(t,e,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttribute(t))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,l));this.removeAttribute(t)}}function Ef(t,e,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,l));this.removeAttributeNS(t.space,t.local)}}function Sf(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Tf(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Af(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Tf(t,i)),n}return i._value=e,i}function Mf(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Sf(t,i)),n}return i._value=e,i}function Nf(t,e){return function(){tf(this,t).delay=+e.apply(this,arguments)}}function Df(t,e){return e=+e,function(){tf(this,t).delay=e}}function Of(t,e){return function(){ef(this,t).duration=+e.apply(this,arguments)}}function Lf(t,e){return e=+e,function(){ef(this,t).duration=e}}function Bf(t,e){if("function"!=typeof e)throw new Error;return function(){ef(this,t).ease=e}}function If(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?tf:ef;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Rf=Bl.prototype.constructor;function Ff(t){return function(){this.style.removeProperty(t)}}function Pf(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function zf(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Pf(t,a,n)),r}return a._value=e,a}function qf(t){return function(e){this.textContent=t.call(this,e)}}function jf(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&qf(r)),e}return r._value=t,r}var Hf=0;function Uf(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function $f(){return++Hf}var Wf=Bl.prototype;Uf.prototype={constructor:Uf,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=xs(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,l,c=r[o],u=c.length,h=a[o]=new Array(u),f=0;f<u;++f)(s=c[f])&&(l=t.call(s,s.__data__,f,c))&&("__data__"in s&&(l.__data__=s.__data__),h[f]=l,Jh(h[f],e,n,f,h,nf(s,n)));return new Uf(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Cs(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var f,d=t.call(l,l.__data__,h,c),p=nf(l,n),g=0,m=d.length;g<m;++g)(f=d[g])&&Jh(f,e,n,g,d,p);a.push(d),o.push(l)}return new Uf(a,o,e,n)},selectChild:Wf.selectChild,selectChildren:Wf.selectChildren,filter:function(t){"function"!=typeof t&&(t=Es(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new Uf(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l,c=e[s],u=n[s],h=c.length,f=o[s]=new Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(f[d]=l);for(;s<r;++s)o[s]=e[s];return new Uf(o,this._parents,this._name,this._id)},selection:function(){return new Rf(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=$f(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=nf(o,e);Jh(o,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Uf(r,this._parents,t,n)},call:Wf.call,nodes:Wf.nodes,node:Wf.node,size:Wf.size,empty:Wf.empty,each:Wf.each,on:function(t,e){var n=this._id;return arguments.length<2?nf(this.node(),n).on.on(t):this.each(If(n,t,e))},attr:function(t,e){var n=js(t),r="transform"===n?hf:bf;return this.attrTween(t,"function"==typeof e?(n.local?Ef:Cf)(n,r,pf(this,"attr."+t,e)):null==e?(n.local?xf:_f)(n):(n.local?kf:wf)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=js(t);return this.tween(n,(r.local?Af:Mf)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?uf:bf;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Qs(this,t),o=(this.style.removeProperty(t),Qs(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Ff(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Qs(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=Qs(this,t)),o===l?null:o===r&&l===i?a:(i=l,a=e(r=o,s))}}(t,r,pf(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var l=ef(this,t),c=l.on,u=null==l.value[o]?a||(a=Ff(e)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=Qs(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,zf(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(pf(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,jf(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=nf(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?ff:df)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Nf:Df)(e,t)):nf(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Of:Lf)(e,t)):nf(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Bf(e,t)):nf(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;ef(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},l={value:function(){0==--i&&a()}};n.each((function(){var n=ef(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e})),0===i&&a()}))},[Symbol.iterator]:Wf[Symbol.iterator]};var Yf={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Vf(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Gf(){}function Xf(t){return null==t?Gf:function(){return this.querySelector(t)}}function Zf(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Kf(){return[]}function Qf(t){return null==t?Kf:function(){return this.querySelectorAll(t)}}function Jf(t){return function(){return this.matches(t)}}function td(t){return function(e){return e.matches(t)}}Bl.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},Bl.prototype.transition=function(t){var e,n;t instanceof Uf?(e=t._id,t=t._name):(e=$f(),(n=Yf).time=Uh(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)(o=s[c])&&Jh(o,t,e,c,s,n||Vf(o,e));return new Uf(r,this._parents,t,e)};var ed=Array.prototype.find;function nd(){return this.firstElementChild}var rd=Array.prototype.filter;function id(){return Array.from(this.children)}function ad(t){return new Array(t.length)}function od(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function sd(t){return function(){return t}}function ld(t,e,n,r,i,a){for(var o,s=0,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new od(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function cd(t,e,n,r,i,a,o){var s,l,c,u=new Map,h=e.length,f=a.length,d=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(d[s]=c=o.call(l,l.__data__,s,e)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<f;++s)c=o.call(t,a[s],s,a)+"",(l=u.get(c))?(r[s]=l,l.__data__=a[s],u.delete(c)):n[s]=new od(t,a[s]);for(s=0;s<h;++s)(l=e[s])&&u.get(d[s])===l&&(i[s]=l)}function ud(t){return t.__data__}function hd(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function fd(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}od.prototype={constructor:od,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var dd="http://www.w3.org/1999/xhtml";const pd={svg:"http://www.w3.org/2000/svg",xhtml:dd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gd(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),pd.hasOwnProperty(e)?{space:pd[e],local:t}:t}function md(t){return function(){this.removeAttribute(t)}}function yd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function vd(t,e){return function(){this.setAttribute(t,e)}}function bd(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _d(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function xd(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function wd(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function kd(t){return function(){this.style.removeProperty(t)}}function Cd(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ed(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Sd(t,e){return t.style.getPropertyValue(e)||wd(t).getComputedStyle(t,null).getPropertyValue(e)}function Td(t){return function(){delete this[t]}}function Ad(t,e){return function(){this[t]=e}}function Md(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Nd(t){return t.trim().split(/^|\s+/)}function Dd(t){return t.classList||new Od(t)}function Od(t){this._node=t,this._names=Nd(t.getAttribute("class")||"")}function Ld(t,e){for(var n=Dd(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Bd(t,e){for(var n=Dd(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Id(t){return function(){Ld(this,t)}}function Rd(t){return function(){Bd(this,t)}}function Fd(t,e){return function(){(e.apply(this,arguments)?Ld:Bd)(this,t)}}function Pd(){this.textContent=""}function zd(t){return function(){this.textContent=t}}function qd(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function jd(){this.innerHTML=""}function Hd(t){return function(){this.innerHTML=t}}function Ud(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function $d(){this.nextSibling&&this.parentNode.appendChild(this)}function Wd(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yd(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===dd&&e.documentElement.namespaceURI===dd?e.createElement(t):e.createElementNS(n,t)}}function Vd(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Gd(t){var e=gd(t);return(e.local?Vd:Yd)(e)}function Xd(){return null}function Zd(){var t=this.parentNode;t&&t.removeChild(this)}function Kd(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Qd(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Jd(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function tp(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function ep(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function np(t,e,n){var r=wd(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function rp(t,e){return function(){return np(this,t,e)}}function ip(t,e){return function(){return np(this,t,e.apply(this,arguments))}}Od.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ap=[null];function op(t,e){this._groups=t,this._parents=e}function sp(){return new op([[document.documentElement]],ap)}op.prototype=sp.prototype={constructor:op,select:function(t){"function"!=typeof t&&(t=Xf(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new op(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Zf(t.apply(this,arguments))}}(t):Qf(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],l=s.length,c=0;c<l;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new op(r,i)},selectChild:function(t){return this.select(null==t?nd:function(t){return function(){return ed.call(this.children,t)}}("function"==typeof t?t:td(t)))},selectChildren:function(t){return this.selectAll(null==t?id:function(t){return function(){return rd.call(this.children,t)}}("function"==typeof t?t:td(t)))},filter:function(t){"function"!=typeof t&&(t=Jf(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new op(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,ud);var n=e?cd:ld,r=this._parents,i=this._groups;"function"!=typeof t&&(t=sd(t));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],h=i[c],f=h.length,d=hd(t.call(u,u&&u.__data__,c,r)),p=d.length,g=s[c]=new Array(p),m=o[c]=new Array(p),y=l[c]=new Array(f);n(u,h,g,m,y,d,e);for(var v,b,_=0,x=0;_<p;++_)if(v=g[_]){for(_>=x&&(x=_+1);!(b=m[x])&&++x<p;);v._next=b||null}}return(o=new op(o,r))._enter=s,o._exit=l,o},enter:function(){return new op(this._enter||this._groups.map(ad),this._parents)},exit:function(){return new op(this._exit||this._groups.map(ad),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var c,u=n[l],h=r[l],f=u.length,d=s[l]=new Array(f),p=0;p<f;++p)(c=u[p]||h[p])&&(d[p]=c);for(;l<i;++l)s[l]=n[l];return new op(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=fd);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],l=s.length,c=i[a]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(e)}return new op(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=gd(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?yd:md:"function"==typeof e?n.local?xd:_d:n.local?bd:vd)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?kd:"function"==typeof e?Ed:Cd)(t,e,null==n?"":n)):Sd(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Td:"function"==typeof e?Md:Ad)(t,e)):this.node()[t]},classed:function(t,e){var n=Nd(t+"");if(arguments.length<2){for(var r=Dd(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Fd:e?Id:Rd)(n,e))},text:function(t){return arguments.length?this.each(null==t?Pd:("function"==typeof t?qd:zd)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?jd:("function"==typeof t?Ud:Hd)(t)):this.node().innerHTML},raise:function(){return this.each($d)},lower:function(){return this.each(Wd)},append:function(t){var e="function"==typeof t?t:Gd(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Gd(t),r=null==e?Xd:"function"==typeof e?e:Xf(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Zd)},clone:function(t){return this.select(t?Qd:Kd)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=Jd(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?ep:tp,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<o;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?ip:rp)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};const lp=sp;var cp={value:()=>{}};function up(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new hp(r)}function hp(t){this._=t}function fp(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function dp(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function pp(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=cp,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}hp.prototype=up.prototype={constructor:hp,on:function(t,e){var n,r=this._,i=fp(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=pp(r[n],t.name,e);else if(null==e)for(n in r)r[n]=pp(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=dp(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new hp(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};const gp=up;var mp,yp,vp=0,bp=0,_p=0,xp=0,wp=0,kp=0,Cp="object"==typeof performance&&performance.now?performance:Date,Ep="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Sp(){return wp||(Ep(Tp),wp=Cp.now()+kp)}function Tp(){wp=0}function Ap(){this._call=this._time=this._next=null}function Mp(t,e,n){var r=new Ap;return r.restart(t,e,n),r}function Np(){wp=(xp=Cp.now())+kp,vp=bp=0;try{!function(){Sp(),++vp;for(var t,e=mp;e;)(t=wp-e._time)>=0&&e._call.call(void 0,t),e=e._next;--vp}()}finally{vp=0,function(){for(var t,e,n=mp,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:mp=e);yp=t,Op(r)}(),wp=0}}function Dp(){var t=Cp.now(),e=t-xp;e>1e3&&(kp-=e,xp=t)}function Op(t){vp||(bp&&(bp=clearTimeout(bp)),t-wp>24?(t<1/0&&(bp=setTimeout(Np,t-Cp.now()-kp)),_p&&(_p=clearInterval(_p))):(_p||(xp=Cp.now(),_p=setInterval(Dp,1e3)),vp=1,Ep(Np)))}function Lp(t,e,n){var r=new Ap;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Ap.prototype=Mp.prototype={constructor:Ap,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Sp():+n)+(null==e?0:+e),this._next||yp===this||(yp?yp._next=this:mp=this,yp=this),this._call=t,this._time=n,Op()},stop:function(){this._call&&(this._call=null,this._time=1/0,Op())}};var Bp=gp("start","end","cancel","interrupt"),Ip=[];function Rp(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(l){var c,u,h,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return Lp(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(Lp((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Mp((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Bp,tween:Ip,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Fp(t,e){var n=zp(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Pp(t,e){var n=zp(t,e);if(n.state>3)throw new Error("too late; already running");return n}function zp(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function qp(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var jp,Hp=180/Math.PI,Up={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $p(t,e,n,r,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*Hp,skewX:Math.atan(l)*Hp,scaleX:o,scaleY:s}}function Wp(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var l=o.push("translate(",null,e,null,n);s.push({i:l-4,x:qp(t,i)},{i:l-2,x:qp(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:qp(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,l),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:qp(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,l),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:qp(t,n)},{i:s-2,x:qp(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,n=-1,r=l.length;++n<r;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var Yp=Wp((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Up:$p(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Vp=Wp((function(t){return null==t?Up:(jp||(jp=document.createElementNS("http://www.w3.org/2000/svg","g")),jp.setAttribute("transform",t),(t=jp.transform.baseVal.consolidate())?$p((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Up)}),", ",")",")");function Gp(t,e){var n,r;return function(){var i=Pp(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function Xp(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=Pp(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function Zp(t,e,n){var r=t._id;return t.each((function(){var t=Pp(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return zp(t,r).value[e]}}function Kp(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Qp(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Jp(){}var tg=.7,eg=1.4285714285714286,ng="\\s*([+-]?\\d+)\\s*",rg="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ig="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ag=/^#([0-9a-f]{3,8})$/,og=new RegExp("^rgb\\("+[ng,ng,ng]+"\\)$"),sg=new RegExp("^rgb\\("+[ig,ig,ig]+"\\)$"),lg=new RegExp("^rgba\\("+[ng,ng,ng,rg]+"\\)$"),cg=new RegExp("^rgba\\("+[ig,ig,ig,rg]+"\\)$"),ug=new RegExp("^hsl\\("+[rg,ig,ig]+"\\)$"),hg=new RegExp("^hsla\\("+[rg,ig,ig,rg]+"\\)$"),fg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function dg(){return this.rgb().formatHex()}function pg(){return this.rgb().formatRgb()}function gg(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ag.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?mg(e):3===n?new _g(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?yg(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?yg(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=og.exec(t))?new _g(e[1],e[2],e[3],1):(e=sg.exec(t))?new _g(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=lg.exec(t))?yg(e[1],e[2],e[3],e[4]):(e=cg.exec(t))?yg(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ug.exec(t))?Cg(e[1],e[2]/100,e[3]/100,1):(e=hg.exec(t))?Cg(e[1],e[2]/100,e[3]/100,e[4]):fg.hasOwnProperty(t)?mg(fg[t]):"transparent"===t?new _g(NaN,NaN,NaN,0):null}function mg(t){return new _g(t>>16&255,t>>8&255,255&t,1)}function yg(t,e,n,r){return r<=0&&(t=e=n=NaN),new _g(t,e,n,r)}function vg(t){return t instanceof Jp||(t=gg(t)),t?new _g((t=t.rgb()).r,t.g,t.b,t.opacity):new _g}function bg(t,e,n,r){return 1===arguments.length?vg(t):new _g(t,e,n,null==r?1:r)}function _g(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function xg(){return"#"+kg(this.r)+kg(this.g)+kg(this.b)}function wg(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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))+(1===t?")":", "+t+")")}function kg(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Cg(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Sg(t,e,n,r)}function Eg(t){if(t instanceof Sg)return new Sg(t.h,t.s,t.l,t.opacity);if(t instanceof Jp||(t=gg(t)),!t)return new Sg;if(t instanceof Sg)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Sg(o,s,l,t.opacity)}function Sg(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Tg(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Kp(Jp,gg,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:dg,formatHex:dg,formatHsl:function(){return Eg(this).formatHsl()},formatRgb:pg,toString:pg}),Kp(_g,bg,Qp(Jp,{brighter:function(t){return t=null==t?eg:Math.pow(eg,t),new _g(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?tg:Math.pow(tg,t),new _g(this.r*t,this.g*t,this.b*t,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:xg,formatHex:xg,formatRgb:wg,toString:wg})),Kp(Sg,(function(t,e,n,r){return 1===arguments.length?Eg(t):new Sg(t,e,n,null==r?1:r)}),Qp(Jp,{brighter:function(t){return t=null==t?eg:Math.pow(eg,t),new Sg(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?tg:Math.pow(tg,t),new Sg(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new _g(Tg(t>=240?t-240:t+120,i,r),Tg(t,i,r),Tg(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Ag=t=>()=>t;function Mg(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ag(isNaN(t)?e:t)}const Ng=function t(e){var n=function(t){return 1==(t=+t)?Mg:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ag(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=bg(t)).r,(e=bg(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Mg(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);var Dg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Og=new RegExp(Dg.source,"g");function Lg(t,e){var n,r,i,a=Dg.lastIndex=Og.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(n=Dg.exec(t))&&(r=Og.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:qp(n,r)})),a=Og.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function Bg(t,e){var n;return("number"==typeof e?qp:e instanceof gg?Ng:(n=gg(e))?(e=n,Ng):Lg)(t,e)}function Ig(t){return function(){this.removeAttribute(t)}}function Rg(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Fg(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function Pg(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function zg(t,e,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttribute(t))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,l));this.removeAttribute(t)}}function qg(t,e,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,l));this.removeAttributeNS(t.space,t.local)}}function jg(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Hg(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Ug(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Hg(t,i)),n}return i._value=e,i}function $g(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&jg(t,i)),n}return i._value=e,i}function Wg(t,e){return function(){Fp(this,t).delay=+e.apply(this,arguments)}}function Yg(t,e){return e=+e,function(){Fp(this,t).delay=e}}function Vg(t,e){return function(){Pp(this,t).duration=+e.apply(this,arguments)}}function Gg(t,e){return e=+e,function(){Pp(this,t).duration=e}}function Xg(t,e){if("function"!=typeof e)throw new Error;return function(){Pp(this,t).ease=e}}function Zg(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Fp:Pp;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Kg=lp.prototype.constructor;function Qg(t){return function(){this.style.removeProperty(t)}}function Jg(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function tm(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Jg(t,a,n)),r}return a._value=e,a}function em(t){return function(e){this.textContent=t.call(this,e)}}function nm(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&em(r)),e}return r._value=t,r}var rm=0;function im(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function am(){return++rm}var om=lp.prototype;im.prototype={constructor:im,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Xf(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,l,c=r[o],u=c.length,h=a[o]=new Array(u),f=0;f<u;++f)(s=c[f])&&(l=t.call(s,s.__data__,f,c))&&("__data__"in s&&(l.__data__=s.__data__),h[f]=l,Rp(h[f],e,n,f,h,zp(s,n)));return new im(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Qf(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var f,d=t.call(l,l.__data__,h,c),p=zp(l,n),g=0,m=d.length;g<m;++g)(f=d[g])&&Rp(f,e,n,g,d,p);a.push(d),o.push(l)}return new im(a,o,e,n)},selectChild:om.selectChild,selectChildren:om.selectChildren,filter:function(t){"function"!=typeof t&&(t=Jf(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new im(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l,c=e[s],u=n[s],h=c.length,f=o[s]=new Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(f[d]=l);for(;s<r;++s)o[s]=e[s];return new im(o,this._parents,this._name,this._id)},selection:function(){return new Kg(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=am(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=zp(o,e);Rp(o,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new im(r,this._parents,t,n)},call:om.call,nodes:om.nodes,node:om.node,size:om.size,empty:om.empty,each:om.each,on:function(t,e){var n=this._id;return arguments.length<2?zp(this.node(),n).on.on(t):this.each(Zg(n,t,e))},attr:function(t,e){var n=gd(t),r="transform"===n?Vp:Bg;return this.attrTween(t,"function"==typeof e?(n.local?qg:zg)(n,r,Zp(this,"attr."+t,e)):null==e?(n.local?Rg:Ig)(n):(n.local?Pg:Fg)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=gd(t);return this.tween(n,(r.local?Ug:$g)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Yp:Bg;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Sd(this,t),o=(this.style.removeProperty(t),Sd(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Qg(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Sd(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=Sd(this,t)),o===l?null:o===r&&l===i?a:(i=l,a=e(r=o,s))}}(t,r,Zp(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var l=Pp(this,t),c=l.on,u=null==l.value[o]?a||(a=Qg(e)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=Sd(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,tm(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Zp(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,nm(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=zp(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?Gp:Xp)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Wg:Yg)(e,t)):zp(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Vg:Gg)(e,t)):zp(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Xg(e,t)):zp(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Pp(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},l={value:function(){0==--i&&a()}};n.each((function(){var n=Pp(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e})),0===i&&a()}))},[Symbol.iterator]:om[Symbol.iterator]};var sm={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function lm(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}lp.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},lp.prototype.transition=function(t){var e,n;t instanceof im?(e=t._id,t=t._name):(e=am(),(n=sm).time=Sp(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)(o=s[c])&&Rp(o,t,e,c,s,n||lm(o,e));return new im(r,this._parents,t,e)};var cm="comm",um="rule",hm="decl",fm=Math.abs,dm=String.fromCharCode;function pm(t){return t.trim()}function gm(t,e,n){return t.replace(e,n)}function mm(t,e){return t.indexOf(e)}function ym(t,e){return 0|t.charCodeAt(e)}function vm(t,e,n){return t.slice(e,n)}function bm(t){return t.length}function _m(t){return t.length}function xm(t,e){return e.push(t),t}function wm(t,e){for(var n="",r=_m(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function km(t,e,n,r){switch(t.type){case"@import":case hm:return t.return=t.return||t.value;case cm:return"";case"@keyframes":return t.return=t.value+"{"+wm(t.children,r)+"}";case um:t.value=t.props.join(",")}return bm(n=wm(t.children,r))?t.return=t.value+"{"+n+"}":""}var Cm=1,Em=1,Sm=0,Tm=0,Am=0,Mm="";function Nm(t,e,n,r,i,a,o){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:Cm,column:Em,length:o,return:""}}function Dm(){return Am=Tm>0?ym(Mm,--Tm):0,Em--,10===Am&&(Em=1,Cm--),Am}function Om(){return Am=Tm<Sm?ym(Mm,Tm++):0,Em++,10===Am&&(Em=1,Cm++),Am}function Lm(){return ym(Mm,Tm)}function Bm(){return Tm}function Im(t,e){return vm(Mm,t,e)}function Rm(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fm(t){return pm(Im(Tm-1,qm(91===t?t+2:40===t?t+1:t)))}function Pm(t){for(;(Am=Lm())&&Am<33;)Om();return Rm(t)>2||Rm(Am)>3?"":" "}function zm(t,e){for(;--e&&Om()&&!(Am<48||Am>102||Am>57&&Am<65||Am>70&&Am<97););return Im(t,Bm()+(e<6&&32==Lm()&&32==Om()))}function qm(t){for(;Om();)switch(Am){case t:return Tm;case 34:case 39:34!==t&&39!==t&&qm(Am);break;case 40:41===t&&qm(t);break;case 92:Om()}return Tm}function jm(t,e){for(;Om()&&t+Am!==57&&(t+Am!==84||47!==Lm()););return"/*"+Im(e,Tm-1)+"*"+dm(47===t?t:Om())}function Hm(t){for(;!Rm(Lm());)Om();return Im(t,Tm)}function Um(t){return function(t){return Mm="",t}($m("",null,null,null,[""],t=function(t){return Cm=Em=1,Sm=bm(Mm=t),Tm=0,[]}(t),0,[0],t))}function $m(t,e,n,r,i,a,o,s,l){for(var c=0,u=0,h=o,f=0,d=0,p=0,g=1,m=1,y=1,v=0,b="",_=i,x=a,w=r,k=b;m;)switch(p=v,v=Om()){case 40:if(108!=p&&58==k.charCodeAt(h-1)){-1!=mm(k+=gm(Fm(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Fm(v);break;case 9:case 10:case 13:case 32:k+=Pm(p);break;case 92:k+=zm(Bm()-1,7);continue;case 47:switch(Lm()){case 42:case 47:xm(Ym(jm(Om(),Bm()),e,n),l);break;default:k+="/"}break;case 123*g:s[c++]=bm(k)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:d>0&&bm(k)-h&&xm(d>32?Vm(k+";",r,n,h-1):Vm(gm(k," ","")+";",r,n,h-2),l);break;case 59:k+=";";default:if(xm(w=Wm(k,e,n,c,u,i,s,b,_=[],x=[],h),a),123===v)if(0===u)$m(k,e,w,w,_,a,h,s,x);else switch(f){case 100:case 109:case 115:$m(t,w,w,r&&xm(Wm(t,w,w,0,0,i,s,b,i,_=[],h),x),i,x,h,s,r?_:x);break;default:$m(k,w,w,w,[""],x,0,s,x)}}c=u=d=0,g=y=1,b=k="",h=o;break;case 58:h=1+bm(k),d=p;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Dm())continue;switch(k+=dm(v),v*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(bm(k)-1)*y,y=1;break;case 64:45===Lm()&&(k+=Fm(Om())),f=Lm(),u=h=bm(b=k+=Hm(Bm())),v++;break;case 45:45===p&&2==bm(k)&&(g=0)}}return a}function Wm(t,e,n,r,i,a,o,s,l,c,u){for(var h=i-1,f=0===i?a:[""],d=_m(f),p=0,g=0,m=0;p<r;++p)for(var y=0,v=vm(t,h+1,h=fm(g=o[p])),b=t;y<d;++y)(b=pm(g>0?f[y]+" "+v:gm(v,/&\f/g,f[y])))&&(l[m++]=b);return Nm(t,e,n,0===i?um:s,l,c,u)}function Ym(t,e,n){return Nm(t,e,n,cm,dm(Am),vm(t,2,-2),0)}function Vm(t,e,n,r){return Nm(t,e,n,hm,vm(t,0,r),vm(t,r+1,-1),r)}const Gm="8.14.0";var Xm=n(9609),Zm=n(7856),Km=n.n(Zm),Qm=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\u/g,""),16))}));return(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}))).replace(/\\[\d\d\d]{3}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\/g,""),8))}))).replace(/\\[\d\d\d]{2}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\/g,""),8))}))},Jm=function(t){for(var e="",n=0;n>=0;){if(!((n=t.indexOf("<script"))>=0)){e+=t,n=-1;break}e+=t.substr(0,n),(n=(t=t.substr(n+1)).indexOf("<\/script>"))>=0&&(n+=9,t=t.substr(n))}var r=Qm(e);return(r=(r=(r=r.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},ty=function(t,e){if(!t)return t;var n=Km().sanitize(function(t,e){var n=t,r=!0;if(!e.flowchart||!1!==e.flowchart.htmlLabels&&"false"!==e.flowchart.htmlLabels||(r=!1),r){var i=e.securityLevel;"antiscript"===i||"strict"===i?n=Jm(n):"loose"!==i&&(n=(n=(n=ry(n)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),n=ny(n))}return n}(t,e));return n},ey=/<br\s*\/?>/gi,ny=function(t){return t.replace(/#br#/g,"<br/>")},ry=function(t){return t.replace(ey,"#br#")},iy=function(t){return"false"!==t&&!1!==t};const ay={getRows:function(t){if(!t)return 1;var e=ry(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:ty,sanitizeTextOrArray:function(t,e){return"string"==typeof t?ty(t,e):t.flat().map((function(t){return ty(t,e)}))},hasBreaks:function(t){return ey.test(t)},splitBreaks:function(t){return t.split(ey)},lineBreakRegex:ey,removeScript:Jm,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e},evaluate:iy,removeEscapes:Qm};var oy=n(8613),sy=function(t,e){return e?(0,oy.adjust)(t,{s:-40,l:10}):(0,oy.adjust)(t,{s:-40,l:-10})};function ly(t){return ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ly(t)}function cy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var uy=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var e,n;return e=t,n=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||(0,oy.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,oy.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||sy(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||sy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||sy(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||sy(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,oy.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,oy.invert)(this.tertiaryColor),this.lineColor=this.lineColor||(0,oy.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,oy.darken)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,oy.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,oy.invert)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,oy.lighten)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,oy.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,oy.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,oy.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,oy.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,oy.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,oy.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,oy.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,oy.adjust)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,oy.adjust)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,oy.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,oy.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,oy.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,oy.adjust)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,oy.adjust)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,oy.adjust)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,oy.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===ly(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}],n&&cy(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function hy(t){return hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hy(t)}function fy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var dy=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,oy.lighten)(this.primaryColor,16),this.tertiaryColor=(0,oy.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=sy(this.primaryColor,this.darkMode),this.secondaryBorderColor=sy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=sy(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,oy.invert)(this.primaryColor),this.secondaryTextColor=(0,oy.invert)(this.secondaryColor),this.tertiaryTextColor=(0,oy.invert)(this.tertiaryColor),this.lineColor=(0,oy.invert)(this.background),this.textColor=(0,oy.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,oy.lighten)((0,oy.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,oy.rgba)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,oy.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=(0,oy.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,oy.rgba)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,n;return e=t,n=[{key:"updateColors",value:function(){this.secondBkg=(0,oy.lighten)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,oy.lighten)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,oy.lighten)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,oy.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,oy.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,oy.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,oy.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,oy.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,oy.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,oy.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===hy(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}],n&&fy(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function py(t){return py="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},py(t)}function gy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var my=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,oy.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,oy.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=sy(this.primaryColor,this.darkMode),this.secondaryBorderColor=sy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=sy(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,oy.invert)(this.primaryColor),this.secondaryTextColor=(0,oy.invert)(this.secondaryColor),this.tertiaryTextColor=(0,oy.invert)(this.tertiaryColor),this.lineColor=(0,oy.invert)(this.background),this.textColor=(0,oy.invert)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,oy.rgba)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,n;return e=t,n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,oy.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,oy.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,oy.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,oy.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,oy.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,oy.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,oy.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,oy.adjust)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,oy.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,oy.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,oy.adjust)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,oy.adjust)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,oy.adjust)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,oy.adjust)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,oy.adjust)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,oy.adjust)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,oy.adjust)(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===py(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}],n&&gy(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function yy(t){return yy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yy(t)}function vy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var by=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,oy.lighten)("#cde498",10),this.primaryBorderColor=sy(this.primaryColor,this.darkMode),this.secondaryBorderColor=sy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=sy(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,oy.invert)(this.primaryColor),this.secondaryTextColor=(0,oy.invert)(this.secondaryColor),this.tertiaryTextColor=(0,oy.invert)(this.primaryColor),this.lineColor=(0,oy.invert)(this.background),this.textColor=(0,oy.invert)(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,n;return e=t,n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,oy.darken)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,oy.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,oy.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,oy.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,oy.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,oy.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,oy.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,oy.adjust)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,oy.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,oy.adjust)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,oy.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,oy.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,oy.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,oy.adjust)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,oy.adjust)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,oy.adjust)(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===yy(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}],n&&vy(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function _y(t){return _y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_y(t)}function xy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var wy=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,oy.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,oy.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=sy(this.primaryColor,this.darkMode),this.secondaryBorderColor=sy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=sy(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,oy.invert)(this.primaryColor),this.secondaryTextColor=(0,oy.invert)(this.secondaryColor),this.tertiaryTextColor=(0,oy.invert)(this.tertiaryColor),this.lineColor=(0,oy.invert)(this.background),this.textColor=(0,oy.invert)(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,n;return e=t,n=[{key:"updateColors",value:function(){this.secondBkg=(0,oy.lighten)(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=(0,oy.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=(0,oy.lighten)(this.contrast,30),this.sectionBkgColor2=(0,oy.lighten)(this.contrast,30),this.taskBorderColor=(0,oy.darken)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,oy.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,oy.darken)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,oy.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,oy.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,oy.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,oy.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,oy.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,oy.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(t){var e=this;if("object"===_y(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}],n&&xy(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const ky={base:{getThemeVariables:function(t){var e=new uy;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new dy;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new my;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new by;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new wy;return e.calculate(t),e}}};function Cy(t){return function(t){if(Array.isArray(t))return Ey(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ey(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ey(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ey(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Sy(t){return Sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sy(t)}var Ty={theme:"default",themeVariables:ky.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20}};Ty.class.arrowMarkerAbsolute=Ty.arrowMarkerAbsolute,Ty.git.arrowMarkerAbsolute=Ty.arrowMarkerAbsolute;var Ay=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(e).reduce((function(r,i){return Array.isArray(e[i])?r:"object"===Sy(e[i])&&null!==e[i]?[].concat(Cy(r),[n+i],Cy(t(e[i],""))):[].concat(Cy(r),[n+i])}),[])}(Ty,"");const My=Ty;var Ny=void 0;function Dy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oy(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Iy(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Ly(t){return Ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ly(t)}function By(t){return function(t){if(Array.isArray(t))return Ry(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Iy(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iy(t,e){if(t){if("string"==typeof t)return Ry(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ry(t,e):void 0}}function Ry(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Fy,Py={curveBasis:kc,curveBasisClosed:function(t){return new Cc(t)},curveBasisOpen:function(t){return new Ec(t)},curveLinear:pc,curveLinearClosed:function(t){return new Sc(t)},curveMonotoneX:function(t){return new Dc(t)},curveMonotoneY:function(t){return new Oc(t)},curveNatural:function(t){return new Bc(t)},curveStep:function(t){return new Rc(t,.5)},curveStepAfter:function(t){return new Rc(t,1)},curveStepBefore:function(t){return new Rc(t,0)}},zy=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,qy=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,jy=/\s*%%.*\n/gm,Hy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var n=new RegExp("[%]{2}(?![{]".concat(qy.source,")(?=[}][%]{2}).*\n"),"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),o.debug("Detecting diagram directive".concat(null!==e?" type:"+e:""," based on the text:").concat(t));for(var r,i=[];null!==(r=zy.exec(t));)if(r.index===zy.lastIndex&&zy.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){var a=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:a,args:s})}return 0===i.length&&i.push({type:t,args:null}),1===i.length?i[0]:i}catch(l){return o.error("ERROR: ".concat(l.message," - Unable to parse directive\n ").concat(null!==e?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},Uy=function(t,e){return(t=t.replace(zy,"").replace(jy,"\n")).match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?e&&e.class&&"dagre-wrapper"===e.class.defaultRenderer?"classDiagram":"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?e&&e.class&&"dagre-wrapper"===e.state.defaultRenderer?"stateDiagram":"state":t.match(/^\s*gitGraph/)?"git":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/)?"requirement":e&&e.flowchart&&"dagre-wrapper"===e.flowchart.defaultRenderer?"flowchart-v2":"flowchart"},$y=function(t,e){var n={};return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=e?e.apply(Ny,i):i[0];if(o in n)return n[o];var s=t.apply(void 0,i);return n[o]=s,s}},Wy=function(t,e){if(!t)return e;var n="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return Py[n]||e},Yy=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},Vy=function(t){for(var e="",n="",r=0;r<t.length;r++)void 0!==t[r]&&(t[r].startsWith("color:")||t[r].startsWith("text-align:")?n=n+t[r]+";":e=e+t[r]+";");return{style:e,labelStyle:n}},Gy=0,Xy=function(){return Gy++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Gy},Zy=function(t){return function(t){for(var e="",n="0123456789abcdef",r=n.length,i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*r));return e}(t.length)},Ky=function t(e,n,r){var i=Object.assign({depth:2,clobber:!1},r),a=i.depth,o=i.clobber;return Array.isArray(n)&&!Array.isArray(e)?(n.forEach((function(n){return t(e,n,r)})),e):Array.isArray(n)&&Array.isArray(e)?(n.forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),e):void 0===e||a<=0?null!=e&&"object"===Ly(e)&&"object"===Ly(n)?Object.assign(e,n):n:(void 0!==n&&"object"===Ly(e)&&"object"===Ly(n)&&Object.keys(n).forEach((function(r){"object"!==Ly(n[r])||void 0!==e[r]&&"object"!==Ly(e[r])?(o||"object"!==Ly(e[r])&&"object"!==Ly(n[r]))&&(e[r]=n[r]):(void 0===e[r]&&(e[r]=Array.isArray(n[r])?[]:{}),e[r]=t(e[r],n[r],{depth:a-1,clobber:o}))})),e)},Qy=function(t,e){var n=e.text.replace(ay.lineBreakRegex," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.style("text-anchor",e.anchor),r.style("font-family",e.fontFamily),r.style("font-size",e.fontSize),r.style("font-weight",e.fontWeight),r.attr("fill",e.fill),void 0!==e.class&&r.attr("class",e.class);var i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.attr("fill",e.fill),i.text(n),r},Jy=$y((function(t,e,n){if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),ay.lineBreakRegex.test(t))return t;var r=t.split(" "),i=[],a="";return r.forEach((function(t,o){var s=ev("".concat(t," "),n),l=ev(a,n);if(s>e){var c=tv(t,e,"-",n),u=c.hyphenatedStrings,h=c.remainingWord;i.push.apply(i,[a].concat(By(u))),a=h}else l+s>=e?(i.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===r.length&&i.push(a)})),i.filter((function(t){return""!==t})).join(n.joinWith)}),(function(t,e,n){return"".concat(t,"-").concat(e,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily,"-").concat(n.joinWith)})),tv=$y((function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);var i=t.split(""),a=[],o="";return i.forEach((function(t,s){var l="".concat(o).concat(t);if(ev(l,r)>=e){var c=s+1,u=i.length===c,h="".concat(l).concat(n);a.push(u?l:h),o=""}else o=l})),{hyphenatedStrings:a,remainingWord:o}}),(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(n,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily)})),ev=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),nv(t,e).width},nv=$y((function(t,e){var n=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),r=n.fontSize,i=n.fontFamily,a=n.fontWeight;if(!t)return{width:0,height:0};var o=["sans-serif",i],s=t.split(ay.lineBreakRegex),l=[],c=Il("body");if(!c.remove)return{width:0,height:0,lineHeight:0};for(var u=c.append("svg"),h=0,f=o;h<f.length;h++){var d,p=f[h],g=0,m={width:0,height:0,lineHeight:0},y=Oy(s);try{for(y.s();!(d=y.n()).done;){var v=d.value,b={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};b.text=v;var _=Qy(u,b).style("font-size",r).style("font-weight",a).style("font-family",p),x=(_._groups||_)[0][0].getBBox();m.width=Math.round(Math.max(m.width,x.width)),g=Math.round(x.height),m.height+=g,m.lineHeight=Math.round(Math.max(m.lineHeight,g))}}catch(w){y.e(w)}finally{y.f()}l.push(m)}return u.remove(),l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]}),(function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)})),rv=function(t,e,n){var r=new Map;return r.set("height",t),n?(r.set("width","100%"),r.set("style","max-width: ".concat(e,"px;"))):r.set("width",e),r},iv=function(t,e,n,r){!function(t,e){var n,r=Oy(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.attr(i[0],i[1])}}catch(a){r.e(a)}finally{r.f()}}(t,rv(e,n,r))},av=function t(e){o.debug("directiveSanitizer called with",e),"object"===Ly(e)&&(e.length?e.forEach((function(e){return t(e)})):Object.keys(e).forEach((function(n){o.debug("Checking key",n),0===n.indexOf("__")&&(o.debug("sanitize deleting __ option",n),delete e[n]),n.indexOf("proto")>=0&&(o.debug("sanitize deleting proto option",n),delete e[n]),n.indexOf("constr")>=0&&(o.debug("sanitize deleting constr option",n),delete e[n]),n.indexOf("themeCSS")>=0&&(o.debug("sanitizing themeCss option"),e[n]=ov(e[n])),Ay.indexOf(n)<0?(o.debug("sanitize deleting option",n),delete e[n]):"object"===Ly(e[n])&&(o.debug("sanitize deleting object",n),t(e[n]))})))},ov=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const sv={assignWithDepth:Ky,wrapLabel:Jy,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),nv(t,e).height},calculateTextWidth:ev,calculateTextDimensions:nv,calculateSvgSizeAttrs:rv,configureSvgSize:iv,detectInit:function(t,e){var n=Hy(t,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){var i=n.map((function(t){return t.args}));av(i),r=Ky(r,By(i))}else r=n.args;if(r){var a=Uy(t,e);["config"].forEach((function(t){void 0!==r[t]&&("flowchart-v2"===a&&(a="flowchart"),r[a]=r[t],delete r[t])}))}return r},detectDirective:Hy,detectType:Uy,isSubstringInArray:function(t,e){for(var n=0;n<e.length;n++)if(e[n].match(t))return n;return-1},interpolateToCurve:Wy,calcLabelPosition:function(t){return function(t){var e,n=0;t.forEach((function(t){n+=Yy(t,e),e=t}));var r=n/2,i=void 0;return e=void 0,t.forEach((function(t){if(e&&!i){var n=Yy(t,e);if(n<r)r-=n;else{var a=r/n;a<=0&&(i=e),a>=1&&(i={x:t.x,y:t.y}),a>0&&a<1&&(i={x:(1-a)*e.x+a*t.x,y:(1-a)*e.y+a*t.y})}}e=t})),i}(t)},calcCardinalityPosition:function(t,e,n){var r;o.info("our points",e),e[0]!==n&&(e=e.reverse()),e.forEach((function(t){Yy(t,r),r=t}));var i,a=25;r=void 0,e.forEach((function(t){if(r&&!i){var e=Yy(t,r);if(e<a)a-=e;else{var n=a/e;n<=0&&(i=r),n>=1&&(i={x:t.x,y:t.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));var s=t?10:5,l=Math.atan2(e[0].y-i.y,e[0].x-i.x),c={x:0,y:0};return c.x=Math.sin(l)*s+(e[0].x+i.x)/2,c.y=-Math.cos(l)*s+(e[0].y+i.y)/2,c},calcTerminalLabelPosition:function(t,e,n){var r,i=JSON.parse(JSON.stringify(n));o.info("our points",i),"start_left"!==e&&"start_right"!==e&&(i=i.reverse()),i.forEach((function(t){Yy(t,r),r=t}));var a,s=25+t;r=void 0,i.forEach((function(t){if(r&&!a){var e=Yy(t,r);if(e<s)s-=e;else{var n=s/e;n<=0&&(a=r),n>=1&&(a={x:t.x,y:t.y}),n>0&&n<1&&(a={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));var l=10+.5*t,c=Math.atan2(i[0].y-a.y,i[0].x-a.x),u={x:0,y:0};return u.x=Math.sin(c)*l+(i[0].x+a.x)/2,u.y=-Math.cos(c)*l+(i[0].y+a.y)/2,"start_left"===e&&(u.x=Math.sin(c+Math.PI)*l+(i[0].x+a.x)/2,u.y=-Math.cos(c+Math.PI)*l+(i[0].y+a.y)/2),"end_right"===e&&(u.x=Math.sin(c-Math.PI)*l+(i[0].x+a.x)/2-5,u.y=-Math.cos(c-Math.PI)*l+(i[0].y+a.y)/2-5),"end_left"===e&&(u.x=Math.sin(c)*l+(i[0].x+a.x)/2-5,u.y=-Math.cos(c)*l+(i[0].y+a.y)/2-5),u},formatUrl:function(t,e){var n=t.trim();if(n)return"loose"!==e.securityLevel?(0,Xm.sanitizeUrl)(n):n},getStylesFromArray:Vy,generateId:Xy,random:Zy,memoize:$y,runFunc:function(t){for(var e,n=t.split("."),r=n.length-1,i=n[r],a=window,o=0;o<r;o++)if(!(a=a[n[o]]))return;for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];(e=a)[i].apply(e,l)},entityDecode:function(t){return Fy=Fy||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Fy.innerHTML=t,unescape(Fy.textContent)},initIdGeneratior:function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.deterministic=e,this.seed=n,this.count=n?n.length:0}var e,n;return e=t,(n=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Dy(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),directiveSanitizer:av,sanitizeCss:ov};function lv(t){return lv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lv(t)}var cv,uv=Object.freeze(My),hv=Ky({},uv),fv=[],dv=Ky({},uv),pv=function(t,e){for(var n=Ky({},t),r={},i=0;i<e.length;i++){var a=e[i];yv(a),r=Ky(r,a)}if(n=Ky(n,r),r.theme){var o=Ky({},cv),s=Ky(o.themeVariables||{},r.themeVariables);n.themeVariables=ky[n.theme].getThemeVariables(s)}return dv=n,n},gv=function(){return Ky({},hv)},mv=function(){return Ky({},dv)},yv=function t(e){Object.keys(hv.secure).forEach((function(t){void 0!==e[hv.secure[t]]&&(o.debug("Denied attempt to modify a secure key ".concat(hv.secure[t]),e[hv.secure[t]]),delete e[hv.secure[t]])})),Object.keys(e).forEach((function(t){0===t.indexOf("__")&&delete e[t]})),Object.keys(e).forEach((function(n){"string"==typeof e[n]&&(e[n].indexOf("<")>-1||e[n].indexOf(">")>-1||e[n].indexOf("url(data:")>-1)&&delete e[n],"object"===lv(e[n])&&t(e[n])}))},vv=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),fv.push(t),pv(hv,fv)},bv=function(){pv(hv,fv=[])};function _v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var xv="classid-",wv=[],kv={},Cv=0,Ev=[],Sv=function(t){return ay.sanitizeText(t,mv())},Tv=function(t){var e="",n=t;if(t.indexOf("~")>0){var r=t.split("~");n=r[0],e=ay.sanitizeText(r[1],mv())}return{className:n,type:e}},Av=function(t){var e=Tv(t);void 0===kv[e.className]&&(kv[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:xv+e.className+"-"+Cv},Cv++)},Mv=function(t){for(var e=Object.keys(kv),n=0;n<e.length;n++)if(kv[e[n]].id===t)return kv[e[n]].domId},Nv=function(t,e){var n=Tv(t).className,r=kv[n];if("string"==typeof e){var i=e.trim();i.startsWith("<<")&&i.endsWith(">>")?r.annotations.push(Sv(i.substring(2,i.length-2))):i.indexOf(")")>0?r.methods.push(Sv(i)):i&&r.members.push(Sv(i))}},Dv=function(t,e){t.split(",").forEach((function(t){var n=t;t[0].match(/\d/)&&(n=xv+n),void 0!==kv[n]&&kv[n].cssClasses.push(e)}))},Ov=function(t,e,n){var r=mv(),i=t,a=Mv(i);if("loose"===r.securityLevel&&void 0!==e&&void 0!==kv[i]){var o=[];if("string"==typeof n){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var s=0;s<o.length;s++){var l=o[s].trim();'"'===l.charAt(0)&&'"'===l.charAt(l.length-1)&&(l=l.substr(1,l.length-2)),o[s]=l}}0===o.length&&o.push(a),Ev.push((function(){var t=document.querySelector('[id="'.concat(a,'"]'));null!==t&&t.addEventListener("click",(function(){var t;sv.runFunc.apply(sv,[e].concat(function(t){if(Array.isArray(t))return _v(t)}(t=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return _v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_v(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}),!1)}))}},Lv={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Bv=function(t){var e=Il(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=Il("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Il(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=Il(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Il(this).classed("hover",!1)}))};Ev.push(Bv);var Iv="TB";const Rv={parseDirective:function(t,e,n){EE.parseDirective(this,t,e,n)},getConfig:function(){return mv().class},addClass:Av,bindFunctions:function(t){Ev.forEach((function(e){e(t)}))},clear:function(){wv=[],kv={},(Ev=[]).push(Bv)},getClass:function(t){return kv[t]},getClasses:function(){return kv},addAnnotation:function(t,e){var n=Tv(t).className;kv[n].annotations.push(e)},getRelations:function(){return wv},addRelation:function(t){o.debug("Adding relation: "+JSON.stringify(t)),Av(t.id1),Av(t.id2),t.id1=Tv(t.id1).className,t.id2=Tv(t.id2).className,t.relationTitle1=ay.sanitizeText(t.relationTitle1.trim(),mv()),t.relationTitle2=ay.sanitizeText(t.relationTitle2.trim(),mv()),wv.push(t)},getDirection:function(){return Iv},setDirection:function(t){Iv=t},addMember:Nv,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((function(e){return Nv(t,e)})))},cleanupLabel:function(t){return":"===t.substring(0,1)?ay.sanitizeText(t.substr(1).trim(),mv()):Sv(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:Lv,setClickEvent:function(t,e,n){t.split(",").forEach((function(t){Ov(t,e,n),kv[t].haveCallback=!0})),Dv(t,"clickable")},setCssClass:Dv,setLink:function(t,e,n){var r=mv();t.split(",").forEach((function(t){var i=t;t[0].match(/\d/)&&(i=xv+i),void 0!==kv[i]&&(kv[i].link=sv.formatUrl(e,r),"sandbox"===r.securityLevel?kv[i].linkTarget="_top":kv[i].linkTarget="string"==typeof n?Sv(n):"_blank")})),Dv(t,"clickable")},setTooltip:function(t,e){var n=mv();t.split(",").forEach((function(t){void 0!==e&&(kv[t].tooltip=ay.sanitizeText(e,n))}))},lookUpDomId:Mv};var Fv=n(681),Pv=n.n(Fv),zv=n(8282),qv=n.n(zv),jv=n(1362),Hv=n.n(jv),Uv=0,$v=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),n=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!n?Wv(e):n?Yv(n):Vv(t)},Wv=function(t){var e="",n="";try{var r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?Xv(t[3].trim()):"",o=t[4]?t[4].trim():"",s=t[5]?t[5].trim():"";n=r+i+a+" "+o,e=Zv(s)}catch(l){n=t}return{displayText:n,cssStyle:e}},Yv=function(t){var e="",n="";try{var r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?Xv(t[3].trim()):"",o=t[4]?t[4].trim():"";n=r+i+"("+a+")"+(t[5]?" : "+Xv(t[5]).trim():""),e=Zv(o)}catch(s){n=t}return{displayText:n,cssStyle:e}},Vv=function(t){var e="",n="",r="",i=t.indexOf("("),a=t.indexOf(")");if(i>1&&a>i&&a<=t.length){var o="",s="",l=t.substring(0,1);l.match(/\w/)?s=t.substring(0,i).trim():(l.match(/\+|-|~|#/)&&(o=l),s=t.substring(1,i).trim());var c=t.substring(i+1,a),u=t.substring(a+1,1);n=Zv(u),e=o+s+"("+Xv(c.trim())+")",a<"".length&&""!==(r=t.substring(a+2).trim())&&(r=" : "+Xv(r))}else e=Xv(t);return{displayText:e,cssStyle:n}},Gv=function(t,e,n,r){var i=$v(e),a=t.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&a.attr("style",i.cssStyle),n||a.attr("dy",r.textHeight)},Xv=function t(e){var n=e;return-1!=e.indexOf("~")?t(n=(n=n.replace("~","<")).replace("~",">")):n},Zv=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const Kv=function(t,e,n){o.info("Rendering class "+e);var r,i=e.id,a={id:i,label:e.id,width:0,height:0},s=t.append("g").attr("id",Mv(i)).attr("class","classGroup");r=e.link?s.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",n.textHeight+n.padding).attr("x",0):s.append("text").attr("y",n.textHeight+n.padding).attr("x",0);var l=!0;e.annotations.forEach((function(t){var e=r.append("tspan").text("«"+t+"»");l||e.attr("dy",n.textHeight),l=!1}));var c=e.id;void 0!==e.type&&""!==e.type&&(c+="<"+e.type+">");var u=r.append("tspan").text(c).attr("class","title");l||u.attr("dy",n.textHeight);var h=r.node().getBBox().height,f=s.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin/2).attr("y2",n.padding+h+n.dividerMargin/2),d=s.append("text").attr("x",n.padding).attr("y",h+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");l=!0,e.members.forEach((function(t){Gv(d,t,l,n),l=!1}));var p=d.node().getBBox(),g=s.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin+p.height).attr("y2",n.padding+h+n.dividerMargin+p.height),m=s.append("text").attr("x",n.padding).attr("y",h+2*n.dividerMargin+p.height+n.textHeight).attr("fill","white").attr("class","classText");l=!0,e.methods.forEach((function(t){Gv(m,t,l,n),l=!1}));var y=s.node().getBBox(),v=" ";e.cssClasses.length>0&&(v+=e.cssClasses.join(" "));var b=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",y.width+2*n.padding).attr("height",y.height+n.padding+.5*n.dividerMargin).attr("class",v).node().getBBox().width;return r.node().childNodes.forEach((function(t){t.setAttribute("x",(b-t.getBBox().width)/2)})),e.tooltip&&r.insert("title").text(e.tooltip),f.attr("x2",b),g.attr("x2",b),a.width=b,a.height=y.height+n.padding+.5*n.dividerMargin,a};jv.parser.yy=Rv;var Qv={},Jv={dividerMargin:10,padding:5,textHeight:10},tb=function(t){var e=Object.entries(Qv).find((function(e){return e[1].label===t}));if(e)return e[0]};const eb=function(t){Object.keys(t).forEach((function(e){Jv[e]=t[e]}))},nb=function(t,e){Qv={},jv.parser.yy.clear(),jv.parser.parse(t),o.info("Rendering diagram "+t);var n,r=mv().securityLevel;"sandbox"===r&&(n=Il("#i"+e));var i,a=Il("sandbox"===r?n.nodes()[0].contentDocument.body:"body"),s=("sandbox"===r?n.nodes()[0].contentDocument:document,a.select("[id='".concat(e,"']")));s.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(i=s).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var l=new(qv().Graph)({multigraph:!0});l.setGraph({isMultiGraph:!0}),l.setDefaultEdgeLabel((function(){return{}}));for(var c=Rv.getClasses(),u=Object.keys(c),h=0;h<u.length;h++){var f=c[u[h]],d=Kv(s,f,Jv);Qv[d.id]=d,l.setNode(d.id,d),o.info("Org height: "+d.height)}Rv.getRelations().forEach((function(t){o.info("tjoho"+tb(t.id1)+tb(t.id2)+JSON.stringify(t)),l.setEdge(tb(t.id1),tb(t.id2),{relation:t},t.title||"DEFAULT")})),Pv().layout(l),l.nodes().forEach((function(t){void 0!==t&&void 0!==l.node(t)&&(o.debug("Node "+t+": "+JSON.stringify(l.node(t))),a.select("#"+Mv(t)).attr("transform","translate("+(l.node(t).x-l.node(t).width/2)+","+(l.node(t).y-l.node(t).height/2)+" )"))})),l.edges().forEach((function(t){void 0!==t&&void 0!==l.edge(t)&&(o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(l.edge(t))),function(t,e,n,r){var i=function(t){switch(t){case Lv.AGGREGATION:return"aggregation";case Lv.EXTENSION:return"extension";case Lv.COMPOSITION:return"composition";case Lv.DEPENDENCY:return"dependency"}};e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var a,s,l=e.points,c=yc().x((function(t){return t.x})).y((function(t){return t.y})).curve(kc),u=t.append("path").attr("d",c(l)).attr("id","edge"+Uv).attr("class","relation"),h="";r.arrowMarkerAbsolute&&(h=(h=(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==n.relation.lineType&&u.attr("class","relation dashed-line"),"none"!==n.relation.type1&&u.attr("marker-start","url("+h+"#"+i(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&u.attr("marker-end","url("+h+"#"+i(n.relation.type2)+"End)");var f,d,p,g,m=e.points.length,y=sv.calcLabelPosition(e.points);if(a=y.x,s=y.y,m%2!=0&&m>1){var v=sv.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),b=sv.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[m-1]);o.debug("cardinality_1_point "+JSON.stringify(v)),o.debug("cardinality_2_point "+JSON.stringify(b)),f=v.x,d=v.y,p=b.x,g=b.y}if(void 0!==n.title){var _=t.append("g").attr("class","classLabel"),x=_.append("text").attr("class","label").attr("x",a).attr("y",s).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=x;var w=x.node().getBBox();_.insert("rect",":first-child").attr("class","box").attr("x",w.x-r.padding/2).attr("y",w.y-r.padding/2).attr("width",w.width+r.padding).attr("height",w.height+r.padding)}o.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",f).attr("y",d).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",p).attr("y",g).attr("fill","black").attr("font-size","6").text(n.relationTitle2),Uv++}(s,l.edge(t),l.edge(t).relation,Jv))}));var p=s.node().getBBox(),g=p.width+40,m=p.height+40;iv(s,m,g,Jv.useMaxWidth);var y="".concat(p.x-20," ").concat(p.y-20," ").concat(g," ").concat(m);o.debug("viewBox ".concat(y)),s.attr("viewBox",y)};var rb={extension:function(t,e,n){o.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(t,e){t.append("defs").append("marker").attr("id",e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};const ib=function(t,e,n,r){e.forEach((function(e){rb[e](t,n,r)}))};function ab(t){return ab="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ab(t)}const ob=function(t,e,n,r){var i,a,s,l,c,u,h=t||"";if("object"===ab(h)&&(h=h[0]),iy(mv().flowchart.htmlLabels))return h=h.replace(/\\n|\n/g,"<br />"),o.info("vertexText"+h),i={isNode:r,label:h.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")})),labelStyle:e.replace("fill:","color:")},s=Il(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),l=s.append("xhtml:div"),c=i.label,u=i.isNode?"nodeLabel":"edgeLabel",l.html('<span class="'+u+'" '+(i.labelStyle?'style="'+i.labelStyle+'"':"")+">"+c+"</span>"),(a=i.labelStyle)&&l.attr("style",a),l.style("display","inline-block"),l.style("white-space","nowrap"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),s.node();var f=document.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("style",e.replace("color:","fill:"));var d=[];d="string"==typeof h?h.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(h)?h:[];for(var p=0;p<d.length;p++){var g=document.createElementNS("http://www.w3.org/2000/svg","tspan");g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),g.setAttribute("dy","1em"),g.setAttribute("x","0"),n?g.setAttribute("class","title-row"):g.setAttribute("class","row"),g.textContent=d[p].trim(),f.appendChild(g)}return f};var sb=function(t,e,n,r){var i;i=n||"node default";var a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=a.insert("g").attr("class","label").attr("style",e.labelStyle),s="string"==typeof e.labelText?e.labelText:e.labelText[0],l=o.node().appendChild(ob(ty(xE(s),mv()),e.labelStyle,!1,r)),c=l.getBBox();if(iy(mv().flowchart.htmlLabels)){var u=l.children[0],h=Il(l);c=u.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}var f=e.padding/2;return o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),{shapeSvg:a,bbox:c,halfPadding:f,label:o}},lb=function(t,e){var n=e.node().getBBox();t.width=n.width,t.height=n.height};function cb(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}var ub={},hb={},fb={},db=function(t,e){return o.trace("In isDecendant",e," ",t," = ",hb[e].indexOf(t)>=0),hb[e].indexOf(t)>=0},pb=function t(e,n,r,i){o.warn("Copying children of ",e,"root",i,"data",n.node(e),i);var a=n.children(e)||[];e!==i&&a.push(e),o.warn("Copying (nodes) clusterId",e,"nodes",a),a.forEach((function(a){if(n.children(a).length>0)t(a,n,r,i);else{var s=n.node(a);o.info("cp ",a," to ",i," with parent ",e),r.setNode(a,s),i!==n.parent(a)&&(o.warn("Setting parent",a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(o.debug("Setting parent",a,e),r.setParent(a,e)):(o.info("In copy ",e,"root",i,"data",n.node(e),i),o.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==i,"node!==clusterId",a!==e));var l=n.edges(a);o.debug("Copying Edges",l),l.forEach((function(t){o.info("Edge",t);var a=n.edge(t.v,t.w,t.name);o.info("Edge data",a,i);try{!function(t,e){return o.info("Decendants of ",e," is ",hb[e]),o.info("Edge is ",t),t.v!==e&&t.w!==e&&(hb[e]?(o.info("Here "),hb[e].indexOf(t.v)>=0||!!db(t.v,e)||!!db(t.w,e)||hb[e].indexOf(t.w)>=0):(o.debug("Tilt, ",e,",not in decendants"),!1))}(t,i)?o.info("Skipping copy of edge ",t.v,"--\x3e",t.w," rootId: ",i," clusterId:",e):(o.info("Copying as ",t.v,t.w,a,t.name),r.setEdge(t.v,t.w,a,t.name),o.info("newGraph edges ",r.edges(),r.edge(r.edges()[0])))}catch(s){o.error(s)}}))}o.debug("Removing node",a),n.removeNode(a)}))},gb=function t(e,n){for(var r=n.children(e),i=[].concat(r),a=0;a<r.length;a++)fb[r[a]]=e,i=i.concat(t(r[a],n));return i},mb=function t(e,n){o.trace("Searching",e);var r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return o.trace("This is a valid node",e),e;for(var i=0;i<r.length;i++){var a=t(r[i],n);if(a)return o.trace("Found replacement for",e," => ",a),a}},yb=function(t){return ub[t]&&ub[t].externalConnections&&ub[t]?ub[t].id:t},vb=function(t,e){!t||e>10?o.debug("Opting out, no graph "):(o.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(o.warn("Cluster identified",e," Replacement id in edges: ",mb(e,t)),hb[e]=gb(e,t),ub[e]={id:mb(e,t),clusterData:t.node(e)})})),t.nodes().forEach((function(e){var n=t.children(e),r=t.edges();n.length>0?(o.debug("Cluster identified",e,hb),r.forEach((function(t){t.v!==e&&t.w!==e&&db(t.v,e)^db(t.w,e)&&(o.warn("Edge: ",t," leaves cluster ",e),o.warn("Decendants of XXX ",e,": ",hb[e]),ub[e].externalConnections=!0)}))):o.debug("Not a cluster ",e,hb)})),t.edges().forEach((function(e){var n=t.edge(e);o.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),o.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));var r=e.v,i=e.w;o.warn("Fix XXX",ub,"ids:",e.v,e.w,"Translateing: ",ub[e.v]," --- ",ub[e.w]),(ub[e.v]||ub[e.w])&&(o.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),r=yb(e.v),i=yb(e.w),t.removeEdge(e.v,e.w,e.name),r!==e.v&&(n.fromCluster=e.v),i!==e.w&&(n.toCluster=e.w),o.warn("Fix Replacing with XXX",r,i,e.name),t.setEdge(r,i,n,e.name))})),o.warn("Adjusted Graph",qv().json.write(t)),bb(t,0),o.trace(ub))},bb=function t(e,n){if(o.warn("extractor - ",n,qv().json.write(e),e.children("D")),n>10)o.error("Bailing out");else{for(var r=e.nodes(),i=!1,a=0;a<r.length;a++){var s=r[a],l=e.children(s);i=i||l.length>0}if(i){o.debug("Nodes = ",r,n);for(var c=0;c<r.length;c++){var u=r[c];if(o.debug("Extracting node",u,ub,ub[u]&&!ub[u].externalConnections,!e.parent(u),e.node(u),e.children("D")," Depth ",n),ub[u])if(!ub[u].externalConnections&&e.children(u)&&e.children(u).length>0){o.warn("Cluster without external connections, without a parent and with children",u,n);var h="TB"===e.graph().rankdir?"LR":"TB";ub[u]&&ub[u].clusterData&&ub[u].clusterData.dir&&(h=ub[u].clusterData.dir,o.warn("Fixing dir",ub[u].clusterData.dir,h));var f=new(qv().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:h,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));o.warn("Old graph before copy",qv().json.write(e)),pb(u,e,f,u),e.setNode(u,{clusterNode:!0,id:u,clusterData:ub[u].clusterData,labelText:ub[u].labelText,graph:f}),o.warn("New graph after copy node: (",u,")",qv().json.write(f)),o.debug("Old graph after copy",qv().json.write(e))}else o.warn("Cluster ** ",u," **not meeting the criteria !externalConnections:",!ub[u].externalConnections," no parent: ",!e.parent(u)," children ",e.children(u)&&e.children(u).length>0,e.children("D"),n),o.debug(ub);else o.debug("Not a cluster",u,n)}r=e.nodes(),o.warn("New list of nodes",r);for(var d=0;d<r.length;d++){var p=r[d],g=e.node(p);o.warn(" Now next level",p,g),g.clusterNode&&t(g.graph,n+1)}}else o.debug("Done, no node has children",e.nodes())}},_b=function t(e,n){if(0===n.length)return[];var r=Object.assign(n);return n.forEach((function(n){var i=e.children(n),a=t(e,i);r=r.concat(a)})),r},xb=function(t){return _b(t,t.children())},wb=n(3841);const kb=function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,s=a-r.y,l=Math.sqrt(e*e*s*s+n*n*o*o),c=Math.abs(e*n*o/l);r.x<i&&(c=-c);var u=Math.abs(e*n*s/l);return r.y<a&&(u=-u),{x:i+c,y:a+u}};function Cb(t,e){return t*e>0}const Eb=function(t,e,n,r){var i,a,o,s,l,c,u,h,f,d,p,g,m;if(i=e.y-t.y,o=t.x-e.x,l=e.x*t.y-t.x*e.y,f=i*n.x+o*n.y+l,d=i*r.x+o*r.y+l,!(0!==f&&0!==d&&Cb(f,d)||(a=r.y-n.y,s=n.x-r.x,c=r.x*n.y-n.x*r.y,u=a*t.x+s*t.y+c,h=a*e.x+s*e.y+c,0!==u&&0!==h&&Cb(u,h)||0==(p=i*s-a*o))))return g=Math.abs(p/2),{x:(m=o*c-s*l)<0?(m-g)/p:(m+g)/p,y:(m=a*l-i*c)<0?(m-g)/p:(m+g)/p}},Sb=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,l=t.width/2,c=t.height/2;return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),n=0===s?0:c*o/s,r=c):(o<0&&(l=-l),n=l,r=0===o?0:l*s/o),{x:i+n,y:a+r}},Tb=(n.n(wb)(),function(t,e,n){return kb(t,e,e,n)}),Ab=function(t,e,n){var r=t.x,i=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)})):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var l=r-t.width/2-o,c=i-t.height/2-s,u=0;u<e.length;u++){var h=e[u],f=e[u<e.length-1?u+1:0],d=Eb(t,n,{x:l+h.x,y:c+h.y},{x:l+f.x,y:c+f.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,l=Math.sqrt(o*o+s*s);return a<l?-1:a===l?0:1})),a[0]):t},Mb=Sb;function Nb(t){return Nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nb(t)}var Db=function(t,e,n){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=70,a=10;"LR"===n&&(i=10,a=70);var o=r.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return lb(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return Mb(e,t)},r},Ob={question:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding+(i.height+e.padding),s=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];o.info("Question main (Circle)");var l=cb(r,a,a,s);return l.attr("style",e.style),lb(e,l),e.intersect=function(t){return o.warn("Intersect called"),Ab(e,s,t)},r},rect:function(t,e){var n=sb(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;o.trace("Classes = ",e.classes);var s=r.insert("rect",":first-child"),l=i.width+e.padding,c=i.height+e.padding;if(s.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",l).attr("height",c),e.props){var u=new Set(Object.keys(e.props));e.props.borders&&(function(t,e,n,r){var i=[],a=function(t){i.push(t),i.push(0)},s=function(t){i.push(0),i.push(t)};e.includes("t")?(o.debug("add top border"),a(n)):s(n),e.includes("r")?(o.debug("add right border"),a(r)):s(r),e.includes("b")?(o.debug("add bottom border"),a(n)):s(n),e.includes("l")?(o.debug("add left border"),a(r)):s(r),t.attr("stroke-dasharray",i.join(" "))}(s,e.props.borders,l,c),u.delete("borders")),u.forEach((function(t){o.warn("Unknown node property ".concat(t))}))}return lb(e,s),e.intersect=function(t){return Mb(e,t)},r},rectWithTitle:function(t,e){var n;n=e.classes?"node "+e.classes:"node default";var r,i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),a=i.insert("rect",":first-child"),s=i.insert("line"),l=i.insert("g").attr("class","label"),c=e.labelText.flat?e.labelText.flat():e.labelText;r="object"===Nb(c)?c[0]:c,o.info("Label text abc79",r,c,"object"===Nb(c));var u=l.node().appendChild(ob(r,e.labelStyle,!0,!0)),h={width:0,height:0};if(iy(mv().flowchart.htmlLabels)){var f=u.children[0],d=Il(u);h=f.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}o.info("Text 2",c);var p=c.slice(1,c.length),g=u.getBBox(),m=l.node().appendChild(ob(p.join?p.join("<br/>"):p,e.labelStyle,!0,!0));if(iy(mv().flowchart.htmlLabels)){var y=m.children[0],v=Il(m);h=y.getBoundingClientRect(),v.attr("width",h.width),v.attr("height",h.height)}var b=e.padding/2;return Il(m).attr("transform","translate( "+(h.width>g.width?0:(g.width-h.width)/2)+", "+(g.height+b+5)+")"),Il(u).attr("transform","translate( "+(h.width<g.width?0:-(g.width-h.width)/2)+", 0)"),h=l.node().getBBox(),l.attr("transform","translate("+-h.width/2+", "+(-h.height/2-b+3)+")"),a.attr("class","outer title-state").attr("x",-h.width/2-b).attr("y",-h.height/2-b).attr("width",h.width+e.padding).attr("height",h.height+e.padding),s.attr("class","divider").attr("x1",-h.width/2-b).attr("x2",h.width/2+b).attr("y1",-h.height/2-b+g.height+b).attr("y2",-h.height/2-b+g.height+b),lb(e,a),e.intersect=function(t){return Mb(e,t)},i},choice:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return n.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return Tb(e,14,t)},n},circle:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding,s=r.insert("circle",":first-child");return s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),o.info("Circle main"),lb(e,s),e.intersect=function(t){return o.info("Circle intersect",e,i.width/2+a,t),Tb(e,i.width/2+a,t)},r},stadium:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.height+e.padding,o=i.width+a/4+e.padding,s=r.insert("rect",":first-child").attr("style",e.style).attr("rx",a/2).attr("ry",a/2).attr("x",-o/2).attr("y",-a/2).attr("width",o).attr("height",a);return lb(e,s),e.intersect=function(t){return Mb(e,t)},r},hexagon:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.height+e.padding,o=a/4,s=i.width+2*o+e.padding,l=[{x:o,y:0},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}],c=cb(r,s,a,l);return c.attr("style",e.style),lb(e,c),e.intersect=function(t){return Ab(e,l,t)},r},rect_left_inv_arrow:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-o/2,y:0},{x:a,y:0},{x:a,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return cb(r,a,o,s).attr("style",e.style),e.width=a+o,e.height=o,e.intersect=function(t){return Ab(e,s,t)},r},lean_right:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-2*o/6,y:0},{x:a-o/6,y:0},{x:a+2*o/6,y:-o},{x:o/6,y:-o}],l=cb(r,a,o,s);return l.attr("style",e.style),lb(e,l),e.intersect=function(t){return Ab(e,s,t)},r},lean_left:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:2*o/6,y:0},{x:a+o/6,y:0},{x:a-2*o/6,y:-o},{x:-o/6,y:-o}],l=cb(r,a,o,s);return l.attr("style",e.style),lb(e,l),e.intersect=function(t){return Ab(e,s,t)},r},trapezoid:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-2*o/6,y:0},{x:a+2*o/6,y:0},{x:a-o/6,y:-o},{x:o/6,y:-o}],l=cb(r,a,o,s);return l.attr("style",e.style),lb(e,l),e.intersect=function(t){return Ab(e,s,t)},r},inv_trapezoid:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:o/6,y:0},{x:a-o/6,y:0},{x:a+2*o/6,y:-o},{x:-2*o/6,y:-o}],l=cb(r,a,o,s);return l.attr("style",e.style),lb(e,l),e.intersect=function(t){return Ab(e,s,t)},r},rect_right_inv_arrow:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:0,y:0},{x:a+o/2,y:0},{x:a,y:-o/2},{x:a+o/2,y:-o},{x:0,y:-o}],l=cb(r,a,o,s);return l.attr("style",e.style),lb(e,l),e.intersect=function(t){return Ab(e,s,t)},r},cylinder:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=a/2,s=o/(2.5+a/50),l=i.height+s+e.padding,c="M 0,"+s+" a "+o+","+s+" 0,0,0 "+a+" 0 a "+o+","+s+" 0,0,0 "+-a+" 0 l 0,"+l+" a "+o+","+s+" 0,0,0 "+a+" 0 l 0,"+-l,u=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",c).attr("transform","translate("+-a/2+","+-(l/2+s)+")");return lb(e,u),e.intersect=function(t){var n=Mb(e,t),r=n.x-e.x;if(0!=o&&(Math.abs(r)<e.width/2||Math.abs(r)==e.width/2&&Math.abs(n.y-e.y)>e.height/2-s)){var i=s*s*(1-r*r/(o*o));0!=i&&(i=Math.sqrt(i)),i=s-i,t.y-e.y>0&&(i=-i),n.y+=i}return n},r},start:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),lb(e,r),e.intersect=function(t){return Tb(e,7,t)},n},end:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=n.insert("circle",":first-child"),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),lb(e,i),e.intersect=function(t){return Tb(e,7,t)},n},note:function(t,e){var n=sb(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;o.info("Classes = ",e.classes);var s=r.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),lb(e,s),e.intersect=function(t){return Mb(e,t)},r},subroutine:function(t,e){var n=sb(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:0,y:0},{x:a,y:0},{x:a,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],l=cb(r,a,o,s);return l.attr("style",e.style),lb(e,l),e.intersect=function(t){return Ab(e,s,t)},r},fork:Db,join:Db,class_box:function(t,e){var n,r=e.padding/2;n=e.classes?"node "+e.classes:"node default";var i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),a=i.insert("rect",":first-child"),o=i.insert("line"),s=i.insert("line"),l=0,c=4,u=i.insert("g").attr("class","label"),h=0,f=e.classData.annotations&&e.classData.annotations[0],d=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",p=u.node().appendChild(ob(d,e.labelStyle,!0,!0)),g=p.getBBox();if(iy(mv().flowchart.htmlLabels)){var m=p.children[0],y=Il(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}e.classData.annotations[0]&&(c+=g.height+4,l+=g.width);var v=e.classData.id;void 0!==e.classData.type&&""!==e.classData.type&&(mv().flowchart.htmlLabels?v+="<"+e.classData.type+">":v+="<"+e.classData.type+">");var b=u.node().appendChild(ob(v,e.labelStyle,!0,!0));Il(b).attr("class","classTitle");var _=b.getBBox();if(iy(mv().flowchart.htmlLabels)){var x=b.children[0],w=Il(b);_=x.getBoundingClientRect(),w.attr("width",_.width),w.attr("height",_.height)}c+=_.height+4,_.width>l&&(l=_.width);var k=[];e.classData.members.forEach((function(t){var n=$v(t),r=n.displayText;mv().flowchart.htmlLabels&&(r=r.replace(/</g,"<").replace(/>/g,">"));var i=u.node().appendChild(ob(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0)),a=i.getBBox();if(iy(mv().flowchart.htmlLabels)){var o=i.children[0],s=Il(i);a=o.getBoundingClientRect(),s.attr("width",a.width),s.attr("height",a.height)}a.width>l&&(l=a.width),c+=a.height+4,k.push(i)})),c+=8;var C=[];if(e.classData.methods.forEach((function(t){var n=$v(t),r=n.displayText;mv().flowchart.htmlLabels&&(r=r.replace(/</g,"<").replace(/>/g,">"));var i=u.node().appendChild(ob(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0)),a=i.getBBox();if(iy(mv().flowchart.htmlLabels)){var o=i.children[0],s=Il(i);a=o.getBoundingClientRect(),s.attr("width",a.width),s.attr("height",a.height)}a.width>l&&(l=a.width),c+=a.height+4,C.push(i)})),c+=8,f){var E=(l-g.width)/2;Il(p).attr("transform","translate( "+(-1*l/2+E)+", "+-1*c/2+")"),h=g.height+4}var S=(l-_.width)/2;return Il(b).attr("transform","translate( "+(-1*l/2+S)+", "+(-1*c/2+h)+")"),h+=_.height+4,o.attr("class","divider").attr("x1",-l/2-r).attr("x2",l/2+r).attr("y1",-c/2-r+8+h).attr("y2",-c/2-r+8+h),h+=8,k.forEach((function(t){Il(t).attr("transform","translate( "+-l/2+", "+(-1*c/2+h+4)+")"),h+=_.height+4})),h+=8,s.attr("class","divider").attr("x1",-l/2-r).attr("x2",l/2+r).attr("y1",-c/2-r+8+h).attr("y2",-c/2-r+8+h),h+=8,C.forEach((function(t){Il(t).attr("transform","translate( "+-l/2+", "+(-1*c/2+h)+")"),h+=_.height+4})),a.attr("class","outer title-state").attr("x",-l/2-r).attr("y",-c/2-r).attr("width",l+e.padding).attr("height",c+e.padding),lb(e,a),e.intersect=function(t){return Mb(e,t)},i}},Lb={},Bb=function(t){var e=Lb[t.id];o.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},Ib={rect:function(t,e){o.trace("Creating subgraph rect for ",e.id,e);var n=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=i.node().appendChild(ob(e.labelText,e.labelStyle,void 0,!0)),s=a.getBBox();if(iy(mv().flowchart.htmlLabels)){var l=a.children[0],c=Il(a);s=l.getBoundingClientRect(),c.attr("width",s.width),c.attr("height",s.height)}var u=0*e.padding,h=u/2,f=e.width<=s.width+u?s.width+u:e.width;e.width<=s.width+u?e.diff=(s.width-e.width)/2:e.diff=-e.padding/2,o.trace("Data ",e,JSON.stringify(e)),r.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-f/2).attr("y",e.y-e.height/2-h).attr("width",f).attr("height",e.height+u),i.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var d=r.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(t){return Sb(e,t)},n},roundedWithTitle:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),o=i.node().appendChild(ob(e.labelText,e.labelStyle,void 0,!0)),s=o.getBBox();if(iy(mv().flowchart.htmlLabels)){var l=o.children[0],c=Il(o);s=l.getBoundingClientRect(),c.attr("width",s.width),c.attr("height",s.height)}s=o.getBBox();var u=0*e.padding,h=u/2,f=e.width<=s.width+e.padding?s.width+e.padding:e.width;e.width<=s.width+e.padding?e.diff=(s.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,r.attr("class","outer").attr("x",e.x-f/2-h).attr("y",e.y-e.height/2-h).attr("width",f+u).attr("height",e.height+u),a.attr("class","inner").attr("x",e.x-f/2-h).attr("y",e.y-e.height/2-h+s.height-1).attr("width",f+u).attr("height",e.height+u-s.height-3),i.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2-e.padding/3+(iy(mv().flowchart.htmlLabels)?5:3))+")");var d=r.node().getBBox();return e.height=d.height,e.intersect=function(t){return Sb(e,t)},n},noteGroup:function(t,e){var n=t.insert("g").attr("class","note-cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return Sb(e,t)},n},divider:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+i).attr("height",e.height+i);var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.diff=-e.padding/2,e.intersect=function(t){return Sb(e,t)},n}},Rb={},Fb={},Pb={},zb=function(t,e){var n=ob(e.label,e.labelStyle),r=t.insert("g").attr("class","edgeLabel"),i=r.insert("g").attr("class","label");i.node().appendChild(n);var a,o=n.getBBox();if(iy(mv().flowchart.htmlLabels)){var s=n.children[0],l=Il(n);o=s.getBoundingClientRect(),l.attr("width",o.width),l.attr("height",o.height)}if(i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),Fb[e.id]=r,e.width=o.width,e.height=o.height,e.startLabelLeft){var c=ob(e.startLabelLeft,e.labelStyle),u=t.insert("g").attr("class","edgeTerminals"),h=u.insert("g").attr("class","inner");a=h.node().appendChild(c);var f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),Pb[e.id]||(Pb[e.id]={}),Pb[e.id].startLeft=u,qb(a,e.startLabelLeft)}if(e.startLabelRight){var d=ob(e.startLabelRight,e.labelStyle),p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner");a=p.node().appendChild(d),g.node().appendChild(d);var m=d.getBBox();g.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),Pb[e.id]||(Pb[e.id]={}),Pb[e.id].startRight=p,qb(a,e.startLabelRight)}if(e.endLabelLeft){var y=ob(e.endLabelLeft,e.labelStyle),v=t.insert("g").attr("class","edgeTerminals"),b=v.insert("g").attr("class","inner");a=b.node().appendChild(y);var _=y.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),v.node().appendChild(y),Pb[e.id]||(Pb[e.id]={}),Pb[e.id].endLeft=v,qb(a,e.endLabelLeft)}if(e.endLabelRight){var x=ob(e.endLabelRight,e.labelStyle),w=t.insert("g").attr("class","edgeTerminals"),k=w.insert("g").attr("class","inner");a=k.node().appendChild(x);var C=x.getBBox();k.attr("transform","translate("+-C.width/2+", "+-C.height/2+")"),w.node().appendChild(x),Pb[e.id]||(Pb[e.id]={}),Pb[e.id].endRight=w,qb(a,e.endLabelRight)}};function qb(t,e){mv().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var jb=function(t,e){o.info("Moving label abc78 ",t.id,t.label,Fb[t.id]);var n=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var r=Fb[t.id],i=t.x,a=t.y;if(n){var s=sv.calcLabelPosition(n);o.info("Moving label from (",i,",",a,") to (",s.x,",",s.y,") abc78")}r.attr("transform","translate("+i+", "+a+")")}if(t.startLabelLeft){var l=Pb[t.id].startLeft,c=t.x,u=t.y;if(n){var h=sv.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);c=h.x,u=h.y}l.attr("transform","translate("+c+", "+u+")")}if(t.startLabelRight){var f=Pb[t.id].startRight,d=t.x,p=t.y;if(n){var g=sv.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);d=g.x,p=g.y}f.attr("transform","translate("+d+", "+p+")")}if(t.endLabelLeft){var m=Pb[t.id].endLeft,y=t.x,v=t.y;if(n){var b=sv.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);y=b.x,v=b.y}m.attr("transform","translate("+y+", "+v+")")}if(t.endLabelRight){var _=Pb[t.id].endRight,x=t.x,w=t.y;if(n){var k=sv.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);x=k.x,w=k.y}_.attr("transform","translate("+x+", "+w+")")}},Hb=function(t,e){o.warn("abc88 cutPathAtIntersect",t,e);var n=[],r=t[0],i=!1;return t.forEach((function(t){if(o.info("abc88 checking point",t,e),function(t,e){var n=t.x,r=t.y,i=Math.abs(e.x-n),a=Math.abs(e.y-r),o=t.width/2,s=t.height/2;return i>=o||a>=s}(e,t)||i)o.warn("abc88 outside",t,r),r=t,i||n.push(t);else{var a=function(t,e,n){o.warn("intersection calc abc89:\n outsidePoint: ".concat(JSON.stringify(e),"\n insidePoint : ").concat(JSON.stringify(n),"\n node : x:").concat(t.x," y:").concat(t.y," w:").concat(t.width," h:").concat(t.height));var r=t.x,i=t.y,a=Math.abs(r-n.x),s=t.width/2,l=n.x<e.x?s-a:s+a,c=t.height/2,u=Math.abs(e.y-n.y),h=Math.abs(e.x-n.x);if(Math.abs(i-e.y)*s>Math.abs(r-e.x)*c){var f=n.y<e.y?e.y-c-i:i-c-e.y;l=h*f/u;var d={x:n.x<e.x?n.x+l:n.x-h+l,y:n.y<e.y?n.y+u-f:n.y-u+f};return 0===l&&(d.x=e.x,d.y=e.y),0===h&&(d.x=e.x),0===u&&(d.y=e.y),o.warn("abc89 topp/bott calc, Q ".concat(u,", q ").concat(f,", R ").concat(h,", r ").concat(l),d),d}var p=u*(l=n.x<e.x?e.x-s-r:r-s-e.x)/h,g=n.x<e.x?n.x+h-l:n.x-h+l,m=n.y<e.y?n.y+p:n.y-p;return o.warn("sides calc abc89, Q ".concat(u,", q ").concat(p,", R ").concat(h,", r ").concat(l),{_x:g,_y:m}),0===l&&(g=e.x,m=e.y),0===h&&(g=e.x),0===u&&(m=e.y),{x:g,y:m}}(e,r,t);o.warn("abc88 inside",t,r,a),o.warn("abc88 intersection",a);var s=!1;n.forEach((function(t){s=s||t.x===a.x&&t.y===a.y})),n.find((function(t){return t.x===a.x&&t.y===a.y}))?o.warn("abc88 no intersect",a,n):n.push(a),i=!0}})),o.warn("abc88 returning points",n),n},Ub=function t(e,n,r,i){o.info("Graph in recursive render: XXX",qv().json.write(n),i);var a=n.graph().rankdir;o.trace("Dir in recursive render - dir:",a);var s=e.insert("g").attr("class","root");n.nodes()?o.info("Recursive render XXX",n.nodes()):o.info("No nodes found for",n),n.edges().length>0&&o.trace("Recursive edges",n.edge(n.edges()[0]));var l=s.insert("g").attr("class","clusters"),c=s.insert("g").attr("class","edgePaths"),u=s.insert("g").attr("class","edgeLabels"),h=s.insert("g").attr("class","nodes");n.nodes().forEach((function(e){var s=n.node(e);if(void 0!==i){var l=JSON.parse(JSON.stringify(i.clusterData));o.info("Setting data for cluster XXX (",e,") ",l,i),n.setNode(i.id,l),n.parent(e)||(o.trace("Setting parent",e,i.id),n.setParent(e,i.id,l))}if(o.info("(Insert) Node XXX"+e+": "+JSON.stringify(n.node(e))),s&&s.clusterNode){o.info("Cluster identified",e,s.width,n.node(e));var c=t(h,s.graph,r,n.node(e)),u=c.elem;lb(s,u),s.diff=c.diff||0,o.info("Node bounds (abc123)",e,s,s.width,s.x,s.y),function(t,e){Lb[e.id]=t}(u,s),o.warn("Recursive render complete ",u,s)}else n.children(e).length>0?(o.info("Cluster - the non recursive path XXX",e,s.id,s,n),o.info(mb(s.id,n)),ub[s.id]={id:mb(s.id,n),node:s}):(o.info("Node - the non recursive path",e,s.id,s),function(t,e,n){var r,i,a;e.link?("sandbox"===mv().securityLevel?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),r=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=Ob[e.shape](r,e,n)):r=i=Ob[e.shape](t,e,n),e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),Lb[e.id]=r,e.haveCallback&&Lb[e.id].attr("class",Lb[e.id].attr("class")+" clickable")}(h,n.node(e),a))})),n.edges().forEach((function(t){var e=n.edge(t.v,t.w,t.name);o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(n.edge(t))),o.info("Fix",ub,"ids:",t.v,t.w,"Translateing: ",ub[t.v],ub[t.w]),zb(u,e)})),n.edges().forEach((function(t){o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),o.info("#############################################"),o.info("### Layout ###"),o.info("#############################################"),o.info(n),Pv().layout(n),o.info("Graph after layout:",qv().json.write(n));var f=0;return xb(n).forEach((function(t){var e=n.node(t);o.info("Position "+t+": "+JSON.stringify(n.node(t))),o.info("Position "+t+": ("+e.x,","+e.y,") width: ",e.width," height: ",e.height),e&&e.clusterNode?Bb(e):n.children(t).length>0?(function(t,e){o.trace("Inserting cluster");var n=e.shape||"rect";Rb[e.id]=Ib[n](t,e)}(l,e),ub[e.id].node=e):Bb(e)})),n.edges().forEach((function(t){var e=n.edge(t);o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e),e);var i=function(t,e,n,r,i,a){var s=n.points,l=!1,c=a.node(e.v),u=a.node(e.w);o.info("abc88 InsertEdge: ",n),u.intersect&&c.intersect&&((s=s.slice(1,n.points.length-1)).unshift(c.intersect(s[0])),o.info("Last point",s[s.length-1],u,u.intersect(s[s.length-1])),s.push(u.intersect(s[s.length-1]))),n.toCluster&&(o.info("to cluster abc88",r[n.toCluster]),s=Hb(n.points,r[n.toCluster].node),l=!0),n.fromCluster&&(o.info("from cluster abc88",r[n.fromCluster]),s=Hb(s.reverse(),r[n.fromCluster].node).reverse(),l=!0);var h,f=s.filter((function(t){return!Number.isNaN(t.y)}));h=("graph"===i||"flowchart"===i)&&n.curve||kc;var d,p=yc().x((function(t){return t.x})).y((function(t){return t.y})).curve(h);switch(n.thickness){case"normal":d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;default:d=""}switch(n.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed"}var g=t.append("path").attr("d",p(f)).attr("id",n.id).attr("class"," "+d+(n.classes?" "+n.classes:"")).attr("style",n.style),m="";switch(mv().state.arrowMarkerAbsolute&&(m=(m=(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),o.info("arrowTypeStart",n.arrowTypeStart),o.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":g.attr("marker-start","url("+m+"#"+i+"-crossStart)");break;case"arrow_point":g.attr("marker-start","url("+m+"#"+i+"-pointStart)");break;case"arrow_barb":g.attr("marker-start","url("+m+"#"+i+"-barbStart)");break;case"arrow_circle":g.attr("marker-start","url("+m+"#"+i+"-circleStart)");break;case"aggregation":g.attr("marker-start","url("+m+"#"+i+"-aggregationStart)");break;case"extension":g.attr("marker-start","url("+m+"#"+i+"-extensionStart)");break;case"composition":g.attr("marker-start","url("+m+"#"+i+"-compositionStart)");break;case"dependency":g.attr("marker-start","url("+m+"#"+i+"-dependencyStart)")}switch(n.arrowTypeEnd){case"arrow_cross":g.attr("marker-end","url("+m+"#"+i+"-crossEnd)");break;case"arrow_point":g.attr("marker-end","url("+m+"#"+i+"-pointEnd)");break;case"arrow_barb":g.attr("marker-end","url("+m+"#"+i+"-barbEnd)");break;case"arrow_circle":g.attr("marker-end","url("+m+"#"+i+"-circleEnd)");break;case"aggregation":g.attr("marker-end","url("+m+"#"+i+"-aggregationEnd)");break;case"extension":g.attr("marker-end","url("+m+"#"+i+"-extensionEnd)");break;case"composition":g.attr("marker-end","url("+m+"#"+i+"-compositionEnd)");break;case"dependency":g.attr("marker-end","url("+m+"#"+i+"-dependencyEnd)")}var y={};return l&&(y.updatedPath=s),y.originalPath=n.points,y}(c,t,e,ub,r,n);jb(e,i)})),n.nodes().forEach((function(t){var e=n.node(t);o.info(t,e.type,e.diff),"group"===e.type&&(f=e.diff)})),{elem:s,diff:f}},$b=function(t,e,n,r,i){ib(t,n,r,i),Lb={},Fb={},Pb={},Rb={},hb={},fb={},ub={},o.warn("Graph at first:",qv().json.write(e)),vb(e),o.warn("Graph after:",qv().json.write(e)),Ub(t,e,r)};jv.parser.yy=Rv;var Wb={dividerMargin:10,padding:5,textHeight:10};function Yb(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;default:e="none"}return e}var Vb={},Gb=[],Xb="",Zb=function(t){return void 0===Vb[t]&&(Vb[t]={attributes:[]},o.info("Added new entity :",t)),Vb[t]};const Kb={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,n){EE.parseDirective(this,t,e,n)},getConfig:function(){return mv().er},addEntity:Zb,addAttributes:function(t,e){var n,r=Zb(t);for(n=e.length-1;n>=0;n--)r.attributes.push(e[n]),o.debug("Added attribute ",e[n].attributeName)},getEntities:function(){return Vb},addRelationship:function(t,e,n,r){var i={entityA:t,roleA:e,entityB:n,relSpec:r};Gb.push(i),o.debug("Added new relationship :",i)},getRelationships:function(){return Gb},clear:function(){Vb={},Gb=[],Xb=""},setTitle:function(t){Xb=t},getTitle:function(){return Xb}};var Qb=n(5890),Jb=n.n(Qb),t_={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const e_=t_;var n_={},r_=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},i_=0;const a_=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)n_[e[n]]=t[e[n]]},o_=function(t,e){o.info("Drawing ER diagram"),Kb.clear();var n=Jb().parser;n.yy=Kb;var r,i=mv().securityLevel;"sandbox"===i&&(r=Il("#i"+e));var a=Il("sandbox"===i?r.nodes()[0].contentDocument.body:"body");"sandbox"===i?r.nodes()[0].contentDocument:document;try{n.parse(t)}catch(g){o.debug("Parsing failed")}var s,l=a.select("[id='".concat(e,"']"));(function(t,e){var n;t.append("defs").append("marker").attr("id",t_.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",t_.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",t_.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",t_.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",t_.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",t_.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(n=t.append("defs").append("marker").attr("id",t_.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(n=t.append("defs").append("marker").attr("id",t_.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(l,n_),s=new(qv().Graph)({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:n_.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));var c=function(t,e,n){var r;return Object.keys(e).forEach((function(i){var a=t.append("g").attr("id",i);r=void 0===r?i:r;var o="entity-"+i,s=a.append("text").attr("class","er entityLabel").attr("id",o).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+mv().fontFamily+"; font-size: "+n_.fontSize+"px").text(i),l=function(t,e,n){var r=n_.entityPadding/3,i=n_.entityPadding/3,a=.85*n_.fontSize,o=e.node().getBBox(),s=[],l=!1,c=!1,u=0,h=0,f=0,d=0,p=o.height+2*r,g=1;n.forEach((function(t){void 0!==t.attributeKeyType&&(l=!0),void 0!==t.attributeComment&&(c=!0)})),n.forEach((function(n){var i="".concat(e.node().id,"-attr-").concat(g),o=0,m=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+mv().fontFamily+"; font-size: "+a+"px").text(n.attributeType),y=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+mv().fontFamily+"; font-size: "+a+"px").text(n.attributeName),v={};v.tn=m,v.nn=y;var b=m.node().getBBox(),_=y.node().getBBox();if(u=Math.max(u,b.width),h=Math.max(h,_.width),o=Math.max(b.height,_.height),l){var x=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+mv().fontFamily+"; font-size: "+a+"px").text(n.attributeKeyType||"");v.kn=x;var w=x.node().getBBox();f=Math.max(f,w.width),o=Math.max(o,w.height)}if(c){var k=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+mv().fontFamily+"; font-size: "+a+"px").text(n.attributeComment||"");v.cn=k;var C=k.node().getBBox();d=Math.max(d,C.width),o=Math.max(o,C.height)}v.height=o,s.push(v),p+=o+2*r,g+=1}));var m=4;l&&(m+=2),c&&(m+=2);var y=u+h+f+d,v={width:Math.max(n_.minEntityWidth,Math.max(o.width+2*n_.entityPadding,y+i*m)),height:n.length>0?p:Math.max(n_.minEntityHeight,o.height+2*n_.entityPadding)};if(n.length>0){var b=Math.max(0,(v.width-y-i*m)/(m/2));e.attr("transform","translate("+v.width/2+","+(r+o.height/2)+")");var _=o.height+2*r,x="attributeBoxOdd";s.forEach((function(e){var n=_+r+e.height/2;e.tn.attr("transform","translate("+i+","+n+")");var a=t.insert("rect","#"+e.tn.node().id).attr("class","er ".concat(x)).attr("fill",n_.fill).attr("fill-opacity","100%").attr("stroke",n_.stroke).attr("x",0).attr("y",_).attr("width",u+2*i+b).attr("height",e.height+2*r),o=parseFloat(a.attr("x"))+parseFloat(a.attr("width"));e.nn.attr("transform","translate("+(o+i)+","+n+")");var s=t.insert("rect","#"+e.nn.node().id).attr("class","er ".concat(x)).attr("fill",n_.fill).attr("fill-opacity","100%").attr("stroke",n_.stroke).attr("x",o).attr("y",_).attr("width",h+2*i+b).attr("height",e.height+2*r),p=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));if(l){e.kn.attr("transform","translate("+(p+i)+","+n+")");var g=t.insert("rect","#"+e.kn.node().id).attr("class","er ".concat(x)).attr("fill",n_.fill).attr("fill-opacity","100%").attr("stroke",n_.stroke).attr("x",p).attr("y",_).attr("width",f+2*i+b).attr("height",e.height+2*r);p=parseFloat(g.attr("x"))+parseFloat(g.attr("width"))}c&&(e.cn.attr("transform","translate("+(p+i)+","+n+")"),t.insert("rect","#"+e.cn.node().id).attr("class","er ".concat(x)).attr("fill",n_.fill).attr("fill-opacity","100%").attr("stroke",n_.stroke).attr("x",p).attr("y",_).attr("width",d+2*i+b).attr("height",e.height+2*r)),_+=e.height+2*r,x="attributeBoxOdd"==x?"attributeBoxEven":"attributeBoxOdd"}))}else v.height=Math.max(n_.minEntityHeight,p),e.attr("transform","translate("+v.width/2+","+v.height/2+")");return v}(a,s,e[i].attributes),c=l.width,u=l.height,h=a.insert("rect","#"+o).attr("class","er entityBox").attr("fill",n_.fill).attr("fill-opacity","100%").attr("stroke",n_.stroke).attr("x",0).attr("y",0).attr("width",c).attr("height",u).node().getBBox();n.setNode(i,{width:h.width,height:h.height,shape:"rect",id:i})})),r}(l,Kb.getEntities(),s),u=function(t,e){return t.forEach((function(t){e.setEdge(t.entityA,t.entityB,{relationship:t},r_(t))})),t}(Kb.getRelationships(),s);Pv().layout(s),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )")}))}(l,s),u.forEach((function(t){!function(t,e,n,r){i_++;var i=n.edge(e.entityA,e.entityB,r_(e)),a=yc().x((function(t){return t.x})).y((function(t){return t.y})).curve(kc),o=t.insert("path","#"+r).attr("class","er relationshipLine").attr("d",a(i.points)).attr("stroke",n_.stroke).attr("fill","none");e.relSpec.relType===Kb.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");var s="";switch(n_.arrowMarkerAbsolute&&(s=(s=(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e.relSpec.cardA){case Kb.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+s+"#"+e_.ZERO_OR_ONE_END+")");break;case Kb.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+s+"#"+e_.ZERO_OR_MORE_END+")");break;case Kb.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+s+"#"+e_.ONE_OR_MORE_END+")");break;case Kb.Cardinality.ONLY_ONE:o.attr("marker-end","url("+s+"#"+e_.ONLY_ONE_END+")")}switch(e.relSpec.cardB){case Kb.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+s+"#"+e_.ZERO_OR_ONE_START+")");break;case Kb.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+s+"#"+e_.ZERO_OR_MORE_START+")");break;case Kb.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+s+"#"+e_.ONE_OR_MORE_START+")");break;case Kb.Cardinality.ONLY_ONE:o.attr("marker-start","url("+s+"#"+e_.ONLY_ONE_START+")")}var l=o.node().getTotalLength(),c=o.node().getPointAtLength(.5*l),u="rel"+i_,h=t.append("text").attr("class","er relationshipLabel").attr("id",u).attr("x",c.x).attr("y",c.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+mv().fontFamily+"; font-size: "+n_.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+u).attr("class","er relationshipLabelBox").attr("x",c.x-h.width/2).attr("y",c.y-h.height/2).attr("width",h.width).attr("height",h.height).attr("fill","white").attr("fill-opacity","85%")}(l,t,s,c)}));var h=n_.diagramPadding,f=l.node().getBBox(),d=f.width+2*h,p=f.height+2*h;iv(l,p,d,n_.useMaxWidth),l.attr("viewBox","".concat(f.x-h," ").concat(f.y-h," ").concat(d," ").concat(p))};function s_(t){return s_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s_(t)}function l_(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c_,u_,h_="flowchart-",f_=0,d_=mv(),p_={},g_=[],m_=[],y_=[],v_={},b_={},__=0,x_=!0,w_=[],k_=function(t){for(var e=Object.keys(p_),n=0;n<e.length;n++)if(p_[e[n]].id===t)return p_[e[n]].domId;return t},C_=function(t,e,n,r){var i={start:t,end:e,type:void 0,text:""};void 0!==(r=n.text)&&(i.text=ay.sanitizeText(r.trim(),d_),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),void 0!==n&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length),g_.push(i)},E_=function(t,e){t.split(",").forEach((function(t){var n=t;void 0!==p_[n]&&p_[n].classes.push(e),void 0!==v_[n]&&v_[n].classes.push(e)}))},S_=function(t){var e=Il(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=Il("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Il(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=Il(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Il(this).classed("hover",!1)}))};w_.push(S_);var T_=function(t){for(var e=0;e<y_.length;e++)if(y_[e].id===t)return e;return-1},A_=-1,M_=[],N_=function t(e,n){var r=y_[n].nodes;if(!((A_+=1)>2e3)){if(M_[A_]=n,y_[n].id===e)return{result:!0,count:0};for(var i=0,a=1;i<r.length;){var o=T_(r[i]);if(o>=0){var s=t(e,o);if(s.result)return{result:!0,count:a+s.count};a+=s.count}i+=1}return{result:!1,count:a}}},D_=function(t,e){var n=!1;return t.forEach((function(t){t.nodes.indexOf(e)>=0&&(n=!0)})),n},O_=function(t,e){var n=[];return t.nodes.forEach((function(r,i){D_(e,r)||n.push(t.nodes[i])})),{nodes:n}};const L_={parseDirective:function(t,e,n){EE.parseDirective(this,t,e,n)},defaultConfig:function(){return uv.flowchart},addVertex:function(t,e,n,r,i,a){var o,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},l=t;void 0!==l&&0!==l.trim().length&&(void 0===p_[l]&&(p_[l]={id:l,domId:h_+l+"-"+f_,styles:[],classes:[]}),f_++,void 0!==e?(d_=mv(),'"'===(o=ay.sanitizeText(e.trim(),d_))[0]&&'"'===o[o.length-1]&&(o=o.substring(1,o.length-1)),p_[l].text=o):void 0===p_[l].text&&(p_[l].text=t),void 0!==n&&(p_[l].type=n),null!=r&&r.forEach((function(t){p_[l].styles.push(t)})),null!=i&&i.forEach((function(t){p_[l].classes.push(t)})),void 0!==a&&(p_[l].dir=a),p_[l].props=s)},lookUpDomId:k_,addLink:function(t,e,n,r){var i,a;for(i=0;i<t.length;i++)for(a=0;a<e.length;a++)C_(t[i],e[a],n,r)},updateLinkInterpolate:function(t,e){t.forEach((function(t){"default"===t?g_.defaultInterpolate=e:g_[t].interpolate=e}))},updateLink:function(t,e){t.forEach((function(t){"default"===t?g_.defaultStyle=e:(-1===sv.isSubstringInArray("fill",e)&&e.push("fill:none"),g_[t].style=e)}))},addClass:function(t,e){void 0===m_[t]&&(m_[t]={id:t,styles:[],textStyles:[]}),null!=e&&e.forEach((function(e){if(e.match("color")){var n=e.replace("fill","bgFill").replace("color","fill");m_[t].textStyles.push(n)}m_[t].styles.push(e)}))},setDirection:function(t){(c_=t).match(/.*</)&&(c_="RL"),c_.match(/.*\^/)&&(c_="BT"),c_.match(/.*>/)&&(c_="LR"),c_.match(/.*v/)&&(c_="TB")},setClass:E_,setTooltip:function(t,e){t.split(",").forEach((function(t){void 0!==e&&(b_["gen-1"===u_?k_(t):t]=ay.sanitizeText(e,d_))}))},getTooltip:function(t){return b_[t]},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){var r=k_(t);if("loose"===mv().securityLevel&&void 0!==e){var i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var a=0;a<i.length;a++){var o=i[a].trim();'"'===o.charAt(0)&&'"'===o.charAt(o.length-1)&&(o=o.substr(1,o.length-2)),i[a]=o}}0===i.length&&i.push(t),void 0!==p_[t]&&(p_[t].haveCallback=!0,w_.push((function(){var t=document.querySelector('[id="'.concat(r,'"]'));null!==t&&t.addEventListener("click",(function(){var t;sv.runFunc.apply(sv,[e].concat(function(t){if(Array.isArray(t))return l_(t)}(t=i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l_(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}),!1)})))}}(t,e,n)})),E_(t,"clickable")},setLink:function(t,e,n){t.split(",").forEach((function(t){void 0!==p_[t]&&(p_[t].link=sv.formatUrl(e,d_),p_[t].linkTarget=n)})),E_(t,"clickable")},bindFunctions:function(t){w_.forEach((function(e){e(t)}))},getDirection:function(){return c_.trim()},getVertices:function(){return p_},getEdges:function(){return g_},getClasses:function(){return m_},clear:function(t){p_={},m_={},g_=[],(w_=[]).push(S_),y_=[],v_={},__=0,b_=[],x_=!0,u_=t||"gen-1"},setGen:function(t){u_=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,n){var r=t.trim(),i=n;t===n&&n.match(/\s/)&&(r=void 0);var a=[],s=function(t){var e,n={boolean:{},number:{},string:{}},r=[],i=t.filter((function(t){var i=s_(t);return t.stmt&&"dir"===t.stmt?(e=t.value,!1):""!==t.trim()&&(i in n?!n[i].hasOwnProperty(t)&&(n[i][t]=!0):!(r.indexOf(t)>=0)&&r.push(t))}));return{nodeList:i,dir:e}}(a.concat.apply(a,e)),l=s.nodeList,c=s.dir;if(a=l,"gen-1"===u_){o.warn("LOOKING UP");for(var u=0;u<a.length;u++)a[u]=k_(a[u])}r=r||"subGraph"+__,i=i||"",i=ay.sanitizeText(i,d_),__+=1;var h={id:r,nodes:a,title:i.trim(),classes:[],dir:c};return o.info("Adding",h.id,h.nodes,h.dir),h.nodes=O_(h,y_).nodes,y_.push(h),v_[r]=h,r},getDepthFirstPos:function(t){return M_[t]},indexNodes:function(){A_=-1,y_.length>0&&N_("none",y_.length-1)},getSubGraphs:function(){return y_},destructLink:function(t,e){var n,r=function(t){var e=t.trim(),n=e.slice(0,-1),r="arrow_open";switch(e.slice(-1)){case"x":r="arrow_cross","x"===e[0]&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point","<"===e[0]&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle","o"===e[0]&&(r="double_"+r,n=n.slice(1))}var i="normal",a=n.length-1;"="===n[0]&&(i="thick");var o=function(t,e){for(var n=e.length,r=0,i=0;i<n;++i)"."===e[i]&&++r;return r}(0,n);return o&&(i="dotted",a=o),{type:r,stroke:i,length:a}}(t);if(e){if(n=function(t){var e=t.trim(),n="arrow_open";switch(e[0]){case"<":n="arrow_point",e=e.slice(1);break;case"x":n="arrow_cross",e=e.slice(1);break;case"o":n="arrow_circle",e=e.slice(1)}var r="normal";return-1!==e.indexOf("=")&&(r="thick"),-1!==e.indexOf(".")&&(r="dotted"),{type:n,stroke:r}}(e),n.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===n.type)n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return"double_arrow"===n.type&&(n.type="double_arrow_point"),n.length=r.length,n}return r},lex:{firstGraph:function(){return!!x_&&(x_=!1,!0)}},exists:D_,makeUniq:O_};var B_=n(3602),I_=n.n(B_),R_=n(4949),F_=n.n(R_),P_=n(8284),z_=n.n(P_);function q_(t,e,n){var r=.9*(e.width+e.height),i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],a=K_(t,r,r,i);return n.intersect=function(t){return F_().intersect.polygon(n,i,t)},a}function j_(t,e,n){var r=e.height,i=r/4,a=e.width+2*i,o=[{x:i,y:0},{x:a-i,y:0},{x:a,y:-r/2},{x:a-i,y:-r},{x:i,y:-r},{x:0,y:-r/2}],s=K_(t,a,r,o);return n.intersect=function(t){return F_().intersect.polygon(n,o,t)},s}function H_(t,e,n){var r=e.width,i=e.height,a=[{x:-i/2,y:0},{x:r,y:0},{x:r,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],o=K_(t,r,i,a);return n.intersect=function(t){return F_().intersect.polygon(n,a,t)},o}function U_(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:i/6,y:-i}],o=K_(t,r,i,a);return n.intersect=function(t){return F_().intersect.polygon(n,a,t)},o}function $_(t,e,n){var r=e.width,i=e.height,a=[{x:2*i/6,y:0},{x:r+i/6,y:0},{x:r-2*i/6,y:-i},{x:-i/6,y:-i}],o=K_(t,r,i,a);return n.intersect=function(t){return F_().intersect.polygon(n,a,t)},o}function W_(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r+2*i/6,y:0},{x:r-i/6,y:-i},{x:i/6,y:-i}],o=K_(t,r,i,a);return n.intersect=function(t){return F_().intersect.polygon(n,a,t)},o}function Y_(t,e,n){var r=e.width,i=e.height,a=[{x:i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:-2*i/6,y:-i}],o=K_(t,r,i,a);return n.intersect=function(t){return F_().intersect.polygon(n,a,t)},o}function V_(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r+i/2,y:0},{x:r,y:-i/2},{x:r+i/2,y:-i},{x:0,y:-i}],o=K_(t,r,i,a);return n.intersect=function(t){return F_().intersect.polygon(n,a,t)},o}function G_(t,e,n){var r=e.height,i=e.width+r/4,a=t.insert("rect",":first-child").attr("rx",r/2).attr("ry",r/2).attr("x",-i/2).attr("y",-r/2).attr("width",i).attr("height",r);return n.intersect=function(t){return F_().intersect.rect(n,t)},a}function X_(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r,y:0},{x:r,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],o=K_(t,r,i,a);return n.intersect=function(t){return F_().intersect.polygon(n,a,t)},o}function Z_(t,e,n){var r=e.width,i=r/2,a=i/(2.5+r/50),o=e.height+a,s="M 0,"+a+" a "+i+","+a+" 0,0,0 "+r+" 0 a "+i+","+a+" 0,0,0 "+-r+" 0 l 0,"+o+" a "+i+","+a+" 0,0,0 "+r+" 0 l 0,"+-o,l=t.attr("label-offset-y",a).insert("path",":first-child").attr("d",s).attr("transform","translate("+-r/2+","+-(o/2+a)+")");return n.intersect=function(t){var e=F_().intersect.rect(n,t),r=e.x-n.x;if(0!=i&&(Math.abs(r)<n.width/2||Math.abs(r)==n.width/2&&Math.abs(e.y-n.y)>n.height/2-a)){var o=a*a*(1-r*r/(i*i));0!=o&&(o=Math.sqrt(o)),o=a-o,t.y-n.y>0&&(o=-o),e.y+=o}return e},l}function K_(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+-e/2+","+n/2+")")}const Q_=function(t){t.shapes().question=q_,t.shapes().hexagon=j_,t.shapes().stadium=G_,t.shapes().subroutine=X_,t.shapes().cylinder=Z_,t.shapes().rect_left_inv_arrow=H_,t.shapes().lean_right=U_,t.shapes().lean_left=$_,t.shapes().trapezoid=W_,t.shapes().inv_trapezoid=Y_,t.shapes().rect_right_inv_arrow=V_};var J_={};const tx=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)J_[e[n]]=t[e[n]]},ex=function(t,e){o.info("Drawing flowchart"),L_.clear(),L_.setGen("gen-1");var n=I_().parser;n.yy=L_;var r,i=mv().securityLevel;"sandbox"===i&&(r=Il("#i"+e));var a=Il("sandbox"===i?r.nodes()[0].contentDocument.body:"body"),s="sandbox"===i?r.nodes()[0].contentDocument:document;n.parse(t);var l=L_.getDirection();void 0===l&&(l="TD");for(var c,u=mv().flowchart,h=u.nodeSpacing||50,f=u.rankSpacing||50,d=new(qv().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:h,ranksep:f,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),p=L_.getSubGraphs(),g=p.length-1;g>=0;g--)c=p[g],L_.addVertex(c.id,c.title,"group",void 0,c.classes);var m=L_.getVertices();o.warn("Get vertices",m);var y=L_.getEdges(),v=0;for(v=p.length-1;v>=0;v--){c=p[v],Rl("cluster").append("text");for(var b=0;b<c.nodes.length;b++)o.warn("Setting subgraph",c.nodes[b],L_.lookUpDomId(c.nodes[b]),L_.lookUpDomId(c.id)),d.setParent(L_.lookUpDomId(c.nodes[b]),L_.lookUpDomId(c.id))}(function(t,e,n,r,i){mv().securityLevel;var a=r?r.select('[id="'.concat(n,'"]')):Il('[id="'.concat(n,'"]')),s=i||document;Object.keys(t).forEach((function(n){var r=t[n],i="default";r.classes.length>0&&(i=r.classes.join(" "));var l,c=Vy(r.styles),u=void 0!==r.text?r.text:r.id;if(iy(mv().flowchart.htmlLabels)){var h={label:u.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")}))};(l=z_()(a,h).node()).parentNode.removeChild(l)}else{var f=s.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("style",c.labelStyle.replace("color:","fill:"));for(var d=u.split(ay.lineBreakRegex),p=0;p<d.length;p++){var g=s.createElementNS("http://www.w3.org/2000/svg","tspan");g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),g.setAttribute("dy","1em"),g.setAttribute("x","1"),g.textContent=d[p],f.appendChild(g)}l=f}var m=0,y="";switch(r.type){case"round":m=5,y="rect";break;case"square":case"group":default:y="rect";break;case"diamond":y="question";break;case"hexagon":y="hexagon";break;case"odd":case"odd_right":y="rect_left_inv_arrow";break;case"lean_right":y="lean_right";break;case"lean_left":y="lean_left";break;case"trapezoid":y="trapezoid";break;case"inv_trapezoid":y="inv_trapezoid";break;case"circle":y="circle";break;case"ellipse":y="ellipse";break;case"stadium":y="stadium";break;case"subroutine":y="subroutine";break;case"cylinder":y="cylinder"}o.warn("Adding node",r.id,r.domId),e.setNode(L_.lookUpDomId(r.id),{labelType:"svg",labelStyle:c.labelStyle,shape:y,label:l,rx:m,ry:m,class:i,style:c.style,id:L_.lookUpDomId(r.id)})}))})(m,d,e,a,s),function(t,e){var n,r,i=0;if(void 0!==t.defaultStyle){var a=Vy(t.defaultStyle);n=a.style,r=a.labelStyle}t.forEach((function(a){i++;var o="L-"+a.start+"-"+a.end,s="LS-"+a.start,l="LE-"+a.end,c={};"arrow_open"===a.type?c.arrowhead="none":c.arrowhead="normal";var u="",h="";if(void 0!==a.style){var f=Vy(a.style);u=f.style,h=f.labelStyle}else switch(a.stroke){case"normal":u="fill:none",void 0!==n&&(u=n),void 0!==r&&(h=r);break;case"dotted":u="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":u=" stroke-width: 3.5px;fill:none"}c.style=u,c.labelStyle=h,void 0!==a.interpolate?c.curve=Wy(a.interpolate,pc):void 0!==t.defaultInterpolate?c.curve=Wy(t.defaultInterpolate,pc):c.curve=Wy(J_.curve,pc),void 0===a.text?void 0!==a.style&&(c.arrowheadStyle="fill: #333"):(c.arrowheadStyle="fill: #333",c.labelpos="c",iy(mv().flowchart.htmlLabels)?(c.labelType="html",c.label='<span id="L-'.concat(o,'" class="edgeLabel L-').concat(s,"' L-").concat(l,'">').concat(a.text.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")})),"</span>")):(c.labelType="text",c.label=a.text.replace(ay.lineBreakRegex,"\n"),void 0===a.style&&(c.style=c.style||"stroke: #333; stroke-width: 1.5px;fill:none"),c.labelStyle=c.labelStyle.replace("color:","fill:"))),c.id=o,c.class=s+" "+l,c.minlen=a.length||1,e.setEdge(L_.lookUpDomId(a.start),L_.lookUpDomId(a.end),c,i)}))}(y,d);var _=new(F_().render);Q_(_),_.arrows().none=function(t,e,n,r){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");F_().util.applyStyle(i,n[r+"Style"])},_.arrows().normal=function(t,e){t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var x=a.select('[id="'.concat(e,'"]'));x.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),o.warn(d);var w=a.select("#"+e+" g");_(w,d),w.selectAll("g.node").attr("title",(function(){return L_.getTooltip(this.id)}));var k=u.diagramPadding,C=x.node().getBBox(),E=C.width+2*k,S=C.height+2*k;iv(x,S,E,u.useMaxWidth);var T="".concat(C.x-k," ").concat(C.y-k," ").concat(E," ").concat(S);for(o.debug("viewBox ".concat(T)),x.attr("viewBox",T),L_.indexNodes("subGraph"+v),v=0;v<p.length;v++)if("undefined"!==(c=p[v]).title){var A=s.querySelectorAll("#"+e+' [id="'+L_.lookUpDomId(c.id)+'"] rect'),M=s.querySelectorAll("#"+e+' [id="'+L_.lookUpDomId(c.id)+'"]'),N=A[0].x.baseVal.value,D=A[0].y.baseVal.value,O=A[0].width.baseVal.value,L=Il(M[0]).select(".label");L.attr("transform","translate(".concat(N+O/2,", ").concat(D+14,")")),L.attr("id",e+"Text");for(var B=0;B<c.classes.length;B++)M[0].classList.add(c.classes[B])}iy(u.htmlLabels);for(var I=s.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),R=0;R<I.length;R++){var F=I[R],P=F.getBBox(),z=s.createElementNS("http://www.w3.org/2000/svg","rect");z.setAttribute("rx",0),z.setAttribute("ry",0),z.setAttribute("width",P.width),z.setAttribute("height",P.height),F.insertBefore(z,F.firstChild)}Object.keys(m).forEach((function(t){var n=m[t];if(n.link){var r=a.select("#"+e+' [id="'+L_.lookUpDomId(t)+'"]');if(r){var o=s.createElementNS("http://www.w3.org/2000/svg","a");o.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),o.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),o.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===i?o.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&o.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var l=r.insert((function(){return o}),":first-child"),c=r.select(".label-container");c&&l.append((function(){return c.node()}));var u=r.select(".label");u&&l.append((function(){return u.node()}))}}}))};var nx={};const rx=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)nx[e[n]]=t[e[n]]},ix=function(t,e){o.info("Drawing flowchart"),L_.clear(),L_.setGen("gen-2");var n=I_().parser;n.yy=L_,n.parse(t);var r=L_.getDirection();void 0===r&&(r="TD");var i,a=mv().flowchart,s=a.nodeSpacing||50,l=a.rankSpacing||50,c=mv().securityLevel;"sandbox"===c&&(i=Il("#i"+e));var u,h=Il("sandbox"===c?i.nodes()[0].contentDocument.body:"body"),f="sandbox"===c?i.nodes()[0].contentDocument:document,d=new(qv().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:s,ranksep:l,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),p=L_.getSubGraphs();o.info("Subgraphs - ",p);for(var g=p.length-1;g>=0;g--)u=p[g],o.info("Subgraph - ",u),L_.addVertex(u.id,u.title,"group",void 0,u.classes,u.dir);var m=L_.getVertices(),y=L_.getEdges();o.info(y);var v=0;for(v=p.length-1;v>=0;v--){u=p[v],Rl("cluster").append("text");for(var b=0;b<u.nodes.length;b++)o.info("Setting up subgraphs",u.nodes[b],u.id),d.setParent(u.nodes[b],u.id)}(function(t,e,n,r,i){var a=r.select('[id="'.concat(n,'"]'));Object.keys(t).forEach((function(n){var r=t[n],s="default";r.classes.length>0&&(s=r.classes.join(" "));var l,c=Vy(r.styles),u=void 0!==r.text?r.text:r.id;if(iy(mv().flowchart.htmlLabels)){var h={label:u.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")}))};(l=z_()(a,h).node()).parentNode.removeChild(l)}else{var f=i.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("style",c.labelStyle.replace("color:","fill:"));for(var d=u.split(ay.lineBreakRegex),p=0;p<d.length;p++){var g=i.createElementNS("http://www.w3.org/2000/svg","tspan");g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),g.setAttribute("dy","1em"),g.setAttribute("x","1"),g.textContent=d[p],f.appendChild(g)}l=f}var m=0,y="";switch(r.type){case"round":m=5,y="rect";break;case"square":case"group":default:y="rect";break;case"diamond":y="question";break;case"hexagon":y="hexagon";break;case"odd":case"odd_right":y="rect_left_inv_arrow";break;case"lean_right":y="lean_right";break;case"lean_left":y="lean_left";break;case"trapezoid":y="trapezoid";break;case"inv_trapezoid":y="inv_trapezoid";break;case"circle":y="circle";break;case"ellipse":y="ellipse";break;case"stadium":y="stadium";break;case"subroutine":y="subroutine";break;case"cylinder":y="cylinder"}e.setNode(r.id,{labelStyle:c.labelStyle,shape:y,labelText:u,rx:m,ry:m,class:s,style:c.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:L_.getTooltip(r.id)||"",domId:L_.lookUpDomId(r.id),haveCallback:r.haveCallback,width:"group"===r.type?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:mv().flowchart.padding}),o.info("setNode",{labelStyle:c.labelStyle,shape:y,labelText:u,rx:m,ry:m,class:s,style:c.style,id:r.id,domId:L_.lookUpDomId(r.id),width:"group"===r.type?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:mv().flowchart.padding})}))})(m,d,e,h,f),function(t,e){o.info("abc78 edges = ",t);var n,r,i=0,a={};if(void 0!==t.defaultStyle){var s=Vy(t.defaultStyle);n=s.style,r=s.labelStyle}t.forEach((function(s){i++;var l="L-"+s.start+"-"+s.end;void 0===a[l]?(a[l]=0,o.info("abc78 new entry",l,a[l])):(a[l]++,o.info("abc78 new entry",l,a[l]));var c=l+"-"+a[l];o.info("abc78 new link id to be used is",l,c,a[l]);var u="LS-"+s.start,h="LE-"+s.end,f={style:"",labelStyle:""};switch(f.minlen=s.length||1,"arrow_open"===s.type?f.arrowhead="none":f.arrowhead="normal",f.arrowTypeStart="arrow_open",f.arrowTypeEnd="arrow_open",s.type){case"double_arrow_cross":f.arrowTypeStart="arrow_cross";case"arrow_cross":f.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":f.arrowTypeStart="arrow_point";case"arrow_point":f.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":f.arrowTypeStart="arrow_circle";case"arrow_circle":f.arrowTypeEnd="arrow_circle"}var d="",p="";switch(s.stroke){case"normal":d="fill:none;",void 0!==n&&(d=n),void 0!==r&&(p=r),f.thickness="normal",f.pattern="solid";break;case"dotted":f.thickness="normal",f.pattern="dotted",f.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f.thickness="thick",f.pattern="solid",f.style="stroke-width: 3.5px;fill:none;"}if(void 0!==s.style){var g=Vy(s.style);d=g.style,p=g.labelStyle}f.style=f.style+=d,f.labelStyle=f.labelStyle+=p,void 0!==s.interpolate?f.curve=Wy(s.interpolate,pc):void 0!==t.defaultInterpolate?f.curve=Wy(t.defaultInterpolate,pc):f.curve=Wy(nx.curve,pc),void 0===s.text?void 0!==s.style&&(f.arrowheadStyle="fill: #333"):(f.arrowheadStyle="fill: #333",f.labelpos="c"),f.labelType="text",f.label=s.text.replace(ay.lineBreakRegex,"\n"),void 0===s.style&&(f.style=f.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),f.labelStyle=f.labelStyle.replace("color:","fill:"),f.id=c,f.classes="flowchart-link "+u+" "+h,e.setEdge(s.start,s.end,f,i)}))}(y,d);var _=h.select('[id="'.concat(e,'"]'));_.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var x=h.select("#"+e+" g");$b(x,d,["point","circle","cross"],"flowchart",e);var w=a.diagramPadding,k=_.node().getBBox(),C=k.width+2*w,E=k.height+2*w;if(o.debug("new ViewBox 0 0 ".concat(C," ").concat(E),"translate(".concat(w-d._label.marginx,", ").concat(w-d._label.marginy,")")),iv(_,E,C,a.useMaxWidth),_.attr("viewBox","0 0 ".concat(C," ").concat(E)),_.select("g").attr("transform","translate(".concat(w-d._label.marginx,", ").concat(w-k.y,")")),L_.indexNodes("subGraph"+v),!a.htmlLabels)for(var S=f.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),T=0;T<S.length;T++){var A=S[T],M=A.getBBox(),N=f.createElementNS("http://www.w3.org/2000/svg","rect");N.setAttribute("rx",0),N.setAttribute("ry",0),N.setAttribute("width",M.width),N.setAttribute("height",M.height),A.insertBefore(N,A.firstChild)}Object.keys(m).forEach((function(t){var n=m[t];if(n.link){var r=Il("#"+e+' [id="'+t+'"]');if(r){var i=f.createElementNS("http://www.w3.org/2000/svg","a");i.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),i.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),i.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===c?i.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&i.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var a=r.insert((function(){return i}),":first-child"),o=r.select(".label-container");o&&a.append((function(){return o.node()}));var s=r.select(".label");s&&a.append((function(){return s.node()}))}}}))};function ax(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ox,sx,lx="",cx="",ux="",hx=[],fx=[],dx={},px="",gx=[],mx=[],yx="",vx=["active","done","crit","milestone"],bx=[],_x=!1,xx=!1,wx=0,kx=function(t,e,n,r){return!(r.indexOf(t.format(e.trim()))>=0)&&(t.isoWeekday()>=6&&n.indexOf("weekends")>=0||n.indexOf(t.format("dddd").toLowerCase())>=0||n.indexOf(t.format(e.trim()))>=0)},Cx=function(t,e,n,r){if(n.length&&!t.manualEndTime){var a=i()(t.startTime,e,!0);a.add(1,"d");var o=i()(t.endTime,e,!0),s=Ex(a,o,e,n,r);t.endTime=o.toDate(),t.renderEndTime=s}},Ex=function(t,e,n,r,i){for(var a=!1,o=null;t<=e;)a||(o=e.toDate()),(a=kx(t,n,r,i))&&e.add(1,"d"),t.add(1,"d");return o},Sx=function(t,e,n){n=n.trim();var r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){var a=null;if(r[1].split(" ").forEach((function(t){var e=Lx(t);void 0!==e&&(a?e.endTime>a.endTime&&(a=e):a=e)})),a)return a.endTime;var s=new Date;return s.setHours(0,0,0,0),s}var l=i()(n,e.trim(),!0);return l.isValid()?l.toDate():(o.debug("Invalid date:"+n),o.debug("With date format:"+e.trim()),new Date)},Tx=function(t,e){if(null!==t)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},Ax=function(t,e,n,r){r=r||!1,n=n.trim();var a=i()(n,e.trim(),!0);return a.isValid()?(r&&a.add(1,"d"),a.toDate()):Tx(/^([\d]+)([wdhms])/.exec(n.trim()),i()(t))},Mx=0,Nx=function(t){return void 0===t?"task"+(Mx+=1):t},Dx=[],Ox={},Lx=function(t){var e=Ox[t];return Dx[e]},Bx=function(){for(var t=function(t){var e=Dx[t],n="";switch(Dx[t].raw.startTime.type){case"prevTaskEnd":var r=Lx(e.prevTaskId);e.startTime=r.endTime;break;case"getStartDate":(n=Sx(0,lx,Dx[t].raw.startTime.startData))&&(Dx[t].startTime=n)}return Dx[t].startTime&&(Dx[t].endTime=Ax(Dx[t].startTime,lx,Dx[t].raw.endTime.data,_x),Dx[t].endTime&&(Dx[t].processed=!0,Dx[t].manualEndTime=i()(Dx[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Cx(Dx[t],lx,fx,hx))),Dx[t].processed},e=!0,n=0;n<Dx.length;n++)t(n),e=e&&Dx[n].processed;return e},Ix=function(t,e){t.split(",").forEach((function(t){var n=Lx(t);void 0!==n&&n.classes.push(e)}))},Rx=function(t,e){bx.push((function(){var n=document.querySelector('[id="'.concat(t,'"]'));null!==n&&n.addEventListener("click",(function(){e()}))})),bx.push((function(){var n=document.querySelector('[id="'.concat(t,'-text"]'));null!==n&&n.addEventListener("click",(function(){e()}))}))};const Fx={parseDirective:function(t,e,n){EE.parseDirective(this,t,e,n)},getConfig:function(){return mv().gantt},clear:function(){gx=[],mx=[],yx="",bx=[],px="",Mx=0,ox=void 0,sx=void 0,Dx=[],lx="",cx="",ux="",hx=[],fx=[],_x=!1,xx=!1,wx=0,dx={}},setDateFormat:function(t){lx=t},getDateFormat:function(){return lx},enableInclusiveEndDates:function(){_x=!0},endDatesAreInclusive:function(){return _x},enableTopAxis:function(){xx=!0},topAxisEnabled:function(){return xx},setAxisFormat:function(t){cx=t},getAxisFormat:function(){return cx},setTodayMarker:function(t){ux=t},getTodayMarker:function(){return ux},setTitle:function(t){px=t},getTitle:function(){return px},addSection:function(t){yx=t,gx.push(t)},getSections:function(){return gx},getTasks:function(){for(var t=Bx(),e=0;!t&&e<10;)t=Bx(),e++;return mx=Dx},addTask:function(t,e){var n={section:yx,type:yx,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=function(t,e){var n=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),r={};Px(n,r,vx);for(var i=0;i<n.length;i++)n[i]=n[i].trim();switch(n.length){case 1:r.id=Nx(),r.startTime={type:"prevTaskEnd",id:t},r.endTime={data:n[0]};break;case 2:r.id=Nx(),r.startTime={type:"getStartDate",startData:n[0]},r.endTime={data:n[1]};break;case 3:r.id=Nx(n[0]),r.startTime={type:"getStartDate",startData:n[1]},r.endTime={data:n[2]}}return r}(sx,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=sx,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=wx,wx++;var i=Dx.push(n);sx=n.id,Ox[n.id]=i-1},findTaskById:Lx,addTaskOrg:function(t,e){var n={section:yx,type:yx,description:t,task:t,classes:[]},r=function(t,e){var n=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),r={};Px(n,r,vx);for(var a=0;a<n.length;a++)n[a]=n[a].trim();var o="";switch(n.length){case 1:r.id=Nx(),r.startTime=t.endTime,o=n[0];break;case 2:r.id=Nx(),r.startTime=Sx(0,lx,n[0]),o=n[1];break;case 3:r.id=Nx(n[0]),r.startTime=Sx(0,lx,n[1]),o=n[2]}return o&&(r.endTime=Ax(r.startTime,lx,o,_x),r.manualEndTime=i()(o,"YYYY-MM-DD",!0).isValid(),Cx(r,lx,fx,hx)),r}(ox,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,ox=n,mx.push(n)},setIncludes:function(t){hx=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return hx},setExcludes:function(t){fx=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return fx},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){if("loose"===mv().securityLevel&&void 0!==e){var r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var i=0;i<r.length;i++){var a=r[i].trim();'"'===a.charAt(0)&&'"'===a.charAt(a.length-1)&&(a=a.substr(1,a.length-2)),r[i]=a}}0===r.length&&r.push(t),void 0!==Lx(t)&&Rx(t,(function(){var t;sv.runFunc.apply(sv,[e].concat(function(t){if(Array.isArray(t))return ax(t)}(t=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ax(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ax(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}))}}(t,e,n)})),Ix(t,"clickable")},setLink:function(t,e){var n=e;"loose"!==mv().securityLevel&&(n=(0,Xm.sanitizeUrl)(e)),t.split(",").forEach((function(t){void 0!==Lx(t)&&(Rx(t,(function(){window.open(n,"_self")})),dx[t]=n)})),Ix(t,"clickable")},getLinks:function(){return dx},bindFunctions:function(t){bx.forEach((function(e){e(t)}))},durationToDate:Tx,isInvalidDate:kx};function Px(t,e,n){for(var r=!0;r;)r=!1,n.forEach((function(n){var i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)}))}var zx,qx=n(9959),jx=n.n(qx);qx.parser.yy=Fx;const Hx=function(t,e){var n=mv().gantt;qx.parser.yy.clear(),qx.parser.parse(t);var r,a=mv().securityLevel;"sandbox"===a&&(r=Il("#i"+e));var o=Il("sandbox"===a?r.nodes()[0].contentDocument.body:"body"),s="sandbox"===a?r.nodes()[0].contentDocument:document,l=s.getElementById(e);void 0===(zx=l.parentElement.offsetWidth)&&(zx=1200),void 0!==n.useWidth&&(zx=n.useWidth);var h=qx.parser.yy.getTasks(),f=h.length*(n.barHeight+n.barGap)+2*n.topPadding;l.setAttribute("viewBox","0 0 "+zx+" "+f);for(var d=o.select('[id="'.concat(e,'"]')),p=function(){return Hi.apply(bs(Ya,Va,Ra,Ba,Na,Aa,Sa,Ca,wa,Qa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([u(h,(function(t){return t.startTime})),c(h,(function(t){return t.endTime}))]).rangeRound([0,zx-n.leftPadding-n.rightPadding]),g=[],m=0;m<h.length;m++)g.push(h[m].type);var y=g;g=function(t){for(var e={},n=[],r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}(g),h.sort((function(t,e){var n=t.startTime,r=e.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i})),function(t,r,a){var o=n.barHeight,l=o+n.barGap,c=n.topPadding,u=n.leftPadding;ia().domain([0,g.length]).range(["#00B9FA","#F95002"]).interpolate(Lr),function(t,e,r,a,o,s,l,c){var u=s.reduce((function(t,e){var n=e.startTime;return t?Math.min(t,n):n}),0),h=s.reduce((function(t,e){var n=e.endTime;return t?Math.max(t,n):n}),0),f=qx.parser.yy.getDateFormat();if(u&&h){for(var g=[],m=null,y=i()(u);y.valueOf()<=h;)qx.parser.yy.isInvalidDate(y,f,l,c)?m?m.end=y.clone():m={start:y.clone(),end:y.clone()}:m&&(g.push(m),m=null),y.add(1,"d");d.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return p(t.start)+r})).attr("y",n.gridLineStartPadding).attr("width",(function(t){var e=t.end.clone().add(1,"day");return p(e)-p(t.start)})).attr("height",o-e-n.gridLineStartPadding).attr("transform-origin",(function(e,n){return(p(e.start)+r+.5*(p(e.end)-p(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"})).attr("class","exclude-range")}}(l,c,u,0,a,t,qx.parser.yy.getExcludes(),qx.parser.yy.getIncludes()),function(t,e,r,i){var a,o=(a=p,v(3,a)).tickSize(-i+e+n.gridLineStartPadding).tickFormat(lu(qx.parser.yy.getAxisFormat()||n.axisFormat||"%Y-%m-%d"));if(d.append("g").attr("class","grid").attr("transform","translate("+t+", "+(i-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),Fx.topAxisEnabled()||n.topAxis){var s=function(t){return v(1,t)}(p).tickSize(-i+e+n.gridLineStartPadding).tickFormat(lu(qx.parser.yy.getAxisFormat()||n.axisFormat||"%Y-%m-%d"));d.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(u,c,0,a),function(t,r,i,a,o,s,l){d.append("g").selectAll("rect").data(t).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*r+i-2})).attr("width",(function(){return l-n.rightPadding/2})).attr("height",r).attr("class",(function(t){for(var e=0;e<g.length;e++)if(t.type===g[e])return"section section"+e%n.numberSectionStyles;return"section section0"}));var c=d.append("g").selectAll("rect").data(t).enter(),u=Fx.getLinks();if(c.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?p(t.startTime)+a+.5*(p(t.endTime)-p(t.startTime))-.5*o:p(t.startTime)+a})).attr("y",(function(t,e){return t.order*r+i})).attr("width",(function(t){return t.milestone?o:p(t.renderEndTime||t.endTime)-p(t.startTime)})).attr("height",o).attr("transform-origin",(function(t,e){return e=t.order,(p(t.startTime)+a+.5*(p(t.endTime)-p(t.startTime))).toString()+"px "+(e*r+i+.5*o).toString()+"px"})).attr("class",(function(t){var e="";t.classes.length>0&&(e=t.classes.join(" "));for(var r=0,i=0;i<g.length;i++)t.type===g[i]&&(r=i%n.numberSectionStyles);var a="";return t.active?t.crit?a+=" activeCrit":a=" active":t.done?a=t.crit?" doneCrit":" done":t.crit&&(a+=" crit"),0===a.length&&(a=" task"),t.milestone&&(a=" milestone "+a),"task"+(a+=r)+" "+e})),c.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",n.fontSize).attr("x",(function(t){var e=p(t.startTime),r=p(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(p(t.endTime)-p(t.startTime))-.5*o),t.milestone&&(r=e+o);var i=this.getBBox().width;return i>r-e?r+i+1.5*n.leftPadding>l?e+a-5:r+a+5:(r-e)/2+e+a})).attr("y",(function(t,e){return t.order*r+n.barHeight/2+(n.fontSize/2-2)+i})).attr("text-height",o).attr("class",(function(t){var e=p(t.startTime),r=p(t.endTime);t.milestone&&(r=e+o);var i=this.getBBox().width,a="";t.classes.length>0&&(a=t.classes.join(" "));for(var s=0,c=0;c<g.length;c++)t.type===g[c]&&(s=c%n.numberSectionStyles);var u="";return t.active&&(u=t.crit?"activeCritText"+s:"activeText"+s),t.done?u=t.crit?u+" doneCritText"+s:u+" doneText"+s:t.crit&&(u=u+" critText"+s),t.milestone&&(u+=" milestoneText"),i>r-e?r+i+1.5*n.leftPadding>l?a+" taskTextOutsideLeft taskTextOutside"+s+" "+u:a+" taskTextOutsideRight taskTextOutside"+s+" "+u+" width-"+i:a+" taskText taskText"+s+" "+u+" width-"+i})),"sandbox"===mv().securityLevel){var h;h=Il("#i"+e),Il(h.nodes()[0].contentDocument.body);var f=h.nodes()[0].contentDocument;c.filter((function(t){return void 0!==u[t.id]})).each((function(t){var e=f.querySelector("#"+t.id),n=f.querySelector("#"+t.id+"-text"),r=e.parentNode,i=f.createElement("a");i.setAttribute("xlink:href",u[t.id]),i.setAttribute("target","_top"),r.appendChild(i),i.appendChild(e),i.appendChild(n)}))}}(t,l,c,u,o,0,r),function(t,e){for(var r=[],i=0,a=0;a<g.length;a++)r[a]=[g[a],(o=g[a],l=y,function(t){for(var e=t.length,n={};e;)n[t[--e]]=(n[t[e]]||0)+1;return n}(l)[o]||0)];var o,l;d.append("g").selectAll("text").data(r).enter().append((function(t){var e=t[0].split(ay.lineBreakRegex),n=-(e.length-1)/2,r=s.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(var i=0;i<e.length;i++){var a=s.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),i>0&&a.setAttribute("dy","1em"),a.textContent=e[i],r.appendChild(a)}return r})).attr("x",10).attr("y",(function(n,a){if(!(a>0))return n[1]*t/2+e;for(var o=0;o<a;o++)return i+=r[a-1][1],n[1]*t/2+i*t+e})).attr("font-size",n.sectionFontSize).attr("font-size",n.sectionFontSize).attr("class",(function(t){for(var e=0;e<g.length;e++)if(t[0]===g[e])return"sectionTitle sectionTitle"+e%n.numberSectionStyles;return"sectionTitle"}))}(l,c),function(t,e,r,i){var a=Fx.getTodayMarker();if("off"!==a){var o=d.append("g").attr("class","today"),s=new Date,l=o.append("line");l.attr("x1",p(s)+t).attr("x2",p(s)+t).attr("y1",n.titleTopMargin).attr("y2",i-n.titleTopMargin).attr("class","today"),""!==a&&l.attr("style",a.replace(/,/g,";"))}}(u,0,0,a)}(h,zx,f),iv(d,f,zx,n.useMaxWidth),d.append("text").text(qx.parser.yy.getTitle()).attr("x",zx/2).attr("y",n.titleTopMargin).attr("class","titleText")};var Ux={},$x=null,Wx={master:$x},Yx="master",Vx="LR",Gx=0;function Xx(){return Zy({length:7})}function Zx(t,e){o.debug("Entering isfastforwardable:",t.id,e.id);for(var n=0;t.seq<=e.seq&&t!==e&&n<1e3&&(n++,null!=e.parent);){if(Array.isArray(e.parent))return o.debug("In merge commit:",e.parent),Zx(t,Ux[e.parent[0]])||Zx(t,Ux[e.parent[1]]);e=Ux[e.parent]}return o.debug(t.id,e.id),t.id===e.id}var Kx={};function Qx(t,e,n){var r=t.indexOf(e);-1===r?t.push(n):t.splice(r,1,n)}function Jx(t){var e=t.reduce((function(t,e){return t.seq>e.seq?t:e}),t[0]),n="";t.forEach((function(t){n+=t===e?"\t*":"\t|"}));var r,i,a,s=[n,e.id,e.seq];for(var l in Wx)Wx[l]===e.id&&s.push(l);if(o.debug(s.join(" ")),Array.isArray(e.parent)){var c=Ux[e.parent[0]];Qx(t,e,c),t.push(Ux[e.parent[1]])}else{if(null==e.parent)return;var u=Ux[e.parent];Qx(t,e,u)}r=t,i=function(t){return t.id},a=Object.create(null),Jx(t=r.reduce((function(t,e){var n=i(e);return a[n]||(a[n]=!0,t.push(e)),t}),[]))}var tw=function(){var t=Object.keys(Ux).map((function(t){return Ux[t]}));return t.forEach((function(t){o.debug(t.id)})),t.sort((function(t,e){return e.seq-t.seq})),t};const ew={setDirection:function(t){Vx=t},setOptions:function(t){o.debug("options str",t),t=(t=t&&t.trim())||"{}";try{Kx=JSON.parse(t)}catch(e){o.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return Kx},commit:function(t){var e={id:Xx(),message:t,seq:Gx++,parent:null==$x?null:$x.id};$x=e,Ux[e.id]=e,Wx[Yx]=e.id,o.debug("in pushCommit "+e.id)},branch:function(t){Wx[t]=null!=$x?$x.id:null,o.debug("in createBranch")},merge:function(t){var e=Ux[Wx[Yx]],n=Ux[Wx[t]];if(function(t,e){return t.seq>e.seq&&Zx(e,t)}(e,n))o.debug("Already merged");else{if(Zx(e,n))Wx[Yx]=Wx[t],$x=Ux[Wx[Yx]];else{var r={id:Xx(),message:"merged branch "+t+" into "+Yx,seq:Gx++,parent:[null==$x?null:$x.id,Wx[t]]};$x=r,Ux[r.id]=r,Wx[Yx]=r.id}o.debug(Wx),o.debug("in mergeBranch")}},checkout:function(t){o.debug("in checkout");var e=Wx[Yx=t];$x=Ux[e]},reset:function(t){o.debug("in reset",t);var e=t.split(":")[0],n=parseInt(t.split(":")[1]),r="HEAD"===e?$x:Ux[Wx[e]];for(o.debug(r,n);n>0;)if(n--,!(r=Ux[r.parent])){var i="Critical error - unique parent commit not found during reset";throw o.error(i),i}$x=r,Wx[Yx]=r.id},prettyPrint:function(){o.debug(Ux),Jx([tw()[0]])},clear:function(){Ux={},Wx={master:$x=null},Yx="master",Gx=0},getBranchesAsObjArray:function(){var t=[];for(var e in Wx)t.push({name:e,commit:Ux[Wx[e]]});return t},getBranches:function(){return Wx},getCommits:function(){return Ux},getCommitsArray:tw,getCurrentBranch:function(){return Yx},getDirection:function(){return Vx},getHead:function(){return $x}};var nw,rw=n(2553),iw=n.n(rw),aw={},ow={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},sw={};function lw(t,e,n,r){var i=Wy(r,kc),a=ow.branchColors[n%ow.branchColors.length],o=yc().x((function(t){return Math.round(t.x)})).y((function(t){return Math.round(t.y)})).curve(i);t.append("svg:path").attr("d",o(e)).style("stroke",a).style("stroke-width",ow.lineStrokeWidth).style("fill","none")}function cw(t,e){e=e||t.node().getBBox();var n=t.node().getCTM();return{left:n.e+e.x*n.a,top:n.f+e.y*n.d,width:e.width,height:e.height}}function uw(t,e,n,r,i){o.debug("svgDrawLineForCommits: ",e,n);var a=cw(t.select("#node-"+e+" circle")),s=cw(t.select("#node-"+n+" circle"));switch(r){case"LR":if(a.left-s.left>ow.nodeSpacing){var l={x:a.left-ow.nodeSpacing,y:s.top+s.height/2};lw(t,[l,{x:s.left+s.width,y:s.top+s.height/2}],i,"linear"),lw(t,[{x:a.left,y:a.top+a.height/2},{x:a.left-ow.nodeSpacing/2,y:a.top+a.height/2},{x:a.left-ow.nodeSpacing/2,y:l.y},l],i)}else lw(t,[{x:a.left,y:a.top+a.height/2},{x:a.left-ow.nodeSpacing/2,y:a.top+a.height/2},{x:a.left-ow.nodeSpacing/2,y:s.top+s.height/2},{x:s.left+s.width,y:s.top+s.height/2}],i);break;case"BT":if(s.top-a.top>ow.nodeSpacing){var c={x:s.left+s.width/2,y:a.top+a.height+ow.nodeSpacing};lw(t,[c,{x:s.left+s.width/2,y:s.top}],i,"linear"),lw(t,[{x:a.left+a.width/2,y:a.top+a.height},{x:a.left+a.width/2,y:a.top+a.height+ow.nodeSpacing/2},{x:s.left+s.width/2,y:c.y-ow.nodeSpacing/2},c],i)}else lw(t,[{x:a.left+a.width/2,y:a.top+a.height},{x:a.left+a.width/2,y:a.top+ow.nodeSpacing/2},{x:s.left+s.width/2,y:s.top-ow.nodeSpacing/2},{x:s.left+s.width/2,y:s.top}],i)}}function hw(t,e){return t.select(e).node().cloneNode(!0)}function fw(t,e,n,r){var i,a=Object.keys(aw).length;if("string"==typeof e){var s=0;do{if(s++,i=aw[e],o.debug("in renderCommitHistory",i.id,i.seq),t.select("#node-"+e).size()>0)return;t.append((function(){return hw(t,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+i.id})).attr("transform",(function(){switch(r){case"LR":return"translate("+(i.seq*ow.nodeSpacing+ow.leftMargin)+", "+nw*ow.branchOffset+")";case"BT":return"translate("+(nw*ow.branchOffset+ow.leftMargin)+", "+(a-i.seq)*ow.nodeSpacing+")"}})).attr("fill",ow.nodeFillColor).attr("stroke",ow.nodeStrokeColor).attr("stroke-width",ow.nodeStrokeWidth);var l=void 0;for(var c in n)if(n[c].commit===i){l=n[c];break}l&&(o.debug("found branch ",l.name),t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","branch-label").text(l.name+", ")),t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","commit-id").text(i.id),""!==i.message&&"BT"===r&&t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+i.message),e=i.parent}while(e&&aw[e]&&s<1e3)}Array.isArray(e)&&(o.debug("found merge commmit",e),fw(t,e[0],n,r),nw++,fw(t,e[1],n,r),nw--)}function dw(t,e,n,r){r=r||0;for(var i=0;e.seq>0&&!e.lineDrawn&&i<1e3;)i++,"string"==typeof e.parent?(uw(t,e.id,e.parent,n,r),e.lineDrawn=!0,e=aw[e.parent]):Array.isArray(e.parent)&&(uw(t,e.id,e.parent[0],n,r),uw(t,e.id,e.parent[1],n,r+1),dw(t,aw[e.parent[1]],n,r+1),e.lineDrawn=!0,e=aw[e.parent[0]])}const pw=function(t){sw=t};var gw="",mw=!1;const yw={setMessage:function(t){o.debug("Setting message to: "+t),gw=t},getMessage:function(){return gw},setInfo:function(t){mw=t},getInfo:function(){return mw}};var vw=n(6765),bw=n.n(vw),_w={};const xw=function(t){Object.keys(t).forEach((function(e){_w[e]=t[e]}))};var ww=n(7062),kw=n.n(ww),Cw={},Ew="",Sw=!1;const Tw={parseDirective:function(t,e,n){EE.parseDirective(this,t,e,n)},getConfig:function(){return mv().pie},addSection:function(t,e){void 0===Cw[t]&&(Cw[t]=e,o.debug("Added new section :",t))},getSections:function(){return Cw},cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){Cw={},Ew="",Sw=!1},setTitle:function(t){Ew=t},getTitle:function(){return Ew},setShowData:function(t){Sw=t},getShowData:function(){return Sw}};var Aw,Mw=mv();const Nw=function(t,e){try{Mw=mv();var n=kw().parser;n.yy=Tw,o.debug("Rendering info diagram\n"+t);var r,i=mv().securityLevel;"sandbox"===i&&(r=Il("#i"+e));var a=Il("sandbox"===i?r.nodes()[0].contentDocument.body:"body"),s="sandbox"===i?r.nodes()[0].contentDocument:document;n.yy.clear(),n.parse(t),o.debug("Parsed info diagram");var l=s.getElementById(e);void 0===(Aw=l.parentElement.offsetWidth)&&(Aw=1200),void 0!==Mw.useWidth&&(Aw=Mw.useWidth),void 0!==Mw.pie.useWidth&&(Aw=Mw.pie.useWidth);var c=a.select("#"+e);iv(c,450,Aw,Mw.pie.useMaxWidth),l.setAttribute("viewBox","0 0 "+Aw+" 450");var u=Math.min(Aw,450)/2-40,h=c.append("g").attr("transform","translate("+Aw/2+",225)"),f=Tw.getSections(),d=0;Object.keys(f).forEach((function(t){d+=f[t]}));var p=Mw.themeVariables,g=[p.pie1,p.pie2,p.pie3,p.pie4,p.pie5,p.pie6,p.pie7,p.pie8,p.pie9,p.pie10,p.pie11,p.pie12],m=ca().range(g),y=function(){var t=bc,e=vc,n=null,r=$l(0),i=$l(ec),a=$l(0);function o(o){var s,l,c,u,h,f=(o=fc(o)).length,d=0,p=new Array(f),g=new Array(f),m=+r.apply(this,arguments),y=Math.min(ec,Math.max(-ec,i.apply(this,arguments)-m)),v=Math.min(Math.abs(y)/f,a.apply(this,arguments)),b=v*(y<0?-1:1);for(s=0;s<f;++s)(h=g[p[s]=s]=+t(o[s],s,o))>0&&(d+=h);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),s=0,c=d?(y-f*b)/d:0;s<f;++s,m=u)l=p[s],u=m+((h=g[l])>0?h*c:0)+b,g[l]={data:o[l],index:s,value:h,startAngle:m,endAngle:u,padAngle:v};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:$l(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:$l(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:$l(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:$l(+t),o):a},o}().value((function(t){return t[1]})),v=y(Object.entries(f)),b=hc().innerRadius(0).outerRadius(u);h.selectAll("mySlices").data(v).enter().append("path").attr("d",b).attr("fill",(function(t){return m(t.data[0])})).attr("class","pieCircle"),h.selectAll("mySlices").data(v).enter().append("text").text((function(t){return(t.data[1]/d*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+b.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice"),h.append("text").text(n.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var _=h.selectAll(".legend").data(m.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*m.domain().length/2)+")"}));_.append("rect").attr("width",18).attr("height",18).style("fill",m).style("stroke",m),_.data(v).append("text").attr("x",22).attr("y",14).text((function(t){return n.yy.getShowData()||Mw.showData||Mw.pie.showData?t.data[0]+" ["+t.data[1]+"]":t.data[0]}))}catch(x){o.error("Error while rendering info diagram"),o.error(x)}};var Dw=n(3176),Ow=n.n(Dw),Lw=[],Bw={},Iw={},Rw={},Fw={};const Pw={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,n){EE.parseDirective(this,t,e,n)},getConfig:function(){return mv().req},addRequirement:function(t,e){return void 0===Iw[t]&&(Iw[t]={name:t,type:e,id:Bw.id,text:Bw.text,risk:Bw.risk,verifyMethod:Bw.verifyMethod}),Bw={},Iw[t]},getRequirements:function(){return Iw},setNewReqId:function(t){void 0!==Bw&&(Bw.id=t)},setNewReqText:function(t){void 0!==Bw&&(Bw.text=t)},setNewReqRisk:function(t){void 0!==Bw&&(Bw.risk=t)},setNewReqVerifyMethod:function(t){void 0!==Bw&&(Bw.verifyMethod=t)},addElement:function(t){return void 0===Fw[t]&&(Fw[t]={name:t,type:Rw.type,docRef:Rw.docRef},o.info("Added new requirement: ",t)),Rw={},Fw[t]},getElements:function(){return Fw},setNewElementType:function(t){void 0!==Rw&&(Rw.type=t)},setNewElementDocRef:function(t){void 0!==Rw&&(Rw.docRef=t)},addRelationship:function(t,e,n){Lw.push({type:t,src:e,dst:n})},getRelationships:function(){return Lw},clear:function(){Lw=[],Bw={},Iw={},Rw={},Fw={}}};var zw={CONTAINS:"contains",ARROW:"arrow"};const qw=zw;var jw={},Hw=0,Uw=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",jw.rect_min_width+"px").attr("height",jw.rect_min_height+"px")},$w=function(t,e,n){var r=jw.rect_min_width/2,i=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",r).attr("y",jw.rect_padding).attr("dominant-baseline","hanging"),a=0;n.forEach((function(t){0==a?i.append("tspan").attr("text-anchor","middle").attr("x",jw.rect_min_width/2).attr("dy",0).text(t):i.append("tspan").attr("text-anchor","middle").attr("x",jw.rect_min_width/2).attr("dy",.75*jw.line_height).text(t),a++}));var o=1.5*jw.rect_padding+a*jw.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",jw.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:i,y:o}},Ww=function(t,e,n,r){var i=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",jw.rect_padding).attr("y",r).attr("dominant-baseline","hanging"),a=0,o=[];return n.forEach((function(t){for(var e=t.length;e>30&&a<3;){var n=t.substring(0,30);e=(t=t.substring(30,t.length)).length,o[o.length]=n,a++}if(3==a){var r=o[o.length-1];o[o.length-1]=r.substring(0,r.length-4)+"..."}else o[o.length]=t;a=0})),o.forEach((function(t){i.append("tspan").attr("x",jw.rect_padding).attr("dy",jw.line_height).text(t)})),i},Yw=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const Vw=function(t){if(void 0!==t)for(var e=Object.keys(t),n=0;n<e.length;n++)jw[e[n]]=t[e[n]]},Gw=function(t,e){Dw.parser.yy=Pw,Dw.parser.yy.clear(),Dw.parser.parse(t);var n,r=mv().securityLevel;"sandbox"===r&&(n=Il("#i"+e));var i=Il("sandbox"===r?n.nodes()[0].contentDocument.body:"body"),a=("sandbox"===r?n.nodes()[0].contentDocument:document,i.select("[id='".concat(e,"']")));!function(t,e){var n=t.append("defs").append("marker").attr("id",zw.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");n.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),n.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),n.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",zw.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d","M0,0\n L".concat(e.line_height,",").concat(e.line_height/2,"\n M").concat(e.line_height,",").concat(e.line_height/2,"\n L0,").concat(e.line_height)).attr("stroke-width",1)}(a,jw);var s=new(qv().Graph)({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:jw.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}})),l=Pw.getRequirements(),c=Pw.getElements(),u=Pw.getRelationships();!function(t,e,n){Object.keys(t).forEach((function(r){var i=t[r];r=Yw(r),o.info("Added new requirement: ",r);var a=n.append("g").attr("id",r),s=Uw(a,"req-"+r),l=$w(a,r+"_title",["<<".concat(i.type,">>"),"".concat(i.name)]);Ww(a,r+"_body",["Id: ".concat(i.id),"Text: ".concat(i.text),"Risk: ".concat(i.risk),"Verification: ".concat(i.verifyMethod)],l.y);var c=s.node().getBBox();e.setNode(r,{width:c.width,height:c.height,shape:"rect",id:r})}))}(l,s,a),function(t,e,n){Object.keys(t).forEach((function(r){var i=t[r],a=Yw(r),o=n.append("g").attr("id",a),s="element-"+a,l=Uw(o,s),c=$w(o,s+"_title",["<<Element>>","".concat(r)]);Ww(o,s+"_body",["Type: ".concat(i.type||"Not Specified"),"Doc Ref: ".concat(i.docRef||"None")],c.y);var u=l.node().getBBox();e.setNode(a,{width:u.width,height:u.height,shape:"rect",id:a})}))}(c,s,a),function(t,e){t.forEach((function(t){var n=Yw(t.src),r=Yw(t.dst);e.setEdge(n,r,{relationship:t})}))}(u,s),Pv().layout(s),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&(t.select("#"+n),t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )"))}))}(a,s),u.forEach((function(t){!function(t,e,n,r){var i=n.edge(Yw(e.src),Yw(e.dst)),a=yc().x((function(t){return t.x})).y((function(t){return t.y})),o=t.insert("path","#"+r).attr("class","er relationshipLine").attr("d",a(i.points)).attr("fill","none");e.type==Pw.Relationships.CONTAINS?o.attr("marker-start","url("+ay.getUrl(jw.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(o.attr("stroke-dasharray","10,7"),o.attr("marker-end","url("+ay.getUrl(jw.arrowMarkerAbsolute)+"#"+qw.ARROW+"_line_ending)")),function(t,e,n,r){var i=e.node().getTotalLength(),a=e.node().getPointAtLength(.5*i),o="rel"+Hw;Hw++;var s=t.append("text").attr("class","req relationshipLabel").attr("id",o).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(r).node().getBBox();t.insert("rect","#"+o).attr("class","req reqLabelBox").attr("x",a.x-s.width/2).attr("y",a.y-s.height/2).attr("width",s.width).attr("height",s.height).attr("fill","white").attr("fill-opacity","85%")}(t,o,0,"<<".concat(e.type,">>"))}(a,t,s,e)}));var h=jw.rect_padding,f=a.node().getBBox(),d=f.width+2*h,p=f.height+2*h;iv(a,p,d,jw.useMaxWidth),a.attr("viewBox","".concat(f.x-h," ").concat(f.y-h," ").concat(d," ").concat(p))};var Xw=n(6876),Zw=n.n(Xw),Kw=void 0,Qw={},Jw=[],tk="",ek=!1,nk=!1,rk=!1,ik=function(t,e,n,r){var i=Qw[t];i&&e===i.name&&null==n||(null!=n&&null!=n.text||(n={text:e,wrap:null,type:r}),null!=r&&null!=n.text||(n={text:e,wrap:null,type:r}),Qw[t]={name:e,description:n.text,wrap:void 0===n.wrap&&lk()||!!n.wrap,prevActor:Kw,links:{},properties:{},actorCnt:null,rectData:null,type:r||"participant"},Kw&&Qw[Kw]&&(Qw[Kw].nextActor=t),Kw=t)},ak=function(t){var e,n=0;for(e=0;e<Jw.length;e++)Jw[e].type===ck.ACTIVE_START&&Jw[e].from.actor===t&&n++,Jw[e].type===ck.ACTIVE_END&&Jw[e].from.actor===t&&n--;return n},ok=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},r=arguments.length>3?arguments[3]:void 0;if(r===ck.ACTIVE_END){var i=ak(t.actor);if(i<1){var a=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw a.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a}}return Jw.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&lk()||!!n.wrap,type:r}),!0},sk=function(t){return Qw[t]},lk=function(){return rk},ck={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},uk=function(t,e,n){n.text,void 0===n.wrap&&lk()||n.wrap;var r=[].concat(t,t);Jw.push({from:r[0],to:r[1],message:n.text,wrap:void 0===n.wrap&&lk()||!!n.wrap,type:ck.NOTE,placement:e})},hk=function(t,e){var n=sk(t);try{var r=ty(e.text,mv());r=(r=r.replace(/&/g,"&")).replace(/=/g,"="),fk(n,JSON.parse(r))}catch(i){o.error("error while parsing actor link text",i)}};function fk(t,e){if(null==t.links)t.links=e;else for(var n in e)t.links[n]=e[n]}var dk=function(t,e){var n=sk(t);try{var r=ty(e.text,mv());pk(n,JSON.parse(r))}catch(i){o.error("error while parsing actor properties text",i)}};function pk(t,e){if(null==t.properties)t.properties=e;else for(var n in e)t.properties[n]=e[n]}var gk=function(t,e){var n=sk(t),r=document.getElementById(e.text);try{var i=r.innerHTML,a=JSON.parse(i);a.properties&&pk(n,a.properties),a.links&&fk(n,a.links)}catch(s){o.error("error while parsing actor details text",s)}},mk=function(t){tk=t.text,ek=void 0===t.wrap&&lk()||!!t.wrap};const yk={addActor:ik,addMessage:function(t,e,n,r){Jw.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&lk()||!!n.wrap,answer:r})},addSignal:ok,addLinks:hk,addDetails:gk,addProperties:dk,autoWrap:lk,setWrap:function(t){rk=t},enableSequenceNumbers:function(){nk=!0},showSequenceNumbers:function(){return nk},getMessages:function(){return Jw},getActors:function(){return Qw},getActor:sk,getActorKeys:function(){return Object.keys(Qw)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getTitle:function(){return tk},parseDirective:function(t,e,n){EE.parseDirective(this,t,e,n)},getConfig:function(){return mv().sequence},getTitleWrapped:function(){return ek},clear:function(){Qw={},Jw=[]},parseMessage:function(t){var e=t.trim(),n={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^[:]?wrap:/)||null===e.match(/^[:]?nowrap:/)&&void 0};return o.debug("parseMessage:",n),n},LINETYPE:ck,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:uk,setTitle:mk,apply:function t(e){if(e instanceof Array)e.forEach((function(e){t(e)}));else switch(e.type){case"addParticipant":ik(e.actor,e.actor,e.description,"participant");break;case"addActor":ik(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":ok(e.actor,void 0,void 0,e.signalType);break;case"addNote":uk(e.actor,e.placement,e.text);break;case"addLinks":hk(e.actor,e.text);break;case"addALink":!function(t,e){var n=sk(t);try{var r={},i=ty(e.text,mv()),a=i.indexOf("@"),s=(i=(i=i.replace(/&/g,"&")).replace(/=/g,"=")).slice(0,a-1).trim(),l=i.slice(a+1).trim();r[s]=l,fk(n,r)}catch(c){o.error("error while parsing actor link text",c)}}(e.actor,e.text);break;case"addProperties":dk(e.actor,e.text);break;case"addDetails":gk(e.actor,e.text);break;case"addMessage":ok(e.from,e.to,e.msg,e.signalType);break;case"loopStart":ok(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":ok(void 0,void 0,void 0,e.signalType);break;case"rectStart":ok(void 0,void 0,e.color,e.signalType);break;case"optStart":ok(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":ok(void 0,void 0,e.altText,e.signalType);break;case"setTitle":mk(e.text);break;case"parStart":case"and":ok(void 0,void 0,e.parText,e.signalType)}}};var vk=[],bk=function(t,e){var n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},_k=function(t,e){var n;n=function(){var n=document.querySelectorAll(t);0!==n.length&&(n[0].addEventListener("mouseover",(function(){kk("actor"+e+"_popup")})),n[0].addEventListener("mouseout",(function(){Ck("actor"+e+"_popup")})))},vk.push(n)},xk=function(t,e,n,r){var i=t.append("image");i.attr("x",e),i.attr("y",n);var a=(0,Xm.sanitizeUrl)(r);i.attr("xlink:href",a)},wk=function(t,e,n,r){var i=t.append("use");i.attr("x",e),i.attr("y",n);var a=(0,Xm.sanitizeUrl)(r);i.attr("xlink:href","#"+a)},kk=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="block")},Ck=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="none")},Ek=function(t,e){var n=0,r=0,i=e.text.split(ay.lineBreakRegex),a=[],o=0,s=function(){return e.y};if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":s=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":s=function(){return Math.round(e.y+(n+r+e.textMargin)/2)};break;case"bottom":case"end":s=function(){return Math.round(e.y+(n+r+2*e.textMargin)-e.textMargin)}}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="text-after-edge",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="text-before-edge",e.alignmentBaseline="middle"}for(var l=0;l<i.length;l++){var c=i[l];void 0!==e.textMargin&&0===e.textMargin&&void 0!==e.fontSize&&(o=l*e.fontSize);var u=t.append("text");if(u.attr("x",e.x),u.attr("y",s()),void 0!==e.anchor&&u.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&u.style("font-family",e.fontFamily),void 0!==e.fontSize&&u.style("font-size",e.fontSize),void 0!==e.fontWeight&&u.style("font-weight",e.fontWeight),void 0!==e.fill&&u.attr("fill",e.fill),void 0!==e.class&&u.attr("class",e.class),void 0!==e.dy?u.attr("dy",e.dy):0!==o&&u.attr("dy",o),e.tspan){var h=u.append("tspan");h.attr("x",e.x),void 0!==e.fill&&h.attr("fill",e.fill),h.text(c)}else u.text(c);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(r+=(u._groups||u)[0][0].getBBox().height,n=r),a.push(u)}return a},Sk=function(t,e){var n=t.append("polygon");return n.attr("points",function(t,e,n,r,i){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+r-7)+" "+(t+n-8.4)+","+(e+r)+" "+t+","+(e+r)}(e.x,e.y,e.width,e.height)),n.attr("class","labelBox"),e.y=e.y+e.height/2,Ek(t,e),n},Tk=-1,Ak=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},Mk=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},Nk=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Dk=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,l){for(var c=l.actorFontSize,u=l.actorFontFamily,h=l.actorFontWeight,f=t.split(ay.lineBreakRegex),d=0;d<f.length;d++){var p=d*c-c*(f.length-1)/2,g=e.append("text").attr("x",n+a/2).attr("y",i).style("text-anchor","middle").style("font-size",c).style("font-weight",h).style("font-family",u);g.append("tspan").attr("x",n+a/2).attr("dy",p).text(f[d]),g.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(g,s)}}function n(t,n,i,a,o,s,l,c){var u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,o,s,l,c),r(h,l)}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}(),Ok=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n).attr("y",i).style("text-anchor","start").text(t),s)}function e(t,e,n,i,a,o,s,l){for(var c=l.actorFontSize,u=l.actorFontFamily,h=l.actorFontWeight,f=t.split(ay.lineBreakRegex),d=0;d<f.length;d++){var p=d*c-c*(f.length-1)/2,g=e.append("text").attr("x",n).attr("y",i).style("text-anchor","start").style("font-size",c).style("font-weight",h).style("font-family",u);g.append("tspan").attr("x",n).attr("dy",p).text(f[d]),g.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(g,s)}}function n(t,n,i,a,o,s,l,c){var u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,0,s,l,c),r(h,l)}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}();const Lk=bk,Bk=function(t,e,n){switch(e.type){case"actor":return function(t,e,n){var r=e.x+e.width/2;0===e.y&&(Tk++,t.append("line").attr("id","actor"+Tk).attr("x1",r).attr("y1",80).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var i=t.append("g");i.attr("class","actor-man");var a={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};a.x=e.x,a.y=e.y,a.fill="#eaeaea",a.width=e.width,a.height=e.height,a.class="actor",a.rx=3,a.ry=3,i.append("line").attr("id","actor-man-torso"+Tk).attr("x1",r).attr("y1",e.y+25).attr("x2",r).attr("y2",e.y+45),i.append("line").attr("id","actor-man-arms"+Tk).attr("x1",r-18).attr("y1",e.y+33).attr("x2",r+18).attr("y2",e.y+33),i.append("line").attr("x1",r-18).attr("y1",e.y+60).attr("x2",r).attr("y2",e.y+45),i.append("line").attr("x1",r).attr("y1",e.y+45).attr("x2",r+16).attr("y2",e.y+60);var o=i.append("circle");o.attr("cx",e.x+e.width/2),o.attr("cy",e.y+10),o.attr("r",15),o.attr("width",e.width),o.attr("height",e.height);var s=i.node().getBBox();return e.height=s.height,Dk(n)(e.description,i,a.x,a.y+35,a.width,a.height,{class:"actor"},n),e.height}(t,e,n);case"participant":return function(t,e,n){var r=e.x+e.width/2,i=t.append("g"),a=i;0===e.y&&(Tk++,a.append("line").attr("id","actor"+Tk).attr("x1",r).attr("y1",5).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),a=i.append("g"),e.actorCnt=Tk,null!=e.links&&(a.attr("id","root-"+Tk),_k("#root-"+Tk,Tk)));var o={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},s="actor";null!=e.properties&&e.properties.class?s=e.properties.class:o.fill="#eaeaea",o.x=e.x,o.y=e.y,o.width=e.width,o.height=e.height,o.class=s,o.rx=3,o.ry=3;var l=bk(a,o);if(e.rectData=o,null!=e.properties&&e.properties.icon){var c=e.properties.icon.trim();"@"===c.charAt(0)?wk(a,o.x+o.width-20,o.y+10,c.substr(1)):xk(a,o.x+o.width-20,o.y+10,c)}Dk(n)(e.description,a,o.x,o.y,o.width,o.height,{class:"actor"},n);var u=e.height;if(l.node){var h=l.node().getBBox();e.height=h.height,u=h.height}return u}(t,e,n)}},Ik=function(t,e,n,r,i){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};var a=e.links,o=e.actorCnt,s=e.rectData,l="none";i&&(l="block !important");var c=t.append("g");c.attr("id","actor"+o+"_popup"),c.attr("class","actorPopupMenu"),c.attr("display",l),_k("#actor"+o+"_popup",o);var u="";void 0!==s.class&&(u=" "+s.class);var h=s.width>n?s.width:n,f=c.append("rect");if(f.attr("class","actorPopupMenuPanel"+u),f.attr("x",s.x),f.attr("y",s.height),f.attr("fill",s.fill),f.attr("stroke",s.stroke),f.attr("width",h),f.attr("height",s.height),f.attr("rx",s.rx),f.attr("ry",s.ry),null!=a){var d=20;for(var p in a){var g=c.append("a"),m=(0,Xm.sanitizeUrl)(a[p]);g.attr("xlink:href",m),g.attr("target","_blank"),Ok(r)(p,g,s.x+10,s.height+d,h,20,{class:"actor"},r),d+=30}}return f.attr("height",d),{height:s.height+d,width:h}},Rk=function(t){return t.append("g")},Fk=function(t,e,n,r,i){var a={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+i%3,a.width=e.stopx-e.startx,a.height=n-e.starty,bk(o,a)},Pk=function(t,e,n,r){var i=r.boxMargin,a=r.boxTextMargin,o=r.labelBoxHeight,s=r.labelBoxWidth,l=r.messageFontFamily,c=r.messageFontSize,u=r.messageFontWeight,h=t.append("g"),f=function(t,e,n,r){return h.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",r).attr("class","loopLine")};f(e.startx,e.starty,e.stopx,e.starty),f(e.stopx,e.starty,e.stopx,e.stopy),f(e.startx,e.stopy,e.stopx,e.stopy),f(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){f(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));var d={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};d.text=n,d.x=e.startx,d.y=e.starty,d.fontFamily=l,d.fontSize=c,d.fontWeight=u,d.anchor="middle",d.valign="middle",d.tspan=!1,d.width=s||50,d.height=o||20,d.textMargin=a,d.class="labelText",Sk(h,d),(d={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=e.title,d.x=e.startx+s/2+(e.stopx-e.startx)/2,d.y=e.starty+i+a,d.anchor="middle",d.valign="middle",d.textMargin=a,d.class="loopText",d.fontFamily=l,d.fontSize=c,d.fontWeight=u,d.wrap=!0;var p=Ek(h,d);return void 0!==e.sectionTitles&&e.sectionTitles.forEach((function(t,n){if(t.message){d.text=t.message,d.x=e.startx+(e.stopx-e.startx)/2,d.y=e.sections[n].y+i+a,d.class="loopText",d.anchor="middle",d.valign="middle",d.tspan=!1,d.fontFamily=l,d.fontSize=c,d.fontWeight=u,d.wrap=e.wrap,p=Ek(h,d);var r=Math.round(p.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));e.sections[n].height+=r-(i+a)}})),e.height=Math.round(e.stopy-e.starty),h},zk=function(t,e){bk(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},qk=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},jk=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},Hk=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},Uk=function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},$k=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},Wk=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},Yk=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},Vk=Mk,Gk=Nk;Xm.sanitizeUrl,Xw.parser.yy=yk;var Xk={},Zk={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((function(t){return t.height||0})))+(0===this.loops.length?0:this.loops.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.messages.length?0:this.messages.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.notes.length?0:this.notes.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,nC(Xw.parser.yy.getConfig())},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i=this,a=0;function o(o){return function(s){a++;var l=i.sequenceItems.length-a+1;i.updateVal(s,"starty",e-l*Xk.boxMargin,Math.min),i.updateVal(s,"stopy",r+l*Xk.boxMargin,Math.max),i.updateVal(Zk.data,"startx",t-l*Xk.boxMargin,Math.min),i.updateVal(Zk.data,"stopx",n+l*Xk.boxMargin,Math.max),"activation"!==o&&(i.updateVal(s,"startx",t-l*Xk.boxMargin,Math.min),i.updateVal(s,"stopx",n+l*Xk.boxMargin,Math.max),i.updateVal(Zk.data,"starty",e-l*Xk.boxMargin,Math.min),i.updateVal(Zk.data,"stopy",r+l*Xk.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(Zk.data,"startx",i,Math.min),this.updateVal(Zk.data,"starty",o,Math.min),this.updateVal(Zk.data,"stopx",a,Math.max),this.updateVal(Zk.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},newActivation:function(t,e,n){var r=n[t.from.actor],i=rC(t.from.actor).length||0,a=r.x+r.width/2+(i-1)*Xk.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+Xk.activationWidth,stopy:void 0,actor:t.from.actor,anchored:Rk(e)})},endActivation:function(t){var e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:Zk.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Kk=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},Qk=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},Jk=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},tC=function(t,e,n,r){for(var i=0,a=0,o=0,s=0;s<n.length;s++){var l=e[n[s]];l.width=l.width||Xk.width,l.height=Math.max(l.height||Xk.height,Xk.height),l.margin=l.margin||Xk.actorMargin,l.x=i+a,l.y=r;var c=Bk(t,l,Xk);o=Math.max(o,c),Zk.insert(l.x,r,l.x+l.width,l.height),i+=l.width,a+=l.margin,Zk.models.addActor(l)}Zk.bumpVerticalPos(o)},eC=function(t,e,n,r){for(var i=0,a=0,o=0;o<n.length;o++){var s=e[n[o]],l=oC(s),c=Ik(t,s,l,Xk,Xk.forceMenus);c.height>i&&(i=c.height),c.width+s.x>a&&(a=c.width+s.x)}return{maxHeight:i,maxWidth:a}},nC=function(t){Ky(Xk,t),t.fontFamily&&(Xk.actorFontFamily=Xk.noteFontFamily=Xk.messageFontFamily=t.fontFamily),t.fontSize&&(Xk.actorFontSize=Xk.noteFontSize=Xk.messageFontSize=t.fontSize),t.fontWeight&&(Xk.actorFontWeight=Xk.noteFontWeight=Xk.messageFontWeight=t.fontWeight)},rC=function(t){return Zk.activations.filter((function(e){return e.actor===t}))},iC=function(t,e){var n=e[t],r=rC(t);return[r.reduce((function(t,e){return Math.min(t,e.startx)}),n.x+n.width/2),r.reduce((function(t,e){return Math.max(t,e.stopx)}),n.x+n.width/2)]};function aC(t,e,n,r,i){Zk.bumpVerticalPos(n);var a=r;if(e.id&&e.message&&t[e.id]){var s=t[e.id].width,l=Kk(Xk);e.message=sv.wrapLabel("[".concat(e.message,"]"),s-2*Xk.wrapPadding,l),e.width=s,e.wrap=!0;var c=sv.calculateTextDimensions(e.message,l),u=Math.max(c.height,Xk.labelBoxHeight);a=r+u,o.debug("".concat(u," - ").concat(e.message))}i(e),Zk.bumpVerticalPos(a)}var oC=function(t){var e=0,n=Jk(Xk);for(var r in t.links){var i=sv.calculateTextDimensions(r,n).width+2*Xk.wrapPadding+2*Xk.boxMargin;e<i&&(e=i)}return e};const sC={bounds:Zk,drawActors:tC,drawActorsPopup:eC,setConf:nC,draw:function(t,e){Xk=mv().sequence;var n,r=mv().securityLevel;"sandbox"===r&&(n=Il("#i"+e));var i=Il("sandbox"===r?n.nodes()[0].contentDocument.body:"body");"sandbox"===r?n.nodes()[0].contentDocument:document,Xw.parser.yy.clear(),Xw.parser.yy.setWrap(Xk.wrap),Xw.parser.parse(t+"\n"),Zk.init(),o.debug("C:".concat(JSON.stringify(Xk,null,2)));var a="sandbox"===r?i.select('[id="'.concat(e,'"]')):Il('[id="'.concat(e,'"]')),s=Xw.parser.yy.getActors(),l=Xw.parser.yy.getActorKeys(),c=Xw.parser.yy.getMessages(),u=Xw.parser.yy.getTitle(),h=function(t,e){var n={};return e.forEach((function(e){if(t[e.to]&&t[e.from]){var r=t[e.to];if(e.placement===Xw.parser.yy.PLACEMENT.LEFTOF&&!r.prevActor)return;if(e.placement===Xw.parser.yy.PLACEMENT.RIGHTOF&&!r.nextActor)return;var i=void 0!==e.placement,a=!i,o=i?Qk(Xk):Kk(Xk),s=e.wrap?sv.wrapLabel(e.message,Xk.width-2*Xk.wrapPadding,o):e.message,l=sv.calculateTextDimensions(s,o).width+2*Xk.wrapPadding;a&&e.from===r.nextActor?n[e.to]=Math.max(n[e.to]||0,l):a&&e.from===r.prevActor?n[e.from]=Math.max(n[e.from]||0,l):a&&e.from===e.to?(n[e.from]=Math.max(n[e.from]||0,l/2),n[e.to]=Math.max(n[e.to]||0,l/2)):e.placement===Xw.parser.yy.PLACEMENT.RIGHTOF?n[e.from]=Math.max(n[e.from]||0,l):e.placement===Xw.parser.yy.PLACEMENT.LEFTOF?n[r.prevActor]=Math.max(n[r.prevActor]||0,l):e.placement===Xw.parser.yy.PLACEMENT.OVER&&(r.prevActor&&(n[r.prevActor]=Math.max(n[r.prevActor]||0,l/2)),r.nextActor&&(n[e.from]=Math.max(n[e.from]||0,l/2)))}})),o.debug("maxMessageWidthPerActor:",n),n}(s,c);Xk.height=function(t,e){var n=0;for(var r in Object.keys(t).forEach((function(e){var r=t[e];r.wrap&&(r.description=sv.wrapLabel(r.description,Xk.width-2*Xk.wrapPadding,Jk(Xk)));var i=sv.calculateTextDimensions(r.description,Jk(Xk));r.width=r.wrap?Xk.width:Math.max(Xk.width,i.width+2*Xk.wrapPadding),r.height=r.wrap?Math.max(i.height,Xk.height):Xk.height,n=Math.max(n,r.height)})),e){var i=t[r];if(i){var a=t[i.nextActor];if(a){var o=e[r]+Xk.actorMargin-i.width/2-a.width/2;i.margin=Math.max(o,Xk.actorMargin)}}}return Math.max(n,Xk.height)}(s,h),Wk(a),$k(a),Yk(a),tC(a,s,l,0);var f=function(t,e){var n,r,i,a={},s=[];return t.forEach((function(t){switch(t.id=sv.random({length:10}),t.type){case Xw.parser.yy.LINETYPE.LOOP_START:case Xw.parser.yy.LINETYPE.ALT_START:case Xw.parser.yy.LINETYPE.OPT_START:case Xw.parser.yy.LINETYPE.PAR_START:s.push({id:t.id,msg:t.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case Xw.parser.yy.LINETYPE.ALT_ELSE:case Xw.parser.yy.LINETYPE.PAR_AND:t.message&&(n=s.pop(),a[n.id]=n,a[t.id]=n,s.push(n));break;case Xw.parser.yy.LINETYPE.LOOP_END:case Xw.parser.yy.LINETYPE.ALT_END:case Xw.parser.yy.LINETYPE.OPT_END:case Xw.parser.yy.LINETYPE.PAR_END:n=s.pop(),a[n.id]=n;break;case Xw.parser.yy.LINETYPE.ACTIVE_START:var l=e[t.from?t.from.actor:t.to.actor],c=rC(t.from?t.from.actor:t.to.actor).length,u=l.x+l.width/2+(c-1)*Xk.activationWidth/2,h={startx:u,stopx:u+Xk.activationWidth,actor:t.from.actor,enabled:!0};Zk.activations.push(h);break;case Xw.parser.yy.LINETYPE.ACTIVE_END:var f=Zk.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);delete Zk.activations.splice(f,1)[0]}void 0!==t.placement?(r=function(t,e){var n=e[t.from].x,r=e[t.to].x,i=t.wrap&&t.message,a=sv.calculateTextDimensions(i?sv.wrapLabel(t.message,Xk.width,Qk(Xk)):t.message,Qk(Xk)),s={width:i?Xk.width:Math.max(Xk.width,a.width+2*Xk.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===Xw.parser.yy.PLACEMENT.RIGHTOF?(s.width=i?Math.max(Xk.width,a.width):Math.max(e[t.from].width/2+e[t.to].width/2,a.width+2*Xk.noteMargin),s.startx=n+(e[t.from].width+Xk.actorMargin)/2):t.placement===Xw.parser.yy.PLACEMENT.LEFTOF?(s.width=i?Math.max(Xk.width,a.width+2*Xk.noteMargin):Math.max(e[t.from].width/2+e[t.to].width/2,a.width+2*Xk.noteMargin),s.startx=n-s.width+(e[t.from].width-Xk.actorMargin)/2):t.to===t.from?(a=sv.calculateTextDimensions(i?sv.wrapLabel(t.message,Math.max(Xk.width,e[t.from].width),Qk(Xk)):t.message,Qk(Xk)),s.width=i?Math.max(Xk.width,e[t.from].width):Math.max(e[t.from].width,Xk.width,a.width+2*Xk.noteMargin),s.startx=n+(e[t.from].width-s.width)/2):(s.width=Math.abs(n+e[t.from].width/2-(r+e[t.to].width/2))+Xk.actorMargin,s.startx=n<r?n+e[t.from].width/2-Xk.actorMargin/2:r+e[t.to].width/2-Xk.actorMargin/2),i&&(s.message=sv.wrapLabel(t.message,s.width-2*Xk.wrapPadding,Qk(Xk))),o.debug("NM:[".concat(s.startx,",").concat(s.stopx,",").concat(s.starty,",").concat(s.stopy,":").concat(s.width,",").concat(s.height,"=").concat(t.message,"]")),s}(t,e),t.noteModel=r,s.forEach((function(t){(n=t).from=Math.min(n.from,r.startx),n.to=Math.max(n.to,r.startx+r.width),n.width=Math.max(n.width,Math.abs(n.from-n.to))-Xk.labelBoxWidth}))):(i=function(t,e){var n=!1;if([Xw.parser.yy.LINETYPE.SOLID_OPEN,Xw.parser.yy.LINETYPE.DOTTED_OPEN,Xw.parser.yy.LINETYPE.SOLID,Xw.parser.yy.LINETYPE.DOTTED,Xw.parser.yy.LINETYPE.SOLID_CROSS,Xw.parser.yy.LINETYPE.DOTTED_CROSS,Xw.parser.yy.LINETYPE.SOLID_POINT,Xw.parser.yy.LINETYPE.DOTTED_POINT].includes(t.type)&&(n=!0),!n)return{};var r=iC(t.from,e),i=iC(t.to,e),a=r[0]<=i[0]?1:0,o=r[0]<i[0]?0:1,s=r.concat(i),l=Math.abs(i[o]-r[a]);t.wrap&&t.message&&(t.message=sv.wrapLabel(t.message,Math.max(l+2*Xk.wrapPadding,Xk.width),Kk(Xk)));var c=sv.calculateTextDimensions(t.message,Kk(Xk));return{width:Math.max(t.wrap?0:c.width+2*Xk.wrapPadding,l+2*Xk.wrapPadding,Xk.width),height:0,startx:r[a],stopx:i[o],starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,s),toBounds:Math.max.apply(null,s)}}(t,e),t.msgModel=i,i.startx&&i.stopx&&s.length>0&&s.forEach((function(r){if(n=r,i.startx===i.stopx){var a=e[t.from],o=e[t.to];n.from=Math.min(a.x-i.width/2,a.x-a.width/2,n.from),n.to=Math.max(o.x+i.width/2,o.x+a.width/2,n.to),n.width=Math.max(n.width,Math.abs(n.to-n.from))-Xk.labelBoxWidth}else n.from=Math.min(i.startx,n.from),n.to=Math.max(i.stopx,n.to),n.width=Math.max(n.width,i.width)-Xk.labelBoxWidth})))})),Zk.activations=[],o.debug("Loop type widths:",a),a}(c,s);qk(a),Uk(a),jk(a),Hk(a);var d=1;c.forEach((function(t){var e,n,r;switch(t.type){case Xw.parser.yy.LINETYPE.NOTE:n=t.noteModel,function(t,e){Zk.bumpVerticalPos(Xk.boxMargin),e.height=Xk.boxMargin,e.starty=Zk.getVerticalPos();var n=Gk();n.x=e.startx,n.y=e.starty,n.width=e.width||Xk.width,n.class="note";var r=t.append("g"),i=Lk(r,n),a=Vk();a.x=e.startx,a.y=e.starty,a.width=n.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=Xk.noteFontFamily,a.fontSize=Xk.noteFontSize,a.fontWeight=Xk.noteFontWeight,a.anchor=Xk.noteAlign,a.textMargin=Xk.noteMargin,a.valign=Xk.noteAlign;var o=Ek(r,a),s=Math.round(o.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));i.attr("height",s+2*Xk.noteMargin),e.height+=s+2*Xk.noteMargin,Zk.bumpVerticalPos(s+2*Xk.noteMargin),e.stopy=e.starty+s+2*Xk.noteMargin,e.stopx=e.startx+n.width,Zk.insert(e.startx,e.starty,e.stopx,e.stopy),Zk.models.addNote(e)}(a,n);break;case Xw.parser.yy.LINETYPE.ACTIVE_START:Zk.newActivation(t,a,s);break;case Xw.parser.yy.LINETYPE.ACTIVE_END:!function(t,e){var n=Zk.endActivation(t);n.starty+18>e&&(n.starty=e-6,e+=12),Fk(a,n,e,Xk,rC(t.from.actor).length),Zk.insert(n.startx,e-10,n.stopx,e)}(t,Zk.getVerticalPos());break;case Xw.parser.yy.LINETYPE.LOOP_START:aC(f,t,Xk.boxMargin,Xk.boxMargin+Xk.boxTextMargin,(function(t){return Zk.newLoop(t)}));break;case Xw.parser.yy.LINETYPE.LOOP_END:e=Zk.endLoop(),Pk(a,e,"loop",Xk),Zk.bumpVerticalPos(e.stopy-Zk.getVerticalPos()),Zk.models.addLoop(e);break;case Xw.parser.yy.LINETYPE.RECT_START:aC(f,t,Xk.boxMargin,Xk.boxMargin,(function(t){return Zk.newLoop(void 0,t.message)}));break;case Xw.parser.yy.LINETYPE.RECT_END:e=Zk.endLoop(),zk(a,e),Zk.models.addLoop(e),Zk.bumpVerticalPos(e.stopy-Zk.getVerticalPos());break;case Xw.parser.yy.LINETYPE.OPT_START:aC(f,t,Xk.boxMargin,Xk.boxMargin+Xk.boxTextMargin,(function(t){return Zk.newLoop(t)}));break;case Xw.parser.yy.LINETYPE.OPT_END:e=Zk.endLoop(),Pk(a,e,"opt",Xk),Zk.bumpVerticalPos(e.stopy-Zk.getVerticalPos()),Zk.models.addLoop(e);break;case Xw.parser.yy.LINETYPE.ALT_START:aC(f,t,Xk.boxMargin,Xk.boxMargin+Xk.boxTextMargin,(function(t){return Zk.newLoop(t)}));break;case Xw.parser.yy.LINETYPE.ALT_ELSE:aC(f,t,Xk.boxMargin+Xk.boxTextMargin,Xk.boxMargin,(function(t){return Zk.addSectionToLoop(t)}));break;case Xw.parser.yy.LINETYPE.ALT_END:e=Zk.endLoop(),Pk(a,e,"alt",Xk),Zk.bumpVerticalPos(e.stopy-Zk.getVerticalPos()),Zk.models.addLoop(e);break;case Xw.parser.yy.LINETYPE.PAR_START:aC(f,t,Xk.boxMargin,Xk.boxMargin+Xk.boxTextMargin,(function(t){return Zk.newLoop(t)}));break;case Xw.parser.yy.LINETYPE.PAR_AND:aC(f,t,Xk.boxMargin+Xk.boxTextMargin,Xk.boxMargin,(function(t){return Zk.addSectionToLoop(t)}));break;case Xw.parser.yy.LINETYPE.PAR_END:e=Zk.endLoop(),Pk(a,e,"par",Xk),Zk.bumpVerticalPos(e.stopy-Zk.getVerticalPos()),Zk.models.addLoop(e);break;default:try{(r=t.msgModel).starty=Zk.getVerticalPos(),r.sequenceIndex=d,function(t,e){Zk.bumpVerticalPos(10);var n=e.startx,r=e.stopx,i=e.starty,a=e.message,o=e.type,s=e.sequenceIndex,l=ay.splitBreaks(a).length,c=sv.calculateTextDimensions(a,Kk(Xk)),u=c.height/l;e.height+=u,Zk.bumpVerticalPos(u);var h=Vk();h.x=n,h.y=i+10,h.width=r-n,h.class="messageText",h.dy="1em",h.text=a,h.fontFamily=Xk.messageFontFamily,h.fontSize=Xk.messageFontSize,h.fontWeight=Xk.messageFontWeight,h.anchor=Xk.messageAlign,h.valign=Xk.messageAlign,h.textMargin=Xk.wrapPadding,h.tspan=!1,Ek(t,h);var f,d,p=c.height-10,g=c.width;if(n===r){d=Zk.getVerticalPos()+p,Xk.rightAngles?f=t.append("path").attr("d","M ".concat(n,",").concat(d," H ").concat(n+Math.max(Xk.width/2,g/2)," V ").concat(d+25," H ").concat(n)):(p+=Xk.boxMargin,d=Zk.getVerticalPos()+p,f=t.append("path").attr("d","M "+n+","+d+" C "+(n+60)+","+(d-10)+" "+(n+60)+","+(d+30)+" "+n+","+(d+20))),p+=30;var m=Math.max(g/2,Xk.width/2);Zk.insert(n-m,Zk.getVerticalPos()-10+p,r+m,Zk.getVerticalPos()+30+p)}else p+=Xk.boxMargin,d=Zk.getVerticalPos()+p,(f=t.append("line")).attr("x1",n),f.attr("y1",d),f.attr("x2",r),f.attr("y2",d),Zk.insert(n,d-10,r,d);o===Xw.parser.yy.LINETYPE.DOTTED||o===Xw.parser.yy.LINETYPE.DOTTED_CROSS||o===Xw.parser.yy.LINETYPE.DOTTED_POINT||o===Xw.parser.yy.LINETYPE.DOTTED_OPEN?(f.style("stroke-dasharray","3, 3"),f.attr("class","messageLine1")):f.attr("class","messageLine0");var y="";Xk.arrowMarkerAbsolute&&(y=(y=(y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),f.attr("stroke-width",2),f.attr("stroke","none"),f.style("fill","none"),o!==Xw.parser.yy.LINETYPE.SOLID&&o!==Xw.parser.yy.LINETYPE.DOTTED||f.attr("marker-end","url("+y+"#arrowhead)"),o!==Xw.parser.yy.LINETYPE.SOLID_POINT&&o!==Xw.parser.yy.LINETYPE.DOTTED_POINT||f.attr("marker-end","url("+y+"#filled-head)"),o!==Xw.parser.yy.LINETYPE.SOLID_CROSS&&o!==Xw.parser.yy.LINETYPE.DOTTED_CROSS||f.attr("marker-end","url("+y+"#crosshead)"),(yk.showSequenceNumbers()||Xk.showSequenceNumbers)&&(f.attr("marker-start","url("+y+"#sequencenumber)"),t.append("text").attr("x",n).attr("y",d+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(s)),Zk.bumpVerticalPos(p),e.height+=p,e.stopy=e.starty+e.height,Zk.insert(e.fromBounds,e.starty,e.toBounds,e.stopy)}(a,r),Zk.models.addMessage(r)}catch(i){o.error("error while drawing message",i)}}[Xw.parser.yy.LINETYPE.SOLID_OPEN,Xw.parser.yy.LINETYPE.DOTTED_OPEN,Xw.parser.yy.LINETYPE.SOLID,Xw.parser.yy.LINETYPE.DOTTED,Xw.parser.yy.LINETYPE.SOLID_CROSS,Xw.parser.yy.LINETYPE.DOTTED_CROSS,Xw.parser.yy.LINETYPE.SOLID_POINT,Xw.parser.yy.LINETYPE.DOTTED_POINT].includes(t.type)&&d++})),Xk.mirrorActors&&(Zk.bumpVerticalPos(2*Xk.boxMargin),tC(a,s,l,Zk.getVerticalPos()),Zk.bumpVerticalPos(Xk.boxMargin),Ak(a,Zk.getVerticalPos()));var p=eC(a,s,l),g=Zk.getBounds().bounds;o.debug("For line height fix Querying: #"+e+" .actor-line"),Rl("#"+e+" .actor-line").attr("y2",g.stopy);var m=g.stopy-g.starty;m<p.maxHeight&&(m=p.maxHeight);var y=m+2*Xk.diagramMarginY;Xk.mirrorActors&&(y=y-Xk.boxMargin+Xk.bottomMarginAdj);var v=g.stopx-g.startx;v<p.maxWidth&&(v=p.maxWidth);var b=v+2*Xk.diagramMarginX;u&&a.append("text").text(u).attr("x",(g.stopx-g.startx)/2-2*Xk.diagramMarginX).attr("y",-25),iv(a,y,b,Xk.useMaxWidth);var _=u?40:0;a.attr("viewBox",g.startx-Xk.diagramMarginX+" -"+(Xk.diagramMarginY+_)+" "+b+" "+(y+_)),o.debug("models:",Zk.models)}};var lC=n(3584),cC=n.n(lC);function uC(t){return uC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uC(t)}var hC=function(t){return JSON.parse(JSON.stringify(t))},fC=[],dC=function t(e,n,r){if("relation"===n.stmt)t(e,n.state1,!0),t(e,n.state2,!1);else if("state"===n.stmt&&"[*]"===n.id&&(n.id=r?e.id+"_start":e.id+"_end",n.start=r),n.doc){var i=[],a=0,o=[];for(a=0;a<n.doc.length;a++)if("divider"===n.doc[a].type){var s=hC(n.doc[a]);s.doc=hC(o),i.push(s),o=[]}else o.push(n.doc[a]);if(i.length>0&&o.length>0){var l={stmt:"state",id:Xy(),type:"divider",doc:hC(o)};i.push(hC(l)),n.doc=i}n.doc.forEach((function(e){return t(n,e,!0)}))}},pC={root:{relations:[],states:{},documents:{}}},gC=pC.root,mC=0,yC=function(t,e,n,r,i){void 0===gC.states[t]?gC.states[t]={id:t,descriptions:[],type:e,doc:n,note:i}:(gC.states[t].doc||(gC.states[t].doc=n),gC.states[t].type||(gC.states[t].type=e)),r&&(o.info("Adding state ",t,r),"string"==typeof r&&_C(t,r.trim()),"object"===uC(r)&&r.forEach((function(e){return _C(t,e.trim())}))),i&&(gC.states[t].note=i,gC.states[t].note.text=ay.sanitizeText(gC.states[t].note.text,mv()))},vC=function(){gC=(pC={root:{relations:[],states:{},documents:{}}}).root,gC=pC.root,mC=0,wC=[]},bC=function(t,e,n){var r=t,i=e,a="default",o="default";"[*]"===t&&(r="start"+ ++mC,a="start"),"[*]"===e&&(i="end"+mC,o="end"),yC(r,a),yC(i,o),gC.relations.push({id1:r,id2:i,title:ay.sanitizeText(n,mv())})},_C=function(t,e){var n=gC.states[t],r=e;":"===r[0]&&(r=r.substr(1).trim()),n.descriptions.push(ay.sanitizeText(r,mv()))},xC=0,wC=[],kC="TB";const CC={parseDirective:function(t,e,n){EE.parseDirective(this,t,e,n)},getConfig:function(){return mv().state},addState:yC,clear:vC,getState:function(t){return gC.states[t]},getStates:function(){return gC.states},getRelations:function(){return gC.relations},getClasses:function(){return wC},getDirection:function(){return kC},addRelation:bC,getDividerId:function(){return"divider-id-"+ ++xC},setDirection:function(t){kC=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){o.info("Documents = ",pC)},getRootDoc:function(){return fC},setRootDoc:function(t){o.info("Setting root doc",t),fC=t},getRootDocV2:function(){return dC({id:"root"},{id:"root",doc:fC},!0),{id:"root",doc:fC}},extract:function(t){var e;e=t.doc?t.doc:t,o.info(e),vC(),o.info("Extract",e),e.forEach((function(t){"state"===t.stmt&&yC(t.id,t.type,t.doc,t.description,t.note),"relation"===t.stmt&&bC(t.state1.id,t.state2.id,t.description)}))},trimColon:function(t){return t&&":"===t[0]?t.substr(1).trim():t.trim()}};var EC={};function SC(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var TC,AC=function(t,e,n){var r,i=mv().state.padding,a=2*mv().state.padding,o=t.node().getBBox(),s=o.width,l=o.x,c=t.append("text").attr("x",0).attr("y",mv().state.titleShift).attr("font-size",mv().state.fontSize).attr("class","state-title").text(e.id),u=c.node().getBBox().width+a,h=Math.max(u,s);h===s&&(h+=a);var f=t.node().getBBox();e.doc,r=l-i,u>s&&(r=(s-h)/2+i),Math.abs(l-f.x)<i&&u>s&&(r=l-(u-s)/2);var d=1-mv().state.textHeight;return t.insert("rect",":first-child").attr("x",r).attr("y",d).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",f.height+mv().state.textHeight+mv().state.titleShift+1).attr("rx","0"),c.attr("x",r+i),u<=s&&c.attr("x",l+(h-a)/2-u/2+i),t.insert("rect",":first-child").attr("x",r).attr("y",mv().state.titleShift-mv().state.textHeight-mv().state.padding).attr("width",h).attr("height",3*mv().state.textHeight).attr("rx",mv().state.radius),t.insert("rect",":first-child").attr("x",r).attr("y",mv().state.titleShift-mv().state.textHeight-mv().state.padding).attr("width",h).attr("height",f.height+3+2*mv().state.textHeight).attr("rx",mv().state.radius),t},MC=function(t,e){e.attr("class","state-note");var n=e.append("rect").attr("x",0).attr("y",mv().state.padding),r=function(t,e,n,r){var i=0,a=r.append("text");a.style("text-anchor","start"),a.attr("class","noteText");var o,s=t.replace(/\r\n/g,"<br/>"),l=(s=s.replace(/\n/g,"<br/>")).split(ay.lineBreakRegex),c=1.25*mv().state.noteMargin,u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return SC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SC(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(l);try{for(u.s();!(o=u.n()).done;){var h=o.value.trim();if(h.length>0){var f=a.append("tspan");f.text(h),0===c&&(c+=f.node().getBBox().height),i+=c,f.attr("x",0+mv().state.noteMargin),f.attr("y",0+i+1.25*mv().state.noteMargin)}}}catch(d){u.e(d)}finally{u.f()}return{textWidth:a.node().getBBox().width,textHeight:i}}(t,0,0,e.append("g")),i=r.textWidth,a=r.textHeight;return n.attr("height",a+2*mv().state.noteMargin),n.attr("width",i+2*mv().state.noteMargin),n},NC=function(t,e){var n=e.id,r={id:n,label:e.id,width:0,height:0},i=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&function(t){t.append("circle").attr("class","start-state").attr("r",mv().state.sizeUnit).attr("cx",mv().state.padding+mv().state.sizeUnit).attr("cy",mv().state.padding+mv().state.sizeUnit)}(i),"end"===e.type&&function(t){t.append("circle").attr("class","end-state-outer").attr("r",mv().state.sizeUnit+mv().state.miniPadding).attr("cx",mv().state.padding+mv().state.sizeUnit+mv().state.miniPadding).attr("cy",mv().state.padding+mv().state.sizeUnit+mv().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",mv().state.sizeUnit).attr("cx",mv().state.padding+mv().state.sizeUnit+2).attr("cy",mv().state.padding+mv().state.sizeUnit+2)}(i),"fork"!==e.type&&"join"!==e.type||function(t,e){var n=mv().state.forkWidth,r=mv().state.forkHeight;if(e.parentId){var i=n;n=r,r=i}t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",mv().state.padding).attr("y",mv().state.padding)}(i,e),"note"===e.type&&MC(e.note.text,i),"divider"===e.type&&function(t){t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",mv().state.textHeight).attr("class","divider").attr("x2",2*mv().state.textHeight).attr("y1",0).attr("y2",0)}(i),"default"===e.type&&0===e.descriptions.length&&function(t,e){var n=t.append("text").attr("x",2*mv().state.padding).attr("y",mv().state.textHeight+2*mv().state.padding).attr("font-size",mv().state.fontSize).attr("class","state-title").text(e.id).node().getBBox();t.insert("rect",":first-child").attr("x",mv().state.padding).attr("y",mv().state.padding).attr("width",n.width+2*mv().state.padding).attr("height",n.height+2*mv().state.padding).attr("rx",mv().state.radius)}(i,e),"default"===e.type&&e.descriptions.length>0&&function(t,e){var n=t.append("text").attr("x",2*mv().state.padding).attr("y",mv().state.textHeight+1.3*mv().state.padding).attr("font-size",mv().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),r=n.height,i=t.append("text").attr("x",mv().state.padding).attr("y",r+.4*mv().state.padding+mv().state.dividerMargin+mv().state.textHeight).attr("class","state-description"),a=!0,o=!0;e.descriptions.forEach((function(t){a||(function(t,e,n){var r=t.append("tspan").attr("x",2*mv().state.padding).text(e);n||r.attr("dy",mv().state.textHeight)}(i,t,o),o=!1),a=!1}));var s=t.append("line").attr("x1",mv().state.padding).attr("y1",mv().state.padding+r+mv().state.dividerMargin/2).attr("y2",mv().state.padding+r+mv().state.dividerMargin/2).attr("class","descr-divider"),l=i.node().getBBox(),c=Math.max(l.width,n.width);s.attr("x2",c+3*mv().state.padding),t.insert("rect",":first-child").attr("x",mv().state.padding).attr("y",mv().state.padding).attr("width",c+2*mv().state.padding).attr("height",l.height+r+2*mv().state.padding).attr("rx",mv().state.radius)}(i,e);var a,o=i.node().getBBox();return r.width=o.width+2*mv().state.padding,r.height=o.height+2*mv().state.padding,a=r,EC[n]=a,r},DC=0;lC.parser.yy=CC;var OC={},LC=function t(e,n,r,i,a,s){var l,c=new(qv().Graph)({compound:!0,multigraph:!0}),u=!0;for(l=0;l<e.length;l++)if("relation"===e[l].stmt){u=!1;break}r?c.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:u?1:TC.edgeLengthFactor,nodeSep:u?1:50,isMultiGraph:!0}):c.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:u?1:TC.edgeLengthFactor,nodeSep:u?1:50,ranker:"tight-tree",isMultiGraph:!0}),c.setDefaultEdgeLabel((function(){return{}})),CC.extract(e);for(var h=CC.getStates(),f=CC.getRelations(),d=Object.keys(h),p=0;p<d.length;p++){var g=h[d[p]];r&&(g.parentId=r);var m=void 0;if(g.doc){var y=n.append("g").attr("id",g.id).attr("class","stateGroup");m=t(g.doc,y,g.id,!i,a,s);var v=(y=AC(y,g,i)).node().getBBox();m.width=v.width,m.height=v.height+TC.padding/2,OC[g.id]={y:TC.compositTitleSize}}else m=NC(n,g);if(g.note){var b={descriptions:[],id:g.id+"-note",note:g.note,type:"note"},_=NC(n,b);"left of"===g.note.position?(c.setNode(m.id+"-note",_),c.setNode(m.id,m)):(c.setNode(m.id,m),c.setNode(m.id+"-note",_)),c.setParent(m.id,m.id+"-group"),c.setParent(m.id+"-note",m.id+"-group")}else c.setNode(m.id,m)}o.debug("Count=",c.nodeCount(),c);var x=0;f.forEach((function(t){var e;x++,o.debug("Setting edge",t),c.setEdge(t.id1,t.id2,{relation:t,width:(e=t.title,e?e.length*TC.fontSizeFactor:1),height:TC.labelHeight*ay.getRows(t.title).length,labelpos:"c"},"id"+x)})),Pv().layout(c),o.debug("Graph after layout",c.nodes());var w=n.node();c.nodes().forEach((function(t){void 0!==t&&void 0!==c.node(t)?(o.warn("Node "+t+": "+JSON.stringify(c.node(t))),a.select("#"+w.id+" #"+t).attr("transform","translate("+(c.node(t).x-c.node(t).width/2)+","+(c.node(t).y+(OC[t]?OC[t].y:0)-c.node(t).height/2)+" )"),a.select("#"+w.id+" #"+t).attr("data-x-shift",c.node(t).x-c.node(t).width/2),s.querySelectorAll("#"+w.id+" #"+t+" .divider").forEach((function(t){var e=t.parentElement,n=0,r=0;e&&(e.parentElement&&(n=e.parentElement.getBBox().width),r=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(r)&&(r=0)),t.setAttribute("x1",0-r+8),t.setAttribute("x2",n-r-8)}))):o.debug("No Node "+t+": "+JSON.stringify(c.node(t)))}));var k=w.getBBox();c.edges().forEach((function(t){void 0!==t&&void 0!==c.edge(t)&&(o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(c.edge(t))),function(t,e,n){e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var r=e.points,i=yc().x((function(t){return t.x})).y((function(t){return t.y})).curve(kc),a=t.append("path").attr("d",i(r)).attr("id","edge"+DC).attr("class","transition"),s="";if(mv().state.arrowMarkerAbsolute&&(s=(s=(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),a.attr("marker-end","url("+s+"#"+function(t){switch(t){case CC.relationType.AGGREGATION:return"aggregation";case CC.relationType.EXTENSION:return"extension";case CC.relationType.COMPOSITION:return"composition";case CC.relationType.DEPENDENCY:return"dependency"}}(CC.relationType.DEPENDENCY)+"End)"),void 0!==n.title){for(var l=t.append("g").attr("class","stateLabel"),c=sv.calcLabelPosition(e.points),u=c.x,h=c.y,f=ay.getRows(n.title),d=0,p=[],g=0,m=0,y=0;y<=f.length;y++){var v=l.append("text").attr("text-anchor","middle").text(f[y]).attr("x",u).attr("y",h+d),b=v.node().getBBox();if(g=Math.max(g,b.width),m=Math.min(m,b.x),o.info(b.x,u,h+d),0===d){var _=v.node().getBBox();d=_.height,o.info("Title height",d,h)}p.push(v)}var x=d*f.length;if(f.length>1){var w=(f.length-1)*d*.5;p.forEach((function(t,e){return t.attr("y",h+e*d-w)})),x=d*f.length}var k=l.node().getBBox();l.insert("rect",":first-child").attr("class","box").attr("x",u-g/2-mv().state.padding/2).attr("y",h-x/2-mv().state.padding/2-3.5).attr("width",g+mv().state.padding).attr("height",x+mv().state.padding),o.info(k)}DC++}(n,c.edge(t),c.edge(t).relation))})),k=w.getBBox();var C={id:r||"root",label:r||"root",width:0,height:0};return C.width=k.width+2*TC.padding,C.height=k.height+2*TC.padding,o.debug("Doc rendered",C,c),C};const BC=function(t,e){TC=mv().state;var n,r=mv().securityLevel;"sandbox"===r&&(n=Il("#i"+e));var i=Il("sandbox"===r?n.nodes()[0].contentDocument.body:"body"),a="sandbox"===r?n.nodes()[0].contentDocument:document;lC.parser.yy.clear(),lC.parser.parse(t),o.debug("Rendering diagram "+t);var s=i.select("[id='".concat(e,"']"));s.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(qv().Graph)({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));var l=CC.getRootDoc();LC(l,s,void 0,!1,i,a);var c=TC.padding,u=s.node().getBBox(),h=u.width+2*c,f=u.height+2*c;iv(s,f,1.75*h,TC.useMaxWidth),s.attr("viewBox","".concat(u.x-TC.padding," ").concat(u.y-TC.padding," ")+h+" "+f)};var IC={},RC={},FC=function(t,e,n,r){if("root"!==n.id){var i="rect";!0===n.start&&(i="start"),!1===n.start&&(i="end"),"default"!==n.type&&(i=n.type),RC[n.id]||(RC[n.id]={id:n.id,shape:i,description:ay.sanitizeText(n.id,mv()),classes:"statediagram-state"}),n.description&&(Array.isArray(RC[n.id].description)?(RC[n.id].shape="rectWithTitle",RC[n.id].description.push(n.description)):RC[n.id].description.length>0?(RC[n.id].shape="rectWithTitle",RC[n.id].description===n.id?RC[n.id].description=[n.description]:RC[n.id].description=[RC[n.id].description,n.description]):(RC[n.id].shape="rect",RC[n.id].description=n.description),RC[n.id].description=ay.sanitizeTextOrArray(RC[n.id].description,mv())),1===RC[n.id].description.length&&"rectWithTitle"===RC[n.id].shape&&(RC[n.id].shape="rect"),!RC[n.id].type&&n.doc&&(o.info("Setting cluster for ",n.id,qC(n)),RC[n.id].type="group",RC[n.id].dir=qC(n),RC[n.id].shape="divider"===n.type?"divider":"roundedWithTitle",RC[n.id].classes=RC[n.id].classes+" "+(r?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var a={labelStyle:"",shape:RC[n.id].shape,labelText:RC[n.id].description,classes:RC[n.id].classes,style:"",id:n.id,dir:RC[n.id].dir,domId:"state-"+n.id+"-"+PC,type:RC[n.id].type,padding:15};if(n.note){var s={labelStyle:"",shape:"note",labelText:n.note.text,classes:"statediagram-note",style:"",id:n.id+"----note-"+PC,domId:"state-"+n.id+"----note-"+PC,type:RC[n.id].type,padding:15},l={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:RC[n.id].classes,style:"",id:n.id+"----parent",domId:"state-"+n.id+"----parent-"+PC,type:"group",padding:0};PC++,t.setNode(n.id+"----parent",l),t.setNode(s.id,s),t.setNode(n.id,a),t.setParent(n.id,n.id+"----parent"),t.setParent(s.id,n.id+"----parent");var c=n.id,u=s.id;"left of"===n.note.position&&(c=s.id,u=n.id),t.setEdge(c,u,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(n.id,a)}e&&"root"!==e.id&&(o.trace("Setting node ",n.id," to be child of its parent ",e.id),t.setParent(n.id,e.id)),n.doc&&(o.trace("Adding nodes children "),zC(t,n,n.doc,!r))},PC=0,zC=function(t,e,n,r){o.trace("items",n),n.forEach((function(n){if("state"===n.stmt||"default"===n.stmt)FC(t,e,n,r);else if("relation"===n.stmt){FC(t,e,n.state1,r),FC(t,e,n.state2,r);var i={id:"edge"+PC,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:ay.sanitizeText(n.description,mv()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},a=n.state1.id,o=n.state2.id;t.setEdge(a,o,i,PC),PC++}}))},qC=function(t,e){var n=e||"TB";if(t.doc)for(var r=0;r<t.doc.length;r++){var i=t.doc[r];"dir"===i.stmt&&(n=i.value)}return n};const jC=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)IC[e[n]]=t[e[n]]};function HC(t){return function(t){if(Array.isArray(t))return UC(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return UC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UC(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UC(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var $C="",WC="",YC=[],VC=[],GC=[],XC=function(){for(var t=!0,e=0;e<GC.length;e++)GC[e].processed,t=t&&GC[e].processed;return t};const ZC={parseDirective:function(t,e,n){EE.parseDirective(this,t,e,n)},getConfig:function(){return mv().journey},clear:function(){YC.length=0,VC.length=0,WC="",$C="",GC.length=0},setTitle:function(t){$C=t},getTitle:function(){return $C},addSection:function(t){WC=t,YC.push(t)},getSections:function(){return YC},getTasks:function(){for(var t=XC(),e=0;!t&&e<100;)t=XC(),e++;return VC.push.apply(VC,GC),VC},addTask:function(t,e){var n=e.substr(1).split(":"),r=0,i=[];1===n.length?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(","));var a=i.map((function(t){return t.trim()})),o={section:WC,type:WC,people:a,task:t,score:r};GC.push(o)},addTaskOrg:function(t){var e={section:WC,type:WC,description:t,task:t,classes:[]};VC.push(e)},getActors:function(){return t=[],VC.forEach((function(e){e.people&&t.push.apply(t,HC(e.people))})),HC(new Set(t)).sort();var t}};var KC=n(9763),QC=n.n(KC),JC=function(t,e){var n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},tE=function(t,e){var n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},eE=-1,nE=function(){function t(t,e,n,i,a,o,s,l){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("font-color",l).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,l,c){for(var u=l.taskFontSize,h=l.taskFontFamily,f=t.split(/<br\s*\/?>/gi),d=0;d<f.length;d++){var p=d*u-u*(f.length-1)/2,g=e.append("text").attr("x",n+a/2).attr("y",i).attr("fill",c).style("text-anchor","middle").style("font-size",u).style("font-family",h);g.append("tspan").attr("x",n+a/2).attr("dy",p).text(f[d]),g.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(g,s)}}function n(t,n,i,a,o,s,l,c){var u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,o,s,l,c),r(h,l)}function r(t,e){for(var n in e)n in e&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}();const rE=tE,iE=function(t,e,n){var r=t.append("g"),i={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=n.width,i.height=n.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,JC(r,i),nE(n)(e.text,r,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},n,e.colour)},aE=function(t,e){var n=e.text.replace(/<br\s*\/?>/gi," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),void 0!==e.class&&r.attr("class",e.class);var i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.text(n),r},oE=function(t,e,n){var r,i,a,o=e.x+n.width/2,s=t.append("g");eE++,s.append("line").attr("id","task"+eE).attr("x1",o).attr("y1",e.y).attr("x2",o).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),r=s,i={cx:o,cy:300+30*(5-e.score),score:e.score},r.append("circle").attr("cx",i.cx).attr("cy",i.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(a=r.append("g")).append("circle").attr("cx",i.cx-5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",i.cx+5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.score>3?function(t){var e=hc().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+i.cx+","+(i.cy+2)+")")}(a):i.score<3?function(t){var e=hc().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+i.cx+","+(i.cy+7)+")")}(a):function(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",i.cx-5).attr("y1",i.cy+7).attr("x2",i.cx+5).attr("y2",i.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(a);var l={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=n.width,l.height=n.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,JC(s,l);var c=e.x+14;e.people.forEach((function(t){var n=e.actors[t].color,r={cx:c,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};tE(s,r),c+=10})),nE(n)(e.task,s,l.x,l.y,l.width,l.height,{class:"task"},n,e.colour)};KC.parser.yy=ZC;var sE={},lE=mv().journey,cE=mv().journey.leftMargin,uE={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i=mv().journey,a=this,o=0;this.sequenceItems.forEach((function(s){o++;var l=a.sequenceItems.length-o+1;a.updateVal(s,"starty",e-l*i.boxMargin,Math.min),a.updateVal(s,"stopy",r+l*i.boxMargin,Math.max),a.updateVal(uE.data,"startx",t-l*i.boxMargin,Math.min),a.updateVal(uE.data,"stopx",n+l*i.boxMargin,Math.max),a.updateVal(s,"startx",t-l*i.boxMargin,Math.min),a.updateVal(s,"stopx",n+l*i.boxMargin,Math.max),a.updateVal(uE.data,"starty",e-l*i.boxMargin,Math.min),a.updateVal(uE.data,"stopy",r+l*i.boxMargin,Math.max)}))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(uE.data,"startx",i,Math.min),this.updateVal(uE.data,"starty",o,Math.min),this.updateVal(uE.data,"stopx",a,Math.max),this.updateVal(uE.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},hE=lE.sectionFills,fE=lE.sectionColours;const dE=function(t){Object.keys(t).forEach((function(e){lE[e]=t[e]}))},pE=function(t,e){var n=mv().journey;KC.parser.yy.clear(),KC.parser.parse(t+"\n");var r,i=mv().securityLevel;"sandbox"===i&&(r=Il("#i"+e));var a=Il("sandbox"===i?r.nodes()[0].contentDocument.body:"body");"sandbox"===i?r.nodes()[0].contentDocument:document,uE.init();var o=a.select("#"+e);o.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),o.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var s=KC.parser.yy.getTasks(),l=KC.parser.yy.getTitle(),c=KC.parser.yy.getActors();for(var u in sE)delete sE[u];var h=0;c.forEach((function(t){sE[t]={color:n.actorColours[h%n.actorColours.length],position:h},h++})),function(t){var e=mv().journey,n=60;Object.keys(sE).forEach((function(r){var i=sE[r].color,a={cx:20,cy:n,r:7,fill:i,stroke:"#000",pos:sE[r].position};rE(t,a);var o={x:40,y:n+7,fill:"#666",text:r,textMargin:5|e.boxTextMargin};aE(t,o),n+=20}))}(o),uE.insert(0,0,cE,50*Object.keys(sE).length),function(t,e,n){for(var r=mv().journey,i="",a=n+(2*r.height+r.diagramMarginY),o=0,s="#CCC",l="black",c=0,u=0;u<e.length;u++){var h=e[u];if(i!==h.section){s=hE[o%hE.length],c=o%hE.length,l=fE[o%fE.length];var f={x:u*r.taskMargin+u*r.width+cE,y:50,text:h.section,fill:s,num:c,colour:l};iE(t,f,r),i=h.section,o++}var d=h.people.reduce((function(t,e){return sE[e]&&(t[e]=sE[e]),t}),{});h.x=u*r.taskMargin+u*r.width+cE,h.y=a,h.width=r.diagramMarginX,h.height=r.diagramMarginY,h.colour=l,h.fill=s,h.num=c,h.actors=d,oE(t,h,r),uE.insert(h.x,h.y,h.x+h.width+r.taskMargin,450)}}(o,s,0);var f=uE.getBounds();l&&o.append("text").text(l).attr("x",cE).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var d=f.stopy-f.starty+2*n.diagramMarginY,p=cE+f.stopx+2*n.diagramMarginX;iv(o,d,p,n.useMaxWidth),o.append("line").attr("x1",cE).attr("y1",4*n.height).attr("x2",p-cE-4).attr("y2",4*n.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var g=l?70:0;o.attr("viewBox","".concat(f.startx," -25 ").concat(p," ").concat(d+g)),o.attr("preserveAspectRatio","xMinYMin meet"),o.attr("height",d+g+25)};var gE={};const mE=function(t){return"g.classGroup text {\n fill: ".concat(t.nodeBorder,";\n fill: ").concat(t.classText,";\n stroke: none;\n font-family: ").concat(t.fontFamily,";\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ").concat(t.classText,";\n}\n.edgeLabel .label rect {\n fill: ").concat(t.mainBkg,";\n}\n.label text {\n fill: ").concat(t.classText,";\n}\n.edgeLabel .label span {\n background: ").concat(t.mainBkg,";\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ").concat(t.nodeBorder,";\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n}\n\ng.classGroup line {\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(t.mainBkg,";\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ").concat(t.nodeBorder,";\n font-size: 10px;\n}\n\n.relation {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n")},yE=function(t){return".label {\n font-family: ".concat(t.fontFamily,";\n color: ").concat(t.nodeTextColor||t.textColor,";\n }\n .cluster-label text {\n fill: ").concat(t.titleColor,";\n }\n .cluster-label span {\n color: ").concat(t.titleColor,";\n }\n\n .label text,span {\n fill: ").concat(t.nodeTextColor||t.textColor,";\n color: ").concat(t.nodeTextColor||t.textColor,";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n background-color: ").concat(t.edgeLabelBackground,";\n fill: ").concat(t.edgeLabelBackground,";\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(t.clusterBkg,";\n stroke: ").concat(t.clusterBorder,";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n .cluster span {\n color: ").concat(t.titleColor,";\n }\n /* .cluster div {\n color: ").concat(t.titleColor,";\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(t.fontFamily,";\n font-size: 12px;\n background: ").concat(t.tertiaryColor,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n")},vE=function(t){return"\ndefs #statediagram-barbEnd {\n fill: ".concat(t.transitionColor,";\n stroke: ").concat(t.transitionColor,";\n }\ng.stateGroup text {\n fill: ").concat(t.nodeBorder,";\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ").concat(t.textColor,";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(t.stateLabelColor,";\n}\n\ng.stateGroup rect {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n}\n\ng.stateGroup line {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(t.transitionColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(t.background,";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n\n text {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(t.mainBkg,";\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ").concat(t.labelBackgroundColor,";\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n.label div .edgeLabel {\n color: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n\n.stateLabel text {\n fill: ").concat(t.stateLabelColor,";\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ").concat(t.specialStateColor,";\n stroke: ").concat(t.specialStateColor,";\n}\n\n.node .fork-join {\n fill: ").concat(t.specialStateColor,";\n stroke: ").concat(t.specialStateColor,";\n}\n\n.node circle.state-end {\n fill: ").concat(t.innerEndBackground,";\n stroke: ").concat(t.background,";\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ").concat(t.compositeBackground||t.background,";\n // stroke: ").concat(t.background,";\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(t.stateBkg||t.mainBkg,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n stroke-width: 1px;\n}\n.node polygon {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(t.lineColor,";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(t.compositeTitleBackground,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(t.stateLabelColor,";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(t.compositeBackground||t.background,";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor,";\n stroke: ").concat(t.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor,";\n stroke: ").concat(t.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ").concat(t.noteTextColor,";\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(t.noteTextColor,";\n}\n.statediagram .edgeLabel {\n color: red; // ").concat(t.noteTextColor,";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(t.lineColor,";\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n}\n")};var bE={flowchart:yE,"flowchart-v2":yE,sequence:function(t){return".actor {\n stroke: ".concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n }\n\n text.actor > tspan {\n fill: ").concat(t.actorTextColor,";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(t.actorLineColor,";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(t.signalColor,";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.signalColor,";\n }\n\n #arrowhead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .sequenceNumber {\n fill: ").concat(t.sequenceNumberColor,";\n }\n\n #sequencenumber {\n fill: ").concat(t.signalColor,";\n }\n\n #crosshead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .messageText {\n fill: ").concat(t.signalTextColor,";\n stroke: ").concat(t.signalTextColor,";\n }\n\n .labelBox {\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBkgColor,";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(t.labelTextColor,";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(t.loopTextColor,";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBorderColor,";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation1 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation2 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ").concat(t.actorBkg,";\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ").concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n }\n .actor-man circle, line {\n stroke: ").concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n stroke-width: 2px;\n }\n")},gantt:function(t){return'\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n .exclude-range {\n fill: '.concat(t.excludeBkgColor,";\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ").concat(t.sectionBkgColor,";\n }\n\n .section2 {\n fill: ").concat(t.sectionBkgColor2,";\n }\n\n .section1,\n .section3 {\n fill: ").concat(t.altSectionBkgColor,";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle1 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle2 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle3 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize,";\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(t.gridColor,";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.textColor,";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(t.todayLineColor,";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: ").concat(t.ganttFontSize,";\n // }\n\n .taskTextOutsideRight {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize,";\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: end;\n // font-size: ").concat(t.ganttFontSize,";\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(t.taskTextColor,";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(t.taskBkgColor,";\n stroke: ").concat(t.taskBorderColor,";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(t.activeTaskBkgColor,";\n stroke: ").concat(t.activeTaskBorderColor,";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(t.doneTaskBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.critBkgColor,";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.activeTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor," ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n")},classDiagram:mE,"classDiagram-v2":mE,class:mE,stateDiagram:vE,state:vE,git:function(){return"\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n"},info:function(){return""},pie:function(t){return"\n .pieCircle{\n stroke: ".concat(t.pieStrokeColor,";\n stroke-width : ").concat(t.pieStrokeWidth,";\n opacity : ").concat(t.pieOpacity,";\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ").concat(t.pieTitleTextSize,";\n fill: ").concat(t.pieTitleTextColor,";\n font-family: ").concat(t.fontFamily,";\n }\n .slice {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.pieSectionTextColor,";\n font-size:").concat(t.pieSectionTextSize,";\n // fill: white;\n }\n .legend text {\n fill: ").concat(t.pieLegendTextColor,";\n font-family: ").concat(t.fontFamily,";\n font-size: ").concat(t.pieLegendTextSize,";\n }\n")},er:function(t){return"\n .entityBox {\n fill: ".concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n }\n\n .attributeBoxOdd {\n fill: #ffffff;\n stroke: ").concat(t.nodeBorder,";\n }\n\n .attributeBoxEven {\n fill: #f2f2f2;\n stroke: ").concat(t.nodeBorder,";\n }\n\n .relationshipLabelBox {\n fill: ").concat(t.tertiaryColor,";\n opacity: 0.7;\n background-color: ").concat(t.tertiaryColor,";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(t.lineColor,";\n }\n")},journey:function(t){return".label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ".concat(t.textColor,";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(t.textColor,"\n }\n\n .legend {\n fill: ").concat(t.textColor,";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(t.textColor,"\n }\n\n .face {\n ").concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",";\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ").concat(t.tertiaryColor,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType0):"",";\n }\n .task-type-1, .section-type-1 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType1):"",";\n }\n .task-type-2, .section-type-2 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType2):"",";\n }\n .task-type-3, .section-type-3 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType3):"",";\n }\n .task-type-4, .section-type-4 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType4):"",";\n }\n .task-type-5, .section-type-5 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType5):"",";\n }\n .task-type-6, .section-type-6 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType6):"",";\n }\n .task-type-7, .section-type-7 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType7):"",";\n }\n\n .actor-0 {\n ").concat(t.actor0?"fill: ".concat(t.actor0):"",";\n }\n .actor-1 {\n ").concat(t.actor1?"fill: ".concat(t.actor1):"",";\n }\n .actor-2 {\n ").concat(t.actor2?"fill: ".concat(t.actor2):"",";\n }\n .actor-3 {\n ").concat(t.actor3?"fill: ".concat(t.actor3):"",";\n }\n .actor-4 {\n ").concat(t.actor4?"fill: ".concat(t.actor4):"",";\n }\n .actor-5 {\n ").concat(t.actor5?"fill: ".concat(t.actor5):"",";\n }\n\n }\n")},requirement:function(t){return"\n\n marker {\n fill: ".concat(t.relationColor,";\n stroke: ").concat(t.relationColor,";\n }\n\n marker.cross {\n stroke: ").concat(t.lineColor,";\n }\n\n svg {\n font-family: ").concat(t.fontFamily,";\n font-size: ").concat(t.fontSize,";\n }\n\n .reqBox {\n fill: ").concat(t.requirementBackground,";\n fill-opacity: 100%;\n stroke: ").concat(t.requirementBorderColor,";\n stroke-width: ").concat(t.requirementBorderSize,";\n }\n \n .reqTitle, .reqLabel{\n fill: ").concat(t.requirementTextColor,";\n }\n .reqLabelBox {\n fill: ").concat(t.relationLabelBackground,";\n fill-opacity: 100%;\n }\n\n .req-title-line {\n stroke: ").concat(t.requirementBorderColor,";\n stroke-width: ").concat(t.requirementBorderSize,";\n }\n .relationshipLine {\n stroke: ").concat(t.relationColor,";\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ").concat(t.relationLabelColor,";\n }\n\n")}};function _E(t){return _E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_E(t)}var xE=function(t){var e=t;return(e=(e=e.replace(/fl°°/g,(function(){return"&#"}))).replace(/fl°/g,(function(){return"&"}))).replace(/¶ß/g,(function(){return";"}))},wE={};function kE(t){var e;pw(t.git),tx(t.flowchart),rx(t.flowchart),void 0!==t.sequenceDiagram&&sC.setConf(Ky(t.sequence,t.sequenceDiagram)),sC.setConf(t.sequence),t.gantt,eb(t.class),t.state,jC(t.state),xw(t.class),a_(t.er),dE(t.journey),Vw(t.requirement),e=t.class,Object.keys(e).forEach((function(t){gE[t]=e[t]}))}var CE=Object.freeze({render:function(t,e,n,r){bv();var i=e,a=sv.detectInit(i);a&&(av(a),vv(a));var s=mv();e.length>s.maxTextSize&&(i="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var l=Il("body");if(void 0!==r){if("sandbox"===s.securityLevel){var c=Il("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(l=Il(c.nodes()[0].contentDocument.body)).node().style.margin=0}if(r.innerHTML="","sandbox"===s.securityLevel){var u=Il(r).append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(l=Il(u.nodes()[0].contentDocument.body)).node().style.margin=0}else l=Il(r);l.append("div").attr("id","d"+t).attr("style","font-family: "+s.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}else{var h,f=document.getElementById(t);if(f&&f.remove(),(h="sandbox"!==s.securityLevel?document.querySelector("#d"+t):document.querySelector("#i"+t))&&h.remove(),"sandbox"===s.securityLevel){var d=Il("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(l=Il(d.nodes()[0].contentDocument.body)).node().style.margin=0}else l=Il("body");l.append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}i=i.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,(function(t){var e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"}));var p=l.select("#d"+t).node(),g=sv.detectType(i,s),m=p.firstChild,y=m.firstChild,v="";if(void 0!==s.themeCSS&&(v+="\n".concat(s.themeCSS)),void 0!==s.fontFamily&&(v+="\n:root { --mermaid-font-family: ".concat(s.fontFamily,"}")),void 0!==s.altFontFamily&&(v+="\n:root { --mermaid-alt-font-family: ".concat(s.altFontFamily,"}")),"flowchart"===g||"flowchart-v2"===g||"graph"===g){var b=function(t){o.info("Extracting classes"),L_.clear();try{var e=I_().parser;return e.yy=L_,e.parse(t),L_.getClasses()}catch(n){return}}(i),_=s.htmlLabels||s.flowchart.htmlLabels;for(var x in b)_?(v+="\n.".concat(x," > * { ").concat(b[x].styles.join(" !important; ")," !important; }"),v+="\n.".concat(x," span { ").concat(b[x].styles.join(" !important; ")," !important; }")):(v+="\n.".concat(x," path { ").concat(b[x].styles.join(" !important; ")," !important; }"),v+="\n.".concat(x," rect { ").concat(b[x].styles.join(" !important; ")," !important; }"),v+="\n.".concat(x," polygon { ").concat(b[x].styles.join(" !important; ")," !important; }"),v+="\n.".concat(x," ellipse { ").concat(b[x].styles.join(" !important; ")," !important; }"),v+="\n.".concat(x," circle { ").concat(b[x].styles.join(" !important; ")," !important; }"),b[x].textStyles&&(v+="\n.".concat(x," tspan { ").concat(b[x].textStyles.join(" !important; ")," !important; }")))}var w=function(t,e){return wm(Um("".concat(t,"{").concat(e,"}")),km)}("#".concat(t),function(t,e,n){return" {\n font-family: ".concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n fill: ").concat(n.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(n.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(n.errorTextColor,";\n stroke: ").concat(n.errorTextColor,";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(n.lineColor,";\n stroke: ").concat(n.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(n.lineColor,";\n }\n\n svg {\n font-family: ").concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n }\n\n ").concat(bE[t](n),"\n\n ").concat(e,"\n")}(g,v,s.themeVariables)),k=document.createElement("style");k.innerHTML="#".concat(t," ")+w,m.insertBefore(k,y);try{switch(g){case"git":s.flowchart.arrowMarkerAbsolute=s.arrowMarkerAbsolute,pw(s.git),function(t,e,n){try{var r=iw().parser;r.yy=ew,r.yy.clear();var i,a=mv().securityLevel;"sandbox"===a&&(i=Il("#i"+e));var s=Il("sandbox"===a?i.nodes()[0].contentDocument.body:"body");"sandbox"===a?i.nodes()[0].contentDocument:document,o.debug("in gitgraph renderer",t+"\n","id:",e,n),r.parse(t+"\n"),ow=Object.assign(ow,sw,ew.getOptions()),o.debug("effective options",ow);var l=ew.getDirection();aw=ew.getCommits();var c=ew.getBranchesAsObjArray();"BT"===l&&(ow.nodeLabel.x=c.length*ow.branchOffset,ow.nodeLabel.width="100%",ow.nodeLabel.y=-2*ow.nodeRadius);var u=s.select('[id="'.concat(e,'"]'));for(var h in function(t){t.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",ow.nodeRadius).attr("cx",0).attr("cy",0),t.select("#def-commit").append("foreignObject").attr("width",ow.nodeLabel.width).attr("height",ow.nodeLabel.height).attr("x",ow.nodeLabel.x).attr("y",ow.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(u),nw=1,c){var f=c[h];fw(u,f.commit.id,c,l),dw(u,f.commit,l),nw++}u.attr("height",(function(){return"BT"===l?Object.keys(aw).length*ow.nodeSpacing:(c.length+1)*ow.branchOffset}))}catch(d){o.error("Error while rendering gitgraph"),o.error(d.message)}}(i,t,!1);break;case"flowchart":s.flowchart.arrowMarkerAbsolute=s.arrowMarkerAbsolute,tx(s.flowchart),ex(i,t);break;case"flowchart-v2":s.flowchart.arrowMarkerAbsolute=s.arrowMarkerAbsolute,rx(s.flowchart),ix(i,t);break;case"sequence":s.sequence.arrowMarkerAbsolute=s.arrowMarkerAbsolute,s.sequenceDiagram?(sC.setConf(Object.assign(s.sequence,s.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):sC.setConf(s.sequence),sC.draw(i,t);break;case"gantt":s.gantt.arrowMarkerAbsolute=s.arrowMarkerAbsolute,s.gantt,Hx(i,t);break;case"class":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,eb(s.class),nb(i,t);break;case"classDiagram":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,function(t){Object.keys(t).forEach((function(e){Wb[e]=t[e]}))}(s.class),function(t,e){o.info("Drawing class - ",e),Rv.clear(),jv.parser.parse(t);var n=mv().flowchart,r=mv().securityLevel;o.info("config:",n);var i,a=n.nodeSpacing||50,s=n.rankSpacing||50,l=new(qv().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:Rv.getDirection(),nodesep:a,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),c=Rv.getClasses(),u=Rv.getRelations();o.info(u),function(t,e){var n=Object.keys(t);o.info("keys:",n),o.info(t),n.forEach((function(n){var r=t[n],i="";r.cssClasses.length>0&&(i=i+" "+r.cssClasses.join(" "));var a,s,l={labelStyle:""},c=void 0!==r.text?r.text:r.id;r.type,s="class_box",e.setNode(r.id,{labelStyle:l.labelStyle,shape:s,labelText:(a=c,ay.sanitizeText(a,mv())),classData:r,rx:0,ry:0,class:i,style:l.style,id:r.id,domId:r.domId,haveCallback:r.haveCallback,link:r.link,width:"group"===r.type?500:void 0,type:r.type,padding:mv().flowchart.padding}),o.info("setNode",{labelStyle:l.labelStyle,shape:s,labelText:c,rx:0,ry:0,class:i,style:l.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:mv().flowchart.padding})}))}(c,l),function(t,e){var n=0;t.forEach((function(r){n++;var i={classes:"relation"};i.pattern=1==r.relation.lineType?"dashed":"solid",i.id="id"+n,"arrow_open"===r.type?i.arrowhead="none":i.arrowhead="normal",o.info(i,r),i.startLabelRight="none"===r.relationTitle1?"":r.relationTitle1,i.endLabelLeft="none"===r.relationTitle2?"":r.relationTitle2,i.arrowTypeStart=Yb(r.relation.type1),i.arrowTypeEnd=Yb(r.relation.type2);var a="",s="";if(void 0!==r.style){var l=Vy(r.style);a=l.style,s=l.labelStyle}else a="fill:none";i.style=a,i.labelStyle=s,void 0!==r.interpolate?i.curve=Wy(r.interpolate,pc):void 0!==t.defaultInterpolate?i.curve=Wy(t.defaultInterpolate,pc):i.curve=Wy(Wb.curve,pc),r.text=r.title,void 0===r.text?void 0!==r.style&&(i.arrowheadStyle="fill: #333"):(i.arrowheadStyle="fill: #333",i.labelpos="c",mv().flowchart.htmlLabels?(i.labelType="html",i.label='<span class="edgeLabel">'+r.text+"</span>"):(i.labelType="text",i.label=r.text.replace(ay.lineBreakRegex,"\n"),void 0===r.style&&(i.style=i.style||"stroke: #333; stroke-width: 1.5px;fill:none"),i.labelStyle=i.labelStyle.replace("color:","fill:"))),e.setEdge(r.id1,r.id2,i,n)}))}(u,l),"sandbox"===r&&(i=Il("#i"+e));var h=Il("sandbox"===r?i.nodes()[0].contentDocument.body:"body"),f=h.select('[id="'.concat(e,'"]'));f.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var d=h.select("#"+e+" g");$b(d,l,["aggregation","extension","composition","dependency"],"classDiagram",e);var p=f.node().getBBox(),g=p.width+16,m=p.height+16;if(o.debug("new ViewBox 0 0 ".concat(g," ").concat(m),"translate(".concat(8-l._label.marginx,", ").concat(8-l._label.marginy,")")),iv(f,m,g,n.useMaxWidth),f.attr("viewBox","0 0 ".concat(g," ").concat(m)),f.select("g").attr("transform","translate(".concat(8-l._label.marginx,", ").concat(8-p.y,")")),!n.htmlLabels)for(var y="sandbox"===r?i.nodes()[0].contentDocument:document,v=y.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),b=0;b<v.length;b++){var _=v[b],x=_.getBBox(),w=y.createElementNS("http://www.w3.org/2000/svg","rect");w.setAttribute("rx",0),w.setAttribute("ry",0),w.setAttribute("width",x.width),w.setAttribute("height",x.height),_.insertBefore(w,_.firstChild)}}(i,t);break;case"state":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,s.state,BC(i,t);break;case"stateDiagram":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,jC(s.state),function(t,e){o.info("Drawing state diagram (v2)",e),CC.clear(),RC={};var n=cC().parser;n.yy=CC,n.parse(t);var r=CC.getDirection();void 0===r&&(r="LR");var i=mv().state,a=i.nodeSpacing||50,s=i.rankSpacing||50,l=mv().securityLevel;o.info(CC.getRootDocV2()),CC.extract(CC.getRootDocV2()),o.info(CC.getRootDocV2());var c,u=new(qv().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:qC(CC.getRootDocV2()),nodesep:a,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));FC(u,void 0,CC.getRootDocV2(),!0),"sandbox"===l&&(c=Il("#i"+e));var h=Il("sandbox"===l?c.nodes()[0].contentDocument.body:"body"),f=("sandbox"===l?c.nodes()[0].contentDocument:document,h.select('[id="'.concat(e,'"]'))),d=h.select("#"+e+" g");$b(d,u,["barb"],"statediagram",e);var p=f.node().getBBox(),g=p.width+16,m=p.height+16;f.attr("class","statediagram");var y=f.node().getBBox();iv(f,m,1.75*g,i.useMaxWidth);var v="".concat(y.x-8," ").concat(y.y-8," ").concat(g," ").concat(m);o.debug("viewBox ".concat(v)),f.attr("viewBox",v);for(var b=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),_=0;_<b.length;_++){var x=b[_],w=x.getBBox(),k=document.createElementNS("http://www.w3.org/2000/svg","rect");k.setAttribute("rx",0),k.setAttribute("ry",0),k.setAttribute("width",w.width),k.setAttribute("height",w.height),x.insertBefore(k,x.firstChild)}}(i,t);break;case"info":s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,xw(s.class),function(t,e,n){try{var r=bw().parser;r.yy=yw,o.debug("Renering info diagram\n"+t);var i,a=mv().securityLevel;"sandbox"===a&&(i=Il("#i"+e));var s=Il("sandbox"===a?i.nodes()[0].contentDocument.body:"body");"sandbox"===a?i.nodes()[0].contentDocument:document,r.parse(t),o.debug("Parsed info diagram");var l=s.select("#"+e);l.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),l.attr("height",100),l.attr("width",400)}catch(c){o.error("Error while rendering info diagram"),o.error(c.message)}}(i,t,Gm);break;case"pie":Nw(i,t);break;case"er":a_(s.er),o_(i,t);break;case"journey":dE(s.journey),pE(i,t);break;case"requirement":Vw(s.requirement),Gw(i,t)}}catch(M){throw function(t,e){try{o.debug("Renering svg for syntax error\n");var n=Il("#"+t),r=n.append("g");r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),r.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+e),n.attr("height",100),n.attr("width",400),n.attr("viewBox","768 0 512 512")}catch(i){o.error("Error while rendering info diagram"),o.error(i.message)}}(t,Gm),M}l.select('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var C=l.select("#d"+t).node().innerHTML;if(o.debug("cnf.arrowMarkerAbsolute",s.arrowMarkerAbsolute),s.arrowMarkerAbsolute&&"false"!==s.arrowMarkerAbsolute||"sandbox"===s.arrowMarkerAbsolute||(C=C.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),C=(C=xE(C)).replace(/<br>/g,"<br/>"),"sandbox"===s.securityLevel){var E=l.select("#d"+t+" svg").node(),S="100%";E&&(S=E.viewBox.baseVal.height+"px"),C='<iframe style="width:'.concat("100%",";height:").concat(S,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+C+"</body>"),'" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The “iframe” tag is not supported by your browser.\n</iframe>')}if(void 0!==n)switch(g){case"flowchart":case"flowchart-v2":n(C,L_.bindFunctions);break;case"gantt":n(C,Fx.bindFunctions);break;case"class":case"classDiagram":n(C,Rv.bindFunctions);break;default:n(C)}else o.debug("CB = undefined!");vk.forEach((function(t){t()})),vk=[];var T="sandbox"===s.securityLevel?"#i"+t:"#d"+t,A=Il(T).node();return null!==A&&"function"==typeof A.remove&&Il(T).node().remove(),C},parse:function(t){var e=mv(),n=sv.detectInit(t,e);n&&o.debug("reinit ",n);var r,i=sv.detectType(t,e);switch(o.debug("Type "+i),i){case"git":(r=iw()).parser.yy=ew;break;case"flowchart":case"flowchart-v2":L_.clear(),(r=I_()).parser.yy=L_;break;case"sequence":(r=Zw()).parser.yy=yk;break;case"gantt":(r=jx()).parser.yy=Fx;break;case"class":case"classDiagram":(r=Hv()).parser.yy=Rv;break;case"state":case"stateDiagram":(r=cC()).parser.yy=CC;break;case"info":o.debug("info info info"),(r=bw()).parser.yy=yw;break;case"pie":o.debug("pie"),(r=kw()).parser.yy=Tw;break;case"er":o.debug("er"),(r=Jb()).parser.yy=Kb;break;case"journey":o.debug("Journey"),(r=QC()).parser.yy=ZC;break;case"requirement":case"requirementDiagram":o.debug("RequirementDiagram"),(r=Ow()).parser.yy=Pw}return r.parser.yy.graphType=i,r.parser.yy.parseError=function(t,e){throw{str:t,hash:e}},r.parse(t),r},parseDirective:function(t,e,n,r){try{if(void 0!==e)switch(e=e.trim(),n){case"open_directive":wE={};break;case"type_directive":wE.type=e.toLowerCase();break;case"arg_directive":wE.args=JSON.parse(e);break;case"close_directive":(function(t,e,n){switch(o.debug("Directive type=".concat(e.type," with args:"),e.args),e.type){case"init":case"initialize":["config"].forEach((function(t){void 0!==e.args[t]&&("flowchart-v2"===n&&(n="flowchart"),e.args[n]=e.args[t],delete e.args[t])})),o.debug("sanitize in handleDirective",e.args),av(e.args),o.debug("sanitize in handleDirective (done)",e.args),e.args,vv(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":o.warn("themeCss encountered");break;default:o.warn("Unhandled directive: source: '%%{".concat(e.type,": ").concat(JSON.stringify(e.args?e.args:{}),"}%%"),e)}})(t,wE,r),wE=null}}catch(i){o.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(n)),o.error(i.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(t){cv=Ky({},t)}(t),t&&t.theme&&ky[t.theme]?t.themeVariables=ky[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ky.default.getThemeVariables(t.themeVariables));var e="object"===_E(t)?function(t){return hv=Ky({},uv),hv=Ky(hv,t),t.theme&&(hv.themeVariables=ky[t.theme].getThemeVariables(t.themeVariables)),dv=pv(hv,fv),hv}(t):gv();kE(e),s(e.logLevel)},reinitialize:function(){},getConfig:mv,setConfig:function(t){return Ky(dv,t),mv()},getSiteConfig:gv,updateSiteConfig:function(t){return hv=Ky(hv,t),pv(hv,fv),hv},reset:function(){bv()},globalReset:function(){bv(),kE(mv())},defaultConfig:uv});s(mv().logLevel),bv(mv());const EE=CE;var SE=function(){TE.startOnLoad?EE.getConfig().startOnLoad&&TE.init():void 0===TE.startOnLoad&&(o.debug("In start, no config"),EE.getConfig().startOnLoad&&TE.init())};"undefined"!=typeof document&&window.addEventListener("load",(function(){SE()}),!1);var TE={startOnLoad:!0,htmlLabels:!0,mermaidAPI:EE,parse:EE.parse,render:EE.render,init:function(){var t,e,n=this,r=EE.getConfig();arguments.length>=2?(void 0!==arguments[0]&&(TE.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],"function"==typeof arguments[arguments.length-1]?(e=arguments[arguments.length-1],o.debug("Callback function found")):void 0!==r.mermaid&&("function"==typeof r.mermaid.callback?(e=r.mermaid.callback,o.debug("Callback function found")):o.debug("No Callback function found")),t=void 0===t?document.querySelectorAll(".mermaid"):"string"==typeof t?document.querySelectorAll(t):t instanceof window.Node?[t]:t,o.debug("Start On Load before: "+TE.startOnLoad),void 0!==TE.startOnLoad&&(o.debug("Start On Load inner: "+TE.startOnLoad),EE.updateSiteConfig({startOnLoad:TE.startOnLoad})),void 0!==TE.ganttConfig&&EE.updateSiteConfig({gantt:TE.ganttConfig});for(var i,a=new sv.initIdGeneratior(r.deterministicIds,r.deterministicIDSeed),s=function(r){var s=t[r];if(s.getAttribute("data-processed"))return"continue";s.setAttribute("data-processed",!0);var l="mermaid-".concat(a.next());i=s.innerHTML,i=sv.entityDecode(i).trim().replace(/<br\s*\/?>/gi,"<br/>");var c=sv.detectInit(i);c&&o.debug("Detected early reinit: ",c);try{EE.render(l,i,(function(t,n){s.innerHTML=t,void 0!==e&&e(l),n&&n(s)}),s)}catch(u){o.warn("Syntax Error rendering"),o.warn(u),n.parseError&&n.parseError(u)}},l=0;l<t.length;l++)s(l)},initialize:function(t){void 0!==t.mermaid&&(void 0!==t.mermaid.startOnLoad&&(TE.startOnLoad=t.mermaid.startOnLoad),void 0!==t.mermaid.htmlLabels&&(TE.htmlLabels="false"!==t.mermaid.htmlLabels&&!1!==t.mermaid.htmlLabels)),EE.initialize(t)},contentLoaded:SE};const AE=TE},4949:(t,e,n)=>{t.exports={graphlib:n(6614),dagre:n(1463),intersect:n(8114),render:n(5787),util:n(8355),version:n(5689)}},9144:(t,e,n)=>{var r=n(8355);function i(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])},undirected:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}}},5632:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1322);t.exports=function(t,e){var n,o=e.nodes().filter((function(t){return r.isSubgraph(e,t)})),s=t.selectAll("g.cluster").data(o,(function(t){return t}));return s.selectAll("*").remove(),s.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0),s=t.selectAll("g.cluster"),r.applyTransition(s,e).style("opacity",1),s.each((function(t){var n=e.node(t),r=i.select(this);i.select(this).append("rect");var o=r.append("g").attr("class","label");a(o,n,n.clusterLabelPos)})),s.selectAll("rect").each((function(t){var n=e.node(t),a=i.select(this);r.applyStyle(a,n.style)})),n=s.exit?s.exit():s.selectAll(null),r.applyTransition(n,e).style("opacity",0).remove(),s}},6315:(t,e,n)=>{var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e){var n,s=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0);return s.exit().remove(),s.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(s=t.selectAll("g.edgeLabel")).each((function(t){var n=o.select(this);n.select(".label").remove();var a=e.edge(t),s=i(n,e.edge(t),0,0).classed("label",!0),l=s.node().getBBox();a.labelId&&s.attr("id",a.labelId),r.has(a,"width")||(a.width=l.width),r.has(a,"height")||(a.height=l.height)})),n=s.exit?s.exit():s.selectAll(null),a.applyTransition(n,e).style("opacity",0).remove(),s}},940:(t,e,n)=>{var r=n(1034),i=n(7584),a=n(8355),o=n(4322);function s(t,e){var n=(o.line||o.svg.line)().x((function(t){return t.x})).y((function(t){return t.y}));return(n.curve||n.interpolate)(t.curve),n(e)}t.exports=function(t,e,n){var l=t.selectAll("g.edgePath").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0),c=function(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);return n.append("path").attr("class","path").attr("d",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return s(n,r.range(n.points.length).map((function(){return e=(t=i).getBBox(),{x:(n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:n.f};var t,e,n})))})),n.append("defs"),n}(l,e);!function(t,e){var n=t.exit();a.applyTransition(n,e).style("opacity",0).remove()}(l,e);var u=void 0!==l.merge?l.merge(c):l;return a.applyTransition(u,e).style("opacity",1),u.each((function(t){var n=o.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr("id",r.id),a.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),u.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId("arrowhead");var l=o.select(this).attr("marker-end",(function(){return"url("+(t=location.href,e=n.arrowheadId,t.split("#")[0]+"#"+e+")");var t,e})).style("fill","none");a.applyTransition(l,e).attr("d",(function(t){return function(t,e){var n=t.edge(e),r=t.node(e.v),a=t.node(e.w),o=n.points.slice(1,n.points.length-1);return o.unshift(i(r,o[0])),o.push(i(a,o[o.length-1])),s(n,o)}(e,t)})),a.applyStyle(l,n.style)})),u.selectAll("defs *").remove(),u.selectAll("defs").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(o.select(this),r.arrowheadId,r,"arrowhead")})),u}},607:(t,e,n)=>{var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e,n){var s,l=e.nodes().filter((function(t){return!a.isSubgraph(e,t)})),c=t.selectAll("g.node").data(l,(function(t){return t})).classed("update",!0);return c.exit().remove(),c.enter().append("g").attr("class","node").style("opacity",0),(c=t.selectAll("g.node")).each((function(t){var s=e.node(t),l=o.select(this);a.applyClass(l,s.class,(l.classed("update")?"update ":"")+"node"),l.select("g.label").remove();var c=l.append("g").attr("class","label"),u=i(c,s),h=n[s.shape],f=r.pick(u.node().getBBox(),"width","height");s.elem=this,s.id&&l.attr("id",s.id),s.labelId&&c.attr("id",s.labelId),r.has(s,"width")&&(f.width=s.width),r.has(s,"height")&&(f.height=s.height),f.width+=s.paddingLeft+s.paddingRight,f.height+=s.paddingTop+s.paddingBottom,c.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var d=o.select(this);d.select(".label-container").remove();var p=h(d,f,s).classed("label-container",!0);a.applyStyle(p,s.style);var g=p.node().getBBox();s.width=g.width,s.height=g.height})),s=c.exit?c.exit():c.selectAll(null),a.applyTransition(s,e).style("opacity",0).remove(),c}},4322:(t,e,n)=>{var r;if(!r)try{r=n(7188)}catch(i){}r||(r=window.d3),t.exports=r},1463:(t,e,n)=>{var r;try{r=n(681)}catch(i){}r||(r=window.dagre),t.exports=r},6614:(t,e,n)=>{var r;try{r=n(8282)}catch(i){}r||(r=window.graphlib),t.exports=r},8114:(t,e,n)=>{t.exports={node:n(7584),circle:n(6587),ellipse:n(3260),polygon:n(5337),rect:n(8049)}},6587:(t,e,n)=>{var r=n(3260);t.exports=function(t,e,n){return r(t,e,e,n)}},3260:t=>{t.exports=function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,s=a-r.y,l=Math.sqrt(e*e*s*s+n*n*o*o),c=Math.abs(e*n*o/l);r.x<i&&(c=-c);var u=Math.abs(e*n*s/l);return r.y<a&&(u=-u),{x:i+c,y:a+u}}},6808:t=>{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var a,o,s,l,c,u,h,f,d,p,g,m,y;if(a=n.y-t.y,s=t.x-n.x,c=n.x*t.y-t.x*n.y,d=a*r.x+s*r.y+c,p=a*i.x+s*i.y+c,!(0!==d&&0!==p&&e(d,p)||(o=i.y-r.y,l=r.x-i.x,u=i.x*r.y-r.x*i.y,h=o*t.x+l*t.y+u,f=o*n.x+l*n.y+u,0!==h&&0!==f&&e(h,f)||0==(g=a*l-o*s))))return m=Math.abs(g/2),{x:(y=s*u-l*c)<0?(y-m)/g:(y+m)/g,y:(y=o*c-a*u)<0?(y-m)/g:(y+m)/g}}},7584:t=>{t.exports=function(t,e){return t.intersect(e)}},5337:(t,e,n)=>{var r=n(6808);t.exports=function(t,e,n){var i=t.x,a=t.y,o=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;e.forEach((function(t){s=Math.min(s,t.x),l=Math.min(l,t.y)}));for(var c=i-t.width/2-s,u=a-t.height/2-l,h=0;h<e.length;h++){var f=e[h],d=e[h<e.length-1?h+1:0],p=r(t,n,{x:c+f.x,y:u+f.y},{x:c+d.x,y:u+d.y});p&&o.push(p)}return o.length?(o.length>1&&o.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,l=Math.sqrt(o*o+s*s);return a<l?-1:a===l?0:1})),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}},8049:t=>{t.exports=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,l=t.width/2,c=t.height/2;return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),n=0===s?0:c*o/s,r=c):(o<0&&(l=-l),n=l,r=0===o?0:l*s/o),{x:i+n,y:a+r}}},8284:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert((function(){return a}));break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o=i.node().getBoundingClientRect();return n.attr("width",o.width).attr("height",o.height),n}},1322:(t,e,n)=>{var r=n(7318),i=n(8284),a=n(8287);t.exports=function(t,e,n){var o=e.label,s=t.append("g");"svg"===e.labelType?a(s,e):"string"!=typeof o||"html"===e.labelType?i(s,e):r(s,e);var l,c=s.node().getBBox();switch(n){case"top":l=-e.height/2;break;case"bottom":l=e.height/2-c.height;break;default:l=-c.height/2}return s.attr("transform","translate("+-c.width/2+","+l+")"),s}},8287:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}},7318:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i<t.length;++i)e=t[i],r?(n+="n"===e?"\n":e,r=!1):"\\"===e?r=!0:n+=e;return n}(e.label).split("\n"),a=0;a<i.length;a++)n.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(i[a]);return r.applyStyle(n,e.labelStyle),n}},1034:(t,e,n)=>{var r;try{r={defaults:n(1747),each:n(6073),isFunction:n(3560),isPlainObject:n(8630),pick:n(9722),has:n(8721),range:n(6026),uniqueId:n(3955)}}catch(i){}r||(r=window._),t.exports=r},6381:(t,e,n)=>{var r=n(8355),i=n(4322);t.exports=function(t,e){var n=t.filter((function(){return!i.select(this).classed("update")}));function a(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}n.attr("transform",a),r.applyTransition(t,e).style("opacity",1).attr("transform",a),r.applyTransition(n.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}},4577:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1034);t.exports=function(t,e){function n(t){var n=e.edge(t);return a.has(n,"x")?"translate("+n.x+","+n.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},4849:(t,e,n)=>{var r=n(8355),i=n(4322);t.exports=function(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},5787:(t,e,n)=>{var r=n(1034),i=n(4322),a=n(1463).layout;t.exports=function(){var t=n(607),e=n(5632),i=n(6315),c=n(940),u=n(4849),h=n(4577),f=n(6381),d=n(4418),p=n(9144),g=function(n,g){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,o),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,s)}))}(g);var m=l(n,"output"),y=l(m,"clusters"),v=l(m,"edgePaths"),b=i(l(m,"edgeLabels"),g),_=t(l(m,"nodes"),g,d);a(g),u(_,g),h(b,g),c(v,g,p);var x=e(y,g);f(x,g),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(g)};return g.createNodes=function(e){return arguments.length?(t=e,g):t},g.createClusters=function(t){return arguments.length?(e=t,g):e},g.createEdgeLabels=function(t){return arguments.length?(i=t,g):i},g.createEdgePaths=function(t){return arguments.length?(c=t,g):c},g.shapes=function(t){return arguments.length?(d=t,g):d},g.arrows=function(t){return arguments.length?(p=t,g):p},g};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},s={arrowhead:"normal",curve:i.curveLinear};function l(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},4418:(t,e,n)=>{var r=n(8049),i=n(3260),a=n(6587),o=n(5337);t.exports={rect:function(t,e,n){var i=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return r(n,t)},i},ellipse:function(t,e,n){var r=e.width/2,a=e.height/2,o=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",a);return n.intersect=function(t){return i(n,r,a,t)},o},circle:function(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return n.intersect=function(t){return a(n,r,t)},i},diamond:function(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],s=t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" "));return n.intersect=function(t){return o(n,a,t)},s}}},8355:(t,e,n)=>{var r=n(1034);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return a(t.v)+":"+a(t.w)+":"+a(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function a(t){return t?String(t).replace(i,"\\:"):""}},5689:t=>{t.exports="0.6.4"},7188:(t,e,n)=>{n.r(e),n.d(e,{FormatSpecifier:()=>cl,active:()=>Jr,arc:()=>fx,area:()=>vx,areaRadial:()=>Tx,ascending:()=>i,autoType:()=>Fo,axisBottom:()=>it,axisLeft:()=>at,axisRight:()=>rt,axisTop:()=>nt,bisect:()=>c,bisectLeft:()=>l,bisectRight:()=>s,bisector:()=>a,blob:()=>ys,brush:()=>Ai,brushSelection:()=>Ei,brushX:()=>Si,brushY:()=>Ti,buffer:()=>bs,chord:()=>Fi,clientPoint:()=>Dn,cluster:()=>Td,color:()=>Ve,contourDensity:()=>oo,contours:()=>to,create:()=>z_,creator:()=>ie,cross:()=>f,csv:()=>Cs,csvFormat:()=>Co,csvFormatBody:()=>Eo,csvFormatRow:()=>To,csvFormatRows:()=>So,csvFormatValue:()=>Ao,csvParse:()=>wo,csvParseRows:()=>ko,cubehelix:()=>$a,curveBasis:()=>sw,curveBasisClosed:()=>cw,curveBasisOpen:()=>hw,curveBundle:()=>dw,curveCardinal:()=>mw,curveCardinalClosed:()=>vw,curveCardinalOpen:()=>_w,curveCatmullRom:()=>kw,curveCatmullRomClosed:()=>Ew,curveCatmullRomOpen:()=>Tw,curveLinear:()=>px,curveLinearClosed:()=>Mw,curveMonotoneX:()=>Fw,curveMonotoneY:()=>Pw,curveNatural:()=>jw,curveStep:()=>Uw,curveStepAfter:()=>Ww,curveStepBefore:()=>$w,customEvent:()=>me,descending:()=>d,deviation:()=>m,dispatch:()=>ft,drag:()=>po,dragDisable:()=>Te,dragEnable:()=>Ae,dsv:()=>ks,dsvFormat:()=>_o,easeBack:()=>hs,easeBackIn:()=>cs,easeBackInOut:()=>hs,easeBackOut:()=>us,easeBounce:()=>os,easeBounceIn:()=>as,easeBounceInOut:()=>ss,easeBounceOut:()=>os,easeCircle:()=>rs,easeCircleIn:()=>es,easeCircleInOut:()=>rs,easeCircleOut:()=>ns,easeCubic:()=>Xr,easeCubicIn:()=>Vr,easeCubicInOut:()=>Xr,easeCubicOut:()=>Gr,easeElastic:()=>ps,easeElasticIn:()=>ds,easeElasticInOut:()=>gs,easeElasticOut:()=>ps,easeExp:()=>ts,easeExpIn:()=>Qo,easeExpInOut:()=>ts,easeExpOut:()=>Jo,easeLinear:()=>zo,easePoly:()=>Wo,easePolyIn:()=>Uo,easePolyInOut:()=>Wo,easePolyOut:()=>$o,easeQuad:()=>Ho,easeQuadIn:()=>qo,easeQuadInOut:()=>Ho,easeQuadOut:()=>jo,easeSin:()=>Zo,easeSinIn:()=>Go,easeSinInOut:()=>Zo,easeSinOut:()=>Xo,entries:()=>pa,event:()=>ue,extent:()=>y,forceCenter:()=>Ls,forceCollide:()=>Ys,forceLink:()=>Xs,forceManyBody:()=>tl,forceRadial:()=>el,forceSimulation:()=>Js,forceX:()=>nl,forceY:()=>rl,format:()=>pl,formatDefaultLocale:()=>bl,formatLocale:()=>vl,formatPrefix:()=>gl,formatSpecifier:()=>ll,geoAlbers:()=>Hf,geoAlbersUsa:()=>Uf,geoArea:()=>gc,geoAzimuthalEqualArea:()=>Vf,geoAzimuthalEqualAreaRaw:()=>Yf,geoAzimuthalEquidistant:()=>Xf,geoAzimuthalEquidistantRaw:()=>Gf,geoBounds:()=>su,geoCentroid:()=>bu,geoCircle:()=>Nu,geoClipAntimeridian:()=>Hu,geoClipCircle:()=>Uu,geoClipExtent:()=>Vu,geoClipRectangle:()=>Yu,geoConicConformal:()=>ed,geoConicConformalRaw:()=>td,geoConicEqualArea:()=>jf,geoConicEqualAreaRaw:()=>qf,geoConicEquidistant:()=>ad,geoConicEquidistantRaw:()=>id,geoContains:()=>ph,geoDistance:()=>ah,geoEqualEarth:()=>fd,geoEqualEarthRaw:()=>hd,geoEquirectangular:()=>rd,geoEquirectangularRaw:()=>nd,geoGnomonic:()=>pd,geoGnomonicRaw:()=>dd,geoGraticule:()=>yh,geoGraticule10:()=>vh,geoIdentity:()=>gd,geoInterpolate:()=>bh,geoLength:()=>nh,geoMercator:()=>Kf,geoMercatorRaw:()=>Zf,geoNaturalEarth1:()=>yd,geoNaturalEarth1Raw:()=>md,geoOrthographic:()=>bd,geoOrthographicRaw:()=>vd,geoPath:()=>kf,geoProjection:()=>Ff,geoProjectionMutator:()=>Pf,geoRotation:()=>Tu,geoStereographic:()=>xd,geoStereographicRaw:()=>_d,geoStream:()=>nc,geoTransform:()=>Cf,geoTransverseMercator:()=>kd,geoTransverseMercatorRaw:()=>wd,gray:()=>ka,hcl:()=>Oa,hierarchy:()=>Md,histogram:()=>D,hsl:()=>an,html:()=>Ds,image:()=>Ss,interpolate:()=>Mn,interpolateArray:()=>xn,interpolateBasis:()=>cn,interpolateBasisClosed:()=>un,interpolateBlues:()=>f_,interpolateBrBG:()=>Cb,interpolateBuGn:()=>Hb,interpolateBuPu:()=>$b,interpolateCividis:()=>k_,interpolateCool:()=>S_,interpolateCubehelix:()=>jp,interpolateCubehelixDefault:()=>C_,interpolateCubehelixLong:()=>Hp,interpolateDate:()=>kn,interpolateDiscrete:()=>Tp,interpolateGnBu:()=>Yb,interpolateGreens:()=>p_,interpolateGreys:()=>m_,interpolateHcl:()=>Pp,interpolateHclLong:()=>zp,interpolateHsl:()=>Bp,interpolateHslLong:()=>Ip,interpolateHue:()=>Ap,interpolateInferno:()=>F_,interpolateLab:()=>Rp,interpolateMagma:()=>R_,interpolateNumber:()=>Cn,interpolateNumberArray:()=>bn,interpolateObject:()=>En,interpolateOrRd:()=>Gb,interpolateOranges:()=>w_,interpolatePRGn:()=>Sb,interpolatePiYG:()=>Ab,interpolatePlasma:()=>P_,interpolatePuBu:()=>Qb,interpolatePuBuGn:()=>Zb,interpolatePuOr:()=>Nb,interpolatePuRd:()=>t_,interpolatePurples:()=>v_,interpolateRainbow:()=>A_,interpolateRdBu:()=>Ob,interpolateRdGy:()=>Bb,interpolateRdPu:()=>n_,interpolateRdYlBu:()=>Rb,interpolateRdYlGn:()=>Pb,interpolateReds:()=>__,interpolateRgb:()=>gn,interpolateRgbBasis:()=>yn,interpolateRgbBasisClosed:()=>vn,interpolateRound:()=>Mp,interpolateSinebow:()=>O_,interpolateSpectral:()=>qb,interpolateString:()=>An,interpolateTransformCss:()=>pr,interpolateTransformSvg:()=>gr,interpolateTurbo:()=>L_,interpolateViridis:()=>I_,interpolateWarm:()=>E_,interpolateYlGn:()=>o_,interpolateYlGnBu:()=>i_,interpolateYlOrBr:()=>l_,interpolateYlOrRd:()=>u_,interpolateZoom:()=>Op,interrupt:()=>ar,interval:()=>fk,isoFormat:()=>ck,isoParse:()=>hk,json:()=>As,keys:()=>fa,lab:()=>Ca,lch:()=>Da,line:()=>yx,lineRadial:()=>Sx,linkHorizontal:()=>Rx,linkRadial:()=>Px,linkVertical:()=>Fx,local:()=>j_,map:()=>na,matcher:()=>yt,max:()=>I,mean:()=>R,median:()=>F,merge:()=>P,min:()=>z,mouse:()=>Ln,namespace:()=>Et,namespaces:()=>Ct,nest:()=>ra,now:()=>$n,pack:()=>tp,packEnclose:()=>Id,packSiblings:()=>Gd,pairs:()=>u,partition:()=>op,path:()=>Yi,permute:()=>q,pie:()=>xx,piecewise:()=>Up,pointRadial:()=>Ax,polygonArea:()=>Wp,polygonCentroid:()=>Yp,polygonContains:()=>Kp,polygonHull:()=>Zp,polygonLength:()=>Qp,precisionFixed:()=>_l,precisionPrefix:()=>xl,precisionRound:()=>wl,quadtree:()=>qs,quantile:()=>O,quantize:()=>$p,radialArea:()=>Tx,radialLine:()=>Sx,randomBates:()=>ig,randomExponential:()=>ag,randomIrwinHall:()=>rg,randomLogNormal:()=>ng,randomNormal:()=>eg,randomUniform:()=>tg,range:()=>k,rgb:()=>Ke,ribbon:()=>Qi,scaleBand:()=>dg,scaleDiverging:()=>ob,scaleDivergingLog:()=>sb,scaleDivergingPow:()=>cb,scaleDivergingSqrt:()=>ub,scaleDivergingSymlog:()=>lb,scaleIdentity:()=>Mg,scaleImplicit:()=>hg,scaleLinear:()=>Ag,scaleLog:()=>Pg,scaleOrdinal:()=>fg,scalePoint:()=>gg,scalePow:()=>Vg,scaleQuantile:()=>Xg,scaleQuantize:()=>Zg,scaleSequential:()=>Jv,scaleSequentialLog:()=>tb,scaleSequentialPow:()=>nb,scaleSequentialQuantile:()=>ib,scaleSequentialSqrt:()=>rb,scaleSequentialSymlog:()=>eb,scaleSqrt:()=>Gg,scaleSymlog:()=>Hg,scaleThreshold:()=>Kg,scaleTime:()=>qv,scaleUtc:()=>Zv,scan:()=>j,schemeAccent:()=>db,schemeBlues:()=>h_,schemeBrBG:()=>kb,schemeBuGn:()=>jb,schemeBuPu:()=>Ub,schemeCategory10:()=>fb,schemeDark2:()=>pb,schemeGnBu:()=>Wb,schemeGreens:()=>d_,schemeGreys:()=>g_,schemeOrRd:()=>Vb,schemeOranges:()=>x_,schemePRGn:()=>Eb,schemePaired:()=>gb,schemePastel1:()=>mb,schemePastel2:()=>yb,schemePiYG:()=>Tb,schemePuBu:()=>Kb,schemePuBuGn:()=>Xb,schemePuOr:()=>Mb,schemePuRd:()=>Jb,schemePurples:()=>y_,schemeRdBu:()=>Db,schemeRdGy:()=>Lb,schemeRdPu:()=>e_,schemeRdYlBu:()=>Ib,schemeRdYlGn:()=>Fb,schemeReds:()=>b_,schemeSet1:()=>vb,schemeSet2:()=>bb,schemeSet3:()=>_b,schemeSpectral:()=>zb,schemeTableau10:()=>xb,schemeYlGn:()=>a_,schemeYlGnBu:()=>r_,schemeYlOrBr:()=>s_,schemeYlOrRd:()=>c_,select:()=>Ce,selectAll:()=>U_,selection:()=>ke,selector:()=>pt,selectorAll:()=>mt,set:()=>ha,shuffle:()=>H,stack:()=>Xw,stackOffsetDiverging:()=>Kw,stackOffsetExpand:()=>Zw,stackOffsetNone:()=>Yw,stackOffsetSilhouette:()=>Qw,stackOffsetWiggle:()=>Jw,stackOrderAppearance:()=>tk,stackOrderAscending:()=>nk,stackOrderDescending:()=>ik,stackOrderInsideOut:()=>ak,stackOrderNone:()=>Vw,stackOrderReverse:()=>ok,stratify:()=>hp,style:()=>Rt,sum:()=>U,svg:()=>Os,symbol:()=>rw,symbolCircle:()=>zx,symbolCross:()=>qx,symbolDiamond:()=>Ux,symbolSquare:()=>Gx,symbolStar:()=>Vx,symbolTriangle:()=>Zx,symbolWye:()=>ew,symbols:()=>nw,text:()=>xs,thresholdFreedmanDiaconis:()=>L,thresholdScott:()=>B,thresholdSturges:()=>N,tickFormat:()=>Sg,tickIncrement:()=>A,tickStep:()=>M,ticks:()=>T,timeDay:()=>Am,timeDays:()=>Mm,timeFormat:()=>py,timeFormatDefaultLocale:()=>Iv,timeFormatLocale:()=>fy,timeFriday:()=>vm,timeFridays:()=>Em,timeHour:()=>Dm,timeHours:()=>Om,timeInterval:()=>tm,timeMillisecond:()=>qm,timeMilliseconds:()=>jm,timeMinute:()=>Bm,timeMinutes:()=>Im,timeMonday:()=>pm,timeMondays:()=>xm,timeMonth:()=>am,timeMonths:()=>om,timeParse:()=>gy,timeSaturday:()=>bm,timeSaturdays:()=>Sm,timeSecond:()=>Fm,timeSeconds:()=>Pm,timeSunday:()=>dm,timeSundays:()=>_m,timeThursday:()=>ym,timeThursdays:()=>Cm,timeTuesday:()=>gm,timeTuesdays:()=>wm,timeWednesday:()=>mm,timeWednesdays:()=>km,timeWeek:()=>dm,timeWeeks:()=>_m,timeYear:()=>nm,timeYears:()=>rm,timeout:()=>Qn,timer:()=>Vn,timerFlush:()=>Gn,touch:()=>On,touches:()=>$_,transition:()=>$r,transpose:()=>$,tree:()=>vp,treemap:()=>kp,treemapBinary:()=>Cp,treemapDice:()=>ap,treemapResquarify:()=>Sp,treemapSlice:()=>bp,treemapSliceDice:()=>Ep,treemapSquarify:()=>wp,tsv:()=>Es,tsvFormat:()=>Oo,tsvFormatBody:()=>Lo,tsvFormatRow:()=>Io,tsvFormatRows:()=>Bo,tsvFormatValue:()=>Ro,tsvParse:()=>No,tsvParseRows:()=>Do,utcDay:()=>iy,utcDays:()=>ay,utcFormat:()=>my,utcFriday:()=>Gm,utcFridays:()=>ey,utcHour:()=>Wv,utcHours:()=>Yv,utcMillisecond:()=>qm,utcMilliseconds:()=>jm,utcMinute:()=>Gv,utcMinutes:()=>Xv,utcMonday:()=>$m,utcMondays:()=>Km,utcMonth:()=>Hv,utcMonths:()=>Uv,utcParse:()=>yy,utcSaturday:()=>Xm,utcSaturdays:()=>ny,utcSecond:()=>Fm,utcSeconds:()=>Pm,utcSunday:()=>Um,utcSundays:()=>Zm,utcThursday:()=>Vm,utcThursdays:()=>ty,utcTuesday:()=>Wm,utcTuesdays:()=>Qm,utcWednesday:()=>Ym,utcWednesdays:()=>Jm,utcWeek:()=>Um,utcWeeks:()=>Zm,utcYear:()=>sy,utcYears:()=>ly,values:()=>da,variance:()=>g,version:()=>r,voronoi:()=>Qk,window:()=>Ot,xml:()=>Ns,zip:()=>Y,zoom:()=>fC,zoomIdentity:()=>nC,zoomTransform:()=>rC});var r="5.16.0";function i(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function a(t){var e;return 1===t.length&&(e=t,t=function(t,n){return i(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}var o=a(i),s=o.right,l=o.left;const c=s;function u(t,e){null==e&&(e=h);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return a}function h(t,e){return[t,e]}function f(t,e,n){var r,i,a,o,s=t.length,l=e.length,c=new Array(s*l);for(null==n&&(n=h),r=a=0;r<s;++r)for(o=t[r],i=0;i<l;++i,++a)c[a]=n(o,e[i]);return c}function d(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function p(t){return null===t?NaN:+t}function g(t,e){var n,r,i=t.length,a=0,o=-1,s=0,l=0;if(null==e)for(;++o<i;)isNaN(n=p(t[o]))||(l+=(r=n-s)*(n-(s+=r/++a)));else for(;++o<i;)isNaN(n=p(e(t[o],o,t)))||(l+=(r=n-s)*(n-(s+=r/++a)));if(a>1)return l/(a-1)}function m(t,e){var n=g(t,e);return n?Math.sqrt(n):n}function y(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n>=n)for(r=i=n;++o<a;)null!=(n=t[o])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=i=n;++o<a;)null!=(n=e(t[o],o,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}var v=Array.prototype,b=v.slice,_=v.map;function x(t){return function(){return t}}function w(t){return t}function k(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}var C=Math.sqrt(50),E=Math.sqrt(10),S=Math.sqrt(2);function T(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=A(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(t-s)/o;return r&&a.reverse(),a}function A(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=C?10:a>=E?5:a>=S?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=C?10:a>=E?5:a>=S?2:1)}function M(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=C?i*=10:a>=E?i*=5:a>=S&&(i*=2),e<t?-i:i}function N(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function D(){var t=w,e=y,n=N;function r(r){var i,a,o=r.length,s=new Array(o);for(i=0;i<o;++i)s[i]=t(r[i],i,r);var l=e(s),u=l[0],h=l[1],f=n(s,u,h);Array.isArray(f)||(f=M(u,h,f),f=k(Math.ceil(u/f)*f,h,f));for(var d=f.length;f[0]<=u;)f.shift(),--d;for(;f[d-1]>h;)f.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?f[i-1]:u,p.x1=i<d?f[i]:h;for(i=0;i<o;++i)u<=(a=s[i])&&a<=h&&g[c(f,a,0,d)].push(r[i]);return g}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:x(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:x([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?x(b.call(t)):x(t),r):n},r}function O(t,e,n){if(null==n&&(n=p),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}function L(t,e,n){return t=_.call(t,p).sort(i),Math.ceil((n-e)/(2*(O(t,.75)-O(t,.25))*Math.pow(t.length,-1/3)))}function B(t,e,n){return Math.ceil((n-e)/(3.5*m(t)*Math.pow(t.length,-1/3)))}function I(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&n>r&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&n>r&&(r=n);return r}function R(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a<r;)isNaN(n=p(t[a]))?--i:o+=n;else for(;++a<r;)isNaN(n=p(e(t[a],a,t)))?--i:o+=n;if(i)return o/i}function F(t,e){var n,r=t.length,a=-1,o=[];if(null==e)for(;++a<r;)isNaN(n=p(t[a]))||o.push(n);else for(;++a<r;)isNaN(n=p(e(t[a],a,t)))||o.push(n);return O(o.sort(i),.5)}function P(t){for(var e,n,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(n=new Array(o);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n}function z(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&r>n&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&r>n&&(r=n);return r}function q(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function j(t,e){if(n=t.length){var n,r,a=0,o=0,s=t[o];for(null==e&&(e=i);++a<n;)(e(r=t[a],s)<0||0!==e(s,s))&&(s=r,o=a);return 0===e(s,s)?o:void 0}}function H(t,e,n){for(var r,i,a=(null==n?t.length:n)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,r=t[a+e],t[a+e]=t[i+e],t[i+e]=r;return t}function U(t,e){var n,r=t.length,i=-1,a=0;if(null==e)for(;++i<r;)(n=+t[i])&&(a+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(a+=n);return a}function $(t){if(!(i=t.length))return[];for(var e=-1,n=z(t,W),r=new Array(n);++e<n;)for(var i,a=-1,o=r[e]=new Array(i);++a<i;)o[a]=t[a][e];return r}function W(t){return t.length}function Y(){return $(arguments)}var V=Array.prototype.slice;function G(t){return t}var X=1e-6;function Z(t){return"translate("+(t+.5)+",0)"}function K(t){return"translate(0,"+(t+.5)+")"}function Q(t){return function(e){return+t(e)}}function J(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function tt(){return!this.__axis}function et(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,l=1===t||4===t?-1:1,c=4===t||2===t?"x":"y",u=1===t||3===t?Z:K;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,d=null==i?e.tickFormat?e.tickFormat.apply(e,n):G:i,p=Math.max(a,0)+s,g=e.range(),m=+g[0]+.5,y=+g[g.length-1]+.5,v=(e.bandwidth?J:Q)(e.copy()),b=h.selection?h.selection():h,_=b.selectAll(".domain").data([null]),x=b.selectAll(".tick").data(f,e).order(),w=x.exit(),k=x.enter().append("g").attr("class","tick"),C=x.select("line"),E=x.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(k),C=C.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*a)),E=E.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==b&&(_=_.transition(h),x=x.transition(h),C=C.transition(h),E=E.transition(h),w=w.transition(h).attr("opacity",X).attr("transform",(function(t){return isFinite(t=v(t))?u(t):this.getAttribute("transform")})),k.attr("opacity",X).attr("transform",(function(t){var e=this.parentNode.__axis;return u(e&&isFinite(e=e(t))?e:v(t))}))),w.remove(),_.attr("d",4===t||2==t?o?"M"+l*o+","+m+"H0.5V"+y+"H"+l*o:"M0.5,"+m+"V"+y:o?"M"+m+","+l*o+"V0.5H"+y+"V"+l*o:"M"+m+",0.5H"+y),x.attr("opacity",1).attr("transform",(function(t){return u(v(t))})),C.attr(c+"2",l*a),E.attr(c,l*p).text(d),b.filter(tt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),b.each((function(){this.__axis=v}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=V.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:V.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:V.call(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=o=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(o=+t,h):o},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h}function nt(t){return et(1,t)}function rt(t){return et(2,t)}function it(t){return et(3,t)}function at(t){return et(4,t)}var ot={value:function(){}};function st(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new lt(r)}function lt(t){this._=t}function ct(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function ut(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function ht(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=ot,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}lt.prototype=st.prototype={constructor:lt,on:function(t,e){var n,r=this._,i=ct(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=ht(r[n],t.name,e);else if(null==e)for(n in r)r[n]=ht(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=ut(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new lt(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};const ft=st;function dt(){}function pt(t){return null==t?dt:function(){return this.querySelector(t)}}function gt(){return[]}function mt(t){return null==t?gt:function(){return this.querySelectorAll(t)}}function yt(t){return function(){return this.matches(t)}}function vt(t){return new Array(t.length)}function bt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function _t(t,e,n,r,i,a){for(var o,s=0,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new bt(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function xt(t,e,n,r,i,a,o){var s,l,c,u={},h=e.length,f=a.length,d=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(d[s]=c="$"+o.call(l,l.__data__,s,e),c in u?i[s]=l:u[c]=l);for(s=0;s<f;++s)(l=u[c="$"+o.call(t,a[s],s,a)])?(r[s]=l,l.__data__=a[s],u[c]=null):n[s]=new bt(t,a[s]);for(s=0;s<h;++s)(l=e[s])&&u[d[s]]===l&&(i[s]=l)}function wt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}bt.prototype={constructor:bt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var kt="http://www.w3.org/1999/xhtml";const Ct={svg:"http://www.w3.org/2000/svg",xhtml:kt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Et(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ct.hasOwnProperty(e)?{space:Ct[e],local:t}:t}function St(t){return function(){this.removeAttribute(t)}}function Tt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function At(t,e){return function(){this.setAttribute(t,e)}}function Mt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Nt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Dt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ot(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Lt(t){return function(){this.style.removeProperty(t)}}function Bt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function It(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Rt(t,e){return t.style.getPropertyValue(e)||Ot(t).getComputedStyle(t,null).getPropertyValue(e)}function Ft(t){return function(){delete this[t]}}function Pt(t,e){return function(){this[t]=e}}function zt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function qt(t){return t.trim().split(/^|\s+/)}function jt(t){return t.classList||new Ht(t)}function Ht(t){this._node=t,this._names=qt(t.getAttribute("class")||"")}function Ut(t,e){for(var n=jt(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function $t(t,e){for(var n=jt(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Wt(t){return function(){Ut(this,t)}}function Yt(t){return function(){$t(this,t)}}function Vt(t,e){return function(){(e.apply(this,arguments)?Ut:$t)(this,t)}}function Gt(){this.textContent=""}function Xt(t){return function(){this.textContent=t}}function Zt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Kt(){this.innerHTML=""}function Qt(t){return function(){this.innerHTML=t}}function Jt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function te(){this.nextSibling&&this.parentNode.appendChild(this)}function ee(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ne(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===kt&&e.documentElement.namespaceURI===kt?e.createElement(t):e.createElementNS(n,t)}}function re(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ie(t){var e=Et(t);return(e.local?re:ne)(e)}function ae(){return null}function oe(){var t=this.parentNode;t&&t.removeChild(this)}function se(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function le(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}Ht.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ce={},ue=null;function he(t,e,n){return t=fe(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function fe(t,e,n){return function(r){var i=ue;ue=r;try{t.call(this,this.__data__,e,n)}finally{ue=i}}}function de(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function pe(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function ge(t,e,n){var r=ce.hasOwnProperty(t.type)?he:fe;return function(i,a,o){var s,l=this.__on,c=r(e,a,o);if(l)for(var u=0,h=l.length;u<h;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function me(t,e,n,r){var i=ue;t.sourceEvent=ue,ue=t;try{return e.apply(n,r)}finally{ue=i}}function ye(t,e,n){var r=Ot(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ve(t,e){return function(){return ye(this,t,e)}}function be(t,e){return function(){return ye(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ce={mouseenter:"mouseover",mouseleave:"mouseout"}));var _e=[null];function xe(t,e){this._groups=t,this._parents=e}function we(){return new xe([[document.documentElement]],_e)}xe.prototype=we.prototype={constructor:xe,select:function(t){"function"!=typeof t&&(t=pt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new xe(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=mt(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],l=s.length,c=0;c<l;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new xe(r,i)},filter:function(t){"function"!=typeof t&&(t=yt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new xe(r,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),u=-1,this.each((function(t){p[++u]=t})),p;var n,r=e?xt:_t,i=this._parents,a=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var o=a.length,s=new Array(o),l=new Array(o),c=new Array(o),u=0;u<o;++u){var h=i[u],f=a[u],d=f.length,p=t.call(h,h&&h.__data__,u,i),g=p.length,m=l[u]=new Array(g),y=s[u]=new Array(g);r(h,f,m,y,c[u]=new Array(d),p,e);for(var v,b,_=0,x=0;_<g;++_)if(v=m[_]){for(_>=x&&(x=_+1);!(b=y[x])&&++x<g;);v._next=b||null}}return(s=new xe(s,i))._enter=l,s._exit=c,s},enter:function(){return new xe(this._enter||this._groups.map(vt),this._parents)},exit:function(){return new xe(this._exit||this._groups.map(vt),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l,c=e[s],u=n[s],h=c.length,f=o[s]=new Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(f[d]=l);for(;s<r;++s)o[s]=e[s];return new xe(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=wt);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],l=s.length,c=i[a]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(e)}return new xe(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=Et(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Tt:St:"function"==typeof e?n.local?Dt:Nt:n.local?Mt:At)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Lt:"function"==typeof e?It:Bt)(t,e,null==n?"":n)):Rt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ft:"function"==typeof e?zt:Pt)(t,e)):this.node()[t]},classed:function(t,e){var n=qt(t+"");if(arguments.length<2){for(var r=jt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Vt:e?Wt:Yt)(n,e))},text:function(t){return arguments.length?this.each(null==t?Gt:("function"==typeof t?Zt:Xt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Kt:("function"==typeof t?Jt:Qt)(t)):this.node().innerHTML},raise:function(){return this.each(te)},lower:function(){return this.each(ee)},append:function(t){var e="function"==typeof t?t:ie(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:ie(t),r=null==e?ae:"function"==typeof e?e:pt(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(oe)},clone:function(t){return this.select(t?le:se)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=de(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?ge:pe,null==n&&(n=!1),r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<o;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?be:ve)(t,e))}};const ke=we;function Ce(t){return"string"==typeof t?new xe([[document.querySelector(t)]],[document.documentElement]):new xe([[t]],_e)}function Ee(){ue.stopImmediatePropagation()}function Se(){ue.preventDefault(),ue.stopImmediatePropagation()}function Te(t){var e=t.document.documentElement,n=Ce(t).on("dragstart.drag",Se,!0);"onselectstart"in e?n.on("selectstart.drag",Se,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Ae(t,e){var n=t.document.documentElement,r=Ce(t).on("dragstart.drag",null);e&&(r.on("click.drag",Se,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Me(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ne(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function De(){}var Oe=.7,Le=1/Oe,Be="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fe=/^#([0-9a-f]{3,8})$/,Pe=new RegExp("^rgb\\("+[Be,Be,Be]+"\\)$"),ze=new RegExp("^rgb\\("+[Re,Re,Re]+"\\)$"),qe=new RegExp("^rgba\\("+[Be,Be,Be,Ie]+"\\)$"),je=new RegExp("^rgba\\("+[Re,Re,Re,Ie]+"\\)$"),He=new RegExp("^hsl\\("+[Ie,Re,Re]+"\\)$"),Ue=new RegExp("^hsla\\("+[Ie,Re,Re,Ie]+"\\)$"),$e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function We(){return this.rgb().formatHex()}function Ye(){return this.rgb().formatRgb()}function Ve(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Fe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ge(e):3===n?new Qe(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Xe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Xe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Pe.exec(t))?new Qe(e[1],e[2],e[3],1):(e=ze.exec(t))?new Qe(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qe.exec(t))?Xe(e[1],e[2],e[3],e[4]):(e=je.exec(t))?Xe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=He.exec(t))?nn(e[1],e[2]/100,e[3]/100,1):(e=Ue.exec(t))?nn(e[1],e[2]/100,e[3]/100,e[4]):$e.hasOwnProperty(t)?Ge($e[t]):"transparent"===t?new Qe(NaN,NaN,NaN,0):null}function Ge(t){return new Qe(t>>16&255,t>>8&255,255&t,1)}function Xe(t,e,n,r){return r<=0&&(t=e=n=NaN),new Qe(t,e,n,r)}function Ze(t){return t instanceof De||(t=Ve(t)),t?new Qe((t=t.rgb()).r,t.g,t.b,t.opacity):new Qe}function Ke(t,e,n,r){return 1===arguments.length?Ze(t):new Qe(t,e,n,null==r?1:r)}function Qe(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Je(){return"#"+en(this.r)+en(this.g)+en(this.b)}function tn(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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))+(1===t?")":", "+t+")")}function en(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function nn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new on(t,e,n,r)}function rn(t){if(t instanceof on)return new on(t.h,t.s,t.l,t.opacity);if(t instanceof De||(t=Ve(t)),!t)return new on;if(t instanceof on)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new on(o,s,l,t.opacity)}function an(t,e,n,r){return 1===arguments.length?rn(t):new on(t,e,n,null==r?1:r)}function on(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function sn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function ln(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function cn(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return ln((n-r/e)*e,o,i,a,s)}}function un(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return ln((n-r/e)*e,i,a,o,s)}}function hn(t){return function(){return t}}function fn(t,e){return function(n){return t+n*e}}function dn(t,e){var n=e-t;return n?fn(t,n>180||n<-180?n-360*Math.round(n/360):n):hn(isNaN(t)?e:t)}function pn(t,e){var n=e-t;return n?fn(t,n):hn(isNaN(t)?e:t)}Me(De,Ve,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:We,formatHex:We,formatHsl:function(){return rn(this).formatHsl()},formatRgb:Ye,toString:Ye}),Me(Qe,Ke,Ne(De,{brighter:function(t){return t=null==t?Le:Math.pow(Le,t),new Qe(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Oe:Math.pow(Oe,t),new Qe(this.r*t,this.g*t,this.b*t,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:Je,formatHex:Je,formatRgb:tn,toString:tn})),Me(on,an,Ne(De,{brighter:function(t){return t=null==t?Le:Math.pow(Le,t),new on(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Oe:Math.pow(Oe,t),new on(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Qe(sn(t>=240?t-240:t+120,i,r),sn(t,i,r),sn(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const gn=function t(e){var n=function(t){return 1==(t=+t)?pn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):hn(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Ke(t)).r,(e=Ke(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=pn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function mn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Ke(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}var yn=mn(cn),vn=mn(un);function bn(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function _n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function xn(t,e){return(_n(e)?bn:wn)(t,e)}function wn(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=Mn(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function kn(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Cn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function En(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Mn(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Sn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Tn=new RegExp(Sn.source,"g");function An(t,e){var n,r,i,a=Sn.lastIndex=Tn.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(n=Sn.exec(t))&&(r=Tn.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:Cn(n,r)})),a=Tn.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function Mn(t,e){var n,r=typeof e;return null==e||"boolean"===r?hn(e):("number"===r?Cn:"string"===r?(n=Ve(e))?(e=n,gn):An:e instanceof Ve?gn:e instanceof Date?kn:_n(e)?bn:Array.isArray(e)?wn:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?En:Cn)(t,e)}function Nn(){for(var t,e=ue;t=e.sourceEvent;)e=t;return e}function Dn(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function On(t,e,n){arguments.length<3&&(n=e,e=Nn().changedTouches);for(var r,i=0,a=e?e.length:0;i<a;++i)if((r=e[i]).identifier===n)return Dn(t,r);return null}function Ln(t){var e=Nn();return e.changedTouches&&(e=e.changedTouches[0]),Dn(t,e)}var Bn,In,Rn=0,Fn=0,Pn=0,zn=0,qn=0,jn=0,Hn="object"==typeof performance&&performance.now?performance:Date,Un="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $n(){return qn||(Un(Wn),qn=Hn.now()+jn)}function Wn(){qn=0}function Yn(){this._call=this._time=this._next=null}function Vn(t,e,n){var r=new Yn;return r.restart(t,e,n),r}function Gn(){$n(),++Rn;for(var t,e=Bn;e;)(t=qn-e._time)>=0&&e._call.call(null,t),e=e._next;--Rn}function Xn(){qn=(zn=Hn.now())+jn,Rn=Fn=0;try{Gn()}finally{Rn=0,function(){for(var t,e,n=Bn,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Bn=e);In=t,Kn(r)}(),qn=0}}function Zn(){var t=Hn.now(),e=t-zn;e>1e3&&(jn-=e,zn=t)}function Kn(t){Rn||(Fn&&(Fn=clearTimeout(Fn)),t-qn>24?(t<1/0&&(Fn=setTimeout(Xn,t-Hn.now()-jn)),Pn&&(Pn=clearInterval(Pn))):(Pn||(zn=Hn.now(),Pn=setInterval(Zn,1e3)),Rn=1,Un(Xn)))}function Qn(t,e,n){var r=new Yn;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}Yn.prototype=Vn.prototype={constructor:Yn,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?$n():+n)+(null==e?0:+e),this._next||In===this||(In?In._next=this:Bn=this,In=this),this._call=t,this._time=n,Kn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kn())}};var Jn=ft("start","end","cancel","interrupt"),tr=[];function er(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(l){var c,u,h,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return Qn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(Qn((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Vn((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Jn,tween:tr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function nr(t,e){var n=ir(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function rr(t,e){var n=ir(t,e);if(n.state>3)throw new Error("too late; already running");return n}function ir(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ar(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var or,sr,lr,cr,ur=180/Math.PI,hr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fr(t,e,n,r,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*ur,skewX:Math.atan(l)*ur,scaleX:o,scaleY:s}}function dr(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var l=o.push("translate(",null,e,null,n);s.push({i:l-4,x:Cn(t,i)},{i:l-2,x:Cn(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Cn(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,l),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Cn(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,l),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Cn(t,n)},{i:s-2,x:Cn(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,n=-1,r=l.length;++n<r;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var pr=dr((function(t){return"none"===t?hr:(or||(or=document.createElement("DIV"),sr=document.documentElement,lr=document.defaultView),or.style.transform=t,t=lr.getComputedStyle(sr.appendChild(or),null).getPropertyValue("transform"),sr.removeChild(or),fr(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),gr=dr((function(t){return null==t?hr:(cr||(cr=document.createElementNS("http://www.w3.org/2000/svg","g")),cr.setAttribute("transform",t),(t=cr.transform.baseVal.consolidate())?fr((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):hr)}),", ",")",")");function mr(t,e){var n,r;return function(){var i=rr(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function yr(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=rr(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function vr(t,e,n){var r=t._id;return t.each((function(){var t=rr(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ir(t,r).value[e]}}function br(t,e){var n;return("number"==typeof e?Cn:e instanceof Ve?gn:(n=Ve(e))?(e=n,gn):An)(t,e)}function _r(t){return function(){this.removeAttribute(t)}}function xr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function wr(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function kr(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function Cr(t,e,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttribute(t))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,l));this.removeAttribute(t)}}function Er(t,e,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,l));this.removeAttributeNS(t.space,t.local)}}function Sr(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Tr(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Ar(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Tr(t,i)),n}return i._value=e,i}function Mr(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Sr(t,i)),n}return i._value=e,i}function Nr(t,e){return function(){nr(this,t).delay=+e.apply(this,arguments)}}function Dr(t,e){return e=+e,function(){nr(this,t).delay=e}}function Or(t,e){return function(){rr(this,t).duration=+e.apply(this,arguments)}}function Lr(t,e){return e=+e,function(){rr(this,t).duration=e}}function Br(t,e){if("function"!=typeof e)throw new Error;return function(){rr(this,t).ease=e}}function Ir(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?nr:rr;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Rr=ke.prototype.constructor;function Fr(t){return function(){this.style.removeProperty(t)}}function Pr(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function zr(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Pr(t,a,n)),r}return a._value=e,a}function qr(t){return function(e){this.textContent=t.call(this,e)}}function jr(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&qr(r)),e}return r._value=t,r}var Hr=0;function Ur(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function $r(t){return ke().transition(t)}function Wr(){return++Hr}var Yr=ke.prototype;function Vr(t){return t*t*t}function Gr(t){return--t*t*t+1}function Xr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Ur.prototype=$r.prototype={constructor:Ur,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=pt(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,l,c=r[o],u=c.length,h=a[o]=new Array(u),f=0;f<u;++f)(s=c[f])&&(l=t.call(s,s.__data__,f,c))&&("__data__"in s&&(l.__data__=s.__data__),h[f]=l,er(h[f],e,n,f,h,ir(s,n)));return new Ur(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=mt(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var f,d=t.call(l,l.__data__,h,c),p=ir(l,n),g=0,m=d.length;g<m;++g)(f=d[g])&&er(f,e,n,g,d,p);a.push(d),o.push(l)}return new Ur(a,o,e,n)},filter:function(t){"function"!=typeof t&&(t=yt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new Ur(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l,c=e[s],u=n[s],h=c.length,f=o[s]=new Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(f[d]=l);for(;s<r;++s)o[s]=e[s];return new Ur(o,this._parents,this._name,this._id)},selection:function(){return new Rr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Wr(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=ir(o,e);er(o,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ur(r,this._parents,t,n)},call:Yr.call,nodes:Yr.nodes,node:Yr.node,size:Yr.size,empty:Yr.empty,each:Yr.each,on:function(t,e){var n=this._id;return arguments.length<2?ir(this.node(),n).on.on(t):this.each(Ir(n,t,e))},attr:function(t,e){var n=Et(t),r="transform"===n?gr:br;return this.attrTween(t,"function"==typeof e?(n.local?Er:Cr)(n,r,vr(this,"attr."+t,e)):null==e?(n.local?xr:_r)(n):(n.local?kr:wr)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Et(t);return this.tween(n,(r.local?Ar:Mr)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?pr:br;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Rt(this,t),o=(this.style.removeProperty(t),Rt(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Fr(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Rt(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=Rt(this,t)),o===l?null:o===r&&l===i?a:(i=l,a=e(r=o,s))}}(t,r,vr(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var l=rr(this,t),c=l.on,u=null==l.value[o]?a||(a=Fr(e)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=Rt(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,zr(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(vr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,jr(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ir(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?mr:yr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Nr:Dr)(e,t)):ir(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Or:Lr)(e,t)):ir(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Br(e,t)):ir(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},l={value:function(){0==--i&&a()}};n.each((function(){var n=rr(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e}))}))}};var Zr={time:null,delay:0,duration:250,ease:Xr};function Kr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Zr.time=$n(),Zr;return n}ke.prototype.interrupt=function(t){return this.each((function(){ar(this,t)}))},ke.prototype.transition=function(t){var e,n;t instanceof Ur?(e=t._id,t=t._name):(e=Wr(),(n=Zr).time=$n(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)(o=s[c])&&er(o,t,e,c,s,n||Kr(o,e));return new Ur(r,this._parents,t,e)};var Qr=[null];function Jr(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>1&&n.name===e)return new Ur([[t]],Qr,e,+r);return null}function ti(t){return function(){return t}}function ei(t,e,n){this.target=t,this.type=e,this.selection=n}function ni(){ue.stopImmediatePropagation()}function ri(){ue.preventDefault(),ue.stopImmediatePropagation()}var ii={name:"drag"},ai={name:"space"},oi={name:"handle"},si={name:"center"};function li(t){return[+t[0],+t[1]]}function ci(t){return[li(t[0]),li(t[1])]}function ui(t){return function(e){return On(e,ue.touches,t)}}var hi={name:"x",handles:["w","e"].map(bi),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},fi={name:"y",handles:["n","s"].map(bi),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},di={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(bi),input:function(t){return null==t?null:ci(t)},output:function(t){return t}},pi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},gi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},mi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},yi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},vi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function bi(t){return{type:t}}function _i(){return!ue.ctrlKey&&!ue.button}function xi(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wi(){return navigator.maxTouchPoints||"ontouchstart"in this}function ki(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ci(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ei(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Si(){return Mi(hi)}function Ti(){return Mi(fi)}function Ai(){return Mi(di)}function Mi(t){var e,n=xi,r=_i,i=wi,a=!0,o=ft("start","brush","end"),s=6;function l(e){var n=e.property("__brush",g).selectAll(".overlay").data([bi("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pi.overlay).merge(n).each((function(){var t=ki(this).extent;Ce(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([bi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return pi[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=Ce(this),e=ki(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new h(t,e,n):r}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(){if((!e||ue.touches)&&r.apply(this,arguments)){var n,i,o,s,l,h,f,d,p,g,m,y=this,v=ue.target.__data__.type,b="selection"===(a&&ue.metaKey?v="overlay":v)?ii:a&&ue.altKey?si:oi,_=t===fi?null:yi[v],x=t===hi?null:vi[v],w=ki(y),k=w.extent,C=w.selection,E=k[0][0],S=k[0][1],T=k[1][0],A=k[1][1],M=0,N=0,D=_&&x&&a&&ue.shiftKey,O=ue.touches?ui(ue.changedTouches[0].identifier):Ln,L=O(y),B=L,I=u(y,arguments,!0).beforestart();"overlay"===v?(C&&(p=!0),w.selection=C=[[n=t===fi?E:L[0],o=t===hi?S:L[1]],[l=t===fi?T:n,f=t===hi?A:o]]):(n=C[0][0],o=C[0][1],l=C[1][0],f=C[1][1]),i=n,s=o,h=l,d=f;var R=Ce(y).attr("pointer-events","none"),F=R.selectAll(".overlay").attr("cursor",pi[v]);if(ue.touches)I.moved=z,I.ended=j;else{var P=Ce(ue.view).on("mousemove.brush",z,!0).on("mouseup.brush",j,!0);a&&P.on("keydown.brush",H,!0).on("keyup.brush",U,!0),Te(ue.view)}ni(),ar(y),c.call(y),I.start()}function z(){var t=O(y);!D||g||m||(Math.abs(t[0]-B[0])>Math.abs(t[1]-B[1])?m=!0:g=!0),B=t,p=!0,ri(),q()}function q(){var t;switch(M=B[0]-L[0],N=B[1]-L[1],b){case ai:case ii:_&&(M=Math.max(E-n,Math.min(T-l,M)),i=n+M,h=l+M),x&&(N=Math.max(S-o,Math.min(A-f,N)),s=o+N,d=f+N);break;case oi:_<0?(M=Math.max(E-n,Math.min(T-n,M)),i=n+M,h=l):_>0&&(M=Math.max(E-l,Math.min(T-l,M)),i=n,h=l+M),x<0?(N=Math.max(S-o,Math.min(A-o,N)),s=o+N,d=f):x>0&&(N=Math.max(S-f,Math.min(A-f,N)),s=o,d=f+N);break;case si:_&&(i=Math.max(E,Math.min(T,n-M*_)),h=Math.max(E,Math.min(T,l+M*_))),x&&(s=Math.max(S,Math.min(A,o-N*x)),d=Math.max(S,Math.min(A,f+N*x)))}h<i&&(_*=-1,t=n,n=l,l=t,t=i,i=h,h=t,v in gi&&F.attr("cursor",pi[v=gi[v]])),d<s&&(x*=-1,t=o,o=f,f=t,t=s,s=d,d=t,v in mi&&F.attr("cursor",pi[v=mi[v]])),w.selection&&(C=w.selection),g&&(i=C[0][0],h=C[1][0]),m&&(s=C[0][1],d=C[1][1]),C[0][0]===i&&C[0][1]===s&&C[1][0]===h&&C[1][1]===d||(w.selection=[[i,s],[h,d]],c.call(y),I.brush())}function j(){if(ni(),ue.touches){if(ue.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Ae(ue.view,p),P.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);R.attr("pointer-events","all"),F.attr("cursor",pi.overlay),w.selection&&(C=w.selection),Ci(C)&&(w.selection=null,c.call(y)),I.end()}function H(){switch(ue.keyCode){case 16:D=_&&x;break;case 18:b===oi&&(_&&(l=h-M*_,n=i+M*_),x&&(f=d-N*x,o=s+N*x),b=si,q());break;case 32:b!==oi&&b!==si||(_<0?l=h-M:_>0&&(n=i-M),x<0?f=d-N:x>0&&(o=s-N),b=ai,F.attr("cursor",pi.selection),q());break;default:return}ri()}function U(){switch(ue.keyCode){case 16:D&&(g=m=D=!1,q());break;case 18:b===si&&(_<0?l=h:_>0&&(n=i),x<0?f=d:x>0&&(o=s),b=oi,q());break;case 32:b===ai&&(ue.altKey?(_&&(l=h-M*_,n=i+M*_),x&&(f=d-N*x,o=s+N*x),b=si):(_<0?l=h:_>0&&(n=i),x<0?f=d:x>0&&(o=s),b=oi),F.attr("cursor",pi[v]),q());break;default:return}ri()}}function d(){u(this,arguments).moved()}function p(){u(this,arguments).ended()}function g(){var e=this.__brush||{selection:null};return e.extent=ci(n.apply(this,arguments)),e.dim=t,e}return l.move=function(e,n){e.selection?e.on("start.brush",(function(){u(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){u(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=u(e,arguments),a=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Mn(a,o);function l(t){r.selection=1===t&&null===o?null:s(t),c.call(e),i.brush()}return null!==a&&null!==o?l:l(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,a=t.input("function"==typeof n?n.apply(e,r):n,i.extent),o=u(e,r).beforestart();ar(e),i.selection=null===a?null:a,c.call(e),o.start().brush().end()}))},l.clear=function(t){l.move(t,null)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){me(new ei(l,e,t.output(this.state.selection)),o.apply,o,[e,this.that,this.args])}},l.extent=function(t){return arguments.length?(n="function"==typeof t?t:ti(ci(t)),l):n},l.filter=function(t){return arguments.length?(r="function"==typeof t?t:ti(!!t),l):r},l.touchable=function(t){return arguments.length?(i="function"==typeof t?t:ti(!!t),l):i},l.handleSize=function(t){return arguments.length?(s=+t,l):s},l.keyModifiers=function(t){return arguments.length?(a=!!t,l):a},l.on=function(){var t=o.on.apply(o,arguments);return t===o?l:t},l}var Ni=Math.cos,Di=Math.sin,Oi=Math.PI,Li=Oi/2,Bi=2*Oi,Ii=Math.max;function Ri(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}function Fi(){var t=0,e=null,n=null,r=null;function i(i){var a,o,s,l,c,u,h=i.length,f=[],d=k(h),p=[],g=[],m=g.groups=new Array(h),y=new Array(h*h);for(a=0,c=-1;++c<h;){for(o=0,u=-1;++u<h;)o+=i[c][u];f.push(o),p.push(k(h)),a+=o}for(e&&d.sort((function(t,n){return e(f[t],f[n])})),n&&p.forEach((function(t,e){t.sort((function(t,r){return n(i[e][t],i[e][r])}))})),l=(a=Ii(0,Bi-t*h)/a)?t:Bi/h,o=0,c=-1;++c<h;){for(s=o,u=-1;++u<h;){var v=d[c],b=p[v][u],_=i[v][b],x=o,w=o+=_*a;y[b*h+v]={index:v,subindex:b,startAngle:x,endAngle:w,value:_}}m[v]={index:v,startAngle:s,endAngle:o,value:f[v]},o+=l}for(c=-1;++c<h;)for(u=c-1;++u<h;){var C=y[u*h+c],E=y[c*h+u];(C.value||E.value)&&g.push(C.value<E.value?{source:E,target:C}:{source:C,target:E})}return r?g.sort(r):g}return i.padAngle=function(e){return arguments.length?(t=Ii(0,e),i):t},i.sortGroups=function(t){return arguments.length?(e=t,i):e},i.sortSubgroups=function(t){return arguments.length?(n=t,i):n},i.sortChords=function(t){return arguments.length?(null==t?r=null:(r=Ri(t))._=t,i):r&&r._},i}var Pi=Array.prototype.slice;function zi(t){return function(){return t}}var qi=Math.PI,ji=2*qi,Hi=1e-6,Ui=ji-Hi;function $i(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Wi(){return new $i}$i.prototype=Wi.prototype={constructor:$i,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,l=r-e,c=a-t,u=o-e,h=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>Hi)if(Math.abs(u*s-l*c)>Hi&&i){var f=n-a,d=r-o,p=s*s+l*l,g=f*f+d*d,m=Math.sqrt(p),y=Math.sqrt(h),v=i*Math.tan((qi-Math.acos((p+h-g)/(2*m*y)))/2),b=v/y,_=v/m;Math.abs(b-1)>Hi&&(this._+="L"+(t+b*c)+","+(e+b*u)),this._+="A"+i+","+i+",0,0,"+ +(u*f>c*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+o,c=e+s,u=1^a,h=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Hi||Math.abs(this._y1-c)>Hi)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%ji+ji),h>Ui?this._+="A"+n+","+n+",0,1,"+u+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>Hi&&(this._+="A"+n+","+n+",0,"+ +(h>=qi)+","+u+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Yi=Wi;function Vi(t){return t.source}function Gi(t){return t.target}function Xi(t){return t.radius}function Zi(t){return t.startAngle}function Ki(t){return t.endAngle}function Qi(){var t=Vi,e=Gi,n=Xi,r=Zi,i=Ki,a=null;function o(){var o,s=Pi.call(arguments),l=t.apply(this,s),c=e.apply(this,s),u=+n.apply(this,(s[0]=l,s)),h=r.apply(this,s)-Li,f=i.apply(this,s)-Li,d=u*Ni(h),p=u*Di(h),g=+n.apply(this,(s[0]=c,s)),m=r.apply(this,s)-Li,y=i.apply(this,s)-Li;if(a||(a=o=Yi()),a.moveTo(d,p),a.arc(0,0,u,h,f),h===m&&f===y||(a.quadraticCurveTo(0,0,g*Ni(m),g*Di(m)),a.arc(0,0,g,m,y)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+""||null}return o.radius=function(t){return arguments.length?(n="function"==typeof t?t:zi(+t),o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:zi(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:zi(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}var Ji="$";function ta(){}function ea(t,e){var n=new ta;if(t instanceof ta)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i<a;)n.set(i,t[i]);else for(;++i<a;)n.set(e(r=t[i],i,t),r)}else if(t)for(var o in t)n.set(o,t[o]);return n}ta.prototype=ea.prototype={constructor:ta,has:function(t){return Ji+t in this},get:function(t){return this[Ji+t]},set:function(t,e){return this[Ji+t]=e,this},remove:function(t){var e=Ji+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===Ji&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===Ji&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===Ji&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===Ji&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===Ji&&++t;return t},empty:function(){for(var t in this)if(t[0]===Ji)return!1;return!0},each:function(t){for(var e in this)e[0]===Ji&&t(this[e],e.slice(1),this)}};const na=ea;function ra(){var t,e,n,r=[],i=[];function a(n,i,o,s){if(i>=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var l,c,u,h=-1,f=n.length,d=r[i++],p=na(),g=o();++h<f;)(u=p.get(l=d(c=n[h])+""))?u.push(c):p.set(l,[c]);return p.each((function(t,e){s(g,e,a(t,i,o,s))})),g}function o(t,n){if(++n>r.length)return t;var a,s=i[n-1];return null!=e&&n>=r.length?a=t.entries():(a=[],t.each((function(t,e){a.push({key:e,values:o(t,n)})}))),null!=s?a.sort((function(t,e){return s(t.key,e.key)})):a}return n={object:function(t){return a(t,0,ia,aa)},map:function(t){return a(t,0,oa,sa)},entries:function(t){return o(a(t,0,oa,sa),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function ia(){return{}}function aa(t,e,n){t[e]=n}function oa(){return na()}function sa(t,e,n){t.set(e,n)}function la(){}var ca=na.prototype;function ua(t,e){var n=new la;if(t instanceof la)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}la.prototype=ua.prototype={constructor:la,has:ca.has,add:function(t){return this[Ji+(t+="")]=t,this},remove:ca.remove,clear:ca.clear,values:ca.keys,size:ca.size,empty:ca.empty,each:ca.each};const ha=ua;function fa(t){var e=[];for(var n in t)e.push(n);return e}function da(t){var e=[];for(var n in t)e.push(t[n]);return e}function pa(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e}var ga=Math.PI/180,ma=180/Math.PI,ya=.96422,va=.82521,ba=4/29,_a=6/29,xa=3*_a*_a;function wa(t){if(t instanceof Ea)return new Ea(t.l,t.a,t.b,t.opacity);if(t instanceof La)return Ba(t);t instanceof Qe||(t=Ze(t));var e,n,r=Ma(t.r),i=Ma(t.g),a=Ma(t.b),o=Sa((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?e=n=o:(e=Sa((.4360747*r+.3850649*i+.1430804*a)/ya),n=Sa((.0139322*r+.0971045*i+.7141733*a)/va)),new Ea(116*o-16,500*(e-o),200*(o-n),t.opacity)}function ka(t,e){return new Ea(t,0,0,null==e?1:e)}function Ca(t,e,n,r){return 1===arguments.length?wa(t):new Ea(t,e,n,null==r?1:r)}function Ea(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Sa(t){return t>.008856451679035631?Math.pow(t,1/3):t/xa+ba}function Ta(t){return t>_a?t*t*t:xa*(t-ba)}function Aa(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ma(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Na(t){if(t instanceof La)return new La(t.h,t.c,t.l,t.opacity);if(t instanceof Ea||(t=wa(t)),0===t.a&&0===t.b)return new La(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ma;return new La(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Da(t,e,n,r){return 1===arguments.length?Na(t):new La(n,e,t,null==r?1:r)}function Oa(t,e,n,r){return 1===arguments.length?Na(t):new La(t,e,n,null==r?1:r)}function La(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Ba(t){if(isNaN(t.h))return new Ea(t.l,0,0,t.opacity);var e=t.h*ga;return new Ea(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Me(Ea,Ca,Ne(De,{brighter:function(t){return new Ea(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Ea(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Qe(Aa(3.1338561*(e=ya*Ta(e))-1.6168667*(t=1*Ta(t))-.4906146*(n=va*Ta(n))),Aa(-.9787684*e+1.9161415*t+.033454*n),Aa(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Me(La,Oa,Ne(De,{brighter:function(t){return new La(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new La(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ba(this).rgb()}}));var Ia=-.14861,Ra=1.78277,Fa=-.29227,Pa=-.90649,za=1.97294,qa=za*Pa,ja=za*Ra,Ha=Ra*Fa-Pa*Ia;function Ua(t){if(t instanceof Wa)return new Wa(t.h,t.s,t.l,t.opacity);t instanceof Qe||(t=Ze(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Ha*r+qa*e-ja*n)/(Ha+qa-ja),a=r-i,o=(za*(n-i)-Fa*a)/Pa,s=Math.sqrt(o*o+a*a)/(za*i*(1-i)),l=s?Math.atan2(o,a)*ma-120:NaN;return new Wa(l<0?l+360:l,s,i,t.opacity)}function $a(t,e,n,r){return 1===arguments.length?Ua(t):new Wa(t,e,n,null==r?1:r)}function Wa(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Me(Wa,$a,Ne(De,{brighter:function(t){return t=null==t?Le:Math.pow(Le,t),new Wa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Oe:Math.pow(Oe,t),new Wa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*ga,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Qe(255*(e+n*(Ia*r+Ra*i)),255*(e+n*(Fa*r+Pa*i)),255*(e+n*(za*r)),this.opacity)}}));var Ya=Array.prototype.slice;function Va(t,e){return t-e}function Ga(t){return function(){return t}}function Xa(t,e){for(var n,r=-1,i=e.length;++r<i;)if(n=Za(t,e[r]))return n;return 0}function Za(t,e){for(var n=e[0],r=e[1],i=-1,a=0,o=t.length,s=o-1;a<o;s=a++){var l=t[a],c=l[0],u=l[1],h=t[s],f=h[0],d=h[1];if(Ka(l,h,e))return 0;u>r!=d>r&&n<(f-c)*(r-u)/(d-u)+c&&(i=-i)}return i}function Ka(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i<=a&&a<=o||o<=a&&a<=i)}function Qa(){}var Ja=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function to(){var t=1,e=1,n=N,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Va);else{var r=y(t),i=r[0],o=r[1];e=M(i,o,e),e=k(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var a=[],s=[];return function(n,r,i){var a,s,l,c,u,h,f=new Array,d=new Array;for(a=s=-1,c=n[0]>=r,Ja[c<<1].forEach(p);++a<t-1;)l=c,c=n[a+1]>=r,Ja[l|c<<1].forEach(p);for(Ja[c<<0].forEach(p);++s<e-1;){for(a=-1,c=n[s*t+t]>=r,u=n[s*t]>=r,Ja[c<<1|u<<2].forEach(p);++a<t-1;)l=c,c=n[s*t+t+a+1]>=r,h=u,u=n[s*t+a+1]>=r,Ja[l|c<<1|u<<2|h<<3].forEach(p);Ja[c|u<<3].forEach(p)}for(a=-1,u=n[s*t]>=r,Ja[u<<2].forEach(p);++a<t-1;)h=u,u=n[s*t+a+1]>=r,Ja[u<<2|h<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+a,t[0][1]+s],l=[t[1][0]+a,t[1][1]+s],c=o(r),u=o(l);(e=d[c])?(n=f[u])?(delete d[e.end],delete f[n.start],e===n?(e.ring.push(l),i(e.ring)):f[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(l),d[e.end=u]=e):(e=f[u])?(n=d[c])?(delete f[e.start],delete d[n.end],e===n?(e.ring.push(l),i(e.ring)):f[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete f[e.start],e.ring.unshift(r),f[e.start=c]=e):f[c]=d[u]={start:c,end:u,ring:[r,l]}}Ja[u<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}(t)>0?a.push([t]):s.push(t)})),s.forEach((function(t){for(var e,n=0,r=a.length;n<r;++n)if(-1!==Xa((e=a[n])[0],t))return void e.push(t)})),{type:"MultiPolygon",value:i,coordinates:a}}function o(e){return 2*e[0]+e[1]*(t+1)*4}function s(n,r,i){n.forEach((function(n){var a,o=n[0],s=n[1],l=0|o,c=0|s,u=r[c*t+l];o>0&&o<t&&l===o&&(a=r[c*t+l-1],n[0]=o+(i-a)/(u-a)-.5),s>0&&s<e&&c===s&&(a=r[(c-1)*t+l],n[1]=s+(i-a)/(u-a)-.5)}))}return i.contour=a,i.size=function(n){if(!arguments.length)return[t,e];var r=Math.ceil(n[0]),a=Math.ceil(n[1]);if(!(r>0&&a>0))throw new Error("invalid size");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Ga(Ya.call(t)):Ga(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:Qa,i):r===s},i}function eo(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o<i;++o)for(var s=0,l=0;s<r+n;++s)s<r&&(l+=t.data[s+o*r]),s>=n&&(s>=a&&(l-=t.data[s-a+o*r]),e.data[s-n+o*r]=l/Math.min(s+1,r-1+a-s,a))}function no(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o<r;++o)for(var s=0,l=0;s<i+n;++s)s<i&&(l+=t.data[o+s*r]),s>=n&&(s>=a&&(l-=t.data[o+(s-a)*r]),e.data[o+(s-n)*r]=l/Math.min(s+1,i-1+a-s,a))}function ro(t){return t[0]}function io(t){return t[1]}function ao(){return 1}function oo(){var t=ro,e=io,n=ao,r=960,i=500,a=20,o=2,s=3*a,l=r+2*s>>o,c=i+2*s>>o,u=Ga(20);function h(r){var i=new Float32Array(l*c),h=new Float32Array(l*c);r.forEach((function(r,a,u){var h=+t(r,a,u)+s>>o,f=+e(r,a,u)+s>>o,d=+n(r,a,u);h>=0&&h<l&&f>=0&&f<c&&(i[h+f*l]+=d)})),eo({width:l,height:c,data:i},{width:l,height:c,data:h},a>>o),no({width:l,height:c,data:h},{width:l,height:c,data:i},a>>o),eo({width:l,height:c,data:i},{width:l,height:c,data:h},a>>o),no({width:l,height:c,data:h},{width:l,height:c,data:i},a>>o),eo({width:l,height:c,data:i},{width:l,height:c,data:h},a>>o),no({width:l,height:c,data:h},{width:l,height:c,data:i},a>>o);var d=u(i);if(!Array.isArray(d)){var p=I(i);d=M(0,p,d),(d=k(0,Math.floor(p/d)*d,d)).shift()}return to().thresholds(d).size([l,c])(i).map(f)}function f(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,o)-s,t[1]=t[1]*Math.pow(2,o)-s}function m(){return l=r+2*(s=3*a)>>o,c=i+2*s>>o,h}return h.x=function(e){return arguments.length?(t="function"==typeof e?e:Ga(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:Ga(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:Ga(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error("invalid size");return r=e,i=n,m()},h.cellSize=function(t){if(!arguments.length)return 1<<o;if(!((t=+t)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),m()},h.thresholds=function(t){return arguments.length?(u="function"==typeof t?t:Array.isArray(t)?Ga(Ya.call(t)):Ga(t),h):u},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),m()},h}function so(t){return function(){return t}}function lo(t,e,n,r,i,a,o,s,l,c){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=l,this._=c}function co(){return!ue.ctrlKey&&!ue.button}function uo(){return this.parentNode}function ho(t){return null==t?{x:ue.x,y:ue.y}:t}function fo(){return navigator.maxTouchPoints||"ontouchstart"in this}function po(){var t,e,n,r,i=co,a=uo,o=ho,s=fo,l={},c=ft("start","drag","end"),u=0,h=0;function f(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",m).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var o=b("mouse",a.apply(this,arguments),Ln,this,arguments);o&&(Ce(ue.view).on("mousemove.drag",p,!0).on("mouseup.drag",g,!0),Te(ue.view),Ee(),n=!1,t=ue.clientX,e=ue.clientY,o("start"))}}function p(){if(Se(),!n){var r=ue.clientX-t,i=ue.clientY-e;n=r*r+i*i>h}l.mouse("drag")}function g(){Ce(ue.view).on("mousemove.drag mouseup.drag",null),Ae(ue.view,n),Se(),l.mouse("end")}function m(){if(i.apply(this,arguments)){var t,e,n=ue.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t<o;++t)(e=b(n[t].identifier,r,On,this,arguments))&&(Ee(),e("start"))}}function y(){var t,e,n=ue.changedTouches,r=n.length;for(t=0;t<r;++t)(e=l[n[t].identifier])&&(Se(),e("drag"))}function v(){var t,e,n=ue.changedTouches,i=n.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(e=l[n[t].identifier])&&(Ee(),e("end"))}function b(t,e,n,r,i){var a,s,h,d=n(e,t),p=c.copy();if(me(new lo(f,"beforestart",a,t,u,d[0],d[1],0,0,p),(function(){return null!=(ue.subject=a=o.apply(r,i))&&(s=a.x-d[0]||0,h=a.y-d[1]||0,!0)})))return function o(c){var g,m=d;switch(c){case"start":l[t]=o,g=u++;break;case"end":delete l[t],--u;case"drag":d=n(e,t),g=u}me(new lo(f,c,a,t,g,d[0]+s,d[1]+h,d[0]-m[0],d[1]-m[1],p),p.apply,p,[c,r,i])}}return f.filter=function(t){return arguments.length?(i="function"==typeof t?t:so(!!t),f):i},f.container=function(t){return arguments.length?(a="function"==typeof t?t:so(t),f):a},f.subject=function(t){return arguments.length?(o="function"==typeof t?t:so(t),f):o},f.touchable=function(t){return arguments.length?(s="function"==typeof t?t:so(!!t),f):s},f.on=function(){var t=c.on.apply(c,arguments);return t===c?f:t},f.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,f):Math.sqrt(h)},f}lo.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var go={},mo={};function yo(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function vo(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function bo(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function _o(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,s=0,l=a<=0,c=!1;function u(){if(l)return mo;if(c)return c=!1,go;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++<a&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=a?l=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o<a;){if(10===(r=t.charCodeAt(e=o++)))c=!0;else if(13===r)c=!0,10===t.charCodeAt(o)&&++o;else if(r!==n)continue;return t.slice(i,e)}return l=!0,t.slice(i,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(r=u())!==mo;){for(var h=[];r!==go&&r!==mo;)h.push(r),r=u();e&&null==(h=e(h,s++))||i.push(h)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return o(e[t])})).join(t)}))}function a(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?function(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+bo(-t,6):t>9999?"+"+bo(t,6):bo(t,4)}(t.getUTCFullYear())+"-"+bo(t.getUTCMonth()+1,2)+"-"+bo(t.getUTCDate(),2)+(i?"T"+bo(e,2)+":"+bo(n,2)+":"+bo(r,2)+"."+bo(i,3)+"Z":r?"T"+bo(e,2)+":"+bo(n,2)+":"+bo(r,2)+"Z":n||e?"T"+bo(e,2)+":"+bo(n,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=yo(t);return function(r,i){return e(n(r),i,t)}}(t,e):yo(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=vo(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=vo(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var xo=_o(","),wo=xo.parse,ko=xo.parseRows,Co=xo.format,Eo=xo.formatBody,So=xo.formatRows,To=xo.formatRow,Ao=xo.formatValue,Mo=_o("\t"),No=Mo.parse,Do=Mo.parseRows,Oo=Mo.format,Lo=Mo.formatBody,Bo=Mo.formatRows,Io=Mo.formatRow,Ro=Mo.formatValue;function Fo(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Po&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}var Po=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function zo(t){return+t}function qo(t){return t*t}function jo(t){return t*(2-t)}function Ho(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Uo=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),$o=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Wo=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Yo=Math.PI,Vo=Yo/2;function Go(t){return 1==+t?1:1-Math.cos(t*Vo)}function Xo(t){return Math.sin(t*Vo)}function Zo(t){return(1-Math.cos(Yo*t))/2}function Ko(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Qo(t){return Ko(1-+t)}function Jo(t){return 1-Ko(t)}function ts(t){return((t*=2)<=1?Ko(1-t):2-Ko(t-1))/2}function es(t){return 1-Math.sqrt(1-t*t)}function ns(t){return Math.sqrt(1- --t*t)}function rs(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var is=7.5625;function as(t){return 1-os(1-t)}function os(t){return(t=+t)<.36363636363636365?is*t*t:t<.7272727272727273?is*(t-=.5454545454545454)*t+.75:t<.9090909090909091?is*(t-=.8181818181818182)*t+.9375:is*(t-=.9545454545454546)*t+.984375}function ss(t){return((t*=2)<=1?1-os(1-t):os(t-1)+1)/2}var ls=1.70158,cs=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(ls),us=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(ls),hs=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(ls),fs=2*Math.PI,ds=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=fs);function i(t){return e*Ko(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*fs)},i.period=function(n){return t(e,n)},i}(1,.3),ps=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=fs);function i(t){return 1-e*Ko(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*fs)},i.period=function(n){return t(e,n)},i}(1,.3),gs=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=fs);function i(t){return((t=2*t-1)<0?e*Ko(-t)*Math.sin((r-t)/n):2-e*Ko(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*fs)},i.period=function(n){return t(e,n)},i}(1,.3);function ms(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function ys(t,e){return fetch(t,e).then(ms)}function vs(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function bs(t,e){return fetch(t,e).then(vs)}function _s(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function xs(t,e){return fetch(t,e).then(_s)}function ws(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),xs(e,n).then((function(e){return t(e,r)}))}}function ks(t,e,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=_o(t);return xs(e,n).then((function(t){return i.parse(t,r)}))}var Cs=ws(wo),Es=ws(No);function Ss(t,e){return new Promise((function(n,r){var i=new Image;for(var a in e)i[a]=e[a];i.onerror=r,i.onload=function(){n(i)},i.src=t}))}function Ts(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function As(t,e){return fetch(t,e).then(Ts)}function Ms(t){return function(e,n){return xs(e,n).then((function(e){return(new DOMParser).parseFromString(e,t)}))}}const Ns=Ms("application/xml");var Ds=Ms("text/html"),Os=Ms("image/svg+xml");function Ls(t,e){var n;function r(){var r,i,a=n.length,o=0,s=0;for(r=0;r<a;++r)o+=(i=n[r]).x,s+=i.y;for(o=o/a-t,s=s/a-e,r=0;r<a;++r)(i=n[r]).x-=o,i.y-=s}return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r}function Bs(t){return function(){return t}}function Is(){return 1e-6*(Math.random()-.5)}function Rs(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a,o,s,l,c,u,h,f,d=t._root,p={data:r},g=t._x0,m=t._y0,y=t._x1,v=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=e>=(a=(g+y)/2))?g=a:y=a,(u=n>=(o=(m+v)/2))?m=o:v=o,i=d,!(d=d[h=u<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),l=+t._y.call(null,d.data),e===s&&n===l)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(a=(g+y)/2))?g=a:y=a,(u=n>=(o=(m+v)/2))?m=o:v=o}while((h=u<<1|c)==(f=(l>=o)<<1|s>=a));return i[f]=d,i[h]=p,t}function Fs(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Ps(t){return t[0]}function zs(t){return t[1]}function qs(t,e,n){var r=new js(null==e?Ps:e,null==n?zs:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function js(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Hs(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Us=qs.prototype=js.prototype;function $s(t){return t.x+t.vx}function Ws(t){return t.y+t.vy}function Ys(t){var e,n,r=1,i=1;function a(){for(var t,a,s,l,c,u,h,f=e.length,d=0;d<i;++d)for(a=qs(e,$s,Ws).visitAfter(o),t=0;t<f;++t)s=e[t],u=n[s.index],h=u*u,l=s.x+s.vx,c=s.y+s.vy,a.visit(p);function p(t,e,n,i,a){var o=t.data,f=t.r,d=u+f;if(!o)return e>l+d||i<l-d||n>c+d||a<c-d;if(o.index>s.index){var p=l-o.x-o.vx,g=c-o.y-o.vy,m=p*p+g*g;m<d*d&&(0===p&&(m+=(p=Is())*p),0===g&&(m+=(g=Is())*g),m=(d-(m=Math.sqrt(m)))/m*r,s.vx+=(p*=m)*(d=(f*=f)/(h+f)),s.vy+=(g*=m)*d,o.vx-=p*(d=1-d),o.vy-=g*d)}}}function o(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function s(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;r<a;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=Bs(null==t?1:+t)),a.initialize=function(t){e=t,s()},a.iterations=function(t){return arguments.length?(i=+t,a):i},a.strength=function(t){return arguments.length?(r=+t,a):r},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:Bs(+e),s(),a):t},a}function Vs(t){return t.index}function Gs(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Xs(t){var e,n,r,i,a,o=Vs,s=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},l=Bs(30),c=1;function u(r){for(var i=0,o=t.length;i<c;++i)for(var s,l,u,h,f,d,p,g=0;g<o;++g)l=(s=t[g]).source,h=(u=s.target).x+u.vx-l.x-l.vx||Is(),f=u.y+u.vy-l.y-l.vy||Is(),h*=d=((d=Math.sqrt(h*h+f*f))-n[g])/d*r*e[g],f*=d,u.vx-=h*(p=a[g]),u.vy-=f*p,l.vx+=h*(p=1-p),l.vy+=f*p}function h(){if(r){var s,l,c=r.length,u=t.length,h=na(r,o);for(s=0,i=new Array(c);s<u;++s)(l=t[s]).index=s,"object"!=typeof l.source&&(l.source=Gs(h,l.source)),"object"!=typeof l.target&&(l.target=Gs(h,l.target)),i[l.source.index]=(i[l.source.index]||0)+1,i[l.target.index]=(i[l.target.index]||0)+1;for(s=0,a=new Array(u);s<u;++s)l=t[s],a[s]=i[l.source.index]/(i[l.source.index]+i[l.target.index]);e=new Array(u),f(),n=new Array(u),d()}}function f(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+s(t[n],n,t)}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+l(t[e],e,t)}return null==t&&(t=[]),u.initialize=function(t){r=t,h()},u.links=function(e){return arguments.length?(t=e,h(),u):t},u.id=function(t){return arguments.length?(o=t,u):o},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(s="function"==typeof t?t:Bs(+t),f(),u):s},u.distance=function(t){return arguments.length?(l="function"==typeof t?t:Bs(+t),d(),u):l},u}function Zs(t){return t.x}function Ks(t){return t.y}Us.copy=function(){var t,e,n=new js(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Hs(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=Hs(e));return n},Us.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return Rs(this.cover(e,n),e,n,t)},Us.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),s=new Array(a),l=1/0,c=1/0,u=-1/0,h=-1/0;for(n=0;n<a;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(o[n]=r,s[n]=i,r<l&&(l=r),r>u&&(u=r),i<c&&(c=i),i>h&&(h=i));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;n<a;++n)Rs(this,o[n],s[n],t[n]);return this},Us.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,a=(r=Math.floor(e))+1;else{for(var o,s,l=i-n,c=this._root;n>t||t>=i||r>e||e>=a;)switch(s=(e<r)<<1|t<n,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=n+l,a=r+l;break;case 1:n=i-l,a=r+l;break;case 2:i=n+l,r=a-l;break;case 3:n=i-l,r=a-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},Us.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Us.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Us.find=function(t,e,n){var r,i,a,o,s,l,c,u=this._x0,h=this._y0,f=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new Fs(g,u,h,f,d)),null==n?n=1/0:(u=t-n,h=e-n,f=t+n,d=e+n,n*=n);l=p.pop();)if(!(!(g=l.node)||(i=l.x0)>f||(a=l.y0)>d||(o=l.x1)<u||(s=l.y1)<h))if(g.length){var m=(i+o)/2,y=(a+s)/2;p.push(new Fs(g[3],m,y,o,s),new Fs(g[2],i,y,m,s),new Fs(g[1],m,a,o,y),new Fs(g[0],i,a,m,y)),(c=(e>=y)<<1|t>=m)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var v=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),_=v*v+b*b;if(_<n){var x=Math.sqrt(n=_);u=t-x,h=e-x,f=t+x,d=e+x,r=g.data}}return r},Us.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,r,i,a,o,s,l,c,u,h,f,d=this._root,p=this._x0,g=this._y0,m=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((c=a>=(s=(p+m)/2))?p=s:m=s,(u=o>=(l=(g+y)/2))?g=l:y=l,e=d,!(d=d[h=u<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Us.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Us.root=function(){return this._root},Us.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Us.visit=function(t){var e,n,r,i,a,o,s=[],l=this._root;for(l&&s.push(new Fs(l,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(l=e.node,r=e.x0,i=e.y0,a=e.x1,o=e.y1)&&l.length){var c=(r+a)/2,u=(i+o)/2;(n=l[3])&&s.push(new Fs(n,c,u,a,o)),(n=l[2])&&s.push(new Fs(n,r,u,c,o)),(n=l[1])&&s.push(new Fs(n,c,i,a,u)),(n=l[0])&&s.push(new Fs(n,r,i,c,u))}return this},Us.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new Fs(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var a,o=e.x0,s=e.y0,l=e.x1,c=e.y1,u=(o+l)/2,h=(s+c)/2;(a=i[0])&&n.push(new Fs(a,o,s,u,h)),(a=i[1])&&n.push(new Fs(a,u,s,l,h)),(a=i[2])&&n.push(new Fs(a,o,h,u,c)),(a=i[3])&&n.push(new Fs(a,u,h,l,c))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Us.x=function(t){return arguments.length?(this._x=t,this):this._x},Us.y=function(t){return arguments.length?(this._y=t,this):this._y};var Qs=Math.PI*(3-Math.sqrt(5));function Js(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=na(),l=Vn(u),c=ft("tick","end");function u(){h(),c.call("tick",e),n<r&&(l.stop(),c.call("end",e))}function h(r){var l,c,u=t.length;void 0===r&&(r=1);for(var h=0;h<r;++h)for(n+=(a-n)*i,s.each((function(t){t(n)})),l=0;l<u;++l)null==(c=t[l]).fx?c.x+=c.vx*=o:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=o:(c.y=c.fy,c.vy=0);return e}function f(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(n),a=n*Qs;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function d(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),f(),e={tick:h,restart:function(){return l.restart(u),e},stop:function(){return l.stop(),e},nodes:function(n){return arguments.length?(t=n,f(),s.each(d),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(a=+t,e):a},velocityDecay:function(t){return arguments.length?(o=1-t,e):1-o},force:function(t,n){return arguments.length>1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,l,c=0,u=t.length;for(null==r?r=1/0:r*=r,c=0;c<u;++c)(o=(i=e-(s=t[c]).x)*i+(a=n-s.y)*a)<r&&(l=s,r=o);return l},on:function(t,n){return arguments.length>1?(c.on(t,n),e):c.on(t)}}}function tl(){var t,e,n,r,i=Bs(-30),a=1,o=1/0,s=.81;function l(r){var i,a=t.length,o=qs(t,Zs,Ks).visitAfter(u);for(n=r,i=0;i<a;++i)e=t[i],o.visit(h)}function c(){if(t){var e,n,a=t.length;for(r=new Array(a),e=0;e<a;++e)n=t[e],r[n.index]=+i(n,e,t)}}function u(t){var e,n,i,a,o,s=0,l=0;if(t.length){for(i=a=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(s+=e.value,l+=n,i+=n*e.x,a+=n*e.y);t.x=i/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=r[e.data.index]}while(e=e.next)}t.value=s}function h(t,i,l,c){if(!t.value)return!0;var u=t.x-e.x,h=t.y-e.y,f=c-i,d=u*u+h*h;if(f*f/s<d)return d<o&&(0===u&&(d+=(u=Is())*u),0===h&&(d+=(h=Is())*h),d<a&&(d=Math.sqrt(a*d)),e.vx+=u*t.value*n/d,e.vy+=h*t.value*n/d),!0;if(!(t.length||d>=o)){(t.data!==e||t.next)&&(0===u&&(d+=(u=Is())*u),0===h&&(d+=(h=Is())*h),d<a&&(d=Math.sqrt(a*d)));do{t.data!==e&&(f=r[t.data.index]*n/d,e.vx+=u*f,e.vy+=h*f)}while(t=t.next)}}return l.initialize=function(e){t=e,c()},l.strength=function(t){return arguments.length?(i="function"==typeof t?t:Bs(+t),c(),l):i},l.distanceMin=function(t){return arguments.length?(a=t*t,l):Math.sqrt(a)},l.distanceMax=function(t){return arguments.length?(o=t*t,l):Math.sqrt(o)},l.theta=function(t){return arguments.length?(s=t*t,l):Math.sqrt(s)},l}function el(t,e,n){var r,i,a,o=Bs(.1);function s(t){for(var o=0,s=r.length;o<s;++o){var l=r[o],c=l.x-e||1e-6,u=l.y-n||1e-6,h=Math.sqrt(c*c+u*u),f=(a[o]-h)*i[o]*t/h;l.vx+=c*f,l.vy+=u*f}}function l(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)a[e]=+t(r[e],e,r),i[e]=isNaN(a[e])?0:+o(r[e],e,r)}}return"function"!=typeof t&&(t=Bs(+t)),null==e&&(e=0),null==n&&(n=0),s.initialize=function(t){r=t,l()},s.strength=function(t){return arguments.length?(o="function"==typeof t?t:Bs(+t),l(),s):o},s.radius=function(e){return arguments.length?(t="function"==typeof e?e:Bs(+e),l(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s}function nl(t){var e,n,r,i=Bs(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vx+=(r[a]-i.x)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!=typeof t&&(t=Bs(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:Bs(+t),o(),a):i},a.x=function(e){return arguments.length?(t="function"==typeof e?e:Bs(+e),o(),a):t},a}function rl(t){var e,n,r,i=Bs(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vy+=(r[a]-i.y)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!=typeof t&&(t=Bs(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:Bs(+t),o(),a):i},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Bs(+e),o(),a):t},a}function il(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function al(t){return(t=il(Math.abs(t)))?t[1]:NaN}var ol,sl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ll(t){if(!(e=sl.exec(t)))throw new Error("invalid format: "+t);var e;return new cl({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function cl(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function ul(t,e){var n=il(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}ll.prototype=cl.prototype,cl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const hl={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return ul(100*t,e)},r:ul,s:function(t,e){var n=il(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(ol=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+il(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function fl(t){return t}var dl,pl,gl,ml=Array.prototype.map,yl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function vl(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?fl:(e=ml.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?fl:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ml.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=ll(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,m=t.precision,y=t.trim,v=t.type;"n"===v?(g=!0,v="g"):hl[v]||(void 0===m&&(m=12),y=!0,v="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===f?a:/[%p]/.test(v)?l:"",x=hl[v],w=/[defgprs%]/.test(v);function k(t){var i,a,l,f=b,k=_;if("c"===v)k=x(t)+k,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:x(Math.abs(t),m),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),C&&0==+t&&"+"!==h&&(C=!1),f=(C?"("===h?h:c:"-"===h||"("===h?"":h)+f,k=("s"===v?yl[8+ol/3]:"")+k+(C&&"("===h?")":""),w)for(i=-1,a=t.length;++i<a;)if(48>(l=t.charCodeAt(i))||l>57){k=(46===l?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var E=f.length+t.length+k.length,S=E<p?new Array(p-E+1).join(e):"";switch(g&&d&&(t=r(S+t,S.length?p-k.length:1/0),S=""),n){case"<":t=f+t+k+S;break;case"=":t=f+S+t+k;break;case"^":t=S.slice(0,E=S.length>>1)+f+t+k+S.slice(E);break;default:t=S+f+t+k}return s(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=ll(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(al(e)/3))),i=Math.pow(10,-r),a=yl[8+r/3];return function(t){return n(i*t)+a}}}}function bl(t){return dl=vl(t),pl=dl.format,gl=dl.formatPrefix,dl}function _l(t){return Math.max(0,-al(Math.abs(t)))}function xl(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(al(e)/3)))-al(Math.abs(t)))}function wl(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,al(e)-al(t))+1}function kl(){return new Cl}function Cl(){this.reset()}bl({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Cl.prototype={constructor:Cl,reset:function(){this.s=this.t=0},add:function(t){Sl(El,t,this.t),Sl(this,El.s,this.s),this.s?this.t+=El.t:this.s=El.t},valueOf:function(){return this.s}};var El=new Cl;function Sl(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var Tl=1e-6,Al=1e-12,Ml=Math.PI,Nl=Ml/2,Dl=Ml/4,Ol=2*Ml,Ll=180/Ml,Bl=Ml/180,Il=Math.abs,Rl=Math.atan,Fl=Math.atan2,Pl=Math.cos,zl=Math.ceil,ql=Math.exp,jl=Math.log,Hl=Math.pow,Ul=Math.sin,$l=Math.sign||function(t){return t>0?1:t<0?-1:0},Wl=Math.sqrt,Yl=Math.tan;function Vl(t){return t>1?0:t<-1?Ml:Math.acos(t)}function Gl(t){return t>1?Nl:t<-1?-Nl:Math.asin(t)}function Xl(t){return(t=Ul(t/2))*t}function Zl(){}function Kl(t,e){t&&Jl.hasOwnProperty(t.type)&&Jl[t.type](t,e)}var Ql={Feature:function(t,e){Kl(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)Kl(n[r].geometry,e)}},Jl={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){tc(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)tc(n[r],e,0)},Polygon:function(t,e){ec(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)ec(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)Kl(n[r],e)}};function tc(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function ec(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)tc(t[n],e,1);e.polygonEnd()}function nc(t,e){t&&Ql.hasOwnProperty(t.type)?Ql[t.type](t,e):Kl(t,e)}var rc,ic,ac,oc,sc,lc=kl(),cc=kl(),uc={point:Zl,lineStart:Zl,lineEnd:Zl,polygonStart:function(){lc.reset(),uc.lineStart=hc,uc.lineEnd=fc},polygonEnd:function(){var t=+lc;cc.add(t<0?Ol+t:t),this.lineStart=this.lineEnd=this.point=Zl},sphere:function(){cc.add(Ol)}};function hc(){uc.point=dc}function fc(){pc(rc,ic)}function dc(t,e){uc.point=pc,rc=t,ic=e,ac=t*=Bl,oc=Pl(e=(e*=Bl)/2+Dl),sc=Ul(e)}function pc(t,e){var n=(t*=Bl)-ac,r=n>=0?1:-1,i=r*n,a=Pl(e=(e*=Bl)/2+Dl),o=Ul(e),s=sc*o,l=oc*a+s*Pl(i),c=s*r*Ul(i);lc.add(Fl(c,l)),ac=t,oc=a,sc=o}function gc(t){return cc.reset(),nc(t,uc),2*cc}function mc(t){return[Fl(t[1],t[0]),Gl(t[2])]}function yc(t){var e=t[0],n=t[1],r=Pl(n);return[r*Pl(e),r*Ul(e),Ul(n)]}function vc(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function bc(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function _c(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function xc(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function wc(t){var e=Wl(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var kc,Cc,Ec,Sc,Tc,Ac,Mc,Nc,Dc,Oc,Lc,Bc,Ic,Rc,Fc,Pc,zc,qc,jc,Hc,Uc,$c,Wc,Yc,Vc,Gc,Xc=kl(),Zc={point:Kc,lineStart:Jc,lineEnd:tu,polygonStart:function(){Zc.point=eu,Zc.lineStart=nu,Zc.lineEnd=ru,Xc.reset(),uc.polygonStart()},polygonEnd:function(){uc.polygonEnd(),Zc.point=Kc,Zc.lineStart=Jc,Zc.lineEnd=tu,lc<0?(kc=-(Ec=180),Cc=-(Sc=90)):Xc>Tl?Sc=90:Xc<-1e-6&&(Cc=-90),Oc[0]=kc,Oc[1]=Ec},sphere:function(){kc=-(Ec=180),Cc=-(Sc=90)}};function Kc(t,e){Dc.push(Oc=[kc=t,Ec=t]),e<Cc&&(Cc=e),e>Sc&&(Sc=e)}function Qc(t,e){var n=yc([t*Bl,e*Bl]);if(Nc){var r=bc(Nc,n),i=bc([r[1],-r[0],0],r);wc(i),i=mc(i);var a,o=t-Tc,s=o>0?1:-1,l=i[0]*Ll*s,c=Il(o)>180;c^(s*Tc<l&&l<s*t)?(a=i[1]*Ll)>Sc&&(Sc=a):c^(s*Tc<(l=(l+360)%360-180)&&l<s*t)?(a=-i[1]*Ll)<Cc&&(Cc=a):(e<Cc&&(Cc=e),e>Sc&&(Sc=e)),c?t<Tc?iu(kc,t)>iu(kc,Ec)&&(Ec=t):iu(t,Ec)>iu(kc,Ec)&&(kc=t):Ec>=kc?(t<kc&&(kc=t),t>Ec&&(Ec=t)):t>Tc?iu(kc,t)>iu(kc,Ec)&&(Ec=t):iu(t,Ec)>iu(kc,Ec)&&(kc=t)}else Dc.push(Oc=[kc=t,Ec=t]);e<Cc&&(Cc=e),e>Sc&&(Sc=e),Nc=n,Tc=t}function Jc(){Zc.point=Qc}function tu(){Oc[0]=kc,Oc[1]=Ec,Zc.point=Kc,Nc=null}function eu(t,e){if(Nc){var n=t-Tc;Xc.add(Il(n)>180?n+(n>0?360:-360):n)}else Ac=t,Mc=e;uc.point(t,e),Qc(t,e)}function nu(){uc.lineStart()}function ru(){eu(Ac,Mc),uc.lineEnd(),Il(Xc)>Tl&&(kc=-(Ec=180)),Oc[0]=kc,Oc[1]=Ec,Nc=null}function iu(t,e){return(e-=t)<0?e+360:e}function au(t,e){return t[0]-e[0]}function ou(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function su(t){var e,n,r,i,a,o,s;if(Sc=Ec=-(kc=Cc=1/0),Dc=[],nc(t,Zc),n=Dc.length){for(Dc.sort(au),e=1,a=[r=Dc[0]];e<n;++e)ou(r,(i=Dc[e])[0])||ou(r,i[1])?(iu(r[0],i[1])>iu(r[0],r[1])&&(r[1]=i[1]),iu(i[0],r[1])>iu(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(s=iu(r[1],i[0]))>o&&(o=s,kc=i[0],Ec=r[1])}return Dc=Oc=null,kc===1/0||Cc===1/0?[[NaN,NaN],[NaN,NaN]]:[[kc,Cc],[Ec,Sc]]}var lu={sphere:Zl,point:cu,lineStart:hu,lineEnd:pu,polygonStart:function(){lu.lineStart=gu,lu.lineEnd=mu},polygonEnd:function(){lu.lineStart=hu,lu.lineEnd=pu}};function cu(t,e){t*=Bl;var n=Pl(e*=Bl);uu(n*Pl(t),n*Ul(t),Ul(e))}function uu(t,e,n){++Lc,Ic+=(t-Ic)/Lc,Rc+=(e-Rc)/Lc,Fc+=(n-Fc)/Lc}function hu(){lu.point=fu}function fu(t,e){t*=Bl;var n=Pl(e*=Bl);Yc=n*Pl(t),Vc=n*Ul(t),Gc=Ul(e),lu.point=du,uu(Yc,Vc,Gc)}function du(t,e){t*=Bl;var n=Pl(e*=Bl),r=n*Pl(t),i=n*Ul(t),a=Ul(e),o=Fl(Wl((o=Vc*a-Gc*i)*o+(o=Gc*r-Yc*a)*o+(o=Yc*i-Vc*r)*o),Yc*r+Vc*i+Gc*a);Bc+=o,Pc+=o*(Yc+(Yc=r)),zc+=o*(Vc+(Vc=i)),qc+=o*(Gc+(Gc=a)),uu(Yc,Vc,Gc)}function pu(){lu.point=cu}function gu(){lu.point=yu}function mu(){vu($c,Wc),lu.point=cu}function yu(t,e){$c=t,Wc=e,t*=Bl,e*=Bl,lu.point=vu;var n=Pl(e);Yc=n*Pl(t),Vc=n*Ul(t),Gc=Ul(e),uu(Yc,Vc,Gc)}function vu(t,e){t*=Bl;var n=Pl(e*=Bl),r=n*Pl(t),i=n*Ul(t),a=Ul(e),o=Vc*a-Gc*i,s=Gc*r-Yc*a,l=Yc*i-Vc*r,c=Wl(o*o+s*s+l*l),u=Gl(c),h=c&&-u/c;jc+=h*o,Hc+=h*s,Uc+=h*l,Bc+=u,Pc+=u*(Yc+(Yc=r)),zc+=u*(Vc+(Vc=i)),qc+=u*(Gc+(Gc=a)),uu(Yc,Vc,Gc)}function bu(t){Lc=Bc=Ic=Rc=Fc=Pc=zc=qc=jc=Hc=Uc=0,nc(t,lu);var e=jc,n=Hc,r=Uc,i=e*e+n*n+r*r;return i<Al&&(e=Pc,n=zc,r=qc,Bc<Tl&&(e=Ic,n=Rc,r=Fc),(i=e*e+n*n+r*r)<Al)?[NaN,NaN]:[Fl(n,e)*Ll,Gl(r/Wl(i))*Ll]}function _u(t){return function(){return t}}function xu(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function wu(t,e){return[Il(t)>Ml?t+Math.round(-t/Ol)*Ol:t,e]}function ku(t,e,n){return(t%=Ol)?e||n?xu(Eu(t),Su(e,n)):Eu(t):e||n?Su(e,n):wu}function Cu(t){return function(e,n){return[(e+=t)>Ml?e-Ol:e<-Ml?e+Ol:e,n]}}function Eu(t){var e=Cu(t);return e.invert=Cu(-t),e}function Su(t,e){var n=Pl(t),r=Ul(t),i=Pl(e),a=Ul(e);function o(t,e){var o=Pl(e),s=Pl(t)*o,l=Ul(t)*o,c=Ul(e),u=c*n+s*r;return[Fl(l*i-u*a,s*n-c*r),Gl(u*i+l*a)]}return o.invert=function(t,e){var o=Pl(e),s=Pl(t)*o,l=Ul(t)*o,c=Ul(e),u=c*i-l*a;return[Fl(l*i+c*a,s*n+u*r),Gl(u*n-s*r)]},o}function Tu(t){function e(e){return(e=t(e[0]*Bl,e[1]*Bl))[0]*=Ll,e[1]*=Ll,e}return t=ku(t[0]*Bl,t[1]*Bl,t.length>2?t[2]*Bl:0),e.invert=function(e){return(e=t.invert(e[0]*Bl,e[1]*Bl))[0]*=Ll,e[1]*=Ll,e},e}function Au(t,e,n,r,i,a){if(n){var o=Pl(e),s=Ul(e),l=r*n;null==i?(i=e+r*Ol,a=e-l/2):(i=Mu(o,i),a=Mu(o,a),(r>0?i<a:i>a)&&(i+=r*Ol));for(var c,u=i;r>0?u>a:u<a;u-=l)c=mc([o,-s*Pl(u),-s*Ul(u)]),t.point(c[0],c[1])}}function Mu(t,e){(e=yc(e))[0]-=t,wc(e);var n=Vl(-e[1]);return((-e[2]<0?-n:n)+Ol-Tl)%Ol}function Nu(){var t,e,n=_u([0,0]),r=_u(90),i=_u(6),a={point:function(n,r){t.push(n=e(n,r)),n[0]*=Ll,n[1]*=Ll}};function o(){var o=n.apply(this,arguments),s=r.apply(this,arguments)*Bl,l=i.apply(this,arguments)*Bl;return t=[],e=ku(-o[0]*Bl,-o[1]*Bl,0).invert,Au(a,s,l,1),o={type:"Polygon",coordinates:[t]},t=e=null,o}return o.center=function(t){return arguments.length?(n="function"==typeof t?t:_u([+t[0],+t[1]]),o):n},o.radius=function(t){return arguments.length?(r="function"==typeof t?t:_u(+t),o):r},o.precision=function(t){return arguments.length?(i="function"==typeof t?t:_u(+t),o):i},o}function Du(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:Zl,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Ou(t,e){return Il(t[0]-e[0])<Tl&&Il(t[1]-e[1])<Tl}function Lu(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Bu(t,e,n,r,i){var a,o,s=[],l=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(Ou(r,o)){if(!r[2]&&!o[2]){for(i.lineStart(),a=0;a<e;++a)i.point((r=t[a])[0],r[1]);return void i.lineEnd()}o[0]+=2e-6}s.push(n=new Lu(r,t,null,!0)),l.push(n.o=new Lu(r,null,n,!1)),s.push(n=new Lu(o,t,null,!1)),l.push(n.o=new Lu(o,null,n,!0))}})),s.length){for(l.sort(e),Iu(s),Iu(l),a=0,o=l.length;a<o;++a)l[a].e=n=!n;for(var c,u,h=s[0];;){for(var f=h,d=!0;f.v;)if((f=f.n)===h)return;c=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(d)for(a=0,o=c.length;a<o;++a)i.point((u=c[a])[0],u[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(d)for(c=f.p.z,a=c.length-1;a>=0;--a)i.point((u=c[a])[0],u[1]);else r(f.x,f.p.x,-1,i);f=f.p}c=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}}function Iu(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}wu.invert=wu;var Ru=kl();function Fu(t){return Il(t[0])<=Ml?t[0]:$l(t[0])*((Il(t[0])+Ml)%Ol-Ml)}function Pu(t,e){var n=Fu(e),r=e[1],i=Ul(r),a=[Ul(n),-Pl(n),0],o=0,s=0;Ru.reset(),1===i?r=Nl+Tl:-1===i&&(r=-Nl-Tl);for(var l=0,c=t.length;l<c;++l)if(h=(u=t[l]).length)for(var u,h,f=u[h-1],d=Fu(f),p=f[1]/2+Dl,g=Ul(p),m=Pl(p),y=0;y<h;++y,d=b,g=x,m=w,f=v){var v=u[y],b=Fu(v),_=v[1]/2+Dl,x=Ul(_),w=Pl(_),k=b-d,C=k>=0?1:-1,E=C*k,S=E>Ml,T=g*x;if(Ru.add(Fl(T*C*Ul(E),m*w+T*Pl(E))),o+=S?k+C*Ol:k,S^d>=n^b>=n){var A=bc(yc(f),yc(v));wc(A);var M=bc(a,A);wc(M);var N=(S^k>=0?-1:1)*Gl(M[2]);(r>N||r===N&&(A[0]||A[1]))&&(s+=S^k>=0?1:-1)}}return(o<-1e-6||o<Tl&&Ru<-1e-6)^1&s}function zu(t,e,n,r){return function(i){var a,o,s,l=e(i),c=Du(),u=e(c),h=!1,f={point:d,lineStart:g,lineEnd:m,polygonStart:function(){f.point=y,f.lineStart=v,f.lineEnd=b,o=[],a=[]},polygonEnd:function(){f.point=d,f.lineStart=g,f.lineEnd=m,o=P(o);var t=Pu(a,r);o.length?(h||(i.polygonStart(),h=!0),Bu(o,ju,t,n,i)):t&&(h||(i.polygonStart(),h=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),h&&(i.polygonEnd(),h=!1),o=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){l.point(t,e)}function g(){f.point=p,l.lineStart()}function m(){f.point=d,l.lineEnd()}function y(t,e){s.push([t,e]),u.point(t,e)}function v(){u.lineStart(),s=[]}function b(){y(s[0][0],s[0][1]),u.lineEnd();var t,e,n,r,l=u.clean(),f=c.result(),d=f.length;if(s.pop(),a.push(s),s=null,d)if(1&l){if((e=(n=f[0]).length-1)>0){for(h||(i.polygonStart(),h=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}}else d>1&&2&l&&f.push(f.pop().concat(f.shift())),o.push(f.filter(qu))}return f}}function qu(t){return t.length>1}function ju(t,e){return((t=t.x)[0]<0?t[1]-Nl-Tl:Nl-t[1])-((e=e.x)[0]<0?e[1]-Nl-Tl:Nl-e[1])}const Hu=zu((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?Ml:-Ml,l=Il(a-n);Il(l-Ml)<Tl?(t.point(n,r=(r+o)/2>0?Nl:-Nl),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&l>=Ml&&(Il(n-i)<Tl&&(n-=i*Tl),Il(a-s)<Tl&&(a-=s*Tl),r=function(t,e,n,r){var i,a,o=Ul(t-n);return Il(o)>Tl?Rl((Ul(e)*(a=Pl(r))*Ul(n)-Ul(r)*(i=Pl(e))*Ul(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=a,r=o),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Nl,r.point(-Ml,i),r.point(0,i),r.point(Ml,i),r.point(Ml,0),r.point(Ml,-i),r.point(0,-i),r.point(-Ml,-i),r.point(-Ml,0),r.point(-Ml,i);else if(Il(t[0]-e[0])>Tl){var a=t[0]<e[0]?Ml:-Ml;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])}),[-Ml,-Nl]);function Uu(t){var e=Pl(t),n=6*Bl,r=e>0,i=Il(e)>Tl;function a(t,n){return Pl(t)*Pl(n)>e}function o(t,n,r){var i=[1,0,0],a=bc(yc(t),yc(n)),o=vc(a,a),s=a[0],l=o-s*s;if(!l)return!r&&t;var c=e*o/l,u=-e*s/l,h=bc(i,a),f=xc(i,c);_c(f,xc(a,u));var d=h,p=vc(f,d),g=vc(d,d),m=p*p-g*(vc(f,f)-1);if(!(m<0)){var y=Wl(m),v=xc(d,(-p-y)/g);if(_c(v,f),v=mc(v),!r)return v;var b,_=t[0],x=n[0],w=t[1],k=n[1];x<_&&(b=_,_=x,x=b);var C=x-_,E=Il(C-Ml)<Tl;if(!E&&k<w&&(b=w,w=k,k=b),E||C<Tl?E?w+k>0^v[1]<(Il(v[0]-_)<Tl?w:k):w<=v[1]&&v[1]<=k:C>Ml^(_<=v[0]&&v[0]<=x)){var S=xc(d,(-p+y)/g);return _c(S,f),[v,mc(S)]}}}function s(e,n){var i=r?t:Ml-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return zu(a,(function(t){var e,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(h,f){var d,p=[h,f],g=a(h,f),m=r?g?0:s(h,f):g?s(h+(h<0?Ml:-Ml),f):0;if(!e&&(c=l=g)&&t.lineStart(),g!==l&&(!(d=o(e,p))||Ou(e,d)||Ou(p,d))&&(p[2]=1),g!==l)u=0,g?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&r^g){var y;m&n||!(y=o(p,e,!0))||(u=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!g||e&&Ou(e,p)||t.point(p[0],p[1]),e=p,l=g,n=m},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return u|(c&&l)<<1}}}),(function(e,r,i,a){Au(a,t,n,i,e,r)}),r?[0,-t]:[-Ml,t-Ml])}var $u=1e9,Wu=-$u;function Yu(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,s,c){var u=0,h=0;if(null==i||(u=o(i,s))!==(h=o(a,s))||l(i,a)<0^s>0)do{c.point(0===u||3===u?t:n,u>1?r:e)}while((u=(u+s+4)%4)!==h);else c.point(a[0],a[1])}function o(r,i){return Il(r[0]-t)<Tl?i>0?0:3:Il(r[0]-n)<Tl?i>0?2:1:Il(r[1]-e)<Tl?i>0?1:0:i>0?3:2}function s(t,e){return l(t.x,e.x)}function l(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var l,c,u,h,f,d,p,g,m,y,v,b=o,_=Du(),x={point:w,lineStart:function(){x.point=k,c&&c.push(u=[]),y=!0,m=!1,p=g=NaN},lineEnd:function(){l&&(k(h,f),d&&m&&_.rejoin(),l.push(_.result())),x.point=w,m&&b.lineEnd()},polygonStart:function(){b=_,l=[],c=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=c.length;n<i;++n)for(var a,o,s=c[n],l=1,u=s.length,h=s[0],f=h[0],d=h[1];l<u;++l)a=f,o=d,f=(h=s[l])[0],d=h[1],o<=r?d>r&&(f-a)*(r-o)>(d-o)*(t-a)&&++e:d<=r&&(f-a)*(r-o)<(d-o)*(t-a)&&--e;return e}(),n=v&&e,i=(l=P(l)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&Bu(l,s,e,a,o),o.polygonEnd()),b=o,l=c=u=null}};function w(t,e){i(t,e)&&b.point(t,e)}function k(a,o){var s=i(a,o);if(c&&u.push([a,o]),y)h=a,f=o,d=s,y=!1,s&&(b.lineStart(),b.point(a,o));else if(s&&m)b.point(a,o);else{var l=[p=Math.max(Wu,Math.min($u,p)),g=Math.max(Wu,Math.min($u,g))],_=[a=Math.max(Wu,Math.min($u,a)),o=Math.max(Wu,Math.min($u,o))];!function(t,e,n,r,i,a){var o,s=t[0],l=t[1],c=0,u=1,h=e[0]-s,f=e[1]-l;if(o=n-s,h||!(o>0)){if(o/=h,h<0){if(o<c)return;o<u&&(u=o)}else if(h>0){if(o>u)return;o>c&&(c=o)}if(o=i-s,h||!(o<0)){if(o/=h,h<0){if(o>u)return;o>c&&(c=o)}else if(h>0){if(o<c)return;o<u&&(u=o)}if(o=r-l,f||!(o>0)){if(o/=f,f<0){if(o<c)return;o<u&&(u=o)}else if(f>0){if(o>u)return;o>c&&(c=o)}if(o=a-l,f||!(o<0)){if(o/=f,f<0){if(o>u)return;o>c&&(c=o)}else if(f>0){if(o<c)return;o<u&&(u=o)}return c>0&&(t[0]=s+c*h,t[1]=l+c*f),u<1&&(e[0]=s+u*h,e[1]=l+u*f),!0}}}}}(l,_,t,e,n,r)?s&&(b.lineStart(),b.point(a,o),v=!1):(m||(b.lineStart(),b.point(l[0],l[1])),b.point(_[0],_[1]),s||b.lineEnd(),v=!1)}p=a,g=o,m=s}return x}}function Vu(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=Yu(r,i,a,o)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,n):[[r,i],[a,o]]}}}var Gu,Xu,Zu,Ku=kl(),Qu={sphere:Zl,point:Zl,lineStart:function(){Qu.point=th,Qu.lineEnd=Ju},lineEnd:Zl,polygonStart:Zl,polygonEnd:Zl};function Ju(){Qu.point=Qu.lineEnd=Zl}function th(t,e){Gu=t*=Bl,Xu=Ul(e*=Bl),Zu=Pl(e),Qu.point=eh}function eh(t,e){t*=Bl;var n=Ul(e*=Bl),r=Pl(e),i=Il(t-Gu),a=Pl(i),o=r*Ul(i),s=Zu*n-Xu*r*a,l=Xu*n+Zu*r*a;Ku.add(Fl(Wl(o*o+s*s),l)),Gu=t,Xu=n,Zu=r}function nh(t){return Ku.reset(),nc(t,Qu),+Ku}var rh=[null,null],ih={type:"LineString",coordinates:rh};function ah(t,e){return rh[0]=t,rh[1]=e,nh(ih)}var oh={Feature:function(t,e){return lh(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(lh(n[r].geometry,e))return!0;return!1}},sh={Sphere:function(){return!0},Point:function(t,e){return ch(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(ch(n[r],e))return!0;return!1},LineString:function(t,e){return uh(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(uh(n[r],e))return!0;return!1},Polygon:function(t,e){return hh(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(hh(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(lh(n[r],e))return!0;return!1}};function lh(t,e){return!(!t||!sh.hasOwnProperty(t.type))&&sh[t.type](t,e)}function ch(t,e){return 0===ah(t,e)}function uh(t,e){for(var n,r,i,a=0,o=t.length;a<o;a++){if(0===(r=ah(t[a],e)))return!0;if(a>0&&(i=ah(t[a],t[a-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Al*i)return!0;n=r}return!1}function hh(t,e){return!!Pu(t.map(fh),dh(e))}function fh(t){return(t=t.map(dh)).pop(),t}function dh(t){return[t[0]*Bl,t[1]*Bl]}function ph(t,e){return(t&&oh.hasOwnProperty(t.type)?oh[t.type]:lh)(t,e)}function gh(t,e,n){var r=k(t,e-Tl,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function mh(t,e,n){var r=k(t,e-Tl,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function yh(){var t,e,n,r,i,a,o,s,l,c,u,h,f=10,d=f,p=90,g=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return k(zl(r/p)*p,n,p).map(u).concat(k(zl(s/g)*g,o,g).map(h)).concat(k(zl(e/f)*f,t,f).filter((function(t){return Il(t%p)>Tl})).map(l)).concat(k(zl(a/d)*d,i,d).filter((function(t){return Il(t%g)>Tl})).map(c))}return y.lines=function(){return v().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(h(o).slice(1),u(n).reverse().slice(1),h(s).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),s>o&&(t=s,s=o,o=t),y.precision(m)):[[r,s],[n,o]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),y.precision(m)):[[e,a],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],y):[p,g]},y.stepMinor=function(t){return arguments.length?(f=+t[0],d=+t[1],y):[f,d]},y.precision=function(f){return arguments.length?(m=+f,l=gh(a,i,90),c=mh(e,t,m),u=gh(s,o,90),h=mh(r,n,m),y):m},y.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function vh(){return yh()()}function bh(t,e){var n=t[0]*Bl,r=t[1]*Bl,i=e[0]*Bl,a=e[1]*Bl,o=Pl(r),s=Ul(r),l=Pl(a),c=Ul(a),u=o*Pl(n),h=o*Ul(n),f=l*Pl(i),d=l*Ul(i),p=2*Gl(Wl(Xl(a-r)+o*l*Xl(i-n))),g=Ul(p),m=p?function(t){var e=Ul(t*=p)/g,n=Ul(p-t)/g,r=n*u+e*f,i=n*h+e*d,a=n*s+e*c;return[Fl(i,r)*Ll,Fl(a,Wl(r*r+i*i))*Ll]}:function(){return[n*Ll,r*Ll]};return m.distance=p,m}function _h(t){return t}var xh,wh,kh,Ch,Eh=kl(),Sh=kl(),Th={point:Zl,lineStart:Zl,lineEnd:Zl,polygonStart:function(){Th.lineStart=Ah,Th.lineEnd=Dh},polygonEnd:function(){Th.lineStart=Th.lineEnd=Th.point=Zl,Eh.add(Il(Sh)),Sh.reset()},result:function(){var t=Eh/2;return Eh.reset(),t}};function Ah(){Th.point=Mh}function Mh(t,e){Th.point=Nh,xh=kh=t,wh=Ch=e}function Nh(t,e){Sh.add(Ch*t-kh*e),kh=t,Ch=e}function Dh(){Nh(xh,wh)}const Oh=Th;var Lh=1/0,Bh=Lh,Ih=-Lh,Rh=Ih,Fh={point:function(t,e){t<Lh&&(Lh=t),t>Ih&&(Ih=t),e<Bh&&(Bh=e),e>Rh&&(Rh=e)},lineStart:Zl,lineEnd:Zl,polygonStart:Zl,polygonEnd:Zl,result:function(){var t=[[Lh,Bh],[Ih,Rh]];return Ih=Rh=-(Bh=Lh=1/0),t}};const Ph=Fh;var zh,qh,jh,Hh,Uh=0,$h=0,Wh=0,Yh=0,Vh=0,Gh=0,Xh=0,Zh=0,Kh=0,Qh={point:Jh,lineStart:tf,lineEnd:rf,polygonStart:function(){Qh.lineStart=af,Qh.lineEnd=of},polygonEnd:function(){Qh.point=Jh,Qh.lineStart=tf,Qh.lineEnd=rf},result:function(){var t=Kh?[Xh/Kh,Zh/Kh]:Gh?[Yh/Gh,Vh/Gh]:Wh?[Uh/Wh,$h/Wh]:[NaN,NaN];return Uh=$h=Wh=Yh=Vh=Gh=Xh=Zh=Kh=0,t}};function Jh(t,e){Uh+=t,$h+=e,++Wh}function tf(){Qh.point=ef}function ef(t,e){Qh.point=nf,Jh(jh=t,Hh=e)}function nf(t,e){var n=t-jh,r=e-Hh,i=Wl(n*n+r*r);Yh+=i*(jh+t)/2,Vh+=i*(Hh+e)/2,Gh+=i,Jh(jh=t,Hh=e)}function rf(){Qh.point=Jh}function af(){Qh.point=sf}function of(){lf(zh,qh)}function sf(t,e){Qh.point=lf,Jh(zh=jh=t,qh=Hh=e)}function lf(t,e){var n=t-jh,r=e-Hh,i=Wl(n*n+r*r);Yh+=i*(jh+t)/2,Vh+=i*(Hh+e)/2,Gh+=i,Xh+=(i=Hh*t-jh*e)*(jh+t),Zh+=i*(Hh+e),Kh+=3*i,Jh(jh=t,Hh=e)}const cf=Qh;function uf(t){this._context=t}uf.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Ol)}},result:Zl};var hf,ff,df,pf,gf,mf=kl(),yf={point:Zl,lineStart:function(){yf.point=vf},lineEnd:function(){hf&&bf(ff,df),yf.point=Zl},polygonStart:function(){hf=!0},polygonEnd:function(){hf=null},result:function(){var t=+mf;return mf.reset(),t}};function vf(t,e){yf.point=bf,ff=pf=t,df=gf=e}function bf(t,e){pf-=t,gf-=e,mf.add(Wl(pf*pf+gf*gf)),pf=t,gf=e}const _f=yf;function xf(){this._string=[]}function wf(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function kf(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),nc(t,n(r))),r.result()}return a.area=function(t){return nc(t,n(Oh)),Oh.result()},a.measure=function(t){return nc(t,n(_f)),_f.result()},a.bounds=function(t){return nc(t,n(Ph)),Ph.result()},a.centroid=function(t){return nc(t,n(cf)),cf.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,_h):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new xf):new uf(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function Cf(t){return{stream:Ef(t)}}function Ef(t){return function(e){var n=new Sf;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Sf(){}function Tf(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),nc(n,t.stream(Ph)),e(Ph.result()),null!=r&&t.clipExtent(r),t}function Af(t,e,n){return Tf(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,s])}),n)}function Mf(t,e,n){return Af(t,[[0,0],e],n)}function Nf(t,e,n){return Tf(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function Df(t,e,n){return Tf(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}xf.prototype={_radius:4.5,_circle:wf(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=wf(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Sf.prototype={constructor:Sf,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Of=Pl(30*Bl);function Lf(t,e){return+e?function(t,e){function n(r,i,a,o,s,l,c,u,h,f,d,p,g,m){var y=c-r,v=u-i,b=y*y+v*v;if(b>4*e&&g--){var _=o+f,x=s+d,w=l+p,k=Wl(_*_+x*x+w*w),C=Gl(w/=k),E=Il(Il(w)-1)<Tl||Il(a-h)<Tl?(a+h)/2:Fl(x,_),S=t(E,C),T=S[0],A=S[1],M=T-r,N=A-i,D=v*M-y*N;(D*D/b>e||Il((y*M+v*N)/b-.5)>.3||o*f+s*d+l*p<Of)&&(n(r,i,a,o,s,l,T,A,E,_/=k,x/=k,w,g,m),m.point(T,A),n(T,A,E,_,x,w,c,u,h,f,d,p,g,m))}}return function(e){var r,i,a,o,s,l,c,u,h,f,d,p,g={point:m,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=_},polygonEnd:function(){e.polygonEnd(),g.lineStart=y}};function m(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){u=NaN,g.point=v,e.lineStart()}function v(r,i){var a=yc([r,i]),o=t(r,i);n(u,h,c,f,d,p,u=o[0],h=o[1],c=r,f=a[0],d=a[1],p=a[2],16,e),e.point(u,h)}function b(){g.point=m,e.lineEnd()}function _(){y(),g.point=x,g.lineEnd=w}function x(t,e){v(r=t,e),i=u,a=h,o=f,s=d,l=p,g.point=v}function w(){n(u,h,c,f,d,p,i,a,r,o,s,l,16,e),g.lineEnd=b,b()}return g}}(t,e):function(t){return Ef({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var Bf=Ef({point:function(t,e){this.stream.point(t*Bl,e*Bl)}});function If(t,e,n,r,i){function a(a,o){return[e+t*(a*=r),n-t*(o*=i)]}return a.invert=function(a,o){return[(a-e)/t*r,(n-o)/t*i]},a}function Rf(t,e,n,r,i,a){var o=Pl(a),s=Ul(a),l=o*t,c=s*t,u=o/t,h=s/t,f=(s*n-o*e)/t,d=(s*e+o*n)/t;function p(t,a){return[l*(t*=r)-c*(a*=i)+e,n-c*t-l*a]}return p.invert=function(t,e){return[r*(u*t-h*e+f),i*(d-h*t-u*e)]},p}function Ff(t){return Pf((function(){return t}))()}function Pf(t){var e,n,r,i,a,o,s,l,c,u,h=150,f=480,d=250,p=0,g=0,m=0,y=0,v=0,b=0,_=1,x=1,w=null,k=Hu,C=null,E=_h,S=.5;function T(t){return l(t[0]*Bl,t[1]*Bl)}function A(t){return(t=l.invert(t[0],t[1]))&&[t[0]*Ll,t[1]*Ll]}function M(){var t=Rf(h,0,0,_,x,b).apply(null,e(p,g)),r=(b?Rf:If)(h,f-t[0],d-t[1],_,x,b);return n=ku(m,y,v),s=xu(e,r),l=xu(n,s),o=Lf(s,S),N()}function N(){return c=u=null,T}return T.stream=function(t){return c&&u===t?c:c=Bf(function(t){return Ef({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(k(o(E(u=t)))))},T.preclip=function(t){return arguments.length?(k=t,w=void 0,N()):k},T.postclip=function(t){return arguments.length?(E=t,C=r=i=a=null,N()):E},T.clipAngle=function(t){return arguments.length?(k=+t?Uu(w=t*Bl):(w=null,Hu),N()):w*Ll},T.clipExtent=function(t){return arguments.length?(E=null==t?(C=r=i=a=null,_h):Yu(C=+t[0][0],r=+t[0][1],i=+t[1][0],a=+t[1][1]),N()):null==C?null:[[C,r],[i,a]]},T.scale=function(t){return arguments.length?(h=+t,M()):h},T.translate=function(t){return arguments.length?(f=+t[0],d=+t[1],M()):[f,d]},T.center=function(t){return arguments.length?(p=t[0]%360*Bl,g=t[1]%360*Bl,M()):[p*Ll,g*Ll]},T.rotate=function(t){return arguments.length?(m=t[0]%360*Bl,y=t[1]%360*Bl,v=t.length>2?t[2]%360*Bl:0,M()):[m*Ll,y*Ll,v*Ll]},T.angle=function(t){return arguments.length?(b=t%360*Bl,M()):b*Ll},T.reflectX=function(t){return arguments.length?(_=t?-1:1,M()):_<0},T.reflectY=function(t){return arguments.length?(x=t?-1:1,M()):x<0},T.precision=function(t){return arguments.length?(o=Lf(s,S=t*t),N()):Wl(S)},T.fitExtent=function(t,e){return Af(T,t,e)},T.fitSize=function(t,e){return Mf(T,t,e)},T.fitWidth=function(t,e){return Nf(T,t,e)},T.fitHeight=function(t,e){return Df(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&A,M()}}function zf(t){var e=0,n=Ml/3,r=Pf(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Bl,n=t[1]*Bl):[e*Ll,n*Ll]},i}function qf(t,e){var n=Ul(t),r=(n+Ul(e))/2;if(Il(r)<Tl)return function(t){var e=Pl(t);function n(t,n){return[t*e,Ul(n)/e]}return n.invert=function(t,n){return[t/e,Gl(n*e)]},n}(t);var i=1+n*(2*r-n),a=Wl(i)/r;function o(t,e){var n=Wl(i-2*r*Ul(e))/r;return[n*Ul(t*=r),a-n*Pl(t)]}return o.invert=function(t,e){var n=a-e,o=Fl(t,Il(n))*$l(n);return n*r<0&&(o-=Ml*$l(t)*$l(n)),[o/r,Gl((i-(t*t+n*n)*r*r)/(2*r))]},o}function jf(){return zf(qf).scale(155.424).center([0,33.6442])}function Hf(){return jf().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Uf(){var t,e,n,r,i,a,o=Hf(),s=jf().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=jf().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){a=[t,e]}};function u(t){var e=t[0],o=t[1];return a=null,n.point(e,o),a||(r.point(e,o),a)||(i.point(e,o),a)}function h(){return t=e=null,u}return u.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:o).invert(t)},u.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),s.stream(n),l.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},u.precision=function(t){return arguments.length?(o.precision(t),s.precision(t),l.precision(t),h()):o.precision()},u.scale=function(t){return arguments.length?(o.scale(t),s.scale(.35*t),l.scale(t),u.translate(o.translate())):o.scale()},u.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),a=+t[0],u=+t[1];return n=o.translate(t).clipExtent([[a-.455*e,u-.238*e],[a+.455*e,u+.238*e]]).stream(c),r=s.translate([a-.307*e,u+.201*e]).clipExtent([[a-.425*e+Tl,u+.12*e+Tl],[a-.214*e-Tl,u+.234*e-Tl]]).stream(c),i=l.translate([a-.205*e,u+.212*e]).clipExtent([[a-.214*e+Tl,u+.166*e+Tl],[a-.115*e-Tl,u+.234*e-Tl]]).stream(c),h()},u.fitExtent=function(t,e){return Af(u,t,e)},u.fitSize=function(t,e){return Mf(u,t,e)},u.fitWidth=function(t,e){return Nf(u,t,e)},u.fitHeight=function(t,e){return Df(u,t,e)},u.scale(1070)}function $f(t){return function(e,n){var r=Pl(e),i=Pl(n),a=t(r*i);return[a*i*Ul(e),a*Ul(n)]}}function Wf(t){return function(e,n){var r=Wl(e*e+n*n),i=t(r),a=Ul(i),o=Pl(i);return[Fl(e*a,r*o),Gl(r&&n*a/r)]}}var Yf=$f((function(t){return Wl(2/(1+t))}));function Vf(){return Ff(Yf).scale(124.75).clipAngle(179.999)}Yf.invert=Wf((function(t){return 2*Gl(t/2)}));var Gf=$f((function(t){return(t=Vl(t))&&t/Ul(t)}));function Xf(){return Ff(Gf).scale(79.4188).clipAngle(179.999)}function Zf(t,e){return[t,jl(Yl((Nl+e)/2))]}function Kf(){return Qf(Zf).scale(961/Ol)}function Qf(t){var e,n,r,i=Ff(t),a=i.center,o=i.scale,s=i.translate,l=i.clipExtent,c=null;function u(){var a=Ml*o(),s=i(Tu(i.rotate()).invert([0,0]));return l(null==c?[[s[0]-a,s[1]-a],[s[0]+a,s[1]+a]]:t===Zf?[[Math.max(s[0]-a,c),e],[Math.min(s[0]+a,n),r]]:[[c,Math.max(s[1]-a,e)],[n,Math.min(s[1]+a,r)]])}return i.scale=function(t){return arguments.length?(o(t),u()):o()},i.translate=function(t){return arguments.length?(s(t),u()):s()},i.center=function(t){return arguments.length?(a(t),u()):a()},i.clipExtent=function(t){return arguments.length?(null==t?c=e=n=r=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),u()):null==c?null:[[c,e],[n,r]]},u()}function Jf(t){return Yl((Nl+t)/2)}function td(t,e){var n=Pl(t),r=t===e?Ul(t):jl(n/Pl(e))/jl(Jf(e)/Jf(t)),i=n*Hl(Jf(t),r)/r;if(!r)return Zf;function a(t,e){i>0?e<-Nl+Tl&&(e=-Nl+Tl):e>Nl-Tl&&(e=Nl-Tl);var n=i/Hl(Jf(e),r);return[n*Ul(r*t),i-n*Pl(r*t)]}return a.invert=function(t,e){var n=i-e,a=$l(r)*Wl(t*t+n*n),o=Fl(t,Il(n))*$l(n);return n*r<0&&(o-=Ml*$l(t)*$l(n)),[o/r,2*Rl(Hl(i/a,1/r))-Nl]},a}function ed(){return zf(td).scale(109.5).parallels([30,30])}function nd(t,e){return[t,e]}function rd(){return Ff(nd).scale(152.63)}function id(t,e){var n=Pl(t),r=t===e?Ul(t):(n-Pl(e))/(e-t),i=n/r+t;if(Il(r)<Tl)return nd;function a(t,e){var n=i-e,a=r*t;return[n*Ul(a),i-n*Pl(a)]}return a.invert=function(t,e){var n=i-e,a=Fl(t,Il(n))*$l(n);return n*r<0&&(a-=Ml*$l(t)*$l(n)),[a/r,i-$l(r)*Wl(t*t+n*n)]},a}function ad(){return zf(id).scale(131.154).center([0,13.9389])}Gf.invert=Wf((function(t){return t})),Zf.invert=function(t,e){return[t,2*Rl(ql(e))-Nl]},nd.invert=nd;var od=1.340264,sd=-.081106,ld=893e-6,cd=.003796,ud=Wl(3)/2;function hd(t,e){var n=Gl(ud*Ul(e)),r=n*n,i=r*r*r;return[t*Pl(n)/(ud*(od+3*sd*r+i*(7*ld+9*cd*r))),n*(od+sd*r+i*(ld+cd*r))]}function fd(){return Ff(hd).scale(177.158)}function dd(t,e){var n=Pl(e),r=Pl(t)*n;return[n*Ul(t)/r,Ul(e)/r]}function pd(){return Ff(dd).scale(144.049).clipAngle(60)}function gd(){var t,e,n,r,i,a,o,s=1,l=0,c=0,u=1,h=1,f=0,d=null,p=1,g=1,m=Ef({point:function(t,e){var n=b([t,e]);this.stream.point(n[0],n[1])}}),y=_h;function v(){return p=s*u,g=s*h,a=o=null,b}function b(n){var r=n[0]*p,i=n[1]*g;if(f){var a=i*t-r*e;r=r*t+i*e,i=a}return[r+l,i+c]}return b.invert=function(n){var r=n[0]-l,i=n[1]-c;if(f){var a=i*t+r*e;r=r*t-i*e,i=a}return[r/p,i/g]},b.stream=function(t){return a&&o===t?a:a=m(y(o=t))},b.postclip=function(t){return arguments.length?(y=t,d=n=r=i=null,v()):y},b.clipExtent=function(t){return arguments.length?(y=null==t?(d=n=r=i=null,_h):Yu(d=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),v()):null==d?null:[[d,n],[r,i]]},b.scale=function(t){return arguments.length?(s=+t,v()):s},b.translate=function(t){return arguments.length?(l=+t[0],c=+t[1],v()):[l,c]},b.angle=function(n){return arguments.length?(e=Ul(f=n%360*Bl),t=Pl(f),v()):f*Ll},b.reflectX=function(t){return arguments.length?(u=t?-1:1,v()):u<0},b.reflectY=function(t){return arguments.length?(h=t?-1:1,v()):h<0},b.fitExtent=function(t,e){return Af(b,t,e)},b.fitSize=function(t,e){return Mf(b,t,e)},b.fitWidth=function(t,e){return Nf(b,t,e)},b.fitHeight=function(t,e){return Df(b,t,e)},b}function md(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function yd(){return Ff(md).scale(175.295)}function vd(t,e){return[Pl(e)*Ul(t),Ul(e)]}function bd(){return Ff(vd).scale(249.5).clipAngle(90.000001)}function _d(t,e){var n=Pl(e),r=1+Pl(t)*n;return[n*Ul(t)/r,Ul(e)/r]}function xd(){return Ff(_d).scale(250).clipAngle(142)}function wd(t,e){return[jl(Yl((Nl+e)/2)),-t]}function kd(){var t=Qf(wd),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function Cd(t,e){return t.parent===e.parent?1:2}function Ed(t,e){return t+e.x}function Sd(t,e){return Math.max(t,e.y)}function Td(){var t=Cd,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Ed,0)/t.length}(n),e.y=function(t){return 1+t.reduce(Sd,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),l=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),c=s.x-t(s,l)/2,u=l.x+t(l,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-c)/(u-c)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Ad(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Md(t,e){var n,r,i,a,o,s=new Ld(t),l=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=Nd);n=c.pop();)if(l&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)c.push(r=n.children[a]=new Ld(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Od)}function Nd(t){return t.children}function Dd(t){t.data=t.data.data}function Od(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Ld(t){this.data=t,this.depth=this.height=0,this.parent=null}hd.invert=function(t,e){for(var n,r=e,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=n=(r*(od+sd*i+a*(ld+cd*i))-e)/(od+3*sd*i+a*(7*ld+9*cd*i)))*r)*i*i,!(Il(n)<Al));++o);return[ud*t*(od+3*sd*i+a*(7*ld+9*cd*i))/Pl(r),Gl(Ul(r)/ud)]},dd.invert=Wf(Rl),md.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Il(n)>Tl&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},vd.invert=Wf(Gl),_d.invert=Wf((function(t){return 2*Rl(t)})),wd.invert=function(t,e){return[-e,2*Rl(ql(t))-Nl]},Ld.prototype=Md.prototype={constructor:Ld,count:function(){return this.eachAfter(Ad)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r])}while(o.length);return this},eachAfter:function(t){for(var e,n,r,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)a.push(e[n]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Md(this).eachBefore(Dd)}};var Bd=Array.prototype.slice;function Id(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Bd.call(t))).length,a=[];r<i;)e=t[r],n&&Pd(n,e)?++r:(n=qd(a=Rd(a,e)),r=0);return n}function Rd(t,e){var n,r;if(zd(e,t))return[e];for(n=0;n<t.length;++n)if(Fd(e,t[n])&&zd(jd(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(Fd(jd(t[n],t[r]),e)&&Fd(jd(t[n],e),t[r])&&Fd(jd(t[r],e),t[n])&&zd(Hd(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function Fd(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function Pd(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function zd(t,e){for(var n=0;n<e.length;++n)if(!Pd(t,e[n]))return!1;return!0}function qd(t){switch(t.length){case 1:return function(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return jd(t[0],t[1]);case 3:return Hd(t[0],t[1],t[2])}}function jd(t,e){var n=t.x,r=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-n,c=o-r,u=s-i,h=Math.sqrt(l*l+c*c);return{x:(n+a+l/h*u)/2,y:(r+o+c/h*u)/2,r:(h+i+s)/2}}function Hd(t,e,n){var r=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=n.x,u=n.y,h=n.r,f=r-o,d=r-c,p=i-s,g=i-u,m=l-a,y=h-a,v=r*r+i*i-a*a,b=v-o*o-s*s+l*l,_=v-c*c-u*u+h*h,x=d*p-f*g,w=(p*_-g*b)/(2*x)-r,k=(g*m-p*y)/x,C=(d*b-f*_)/(2*x)-i,E=(f*y-d*m)/x,S=k*k+E*E-1,T=2*(a+w*k+C*E),A=w*w+C*C-a*a,M=-(S?(T+Math.sqrt(T*T-4*S*A))/(2*S):A/T);return{x:r+w+k*M,y:i+C+E*M,r:M}}function Ud(t,e,n){var r,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+n.r,i*=i,o=t.r+n.r,i>(o*=o)?(r=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-r*r)),n.x=t.x-r*s-a*l,n.y=t.y-r*l+a*s):(r=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*s-a*l,n.y=e.y+r*l+a*s)):(n.x=e.x+n.r,n.y=e.y)}function $d(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Wd(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Yd(t){this._=t,this.next=null,this.previous=null}function Vd(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;Ud(n,e,r=t[2]),e=new Yd(e),n=new Yd(n),r=new Yd(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){Ud(e._,n._,r=t[s]),r=new Yd(r),l=n.next,c=e.previous,u=n._.r,h=e._.r;do{if(u<=h){if($d(l._,r._)){n=l,e.next=n,n.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if($d(c._,r._)){(e=c).next=n,n.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,a=Wd(e);(r=r.next)!==n;)(o=Wd(r))<a&&(e=r,a=o);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=Id(e),s=0;s<i;++s)(e=t[s]).x-=r.x,e.y-=r.y;return r.r}function Gd(t){return Vd(t),t}function Xd(t){return null==t?null:Zd(t)}function Zd(t){if("function"!=typeof t)throw new Error;return t}function Kd(){return 0}function Qd(t){return function(){return t}}function Jd(t){return Math.sqrt(t.value)}function tp(){var t=null,e=1,n=1,r=Kd;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(ep(t)).eachAfter(np(r,.5)).eachBefore(rp(1)):i.eachBefore(ep(Jd)).eachAfter(np(Kd,1)).eachAfter(np(r,i.r/Math.min(e,n))).eachBefore(rp(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=Xd(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:Qd(+t),i):r},i}function ep(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function np(t,e){return function(n){if(r=n.children){var r,i,a,o=r.length,s=t(n)*e||0;if(s)for(i=0;i<o;++i)r[i].r+=s;if(a=Vd(r),s)for(i=0;i<o;++i)r[i].r-=s;n.r=a+s}}}function rp(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function ip(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function ap(t,e,n,r,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&&(r-e)/t.value;++s<l;)(a=o[s]).y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*c}function op(){var t=1,e=1,n=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(r){r.children&&ap(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,a=r.y0,o=r.x1-n,s=r.y1-n;o<i&&(i=o=(i+o)/2),s<a&&(a=s=(a+s)/2),r.x0=i,r.y0=a,r.x1=o,r.y1=s}}(e,a)),r&&i.eachBefore(ip),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i}var sp={depth:-1},lp={};function cp(t){return t.id}function up(t){return t.parentId}function hp(){var t=cp,e=up;function n(n){var r,i,a,o,s,l,c,u=n.length,h=new Array(u),f={};for(i=0;i<u;++i)r=n[i],s=h[i]=new Ld(r),null!=(l=t(r,i,n))&&(l+="")&&(f[c="$"+(s.id=l)]=c in f?lp:s);for(i=0;i<u;++i)if(s=h[i],null!=(l=e(n[i],i,n))&&(l+="")){if(!(o=f["$"+l]))throw new Error("missing: "+l);if(o===lp)throw new Error("ambiguous: "+l);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error("multiple roots");a=s}if(!a)throw new Error("no root");if(a.parent=sp,a.eachBefore((function(t){t.depth=t.parent.depth+1,--u})).eachBefore(Od),a.parent=null,u>0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=Zd(e),n):t},n.parentId=function(t){return arguments.length?(e=Zd(t),n):e},n}function fp(t,e){return t.parent===e.parent?1:2}function dp(t){var e=t.children;return e?e[0]:t.t}function pp(t){var e=t.children;return e?e[e.length-1]:t.t}function gp(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function mp(t,e,n){return t.a.parent===e.parent?t.a:n}function yp(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function vp(){var t=fp,e=1,n=1,r=null;function i(i){var l=function(t){for(var e,n,r,i,a,o=new yp(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new yp(r[i],i)),n.parent=e;return(o.parent=new yp(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),r)i.eachBefore(s);else{var c=i,u=i,h=i;i.eachBefore((function(t){t.x<c.x&&(c=t),t.x>u.x&&(u=t),t.depth>h.depth&&(h=t)}));var f=c===u?1:t(c,u)/2,d=f-c.x,p=e/(u.x+f+d),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,s=n,l=a.parent.children[0],c=a.m,u=o.m,h=s.m,f=l.m;s=pp(s),a=dp(a),s&&a;)l=dp(l),(o=pp(o)).a=e,(i=s.z+h-a.z-c+t(s._,a._))>0&&(gp(mp(s,e,r),e,i),c+=i,u+=i),h+=s.m,c+=a.m,f+=l.m,u+=o.m;s&&!pp(o)&&(o.t=s,o.m+=h-u),a&&!dp(l)&&(l.t=a,l.m+=c-f,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function bp(t,e,n,r,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&&(i-n)/t.value;++s<l;)(a=o[s]).x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*c}yp.prototype=Object.create(Ld.prototype);var _p=(1+Math.sqrt(5))/2;function xp(t,e,n,r,i,a){for(var o,s,l,c,u,h,f,d,p,g,m,y=[],v=e.children,b=0,_=0,x=v.length,w=e.value;b<x;){l=i-n,c=a-r;do{u=v[_++].value}while(!u&&_<x);for(h=f=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),p=Math.max(f/m,m/h);_<x;++_){if(u+=s=v[_].value,s<h&&(h=s),s>f&&(f=s),m=u*u*g,(d=Math.max(f/m,m/h))>p){u-=s;break}p=d}y.push(o={value:u,dice:l<c,children:v.slice(b,_)}),o.dice?ap(o,n,r,i,w?r+=c*u/w:a):bp(o,n,r,w?n+=l*u/w:i,a),w-=u,b=_}return y}const wp=function t(e){function n(t,n,r,i,a){xp(e,t,n,r,i,a)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(_p);function kp(){var t=wp,e=!1,n=1,r=1,i=[0],a=Kd,o=Kd,s=Kd,l=Kd,c=Kd;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(ip),t}function h(e){var n=i[e.depth],r=e.x0+n,u=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<u&&(u=f=(u+f)/2),e.x0=r,e.y0=u,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=a(e)/2,r+=c(e)-n,u+=o(e)-n,(h-=s(e)-n)<r&&(r=h=(r+h)/2),(f-=l(e)-n)<u&&(u=f=(u+f)/2),t(e,r,u,h,f))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(n=+t[0],r=+t[1],u):[n,r]},u.tile=function(e){return arguments.length?(t=Zd(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:Qd(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:Qd(+t),u):o},u.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:Qd(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:Qd(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:Qd(+t),u):c},u}function Cp(t,e,n,r,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a<l;++a)c[a+1]=o+=s[a].value;!function t(e,n,r,i,a,o,l){if(e>=n-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}for(var h=c[e],f=r/2+h,d=e+1,p=n-1;d<p;){var g=d+p>>>1;c[g]<f?d=g+1:p=g}f-c[d-1]<c[d]-f&&e+1<d&&--d;var m=c[d]-h,y=r-m;if(o-i>l-a){var v=(i*y+o*m)/r;t(e,d,m,i,a,v,l),t(d,n,y,v,a,o,l)}else{var b=(a*y+l*m)/r;t(e,d,m,i,a,o,b),t(d,n,y,i,b,o,l)}}(0,l,t.value,e,n,r,i)}function Ep(t,e,n,r,i){(1&t.depth?bp:ap)(t,e,n,r,i)}const Sp=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,l,c,u,h=-1,f=o.length,d=t.value;++h<f;){for(l=(s=o[h]).children,c=s.value=0,u=l.length;c<u;++c)s.value+=l[c].value;s.dice?ap(s,n,r,i,r+=(a-r)*s.value/d):bp(s,n,r,n+=(i-n)*s.value/d,a),d-=s.value}else t._squarify=o=xp(e,t,n,r,i,a),o.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(_p);function Tp(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function Ap(t,e){var n=dn(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function Mp(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Np=Math.SQRT2;function Dp(t){return((t=Math.exp(t))+1/t)/2}function Op(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,h=l-a,f=u*u+h*h;if(f<1e-12)r=Math.log(c/o)/Np,n=function(t){return[i+t*u,a+t*h,o*Math.exp(Np*t*r)]};else{var d=Math.sqrt(f),p=(c*c-o*o+4*f)/(2*o*2*d),g=(c*c-o*o-4*f)/(2*c*2*d),m=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-m)/Np,n=function(t){var e,n=t*r,s=Dp(m),l=o/(2*d)*(s*(e=Np*n+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*h,o*s/Dp(Np*n+m)]}}return n.duration=1e3*r,n}function Lp(t){return function(e,n){var r=t((e=an(e)).h,(n=an(n)).h),i=pn(e.s,n.s),a=pn(e.l,n.l),o=pn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const Bp=Lp(dn);var Ip=Lp(pn);function Rp(t,e){var n=pn((t=Ca(t)).l,(e=Ca(e)).l),r=pn(t.a,e.a),i=pn(t.b,e.b),a=pn(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function Fp(t){return function(e,n){var r=t((e=Oa(e)).h,(n=Oa(n)).h),i=pn(e.c,n.c),a=pn(e.l,n.l),o=pn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const Pp=Fp(dn);var zp=Fp(pn);function qp(t){return function e(n){function r(e,r){var i=t((e=$a(e)).h,(r=$a(r)).h),a=pn(e.s,r.s),o=pn(e.l,r.l),s=pn(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}const jp=qp(dn);var Hp=qp(pn);function Up(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}function $p(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}function Wp(t){for(var e,n=-1,r=t.length,i=t[r-1],a=0;++n<r;)e=i,i=t[n],a+=e[1]*i[0]-e[0]*i[1];return a/2}function Yp(t){for(var e,n,r=-1,i=t.length,a=0,o=0,s=t[i-1],l=0;++r<i;)e=s,s=t[r],l+=n=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*n,o+=(e[1]+s[1])*n;return[a/(l*=3),o/l]}function Vp(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function Gp(t,e){return t[0]-e[0]||t[1]-e[1]}function Xp(t){for(var e=t.length,n=[0,1],r=2,i=2;i<e;++i){for(;r>1&&Vp(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Zp(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort(Gp),e=0;e<n;++e)i[e]=[r[e][0],-r[e][1]];var a=Xp(r),o=Xp(i),s=o[0]===a[0],l=o[o.length-1]===a[a.length-1],c=[];for(e=a.length-1;e>=0;--e)c.push(t[r[a[e]][2]]);for(e=+s;e<o.length-l;++e)c.push(t[r[o[e]][2]]);return c}function Kp(t,e){for(var n,r,i=t.length,a=t[i-1],o=e[0],s=e[1],l=a[0],c=a[1],u=!1,h=0;h<i;++h)n=(a=t[h])[0],(r=a[1])>s!=c>s&&o<(l-n)*(s-r)/(c-r)+n&&(u=!u),l=n,c=r;return u}function Qp(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],s=a[1],l=0;++r<i;)e=o,n=s,e-=o=(a=t[r])[0],n-=s=a[1],l+=Math.sqrt(e*e+n*n);return l}function Jp(){return Math.random()}const tg=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(Jp),eg=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*e()-1,a=2*e()-1,i=r*r+a*a}while(!i||i>1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(Jp),ng=function t(e){function n(){var t=eg.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Jp),rg=function t(e){function n(t){return function(){for(var n=0,r=0;r<t;++r)n+=e();return n}}return n.source=t,n}(Jp),ig=function t(e){function n(t){var n=rg.source(e)(t);return function(){return n()/t}}return n.source=t,n}(Jp),ag=function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(Jp);function og(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function sg(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var lg=Array.prototype,cg=lg.map,ug=lg.slice,hg={name:"implicit"};function fg(){var t=na(),e=[],n=[],r=hg;function i(i){var a=i+"",o=t.get(a);if(!o){if(r!==hg)return r;t.set(a,o=e.push(i))}return n[(o-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=na();for(var r,a,o=-1,s=n.length;++o<s;)t.has(a=(r=n[o])+"")||t.set(a,e.push(r));return i},i.range=function(t){return arguments.length?(n=ug.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return fg(e,n).unknown(r)},og.apply(i,arguments),i}function dg(){var t,e,n=fg().unknown(void 0),r=n.domain,i=n.range,a=[0,1],o=!1,s=0,l=0,c=.5;function u(){var n=r().length,u=a[1]<a[0],h=a[u-0],f=a[1-u];t=(f-h)/Math.max(1,n-s+2*l),o&&(t=Math.floor(t)),h+=(f-h-t*(n-s))*c,e=t*(1-s),o&&(h=Math.round(h),e=Math.round(e));var d=k(n).map((function(e){return h+t*e}));return i(u?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),u()):r()},n.range=function(t){return arguments.length?(a=[+t[0],+t[1]],u()):a.slice()},n.rangeRound=function(t){return a=[+t[0],+t[1]],o=!0,u()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(o=!!t,u()):o},n.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),u()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),u()):s},n.paddingOuter=function(t){return arguments.length?(l=+t,u()):l},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),u()):c},n.copy=function(){return dg(r(),a).round(o).paddingInner(s).paddingOuter(l).align(c)},og.apply(u(),arguments)}function pg(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return pg(e())},t}function gg(){return pg(dg.apply(null,arguments).paddingInner(1))}function mg(t){return+t}var yg=[0,1];function vg(t){return t}function bg(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function _g(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function xg(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=bg(i,r),a=n(o,a)):(r=bg(r,i),a=n(a,o)),function(t){return a(r(t))}}function wg(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=bg(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=c(t,e,1,r)-1;return a[n](i[n](e))}}function kg(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Cg(){var t,e,n,r,i,a,o=yg,s=yg,l=Mn,c=vg;function u(){return r=Math.min(o.length,s.length)>2?wg:xg,i=a=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),s,l)))(t(c(e)))}return h.invert=function(n){return c(e((a||(a=r(s,o.map(t),Cn)))(n)))},h.domain=function(t){return arguments.length?(o=cg.call(t,mg),c===vg||(c=_g(o)),u()):o.slice()},h.range=function(t){return arguments.length?(s=ug.call(t),u()):s.slice()},h.rangeRound=function(t){return s=ug.call(t),l=Mp,u()},h.clamp=function(t){return arguments.length?(c=t?_g(o):vg,h):c!==vg},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,u()}}function Eg(t,e){return Cg()(t,e)}function Sg(t,e,n,r){var i,a=M(t,e,n);switch((r=ll(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=xl(a,o))||(r.precision=i),gl(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=wl(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=_l(a))||(r.precision=i-2*("%"===r.type))}return pl(r)}function Tg(t){var e=t.domain;return t.ticks=function(t){var n=e();return T(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Sg(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,s=i[a],l=i[o];return l<s&&(r=s,s=l,l=r,r=a,a=o,o=r),(r=A(s,l,n))>0?r=A(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=A(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(l/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(l*r)/r,e(i)),t},t}function Ag(){var t=Eg(vg,vg);return t.copy=function(){return kg(t,Ag())},og.apply(t,arguments),Tg(t)}function Mg(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=cg.call(e,mg),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Mg(t).unknown(e)},t=arguments.length?cg.call(t,mg):[0,1],Tg(n)}function Ng(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function Dg(t){return Math.log(t)}function Og(t){return Math.exp(t)}function Lg(t){return-Math.log(-t)}function Bg(t){return-Math.exp(-t)}function Ig(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Rg(t){return function(e){return-t(-e)}}function Fg(t){var e,n,r=t(Dg,Og),i=r.domain,a=10;function o(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(a),n=function(t){return 10===t?Ig:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(a),i()[0]<0?(e=Rg(e),n=Rg(n),t(Lg,Bg)):t(Dg,Og),r}return r.base=function(t){return arguments.length?(a=+t,o()):a},r.domain=function(t){return arguments.length?(i(t),o()):i()},r.ticks=function(t){var r,o=i(),s=o[0],l=o[o.length-1];(r=l<s)&&(f=s,s=l,l=f);var c,u,h,f=e(s),d=e(l),p=null==t?10:+t,g=[];if(!(a%1)&&d-f<p){if(f=Math.round(f)-1,d=Math.round(d)+1,s>0){for(;f<d;++f)for(u=1,c=n(f);u<a;++u)if(!((h=c*u)<s)){if(h>l)break;g.push(h)}}else for(;f<d;++f)for(u=a-1,c=n(f);u>=1;--u)if(!((h=c*u)<s)){if(h>l)break;g.push(h)}}else g=T(f,d,Math.min(d-f,p)).map(n);return r?g.reverse():g},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!=typeof i&&(i=pl(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a<a-.5&&(r*=a),r<=o?i(t):""}},r.nice=function(){return i(Ng(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Pg(){var t=Fg(Cg()).domain([1,10]);return t.copy=function(){return kg(t,Pg()).base(t.base())},og.apply(t,arguments),t}function zg(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function qg(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function jg(t){var e=1,n=t(zg(e),qg(e));return n.constant=function(n){return arguments.length?t(zg(e=+n),qg(e)):e},Tg(n)}function Hg(){var t=jg(Cg());return t.copy=function(){return kg(t,Hg()).constant(t.constant())},og.apply(t,arguments)}function Ug(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function $g(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Wg(t){return t<0?-t*t:t*t}function Yg(t){var e=t(vg,vg),n=1;function r(){return 1===n?t(vg,vg):.5===n?t($g,Wg):t(Ug(n),Ug(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},Tg(e)}function Vg(){var t=Yg(Cg());return t.copy=function(){return kg(t,Vg()).exponent(t.exponent())},og.apply(t,arguments),t}function Gg(){return Vg.apply(null,arguments).exponent(.5)}function Xg(){var t,e=[],n=[],r=[];function a(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=O(e,t/i);return o}function o(e){return isNaN(e=+e)?t:n[c(r,e)]}return o.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,r=0,o=t.length;r<o;++r)null==(n=t[r])||isNaN(n=+n)||e.push(n);return e.sort(i),a()},o.range=function(t){return arguments.length?(n=ug.call(t),a()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return Xg().domain(e).range(n).unknown(t)},og.apply(o,arguments)}function Zg(){var t,e=0,n=1,r=1,i=[.5],a=[0,1];function o(e){return e<=e?a[c(i,e,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return o}return o.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],s()):[e,n]},o.range=function(t){return arguments.length?(r=(a=ug.call(t)).length-1,s()):a.slice()},o.invertExtent=function(t){var o=a.indexOf(t);return o<0?[NaN,NaN]:o<1?[e,i[0]]:o>=r?[i[r-1],n]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return Zg().domain([e,n]).range(a).unknown(t)},og.apply(Tg(o),arguments)}function Kg(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[c(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=ug.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=ug.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Kg().domain(e).range(n).unknown(t)},og.apply(i,arguments)}var Qg=new Date,Jg=new Date;function tm(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return tm((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Qg.setTime(+e),Jg.setTime(+r),t(Qg),t(Jg),Math.floor(n(Qg,Jg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var em=tm((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));em.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tm((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const nm=em;var rm=em.range,im=tm((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const am=im;var om=im.range,sm=1e3,lm=6e4,cm=36e5,um=864e5,hm=6048e5;function fm(t){return tm((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*lm)/hm}))}var dm=fm(0),pm=fm(1),gm=fm(2),mm=fm(3),ym=fm(4),vm=fm(5),bm=fm(6),_m=dm.range,xm=pm.range,wm=gm.range,km=mm.range,Cm=ym.range,Em=vm.range,Sm=bm.range,Tm=tm((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*lm)/um}),(function(t){return t.getDate()-1}));const Am=Tm;var Mm=Tm.range,Nm=tm((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*sm-t.getMinutes()*lm)}),(function(t,e){t.setTime(+t+e*cm)}),(function(t,e){return(e-t)/cm}),(function(t){return t.getHours()}));const Dm=Nm;var Om=Nm.range,Lm=tm((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*sm)}),(function(t,e){t.setTime(+t+e*lm)}),(function(t,e){return(e-t)/lm}),(function(t){return t.getMinutes()}));const Bm=Lm;var Im=Lm.range,Rm=tm((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*sm)}),(function(t,e){return(e-t)/sm}),(function(t){return t.getUTCSeconds()}));const Fm=Rm;var Pm=Rm.range,zm=tm((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));zm.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?tm((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):zm:null};const qm=zm;var jm=zm.range;function Hm(t){return tm((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/hm}))}var Um=Hm(0),$m=Hm(1),Wm=Hm(2),Ym=Hm(3),Vm=Hm(4),Gm=Hm(5),Xm=Hm(6),Zm=Um.range,Km=$m.range,Qm=Wm.range,Jm=Ym.range,ty=Vm.range,ey=Gm.range,ny=Xm.range,ry=tm((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/um}),(function(t){return t.getUTCDate()-1}));const iy=ry;var ay=ry.range,oy=tm((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));oy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tm((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const sy=oy;var ly=oy.range;function cy(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function uy(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function hy(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function fy(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,l=t.shortMonths,c=Cy(i),u=Ey(i),h=Cy(a),f=Ey(a),d=Cy(o),p=Ey(o),g=Cy(s),m=Ey(s),y=Cy(l),v=Ey(l),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Yy,e:Yy,f:Ky,g:lv,G:uv,H:Vy,I:Gy,j:Xy,L:Zy,m:Qy,M:Jy,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Lv,s:Bv,S:tv,u:ev,U:nv,V:iv,w:av,W:ov,x:null,X:null,y:sv,Y:cv,Z:hv,"%":Ov},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:fv,e:fv,f:yv,g:Av,G:Nv,H:dv,I:pv,j:gv,L:mv,m:vv,M:bv,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Lv,s:Bv,S:_v,u:xv,U:wv,V:Cv,w:Ev,W:Sv,x:null,X:null,y:Tv,Y:Mv,Z:Dv,"%":Ov},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:Ry,e:Ry,f:Hy,g:Oy,G:Dy,H:Py,I:Py,j:Fy,L:jy,m:Iy,M:zy,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:By,Q:$y,s:Wy,S:qy,u:Ty,U:Ay,V:My,w:Sy,W:Ny,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:Oy,Y:Dy,Z:Ly,"%":Uy};function w(t,e){return function(n){var r,i,a,o=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=vy[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),l=s+1);return o.push(t.slice(l,s)),o.join("")}}function k(t,e){return function(n){var r,i,a=hy(1900,void 0,1);if(C(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=uy(hy(a.y,0,1))).getUTCDay(),r=i>4||0===i?$m.ceil(r):$m(r),r=iy.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=cy(hy(a.y,0,1))).getDay(),r=i>4||0===i?pm.ceil(r):pm(r),r=Am.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?uy(hy(a.y,0,1)).getUTCDay():cy(hy(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,uy(a)):cy(a)}}function C(t,e,n,r){for(var i,a,o=0,s=e.length,l=n.length;o<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in vy?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}var dy,py,gy,my,yy,vy={"-":"",_:" ",0:"0"},by=/^\s*\d+/,_y=/^%/,xy=/[\\^$*+?|[\]().{}]/g;function wy(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function ky(t){return t.replace(xy,"\\$&")}function Cy(t){return new RegExp("^(?:"+t.map(ky).join("|")+")","i")}function Ey(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function Sy(t,e,n){var r=by.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ty(t,e,n){var r=by.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ay(t,e,n){var r=by.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function My(t,e,n){var r=by.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ny(t,e,n){var r=by.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Dy(t,e,n){var r=by.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Oy(t,e,n){var r=by.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ly(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function By(t,e,n){var r=by.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Iy(t,e,n){var r=by.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ry(t,e,n){var r=by.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Fy(t,e,n){var r=by.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Py(t,e,n){var r=by.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function zy(t,e,n){var r=by.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function qy(t,e,n){var r=by.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function jy(t,e,n){var r=by.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Hy(t,e,n){var r=by.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Uy(t,e,n){var r=_y.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function $y(t,e,n){var r=by.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Wy(t,e,n){var r=by.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Yy(t,e){return wy(t.getDate(),e,2)}function Vy(t,e){return wy(t.getHours(),e,2)}function Gy(t,e){return wy(t.getHours()%12||12,e,2)}function Xy(t,e){return wy(1+Am.count(nm(t),t),e,3)}function Zy(t,e){return wy(t.getMilliseconds(),e,3)}function Ky(t,e){return Zy(t,e)+"000"}function Qy(t,e){return wy(t.getMonth()+1,e,2)}function Jy(t,e){return wy(t.getMinutes(),e,2)}function tv(t,e){return wy(t.getSeconds(),e,2)}function ev(t){var e=t.getDay();return 0===e?7:e}function nv(t,e){return wy(dm.count(nm(t)-1,t),e,2)}function rv(t){var e=t.getDay();return e>=4||0===e?ym(t):ym.ceil(t)}function iv(t,e){return t=rv(t),wy(ym.count(nm(t),t)+(4===nm(t).getDay()),e,2)}function av(t){return t.getDay()}function ov(t,e){return wy(pm.count(nm(t)-1,t),e,2)}function sv(t,e){return wy(t.getFullYear()%100,e,2)}function lv(t,e){return wy((t=rv(t)).getFullYear()%100,e,2)}function cv(t,e){return wy(t.getFullYear()%1e4,e,4)}function uv(t,e){var n=t.getDay();return wy((t=n>=4||0===n?ym(t):ym.ceil(t)).getFullYear()%1e4,e,4)}function hv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+wy(e/60|0,"0",2)+wy(e%60,"0",2)}function fv(t,e){return wy(t.getUTCDate(),e,2)}function dv(t,e){return wy(t.getUTCHours(),e,2)}function pv(t,e){return wy(t.getUTCHours()%12||12,e,2)}function gv(t,e){return wy(1+iy.count(sy(t),t),e,3)}function mv(t,e){return wy(t.getUTCMilliseconds(),e,3)}function yv(t,e){return mv(t,e)+"000"}function vv(t,e){return wy(t.getUTCMonth()+1,e,2)}function bv(t,e){return wy(t.getUTCMinutes(),e,2)}function _v(t,e){return wy(t.getUTCSeconds(),e,2)}function xv(t){var e=t.getUTCDay();return 0===e?7:e}function wv(t,e){return wy(Um.count(sy(t)-1,t),e,2)}function kv(t){var e=t.getUTCDay();return e>=4||0===e?Vm(t):Vm.ceil(t)}function Cv(t,e){return t=kv(t),wy(Vm.count(sy(t),t)+(4===sy(t).getUTCDay()),e,2)}function Ev(t){return t.getUTCDay()}function Sv(t,e){return wy($m.count(sy(t)-1,t),e,2)}function Tv(t,e){return wy(t.getUTCFullYear()%100,e,2)}function Av(t,e){return wy((t=kv(t)).getUTCFullYear()%100,e,2)}function Mv(t,e){return wy(t.getUTCFullYear()%1e4,e,4)}function Nv(t,e){var n=t.getUTCDay();return wy((t=n>=4||0===n?Vm(t):Vm.ceil(t)).getUTCFullYear()%1e4,e,4)}function Dv(){return"+0000"}function Ov(){return"%"}function Lv(t){return+t}function Bv(t){return Math.floor(+t/1e3)}function Iv(t){return dy=fy(t),py=dy.format,gy=dy.parse,my=dy.utcFormat,yy=dy.utcParse,dy}Iv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Rv=31536e6;function Fv(t){return new Date(t)}function Pv(t){return t instanceof Date?+t:+new Date(+t)}function zv(t,e,n,r,i,o,s,l,c){var u=Eg(vg,vg),h=u.invert,f=u.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),v=c("%b %d"),b=c("%B"),_=c("%Y"),x=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,Rv]];function w(a){return(s(a)<a?d:o(a)<a?p:i(a)<a?g:r(a)<a?m:e(a)<a?n(a)<a?y:v:t(a)<a?b:_)(a)}function k(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var o=Math.abs(r-n)/e,s=a((function(t){return t[2]})).right(x,o);s===x.length?(i=M(n/Rv,r/Rv,e),e=t):s?(i=(s=x[o/x[s-1][2]<x[s][2]/o?s-1:s])[1],e=s[0]):(i=Math.max(M(n,r,e),1),e=l)}return null==i?e:e.every(i)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?f(cg.call(t,Pv)):f().map(Fv)},u.ticks=function(t,e){var n,r=f(),i=r[0],a=r[r.length-1],o=a<i;return o&&(n=i,i=a,a=n),n=(n=k(t,i,a,e))?n.range(i,a+1):[],o?n.reverse():n},u.tickFormat=function(t,e){return null==e?w:c(e)},u.nice=function(t,e){var n=f();return(t=k(t,n[0],n[n.length-1],e))?f(Ng(n,t)):u},u.copy=function(){return kg(u,zv(t,e,n,r,i,o,s,l,c))},u}function qv(){return og.apply(zv(nm,am,dm,Am,Dm,Bm,Fm,qm,py).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var jv=tm((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Hv=jv;var Uv=jv.range,$v=tm((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*cm)}),(function(t,e){return(e-t)/cm}),(function(t){return t.getUTCHours()}));const Wv=$v;var Yv=$v.range,Vv=tm((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*lm)}),(function(t,e){return(e-t)/lm}),(function(t){return t.getUTCMinutes()}));const Gv=Vv;var Xv=Vv.range;function Zv(){return og.apply(zv(sy,Hv,Um,iy,Wv,Gv,Fm,qm,my).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Kv(){var t,e,n,r,i,a=0,o=1,s=vg,l=!1;function c(e){return isNaN(e=+e)?i:s(0===n?.5:(e=(r(e)-t)*n,l?Math.max(0,Math.min(1,e)):e))}return c.domain=function(i){return arguments.length?(t=r(a=+i[0]),e=r(o=+i[1]),n=t===e?0:1/(e-t),c):[a,o]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return r=i,t=i(a),e=i(o),n=t===e?0:1/(e-t),c}}function Qv(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Jv(){var t=Tg(Kv()(vg));return t.copy=function(){return Qv(t,Jv())},sg.apply(t,arguments)}function tb(){var t=Fg(Kv()).domain([1,10]);return t.copy=function(){return Qv(t,tb()).base(t.base())},sg.apply(t,arguments)}function eb(){var t=jg(Kv());return t.copy=function(){return Qv(t,eb()).constant(t.constant())},sg.apply(t,arguments)}function nb(){var t=Yg(Kv());return t.copy=function(){return Qv(t,nb()).exponent(t.exponent())},sg.apply(t,arguments)}function rb(){return nb.apply(null,arguments).exponent(.5)}function ib(){var t=[],e=vg;function n(n){if(!isNaN(n=+n))return e((c(t,n)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var r,a=0,o=e.length;a<o;++a)null==(r=e[a])||isNaN(r=+r)||t.push(r);return t.sort(i),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return ib(e).domain(t)},sg.apply(n,arguments)}function ab(){var t,e,n,r,i,a,o,s=0,l=.5,c=1,u=vg,h=!1;function f(t){return isNaN(t=+t)?o:(t=.5+((t=+a(t))-e)*(t<e?r:i),u(h?Math.max(0,Math.min(1,t)):t))}return f.domain=function(o){return arguments.length?(t=a(s=+o[0]),e=a(l=+o[1]),n=a(c=+o[2]),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),f):[s,l,c]},f.clamp=function(t){return arguments.length?(h=!!t,f):h},f.interpolator=function(t){return arguments.length?(u=t,f):u},f.unknown=function(t){return arguments.length?(o=t,f):o},function(o){return a=o,t=o(s),e=o(l),n=o(c),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),f}}function ob(){var t=Tg(ab()(vg));return t.copy=function(){return Qv(t,ob())},sg.apply(t,arguments)}function sb(){var t=Fg(ab()).domain([.1,1,10]);return t.copy=function(){return Qv(t,sb()).base(t.base())},sg.apply(t,arguments)}function lb(){var t=jg(ab());return t.copy=function(){return Qv(t,lb()).constant(t.constant())},sg.apply(t,arguments)}function cb(){var t=Yg(ab());return t.copy=function(){return Qv(t,cb()).exponent(t.exponent())},sg.apply(t,arguments)}function ub(){return cb.apply(null,arguments).exponent(.5)}function hb(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}const fb=hb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),db=hb("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),pb=hb("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),gb=hb("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),mb=hb("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),yb=hb("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),vb=hb("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),bb=hb("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),_b=hb("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),xb=hb("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function wb(t){return yn(t[t.length-1])}var kb=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(hb);const Cb=wb(kb);var Eb=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(hb);const Sb=wb(Eb);var Tb=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(hb);const Ab=wb(Tb);var Mb=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(hb);const Nb=wb(Mb);var Db=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(hb);const Ob=wb(Db);var Lb=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(hb);const Bb=wb(Lb);var Ib=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(hb);const Rb=wb(Ib);var Fb=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(hb);const Pb=wb(Fb);var zb=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(hb);const qb=wb(zb);var jb=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(hb);const Hb=wb(jb);var Ub=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(hb);const $b=wb(Ub);var Wb=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(hb);const Yb=wb(Wb);var Vb=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(hb);const Gb=wb(Vb);var Xb=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(hb);const Zb=wb(Xb);var Kb=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(hb);const Qb=wb(Kb);var Jb=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(hb);const t_=wb(Jb);var e_=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(hb);const n_=wb(e_);var r_=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(hb);const i_=wb(r_);var a_=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(hb);const o_=wb(a_);var s_=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(hb);const l_=wb(s_);var c_=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(hb);const u_=wb(c_);var h_=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(hb);const f_=wb(h_);var d_=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(hb);const p_=wb(d_);var g_=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(hb);const m_=wb(g_);var y_=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(hb);const v_=wb(y_);var b_=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(hb);const __=wb(b_);var x_=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(hb);const w_=wb(x_);function k_(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const C_=Hp($a(300,.5,0),$a(-240,.5,1));var E_=Hp($a(-100,.75,.35),$a(80,1.5,.8)),S_=Hp($a(260,.75,.35),$a(80,1.5,.8)),T_=$a();function A_(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return T_.h=360*t-100,T_.s=1.5-1.5*e,T_.l=.8-.9*e,T_+""}var M_=Ke(),N_=Math.PI/3,D_=2*Math.PI/3;function O_(t){var e;return t=(.5-t)*Math.PI,M_.r=255*(e=Math.sin(t))*e,M_.g=255*(e=Math.sin(t+N_))*e,M_.b=255*(e=Math.sin(t+D_))*e,M_+""}function L_(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function B_(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const I_=B_(hb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var R_=B_(hb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),F_=B_(hb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),P_=B_(hb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function z_(t){return Ce(ie(t).call(document.documentElement))}var q_=0;function j_(){return new H_}function H_(){this._="@"+(++q_).toString(36)}function U_(t){return"string"==typeof t?new xe([document.querySelectorAll(t)],[document.documentElement]):new xe([null==t?[]:t],_e)}function $_(t,e){null==e&&(e=Nn().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=Dn(t,e[n]);return i}function W_(t){return function(){return t}}H_.prototype=j_.prototype={constructor:H_,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Y_=Math.abs,V_=Math.atan2,G_=Math.cos,X_=Math.max,Z_=Math.min,K_=Math.sin,Q_=Math.sqrt,J_=1e-12,tx=Math.PI,ex=tx/2,nx=2*tx;function rx(t){return t>1?0:t<-1?tx:Math.acos(t)}function ix(t){return t>=1?ex:t<=-1?-ex:Math.asin(t)}function ax(t){return t.innerRadius}function ox(t){return t.outerRadius}function sx(t){return t.startAngle}function lx(t){return t.endAngle}function cx(t){return t&&t.padAngle}function ux(t,e,n,r,i,a,o,s){var l=n-t,c=r-e,u=o-i,h=s-a,f=h*l-u*c;if(!(f*f<J_))return[t+(f=(u*(e-a)-h*(t-i))/f)*l,e+f*c]}function hx(t,e,n,r,i,a,o){var s=t-n,l=e-r,c=(o?a:-a)/Q_(s*s+l*l),u=c*l,h=-c*s,f=t+u,d=e+h,p=n+u,g=r+h,m=(f+p)/2,y=(d+g)/2,v=p-f,b=g-d,_=v*v+b*b,x=i-a,w=f*g-p*d,k=(b<0?-1:1)*Q_(X_(0,x*x*_-w*w)),C=(w*b-v*k)/_,E=(-w*v-b*k)/_,S=(w*b+v*k)/_,T=(-w*v+b*k)/_,A=C-m,M=E-y,N=S-m,D=T-y;return A*A+M*M>N*N+D*D&&(C=S,E=T),{cx:C,cy:E,x01:-u,y01:-h,x11:C*(i/x-1),y11:E*(i/x-1)}}function fx(){var t=ax,e=ox,n=W_(0),r=null,i=sx,a=lx,o=cx,s=null;function l(){var l,c,u=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-ex,d=a.apply(this,arguments)-ex,p=Y_(d-f),g=d>f;if(s||(s=l=Yi()),h<u&&(c=h,h=u,u=c),h>J_)if(p>nx-J_)s.moveTo(h*G_(f),h*K_(f)),s.arc(0,0,h,f,d,!g),u>J_&&(s.moveTo(u*G_(d),u*K_(d)),s.arc(0,0,u,d,f,g));else{var m,y,v=f,b=d,_=f,x=d,w=p,k=p,C=o.apply(this,arguments)/2,E=C>J_&&(r?+r.apply(this,arguments):Q_(u*u+h*h)),S=Z_(Y_(h-u)/2,+n.apply(this,arguments)),T=S,A=S;if(E>J_){var M=ix(E/u*K_(C)),N=ix(E/h*K_(C));(w-=2*M)>J_?(_+=M*=g?1:-1,x-=M):(w=0,_=x=(f+d)/2),(k-=2*N)>J_?(v+=N*=g?1:-1,b-=N):(k=0,v=b=(f+d)/2)}var D=h*G_(v),O=h*K_(v),L=u*G_(x),B=u*K_(x);if(S>J_){var I,R=h*G_(b),F=h*K_(b),P=u*G_(_),z=u*K_(_);if(p<tx&&(I=ux(D,O,P,z,R,F,L,B))){var q=D-I[0],j=O-I[1],H=R-I[0],U=F-I[1],$=1/K_(rx((q*H+j*U)/(Q_(q*q+j*j)*Q_(H*H+U*U)))/2),W=Q_(I[0]*I[0]+I[1]*I[1]);T=Z_(S,(u-W)/($-1)),A=Z_(S,(h-W)/($+1))}}k>J_?A>J_?(m=hx(P,z,D,O,h,A,g),y=hx(R,F,L,B,h,A,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),A<S?s.arc(m.cx,m.cy,A,V_(m.y01,m.x01),V_(y.y01,y.x01),!g):(s.arc(m.cx,m.cy,A,V_(m.y01,m.x01),V_(m.y11,m.x11),!g),s.arc(0,0,h,V_(m.cy+m.y11,m.cx+m.x11),V_(y.cy+y.y11,y.cx+y.x11),!g),s.arc(y.cx,y.cy,A,V_(y.y11,y.x11),V_(y.y01,y.x01),!g))):(s.moveTo(D,O),s.arc(0,0,h,v,b,!g)):s.moveTo(D,O),u>J_&&w>J_?T>J_?(m=hx(L,B,R,F,u,-T,g),y=hx(D,O,P,z,u,-T,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),T<S?s.arc(m.cx,m.cy,T,V_(m.y01,m.x01),V_(y.y01,y.x01),!g):(s.arc(m.cx,m.cy,T,V_(m.y01,m.x01),V_(m.y11,m.x11),!g),s.arc(0,0,u,V_(m.cy+m.y11,m.cx+m.x11),V_(y.cy+y.y11,y.cx+y.x11),g),s.arc(y.cx,y.cy,T,V_(y.y11,y.x11),V_(y.y01,y.x01),!g))):s.arc(0,0,u,x,_,g):s.lineTo(L,B)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-tx/2;return[G_(r)*n,K_(r)*n]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:W_(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:W_(+t),l):e},l.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:W_(+t),l):n},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:W_(+t),l):r},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:W_(+t),l):i},l.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:W_(+t),l):a},l.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:W_(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function dx(t){this._context=t}function px(t){return new dx(t)}function gx(t){return t[0]}function mx(t){return t[1]}function yx(){var t=gx,e=mx,n=W_(!0),r=null,i=px,a=null;function o(o){var s,l,c,u=o.length,h=!1;for(null==r&&(a=i(c=Yi())),s=0;s<=u;++s)!(s<u&&n(l=o[s],s,o))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+t(l,s,o),+e(l,s,o));if(c)return a=null,c+""||null}return o.x=function(e){return arguments.length?(t="function"==typeof e?e:W_(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:W_(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:W_(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o}function vx(){var t=gx,e=null,n=W_(0),r=mx,i=W_(!0),a=null,o=px,s=null;function l(l){var c,u,h,f,d,p=l.length,g=!1,m=new Array(p),y=new Array(p);for(null==a&&(s=o(d=Yi())),c=0;c<=p;++c){if(!(c<p&&i(f=l[c],c,l))===g)if(g=!g)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=u;--h)s.point(m[h],y[h]);s.lineEnd(),s.areaEnd()}g&&(m[c]=+t(f,c,l),y[c]=+n(f,c,l),s.point(e?+e(f,c,l):m[c],r?+r(f,c,l):y[c]))}if(d)return s=null,d+""||null}function c(){return yx().defined(i).curve(o).context(a)}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:W_(+n),e=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:W_(+e),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:W_(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:W_(+t),r=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:W_(+t),l):n},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:W_(+t),l):r},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(r)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:W_(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function bx(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function _x(t){return t}function xx(){var t=_x,e=bx,n=null,r=W_(0),i=W_(nx),a=W_(0);function o(o){var s,l,c,u,h,f=o.length,d=0,p=new Array(f),g=new Array(f),m=+r.apply(this,arguments),y=Math.min(nx,Math.max(-nx,i.apply(this,arguments)-m)),v=Math.min(Math.abs(y)/f,a.apply(this,arguments)),b=v*(y<0?-1:1);for(s=0;s<f;++s)(h=g[p[s]=s]=+t(o[s],s,o))>0&&(d+=h);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),s=0,c=d?(y-f*b)/d:0;s<f;++s,m=u)l=p[s],u=m+((h=g[l])>0?h*c:0)+b,g[l]={data:o[l],index:s,value:h,startAngle:m,endAngle:u,padAngle:v};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:W_(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:W_(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:W_(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:W_(+t),o):a},o}dx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var wx=Cx(px);function kx(t){this._curve=t}function Cx(t){function e(e){return new kx(t(e))}return e._curve=t,e}function Ex(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Cx(t)):e()._curve},t}function Sx(){return Ex(yx().curve(wx))}function Tx(){var t=vx().curve(wx),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Ex(n())},delete t.lineX0,t.lineEndAngle=function(){return Ex(r())},delete t.lineX1,t.lineInnerRadius=function(){return Ex(i())},delete t.lineY0,t.lineOuterRadius=function(){return Ex(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Cx(t)):e()._curve},t}function Ax(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}kx.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Mx=Array.prototype.slice;function Nx(t){return t.source}function Dx(t){return t.target}function Ox(t){var e=Nx,n=Dx,r=gx,i=mx,a=null;function o(){var o,s=Mx.call(arguments),l=e.apply(this,s),c=n.apply(this,s);if(a||(a=o=Yi()),t(a,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:W_(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:W_(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function Lx(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Bx(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Ix(t,e,n,r,i){var a=Ax(e,n),o=Ax(e,n=(n+i)/2),s=Ax(r,n),l=Ax(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}function Rx(){return Ox(Lx)}function Fx(){return Ox(Bx)}function Px(){var t=Ox(Ix);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const zx={draw:function(t,e){var n=Math.sqrt(e/tx);t.moveTo(n,0),t.arc(0,0,n,0,nx)}},qx={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var jx=Math.sqrt(1/3),Hx=2*jx;const Ux={draw:function(t,e){var n=Math.sqrt(e/Hx),r=n*jx;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var $x=Math.sin(tx/10)/Math.sin(7*tx/10),Wx=Math.sin(nx/10)*$x,Yx=-Math.cos(nx/10)*$x;const Vx={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Wx*n,i=Yx*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=nx*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*i,l*r+s*i)}t.closePath()}},Gx={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var Xx=Math.sqrt(3);const Zx={draw:function(t,e){var n=-Math.sqrt(e/(3*Xx));t.moveTo(0,2*n),t.lineTo(-Xx*n,-n),t.lineTo(Xx*n,-n),t.closePath()}};var Kx=-.5,Qx=Math.sqrt(3)/2,Jx=1/Math.sqrt(12),tw=3*(Jx/2+1);const ew={draw:function(t,e){var n=Math.sqrt(e/tw),r=n/2,i=n*Jx,a=r,o=n*Jx+n,s=-a,l=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(Kx*r-Qx*i,Qx*r+Kx*i),t.lineTo(Kx*a-Qx*o,Qx*a+Kx*o),t.lineTo(Kx*s-Qx*l,Qx*s+Kx*l),t.lineTo(Kx*r+Qx*i,Kx*i-Qx*r),t.lineTo(Kx*a+Qx*o,Kx*o-Qx*a),t.lineTo(Kx*s+Qx*l,Kx*l-Qx*s),t.closePath()}};var nw=[zx,qx,Ux,Gx,Vx,Zx,ew];function rw(){var t=W_(zx),e=W_(64),n=null;function r(){var r;if(n||(n=r=Yi()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:W_(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:W_(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function iw(){}function aw(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ow(t){this._context=t}function sw(t){return new ow(t)}function lw(t){this._context=t}function cw(t){return new lw(t)}function uw(t){this._context=t}function hw(t){return new uw(t)}function fw(t,e){this._basis=new ow(t),this._beta=e}ow.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:aw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:aw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},lw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:aw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},uw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:aw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},fw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*o),this._beta*e[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const dw=function t(e){function n(t){return 1===e?new ow(t):new fw(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function pw(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function gw(t,e){this._context=t,this._k=(1-e)/6}gw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:pw(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:pw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const mw=function t(e){function n(t){return new gw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function yw(t,e){this._context=t,this._k=(1-e)/6}yw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:pw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vw=function t(e){function n(t){return new yw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function bw(t,e){this._context=t,this._k=(1-e)/6}bw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const _w=function t(e){function n(t){return new bw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function xw(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>J_){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>J_){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function ww(t,e){this._context=t,this._alpha=e}ww.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:xw(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const kw=function t(e){function n(t){return e?new ww(t,e):new gw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Cw(t,e){this._context=t,this._alpha=e}Cw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:xw(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ew=function t(e){function n(t){return e?new Cw(t,e):new yw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Sw(t,e){this._context=t,this._alpha=e}Sw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xw(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Tw=function t(e){function n(t){return e?new Sw(t,e):new bw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Aw(t){this._context=t}function Mw(t){return new Aw(t)}function Nw(t){return t<0?-1:1}function Dw(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Nw(a)+Nw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ow(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Lw(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Bw(t){this._context=t}function Iw(t){this._context=new Rw(t)}function Rw(t){this._context=t}function Fw(t){return new Bw(t)}function Pw(t){return new Iw(t)}function zw(t){this._context=t}function qw(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function jw(t){return new zw(t)}function Hw(t,e){this._context=t,this._t=e}function Uw(t){return new Hw(t,.5)}function $w(t){return new Hw(t,0)}function Ww(t){return new Hw(t,1)}function Yw(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a<i;++a)for(r=o,o=t[e[a]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Vw(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function Gw(t,e){return t[e]}function Xw(){var t=W_([]),e=Vw,n=Yw,r=Gw;function i(i){var a,o,s=t.apply(this,arguments),l=i.length,c=s.length,u=new Array(c);for(a=0;a<c;++a){for(var h,f=s[a],d=u[a]=new Array(l),p=0;p<l;++p)d[p]=h=[0,+r(i[p],f,p,i)],h.data=i[p];d.key=f}for(a=0,o=e(u);a<c;++a)u[o[a]].index=a;return n(u,o),u}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:W_(Mx.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:W_(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Vw:"function"==typeof t?t:W_(Mx.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Yw:t,i):n},i}function Zw(t,e){if((r=t.length)>0){for(var n,r,i,a=0,o=t[0].length;a<o;++a){for(i=n=0;n<r;++n)i+=t[n][a][1]||0;if(i)for(n=0;n<r;++n)t[n][a][1]/=i}Yw(t,e)}}function Kw(t,e){if((s=t.length)>0)for(var n,r,i,a,o,s,l=0,c=t[e[0]].length;l<c;++l)for(a=o=0,n=0;n<s;++n)(i=(r=t[e[n]][l])[1]-r[0])>0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)}function Qw(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r<a;++r){for(var o=0,s=0;o<n;++o)s+=t[o][r][1]||0;i[r][1]+=i[r][0]=-s/2}Yw(t,e)}}function Jw(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;o<r;++o){for(var s=0,l=0,c=0;s<i;++s){for(var u=t[e[s]],h=u[o][1]||0,f=(h-(u[o-1][1]||0))/2,d=0;d<s;++d){var p=t[e[d]];f+=(p[o][1]||0)-(p[o-1][1]||0)}l+=h,c+=f*h}n[o-1][1]+=n[o-1][0]=a,l&&(a-=c/l)}n[o-1][1]+=n[o-1][0]=a,Yw(t,e)}}function tk(t){var e=t.map(ek);return Vw(t).sort((function(t,n){return e[t]-e[n]}))}function ek(t){for(var e,n=-1,r=0,i=t.length,a=-1/0;++n<i;)(e=+t[n][1])>a&&(a=e,r=n);return r}function nk(t){var e=t.map(rk);return Vw(t).sort((function(t,n){return e[t]-e[n]}))}function rk(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}function ik(t){return nk(t).reverse()}function ak(t){var e,n,r=t.length,i=t.map(rk),a=tk(t),o=0,s=0,l=[],c=[];for(e=0;e<r;++e)n=a[e],o<s?(o+=i[n],l.push(n)):(s+=i[n],c.push(n));return c.reverse().concat(l)}function ok(t){return Vw(t).reverse()}Aw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Bw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Lw(this,this._t0,Ow(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Lw(this,Ow(this,n=Dw(this,t,e)),n);break;default:Lw(this,this._t0,n=Dw(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Iw.prototype=Object.create(Bw.prototype)).point=function(t,e){Bw.prototype.point.call(this,e,t)},Rw.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},zw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=qw(t),i=qw(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Hw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var sk="%Y-%m-%dT%H:%M:%S.%LZ",lk=Date.prototype.toISOString?function(t){return t.toISOString()}:my(sk);const ck=lk;var uk=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:yy(sk);const hk=uk;function fk(t,e,n){var r=new Yn,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?$n():+n,r.restart((function a(o){o+=i,r.restart(a,i+=e,n),t(o)}),e,n),r)}function dk(t){return function(){return t}}function pk(t){return t[0]}function gk(t){return t[1]}function mk(){this._=null}function yk(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function vk(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function bk(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function _k(t){for(;t.L;)t=t.L;return t}mk.prototype={constructor:mk,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=_k(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(vk(this,n),n=(t=n).U),n.C=!1,r.C=!0,bk(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(bk(this,n),n=(t=n).U),n.C=!1,r.C=!0,vk(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?_k(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,vk(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,bk(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,vk(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,bk(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,vk(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,bk(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const xk=mk;function wk(t,e,n,r){var i=[null,null],a=Yk.push(i)-1;return i.left=t,i.right=e,n&&Ck(i,t,e,n),r&&Ck(i,e,t,r),$k[t.index].halfedges.push(a),$k[e.index].halfedges.push(a),i}function kk(t,e,n){var r=[e,n];return r.left=t,r}function Ck(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function Ek(t,e,n,r,i){var a,o=t[0],s=t[1],l=o[0],c=o[1],u=0,h=1,f=s[0]-l,d=s[1]-c;if(a=e-l,f||!(a>0)){if(a/=f,f<0){if(a<u)return;a<h&&(h=a)}else if(f>0){if(a>h)return;a>u&&(u=a)}if(a=r-l,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>u&&(u=a)}else if(f>0){if(a<u)return;a<h&&(h=a)}if(a=n-c,d||!(a>0)){if(a/=d,d<0){if(a<u)return;a<h&&(h=a)}else if(d>0){if(a>h)return;a>u&&(u=a)}if(a=i-c,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>u&&(u=a)}else if(d>0){if(a<u)return;a<h&&(h=a)}return!(u>0||h<1)||(u>0&&(t[0]=[l+u*f,c+u*d]),h<1&&(t[1]=[l+h*f,c+h*d]),!0)}}}}}function Sk(t,e,n,r,i){var a=t[1];if(a)return!0;var o,s,l=t[0],c=t.left,u=t.right,h=c[0],f=c[1],d=u[0],p=u[1],g=(h+d)/2,m=(f+p)/2;if(p===f){if(g<e||g>=r)return;if(h>d){if(l){if(l[1]>=i)return}else l=[g,n];a=[g,i]}else{if(l){if(l[1]<n)return}else l=[g,i];a=[g,n]}}else if(s=m-(o=(h-d)/(p-f))*g,o<-1||o>1)if(h>d){if(l){if(l[1]>=i)return}else l=[(n-s)/o,n];a=[(i-s)/o,i]}else{if(l){if(l[1]<n)return}else l=[(i-s)/o,i];a=[(n-s)/o,n]}else if(f<p){if(l){if(l[0]>=r)return}else l=[e,o*e+s];a=[r,o*r+s]}else{if(l){if(l[0]<e)return}else l=[r,o*r+s];a=[e,o*e+s]}return t[0]=l,t[1]=a,!0}function Tk(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Ak(t,e){return e[+(e.left!==t.site)]}function Mk(t,e){return e[+(e.left===t.site)]}var Nk,Dk=[];function Ok(){yk(this),this.x=this.y=this.arc=this.site=this.cy=null}function Lk(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,a=n.site;if(r!==a){var o=i[0],s=i[1],l=r[0]-o,c=r[1]-s,u=a[0]-o,h=a[1]-s,f=2*(l*h-c*u);if(!(f>=-Gk)){var d=l*l+c*c,p=u*u+h*h,g=(h*d-c*p)/f,m=(l*p-u*d)/f,y=Dk.pop()||new Ok;y.arc=t,y.site=i,y.x=g+o,y.y=(y.cy=m+s)+Math.sqrt(g*g+m*m),t.circle=y;for(var v=null,b=Wk._;b;)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){v=b.P;break}b=b.L}else{if(!b.R){v=b;break}b=b.R}Wk.insert(v,y),v||(Nk=y)}}}}function Bk(t){var e=t.circle;e&&(e.P||(Nk=e.N),Wk.remove(e),Dk.push(e),yk(e),t.circle=null)}var Ik=[];function Rk(){yk(this),this.edge=this.site=this.circle=null}function Fk(t){var e=Ik.pop()||new Rk;return e.site=t,e}function Pk(t){Bk(t),Uk.remove(t),Ik.push(t),yk(t)}function zk(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],a=t.P,o=t.N,s=[t];Pk(t);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<Vk&&Math.abs(r-l.circle.cy)<Vk;)a=l.P,s.unshift(l),Pk(l),l=a;s.unshift(l),Bk(l);for(var c=o;c.circle&&Math.abs(n-c.circle.x)<Vk&&Math.abs(r-c.circle.cy)<Vk;)o=c.N,s.push(c),Pk(c),c=o;s.push(c),Bk(c);var u,h=s.length;for(u=1;u<h;++u)c=s[u],l=s[u-1],Ck(c.edge,l.site,c.site,i);l=s[0],(c=s[h-1]).edge=wk(l.site,c.site,null,i),Lk(l),Lk(c)}function qk(t){for(var e,n,r,i,a=t[0],o=t[1],s=Uk._;s;)if((r=jk(s,o)-a)>Vk)s=s.L;else{if(!((i=a-Hk(s,o))>Vk)){r>-Vk?(e=s.P,n=s):i>-Vk?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){$k[t.index]={site:t,halfedges:[]}}(t);var l=Fk(t);if(Uk.insert(e,l),e||n){if(e===n)return Bk(e),n=Fk(e.site),Uk.insert(l,n),l.edge=n.edge=wk(e.site,l.site),Lk(e),void Lk(n);if(n){Bk(e),Bk(n);var c=e.site,u=c[0],h=c[1],f=t[0]-u,d=t[1]-h,p=n.site,g=p[0]-u,m=p[1]-h,y=2*(f*m-d*g),v=f*f+d*d,b=g*g+m*m,_=[(m*v-d*b)/y+u,(f*b-g*v)/y+h];Ck(n.edge,c,p,_),l.edge=wk(c,t,null,_),n.edge=wk(t,p,null,_),Lk(e),Lk(n)}else l.edge=wk(e.site,l.site)}}function jk(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var s=(n=o.site)[0],l=n[1],c=l-e;if(!c)return s;var u=s-r,h=1/a-1/c,f=u/c;return h?(-f+Math.sqrt(f*f-2*h*(u*u/(-2*c)-l+c/2+i-a/2)))/h+r:(r+s)/2}function Hk(t,e){var n=t.N;if(n)return jk(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var Uk,$k,Wk,Yk,Vk=1e-6,Gk=1e-12;function Xk(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function Zk(t,e){return e[1]-t[1]||e[0]-t[0]}function Kk(t,e){var n,r,i,a=t.sort(Zk).pop();for(Yk=[],$k=new Array(t.length),Uk=new xk,Wk=new xk;;)if(i=Nk,a&&(!i||a[1]<i.y||a[1]===i.y&&a[0]<i.x))a[0]===n&&a[1]===r||(qk(a),n=a[0],r=a[1]),a=t.pop();else{if(!i)break;zk(i.arc)}if(function(){for(var t,e,n,r,i=0,a=$k.length;i<a;++i)if((t=$k[i])&&(r=(e=t.halfedges).length)){var o=new Array(r),s=new Array(r);for(n=0;n<r;++n)o[n]=n,s[n]=Tk(t,Yk[e[n]]);for(o.sort((function(t,e){return s[e]-s[t]})),n=0;n<r;++n)s[n]=e[o[n]];for(n=0;n<r;++n)e[n]=s[n]}}(),e){var o=+e[0][0],s=+e[0][1],l=+e[1][0],c=+e[1][1];!function(t,e,n,r){for(var i,a=Yk.length;a--;)Sk(i=Yk[a],t,e,n,r)&&Ek(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>Vk||Math.abs(i[0][1]-i[1][1])>Vk)||delete Yk[a]}(o,s,l,c),function(t,e,n,r){var i,a,o,s,l,c,u,h,f,d,p,g,m=$k.length,y=!0;for(i=0;i<m;++i)if(a=$k[i]){for(o=a.site,s=(l=a.halfedges).length;s--;)Yk[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)p=(d=Mk(a,Yk[l[s]]))[0],g=d[1],h=(u=Ak(a,Yk[l[++s%c]]))[0],f=u[1],(Math.abs(p-h)>Vk||Math.abs(g-f)>Vk)&&(l.splice(s,0,Yk.push(kk(o,d,Math.abs(p-t)<Vk&&r-g>Vk?[t,Math.abs(h-t)<Vk?f:r]:Math.abs(g-r)<Vk&&n-p>Vk?[Math.abs(f-r)<Vk?h:n,r]:Math.abs(p-n)<Vk&&g-e>Vk?[n,Math.abs(h-n)<Vk?f:e]:Math.abs(g-e)<Vk&&p-t>Vk?[Math.abs(f-e)<Vk?h:t,e]:null))-1),++c);c&&(y=!1)}if(y){var v,b,_,x=1/0;for(i=0,y=null;i<m;++i)(a=$k[i])&&(_=(v=(o=a.site)[0]-t)*v+(b=o[1]-e)*b)<x&&(x=_,y=a);if(y){var w=[t,e],k=[t,r],C=[n,r],E=[n,e];y.halfedges.push(Yk.push(kk(o=y.site,w,k))-1,Yk.push(kk(o,k,C))-1,Yk.push(kk(o,C,E))-1,Yk.push(kk(o,E,w))-1)}}for(i=0;i<m;++i)(a=$k[i])&&(a.halfedges.length||delete $k[i])}(o,s,l,c)}this.edges=Yk,this.cells=$k,Uk=Wk=Yk=$k=null}function Qk(){var t=pk,e=gk,n=null;function r(r){return new Kk(r.map((function(n,i){var a=[Math.round(t(n,i,r)/Vk)*Vk,Math.round(e(n,i,r)/Vk)*Vk];return a.index=i,a.data=n,a})),n)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(e){return arguments.length?(t="function"==typeof e?e:dk(+e),r):t},r.y=function(t){return arguments.length?(e="function"==typeof t?t:dk(+t),r):e},r.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r}function Jk(t){return function(){return t}}function tC(t,e,n){this.target=t,this.type=e,this.transform=n}function eC(t,e,n){this.k=t,this.x=e,this.y=n}Kk.prototype={constructor:Kk,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return Ak(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(a=(i=n.halfedges).length)for(var i,a,o,s=n.site,l=-1,c=e[i[a-1]],u=c.left===s?c.right:c.left;++l<a;)o=u,u=(c=e[i[l]]).left===s?c.right:c.left,o&&u&&r<o.index&&r<u.index&&Xk(s,o,u)<0&&t.push([s.data,o.data,u.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var r,i,a=this,o=a._found||0,s=a.cells.length;!(i=a.cells[o]);)if(++o>=s)return null;var l=t-i.site[0],c=e-i.site[1],u=l*l+c*c;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],c=e-s[1],h=l*l+c*c;h<u&&(u=h,o=s.index)}}))}while(null!==o);return a._found=r,null==n||u<=n*n?i.site:null}},eC.prototype={constructor:eC,scale:function(t){return 1===t?this:new eC(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new eC(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var nC=new eC(1,0,0);function rC(t){for(;!t.__zoom;)if(!(t=t.parentNode))return nC;return t.__zoom}function iC(){ue.stopImmediatePropagation()}function aC(){ue.preventDefault(),ue.stopImmediatePropagation()}function oC(){return!ue.ctrlKey&&!ue.button}function sC(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function lC(){return this.__zoom||nC}function cC(){return-ue.deltaY*(1===ue.deltaMode?.05:ue.deltaMode?1:.002)}function uC(){return navigator.maxTouchPoints||"ontouchstart"in this}function hC(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function fC(){var t,e,n=oC,r=sC,i=hC,a=cC,o=uC,s=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,u=Op,h=ft("start","zoom","end"),f=500,d=0;function p(t){t.property("__zoom",lC).on("wheel.zoom",x).on("mousedown.zoom",w).on("dblclick.zoom",k).filter(o).on("touchstart.zoom",C).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new eC(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new eC(t.k,r,i)}function y(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function v(t,e,n){t.on("start.zoom",(function(){b(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){b(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,a=b(t,i),o=r.apply(t,i),s=null==n?y(o):"function"==typeof n?n.apply(t,i):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=t.__zoom,h="function"==typeof e?e.apply(t,i):e,f=u(c.invert(s).concat(l/c.k),h.invert(s).concat(l/h.k));return function(t){if(1===t)t=h;else{var e=f(t),n=l/e[2];t=new eC(n,s[0]-e[0]*n,s[1]-e[1]*n)}a.zoom(null,t)}}))}function b(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.extent=r.apply(t,e),this.taps=0}function x(){if(n.apply(this,arguments)){var t=b(this,arguments),e=this.__zoom,r=Math.max(s[0],Math.min(s[1],e.k*Math.pow(2,a.apply(this,arguments)))),o=Ln(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=e.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[o,e.invert(o)],ar(this),t.start()}aC(),t.wheel=setTimeout(c,150),t.zoom("mouse",i(m(g(e,r),t.mouse[0],t.mouse[1]),t.extent,l))}function c(){t.wheel=null,t.end()}}function w(){if(!e&&n.apply(this,arguments)){var t=b(this,arguments,!0),r=Ce(ue.view).on("mousemove.zoom",c,!0).on("mouseup.zoom",u,!0),a=Ln(this),o=ue.clientX,s=ue.clientY;Te(ue.view),iC(),t.mouse=[a,this.__zoom.invert(a)],ar(this),t.start()}function c(){if(aC(),!t.moved){var e=ue.clientX-o,n=ue.clientY-s;t.moved=e*e+n*n>d}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=Ln(t.that),t.mouse[1]),t.extent,l))}function u(){r.on("mousemove.zoom mouseup.zoom",null),Ae(ue.view,t.moved),aC(),t.end()}}function k(){if(n.apply(this,arguments)){var t=this.__zoom,e=Ln(this),a=t.invert(e),o=t.k*(ue.shiftKey?.5:2),s=i(m(g(t,o),e,a),r.apply(this,arguments),l);aC(),c>0?Ce(this).transition().duration(c).call(v,s,e):Ce(this).call(p.transform,s)}}function C(){if(n.apply(this,arguments)){var e,r,i,a,o=ue.touches,s=o.length,l=b(this,arguments,ue.changedTouches.length===s);for(iC(),r=0;r<s;++r)a=[a=On(this,o,(i=o[r]).identifier),this.__zoom.invert(a),i.identifier],l.touch0?l.touch1||l.touch0[2]===a[2]||(l.touch1=a,l.taps=0):(l.touch0=a,e=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),e&&(l.taps<2&&(t=setTimeout((function(){t=null}),f)),ar(this),l.start())}}function E(){if(this.__zooming){var e,n,r,a,o=b(this,arguments),s=ue.changedTouches,c=s.length;for(aC(),t&&(t=clearTimeout(t)),o.taps=0,e=0;e<c;++e)r=On(this,s,(n=s[e]).identifier),o.touch0&&o.touch0[2]===n.identifier?o.touch0[0]=r:o.touch1&&o.touch1[2]===n.identifier&&(o.touch1[0]=r);if(n=o.that.__zoom,o.touch1){var u=o.touch0[0],h=o.touch0[1],f=o.touch1[0],d=o.touch1[1],p=(p=f[0]-u[0])*p+(p=f[1]-u[1])*p,y=(y=d[0]-h[0])*y+(y=d[1]-h[1])*y;n=g(n,Math.sqrt(p/y)),r=[(u[0]+f[0])/2,(u[1]+f[1])/2],a=[(h[0]+d[0])/2,(h[1]+d[1])/2]}else{if(!o.touch0)return;r=o.touch0[0],a=o.touch0[1]}o.zoom("touch",i(m(n,r,a),o.extent,l))}}function S(){if(this.__zooming){var t,n,r=b(this,arguments),i=ue.changedTouches,a=i.length;for(iC(),e&&clearTimeout(e),e=setTimeout((function(){e=null}),f),t=0;t<a;++t)n=i[t],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var o=Ce(this).on("dblclick.zoom");o&&o.apply(this,arguments)}}}return p.transform=function(t,e,n){var r=t.selection?t.selection():t;r.property("__zoom",lC),t!==r?v(t,e,n):r.interrupt().each((function(){b(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},p.scaleBy=function(t,e,n){p.scaleTo(t,(function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n}),n)},p.scaleTo=function(t,e,n){p.transform(t,(function(){var t=r.apply(this,arguments),a=this.__zoom,o=null==n?y(t):"function"==typeof n?n.apply(this,arguments):n,s=a.invert(o),c="function"==typeof e?e.apply(this,arguments):e;return i(m(g(a,c),o,s),t,l)}),n)},p.translateBy=function(t,e,n){p.transform(t,(function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),l)}))},p.translateTo=function(t,e,n,a){p.transform(t,(function(){var t=r.apply(this,arguments),o=this.__zoom,s=null==a?y(t):"function"==typeof a?a.apply(this,arguments):a;return i(nC.translate(s[0],s[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,l)}),a)},_.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){me(new tC(p,t,this.that.__zoom),h.apply,h,[t,this.that,this.args])}},p.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:Jk(+t),p):a},p.filter=function(t){return arguments.length?(n="function"==typeof t?t:Jk(!!t),p):n},p.touchable=function(t){return arguments.length?(o="function"==typeof t?t:Jk(!!t),p):o},p.extent=function(t){return arguments.length?(r="function"==typeof t?t:Jk([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),p):r},p.scaleExtent=function(t){return arguments.length?(s[0]=+t[0],s[1]=+t[1],p):[s[0],s[1]]},p.translateExtent=function(t){return arguments.length?(l[0][0]=+t[0][0],l[1][0]=+t[1][0],l[0][1]=+t[0][1],l[1][1]=+t[1][1],p):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},p.constrain=function(t){return arguments.length?(i=t,p):i},p.duration=function(t){return arguments.length?(c=+t,p):c},p.interpolate=function(t){return arguments.length?(u=t,p):u},p.on=function(){var t=h.on.apply(h,arguments);return t===h?p:t},p.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,p):Math.sqrt(d)},p}rC.prototype=eC.prototype},681:(t,e,n)=>{t.exports={graphlib:n(574),layout:n(8123),debug:n(7570),util:{time:n(1138).time,notime:n(1138).notime},version:n(8177)}},1207:(t,e,n)=>{var r=n(8436),i=n(4079);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),(function(t){r.has(n,t.w)?e.push(t):a(t.w)})),delete n[o])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},1133:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,r,a,o){var s={width:0,height:0,rank:o,borderType:e},l=a[e][o-1],c=i.addDummyNode(t,"border",s,n);a[e][o]=c,t.setParent(c,r),l&&t.setEdge(l,c,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.forEach(i,e),r.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,l=o.maxRank+1;s<l;++s)a(t,"borderLeft","_bl",n,o,s),a(t,"borderRight","_br",n,o,s)}}))}},3258:(t,e,n)=>{var r=n(8436);function i(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){a(t.edge(e))}))}function a(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,o),r.has(n,"y")&&o(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),i(t))}}},7822:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},7570:(t,e,n)=>{var r=n(8436),i=n(1138),a=n(574).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},574:(t,e,n)=>{var r;try{r=n(8282)}catch(i){}r||(r=window.graphlib),t.exports=r},4079:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(7822);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,o=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),a=r+i;n.setEdge(t.v,t.w,a),s=Math.max(s,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w).in+=i)}));var c=r.range(s+o+3).map((function(){return new a})),u=o+1;return r.forEach(n.nodes(),(function(t){l(c,u,n.node(t))})),{graph:n,buckets:c,zeroIdx:u}}(t,e||o),c=function(t,e,n){for(var r,i=[],a=e[e.length-1],o=e[0];t.nodeCount();){for(;r=o.dequeue();)s(t,e,n,r);for(;r=a.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(r=e[l].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function s(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,l(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,l(e,n,o)})),t.removeNode(i.v),o}function l(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},8123:(t,e,n)=>{var r=n(8436),i=n(1207),a=n(5995),o=n(8093),s=n(1138).normalizeRanks,l=n(4219),c=n(1138).removeEmptyRanks,u=n(2981),h=n(1133),f=n(3258),d=n(3408),p=n(7873),g=n(1138),m=n(574).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},v,E(n,y),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var i=S(t.node(n));e.setNode(n,r.defaults(E(i,_),x)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},k,E(i,w),r.pick(i,C)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){u.run(t)})),e(" rank",(function(){o(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){c(t)})),e(" nestingGraph.cleanup",(function(){u.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){a.run(t)})),e(" parentDummyChains",(function(){l(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){f.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){a.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){f.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),s=o.marginx||0,l=o.marginy||0;function c(t){var r=t.x,o=t.y,s=t.width,l=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-l/2),a=Math.max(a,o+l/2)}r.forEach(t.nodes(),(function(e){c(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&c(n)})),e-=s,i-=l,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+s,o.height=a-i+l}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(g.intersectRect(a,n)),i.points.push(g.intersectRect(o,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],_=["width","height"],x={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},C=["labelpos"];function E(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},8436:(t,e,n)=>{var r;try{r={cloneDeep:n(361),constant:n(5703),defaults:n(1747),each:n(6073),filter:n(3105),find:n(3311),flatten:n(5564),forEach:n(4486),forIn:n(2620),has:n(8721),isUndefined:n(2353),last:n(928),map:n(5161),mapValues:n(6604),max:n(6162),merge:n(3857),min:n(3632),minBy:n(2762),now:n(7771),pick:n(9722),range:n(6026),reduce:n(4061),sortBy:n(9734),uniqueId:n(3955),values:n(2628),zipObject:n(7287)}}catch(i){}r||(r=window._),t.exports=r},2981:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,o,s,l,c){var u=t.children(c);if(u.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,r.forEach(u,(function(r){a(t,e,n,o,s,l,r);var i=t.node(r),u=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,g=u!==d?1:s-l[c]+1;t.setEdge(h,u,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+l[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),o=r.max(r.values(n))-1,s=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=s}));var l=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){a(t,e,s,l,o,n,r)})),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},5995:(t,e,n)=>{var r=n(8436),i=n(1138);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,a,o=e.v,s=t.node(o).rank,l=e.w,c=t.node(l).rank,u=e.name,h=t.edge(e),f=h.labelRank;if(c!==s+1){for(t.removeEdge(e),a=0,++s;s<c;++a,++s)h.points=[],r={width:0,height:0,edgeLabel:h,edgeObj:e,rank:s},n=i.addDummyNode(t,"edge",r,"_d"),s===f&&(r.width=h.width,r.height=h.height,r.dummy="edge-label",r.labelpos=h.labelpos),t.setEdge(o,n,{weight:h.weight},u),0===a&&t.graph().dummyChains.push(n),o=n;t.setEdge(o,l,{weight:h.weight},u)}}(t,e)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}}},5093:(t,e,n)=>{var r=n(8436);t.exports=function(t,e,n){var i,a={};r.forEach(n,(function(n){for(var r,o,s=t.parent(n);s;){if((r=t.parent(s))?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}}))}},5439:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},3128:(t,e,n)=>{var r=n(8436),i=n(574).Graph;t.exports=function(t,e,n){var a=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),l=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(o.setNode(i),o.setParent(i,l||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),s=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),o}},6630:(t,e,n)=>{var r=n(8436);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),a=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),o=1;o<n.length;)o<<=1;var s=2*o-1;o-=1;var l=r.map(new Array(s),(function(){return 0})),c=0;return r.forEach(a.forEach((function(t){var e=t.pos+o;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}t.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=i(t,e[r-1],e[r]);return n}},3408:(t,e,n)=>{var r=n(8436),i=n(2588),a=n(6630),o=n(1026),s=n(3128),l=n(5093),c=n(574).Graph,u=n(1138);function h(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function f(t,e){var n=new c;r.forEach(t,(function(t){var i=t.graph().root,a=o(t,i,n,e);r.forEach(a.vs,(function(e,n){t.node(e).order=n})),l(t,n,a.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=u.maxRank(t),n=h(t,r.range(1,e+1),"inEdges"),o=h(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);d(t,s);for(var l,c=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){f(p%2?n:o,p%4>=2),s=u.buildLayerMatrix(t);var m=a(t,s);m<c&&(g=0,l=r.cloneDeep(s),c=m)}d(t,l)}},2588:(t,e,n)=>{var r=n(8436);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),a=r.map(r.range(i+1),(function(){return[]})),o=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(o,(function n(i){if(!r.has(e,i)){e[i]=!0;var o=t.node(i);a[o.rank].push(i),r.forEach(t.successors(i),n)}})),a}},9567:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){var n,i,a,o;e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(i=e,a=0,o=0,(n=t).weight&&(a+=n.barycenter*n.weight,o+=n.weight),i.weight&&(a+=i.barycenter*i.weight,o+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=a/o,n.weight=o,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var a=t.pop();e.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},1026:(t,e,n)=>{var r=n(8436),i=n(5439),a=n(9567),o=n(7304);t.exports=function t(e,n,s,l){var c=e.children(n),u=e.node(n),h=u?u.borderLeft:void 0,f=u?u.borderRight:void 0,d={};h&&(c=r.filter(c,(function(t){return t!==h&&t!==f})));var p=i(e,c);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,s,l);d[n.v]=i,r.has(i,"barycenter")&&(a=n,o=i,r.isUndefined(a.barycenter)?(a.barycenter=o.barycenter,a.weight=o.weight):(a.barycenter=(a.barycenter*a.weight+o.barycenter*o.weight)/(a.weight+o.weight),a.weight+=o.weight))}var a,o}));var g=a(p,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,d);var m=o(g,l);if(h&&(m.vs=r.flatten([h,m.vs,f],!0),e.predecessors(h).length)){var y=e.node(e.predecessors(h)[0]),v=e.node(e.predecessors(f)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+v.order)/(m.weight+2),m.weight+=2}return m}},7304:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,o=i.partition(t,(function(t){return r.has(t,"barycenter")})),s=o.lhs,l=r.sortBy(o.rhs,(function(t){return-t.i})),c=[],u=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),f=a(c,l,f),r.forEach(s,(function(t){f+=t.vs.length,c.push(t.vs),u+=t.barycenter*t.weight,h+=t.weight,f=a(c,l,f)}));var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=u/h,d.weight=h),d}},4219:(t,e,n)=>{var r=n(8436);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],s=[],l=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>l||c>e[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)s.push(i);return{path:o.concat(s.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,l=0,c=o[l],u=!0;n!==i.w;){if(r=t.node(n),u){for(;(c=o[l])!==s&&t.node(c).maxRank<r.rank;)l++;c===s&&(u=!1)}if(!u){for(;l<o.length-1&&t.node(c=o[l+1]).minRank<=r.rank;)l++;c=o[l]}t.setParent(n,c),n=t.successors(n)[0]}}))}},3573:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(1138);function o(t,e){var n={};return r.reduce(e,(function(e,i){var a=0,o=0,s=e.length,c=r.last(i);return r.forEach(i,(function(e,u){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),f=h?t.node(h).order:s;(h||e===c)&&(r.forEach(i.slice(o,u+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(o<a||f<o)||i.dummy&&t.node(e).dummy||l(n,r,e)}))})),o=u+1,a=f)})),i})),n}function s(t,e){var n={};function i(e,i,a,o,s){var c;r.forEach(r.range(i,a),(function(i){c=e[i],t.node(c).dummy&&r.forEach(t.predecessors(c),(function(e){var r=t.node(e);r.dummy&&(r.order<o||r.order>s)&&l(n,e,c)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,l){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(a=t.node(c[0]).order,i(n,s,l,o,a),s=l,o=a)}i(n,s,n.length,a,e.length)})),n})),n}function l(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function u(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var l=i(t);if(l.length){l=r.sortBy(l,(function(t){return s[t]}));for(var u=(l.length-1)/2,h=Math.floor(u),f=Math.ceil(u);h<=f;++h){var d=l[h];o[t]===t&&e<s[d]&&!c(n,t,d)&&(o[d]=t,o[t]=a[t]=a[d],e=s[d])}}}))})),{root:a,align:o}}function h(t,e,n,a,o){var s={},l=function(t,e,n,a){var o=new i,s=t.graph(),l=function(t,e,n){return function(i,a,o){var s,l=i.node(a),c=i.node(o),u=0;if(u+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2}if(s&&(u+=n?s:-s),s=0,u+=(l.dummy?e:t)/2,u+=(c.dummy?e:t)/2,u+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2}return s&&(u+=n?s:-s),s=0,u}}(s.nodesep,s.edgesep,a);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(o.setNode(r),i){var a=n[i],s=o.edge(a,r);o.setEdge(a,r,Math.max(l(t,e,i),s||0))}i=e}))})),o}(t,e,n,o),c=o?"borderLeft":"borderRight";function u(t,e){for(var n=l.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return u((function(t){s[t]=l.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+l.edge(e))}),0)}),l.predecessors.bind(l)),u((function(e){var n=l.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-l.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(s[e]=Math.max(s[e],n))}),l.successors.bind(l)),r.forEach(a,(function(t){s[t]=s[n[t]]})),s}function f(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var a=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+a,n),i=Math.min(e-a,i)})),n-i}))}function d(t,e){var n=r.values(e),i=r.min(n),a=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(o){var s,l=n+o,c=t[l];if(c!==e){var u=r.values(c);(s="l"===o?i-r.min(u):a-r.max(u))&&(t[l]=r.mapValues(c,(function(t){return t+s})))}}))}))}function p(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var a=r.sortBy(r.map(t,i));return(a[1]+a[2])/2}))}t.exports={positionX:function(t){var e,n=a.buildLayerMatrix(t),i=r.merge(o(t,n),s(t,n)),l={};r.forEach(["u","d"],(function(a){e="u"===a?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var o=("u"===a?t.predecessors:t.successors).bind(t),s=u(0,e,i,o),c=h(t,e,s.root,s.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(t){return-t}))),l[a+n]=c}))}));var c=f(t,l);return d(l,c),p(l,t.graph().align)},findType1Conflicts:o,findType2Conflicts:s,addConflict:l,hasConflict:c,verticalAlignment:u,horizontalCompaction:h,alignCoordinates:d,findSmallestWidthAlignment:f,balance:p}},7873:(t,e,n)=>{var r=n(8436),i=n(1138),a=n(3573).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=a+i/2})),a+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}},300:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(6681).slack;function o(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var o=r.v,s=i===o?r.w:o;t.hasNode(s)||a(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return a(e,n)}))}function l(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),c=t.nodes()[0],u=t.nodeCount();for(r.setNode(c,{});o(r,t)<u;)e=s(r,t),n=r.hasNode(e.v)?a(t,e):-a(t,e),l(r,t,n);return r}},8093:(t,e,n)=>{var r=n(6681).longestPath,i=n(300),a=n(2472);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){a(t)}(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":o(t)}};var o=r},2472:(t,e,n)=>{var r=n(8436),i=n(300),a=n(6681).slack,o=n(6681).longestPath,s=n(574).alg.preorder,l=n(574).alg.postorder,c=n(1138).simplify;function u(t){t=c(t),o(t);var e,n=i(t);for(d(n),h(n,t);e=g(n);)y(n,t,e,m(n,t,e))}function h(t,e){var n=l(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=f(t,e,n)}(t,e,n)}))}function f(t,e,n){var i=t.node(n).parent,a=!0,o=e.edge(n,i),s=0;return o||(a=!1,o=e.edge(i,n)),s=o.weight,r.forEach(e.nodeEdges(n),(function(r){var o,l,c=r.v===n,u=c?r.w:r.v;if(u!==i){var h=c===a,f=e.edge(r).weight;if(s+=h?f:-f,o=n,l=u,t.hasEdge(o,l)){var d=t.edge(n,u).cutvalue;s+=h?-d:d}}})),s}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,a){var o=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(a){r.has(e,a)||(n=p(t,e,n,a,i))})),s.low=o,s.lim=n++,a?s.parent=a:delete s.parent,n}function g(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function m(t,e,n){var i=n.v,o=n.w;e.hasEdge(i,o)||(i=n.w,o=n.v);var s=t.node(i),l=t.node(o),c=s,u=!1;s.lim>l.lim&&(c=l,u=!0);var h=r.filter(e.edges(),(function(e){return u===v(0,t.node(e.v),c)&&u!==v(0,t.node(e.w),c)}));return r.minBy(h,(function(t){return a(e,t)}))}function y(t,e,n,i){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function v(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=u,u.initLowLimValues=d,u.initCutValues=h,u.calcCutValue=f,u.leaveEdge=g,u.enterEdge=m,u.exchangeEdges=y},6681:(t,e,n)=>{var r=n(8436);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),a.rank=o}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},1138:(t,e,n)=>{var r=n(8436),i=n(574).Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:a,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,l=t.width/2,c=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),n=c*o/s,r=c):(o<0&&(l=-l),n=l,r=l*s/o),{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),a(t,"border",i,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},8177:t=>{t.exports="0.8.5"},7856:function(t){t.exports=function(){var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,o=Object.seal,s=Object.create,l="undefined"!=typeof Reflect&&Reflect,c=l.apply,u=l.construct;c||(c=function(t,e,n){return t.apply(e,n)}),a||(a=function(t){return t}),o||(o=function(t){return t}),u||(u=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e))))});var h,f=w(Array.prototype.forEach),d=w(Array.prototype.pop),p=w(Array.prototype.push),g=w(String.prototype.toLowerCase),m=w(String.prototype.match),y=w(String.prototype.replace),v=w(String.prototype.indexOf),b=w(String.prototype.trim),_=w(RegExp.prototype.test),x=(h=TypeError,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u(h,e)});function w(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return c(t,e,r)}}function k(t,r){e&&e(t,null);for(var i=r.length;i--;){var a=r[i];if("string"==typeof a){var o=g(a);o!==a&&(n(r)||(r[i]=o),a=o)}t[a]=!0}return t}function C(e){var n=s(null),r=void 0;for(r in e)c(t,e,[r])&&(n[r]=e[r]);return n}function E(t,e){for(;null!==t;){var n=i(t,e);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}t=r(t)}return function(t){return console.warn("fallback value for",t),null}}var S=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),A=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=a(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),D=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=a(["#text"]),L=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),I=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),R=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=o(/\{\{[\s\S]*|[\s\S]*\}\}/gm),P=o(/<%[\s\S]*|[\s\S]*%>/gm),z=o(/^data-[\-\w.\u00B7-\uFFFF]/),q=o(/^aria-[\-\w]+$/),j=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=o(/^(?:\w+script|data):/i),U=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function W(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var Y=function(){return"undefined"==typeof window?null:window},V=function(t,e){if("object"!==(void 0===t?"undefined":$(t))||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(r)&&(n=e.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(t){return t}})}catch(a){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y(),n=function(e){return t(e)};if(n.version="2.3.5",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,i=e.document,o=e.DocumentFragment,s=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,h=e.NamedNodeMap,w=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,G=e.HTMLFormElement,X=e.DOMParser,Z=e.trustedTypes,K=c.prototype,Q=E(K,"cloneNode"),J=E(K,"nextSibling"),tt=E(K,"childNodes"),et=E(K,"parentNode");if("function"==typeof s){var nt=i.createElement("template");nt.content&&nt.content.ownerDocument&&(i=nt.content.ownerDocument)}var rt=V(Z,r),it=rt?rt.createHTML(""):"",at=i,ot=at.implementation,st=at.createNodeIterator,lt=at.createDocumentFragment,ct=at.getElementsByTagName,ut=r.importNode,ht={};try{ht=C(i).documentMode?i.documentMode:{}}catch(ke){}var ft={};n.isSupported="function"==typeof et&&ot&&void 0!==ot.createHTMLDocument&&9!==ht;var dt=F,pt=P,gt=z,mt=q,yt=H,vt=U,bt=j,_t=null,xt=k({},[].concat(W(S),W(T),W(A),W(N),W(O))),wt=null,kt=k({},[].concat(W(L),W(B),W(I),W(R))),Ct=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Et=null,St=null,Tt=!0,At=!0,Mt=!1,Nt=!1,Dt=!1,Ot=!1,Lt=!1,Bt=!1,It=!1,Rt=!1,Ft=!0,Pt=!0,zt=!1,qt={},jt=null,Ht=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ut=null,$t=k({},["audio","video","img","source","image","track"]),Wt=null,Yt=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vt="http://www.w3.org/1998/Math/MathML",Gt="http://www.w3.org/2000/svg",Xt="http://www.w3.org/1999/xhtml",Zt=Xt,Kt=!1,Qt=void 0,Jt=["application/xhtml+xml","text/html"],te="text/html",ee=void 0,ne=null,re=i.createElement("form"),ie=function(t){return t instanceof RegExp||t instanceof Function},ae=function(t){ne&&ne===t||(t&&"object"===(void 0===t?"undefined":$(t))||(t={}),t=C(t),_t="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS):xt,wt="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR):kt,Wt="ADD_URI_SAFE_ATTR"in t?k(C(Yt),t.ADD_URI_SAFE_ATTR):Yt,Ut="ADD_DATA_URI_TAGS"in t?k(C($t),t.ADD_DATA_URI_TAGS):$t,jt="FORBID_CONTENTS"in t?k({},t.FORBID_CONTENTS):Ht,Et="FORBID_TAGS"in t?k({},t.FORBID_TAGS):{},St="FORBID_ATTR"in t?k({},t.FORBID_ATTR):{},qt="USE_PROFILES"in t&&t.USE_PROFILES,Tt=!1!==t.ALLOW_ARIA_ATTR,At=!1!==t.ALLOW_DATA_ATTR,Mt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=t.SAFE_FOR_TEMPLATES||!1,Dt=t.WHOLE_DOCUMENT||!1,Bt=t.RETURN_DOM||!1,It=t.RETURN_DOM_FRAGMENT||!1,Rt=t.RETURN_TRUSTED_TYPE||!1,Lt=t.FORCE_BODY||!1,Ft=!1!==t.SANITIZE_DOM,Pt=!1!==t.KEEP_CONTENT,zt=t.IN_PLACE||!1,bt=t.ALLOWED_URI_REGEXP||bt,Zt=t.NAMESPACE||Xt,t.CUSTOM_ELEMENT_HANDLING&&ie(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ct.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ie(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ct.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ct.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qt=Qt=-1===Jt.indexOf(t.PARSER_MEDIA_TYPE)?te:t.PARSER_MEDIA_TYPE,ee="application/xhtml+xml"===Qt?function(t){return t}:g,Nt&&(At=!1),It&&(Bt=!0),qt&&(_t=k({},[].concat(W(O))),wt=[],!0===qt.html&&(k(_t,S),k(wt,L)),!0===qt.svg&&(k(_t,T),k(wt,B),k(wt,R)),!0===qt.svgFilters&&(k(_t,A),k(wt,B),k(wt,R)),!0===qt.mathMl&&(k(_t,N),k(wt,I),k(wt,R))),t.ADD_TAGS&&(_t===xt&&(_t=C(_t)),k(_t,t.ADD_TAGS)),t.ADD_ATTR&&(wt===kt&&(wt=C(wt)),k(wt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&k(Wt,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(jt===Ht&&(jt=C(jt)),k(jt,t.FORBID_CONTENTS)),Pt&&(_t["#text"]=!0),Dt&&k(_t,["html","head","body"]),_t.table&&(k(_t,["tbody"]),delete Et.tbody),a&&a(t),ne=t)},oe=k({},["mi","mo","mn","ms","mtext"]),se=k({},["foreignobject","desc","title","annotation-xml"]),le=k({},T);k(le,A),k(le,M);var ce=k({},N);k(ce,D);var ue=function(t){var e=et(t);e&&e.tagName||(e={namespaceURI:Xt,tagName:"template"});var n=g(t.tagName),r=g(e.tagName);if(t.namespaceURI===Gt)return e.namespaceURI===Xt?"svg"===n:e.namespaceURI===Vt?"svg"===n&&("annotation-xml"===r||oe[r]):Boolean(le[n]);if(t.namespaceURI===Vt)return e.namespaceURI===Xt?"math"===n:e.namespaceURI===Gt?"math"===n&&se[r]:Boolean(ce[n]);if(t.namespaceURI===Xt){if(e.namespaceURI===Gt&&!se[r])return!1;if(e.namespaceURI===Vt&&!oe[r])return!1;var i=k({},["title","style","font","a","script"]);return!ce[n]&&(i[n]||!le[n])}return!1},he=function(t){p(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=it}catch(r){t.remove()}}},fe=function(t,e){try{p(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(r){p(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!wt[t])if(Bt||It)try{he(e)}catch(r){}else try{e.setAttribute(t,"")}catch(r){}},de=function(t){var e=void 0,n=void 0;if(Lt)t="<remove></remove>"+t;else{var r=m(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Qt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=rt?rt.createHTML(t):t;if(Zt===Xt)try{e=(new X).parseFromString(a,Qt)}catch(s){}if(!e||!e.documentElement){e=ot.createDocument(Zt,"template",null);try{e.documentElement.innerHTML=Kt?"":a}catch(s){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),Zt===Xt?ct.call(e,Dt?"html":"body")[0]:Dt?e.documentElement:o},pe=function(t){return st.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ge=function(t){return t instanceof G&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof w)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},me=function(t){return"object"===(void 0===l?"undefined":$(l))?t instanceof l:t&&"object"===(void 0===t?"undefined":$(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},ye=function(t,e,r){ft[t]&&f(ft[t],(function(t){t.call(n,e,r,ne)}))},ve=function(t){var e=void 0;if(ye("beforeSanitizeElements",t,null),ge(t))return he(t),!0;if(m(t.nodeName,/[\u0080-\uFFFF]/))return he(t),!0;var r=ee(t.nodeName);if(ye("uponSanitizeElement",t,{tagName:r,allowedTags:_t}),!me(t.firstElementChild)&&(!me(t.content)||!me(t.content.firstElementChild))&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent))return he(t),!0;if("select"===r&&_(/<template/i,t.innerHTML))return he(t),!0;if(!_t[r]||Et[r]){if(Pt&&!jt[r]){var i=et(t)||t.parentNode,a=tt(t)||t.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o)i.insertBefore(Q(a[o],!0),J(t))}if(!Et[r]&&_e(r)){if(Ct.tagNameCheck instanceof RegExp&&_(Ct.tagNameCheck,r))return!1;if(Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(r))return!1}return he(t),!0}return t instanceof c&&!ue(t)?(he(t),!0):"noscript"!==r&&"noembed"!==r||!_(/<\/no(script|embed)/i,t.innerHTML)?(Nt&&3===t.nodeType&&(e=t.textContent,e=y(e,dt," "),e=y(e,pt," "),t.textContent!==e&&(p(n.removed,{element:t.cloneNode()}),t.textContent=e)),ye("afterSanitizeElements",t,null),!1):(he(t),!0)},be=function(t,e,n){if(Ft&&("id"===e||"name"===e)&&(n in i||n in re))return!1;if(At&&!St[e]&&_(gt,e));else if(Tt&&_(mt,e));else if(!wt[e]||St[e]){if(!(_e(t)&&(Ct.tagNameCheck instanceof RegExp&&_(Ct.tagNameCheck,t)||Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(t))&&(Ct.attributeNameCheck instanceof RegExp&&_(Ct.attributeNameCheck,e)||Ct.attributeNameCheck instanceof Function&&Ct.attributeNameCheck(e))||"is"===e&&Ct.allowCustomizedBuiltInElements&&(Ct.tagNameCheck instanceof RegExp&&_(Ct.tagNameCheck,n)||Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(n))))return!1}else if(Wt[e]);else if(_(bt,y(n,vt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==v(n,"data:")||!Ut[t])if(Mt&&!_(yt,y(n,vt,"")));else if(n)return!1;return!0},_e=function(t){return t.indexOf("-")>0},xe=function(t){var e=void 0,r=void 0,i=void 0,a=void 0;ye("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:wt};for(a=o.length;a--;){var l=e=o[a],c=l.name,u=l.namespaceURI;if(r=b(e.value),i=ee(c),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,ye("uponSanitizeAttribute",t,s),r=s.attrValue,!s.forceKeepAttr&&(fe(c,t),s.keepAttr))if(_(/\/>/i,r))fe(c,t);else{Nt&&(r=y(r,dt," "),r=y(r,pt," "));var h=ee(t.nodeName);if(be(h,i,r))try{u?t.setAttributeNS(u,c,r):t.setAttribute(c,r),d(n.removed)}catch(f){}}}ye("afterSanitizeAttributes",t,null)}},we=function t(e){var n=void 0,r=pe(e);for(ye("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)ye("uponSanitizeShadowNode",n,null),ve(n)||(n.content instanceof o&&t(n.content),xe(n));ye("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,i){var a=void 0,s=void 0,c=void 0,u=void 0,h=void 0;if((Kt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!me(t)){if("function"!=typeof t.toString)throw x("toString is not a function");if("string"!=typeof(t=t.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported){if("object"===$(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(me(t))return e.toStaticHTML(t.outerHTML)}return t}if(Ot||ae(i),n.removed=[],"string"==typeof t&&(zt=!1),zt){if(t.nodeName){var f=ee(t.nodeName);if(!_t[f]||Et[f])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(s=(a=de("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!Bt&&!Nt&&!Dt&&-1===t.indexOf("<"))return rt&&Rt?rt.createHTML(t):t;if(!(a=de(t)))return Bt?null:Rt?it:""}a&&Lt&&he(a.firstChild);for(var d=pe(zt?t:a);c=d.nextNode();)3===c.nodeType&&c===u||ve(c)||(c.content instanceof o&&we(c.content),xe(c),u=c);if(u=null,zt)return t;if(Bt){if(It)for(h=lt.call(a.ownerDocument);a.firstChild;)h.appendChild(a.firstChild);else h=a;return wt.shadowroot&&(h=ut.call(r,h,!0)),h}var p=Dt?a.outerHTML:a.innerHTML;return Nt&&(p=y(p,dt," "),p=y(p,pt," ")),rt&&Rt?rt.createHTML(p):p},n.setConfig=function(t){ae(t),Ot=!0},n.clearConfig=function(){ne=null,Ot=!1},n.isValidAttribute=function(t,e,n){ne||ae({});var r=ee(t),i=ee(e);return be(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(ft[t]=ft[t]||[],p(ft[t],e))},n.removeHook=function(t){ft[t]&&d(ft[t])},n.removeHooks=function(t){ft[t]&&(ft[t]=[])},n.removeAllHooks=function(){ft={}},n}()}()},8282:(t,e,n)=>{var r=n(2354);t.exports={Graph:r.Graph,json:n(8974),alg:n(2440),version:r.version}},2842:(t,e,n)=>{var r=n(9126);t.exports=function(t){var e,n={},i=[];function a(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),a),r.each(t.predecessors(i),a))}return r.each(t.nodes(),(function(t){e=[],a(t),e.length&&i.push(e)})),i}},3984:(t,e,n)=>{var r=n(9126);function i(t,e,n,a,o,s){r.has(a,e)||(a[e]=!0,n||s.push(e),r.each(o(e),(function(e){i(t,e,n,a,o,s)})),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var a=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,a,o)})),o}},4847:(t,e,n)=>{var r=n(3763),i=n(9126);t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,a){i[a]=r(t,a,e,n)}),{})}},3763:(t,e,n)=>{var r=n(9126),i=n(9675);t.exports=function(t,e,n,r){return function(t,e,n,r){var a,o,s={},l=new i,c=function(t){var e=t.v!==a?t.v:t.w,r=s[e],i=n(t),c=o.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c<r.distance&&(r.distance=c,r.predecessor=a,l.decrease(e,c))};for(t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},l.add(t,n)}));l.size()>0&&(a=l.removeMin(),(o=s[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(c);return s}(t,String(e),n||a,r||function(e){return t.outEdges(e)})};var a=r.constant(1)},9096:(t,e,n)=>{var r=n(9126),i=n(5023);t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},8924:(t,e,n)=>{var r=n(9126);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[t],i=e[n],o=a[n],s=r.distance+i.distance;s<o.distance&&(o.distance=s,o.predecessor=i.predecessor)}))}))})),r}(t,e||i,n||function(e){return t.outEdges(e)})};var i=r.constant(1)},2440:(t,e,n)=>{t.exports={components:n(2842),dijkstra:n(3763),dijkstraAll:n(4847),findCycles:n(9096),floydWarshall:n(8924),isAcyclic:n(2707),postorder:n(8828),preorder:n(2648),prim:n(514),tarjan:n(5023),topsort:n(2166)}},2707:(t,e,n)=>{var r=n(2166);t.exports=function(t){try{r(t)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},8828:(t,e,n)=>{var r=n(3984);t.exports=function(t,e){return r(t,e,"post")}},2648:(t,e,n)=>{var r=n(3984);t.exports=function(t,e){return r(t,e,"pre")}},514:(t,e,n)=>{var r=n(9126),i=n(771),a=n(9675);t.exports=function(t,e){var n,o=new i,s={},l=new a;function c(t){var r=t.v===n?t.w:t.v,i=l.priority(r);if(void 0!==i){var a=e(t);a<i&&(s[r]=n,l.decrease(r,a))}}if(0===t.nodeCount())return o;r.each(t.nodes(),(function(t){l.add(t,Number.POSITIVE_INFINITY),o.setNode(t)})),l.decrease(t.nodes()[0],0);for(var u=!1;l.size()>0;){if(n=l.removeMin(),r.has(s,n))o.setEdge(n,s[n]);else{if(u)throw new Error("Input graph is not connected: "+t);u=!0}t.nodeEdges(n).forEach(c)}return o}},5023:(t,e,n)=>{var r=n(9126);t.exports=function(t){var e=0,n=[],i={},a=[];function o(s){var l=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(l.lowlink=Math.min(l.lowlink,i[t].index)):(o(t),l.lowlink=Math.min(l.lowlink,i[t].lowlink))})),l.lowlink===l.index){var c,u=[];do{c=n.pop(),i[c].onStack=!1,u.push(c)}while(s!==c);a.push(u)}}return t.nodes().forEach((function(t){r.has(i,t)||o(t)})),a}},2166:(t,e,n)=>{var r=n(9126);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function o(s){if(r.has(n,s))throw new a;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),o),delete n[s],i.push(s))})),r.size(e)!==t.nodeCount())throw new a;return i}function a(){}t.exports=i,i.CycleException=a,a.prototype=new Error},9675:(t,e,n)=>{var r=n(9126);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],a=n[e];n[t]=a,n[e]=i,r[a.key]=t,r[i.key]=e}},771:(t,e,n)=>{var r=n(9126);t.exports=a;var i="\0";function a(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(t,e){t[e]?t[e]++:t[e]=1}function s(t,e){--t[e]||delete t[e]}function l(t,e,n,i){var a=""+e,o=""+n;if(!t&&a>o){var s=a;a=o,o=s}return a+""+o+""+(r.isUndefined(i)?"\0":i)}function c(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function u(t,e){return l(t,e.v,e.w,e.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(t){return this._label=t,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},a.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},a.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},a.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},a.prototype.node=function(t){return this._nodes[t]},a.prototype.hasNode=function(t){return r.has(this._nodes,t)},a.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},a.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=i;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},a.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},a.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},a.prototype.children=function(t){if(r.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},a.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},a.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},a.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},a.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},a.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function a(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:a(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,a(t))})),e},a.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},a.prototype.setEdge=function(){var t,e,n,i,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,e=s.w,n=s.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=s,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var u=l(this._isDirected,t,e,n);if(r.has(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=c(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[u]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][u]=h,this._out[t][u]=h,this._edgeCount++,this},a.prototype.edge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):l(this._isDirected,t,e,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?u(this._isDirected,arguments[0]):l(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):l(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},a.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},a.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},a.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},2354:(t,e,n)=>{t.exports={Graph:n(771),version:n(9631)}},8974:(t,e,n)=>{var r=n(9126),i=n(771);function a(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),a={v:e};return r.isUndefined(n)||(a.value=n),r.isUndefined(i)||(a.parent=i),a}))}function o(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:a(t),edges:o(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},9126:(t,e,n)=>{var r;try{r={clone:n(6678),constant:n(5703),each:n(6073),filter:n(3105),has:n(8721),isArray:n(1469),isEmpty:n(1609),isFunction:n(3560),isUndefined:n(2353),keys:n(3674),map:n(5161),reduce:n(4061),size:n(4238),transform:n(8718),union:n(3386),values:n(2628)}}catch(i){}r||(r=window._),t.exports=r},9631:t=>{t.exports="2.1.8"},1773:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(7628),a=function(){function t(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new i.default}return t.prototype.set=function(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this},t.prototype._ensureHSL=function(){var t=this.data,e=t.h,n=t.s,i=t.l;void 0===e&&(t.h=r.default.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=r.default.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=r.default.channel.rgb2hsl(t,"l"))},t.prototype._ensureRGB=function(){var t=this.data,e=t.r,n=t.g,i=t.b;void 0===e&&(t.r=r.default.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=r.default.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=r.default.channel.hsl2rgb(t,"b"))},Object.defineProperty(t.prototype,"r",{get:function(){var t=this.data,e=t.r;return this.type.is(2)||void 0===e?(this._ensureHSL(),r.default.channel.hsl2rgb(t,"r")):e},set:function(t){this.type.set(1),this.changed=!0,this.data.r=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){var t=this.data,e=t.g;return this.type.is(2)||void 0===e?(this._ensureHSL(),r.default.channel.hsl2rgb(t,"g")):e},set:function(t){this.type.set(1),this.changed=!0,this.data.g=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){var t=this.data,e=t.b;return this.type.is(2)||void 0===e?(this._ensureHSL(),r.default.channel.hsl2rgb(t,"b")):e},set:function(t){this.type.set(1),this.changed=!0,this.data.b=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"h",{get:function(){var t=this.data,e=t.h;return this.type.is(1)||void 0===e?(this._ensureRGB(),r.default.channel.rgb2hsl(t,"h")):e},set:function(t){this.type.set(2),this.changed=!0,this.data.h=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"s",{get:function(){var t=this.data,e=t.s;return this.type.is(1)||void 0===e?(this._ensureRGB(),r.default.channel.rgb2hsl(t,"s")):e},set:function(t){this.type.set(2),this.changed=!0,this.data.s=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"l",{get:function(){var t=this.data,e=t.l;return this.type.is(1)||void 0===e?(this._ensureRGB(),r.default.channel.rgb2hsl(t,"l")):e},set:function(t){this.type.set(2),this.changed=!0,this.data.l=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.data.a},set:function(t){this.changed=!0,this.data.a=t},enumerable:!0,configurable:!0}),t}();e.default=a},8167:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=new(n(1773).default)({r:0,g:0,b:0,a:0},"transparent");e.default=r},7628:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.type=0}return t.prototype.get=function(){return this.type},t.prototype.set=function(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t},t.prototype.reset=function(){this.type=0},t.prototype.is=function(t){return this.type===t},t}();e.default=n},1655:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(8167),i=n(6061),a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(t){if(35===t.charCodeAt(0)){var e=t.match(a.re);if(e){var n=e[1],i=parseInt(n,16),o=n.length,s=o%4==0,l=o>4,c=l?1:17,u=l?8:4,h=s?0:-1,f=l?255:15;return r.default.set({r:(i>>u*(h+3)&f)*c,g:(i>>u*(h+2)&f)*c,b:(i>>u*(h+1)&f)*c,a:s?(i&f)*c/255:1},t)}}},stringify:function(t){var e=t.r,n=t.g,r=t.b,a=t.a;return a<1?"#"+i.DEC2HEX[Math.round(e)]+i.DEC2HEX[Math.round(n)]+i.DEC2HEX[Math.round(r)]+i.DEC2HEX[Math.round(255*a)]:"#"+i.DEC2HEX[Math.round(e)]+i.DEC2HEX[Math.round(n)]+i.DEC2HEX[Math.round(r)]}};e.default=a},8589:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8167),a={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:function(t){var e=t.match(a.hueRe);if(e){var n=e[1];switch(e[2]){case"grad":return r.default.channel.clamp.h(.9*parseFloat(n));case"rad":return r.default.channel.clamp.h(180*parseFloat(n)/Math.PI);case"turn":return r.default.channel.clamp.h(360*parseFloat(n))}}return r.default.channel.clamp.h(parseFloat(t))},parse:function(t){var e=t.charCodeAt(0);if(104===e||72===e){var n=t.match(a.re);if(n){var o=n[1],s=n[2],l=n[3],c=n[4],u=n[5];return i.default.set({h:a._hue2deg(o),s:r.default.channel.clamp.s(parseFloat(s)),l:r.default.channel.clamp.l(parseFloat(l)),a:c?r.default.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)}}},stringify:function(t){var e=t.h,n=t.s,i=t.l,a=t.a;return a<1?"hsla("+r.default.lang.round(e)+", "+r.default.lang.round(n)+"%, "+r.default.lang.round(i)+"%, "+a+")":"hsl("+r.default.lang.round(e)+", "+r.default.lang.round(n)+"%, "+r.default.lang.round(i)+"%)"}};e.default=a},2191:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1655),i=n(7538),a=n(6762),o=n(8589),s={format:{keyword:i.default,hex:r.default,rgb:a.default,rgba:a.default,hsl:o.default,hsla:o.default},parse:function(t){if("string"!=typeof t)return t;var e=r.default.parse(t)||a.default.parse(t)||o.default.parse(t)||i.default.parse(t);if(e)return e;throw new Error('Unsupported color format: "'+t+'"')},stringify:function(t){return!t.changed&&t.color?t.color:t.type.is(2)||void 0===t.data.r?o.default.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?a.default.stringify(t):r.default.stringify(t)}};e.default=s},7538:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1655),i={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(t){t=t.toLowerCase();var e=i.colors[t];if(e)return r.default.parse(e)},stringify:function(t){var e=r.default.stringify(t);for(var n in i.colors)if(i.colors[n]===e)return n}};e.default=i},6762:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8167),a={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:function(t){var e=t.charCodeAt(0);if(114===e||82===e){var n=t.match(a.re);if(n){var o=n[1],s=n[2],l=n[3],c=n[4],u=n[5],h=n[6],f=n[7],d=n[8];return i.default.set({r:r.default.channel.clamp.r(s?2.55*parseFloat(o):parseFloat(o)),g:r.default.channel.clamp.g(c?2.55*parseFloat(l):parseFloat(l)),b:r.default.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:f?r.default.channel.clamp.a(d?parseFloat(f)/100:parseFloat(f)):1},t)}}},stringify:function(t){var e=t.r,n=t.g,i=t.b,a=t.a;return a<1?"rgba("+r.default.lang.round(e)+", "+r.default.lang.round(n)+", "+r.default.lang.round(i)+", "+r.default.lang.round(a)+")":"rgb("+r.default.lang.round(e)+", "+r.default.lang.round(n)+", "+r.default.lang.round(i)+")"}};e.default=a},6061:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i={};e.DEC2HEX=i;for(var a=0;a<=255;a++)i[a]=r.default.unit.dec2hex(a)},8613:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(1203))},5371:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191),i=n(418);e.default=function(t,e){var n=r.default.parse(t),a={};for(var o in e)e[o]&&(a[o]=n[o]+e[o]);return i.default(t,a)}},1416:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191);e.default=function(t,e,n){var a=i.default.parse(t),o=a[e],s=r.default.channel.clamp[e](o+n);return o!==s&&(a[e]=s),i.default.stringify(a)}},9353:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"a")}},3394:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"b")}},418:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191);e.default=function(t,e){var n=i.default.parse(t);for(var a in e)n[a]=r.default.channel.clamp[a](e[a]);return i.default.stringify(n)}},6197:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191);e.default=function(t,e){return r.default.lang.round(i.default.parse(t)[e])}},7361:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t){return r.default(t,"h",180)}},3042:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8346);e.default=function(t,e){var n=i.default(t),a=i.default(e),o=Math.max(n,a),s=Math.min(n,a),l=(o+Number.EPSILON)/(s+Number.EPSILON);return r.default.lang.round(r.default.lang.clamp(l,1,10))}},1364:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"l",-e)}},9610:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"s",-e)}},572:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(418);e.default=function(t){return r.default(t,{s:0})}},2299:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"g")}},3116:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8167),a=n(2191);e.default=function(t,e,n,o){void 0===o&&(o=1);var s=i.default.set({h:r.default.channel.clamp.h(t),s:r.default.channel.clamp.s(e),l:r.default.channel.clamp.l(n),a:r.default.channel.clamp.a(o)});return a.default.stringify(s)}},3008:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"h")}},1203:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6538);e.hex=r.default;var i=n(6538);e.rgb=i.default;var a=n(6538);e.rgba=a.default;var o=n(3116);e.hsl=o.default;var s=n(3116);e.hsla=s.default;var l=n(2619);e.toKeyword=l.default;var c=n(4307);e.toHex=c.default;var u=n(4125);e.toRgba=u.default;var h=n(7329);e.toHsla=h.default;var f=n(6197);e.channel=f.default;var d=n(9640);e.red=d.default;var p=n(2299);e.green=p.default;var g=n(3394);e.blue=g.default;var m=n(3008);e.hue=m.default;var y=n(6451);e.saturation=y.default;var v=n(9235);e.lightness=v.default;var b=n(9353);e.alpha=b.default;var _=n(9353);e.opacity=_.default;var x=n(3042);e.contrast=x.default;var w=n(8346);e.luminance=w.default;var k=n(4117);e.isDark=k.default;var C=n(2224);e.isLight=C.default;var E=n(585);e.isValid=E.default;var S=n(1080);e.saturate=S.default;var T=n(9610);e.desaturate=T.default;var A=n(3235);e.lighten=A.default;var M=n(1364);e.darken=M.default;var N=n(7189);e.opacify=N.default;var D=n(7189);e.fadeIn=D.default;var O=n(4989);e.transparentize=O.default;var L=n(4989);e.fadeOut=L.default;var B=n(7361);e.complement=B.default;var I=n(572);e.grayscale=I.default;var R=n(5371);e.adjust=R.default;var F=n(418);e.change=F.default;var P=n(566);e.invert=P.default;var z=n(1861);e.mix=z.default;var q=n(7081);e.scale=q.default},566:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191),i=n(1861);e.default=function(t,e){void 0===e&&(e=100);var n=r.default.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,i.default(n,t,e)}},4117:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2224);e.default=function(t){return!r.default(t)}},2224:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(8346);e.default=function(t){return r.default(t)>=.5}},585:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){try{return r.default.parse(t),!0}catch(e){return!1}}},3235:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"l",e)}},9235:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"l")}},8346:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191);e.default=function(t){var e=i.default.parse(t),n=e.r,a=e.g,o=e.b,s=.2126*r.default.channel.toLinear(n)+.7152*r.default.channel.toLinear(a)+.0722*r.default.channel.toLinear(o);return r.default.lang.round(s)}},1861:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191),i=n(6538);e.default=function(t,e,n){void 0===n&&(n=50);var a=r.default.parse(t),o=a.r,s=a.g,l=a.b,c=a.a,u=r.default.parse(e),h=u.r,f=u.g,d=u.b,p=u.a,g=n/100,m=2*g-1,y=c-p,v=((m*y==-1?m:(m+y)/(1+m*y))+1)/2,b=1-v,_=o*v+h*b,x=s*v+f*b,w=l*v+d*b,k=c*g+p*(1-g);return i.default(_,x,w,k)}},7189:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"a",e)}},9640:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"r")}},6538:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(8167),a=n(2191),o=n(418);e.default=function(t,e,n,s){if(void 0===n&&(n=0),void 0===s&&(s=1),"number"!=typeof t)return o.default(t,{a:e});var l=i.default.set({r:r.default.channel.clamp.r(t),g:r.default.channel.clamp.g(e),b:r.default.channel.clamp.b(n),a:r.default.channel.clamp.a(s)});return a.default.stringify(l)}},1080:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"s",e)}},6451:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6197);e.default=function(t){return r.default(t,"s")}},7081:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1083),i=n(2191),a=n(5371);e.default=function(t,e){var n,o,s,l=i.default.parse(t),c={};for(var u in e)c[u]=(n=l[u],o=e[u],s=r.default.channel.max[u],o>0?(s-n)*o/100:n*o/100);return a.default(t,c)}},4307:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){return r.default.format.hex.stringify(r.default.parse(t))}},7329:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){return r.default.format.hsla.stringify(r.default.parse(t))}},2619:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){return r.default.format.keyword.stringify(r.default.parse(t))}},4125:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(2191);e.default=function(t){return r.default.format.rgba.stringify(r.default.parse(t))}},4989:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(1416);e.default=function(t,e){return r.default(t,"a",-e)}},7994:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:function(t){return t>=255?255:t<0?0:t},g:function(t){return t>=255?255:t<0?0:t},b:function(t){return t>=255?255:t<0?0:t},h:function(t){return t%360},s:function(t){return t>=100?100:t<0?0:t},l:function(t){return t>=100?100:t<0?0:t},a:function(t){return t>=1?1:t<0?0:t}},toLinear:function(t){var e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},hsl2rgb:function(t,e){var r=t.h,i=t.s,a=t.l;if(!i)return 2.55*a;r/=360,i/=100;var o=(a/=100)<.5?a*(1+i):a+i-a*i,s=2*a-o;switch(e){case"r":return 255*n.hue2rgb(s,o,r+1/3);case"g":return 255*n.hue2rgb(s,o,r);case"b":return 255*n.hue2rgb(s,o,r-1/3)}},rgb2hsl:function(t,e){var n=t.r,r=t.g,i=t.b;n/=255,r/=255,i/=255;var a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;if("l"===e)return 100*s;if(a===o)return 0;var l=a-o;if("s"===e)return 100*(s>.5?l/(2-a-o):l/(a+o));switch(a){case n:return 60*((r-i)/l+(r<i?6:0));case r:return 60*((i-n)/l+2);case i:return 60*((n-r)/l+4);default:return-1}}};e.default=n},1083:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(7994),i=n(4027),a=n(318),o={channel:r.default,lang:i.default,unit:a.default};e.default=o},4027:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n={clamp:function(t,e,n){return e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t))},round:function(t){return Math.round(1e10*t)/1e10}};e.default=n},318:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n={dec2hex:function(t){var e=Math.round(t).toString(16);return e.length>1?e:"0"+e}};e.default=n},8552:(t,e,n)=>{var r=n(852)(n(5639),"DataView");t.exports=r},1989:(t,e,n)=>{var r=n(1789),i=n(401),a=n(7667),o=n(1327),s=n(1866);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,t.exports=l},8407:(t,e,n)=>{var r=n(7040),i=n(2188),a=n(2117),o=n(7518),s=n(4705);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,t.exports=l},7071:(t,e,n)=>{var r=n(852)(n(5639),"Map");t.exports=r},3369:(t,e,n)=>{var r=n(4785),i=n(1285),a=n(6e3),o=n(9916),s=n(5265);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,t.exports=l},3818:(t,e,n)=>{var r=n(852)(n(5639),"Promise");t.exports=r},8525:(t,e,n)=>{var r=n(852)(n(5639),"Set");t.exports=r},8668:(t,e,n)=>{var r=n(3369),i=n(619),a=n(2385);function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,t.exports=o},6384:(t,e,n)=>{var r=n(8407),i=n(7465),a=n(3779),o=n(7599),s=n(4758),l=n(4309);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,t.exports=c},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},1149:(t,e,n)=>{var r=n(5639).Uint8Array;t.exports=r},577:(t,e,n)=>{var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}},7443:(t,e,n)=>{var r=n(2118);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},4636:(t,e,n)=>{var r=n(2545),i=n(5694),a=n(1469),o=n(4144),s=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=a(t),u=!n&&i(t),h=!n&&!u&&o(t),f=!n&&!u&&!h&&l(t),d=n||u||h||f,p=d?r(t.length,String):[],g=p.length;for(var m in t)!e&&!c.call(t,m)||d&&("length"==m||h&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},9932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},2488:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},2663:t=>{t.exports=function(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}},2908:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},8983:(t,e,n)=>{var r=n(371)("length");t.exports=r},6556:(t,e,n)=>{var r=n(9465),i=n(7813);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:(t,e,n)=>{var r=n(9465),i=n(7813),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];a.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:(t,e,n)=>{var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:(t,e,n)=>{var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:(t,e,n)=>{var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:(t,e,n)=>{var r=n(6384),i=n(7412),a=n(4865),o=n(4037),s=n(3886),l=n(4626),c=n(278),u=n(8805),h=n(1911),f=n(8234),d=n(6904),p=n(4160),g=n(3824),m=n(9148),y=n(8517),v=n(1469),b=n(4144),_=n(6688),x=n(3218),w=n(2928),k=n(3674),C=n(1704),E="[object Arguments]",S="[object Function]",T="[object Object]",A={};A[E]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[T]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[S]=A["[object WeakMap]"]=!1,t.exports=function t(e,n,M,N,D,O){var L,B=1&n,I=2&n,R=4&n;if(M&&(L=D?M(e,N,D,O):M(e)),void 0!==L)return L;if(!x(e))return e;var F=v(e);if(F){if(L=g(e),!B)return c(e,L)}else{var P=p(e),z=P==S||"[object GeneratorFunction]"==P;if(b(e))return l(e,B);if(P==T||P==E||z&&!D){if(L=I||z?{}:y(e),!B)return I?h(e,s(L,e)):u(e,o(L,e))}else{if(!A[P])return D?e:{};L=m(e,P,B)}}O||(O=new r);var q=O.get(e);if(q)return q;O.set(e,L),w(e)?e.forEach((function(r){L.add(t(r,n,M,r,e,O))})):_(e)&&e.forEach((function(r,i){L.set(i,t(r,n,M,i,e,O))}));var j=F?void 0:(R?I?d:f:I?C:k)(e);return i(j||e,(function(r,i){j&&(r=e[i=r]),a(L,i,t(r,n,M,i,e,O))})),L}},3118:(t,e,n)=>{var r=n(3218),i=Object.create,a=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=a},9881:(t,e,n)=>{var r=n(7816),i=n(9291)(r);t.exports=i},6029:(t,e,n)=>{var r=n(3448);t.exports=function(t,e,n){for(var i=-1,a=t.length;++i<a;){var o=t[i],s=e(o);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,c=o}return c}},760:(t,e,n)=>{var r=n(9881);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},1848:t=>{t.exports=function(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}},1078:(t,e,n)=>{var r=n(2488),i=n(7285);t.exports=function t(e,n,a,o,s){var l=-1,c=e.length;for(a||(a=i),s||(s=[]);++l<c;){var u=e[l];n>0&&a(u)?n>1?t(u,n-1,a,o,s):r(s,u):o||(s[s.length]=u)}return s}},8483:(t,e,n)=>{var r=n(5063)();t.exports=r},7816:(t,e,n)=>{var r=n(8483),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},7786:(t,e,n)=>{var r=n(1811),i=n(327);t.exports=function(t,e){for(var n=0,a=(e=r(e,t)).length;null!=t&&n<a;)t=t[i(e[n++])];return n&&n==a?t:void 0}},8866:(t,e,n)=>{var r=n(2488),i=n(1469);t.exports=function(t,e,n){var a=e(t);return i(t)?a:r(a,n(t))}},4239:(t,e,n)=>{var r=n(2705),i=n(9607),a=n(2333),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):a(t)}},3325:t=>{t.exports=function(t,e){return t>e}},8565:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,n)=>{var r=n(1848),i=n(2722),a=n(2351);t.exports=function(t,e,n){return e==e?a(t,e,n):r(t,i,n)}},9454:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},939:(t,e,n)=>{var r=n(2492),i=n(7005);t.exports=function t(e,n,a,o,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,a,o,t,s))}},2492:(t,e,n)=>{var r=n(6384),i=n(7114),a=n(8351),o=n(6096),s=n(4160),l=n(1469),c=n(4144),u=n(6719),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,m,y){var v=l(t),b=l(e),_=v?f:s(t),x=b?f:s(e),w=(_=_==h?d:_)==d,k=(x=x==h?d:x)==d,C=_==x;if(C&&c(t)){if(!c(e))return!1;v=!0,w=!1}if(C&&!w)return y||(y=new r),v||u(t)?i(t,e,n,g,m,y):a(t,e,_,n,g,m,y);if(!(1&n)){var E=w&&p.call(t,"__wrapped__"),S=k&&p.call(e,"__wrapped__");if(E||S){var T=E?t.value():t,A=S?e.value():e;return y||(y=new r),m(T,A,n,g,y)}}return!!C&&(y||(y=new r),o(t,e,n,g,m,y))}},5588:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},2958:(t,e,n)=>{var r=n(6384),i=n(939);t.exports=function(t,e,n,a){var o=n.length,s=o,l=!a;if(null==t)return!s;for(t=Object(t);o--;){var c=n[o];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<s;){var u=(c=n[o])[0],h=t[u],f=c[1];if(l&&c[2]){if(void 0===h&&!(u in t))return!1}else{var d=new r;if(a)var p=a(h,f,u,t,e,d);if(!(void 0===p?i(f,h,3,a,d):p))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,n)=>{var r=n(3560),i=n(5346),a=n(3218),o=n(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,f=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||i(t))&&(r(t)?f:s).test(o(t))}},9221:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:(t,e,n)=>{var r=n(4239),i=n(1780),a=n(7005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return a(t)&&i(t.length)&&!!o[r(t)]}},7206:(t,e,n)=>{var r=n(1573),i=n(6432),a=n(6557),o=n(1469),s=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?o(t)?i(t[0],t[1]):r(t):s(t)}},280:(t,e,n)=>{var r=n(5726),i=n(6916),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:(t,e,n)=>{var r=n(3218),i=n(5726),a=n(3498),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return a(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&o.call(t,s))&&n.push(s);return n}},433:t=>{t.exports=function(t,e){return t<e}},9199:(t,e,n)=>{var r=n(9881),i=n(8612);t.exports=function(t,e){var n=-1,a=i(t)?Array(t.length):[];return r(t,(function(t,r,i){a[++n]=e(t,r,i)})),a}},1573:(t,e,n)=>{var r=n(2958),i=n(1499),a=n(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:(t,e,n)=>{var r=n(939),i=n(1917),a=n(9095),o=n(5403),s=n(9162),l=n(2634),c=n(327);t.exports=function(t,e){return o(t)&&s(e)?l(c(t),e):function(n){var o=i(n,t);return void 0===o&&o===e?a(n,t):r(e,o,3)}}},2980:(t,e,n)=>{var r=n(6384),i=n(6556),a=n(8483),o=n(9783),s=n(3218),l=n(1704),c=n(6390);t.exports=function t(e,n,u,h,f){e!==n&&a(n,(function(a,l){if(f||(f=new r),s(a))o(e,n,l,u,t,h,f);else{var d=h?h(c(e,l),a,l+"",e,n,f):void 0;void 0===d&&(d=a),i(e,l,d)}}),l)}},9783:(t,e,n)=>{var r=n(6556),i=n(4626),a=n(7133),o=n(278),s=n(8517),l=n(5694),c=n(1469),u=n(9246),h=n(4144),f=n(3560),d=n(3218),p=n(8630),g=n(6719),m=n(6390),y=n(3678);t.exports=function(t,e,n,v,b,_,x){var w=m(t,n),k=m(e,n),C=x.get(k);if(C)r(t,n,C);else{var E=_?_(w,k,n+"",t,e,x):void 0,S=void 0===E;if(S){var T=c(k),A=!T&&h(k),M=!T&&!A&&g(k);E=k,T||A||M?c(w)?E=w:u(w)?E=o(w):A?(S=!1,E=i(k,!0)):M?(S=!1,E=a(k,!0)):E=[]:p(k)||l(k)?(E=w,l(w)?E=y(w):d(w)&&!f(w)||(E=s(k))):S=!1}S&&(x.set(k,E),b(E,k,v,_,x),x.delete(k)),r(t,n,E)}}},9556:(t,e,n)=>{var r=n(9932),i=n(7786),a=n(7206),o=n(9199),s=n(1131),l=n(1717),c=n(5022),u=n(6557),h=n(1469);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[u];var f=-1;e=r(e,l(a));var d=o(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(d,(function(t,e){return c(t,e,n)}))}},5970:(t,e,n)=>{var r=n(3012),i=n(9095);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},3012:(t,e,n)=>{var r=n(7786),i=n(611),a=n(1811);t.exports=function(t,e,n){for(var o=-1,s=e.length,l={};++o<s;){var c=e[o],u=r(t,c);n(u,c)&&i(l,a(c,t),u)}return l}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},98:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,r,i,a){for(var o=-1,s=n(e((r-t)/(i||1)),0),l=Array(s);s--;)l[a?s:++o]=t,t+=i;return l}},107:t=>{t.exports=function(t,e,n,r,i){return i(t,(function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)})),n}},5976:(t,e,n)=>{var r=n(6557),i=n(5357),a=n(61);t.exports=function(t,e){return a(i(t,e,r),t+"")}},611:(t,e,n)=>{var r=n(4865),i=n(1811),a=n(5776),o=n(3218),s=n(327);t.exports=function(t,e,n,l){if(!o(t))return t;for(var c=-1,u=(e=i(e,t)).length,h=u-1,f=t;null!=f&&++c<u;){var d=s(e[c]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=h){var g=f[d];void 0===(p=l?l(g,d,f):void 0)&&(p=o(g)?g:a(e[c+1])?[]:{})}r(f,d,p),f=f[d]}return t}},6560:(t,e,n)=>{var r=n(5703),i=n(8777),a=n(6557),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:a;t.exports=o},1131:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},2545:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:(t,e,n)=>{var r=n(2705),i=n(9932),a=n(1469),o=n(3448),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(a(e))return i(e,t)+"";if(o(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},7561:(t,e,n)=>{var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,n)=>{var r=n(8668),i=n(7443),a=n(1196),o=n(4757),s=n(3593),l=n(1814);t.exports=function(t,e,n){var c=-1,u=i,h=t.length,f=!0,d=[],p=d;if(n)f=!1,u=a;else if(h>=200){var g=e?null:s(t);if(g)return l(g);f=!1,u=o,p=new r}else p=e?[]:d;t:for(;++c<h;){var m=t[c],y=e?e(m):m;if(m=n||0!==m?m:0,f&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue t;e&&p.push(y),d.push(m)}else u(p,y,n)||(p!==d&&p.push(y),d.push(m))}return d}},7415:(t,e,n)=>{var r=n(9932);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},1757:t=>{t.exports=function(t,e,n){for(var r=-1,i=t.length,a=e.length,o={};++r<i;){var s=r<a?e[r]:void 0;n(o,t[r],s)}return o}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4290:(t,e,n)=>{var r=n(6557);t.exports=function(t){return"function"==typeof t?t:r}},1811:(t,e,n)=>{var r=n(1469),i=n(5403),a=n(5514),o=n(9833);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:a(o(t))}},4318:(t,e,n)=>{var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}},7157:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:(t,e,n)=>{var r=n(2705),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;t.exports=function(t){return a?Object(a.call(t)):{}}},7133:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},6393:(t,e,n)=>{var r=n(3448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,a=t==t,o=r(t),s=void 0!==e,l=null===e,c=e==e,u=r(e);if(!l&&!u&&!o&&t>e||o&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!a)return 1;if(!i&&!o&&!u&&t<e||u&&n&&a&&!i&&!o||l&&n&&a||!s&&a||!c)return-1}return 0}},5022:(t,e,n)=>{var r=n(6393);t.exports=function(t,e,n){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,l=n.length;++i<s;){var c=r(a[i],o[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},278:t=>{t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:(t,e,n)=>{var r=n(4865),i=n(9465);t.exports=function(t,e,n,a){var o=!n;n||(n={});for(var s=-1,l=e.length;++s<l;){var c=e[s],u=a?a(n[c],t[c],c,n,t):void 0;void 0===u&&(u=t[c]),o?i(n,c,u):r(n,c,u)}return n}},8805:(t,e,n)=>{var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:(t,e,n)=>{var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:(t,e,n)=>{var r=n(5639)["__core-js_shared__"];t.exports=r},1750:(t,e,n)=>{var r=n(5976),i=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++r<a;){var l=n[r];l&&t(e,l,r,o)}return e}))}},9291:(t,e,n)=>{var r=n(8612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var a=n.length,o=e?a:-1,s=Object(n);(e?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},5063:t=>{t.exports=function(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var l=o[t?s:++i];if(!1===n(a[l],l,a))break}return e}}},7740:(t,e,n)=>{var r=n(7206),i=n(8612),a=n(3674);t.exports=function(t){return function(e,n,o){var s=Object(e);if(!i(e)){var l=r(n,3);e=a(e),n=function(t){return l(s[t],t,s)}}var c=t(e,n,o);return c>-1?s[l?e[c]:c]:void 0}}},7445:(t,e,n)=>{var r=n(98),i=n(6612),a=n(8601);t.exports=function(t){return function(e,n,o){return o&&"number"!=typeof o&&i(e,n,o)&&(n=o=void 0),e=a(e),void 0===n?(n=e,e=0):n=a(n),o=void 0===o?e<n?1:-1:a(o),r(e,n,o,t)}}},3593:(t,e,n)=>{var r=n(8525),i=n(308),a=n(1814),o=r&&1/a(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=o},8777:(t,e,n)=>{var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},7114:(t,e,n)=>{var r=n(8668),i=n(2908),a=n(4757);t.exports=function(t,e,n,o,s,l){var c=1&n,u=t.length,h=e.length;if(u!=h&&!(c&&h>u))return!1;var f=l.get(t),d=l.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++p<u;){var y=t[p],v=e[p];if(o)var b=c?o(v,y,p,e,t,l):o(y,v,p,t,e,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!i(e,(function(t,e){if(!a(m,e)&&(y===t||s(y,t,n,o,l)))return m.push(e)}))){g=!1;break}}else if(y!==v&&!s(y,v,n,o,l)){g=!1;break}}return l.delete(t),l.delete(e),g}},8351:(t,e,n)=>{var r=n(2705),i=n(1149),a=n(7813),o=n(7114),s=n(8776),l=n(1814),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,h,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=s;case"[object Set]":var p=1&r;if(d||(d=l),t.size!=e.size&&!p)return!1;var g=f.get(t);if(g)return g==e;r|=2,f.set(t,e);var m=o(d(t),d(e),r,c,h,f);return f.delete(t),m;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},6096:(t,e,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,a,o,s){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var h=u;h--;){var f=c[h];if(!(l?f in e:i.call(e,f)))return!1}var d=s.get(t),p=s.get(e);if(d&&p)return d==e&&p==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=l;++h<u;){var y=t[f=c[h]],v=e[f];if(a)var b=l?a(v,y,f,e,t,s):a(y,v,f,t,e,s);if(!(void 0===b?y===v||o(y,v,n,a,s):b)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var _=t.constructor,x=e.constructor;_==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return s.delete(t),s.delete(e),g}},9021:(t,e,n)=>{var r=n(5564),i=n(5357),a=n(61);t.exports=function(t){return a(i(t,void 0,r),t+"")}},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:(t,e,n)=>{var r=n(8866),i=n(9551),a=n(3674);t.exports=function(t){return r(t,a,i)}},6904:(t,e,n)=>{var r=n(8866),i=n(1442),a=n(1704);t.exports=function(t){return r(t,a,i)}},5050:(t,e,n)=>{var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var r=n(9162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var a=e[n],o=t[a];e[n]=[a,o,r(o)]}return e}},852:(t,e,n)=>{var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:(t,e,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:(t,e,n)=>{var r=n(2705),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(l){}var i=o.call(t);return r&&(e?t[s]=n:delete t[s]),i}},9551:(t,e,n)=>{var r=n(4963),i=n(479),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return a.call(t,e)})))}:i;t.exports=s},1442:(t,e,n)=>{var r=n(2488),i=n(5924),a=n(9551),o=n(479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,a(t)),t=i(t);return e}:o;t.exports=s},4160:(t,e,n)=>{var r=n(8552),i=n(7071),a=n(3818),o=n(8525),s=n(577),l=n(4239),c=n(346),u="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",g=c(r),m=c(i),y=c(a),v=c(o),b=c(s),_=l;(r&&_(new r(new ArrayBuffer(1)))!=p||i&&_(new i)!=u||a&&_(a.resolve())!=h||o&&_(new o)!=f||s&&_(new s)!=d)&&(_=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return p;case m:return u;case y:return h;case v:return f;case b:return d}return e}),t.exports=_},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var r=n(1811),i=n(5694),a=n(1469),o=n(5776),s=n(1780),l=n(327);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,h=!1;++c<u;){var f=l(e[c]);if(!(h=null!=t&&n(t,f)))break;t=t[f]}return h||++c!=u?h:!!(u=null==t?0:t.length)&&s(u)&&o(f,u)&&(a(t)||i(t))}},2689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},1789:(t,e,n)=>{var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:(t,e,n)=>{var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:(t,e,n)=>{var r=n(4318),i=n(7157),a=n(3147),o=n(419),s=n(7133);t.exports=function(t,e,n){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return a(t);case"[object Symbol]":return o(t)}}},8517:(t,e,n)=>{var r=n(3118),i=n(5924),a=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||a(t)?{}:r(i(t))}},7285:(t,e,n)=>{var r=n(2705),i=n(5694),a=n(1469),o=r?r.isConcatSpreadable:void 0;t.exports=function(t){return a(t)||i(t)||!!(o&&t&&t[o])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:(t,e,n)=>{var r=n(7813),i=n(8612),a=n(5776),o=n(3218);t.exports=function(t,e,n){if(!o(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&a(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},5403:(t,e,n)=>{var r=n(1469),i=n(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||o.test(t)||!a.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var r,i=n(4429),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!a&&a in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var r=n(3218);t.exports=function(t){return t==t&&!r(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},2188:(t,e,n)=>{var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:(t,e,n)=>{var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:(t,e,n)=>{var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:(t,e,n)=>{var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:(t,e,n)=>{var r=n(1989),i=n(8407),a=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},1285:(t,e,n)=>{var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:(t,e,n)=>{var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},4523:(t,e,n)=>{var r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var r=n(852)(Object,"create");t.exports=r},6916:(t,e,n)=>{var r=n(5569)(Object.keys,Object);t.exports=r},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:(t,e,n)=>{t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,o=a&&a.exports===i&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5357:(t,e,n)=>{var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),l=Array(s);++o<s;)l[o]=a[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=a[o];return c[e]=n(l),r(t,this,c)}}},5639:(t,e,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();t.exports=a},6390:t=>{t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},61:(t,e,n)=>{var r=n(6560),i=n(1275)(r);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),a=16-(i-r);if(r=i,a>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:(t,e,n)=>{var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var r=n(8407),i=n(7071),a=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(t,e),this.size=n.size,this}},2351:t=>{t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},8016:(t,e,n)=>{var r=n(8983),i=n(2689),a=n(1903);t.exports=function(t){return i(t)?a(t):r(t)}},5514:(t,e,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(a,"$1"):n||t)})),e}));t.exports=o},327:(t,e,n)=>{var r=n(3448);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(n){}try{return t+""}catch(n){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},1903:t=>{var e="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",o="(?:"+e+"|"+n+")?",s="[\\ufe0e\\ufe0f]?",l=s+o+"(?:\\u200d(?:"+[r,i,a].join("|")+")"+s+o+")*",c="(?:"+[r+e+"?",e,i,a,"[\\ud800-\\udfff]"].join("|")+")",u=RegExp(n+"(?="+n+")|"+c+l,"g");t.exports=function(t){for(var e=u.lastIndex=0;u.test(t);)++e;return e}},6678:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,4)}},361:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,5)}},5703:t=>{t.exports=function(t){return function(){return t}}},1747:(t,e,n)=>{var r=n(5976),i=n(7813),a=n(6612),o=n(1704),s=Object.prototype,l=s.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&a(e[0],e[1],c)&&(r=1);++n<r;)for(var u=e[n],h=o(u),f=-1,d=h.length;++f<d;){var p=h[f],g=t[p];(void 0===g||i(g,s[p])&&!l.call(t,p))&&(t[p]=u[p])}return t}));t.exports=c},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3105:(t,e,n)=>{var r=n(4963),i=n(760),a=n(7206),o=n(1469);t.exports=function(t,e){return(o(t)?r:i)(t,a(e,3))}},3311:(t,e,n)=>{var r=n(7740)(n(998));t.exports=r},998:(t,e,n)=>{var r=n(1848),i=n(7206),a=n(554),o=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:a(n);return l<0&&(l=o(s+l,0)),r(t,i(e,3),l)}},5564:(t,e,n)=>{var r=n(1078);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},4486:(t,e,n)=>{var r=n(7412),i=n(9881),a=n(4290),o=n(1469);t.exports=function(t,e){return(o(t)?r:i)(t,a(e))}},2620:(t,e,n)=>{var r=n(8483),i=n(4290),a=n(1704);t.exports=function(t,e){return null==t?t:r(t,i(e),a)}},1917:(t,e,n)=>{var r=n(7786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},8721:(t,e,n)=>{var r=n(8565),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},9095:(t,e,n)=>{var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,n)=>{var r=n(9454),i=n(7005),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:(t,e,n)=>{var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=n(5062),a=e&&!e.nodeType&&e,o=a&&t&&!t.nodeType&&t,s=o&&o.exports===a?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;t.exports=l},1609:(t,e,n)=>{var r=n(280),i=n(4160),a=n(5694),o=n(1469),s=n(8612),l=n(4144),c=n(5726),u=n(6719),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||a(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},3560:(t,e,n)=>{var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,n)=>{var r=n(5588),i=n(1717),a=n(1167),o=a&&a.isMap,s=o?i(o):r;t.exports=s},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8630:(t,e,n)=>{var r=n(4239),i=n(5924),a=n(7005),o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!a(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},2928:(t,e,n)=>{var r=n(9221),i=n(1717),a=n(1167),o=a&&a.isSet,s=o?i(o):r;t.exports=s},7037:(t,e,n)=>{var r=n(4239),i=n(1469),a=n(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&a(t)&&"[object String]"==r(t)}},3448:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},6719:(t,e,n)=>{var r=n(8749),i=n(1717),a=n(1167),o=a&&a.isTypedArray,s=o?i(o):r;t.exports=s},2353:t=>{t.exports=function(t){return void 0===t}},3674:(t,e,n)=>{var r=n(4636),i=n(280),a=n(8612);t.exports=function(t){return a(t)?r(t):i(t)}},1704:(t,e,n)=>{var r=n(4636),i=n(313),a=n(8612);t.exports=function(t){return a(t)?r(t,!0):i(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:(t,e,n)=>{var r=n(9932),i=n(7206),a=n(9199),o=n(1469);t.exports=function(t,e){return(o(t)?r:a)(t,i(e,3))}},6604:(t,e,n)=>{var r=n(9465),i=n(7816),a=n(7206);t.exports=function(t,e){var n={};return e=a(e,3),i(t,(function(t,i,a){r(n,i,e(t,i,a))})),n}},6162:(t,e,n)=>{var r=n(6029),i=n(3325),a=n(6557);t.exports=function(t){return t&&t.length?r(t,a,i):void 0}},8306:(t,e,n)=>{var r=n(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},3857:(t,e,n)=>{var r=n(2980),i=n(1750)((function(t,e,n){r(t,e,n)}));t.exports=i},3632:(t,e,n)=>{var r=n(6029),i=n(433),a=n(6557);t.exports=function(t){return t&&t.length?r(t,a,i):void 0}},2762:(t,e,n)=>{var r=n(6029),i=n(7206),a=n(433);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),a):void 0}},308:t=>{t.exports=function(){}},7771:(t,e,n)=>{var r=n(5639);t.exports=function(){return r.Date.now()}},9722:(t,e,n)=>{var r=n(5970),i=n(9021)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},9601:(t,e,n)=>{var r=n(371),i=n(9152),a=n(5403),o=n(327);t.exports=function(t){return a(t)?r(o(t)):i(t)}},6026:(t,e,n)=>{var r=n(7445)();t.exports=r},4061:(t,e,n)=>{var r=n(2663),i=n(9881),a=n(7206),o=n(107),s=n(1469);t.exports=function(t,e,n){var l=s(t)?r:o,c=arguments.length<3;return l(t,a(e,4),n,c,i)}},4238:(t,e,n)=>{var r=n(280),i=n(4160),a=n(8612),o=n(7037),s=n(8016);t.exports=function(t){if(null==t)return 0;if(a(t))return o(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},9734:(t,e,n)=>{var r=n(1078),i=n(9556),a=n(5976),o=n(6612),s=a((function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,n)=>{var r=n(4841);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,n)=>{var r=n(8601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},4841:(t,e,n)=>{var r=n(7561),i=n(3218),a=n(3448),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):o.test(t)?NaN:+t}},3678:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t){return r(t,i(t))}},9833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},8718:(t,e,n)=>{var r=n(7412),i=n(3118),a=n(7816),o=n(7206),s=n(5924),l=n(1469),c=n(4144),u=n(3560),h=n(3218),f=n(6719);t.exports=function(t,e,n){var d=l(t),p=d||c(t)||f(t);if(e=o(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&u(g)?i(s(t)):{}}return(p?r:a)(t,(function(t,r,i){return e(n,t,r,i)})),n}},3386:(t,e,n)=>{var r=n(1078),i=n(5976),a=n(5652),o=n(9246),s=i((function(t){return a(r(t,1,o,!0))}));t.exports=s},3955:(t,e,n)=>{var r=n(9833),i=0;t.exports=function(t){var e=++i;return r(t)+e}},2628:(t,e,n)=>{var r=n(7415),i=n(3674);t.exports=function(t){return null==t?[]:r(t,i(t))}},7287:(t,e,n)=>{var r=n(4865),i=n(1757);t.exports=function(t,e){return i(t||[],e||[],r)}},9234:()=>{},1748:(t,e,n)=>{var r={"./locale":9234,"./locale.js":9234};function i(t){var e=a(t);return n(e)}function a(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=a,t.exports=i,i.id=1748},1941:function(t,e,n){(t=n.nmd(t)).exports=function(){var e,r;function i(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function f(t,e){for(var n in e)h(e,n)&&(t[n]=e[n]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,r){return be(t,e,n,r,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=p(t),n=r.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function m(t){var e=d(NaN);return null!=t?f(p(e),t):p(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var y=i.momentProperties=[];function v(t,e){var n,r,i;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=p(e)),s(e._locale)||(t._locale=e._locale),0<y.length)for(n=0;n<y.length;n++)s(i=e[r=y[n]])||(t[r]=i);return t}var b=!1;function _(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function x(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=w(e)),n}function C(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&k(t[r])!==k(e[r]))&&o++;return o+a}function E(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,e){var n=!0;return f((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var r,a=[],o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(var s in r+="\n["+o+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[o];a.push(r)}E(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var T,A={};function M(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),A[t]||(E(e),A[t]=!0)}function N(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function D(t,e){var n,r=f({},t);for(n in e)h(e,n)&&(o(t[n])&&o(e[n])?(r[n]={},f(r[n],t[n]),f(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)h(t,n)&&!h(e,n)&&o(t[n])&&(r[n]=f({},r[n]));return r}function O(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,T=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)h(t,e)&&n.push(e);return n};var L={};function B(t,e){var n=t.toLowerCase();L[n]=L[n+"s"]=L[e]=t}function I(t){return"string"==typeof t?L[t]||L[t.toLowerCase()]:void 0}function R(t){var e,n,r={};for(n in t)h(t,n)&&(e=I(n))&&(r[e]=t[n]);return r}var F={};function P(t,e){F[t]=e}function z(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var q=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},U={};function $(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(U[t]=i),e&&(U[e[0]]=function(){return z(i.apply(this,arguments),e[1],e[2])}),n&&(U[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function W(t,e){return t.isValid()?(e=Y(e,t.localeData()),H[e]=H[e]||function(t){var e,n,r,i=t.match(q);for(e=0,n=i.length;e<n;e++)U[i[e]]?i[e]=U[i[e]]:i[e]=(r=i[e]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(e){var r,a="";for(r=0;r<n;r++)a+=N(i[r])?i[r].call(e,t):i[r];return a}}(e),H[e](t)):t.localeData().invalidDate()}function Y(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;0<=n&&j.test(t);)t=t.replace(j,r),j.lastIndex=0,n-=1;return t}var V=/\d/,G=/\d\d/,X=/\d{3}/,Z=/\d{4}/,K=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,at=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ct={};function ut(t,e,n){ct[t]=N(e)?e:function(t,r){return t&&n?n:e}}function ht(t,e){return h(ct,t)?ct[t](e._strict,e._locale):new RegExp(ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i}))))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function pt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),l(e)&&(r=function(t,n){n[e]=k(t)}),n=0;n<t.length;n++)dt[t[n]]=r}function gt(t,e){pt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function mt(t){return yt(t)?366:365}function yt(t){return t%4==0&&t%100!=0||t%400==0}$("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),$(0,["YY",2],0,(function(){return this.year()%100})),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),B("year","y"),P("year",1),ut("Y",at),ut("YY",Q,G),ut("YYYY",nt,Z),ut("YYYYY",rt,K),ut("YYYYYY",rt,K),pt(["YYYYY","YYYYYY"],0),pt("YYYY",(function(t,e){e[0]=2===t.length?i.parseTwoDigitYear(t):k(t)})),pt("YY",(function(t,e){e[0]=i.parseTwoDigitYear(t)})),pt("Y",(function(t,e){e[0]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return k(t)+(68<k(t)?1900:2e3)};var vt,bt=_t("FullYear",!0);function _t(t,e){return function(n){return null!=n?(wt(this,t,n),i.updateOffset(this,e),this):xt(this,t)}}function xt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function wt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&yt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),kt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function kt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?yt(t)?29:28:31-n%7%2}vt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},$("M",["MM",2],"Mo",(function(){return this.month()+1})),$("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),$("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),B("month","M"),P("month",8),ut("M",Q),ut("MM",Q,G),ut("MMM",(function(t,e){return e.monthsShortRegex(t)})),ut("MMMM",(function(t,e){return e.monthsRegex(t)})),pt(["M","MM"],(function(t,e){e[1]=k(t)-1})),pt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[1]=i:p(n).invalidMonth=t}));var Ct=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),St="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Tt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),kt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function At(t){return null!=t?(Tt(this,t),i.updateOffset(this,!0),this):xt(this,"Month")}var Mt=lt,Nt=lt;function Dt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=d([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=ft(r[e]),i[e]=ft(i[e]);for(e=0;e<24;e++)a[e]=ft(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ot(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Lt(t,e,n){var r=7+e-n;return-(7+Ot(t,0,r).getUTCDay()-e)%7+r-1}function Bt(t,e,n,r,i){var a,o,s=1+7*(e-1)+(7+n-r)%7+Lt(t,r,i);return o=s<=0?mt(a=t-1)+s:s>mt(t)?(a=t+1,s-mt(t)):(a=t,s),{year:a,dayOfYear:o}}function It(t,e,n){var r,i,a=Lt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+Rt(i=t.year()-1,e,n):o>Rt(t.year(),e,n)?(r=o-Rt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function Rt(t,e,n){var r=Lt(t,e,n),i=Lt(t+1,e,n);return(mt(t)-r+i)/7}function Ft(t,e){return t.slice(e,7).concat(t.slice(0,e))}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),P("week",5),P("isoWeek",5),ut("w",Q),ut("ww",Q,G),ut("W",Q),ut("WW",Q,G),gt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=k(t)})),$("d",0,"do","day"),$("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),$("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),$("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),ut("d",Q),ut("e",Q),ut("E",Q),ut("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ut("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ut("dddd",(function(t,e){return e.weekdaysRegex(t)})),gt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t})),gt(["d","e","E"],(function(t,e,n,r){e[r]=k(t)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jt=lt,Ht=lt,Ut=lt;function $t(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),l.push(a),c.push(r),c.push(i),c.push(a);for(o.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=ft(s[e]),l[e]=ft(l[e]),c[e]=ft(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Wt(){return this.hours()%12||12}function Yt(t,e){$(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Vt(t,e){return e._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Wt),$("k",["kk",2],0,(function(){return this.hours()||24})),$("hmm",0,0,(function(){return""+Wt.apply(this)+z(this.minutes(),2)})),$("hmmss",0,0,(function(){return""+Wt.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)})),$("Hmm",0,0,(function(){return""+this.hours()+z(this.minutes(),2)})),$("Hmmss",0,0,(function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)})),Yt("a",!0),Yt("A",!1),B("hour","h"),P("hour",13),ut("a",Vt),ut("A",Vt),ut("H",Q),ut("h",Q),ut("k",Q),ut("HH",Q,G),ut("hh",Q,G),ut("kk",Q,G),ut("hmm",J),ut("hmmss",tt),ut("Hmm",J),ut("Hmmss",tt),pt(["H","HH"],3),pt(["k","kk"],(function(t,e,n){var r=k(t);e[3]=24===r?0:r})),pt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),pt(["h","hh"],(function(t,e,n){e[3]=k(t),p(n).bigHour=!0})),pt("hmm",(function(t,e,n){var r=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r)),p(n).bigHour=!0})),pt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r,2)),e[5]=k(t.substr(i)),p(n).bigHour=!0})),pt("Hmm",(function(t,e,n){var r=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r))})),pt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r,2)),e[5]=k(t.substr(i))}));var Gt,Xt=_t("Hours",!0),Zt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Et,monthsShort:St,week:{dow:0,doy:6},weekdays:Pt,weekdaysMin:qt,weekdaysShort:zt,meridiemParse:/[ap]\.?m?\.?/i},Kt={},Qt={};function Jt(t){return t?t.toLowerCase().replace("_","-"):t}function te(e){var r=null;if(!Kt[e]&&t&&t.exports)try{r=Gt._abbr,n(1748)("./"+e),ee(r)}catch(i){}return Kt[e]}function ee(t,e){var n;return t&&((n=s(e)?re(t):ne(t,e))?Gt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Gt._abbr}function ne(t,e){if(null===e)return delete Kt[t],null;var n,r=Zt;if(e.abbr=t,null!=Kt[t])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Kt[t]._config;else if(null!=e.parentLocale)if(null!=Kt[e.parentLocale])r=Kt[e.parentLocale]._config;else{if(null==(n=te(e.parentLocale)))return Qt[e.parentLocale]||(Qt[e.parentLocale]=[]),Qt[e.parentLocale].push({name:t,config:e}),null;r=n._config}return Kt[t]=new O(D(r,e)),Qt[t]&&Qt[t].forEach((function(t){ne(t.name,t.config)})),ee(t),Kt[t]}function re(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Gt;if(!a(t)){if(e=te(t))return e;t=[t]}return function(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=Jt(t[a]).split("-")).length,n=(n=Jt(t[a+1]))?n.split("-"):null;0<e;){if(r=te(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&C(i,n,!0)>=e-1)break;e--}a++}return Gt}(t)}function ie(t){var e,n=t._a;return n&&-2===p(t).overflow&&(e=n[1]<0||11<n[1]?1:n[2]<1||n[2]>kt(n[0],n[1])?2:n[3]<0||24<n[3]||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||59<n[4]?4:n[5]<0||59<n[5]?5:n[6]<0||999<n[6]?6:-1,p(t)._overflowDayOfYear&&(e<0||2<e)&&(e=2),p(t)._overflowWeeks&&-1===e&&(e=7),p(t)._overflowWeekday&&-1===e&&(e=8),p(t).overflow=e),t}function ae(t,e,n){return null!=t?t:null!=e?e:n}function oe(t){var e,n,r,a,o,s=[];if(!t._d){var l,c;for(l=t,c=new Date(i.now()),r=l._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,n,r,i,a,o,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)a=1,o=4,n=ae(e.GG,t._a[0],It(_e(),1,4).year),r=ae(e.W,1),((i=ae(e.E,1))<1||7<i)&&(l=!0);else{a=t._locale._week.dow,o=t._locale._week.doy;var c=It(_e(),a,o);n=ae(e.gg,t._a[0],c.year),r=ae(e.w,c.week),null!=e.d?((i=e.d)<0||6<i)&&(l=!0):null!=e.e?(i=e.e+a,(e.e<0||6<e.e)&&(l=!0)):i=a}r<1||r>Rt(n,a,o)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(s=Bt(n,r,i,a,o),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(o=ae(t._a[0],r[0]),(t._dayOfYear>mt(o)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=Ot(o,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Ot:function(t,e,n,r,i,a,o){var s;return t<100&&0<=t?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}).apply(null,s),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(p(t).weekdayMismatch=!0)}}var se=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,le=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ce=/Z|[+-]\d\d(?::?\d\d)?/,ue=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],he=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fe=/^\/?Date\((\-?\d+)/i;function de(t){var e,n,r,i,a,o,s=t._i,l=se.exec(s)||le.exec(s);if(l){for(p(t).iso=!0,e=0,n=ue.length;e<n;e++)if(ue[e][1].exec(l[1])){i=ue[e][0],r=!1!==ue[e][2];break}if(null==i)return void(t._isValid=!1);if(l[3]){for(e=0,n=he.length;e<n;e++)if(he[e][1].exec(l[3])){a=(l[2]||" ")+he[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(l[4]){if(!ce.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),ye(t)}else t._isValid=!1}var pe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ge={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function me(t){var e,n,r,i=pe.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var a=function(t,e,n,r,i,a){var o=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),St.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}(i[4],i[3],i[2],i[5],i[6],i[7]);if(n=a,r=t,(e=i[1])&&zt.indexOf(e)!==new Date(n[0],n[1],n[2]).getDay()&&(p(r).weekdayMismatch=!0,!(r._isValid=!1)))return;t._a=a,t._tzm=function(t,e,n){if(t)return ge[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(i[8],i[9],i[10]),t._d=Ot.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function ye(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],p(t).empty=!0;var e,n,r,a,o,s,l,c,u=""+t._i,f=u.length,d=0;for(r=Y(t._f,t._locale).match(q)||[],e=0;e<r.length;e++)a=r[e],(n=(u.match(ht(a,t))||[])[0])&&(0<(o=u.substr(0,u.indexOf(n))).length&&p(t).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),d+=n.length),U[a]?(n?p(t).empty=!1:p(t).unusedTokens.push(a),s=a,c=t,null!=(l=n)&&h(dt,s)&&dt[s](l,c._a,c,s)):t._strict&&!n&&p(t).unusedTokens.push(a);p(t).charsLeftOver=f-d,0<u.length&&p(t).unusedInput.push(u),t._a[3]<=12&&!0===p(t).bigHour&&0<t._a[3]&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0)),e)}(t._locale,t._a[3],t._meridiem),oe(t),ie(t)}else me(t);else de(t)}function ve(t){var e,n,r,h,d=t._i,y=t._f;return t._locale=t._locale||re(t._l),null===d||void 0===y&&""===d?m({nullInput:!0}):("string"==typeof d&&(t._i=d=t._locale.preparse(d)),x(d)?new _(ie(d)):(c(d)?t._d=d:a(y)?function(t){var e,n,r,i,a;if(0===t._f.length)return p(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)a=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],ye(e),g(e)&&(a+=p(e).charsLeftOver,a+=10*p(e).unusedTokens.length,p(e).score=a,(null==r||a<r)&&(r=a,n=e));f(t,n||e)}(t):y?ye(t):s(n=(e=t)._i)?e._d=new Date(i.now()):c(n)?e._d=new Date(n.valueOf()):"string"==typeof n?(r=e,null===(h=fe.exec(r._i))?(de(r),!1===r._isValid&&(delete r._isValid,me(r),!1===r._isValid&&(delete r._isValid,i.createFromInputFallback(r)))):r._d=new Date(+h[1])):a(n)?(e._a=u(n.slice(0),(function(t){return parseInt(t,10)})),oe(e)):o(n)?function(t){if(!t._d){var e=R(t._i);t._a=u([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),oe(t)}}(e):l(n)?e._d=new Date(n):i.createFromInputFallback(e),g(t)||(t._d=null),t))}function be(t,e,n,r,i){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||a(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=t,l._f=e,l._strict=r,(s=new _(ie(ve(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function _e(t,e,n,r){return be(t,e,n,r,!1)}i.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var xe=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=_e.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),we=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=_e.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()}));function ke(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return _e();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ce=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ee(t){var e=R(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===vt.call(Ce,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ce.length;++r)if(t[Ce[r]]){if(n)return!1;parseFloat(t[Ce[r]])!==k(t[Ce[r]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=re(),this._bubble()}function Se(t){return t instanceof Ee}function Te(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ae(t,e){$(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+z(~~(t/60),2)+e+z(~~t%60,2)}))}Ae("Z",":"),Ae("ZZ",""),ut("Z",st),ut("ZZ",st),pt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=Ne(st,t)}));var Me=/([\+\-]|\d\d)/gi;function Ne(t,e){var n=(e||"").match(t);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Me)||["-",0,0],i=60*r[1]+k(r[2]);return 0===i?0:"+"===r[0]?i:-i}function De(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(x(t)||c(t)?t.valueOf():_e(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):_e(t).local()}function Oe(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Le(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Be=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ie=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Re(t,e){var n,r,i,a=t,o=null;return Se(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(a={},e?a[e]=t:a.milliseconds=t):(o=Be.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:k(o[2])*n,h:k(o[3])*n,m:k(o[4])*n,s:k(o[5])*n,ms:k(Te(1e3*o[6]))*n}):(o=Ie.exec(t))?(n="-"===o[1]?-1:1,a={y:Fe(o[2],n),M:Fe(o[3],n),w:Fe(o[4],n),d:Fe(o[5],n),h:Fe(o[6],n),m:Fe(o[7],n),s:Fe(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=function(t,e){var n;return t.isValid()&&e.isValid()?(e=De(e,t),t.isBefore(e)?n=Pe(t,e):((n=Pe(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(_e(a.from),_e(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new Ee(a),Se(t)&&h(t,"_locale")&&(r._locale=t._locale),r}function Fe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Pe(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function ze(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(M(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),qe(this,Re(n="string"==typeof n?+n:n,r),t),this}}function qe(t,e,n,r){var a=e._milliseconds,o=Te(e._days),s=Te(e._months);t.isValid()&&(r=null==r||r,s&&Tt(t,xt(t,"Month")+s*n),o&&wt(t,"Date",xt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),r&&i.updateOffset(t,o||s))}Re.fn=Ee.prototype,Re.invalid=function(){return Re(NaN)};var je=ze(1,"add"),He=ze(-1,"subtract");function Ue(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function $e(t){var e;return void 0===t?this._locale._abbr:(null!=(e=re(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var We=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Ye(){return this._locale}var Ve=126227808e5;function Ge(t,e){return(t%e+e)%e}function Xe(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-Ve:new Date(t,e,n).valueOf()}function Ze(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-Ve:Date.UTC(t,e,n)}function Ke(t,e){$(0,[t,t.length],0,e)}function Qe(t,e,n,r,i){var a;return null==t?It(this,r,i).year:((a=Rt(t,r,i))<e&&(e=a),function(t,e,n,r,i){var a=Bt(t,e,n,r,i),o=Ot(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,n,r,i))}$(0,["gg",2],0,(function(){return this.weekYear()%100})),$(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ke("gggg","weekYear"),Ke("ggggg","weekYear"),Ke("GGGG","isoWeekYear"),Ke("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),P("weekYear",1),P("isoWeekYear",1),ut("G",at),ut("g",at),ut("GG",Q,G),ut("gg",Q,G),ut("GGGG",nt,Z),ut("gggg",nt,Z),ut("GGGGG",rt,K),ut("ggggg",rt,K),gt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=k(t)})),gt(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),$("Q",0,"Qo","quarter"),B("quarter","Q"),P("quarter",7),ut("Q",V),pt("Q",(function(t,e){e[1]=3*(k(t)-1)})),$("D",["DD",2],"Do","date"),B("date","D"),P("date",9),ut("D",Q),ut("DD",Q,G),ut("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),pt(["D","DD"],2),pt("Do",(function(t,e){e[2]=k(t.match(Q)[0])}));var Je=_t("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),P("dayOfYear",4),ut("DDD",et),ut("DDDD",X),pt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=k(t)})),$("m",["mm",2],0,"minute"),B("minute","m"),P("minute",14),ut("m",Q),ut("mm",Q,G),pt(["m","mm"],4);var tn=_t("Minutes",!1);$("s",["ss",2],0,"second"),B("second","s"),P("second",15),ut("s",Q),ut("ss",Q,G),pt(["s","ss"],5);var en,nn=_t("Seconds",!1);for($("S",0,0,(function(){return~~(this.millisecond()/100)})),$(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),$(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),$(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),$(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),$(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),$(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),P("millisecond",16),ut("S",et,V),ut("SS",et,G),ut("SSS",et,X),en="SSSS";en.length<=9;en+="S")ut(en,it);function rn(t,e){e[6]=k(1e3*("0."+t))}for(en="S";en.length<=9;en+="S")pt(en,rn);var an=_t("Milliseconds",!1);$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var on=_.prototype;function sn(t){return t}on.add=je,on.calendar=function(t,e){var n=t||_e(),r=De(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=e&&(N(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,_e(n)))},on.clone=function(){return new _(this)},on.diff=function(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=De(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=I(e)){case"year":a=Ue(this,r)/12;break;case"month":a=Ue(this,r);break;case"quarter":a=Ue(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:w(a)},on.endOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?Ze:Xe;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Ge(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Ge(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Ge(e,1e3)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},on.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=W(this,t);return this.localeData().postformat(e)},on.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||_e(t).isValid())?Re({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},on.fromNow=function(t){return this.from(_e(),t)},on.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||_e(t).isValid())?Re({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},on.toNow=function(t){return this.to(_e(),t)},on.get=function(t){return N(this[t=I(t)])?this[t]():this},on.invalidAt=function(){return p(this).overflow},on.isAfter=function(t,e){var n=x(t)?t:_e(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},on.isBefore=function(t,e){var n=x(t)?t:_e(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},on.isBetween=function(t,e,n,r){var i=x(t)?t:_e(t),a=x(e)?e:_e(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},on.isSame=function(t,e){var n,r=x(t)?t:_e(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},on.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},on.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},on.isValid=function(){return g(this)},on.lang=We,on.locale=$e,on.localeData=Ye,on.max=we,on.min=xe,on.parsingFlags=function(){return f({},p(this))},on.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:F[n]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=R(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(N(this[t=I(t)]))return this[t](e);return this},on.startOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?Ze:Xe;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ge(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=Ge(e,6e4);break;case"second":e=this._d.valueOf(),e-=Ge(e,1e3)}return this._d.setTime(e),i.updateOffset(this,!0),this},on.subtract=He,on.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},on.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},on.toDate=function(){return new Date(this.valueOf())},on.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||9999<n.year()?W(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},on.toJSON=function(){return this.isValid()?this.toISOString():null},on.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.year=bt,on.isLeapYear=function(){return yt(this.year())},on.weekYear=function(t){return Qe.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},on.isoWeekYear=function(t){return Qe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},on.quarter=on.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},on.month=At,on.daysInMonth=function(){return kt(this.year(),this.month())},on.week=on.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},on.isoWeek=on.isoWeeks=function(t){var e=It(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},on.weeksInYear=function(){var t=this.localeData()._week;return Rt(this.year(),t.dow,t.doy)},on.isoWeeksInYear=function(){return Rt(this.year(),1,4)},on.date=Je,on.day=on.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-r,"d")):r},on.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},on.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,n,r=(e=t,n=this.localeData(),"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?r:r-7)},on.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},on.hour=on.hours=Xt,on.minute=on.minutes=tn,on.second=on.seconds=nn,on.millisecond=on.milliseconds=an,on.utcOffset=function(t,e,n){var r,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:Oe(this);if("string"==typeof t){if(null===(t=Ne(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Oe(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==t&&(!e||this._changeInProgress?qe(this,Re(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this},on.utc=function(t){return this.utcOffset(0,t)},on.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Oe(this),"m")),this},on.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ne(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},on.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?_e(t).utcOffset():0,(this.utcOffset()-t)%60==0)},on.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},on.isUtc=Le,on.isUTC=Le,on.zoneAbbr=function(){return this._isUTC?"UTC":""},on.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},on.dates=S("dates accessor is deprecated. Use date instead.",Je),on.months=S("months accessor is deprecated. Use month instead",At),on.years=S("years accessor is deprecated. Use year instead",bt),on.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),on.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=ve(t))._a){var e=t._isUTC?d(t._a):_e(t._a);this._isDSTShifted=this.isValid()&&0<C(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}));var ln=O.prototype;function cn(t,e,n,r){var i=re(),a=d().set(r,e);return i[n](a,t)}function un(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return cn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=cn(t,r,n,"month");return i}function hn(t,e,n,r){"boolean"==typeof t?l(e)&&(n=e,e=void 0):(e=t,t=!1,l(n=e)&&(n=e,e=void 0)),e=e||"";var i,a=re(),o=t?a._week.dow:0;if(null!=n)return cn(e,(n+o)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=cn(e,(i+o)%7,r,"day");return s}ln.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return N(r)?r.call(e,n):r},ln.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},ln.invalidDate=function(){return this._invalidDate},ln.ordinal=function(t){return this._ordinal.replace("%d",t)},ln.preparse=sn,ln.postformat=sn,ln.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return N(i)?i(t,e,n,r):i.replace(/%d/i,t)},ln.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return N(n)?n(e):n.replace(/%s/i,e)},ln.set=function(t){var e,n;for(n in t)N(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ln.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},ln.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ln.monthsParse=function(t,e,n){var r,i,a;if(this._monthsParseExact)return function(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=vt.call(this._shortMonthsParse,o))?i:null:-1!==(i=vt.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=vt.call(this._shortMonthsParse,o))||-1!==(i=vt.call(this._longMonthsParse,o))?i:null:-1!==(i=vt.call(this._longMonthsParse,o))||-1!==(i=vt.call(this._shortMonthsParse,o))?i:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},ln.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Dt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Nt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},ln.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Dt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Mt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},ln.week=function(t){return It(t,this._week.dow,this._week.doy).week},ln.firstDayOfYear=function(){return this._week.doy},ln.firstDayOfWeek=function(){return this._week.dow},ln.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ft(n,this._week.dow):t?n[t.day()]:n},ln.weekdaysMin=function(t){return!0===t?Ft(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},ln.weekdaysShort=function(t){return!0===t?Ft(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},ln.weekdaysParse=function(t,e,n){var r,i,a;if(this._weekdaysParseExact)return function(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=vt.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=vt.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=vt.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=vt.call(this._weekdaysParse,o))||-1!==(i=vt.call(this._shortWeekdaysParse,o))||-1!==(i=vt.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=vt.call(this._shortWeekdaysParse,o))||-1!==(i=vt.call(this._weekdaysParse,o))||-1!==(i=vt.call(this._minWeekdaysParse,o))?i:null:-1!==(i=vt.call(this._minWeekdaysParse,o))||-1!==(i=vt.call(this._weekdaysParse,o))||-1!==(i=vt.call(this._shortWeekdaysParse,o))?i:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},ln.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=jt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},ln.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ht),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ln.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ut),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ln.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},ln.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ee("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",ee),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",re);var fn=Math.abs;function dn(t,e,n,r){var i=Re(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function pn(t){return t<0?Math.floor(t):Math.ceil(t)}function gn(t){return 4800*t/146097}function mn(t){return 146097*t/4800}function yn(t){return function(){return this.as(t)}}var vn=yn("ms"),bn=yn("s"),_n=yn("m"),xn=yn("h"),wn=yn("d"),kn=yn("w"),Cn=yn("M"),En=yn("Q"),Sn=yn("y");function Tn(t){return function(){return this.isValid()?this._data[t]:NaN}}var An=Tn("milliseconds"),Mn=Tn("seconds"),Nn=Tn("minutes"),Dn=Tn("hours"),On=Tn("days"),Ln=Tn("months"),Bn=Tn("years"),In=Math.round,Rn={ss:44,s:45,m:45,h:22,d:26,M:11},Fn=Math.abs;function Pn(t){return(0<t)-(t<0)||+t}function zn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Fn(this._milliseconds)/1e3,r=Fn(this._days),i=Fn(this._months);e=w((t=w(n/60))/60),n%=60,t%=60;var a=w(i/12),o=i%=12,s=r,l=e,c=t,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",d=Pn(this._months)!==Pn(h)?"-":"",p=Pn(this._days)!==Pn(h)?"-":"",g=Pn(this._milliseconds)!==Pn(h)?"-":"";return f+"P"+(a?d+a+"Y":"")+(o?d+o+"M":"")+(s?p+s+"D":"")+(l||c||u?"T":"")+(l?g+l+"H":"")+(c?g+c+"M":"")+(u?g+u+"S":"")}var qn=Ee.prototype;return qn.isValid=function(){return this._isValid},qn.abs=function(){var t=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),t.milliseconds=fn(t.milliseconds),t.seconds=fn(t.seconds),t.minutes=fn(t.minutes),t.hours=fn(t.hours),t.months=fn(t.months),t.years=fn(t.years),this},qn.add=function(t,e){return dn(this,t,e,1)},qn.subtract=function(t,e){return dn(this,t,e,-1)},qn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+gn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(mn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},qn.asMilliseconds=vn,qn.asSeconds=bn,qn.asMinutes=_n,qn.asHours=xn,qn.asDays=wn,qn.asWeeks=kn,qn.asMonths=Cn,qn.asQuarters=En,qn.asYears=Sn,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},qn._bubble=function(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return 0<=a&&0<=o&&0<=s||a<=0&&o<=0&&s<=0||(a+=864e5*pn(mn(s)+o),s=o=0),l.milliseconds=a%1e3,t=w(a/1e3),l.seconds=t%60,e=w(t/60),l.minutes=e%60,n=w(e/60),l.hours=n%24,s+=i=w(gn(o+=w(n/24))),o-=pn(mn(i)),r=w(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},qn.clone=function(){return Re(this)},qn.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},qn.milliseconds=An,qn.seconds=Mn,qn.minutes=Nn,qn.hours=Dn,qn.days=On,qn.weeks=function(){return w(this.days()/7)},qn.months=Ln,qn.years=Bn,qn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,r,i,a,o,s,l,c,u,h=this.localeData(),f=(e=!t,n=h,r=Re(this).abs(),i=In(r.as("s")),a=In(r.as("m")),o=In(r.as("h")),s=In(r.as("d")),l=In(r.as("M")),c=In(r.as("y")),(u=i<=Rn.ss&&["s",i]||i<Rn.s&&["ss",i]||a<=1&&["m"]||a<Rn.m&&["mm",a]||o<=1&&["h"]||o<Rn.h&&["hh",o]||s<=1&&["d"]||s<Rn.d&&["dd",s]||l<=1&&["M"]||l<Rn.M&&["MM",l]||c<=1&&["y"]||["yy",c])[2]=e,u[3]=0<+this,u[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,u));return t&&(f=h.pastFuture(+this,f)),h.postformat(f)},qn.toISOString=zn,qn.toString=zn,qn.toJSON=zn,qn.locale=$e,qn.localeData=Ye,qn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zn),qn.lang=We,$("X",0,0,"unix"),$("x",0,0,"valueOf"),ut("x",at),ut("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))})),pt("x",(function(t,e,n){n._d=new Date(k(t))})),i.version="2.24.0",e=_e,i.fn=on,i.min=function(){return ke("isBefore",[].slice.call(arguments,0))},i.max=function(){return ke("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=d,i.unix=function(t){return _e(1e3*t)},i.months=function(t,e){return un(t,e,"months")},i.isDate=c,i.locale=ee,i.invalid=m,i.duration=Re,i.isMoment=x,i.weekdays=function(t,e,n){return hn(t,e,n,"weekdays")},i.parseZone=function(){return _e.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=Se,i.monthsShort=function(t,e){return un(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return hn(t,e,n,"weekdaysMin")},i.defineLocale=ne,i.updateLocale=function(t,e){if(null!=e){var n,r,i=Zt;null!=(r=te(t))&&(i=r._config),(n=new O(e=D(i,e))).parentLocale=Kt[t],Kt[t]=n,ee(t)}else null!=Kt[t]&&(null!=Kt[t].parentLocale?Kt[t]=Kt[t].parentLocale:null!=Kt[t]&&delete Kt[t]);return Kt[t]},i.locales=function(){return T(Kt)},i.weekdaysShort=function(t,e,n){return hn(t,e,n,"weekdaysShort")},i.normalizeUnits=I,i.relativeTimeRounding=function(t){return void 0===t?In:"function"==typeof t&&(In=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==Rn[t]&&(void 0===e?Rn[t]:(Rn[t]=e,"s"===t&&(Rn.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=on,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},6470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var n,r="",i=0,a=-1,o=0,s=0;s<=t.length;++s){if(s<t.length)n=t.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=s,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=s,o=0;continue}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+t.slice(a+1,s):r=t.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var t,r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(void 0===t&&(t=process.cwd()),o=t),e(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(t){if(e(t),0===t.length)return".";var r=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!r)).length||r||(t="."),t.length>0&&i&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,n=0;n<arguments.length;++n){var i=arguments[n];e(i),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":r.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n)return"";if((t=r.resolve(t))===(n=r.resolve(n)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var a=t.length,o=a-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var l=n.length-s,c=o<l?o:l,u=-1,h=0;h<=c;++h){if(h===c){if(l>c){if(47===n.charCodeAt(s+h))return n.slice(s+h+1);if(0===h)return n.slice(s+h)}else o>c&&(47===t.charCodeAt(i+h)?u=h:0===h&&(u=0));break}var f=t.charCodeAt(i+h);if(f!==n.charCodeAt(s+h))break;47===f&&(u=h)}var d="";for(h=i+u+1;h<=a;++h)h!==a&&47!==t.charCodeAt(h)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,i=-1,a=!0,o=t.length-1;o>=1;--o)if(47===(n=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"//":t.slice(0,i)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,l=-1;for(r=t.length-1;r>=0;--r){var c=t.charCodeAt(r);if(47===c){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=l))}return i===a?a=l:-1===a&&(a=t.length),t.slice(i,a)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!o){i=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":t.slice(i,a)},extname:function(t){e(t);for(var n=-1,r=0,i=-1,a=!0,o=0,s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===i&&(a=!1,i=s+1),46===l?-1===n?n=s:1!==o&&(o=1):-1!==n&&(o=-1);else if(!a){r=s+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+"/"+r:r}(0,t)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var r,i=t.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var o=-1,s=0,l=-1,c=!0,u=t.length-1,h=0;u>=r;--u)if(47!==(i=t.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===i?-1===o?o=u:1!==h&&(h=1):-1!==o&&(h=-1);else if(!c){s=u+1;break}return-1===o||-1===l||0===h||1===h&&o===l-1&&o===s+1?-1!==l&&(n.base=n.name=0===s&&a?t.slice(1,l):t.slice(s,l)):(0===s&&a?(n.name=t.slice(1,o),n.base=t.slice(1,l)):(n.name=t.slice(s,o),n.base=t.slice(s,l)),n.ext=t.slice(o,l)),s>0?n.dir=t.slice(0,s-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,t.exports=r},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},Mgt={};function Ngt(t){var e=Mgt[t];if(void 0!==e)return e.exports;var n=Mgt[t]={id:t,loaded:!1,exports:{}};return Agt[t].call(n.exports,n,n.exports,Ngt),n.loaded=!0,n.exports}Ngt.c=Mgt,Ngt.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Ngt.d(e,{a:e}),e},Ngt.d=(t,e)=>{for(var n in e)Ngt.o(e,n)&&!Ngt.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},Ngt.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),Ngt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Ngt.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},Ngt.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var Dgt=Ngt(Ngt.s=7458).Z;function Ogt(t,e){var n,r,i,a,o,s,l,c,u;n=(new TextEncoder).encode(t),r=3&n.length,i=n.length-r,a=e,s=3432918353,l=461845907,u=0;while(u<i)c=255&n[u]|(255&n[++u])<<8|(255&n[++u])<<16|(255&n[++u])<<24,++u,c=(65535&c)*s+(((c>>>16)*s&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(65535&c)*l+(((c>>>16)*l&65535)<<16)&4294967295,a^=c,a=a<<13|a>>>19,o=5*(65535&a)+((5*(a>>>16)&65535)<<16)&4294967295,a=27492+(65535&o)+((58964+(o>>>16)&65535)<<16);switch(c=0,r){case 3:c^=(255&n[u+2])<<16;case 2:c^=(255&n[u+1])<<8;case 1:c^=255&n[u],c=(65535&c)*s+(((c>>>16)*s&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(65535&c)*l+(((c>>>16)*l&65535)<<16)&4294967295,a^=c}return a^=n.length,a^=a>>>16,a=2246822507*(65535&a)+((2246822507*(a>>>16)&65535)<<16)&4294967295,a^=a>>>13,a=3266489909*(65535&a)+((3266489909*(a>>>16)&65535)<<16)&4294967295,a^=a>>>16,a>>>0}const Lgt=t=>String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),Bgt=t=>{try{var e="render"+Ogt(t,42).toString();return Dgt.mermaidAPI.render(e,t,(e=>{t=e})),`<div class="mermaid">${t}</div>`}catch(n){return`<pre>${Lgt(n.name)}: ${Lgt(n.message)}</pre>`}},Igt=(t,e)=>{Object.assign(Igt.default,e);const n=Igt.default.dictionary,{token:r="mermaid"}=n,i=x(n,["token"]);Dgt.initialize(Igt.default);const a=t.renderer.rules.fence.bind(t.renderer.rules);function o(t,e,n,r){var a,o;return e=null!=(a=i[e])?a:e,n=null!=(o=i[n])?o:n,""===n?`${e}\n`:`${e} ${n}${r}`}t.renderer.rules.fence=(t,e,n,i,s)=>{const l=t[e],c=l.content.trim();return l.info.trim()===r?Bgt(c.replace(/(.*?)[ \n](.*?)([ \n])/,o)):a(t,e,n,i,s)}};Igt.default={startOnLoad:!1,securityLevel:"true",theme:"default",flowchart:{htmlLabels:!1,useMaxWidth:!0},dictionary:{token:"mermaid"}};const Rgt=new GU({html:!0,xhtmlOut:!0,breaks:!0,linkify:!0,typographer:!0,highlight:(t,e)=>`<pre><code class="language-${e}">${$(t)}</code></pre>`});Rgt.use(Igt).use(XU).use(c$).use(x$,{allowedAttributes:["id","class","target"]}).use(Dpt).use(qpt).use(jpt).use(Hpt).use(Xpt).use(Zpt).use(Jpt).use(ngt).use(hgt,{includeLevel:[1,2,3,4,5,6],markerPattern:/^\[TOC\]/im}).use(ggt);var Fgt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},Pgt={exports:{}};function zgt(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];"object"!=typeof n||Object.isFrozen(n)||zgt(n)})),t}Pgt.exports=zgt,Pgt.exports.default=zgt;var qgt=Pgt.exports;class jgt{constructor(t){void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Hgt(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ugt(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach((function(t){for(const e in t)n[e]=t[e]})),n}const $gt="</span>",Wgt=t=>!!t.kind,Ygt=(t,{prefix:e})=>{if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map(((t,e)=>`${t}${"_".repeat(e+1)}`))].join(" ")}return`${e}${t}`};class Vgt{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=Hgt(t)}openNode(t){if(!Wgt(t))return;let e=t.kind;e=t.sublanguage?`language-${e}`:Ygt(e,{prefix:this.classPrefix}),this.span(e)}closeNode(t){Wgt(t)&&(this.buffer+=$gt)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class Ggt{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const e={kind:t,children:[]};this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,e){return"string"===typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach((e=>this._walk(t,e))),t.closeNode(e)),t}static _collapse(t){"string"!==typeof t&&t.children&&(t.children.every((t=>"string"===typeof t))?t.children=[t.children.join("")]:t.children.forEach((t=>{Ggt._collapse(t)})))}}class Xgt extends Ggt{constructor(t){super(),this.options=t}addKeyword(t,e){""!==t&&(this.openNode(e),this.addText(t),this.closeNode())}addText(t){""!==t&&this.add(t)}addSublanguage(t,e){const n=t.root;n.kind=e,n.sublanguage=!0,this.add(n)}toHTML(){const t=new Vgt(this,this.options);return t.value()}finalize(){return!0}}function Zgt(t){return t?"string"===typeof t?t:t.source:null}function Kgt(t){return tmt("(?=",t,")")}function Qgt(t){return tmt("(?:",t,")*")}function Jgt(t){return tmt("(?:",t,")?")}function tmt(...t){const e=t.map((t=>Zgt(t))).join("");return e}function emt(t){const e=t[t.length-1];return"object"===typeof e&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function nmt(...t){const e=emt(t),n="("+(e.capture?"":"?:")+t.map((t=>Zgt(t))).join("|")+")";return n}function rmt(t){return new RegExp(t.toString()+"|").exec("").length-1}function imt(t,e){const n=t&&t.exec(e);return n&&0===n.index}const amt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function omt(t,{joinWith:e}){let n=0;return t.map((t=>{n+=1;const e=n;let r=Zgt(t),i="";while(r.length>0){const t=amt.exec(r);if(!t){i+=r;break}i+=r.substring(0,t.index),r=r.substring(t.index+t[0].length),"\\"===t[0][0]&&t[1]?i+="\\"+String(Number(t[1])+e):(i+=t[0],"("===t[0]&&n++)}return i})).map((t=>`(${t})`)).join(e)}const smt=/\b\B/,lmt="[a-zA-Z]\\w*",cmt="[a-zA-Z_]\\w*",umt="\\b\\d+(\\.\\d+)?",hmt="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",fmt="\\b(0b[01]+)",dmt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",pmt=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=tmt(e,/.*\b/,t.binary,/\b.*/)),Ugt({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,e)=>{0!==t.index&&e.ignoreMatch()}},t)},gmt={begin:"\\\\[\\s\\S]",relevance:0},mmt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[gmt]},ymt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[gmt]},vmt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},bmt=function(t,e,n={}){const r=Ugt({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=nmt("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:tmt(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},_mt=bmt("//","$"),xmt=bmt("/\\*","\\*/"),wmt=bmt("#","$"),kmt={scope:"number",begin:umt,relevance:0},Cmt={scope:"number",begin:hmt,relevance:0},Emt={scope:"number",begin:fmt,relevance:0},Smt={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[gmt,{begin:/\[/,end:/\]/,relevance:0,contains:[gmt]}]}]},Tmt={scope:"title",begin:lmt,relevance:0},Amt={scope:"title",begin:cmt,relevance:0},Mmt={begin:"\\.\\s*"+cmt,relevance:0},Nmt=function(t){return Object.assign(t,{"on:begin":(t,e)=>{e.data._beginMatch=t[1]},"on:end":(t,e)=>{e.data._beginMatch!==t[1]&&e.ignoreMatch()}})};var Dmt=Object.freeze({__proto__:null,MATCH_NOTHING_RE:smt,IDENT_RE:lmt,UNDERSCORE_IDENT_RE:cmt,NUMBER_RE:umt,C_NUMBER_RE:hmt,BINARY_NUMBER_RE:fmt,RE_STARTERS_RE:dmt,SHEBANG:pmt,BACKSLASH_ESCAPE:gmt,APOS_STRING_MODE:mmt,QUOTE_STRING_MODE:ymt,PHRASAL_WORDS_MODE:vmt,COMMENT:bmt,C_LINE_COMMENT_MODE:_mt,C_BLOCK_COMMENT_MODE:xmt,HASH_COMMENT_MODE:wmt,NUMBER_MODE:kmt,C_NUMBER_MODE:Cmt,BINARY_NUMBER_MODE:Emt,REGEXP_MODE:Smt,TITLE_MODE:Tmt,UNDERSCORE_TITLE_MODE:Amt,METHOD_GUARD:Mmt,END_SAME_AS_BEGIN:Nmt});function Omt(t,e){const n=t.input[t.index-1];"."===n&&e.ignoreMatch()}function Lmt(t,e){void 0!==t.className&&(t.scope=t.className,delete t.className)}function Bmt(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=Omt,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function Imt(t,e){Array.isArray(t.illegal)&&(t.illegal=nmt(...t.illegal))}function Rmt(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function Fmt(t,e){void 0===t.relevance&&(t.relevance=1)}const Pmt=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach((e=>{delete t[e]})),t.keywords=n.keywords,t.begin=tmt(n.beforeMatch,Kgt(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},zmt=["of","and","for","in","not","or","if","then","parent","list","value"],qmt="keyword";function jmt(t,e,n=qmt){const r=Object.create(null);return"string"===typeof t?i(n,t.split(" ")):Array.isArray(t)?i(n,t):Object.keys(t).forEach((function(n){Object.assign(r,jmt(t[n],e,n))})),r;function i(t,n){e&&(n=n.map((t=>t.toLowerCase()))),n.forEach((function(e){const n=e.split("|");r[n[0]]=[t,Hmt(n[0],n[1])]}))}}function Hmt(t,e){return e?Number(e):Umt(t)?0:1}function Umt(t){return zmt.includes(t.toLowerCase())}const $mt={},Wmt=t=>{console.error(t)},Ymt=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Vmt=(t,e)=>{$mt[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),$mt[`${t}/${e}`]=!0)},Gmt=new Error;function Xmt(t,e,{key:n}){let r=0;const i=t[n],a={},o={};for(let s=1;s<=e.length;s++)o[s+r]=i[s],a[s+r]=!0,r+=rmt(e[s-1]);t[n]=o,t[n]._emit=a,t[n]._multi=!0}function Zmt(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Wmt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Gmt;if("object"!==typeof t.beginScope||null===t.beginScope)throw Wmt("beginScope must be object"),Gmt;Xmt(t,t.begin,{key:"beginScope"}),t.begin=omt(t.begin,{joinWith:""})}}function Kmt(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Wmt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Gmt;if("object"!==typeof t.endScope||null===t.endScope)throw Wmt("endScope must be object"),Gmt;Xmt(t,t.end,{key:"endScope"}),t.end=omt(t.end,{joinWith:""})}}function Qmt(t){t.scope&&"object"===typeof t.scope&&null!==t.scope&&(t.beginScope=t.scope,delete t.scope)}function Jmt(t){Qmt(t),"string"===typeof t.beginScope&&(t.beginScope={_wrap:t.beginScope}),"string"===typeof t.endScope&&(t.endScope={_wrap:t.endScope}),Zmt(t),Kmt(t)}function tyt(t){function e(e,n){return new RegExp(Zgt(e),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(t,e){e.position=this.position++,this.matchIndexes[this.matchAt]=e,this.regexes.push([e,t]),this.matchAt+=rmt(t)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const t=this.regexes.map((t=>t[1]));this.matcherRe=e(omt(t,{joinWith:"|"}),!0),this.lastIndex=0}exec(t){this.matcherRe.lastIndex=this.lastIndex;const e=this.matcherRe.exec(t);if(!e)return null;const n=e.findIndex(((t,e)=>e>0&&void 0!==t)),r=this.matchIndexes[n];return e.splice(0,n),Object.assign(e,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(t){if(this.multiRegexes[t])return this.multiRegexes[t];const e=new n;return this.rules.slice(t).forEach((([t,n])=>e.addRule(t,n))),e.compile(),this.multiRegexes[t]=e,e}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(t,e){this.rules.push([t,e]),"begin"===e.type&&this.count++}exec(t){const e=this.getMatcher(this.regexIndex);e.lastIndex=this.lastIndex;let n=e.exec(t);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const e=this.getMatcher(0);e.lastIndex=this.lastIndex+1,n=e.exec(t)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(t){const e=new r;return t.contains.forEach((t=>e.addRule(t.begin,{rule:t,type:"begin"}))),t.terminatorEnd&&e.addRule(t.terminatorEnd,{type:"end"}),t.illegal&&e.addRule(t.illegal,{type:"illegal"}),e}function a(n,r){const o=n;if(n.isCompiled)return o;[Lmt,Rmt,Jmt,Pmt].forEach((t=>t(n,r))),t.compilerExtensions.forEach((t=>t(n,r))),n.__beforeBegin=null,[Bmt,Imt,Fmt].forEach((t=>t(n,r))),n.isCompiled=!0;let s=null;return"object"===typeof n.keywords&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s=s||/\w+/,n.keywords&&(n.keywords=jmt(n.keywords,t.case_insensitive)),o.keywordPatternRe=e(s,!0),r&&(n.begin||(n.begin=/\B|\b/),o.beginRe=e(o.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(o.endRe=e(o.end)),o.terminatorEnd=Zgt(o.end)||"",n.endsWithParent&&r.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+r.terminatorEnd)),n.illegal&&(o.illegalRe=e(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map((function(t){return nyt("self"===t?n:t)}))),n.contains.forEach((function(t){a(t,o)})),n.starts&&a(n.starts,r),o.matcher=i(o),o}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=Ugt(t.classNameAliases||{}),a(t)}function eyt(t){return!!t&&(t.endsWithParent||eyt(t.starts))}function nyt(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map((function(e){return Ugt(t,{variants:null},e)}))),t.cachedVariants?t.cachedVariants:eyt(t)?Ugt(t,{starts:t.starts?Ugt(t.starts):null}):Object.isFrozen(t)?Ugt(t):t}var ryt="11.5.1";class iyt extends Error{constructor(t,e){super(t),this.name="HTMLInjectionError",this.html=e}}const ayt=Hgt,oyt=Ugt,syt=Symbol("nomatch"),lyt=7,cyt=function(t){const e=Object.create(null),n=Object.create(null),r=[];let i=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Xgt};function l(t){return s.noHighlightRe.test(t)}function c(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const n=s.languageDetectRe.exec(e);if(n){const e=E(n[1]);return e||(Ymt(a.replace("{}",n[1])),Ymt("Falling back to no-highlight mode for this block.",t)),e?n[1]:"no-highlight"}return e.split(/\s+/).find((t=>l(t)||E(t)))}function u(t,e,n){let r="",i="";"object"===typeof e?(r=t,n=e.ignoreIllegals,i=e.language):(Vmt("10.7.0","highlight(lang, code, ...args) has been deprecated."),Vmt("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=t,r=e),void 0===n&&(n=!0);const a={code:r,language:i};N("before:highlight",a);const o=a.result?a.result:h(a.language,a.code,n);return o.code=a.code,N("after:highlight",o),o}function h(t,n,r,o){const l=Object.create(null);function c(t,e){return t.keywords[e]}function u(){if(!A.keywords)return void N.addText(D);let t=0;A.keywordPatternRe.lastIndex=0;let e=A.keywordPatternRe.exec(D),n="";while(e){n+=D.substring(t,e.index);const r=C.case_insensitive?e[0].toLowerCase():e[0],i=c(A,r);if(i){const[t,a]=i;if(N.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=lyt&&(O+=a),t.startsWith("_"))n+=e[0];else{const n=C.classNameAliases[t]||t;N.addKeyword(e[0],n)}}else n+=e[0];t=A.keywordPatternRe.lastIndex,e=A.keywordPatternRe.exec(D)}n+=D.substr(t),N.addText(n)}function f(){if(""===D)return;let t=null;if("string"===typeof A.subLanguage){if(!e[A.subLanguage])return void N.addText(D);t=h(A.subLanguage,D,!0,M[A.subLanguage]),M[A.subLanguage]=t._top}else t=d(D,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(O+=t.relevance),N.addSublanguage(t._emitter,t.language)}function p(){null!=A.subLanguage?f():u(),D=""}function g(t,e){let n=1;const r=e.length-1;while(n<=r){if(!t._emit[n]){n++;continue}const r=C.classNameAliases[t[n]]||t[n],i=e[n];r?N.addKeyword(i,r):(D=i,u(),D=""),n++}}function m(t,e){return t.scope&&"string"===typeof t.scope&&N.openNode(C.classNameAliases[t.scope]||t.scope),t.beginScope&&(t.beginScope._wrap?(N.addKeyword(D,C.classNameAliases[t.beginScope._wrap]||t.beginScope._wrap),D=""):t.beginScope._multi&&(g(t.beginScope,e),D="")),A=Object.create(t,{parent:{value:A}}),A}function y(t,e,n){let r=imt(t.endRe,n);if(r){if(t["on:end"]){const n=new jgt(t);t["on:end"](e,n),n.isMatchIgnored&&(r=!1)}if(r){while(t.endsParent&&t.parent)t=t.parent;return t}}if(t.endsWithParent)return y(t.parent,e,n)}function v(t){return 0===A.matcher.regexIndex?(D+=t[0],1):(I=!0,0)}function b(t){const e=t[0],n=t.rule,r=new jgt(n),i=[n.__beforeBegin,n["on:begin"]];for(const a of i)if(a&&(a(t,r),r.isMatchIgnored))return v(e);return n.skip?D+=e:(n.excludeBegin&&(D+=e),p(),n.returnBegin||n.excludeBegin||(D=e)),m(n,t),n.returnBegin?0:e.length}function _(t){const e=t[0],r=n.substr(t.index),i=y(A,t,r);if(!i)return syt;const a=A;A.endScope&&A.endScope._wrap?(p(),N.addKeyword(e,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),g(A.endScope,t)):a.skip?D+=e:(a.returnEnd||a.excludeEnd||(D+=e),p(),a.excludeEnd&&(D=e));do{A.scope&&N.closeNode(),A.skip||A.subLanguage||(O+=A.relevance),A=A.parent}while(A!==i.parent);return i.starts&&m(i.starts,t),a.returnEnd?0:e.length}function x(){const t=[];for(let e=A;e!==C;e=e.parent)e.scope&&t.unshift(e.scope);t.forEach((t=>N.openNode(t)))}let w={};function k(e,a){const o=a&&a[0];if(D+=e,null==o)return p(),0;if("begin"===w.type&&"end"===a.type&&w.index===a.index&&""===o){if(D+=n.slice(a.index,a.index+1),!i){const e=new Error(`0 width match regex (${t})`);throw e.languageName=t,e.badRule=w.rule,e}return 1}if(w=a,"begin"===a.type)return b(a);if("illegal"===a.type&&!r){const t=new Error('Illegal lexeme "'+o+'" for mode "'+(A.scope||"<unnamed>")+'"');throw t.mode=A,t}if("end"===a.type){const t=_(a);if(t!==syt)return t}if("illegal"===a.type&&""===o)return 1;if(B>1e5&&B>3*a.index){const t=new Error("potential infinite loop, way more iterations than matches");throw t}return D+=o,o.length}const C=E(t);if(!C)throw Wmt(a.replace("{}",t)),new Error('Unknown language: "'+t+'"');const S=tyt(C);let T="",A=o||S;const M={},N=new s.__emitter(s);x();let D="",O=0,L=0,B=0,I=!1;try{for(A.matcher.considerAll();;){B++,I?I=!1:A.matcher.considerAll(),A.matcher.lastIndex=L;const t=A.matcher.exec(n);if(!t)break;const e=n.substring(L,t.index),r=k(e,t);L=t.index+r}return k(n.substr(L)),N.closeAllNodes(),N.finalize(),T=N.toHTML(),{language:t,value:T,relevance:O,illegal:!1,_emitter:N,_top:A}}catch(R){if(R.message&&R.message.includes("Illegal"))return{language:t,value:ayt(n),illegal:!0,relevance:0,_illegalBy:{message:R.message,index:L,context:n.slice(L-100,L+100),mode:R.mode,resultSoFar:T},_emitter:N};if(i)return{language:t,value:ayt(n),illegal:!1,relevance:0,errorRaised:R,_emitter:N,_top:A};throw R}}function f(t){const e={value:ayt(t),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return e._emitter.addText(t),e}function d(t,n){n=n||s.languages||Object.keys(e);const r=f(t),i=n.filter(E).filter(T).map((e=>h(e,t,!1)));i.unshift(r);const a=i.sort(((t,e)=>{if(t.relevance!==e.relevance)return e.relevance-t.relevance;if(t.language&&e.language){if(E(t.language).supersetOf===e.language)return 1;if(E(e.language).supersetOf===t.language)return-1}return 0})),[o,l]=a,c=o;return c.secondBest=l,c}function p(t,e,r){const i=e&&n[e]||r;t.classList.add("hljs"),t.classList.add(`language-${i}`)}function g(t){let e=null;const n=c(t);if(l(n))return;if(N("before:highlightElement",{el:t,language:n}),t.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(t)),s.throwUnescapedHTML)){const e=new iyt("One of your code blocks includes unescaped HTML.",t.innerHTML);throw e}e=t;const r=e.textContent,i=n?u(r,{language:n,ignoreIllegals:!0}):d(r);t.innerHTML=i.value,p(t,n,i.language),t.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(t.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),N("after:highlightElement",{el:t,result:i,text:r})}function m(t){s=oyt(s,t)}const y=()=>{_(),Vmt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){_(),Vmt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function _(){if("loading"===document.readyState)return void(b=!0);const t=document.querySelectorAll(s.cssSelector);t.forEach(g)}function x(){b&&_()}function w(n,r){let a=null;try{a=r(t)}catch(s){if(Wmt("Language definition for '{}' could not be registered.".replace("{}",n)),!i)throw s;Wmt(s),a=o}a.name||(a.name=n),e[n]=a,a.rawDefinition=r.bind(null,t),a.aliases&&S(a.aliases,{languageName:n})}function k(t){delete e[t];for(const e of Object.keys(n))n[e]===t&&delete n[e]}function C(){return Object.keys(e)}function E(t){return t=(t||"").toLowerCase(),e[t]||e[n[t]]}function S(t,{languageName:e}){"string"===typeof t&&(t=[t]),t.forEach((t=>{n[t.toLowerCase()]=e}))}function T(t){const e=E(t);return e&&!e.disableAutodetect}function A(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))})}function M(t){A(t),r.push(t)}function N(t,e){const n=t;r.forEach((function(t){t[n]&&t[n](e)}))}function D(t){return Vmt("10.7.0","highlightBlock will be removed entirely in v12.0"),Vmt("10.7.0","Please use highlightElement now."),g(t)}"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",x,!1),Object.assign(t,{highlight:u,highlightAuto:d,highlightAll:_,highlightElement:g,highlightBlock:D,configure:m,initHighlighting:y,initHighlightingOnLoad:v,registerLanguage:w,unregisterLanguage:k,listLanguages:C,getLanguage:E,registerAliases:S,autoDetection:T,inherit:oyt,addPlugin:M}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=ryt,t.regex={concat:tmt,lookahead:Kgt,either:nmt,optional:Jgt,anyNumberOfTimes:Qgt};for(const O in Dmt)"object"===typeof Dmt[O]&&qgt(Dmt[O]);return Object.assign(t,Dmt),t};var uyt=cyt({}),hyt=uyt;uyt.HighlightJS=uyt,uyt.default=uyt;var fyt=hyt;function dyt(t){const e=t.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:e.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],a=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:e.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},s={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[t.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),t.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ \t].+?([ \t]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},s,o,...r,...i,...a,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},n,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}function pyt(t){const e=t.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n,i]};i.contains.push(o);const s={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},c={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,n]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],h=t.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),f={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},d=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],p=["true","false"],g={match:/(\/[a-z._-]+)+/},m=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],y=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],v=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],b=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:d,literal:p,built_in:[...m,...y,"set","shopt",...v,...b]},contains:[h,t.SHEBANG(),f,c,t.HASH_COMMENT_MODE,a,g,o,s,l,n]}}function gyt(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional(a)+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},d=e.optional(i)+t.IDENT_RE+"\\s*\\(",p=["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],g=["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],m={keyword:p,type:g,literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[h,s,n,t.C_BLOCK_COMMENT_MODE,u,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:m,contains:y.concat([{begin:/\(/,end:/\)/,keywords:m,contains:y.concat(["self"]),relevance:0}]),relevance:0},b={begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:m,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:m,relevance:0},{begin:d,returnBegin:!0,contains:[t.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,t.C_BLOCK_COMMENT_MODE,h]};return{name:"C",aliases:["h"],keywords:m,disableAutodetect:!0,illegal:"</",contains:[].concat(v,b,y,[h,{begin:t.IDENT_RE+"::",keywords:m},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:h,strings:c,keywords:m}}}function myt(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="(?!struct)("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional(a)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},d=e.optional(i)+t.IDENT_RE+"\\s*\\(",p=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],m=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],v=["NULL","false","nullopt","nullptr","true"],b=["_Pragma"],_={type:g,keyword:p,literal:v,built_in:b,_type_hints:m},x={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},w=[x,h,s,n,t.C_BLOCK_COMMENT_MODE,u,c],k={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:w.concat([{begin:/\(/,end:/\)/,keywords:_,contains:w.concat(["self"]),relevance:0}]),relevance:0},C={className:"function",begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:_,relevance:0},{begin:d,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,t.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:_,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(k,C,x,w,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:_,contains:["self",s]},{begin:t.IDENT_RE+"::",keywords:_},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}const yyt=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),vyt=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],byt=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],_yt=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],xyt=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],wyt=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function kyt(t){const e=t.regex,n=yyt(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+_yt.join("|")+")"},{begin:":(:)?("+xyt.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+wyt.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:byt.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+vyt.join("|")+")\\b"}]}}function Cyt(t){const e={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[t.BACKSLASH_ESCAPE,e,n]},{begin:'"""',end:'"""',contains:[t.BACKSLASH_ESCAPE,e,n]},{begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,e,n]},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,e,n]}]};n.contains=[t.C_NUMBER_MODE,r];const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],a=i.map((t=>`${t}?`)),o=["abstract","as","assert","async","await","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","inferface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"],s={keyword:o,built_in:i.concat(a).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/};return{name:"Dart",keywords:s,contains:[r,t.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),t.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}function Eyt(t){const e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Syt(t){const e=["from","maintainer","expose","env","arg","user","onbuild","stopsignal"];return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:e,contains:[t.HASH_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}function Tyt(t){const e=t.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i=["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],a=["false","nil","true"],o={$pattern:n,keyword:i,literal:a},s={className:"subst",begin:/#\{/,end:/\}/,keywords:o},l={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},c=/\\[\s\S]/,u={match:c,scope:"char.escape",relevance:0},h="[/|([{<\"']",f=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],d=t=>({scope:"char.escape",begin:e.concat(/\\/,t),relevance:0}),p={className:"string",begin:"~[a-z](?="+h+")",contains:f.map((e=>t.inherit(e,{contains:[d(e.end),u,s]})))},g={className:"string",begin:"~[A-Z](?="+h+")",contains:f.map((e=>t.inherit(e,{contains:[d(e.end)]})))},m={className:"regex",variants:[{begin:"~r(?="+h+")",contains:f.map((n=>t.inherit(n,{end:e.concat(n.end,/[uismxfU]{0,7}/),contains:[d(n.end),u,s]})))},{begin:"~R(?="+h+")",contains:f.map((n=>t.inherit(n,{end:e.concat(n.end,/[uismxfU]{0,7}/),contains:[d(n.end)]})))}]},y={className:"string",contains:[t.BACKSLASH_ESCAPE,s],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},v={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:n,endsParent:!0})]},b=t.inherit(v,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),_=[y,m,g,p,t.HASH_COMMENT_MODE,b,v,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[y,{begin:r}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},l,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return s.contains=_,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:_}}function Ayt(t){const e=["true","false","iota","nil"],n=["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"],r=["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],i=["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],a={keyword:i,type:r,literal:e,built_in:n};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:t.C_NUMBER_RE+"[i]",relevance:1},t.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}function Myt(t){const e=["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"];return{name:"Gradle",case_insensitive:!0,keywords:e,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.REGEXP_MODE]}}function Nyt(t,e={}){return e.variants=t,e}function Dyt(t){const e=t.regex,n="[A-Za-z0-9_$]+",r=Nyt([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),i={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},a=Nyt([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),o=Nyt([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),s={match:[/(class|interface|trait|enum|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}},l=["byte","short","char","int","long","boolean","float","double","void"],c=["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof"];return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:l,keyword:c},contains:[t.SHEBANG({binary:"groovy",relevance:10}),r,o,i,a,s,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:n+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[r,o,i,a,"self"]},{className:"symbol",begin:"^[ \t]*"+e.lookahead(n+":"),excludeBegin:!0,end:n+":",relevance:0}],illegal:/#|<\//}}var Oyt="[0-9](_*[0-9])*",Lyt=`\\.(${Oyt})`,Byt="[0-9a-fA-F](_*[0-9a-fA-F])*",Iyt={className:"number",variants:[{begin:`(\\b(${Oyt})((${Lyt})|\\.)?|(${Lyt}))[eE][+-]?(${Oyt})[fFdD]?\\b`},{begin:`\\b(${Oyt})((${Lyt})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Lyt})[fFdD]?\\b`},{begin:`\\b(${Oyt})[fFdD]\\b`},{begin:`\\b0[xX]((${Byt})\\.?|(${Byt})?\\.(${Byt}))[pP][+-]?(${Oyt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Byt})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Ryt(t,e,n){return-1===n?"":t.replace(e,(r=>Ryt(t,e,n-1)))}function Fyt(t){const e=t.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+Ryt("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),i=["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed"],a=["super","this"],o=["false","true","null"],s=["char","boolean","long","float","int","byte","short","double"],l={keyword:i,literal:o,type:s,built_in:a},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[e.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[u,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,Iyt,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},Iyt,c]}}const Pyt="[A-Za-z$_][0-9A-Za-z$_]*",zyt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],qyt=["true","false","null","undefined","NaN","Infinity"],jyt=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Hyt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Uyt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],$yt=["arguments","this","super","console","window","document","localStorage","module","global"],Wyt=[].concat(Uyt,jyt,Hyt);function Yyt(t){const e=t.regex,n=(t,{after:e})=>{const n="</"+t[0].slice(1),r=t.input.indexOf(n,e);return-1!==r},r=Pyt,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(t,e)=>{const r=t[0].length+t.index,i=t.input[r];if("<"===i||","===i)return void e.ignoreMatch();let a;">"===i&&(n(t,{after:r})||e.ignoreMatch());const o=t.input.substr(r);(a=o.match(/^\s+extends\s+/))&&0===a.index&&e.ignoreMatch()}},s={$pattern:Pyt,keyword:zyt,literal:qyt,built_in:Wyt,"variable.language":$yt},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},p={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,f]},m=t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),y={className:"comment",variants:[m,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},v=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,p,g,h];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const b=[].concat(y,f.contains),_=b.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(b)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_},w={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...jyt,...Hyt]}},C={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},E={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function T(t){return e.concat("(?!",t.join("|"),")")}const A={match:e.concat(/\b/,T([...Uyt,"super"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},M={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},N={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},D="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",O={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(D)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:k},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),C,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,p,g,y,h,k,{className:"attr",begin:r+e.lookahead(":"),relevance:0},O,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[y,t.REGEXP_MODE,{className:"function",begin:D,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},E,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},M,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},A,S,w,N,{match:/\$[(.]/}]}}function Vyt(t){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r={beginKeywords:["true","false","null"].join(" ")};return{name:"JSON",contains:[e,n,t.QUOTE_STRING_MODE,r,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Gyt="[0-9](_*[0-9])*",Xyt=`\\.(${Gyt})`,Zyt="[0-9a-fA-F](_*[0-9a-fA-F])*",Kyt={className:"number",variants:[{begin:`(\\b(${Gyt})((${Xyt})|\\.)?|(${Xyt}))[eE][+-]?(${Gyt})[fFdD]?\\b`},{begin:`\\b(${Gyt})((${Xyt})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Xyt})[fFdD]?\\b`},{begin:`\\b(${Gyt})[fFdD]\\b`},{begin:`\\b0[xX]((${Zyt})\\.?|(${Zyt})?\\.(${Zyt}))[pP][+-]?(${Gyt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Zyt})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Qyt(t){const e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(o,{className:"string"})]}]},c=Kyt,u=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=h;return f.variants[1].contains=[h],h.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,u,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,t.C_LINE_COMMENT_MODE,u],relevance:0},t.C_LINE_COMMENT_MODE,u,s,l,o,t.C_NUMBER_MODE]},u]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},s,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},c]}}function Jyt(t){const e="\\[=*\\[",n="\\]=*\\]",r={begin:e,end:n,contains:["self"]},i=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:n,contains:[r],relevance:5}])}}function tvt(t){const e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,e]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[e]},i={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[e]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,e,n,r,i,a,o]}}function evt(t){const e=t.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]},h=t.inherit(c,{contains:[]}),f=t.inherit(u,{contains:[]});c.contains.push(f),u.contains.push(h);let d=[n,l];[c,u,h,f].forEach((t=>{t.contains=t.contains.concat(d)})),d=d.concat(c,u);const p={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:d},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:d}]}]},g={className:"quote",begin:"^>\\s+",contains:d,end:"$"};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[p,n,a,c,u,g,i,r,l,o]}}function nvt(t){const e=t.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:e.concat(/[$@]/,t.UNDERSCORE_IDENT_RE)}]},r=["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"],i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:r},relevance:0,illegal:"=>",contains:[t.HASH_COMMENT_MODE,{className:"string",contains:[t.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[t.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[t.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:e.concat(t.UNDERSCORE_IDENT_RE+e.lookahead(/\s+\{/)),relevance:0},{begin:e.lookahead(t.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:t.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function rvt(t){const e={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r=["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"],i=["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],a=["false","true","FALSE","TRUE","nil","YES","NO","NULL"],o=["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],s={"variable.language":["this","super"],$pattern:n,keyword:i,literal:a,built_in:o,type:r},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}function ivt(t){const e=t.regex,n=/(?![A-Za-z0-9])(?![$])/,r=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a={scope:"variable",match:"\\$+"+r},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=t.inherit(t.APOS_STRING_MODE,{illegal:null}),c=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(s)}),u=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(s)}),h="[ \t\n]",f={scope:"string",variants:[c,l,u]},d={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},p=["false","null","true"],g=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],m=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],y=t=>{const e=[];return t.forEach((t=>{e.push(t),t.toLowerCase()===t?e.push(t.toUpperCase()):e.push(t.toLowerCase())})),e},v={keyword:g,literal:y(p),built_in:m},b=t=>t.map((t=>t.replace(/\|\d+$/,""))),_={variants:[{match:[/new/,e.concat(h,"+"),e.concat("(?!",b(m).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},x=e.concat(r,"\\b(?!\\()"),w={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,e.concat(/::/,e.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[i,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},k={scope:"attr",match:e.concat(r,e.lookahead(":"),e.lookahead(/(?!::)/))},C={relevance:0,begin:/\(/,end:/\)/,keywords:v,contains:[k,a,w,t.C_BLOCK_COMMENT_MODE,f,d,_]},E={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",b(g).join("\\b|"),"|",b(m).join("\\b|"),"\\b)"),r,e.concat(h,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[C]};C.contains.push(E);const S=[k,w,t.C_BLOCK_COMMENT_MODE,f,d,_],T={begin:e.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:p,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:p,keyword:["new","array"]},contains:["self",...S]},...S,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:v,contains:[T,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},a,E,w,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:v,contains:["self",a,w,t.C_BLOCK_COMMENT_MODE,f,d]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},f,d]}}function avt(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function ovt(t){const e="[ \\t\\f]*",n="[ \\t\\f]+",r=e+"[:=]"+e,i=n,a="("+r+"|"+i+")",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:a,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[t.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:o+r},{begin:o+i}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:s},{className:"attr",begin:o+e+"$"}]}}function svt(t){const e=t.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i=["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],a=["__debug__","Ellipsis","False","None","NotImplemented","True"],o=["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:i,literal:a,type:o},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},h={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,u,c]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",d=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,p=`\\b|${r.join("|")}`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${d}))[eE][+-]?(${f})[jJ]?(?=${p})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${f})[jJ](?=${p})`}]},m={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,g,h,t.HASH_COMMENT_MODE]}]};return c.contains=[h,g,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|->|\?)|=>/,contains:[l,g,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},h,m,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,y,h]}]}}function lvt(t){const e=t.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=e.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__"],"variable.language":["self","super"],keyword:["alias","and","attr_accessor","attr_reader","attr_writer","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","include","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield"],built_in:["proc","lambda"],literal:["true","false","nil"]},o={className:"doctag",begin:"@[A-Za-z]+"},s={begin:"#<",end:">"},l=[t.COMMENT("#","$",{contains:[o]}),t.COMMENT("^=begin","^=end",{contains:[o],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},u={className:"string",contains:[t.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,c]})]}]},h="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",d={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},p={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},g={variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},m={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},y={match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[p]},v={relevance:0,match:[i,/\.new[ (]/],scope:{1:"title.class"}},b=[u,g,v,m,y,{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(s,l),relevance:0}].concat(s,l);c.contains=b,p.contains=b;const _="[>?]>",x="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",w="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",k=[{begin:/^\s*=>/,starts:{end:"$",contains:b}},{className:"meta.prompt",begin:"^("+_+"|"+x+"|"+w+")(?=[ ])",starts:{end:"$",keywords:a,contains:b}}];return l.unshift(s),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(k).concat(l).concat(b)}}function cvt(t){const e=t.regex,n={className:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!let\b)/,t.IDENT_RE,e.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],a=["true","false","Some","None","Ok","Err"],o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bin!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:s,keyword:i,literal:a,built_in:o},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{begin:[/fn/,/\s+/,t.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,t.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,t.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,t.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,t.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:o}},{className:"punctuation",begin:"->"},n]}}function uvt(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function hvt(t){const e=t.regex,n=t.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],d=u,p=[...c,...l].filter((t=>!u.includes(t))),g={className:"variable",begin:/@[a-z0-9]+/},m={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={begin:e.concat(/\b/,e.either(...d),/\s*\(/),relevance:0,keywords:{built_in:d}};function v(t,{exceptions:e,when:n}={}){const r=n;return e=e||[],t.map((t=>t.match(/\|\d+$/)||e.includes(t)?t:r(t)?`${t}|0`:t))}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(p,{when:t=>t.length<3}),literal:a,type:s,built_in:h},contains:[{begin:e.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:p.concat(f),literal:a,type:s}},{className:"type",begin:e.either(...o)},y,g,r,i,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,m]}}function fvt(t){return t?"string"===typeof t?t:t.source:null}function dvt(t){return pvt("(?=",t,")")}function pvt(...t){const e=t.map((t=>fvt(t))).join("");return e}function gvt(t){const e=t[t.length-1];return"object"===typeof e&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function mvt(...t){const e=gvt(t),n="("+(e.capture?"":"?:")+t.map((t=>fvt(t))).join("|")+")";return n}const yvt=t=>pvt(/\b/,t,/\w$/.test(t)?/\b/:/\B/),vvt=["Protocol","Type"].map(yvt),bvt=["init","self"].map(yvt),_vt=["Any","Self"],xvt=["actor","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],wvt=["false","nil","true"],kvt=["assignment","associativity","higherThan","left","lowerThan","none","right"],Cvt=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],Evt=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Svt=mvt(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Tvt=mvt(Svt,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Avt=pvt(Svt,Tvt,"*"),Mvt=mvt(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Nvt=mvt(Mvt,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Dvt=pvt(Mvt,Nvt,"*"),Ovt=pvt(/[A-Z]/,Nvt,"*"),Lvt=["autoclosure",pvt(/convention\(/,mvt("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",pvt(/objc\(/,Dvt,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],Bvt=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Ivt(t){const e={match:/\s+/,relevance:0},n=t.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[t.C_LINE_COMMENT_MODE,n],i={match:[/\./,mvt(...vvt,...bvt)],className:{2:"keyword"}},a={match:pvt(/\./,mvt(...xvt)),relevance:0},o=xvt.filter((t=>"string"===typeof t)).concat(["_|0"]),s=xvt.filter((t=>"string"!==typeof t)).concat(_vt).map(yvt),l={variants:[{className:"keyword",match:mvt(...s,...bvt)}]},c={$pattern:mvt(/\b\w+/,/#\w+/),keyword:o.concat(Cvt),literal:wvt},u=[i,a,l],h={match:pvt(/\./,mvt(...Evt)),relevance:0},f={className:"built_in",match:pvt(/\b/,mvt(...Evt),/(?=\()/)},d=[h,f],p={match:/->/,relevance:0},g={className:"operator",relevance:0,variants:[{match:Avt},{match:`\\.(\\.|${Tvt})+`}]},m=[p,g],y="([0-9]_*)+",v="([0-9a-fA-F]_*)+",b={className:"number",relevance:0,variants:[{match:`\\b(${y})(\\.(${y}))?([eE][+-]?(${y}))?\\b`},{match:`\\b0x(${v})(\\.(${v}))?([pP][+-]?(${y}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},_=(t="")=>({className:"subst",variants:[{match:pvt(/\\/,t,/[0\\tnr"']/)},{match:pvt(/\\/,t,/u\{[0-9a-fA-F]{1,8}\}/)}]}),x=(t="")=>({className:"subst",match:pvt(/\\/,t,/[\t ]*(?:[\r\n]|\r\n)/)}),w=(t="")=>({className:"subst",label:"interpol",begin:pvt(/\\/,t,/\(/),end:/\)/}),k=(t="")=>({begin:pvt(t,/"""/),end:pvt(/"""/,t),contains:[_(t),x(t),w(t)]}),C=(t="")=>({begin:pvt(t,/"/),end:pvt(/"/,t),contains:[_(t),w(t)]}),E={className:"string",variants:[k(),k("#"),k("##"),k("###"),C(),C("#"),C("##"),C("###")]},S={match:pvt(/`/,Dvt,/`/)},T={className:"variable",match:/\$\d+/},A={className:"variable",match:`\\$${Nvt}+`},M=[S,T,A],N={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Bvt,contains:[...m,b,E]}]}},D={className:"keyword",match:pvt(/@/,mvt(...Lvt))},O={className:"meta",match:pvt(/@/,Dvt)},L=[N,D,O],B={match:dvt(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:pvt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Nvt,"+")},{className:"type",match:Ovt,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:pvt(/\s+&\s+/,dvt(Ovt)),relevance:0}]},I={begin:/</,end:/>/,keywords:c,contains:[...r,...u,...L,p,B]};B.contains.push(I);const R={match:pvt(Dvt,/\s*:/),keywords:"_|0",relevance:0},F={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",R,...r,...u,...d,...m,b,E,...M,...L,B]},P={begin:/</,end:/>/,contains:[...r,B]},z={begin:mvt(dvt(pvt(Dvt,/\s*:/)),dvt(pvt(Dvt,/\s+/,Dvt,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Dvt}]},q={begin:/\(/,end:/\)/,keywords:c,contains:[z,...r,...u,...m,b,E,...L,B,F],endsParent:!0,illegal:/["']/},j={match:[/func/,/\s+/,mvt(S.match,Dvt,Avt)],className:{1:"keyword",3:"title.function"},contains:[P,q,e],illegal:[/\[/,/%/]},H={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[P,q,e],illegal:/\[|%/},U={match:[/operator/,/\s+/,Avt],className:{1:"keyword",3:"title"}},$={begin:[/precedencegroup/,/\s+/,Ovt],className:{1:"keyword",3:"title"},contains:[B],keywords:[...kvt,...wvt],end:/}/};for(const W of E.variants){const t=W.contains.find((t=>"interpol"===t.label));t.keywords=c;const e=[...u,...d,...m,b,E,...M];t.contains=[...e,{begin:/\(/,end:/\)/,contains:["self",...e]}]}return{name:"Swift",keywords:c,contains:[...r,j,H,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:c,contains:[t.inherit(t.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...u]},U,$,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},...u,...d,...m,b,E,...M,...L,B,F]}}const Rvt="[A-Za-z$_][0-9A-Za-z$_]*",Fvt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Pvt=["true","false","null","undefined","NaN","Infinity"],zvt=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],qvt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],jvt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Hvt=["arguments","this","super","console","window","document","localStorage","module","global"],Uvt=[].concat(jvt,zvt,qvt);function $vt(t){const e=t.regex,n=(t,{after:e})=>{const n="</"+t[0].slice(1),r=t.input.indexOf(n,e);return-1!==r},r=Rvt,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(t,e)=>{const r=t[0].length+t.index,i=t.input[r];if("<"===i||","===i)return void e.ignoreMatch();let a;">"===i&&(n(t,{after:r})||e.ignoreMatch());const o=t.input.substr(r);(a=o.match(/^\s+extends\s+/))&&0===a.index&&e.ignoreMatch()}},s={$pattern:Rvt,keyword:Fvt,literal:Pvt,built_in:Uvt,"variable.language":Hvt},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},p={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,f]},m=t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),y={className:"comment",variants:[m,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},v=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,p,g,h];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const b=[].concat(y,f.contains),_=b.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(b)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_},w={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...zvt,...qvt]}},C={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},E={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function T(t){return e.concat("(?!",t.join("|"),")")}const A={match:e.concat(/\b/,T([...jvt,"super"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},M={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},N={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},D="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",O={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(D)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:k},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),C,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,p,g,y,h,k,{className:"attr",begin:r+e.lookahead(":"),relevance:0},O,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[y,t.REGEXP_MODE,{className:"function",begin:D,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},E,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},M,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},A,S,w,N,{match:/\$[(.]/}]}}function Wvt(t){const e=$vt(t),n=Rvt,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Rvt,keyword:Fvt.concat(s),literal:Pvt,built_in:Uvt.concat(r),"variable.language":Hvt},c={className:"meta",begin:"@"+n},u=(t,e,n)=>{const r=t.contains.findIndex((t=>t.label===e));if(-1===r)throw new Error("can not find mode to replace");t.contains.splice(r,1,n)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,a]),u(e,"shebang",t.SHEBANG()),u(e,"use_strict",o);const h=e.contains.find((t=>"func.def"===t.label));return h.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx"]}),e}function Yvt(t){const e=t.regex,n=e.concat(/[A-Z_]/,e.optional(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),r=/[A-Za-z0-9._:-]+/,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(a,{begin:/\(/,end:/\)/}),s=t.inherit(t.APOS_STRING_MODE,{className:"string"}),l=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,l,s]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Vvt(t){const e="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,i]},o=t.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",u="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",h={className:"number",begin:"\\b"+s+l+c+u+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},d={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},p={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},g=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},h,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},d,p,a],m=[...g];return m.pop(),m.push(o),f.contains=m,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:g}}fyt.registerLanguage("asciidoc",dyt),fyt.registerLanguage("bash",pyt),fyt.registerLanguage("c",gyt),fyt.registerLanguage("cpp",myt),fyt.registerLanguage("css",kyt),fyt.registerLanguage("dart",Cyt),fyt.registerLanguage("diff",Eyt),fyt.registerLanguage("dockerfile",Syt),fyt.registerLanguage("elixir",Tyt),fyt.registerLanguage("go",Ayt),fyt.registerLanguage("gradle",Myt),fyt.registerLanguage("groovy",Dyt),fyt.registerLanguage("java",Fyt),fyt.registerLanguage("javascript",Yyt),fyt.registerLanguage("json",Vyt),fyt.registerLanguage("kotlin",Qyt),fyt.registerLanguage("lua",Jyt),fyt.registerLanguage("makefile",tvt),fyt.registerLanguage("markdown",evt),fyt.registerLanguage("nginx",nvt),fyt.registerLanguage("objectivec",rvt),fyt.registerLanguage("php",ivt),fyt.registerLanguage("plaintext",avt),fyt.registerLanguage("properties",ovt),fyt.registerLanguage("python",svt),fyt.registerLanguage("ruby",lvt),fyt.registerLanguage("rust",cvt),fyt.registerLanguage("shell",uvt),fyt.registerLanguage("sql",hvt),fyt.registerLanguage("swift",Ivt),fyt.registerLanguage("typescript",Wvt),fyt.registerLanguage("xml",Yvt),fyt.registerLanguage("yaml",Vvt);const Gvt=Rgt.renderer.rules.link_open||function(t,e,n,r,i){return i.renderToken(t,e,n)};Rgt.renderer.rules.link_open=function(t,e,n,r,i){const a=t[e].attrIndex("href");if(t[e].attrs[a][1].startsWith("#"))return Gvt(t,e,n,r,i);const o=t[e].attrIndex("target");return o<0?t[e].attrPush(["target","_blank"]):t[e].attrs[o][1]="_blank",Gvt(t,e,n,r,i)};var Xvt={data(){return{markdownIt:Rgt}},methods:{$render(t,e){const n=Rgt.render(t);e(n)},renderHighlight(){document.querySelectorAll("pre code").forEach((t=>{fyt.highlightElement(t)}))}}},Zvt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1216 1312"}},[n("path",{attrs:{fill:"currentColor",d:"M1202 1066q0 40-28 68l-136 136q-28 28-68 28t-68-28L608 976l-294 294q-28 28-68 28t-68-28L42 1134q-28-28-28-68t28-68l294-294L42 410q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294l294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68L880 704l294 294q28 28 28 68z"}})])},Kvt={render:Zvt,name:"fa-times"},Qvt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M384 1408h768v-384H384v384zm896 0h128V512q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28H352q-40 0-68-28t-28-68V128H128v1280h128V992q0-40 28-68t68-28h832q40 0 68 28t28 68v416zM896 480V160q0-13-9.5-22.5T864 128H672q-13 0-22.5 9.5T640 160v320q0 13 9.5 22.5T672 512h192q13 0 22.5-9.5T896 480zm640 32v928q0 40-28 68t-68 28H96q-40 0-68-28t-28-68V96q0-40 28-68T96 0h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"}})])},Jvt={render:Qvt,name:"fa-floppy-o"},tbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M1536 128v448q0 26-19 45t-45 19h-448q-42 0-59-40q-17-39 14-69l138-138Q969 256 768 256q-104 0-198.5 40.5T406 406T296.5 569.5T256 768t40.5 198.5T406 1130t163.5 109.5T768 1280q119 0 225-52t179-147q7-10 23-12q15 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5T768 1536q-156 0-298-61t-245-164t-164-245T0 768t61-298t164-245T470 61T768 0q147 0 284.5 55.5T1297 212l130-129q29-31 70-14q39 17 39 59z"}})])},ebt={render:tbt,name:"fa-repeat"},nbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M1536 768q0 156-61 298t-164 245t-245 164t-298 61q-172 0-327-72.5T177 1259q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9q16 2 23 12q73 95 179 147t225 52q104 0 198.5-40.5T1130 1130t109.5-163.5T1280 768t-40.5-198.5T1130 406T966.5 296.5T768 256q-98 0-188 35.5T420 393l137 138q31 30 14 69q-17 40-59 40H64q-26 0-45-19T0 576V128q0-42 40-59q39-17 69 14l130 129Q346 111 483.5 55.5T768 0q156 0 298 61t245 164t164 245t61 298z"}})])},rbt={render:nbt,name:"fa-undo"},ibt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1664 1408"}},[n("path",{attrs:{fill:"currentColor",d:"M512 1248v-192q0-14-9-23t-23-9H160q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384V672q0-14-9-23t-23-9H160q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9H672q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM512 480V288q0-14-9-23t-23-9H160q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384V672q0-14-9-23t-23-9H672q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768V288q0-14-9-23t-23-9H672q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384V672q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384V288q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47H160q-66 0-113-47T0 1248V160Q0 94 47 47T160 0h1344q66 0 113 47t47 113z"}})])},abt={render:ibt,name:"fa-table"},obt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1856 1408"}},[n("path",{attrs:{fill:"currentColor",d:"m585 1143l-50 50q-10 10-23 10t-23-10L23 727q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23L192 704l393 393q10 10 10 23t-10 23zM1176 76L803 1367q-4 13-15.5 19.5T764 1389l-62-17q-13-4-19.5-15.5T680 1332L1053 41q4-13 15.5-19.5T1092 19l62 17q13 4 19.5 15.5T1176 76zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393l-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"}})])},sbt={render:obt,name:"fa-code"},lbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1920 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M640 448q0 80-56 136t-136 56t-136-56t-56-136t56-136t136-56t136 56t56 136zm1024 384v448H256v-192l320-320l160 160l512-512zm96-704H160q-13 0-22.5 9.5T128 160v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5V160q0-13-9.5-22.5T1760 128zm160 32v1216q0 66-47 113t-113 47H160q-66 0-113-47T0 1376V160Q0 94 47 47T160 0h1600q66 0 113 47t47 113z"}})])},cbt={render:lbt,name:"fa-picture-o"},ubt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1664 1664"}},[n("path",{attrs:{fill:"currentColor",d:"M1456 1216q0-40-28-68l-208-208q-28-28-68-28q-42 0-72 32q3 3 19 18.5t21.5 21.5t15 19t13 25.5t3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13t-19-15t-21.5-21.5t-18.5-19q-33 31-33 73q0 40 28 68l206 207q27 27 68 27q40 0 68-26l147-146q28-28 28-67zM753 511q0-40-28-68L519 236q-28-28-68-28q-39 0-68 27L236 381q-28 28-28 67q0 40 28 68l208 208q27 27 68 27q42 0 72-31q-3-3-19-18.5T543.5 680t-15-19t-13-25.5T512 608q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13t19 15t21.5 21.5t18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83q-121 0-204-85l-206-207q-83-83-83-203q0-123 88-209l-88-88q-86 88-208 88q-120 0-204-84L100 652q-84-84-84-204t85-203L248 99q83-83 203-83q121 0 204 85l206 207q83 83 83 203q0 123-88 209l88 88q86-88 208-88q120 0 204 84l208 208q84 84 84 204z"}})])},hbt={render:ubt,name:"fa-link"},fbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1792 1408"}},[n("path",{attrs:{fill:"currentColor",d:"M384 1216q0 80-56 136t-136 56t-136-56t-56-136t56-136t136-56t136 56t56 136zm0-512q0 80-56 136t-136 56t-136-56T0 704t56-136t136-56t136 56t56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5H544q-13 0-22.5-9.5T512 1312v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zM384 192q0 80-56 136t-136 56t-136-56T0 192T56 56T192 0t136 56t56 136zm1408 416v192q0 13-9.5 22.5T1760 832H544q-13 0-22.5-9.5T512 800V608q0-13 9.5-22.5T544 576h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5T1760 320H544q-13 0-22.5-9.5T512 288V96q0-13 9.5-22.5T544 64h1216q13 0 22.5 9.5T1792 96z"}})])},dbt={render:fbt,name:"fa-list-ul"},pbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1792 1792"}},[n("path",{attrs:{fill:"currentColor",d:"M381 1620q0 80-54.5 126T191 1792q-106 0-172-66l57-88q49 45 106 45q29 0 50.5-14.5T254 1626q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54t37-38.5v-1q-16 0-48.5 1t-48.5 1v53H32v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159H21q-6-36-6-54q0-51 23.5-93T95 937t66-47.5t56.5-43.5t23.5-45q0-25-14.5-38.5T187 749q-46 0-81 58l-85-59q24-51 71.5-79.5T198 640q73 0 123 41.5T371 794q0 50-34 91.5T262 950t-75.5 50.5T151 1053h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5H544q-13 0-22.5-9.5T512 1504v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zM384 413v99H49v-99h107q0-41 .5-121.5T157 170v-12h-2q-8 17-50 54l-71-76L170 9h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5H544q-13 0-22.5-9.5T512 992V800q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5T1760 512H544q-13 0-22.5-9.5T512 480V288q0-13 9.5-22.5T544 256h1216q13 0 22.5 9.5t9.5 22.5z"}})])},gbt={render:pbt,name:"fa-list-ol"},mbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1664 1408"}},[n("path",{attrs:{fill:"currentColor",d:"M768 832v384q0 80-56 136t-136 56H192q-80 0-136-56T0 1216V512q0-104 40.5-198.5T150 150T313.5 40.5T512 0h64q26 0 45 19t19 45v128q0 26-19 45t-45 19h-64q-106 0-181 75t-75 181v32q0 40 28 68t68 28h224q80 0 136 56t56 136zm896 0v384q0 80-56 136t-136 56h-384q-80 0-136-56t-56-136V512q0-104 40.5-198.5T1046 150t163.5-109.5T1408 0h64q26 0 45 19t19 45v128q0 26-19 45t-45 19h-64q-106 0-181 75t-75 181v32q0 40 28 68t68 28h224q80 0 136 56t56 136z"}})])},ybt={render:mbt,name:"fa-quote-left"},vbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M897 1113v167H649l-159-252l-24-42q-8-9-11-21h-3q-1 3-2.5 6.5t-3.5 8t-3 6.5q-10 20-25 44l-155 250H5v-167h128l197-291l-185-272H8V382h276l139 228q2 4 23 42q8 9 11 21h3q3-9 11-21l25-42l140-228h257v168H768L584 817l204 296h109zm639 217v206h-514l-4-27q-3-45-3-46q0-64 26-117t65-86.5t84-65t84-54.5t65-54t26-64q0-38-29.5-62.5T1265 935q-51 0-97 39q-14 11-36 38l-105-92q26-37 63-66q80-65 188-65q110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86t-99.5 62.5t-87 63t-41 73h232v-80h126z"}})])},bbt={render:vbt,name:"fa-subscript"},_bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1408"}},[n("path",{attrs:{fill:"currentColor",d:"M897 1241v167H649l-159-252l-24-42q-8-9-11-21h-3q-1 3-2.5 6.5t-3.5 8t-3 6.5q-10 20-25 44l-155 250H5v-167h128l197-291l-185-272H8V510h276l139 228q2 4 23 42q8 9 11 21h3q3-9 11-21l25-42l140-228h257v168H768L584 945l204 296h109zm637-679v206h-514l-3-27q-4-28-4-46q0-64 26-117t65-86.5t84-65t84-54.5t65-54t26-64q0-38-29.5-62.5T1263 167q-51 0-97 39q-14 11-36 38l-105-92q26-37 63-66q83-65 188-65q110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5T1354 477t-82 50.5t-65.5 51.5t-30.5 63h232v-80h126z"}})])},xbt={render:_bt,name:"fa-superscript"},wbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1792 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M1760 768q14 0 23 9t9 23v64q0 14-9 23t-23 9H32q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zM483 704q-28-35-51-80q-48-98-48-188q0-181 134-309Q651 0 911 0q50 0 167 19q66 12 177 48q10 38 21 118q14 123 14 183q0 18-5 45l-12 3l-84-6l-14-2q-50-149-103-205q-88-91-210-91q-114 0-182 59q-67 58-67 146q0 73 66 140t279 129q69 20 173 66q58 28 95 52H483zm507 256h411q7 39 7 92q0 111-41 212q-23 56-71 104q-37 35-109 81q-80 48-153 66q-80 21-203 21q-114 0-195-23l-140-40q-57-16-72-28q-8-8-8-22v-13q0-108-2-156q-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56t12.5 27q35 57 80 94q43 36 105 57q59 22 132 22q64 0 139-27q77-26 122-86q47-61 47-129q0-84-81-157q-34-29-137-71z"}})])},kbt={render:wbt,name:"fa-strikethrough"},Cbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M48 95q-37-2-45-4L0 3q13-1 40-1q60 0 112 4q132 7 166 7q86 0 168-3q116-4 146-5q56 0 86-2l-1 14l2 64v9q-60 9-124 9q-60 0-79 25q-13 14-13 132q0 13 .5 32.5t.5 25.5l1 229l14 280q6 124 51 202q35 59 96 92q88 47 177 47q104 0 191-28q56-18 99-51q48-36 65-64q36-56 53-114q21-73 21-229q0-79-3.5-128t-11-122.5T1244 268l-4-59q-5-67-24-88q-34-35-77-34l-100 2l-14-3l2-86h84l205 10q76 3 196-10l18 2q6 38 6 51q0 7-4 31q-45 12-84 13q-73 11-79 17q-15 15-15 41q0 7 1.5 27t1.5 31q8 19 22 396q6 195-15 304q-15 76-41 122q-38 65-112 123q-75 57-182 89q-109 33-255 33q-167 0-284-46q-119-47-179-122q-61-76-83-195q-16-80-16-237V347q0-188-17-213q-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9H32q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"}})])},Ebt={render:Cbt,name:"fa-underline"},Sbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1728 1536"}},[n("path",{attrs:{fill:"currentColor",d:"m959 896l64-256H769l-64 256h254zm768-504l-56 224q-7 24-31 24h-327l-64 256h311q15 0 25 12q10 14 6 28l-56 224q-5 24-31 24h-327l-81 328q-7 24-31 24H841q-16 0-26-12q-9-12-6-28l78-312H633l-81 328q-7 24-31 24H296q-15 0-25-12q-9-12-6-28l78-312H32q-15 0-25-12q-9-12-6-28l56-224q7-24 31-24h327l64-256H168q-15 0-25-12q-10-14-6-28l56-224q5-24 31-24h327l81-328q7-24 32-24h224q15 0 25 12q9 12 6 28l-78 312h254l81-328q7-24 32-24h224q15 0 25 12q9 12 6 28l-78 312h311q15 0 25 12q9 12 6 28z"}})])},Tbt={render:Sbt,name:"fa-hashtag"},Abt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1536"}},[n("path",{attrs:{fill:"currentColor",d:"m0 1534l17-85q22-7 61.5-16.5t72-19T210 1390q28-35 41-101q1-7 62-289t114-543.5T479 160v-25q-24-13-54.5-18.5t-69.5-8t-58-5.5L316 0q33 2 120 6.5t149.5 7T706 16q48 0 98.5-2.5t121-7T1024 0q-5 39-19 89q-30 10-101.5 28.5T795 151q-8 19-14 42.5t-9 40t-7.5 45.5t-6.5 42q-27 148-87.5 419.5T593 1096q-2 9-13 58t-20 90t-16 83.5t-6 57.5l1 18q17 4 185 31q-3 44-16 99q-11 0-32.5 1.5T643 1536q-29 0-87-10t-86-10q-138-2-206-2q-51 0-143 9T0 1534z"}})])},Mbt={render:Abt,name:"fa-italic"},Nbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1408 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M555 1393q74 32 140 32q376 0 376-335q0-114-41-180q-27-44-61.5-74T901 789.5t-80.5-25t-84-10.5t-94.5-2q-73 0-101 10q0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5t4.5 83.5t12 66.5zm-14-746q42 7 109 7q82 0 143-13t110-44.5t74.5-89.5t25.5-142q0-70-29-122.5t-79-82T787 117t-124-14q-50 0-130 13q0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zM0 1536l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5t5.5-32.5t3-37.5t.5-34V1169q0-982-22-1025q-4-8-22-14.5t-44.5-11t-49.5-7t-48.5-4.5T6 104L2 21q98-2 340-11.5T715 0q23 0 68 .5t68 .5q70 0 136.5 13T1116 56t108 71t74 104.5t28 137.5q0 52-16.5 95.5t-39 72T1206 594t-73 45t-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5t-138 85.5T978 1505t-176 14q-44 0-132-3t-132-3q-106 0-307 11T0 1536z"}})])},Dbt={render:Nbt,name:"fa-bold"},Obt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-left-item"},[t.toolbars.bold?n("button",{staticClass:"op-icon",attrs:{title:"粗体 ("+t.ctrlKeyName+" + B)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("bold")}}},[n(Dbt)],1):t._e(),t.toolbars.italic?n("button",{staticClass:"op-icon",attrs:{title:"斜体 ("+t.ctrlKeyName+" + I)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("italic")}}},[n(Mbt)],1):t._e(),t.toolbars.header?n("div",{staticClass:"op-icon dropdown dropdown-wrapper",class:{selected:t.s_header_dropdown_open},attrs:{title:"标题 ("+t.ctrlKeyName+" + H)","aria-hidden":"true",type:"button"},on:{mouseenter:t.$mouseenter_header_dropdown,mouseleave:t.$mouseleave_header_dropdown}},[n(Tbt),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.s_header_dropdown_open,expression:"s_header_dropdown_open"}],staticClass:"op-header popup-dropdown",class:{transition:t.transition},on:{mouseenter:t.$mouseenter_header_dropdown,mouseleave:t.$mouseleave_header_dropdown}},[n("div",{staticClass:"dropdown-item",attrs:{title:"#"},on:{click:function(e){return e.stopPropagation(),t.$click_header("header",1)}}},[n("span",[t._v("一级标题")])]),n("div",{staticClass:"dropdown-item",attrs:{title:"## "},on:{click:function(e){return e.stopPropagation(),t.$click_header("header",2)}}},[n("span",[t._v("二级标题")])]),n("div",{staticClass:"dropdown-item",attrs:{title:"### "},on:{click:function(e){return e.stopPropagation(),t.$click_header("header",3)}}},[n("span",[t._v("三级标题")])]),n("div",{staticClass:"dropdown-item",attrs:{title:"#### "},on:{click:function(e){return e.stopPropagation(),t.$click_header("header",4)}}},[n("span",[t._v("四级标题")])]),n("div",{staticClass:"dropdown-item",attrs:{title:"##### "},on:{click:function(e){return e.stopPropagation(),t.$click_header("header",5)}}},[n("span",[t._v("五级标题")])]),n("div",{staticClass:"dropdown-item",attrs:{title:"###### "},on:{click:function(e){return e.stopPropagation(),t.$click_header("header",6)}}},[n("span",[t._v("六级标题")])])])])],1):t._e(),t.toolbars.header||t.toolbars.italic||t.toolbars.bold?n("span",{staticClass:"op-icon-divider"}):t._e(),t.toolbars.underline?n("button",{staticClass:"op-icon",attrs:{title:"下划线 ("+t.ctrlKeyName+" + U)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("underline")}}},[n(Ebt)],1):t._e(),t.toolbars.strikethrough?n("button",{staticClass:"op-icon",attrs:{title:"中划线 ("+t.ctrlKeyName+" + Shift + D)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("strikethrough")}}},[n(kbt)],1):t._e(),t.toolbars.superscript?n("button",{staticClass:"op-icon",attrs:{title:"上角标 ("+t.ctrlKeyName+" + "+t.altKeyName+" + S)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("superscript")}}},[n(xbt)],1):t._e(),t.toolbars.subscript?n("button",{staticClass:"op-icon",attrs:{title:"下角标 ("+t.ctrlKeyName+" + "+t.altKeyName+" + S)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("subscript")}}},[n(bbt)],1):t._e(),t.toolbars.superscript||t.toolbars.subscript||t.toolbars.underline||t.toolbars.strikethrough?n("span",{staticClass:"op-icon-divider"}):t._e(),t.toolbars.quote?n("button",{staticClass:"op-icon",attrs:{title:"段落引用 ("+t.ctrlKeyName+" + Q)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("quote")}}},[n(ybt)],1):t._e(),t.toolbars.ol?n("button",{staticClass:"op-icon",attrs:{title:"有序列表 ("+t.ctrlKeyName+" + O)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("ol")}}},[n(gbt)],1):t._e(),t.toolbars.ul?n("button",{staticClass:"op-icon",attrs:{title:"无序列表 ("+t.ctrlKeyName+" + "+t.altKeyName+" + U)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("ul")}}},[n(dbt)],1):t._e(),t.toolbars.ul||t.toolbars.ol||t.toolbars.quote?n("span",{staticClass:"op-icon-divider"}):t._e(),t.toolbars.link?n("button",{staticClass:"op-icon",attrs:{title:"链接 ("+t.ctrlKeyName+" + L)","aria-hidden":"true",type:"button"},on:{click:function(e){return e.stopPropagation(),t.handleOpenLinkAddModal("link")}}},[n(hbt)],1):t._e(),t.toolbars.imagelink?n("button",{staticClass:"op-icon",attrs:{title:"选择图片 ("+t.ctrlKeyName+" + Shift + I)","aria-hidden":"true",type:"button"},on:{click:function(e){return e.stopPropagation(),t.handleOpenImagePicker.apply(null,arguments)}}},[n(cbt)],1):t._e(),t.toolbars.code?n("button",{staticClass:"op-icon",attrs:{title:"代码块 ("+t.ctrlKeyName+" + "+t.altKeyName+" + C)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("code")}}},[n(sbt)],1):t._e(),t.toolbars.table?n("button",{staticClass:"op-icon",attrs:{title:"表格 ("+t.ctrlKeyName+" + "+t.altKeyName+" + T)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("table")}}},[n(abt)],1):t._e(),t.toolbars.link||t.toolbars.imagelink||t.toolbars.code||t.toolbars.table?n("span",{staticClass:"op-icon-divider"}):t._e(),t.toolbars.undo?n("button",{staticClass:"op-icon",attrs:{title:"上一步 ("+t.ctrlKeyName+" + Z)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("undo")}}},[n(rbt)],1):t._e(),t.toolbars.redo?n("button",{staticClass:"op-icon",attrs:{title:"下一步 ("+t.ctrlKeyName+" + Y)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("redo")}}},[n(ebt)],1):t._e(),t.toolbars.save?n("button",{staticClass:"op-icon",attrs:{title:"保存 ("+t.ctrlKeyName+" + S)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("save")}}},[n(Jvt)],1):t._e(),n("transition",{attrs:{name:"fade"}},[t.s_link_open?n("div",{staticClass:"add-image-link-wrapper"},[n("div",{staticClass:"add-image-link"},[n("i",{on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.s_link_open=!1}}},[n(Kvt,{attrs:{height:"1rem",width:"1rem"}})],1),n("h3",{staticClass:"title"},[t._v("添加链接")]),n("div",{staticClass:"link-text input-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.link_text,expression:"link_text"}],ref:"linkTextInput",attrs:{placeholder:"链接描述",type:"text"},domProps:{value:t.link_text},on:{input:function(e){e.target.composing||(t.link_text=e.target.value)}}})]),n("div",{staticClass:"link-addr input-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.link_addr,expression:"link_addr"}],attrs:{placeholder:"链接地址",type:"text"},domProps:{value:t.link_addr},on:{input:function(e){e.target.composing||(t.link_addr=e.target.value)}}})]),n("div",{staticClass:"op-btn cancel",on:{click:function(e){e.stopPropagation(),t.s_link_open=!1}}},[t._v("取消")]),n("div",{staticClass:"op-btn sure",on:{click:function(e){return e.stopPropagation(),t.handleAddLink()}}},[t._v("确定")])])]):t._e()])],1)},Lbt=[];function Bbt(t,e,n,r,i,a,o,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}const Ibt={name:"s-md-toolbar-left",props:{transition:{type:Boolean,default:!0},toolbars:{type:Object,required:!0}},data(){return{header_timer:null,s_header_dropdown_open:!1,s_link_open:!1,trigger:null,num:0,link_text:"",link_addr:""}},computed:{ctrlKeyName(){return this.isMacPlatform?"Cmd":"Ctrl"},altKeyName(){return this.isMacPlatform?"Option":"Alt"},isMacPlatform(){return/Mac/.test(navigator.platform)}},methods:{handleOpenImagePicker(){this.$emit("openImagePicker")},handleAddLink(){this.$emit("insertLink",this.link_text,this.link_addr),this.s_link_open=!1},handleOpenLinkAddModal(){this.link_text=this.link_addr="",this.s_link_open=!0,this.$nextTick((()=>{this.$refs.linkTextInput.focus()}))},$mouseenter_header_dropdown(){clearTimeout(this.header_timer),this.s_header_dropdown_open=!0},$mouseleave_header_dropdown(){let t=this;this.header_timer=setTimeout((function(){t.s_header_dropdown_open=!1}),200)},$clicks(t){this.$emit("clickCommands",t)},$click_header(t,e){this.$emit("clickCommands",t,{level:e}),this.s_header_dropdown_open=!1}}},Rbt={};var Fbt=Bbt(Ibt,Obt,Lbt,!1,Pbt,null,null,null);function Pbt(t){for(let e in Rbt)this[e]=Rbt[e]}var zbt=function(){return Fbt.exports}(),qbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1664 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M160 1408h608V256H128v1120q0 13 9.5 22.5t22.5 9.5zm1376-32V256H896v1152h608q13 0 22.5-9.5t9.5-22.5zm128-1216v1216q0 66-47 113t-113 47H160q-66 0-113-47T0 1376V160Q0 94 47 47T160 0h1344q66 0 113 47t47 113z"}})])},jbt={render:qbt,name:"fa-columns"},Hbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1792 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M256 1280h1280V512H256v768zM1792 160v1216q0 66-47 113t-113 47H160q-66 0-113-47T0 1376V160Q0 94 47 47T160 0h1472q66 0 113 47t47 113z"}})])},Ubt={render:Hbt,name:"fa-window-maximize"},$bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M768 832v448q0 26-19 45t-45 19t-45-19l-144-144l-332 332q-10 10-23 10t-23-10L23 1399q-10-10-10-23t10-23l332-332l-144-144q-19-19-19-45t19-45t45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332l144 144q19 19 19 45t-19 45t-45 19H832q-26 0-45-19t-19-45V256q0-26 19-45t45-19t45 19l144 144l332-332q10-10 23-10t23 10l114 114q10 10 10 23z"}})])},Wbt={render:$bt,name:"fa-compress"},Ybt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1536"}},[n("path",{attrs:{fill:"currentColor",d:"M1283 413L928 768l355 355l144-144q29-31 70-14q39 17 39 59v448q0 26-19 45t-45 19h-448q-42 0-59-40q-17-39 14-69l144-144l-355-355l-355 355l144 144q31 30 14 69q-17 40-59 40H64q-26 0-45-19t-19-45v-448q0-42 40-59q39-17 69 14l144 144l355-355l-355-355l-144 144q-19 19-45 19q-12 0-24-5q-40-17-40-59V64q0-26 19-45T64 0h448q42 0 59 40q17 39-14 69L413 253l355 355l355-355l-144-144q-31-30-14-69q17-40 59-40h448q26 0 45 19t19 45v448q0 42-39 59q-13 5-25 5q-26 0-45-19z"}})])},Vbt={render:Ybt,name:"fa-arrows-alt"},Gbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1792 1280"}},[n("path",{attrs:{fill:"currentColor",d:"M1664 704q-152-236-381-353q61 104 61 225q0 185-131.5 316.5T896 1024T579.5 892.5T448 576q0-121 61-225q-229 117-381 353q133 205 333.5 326.5T896 1152t434.5-121.5T1664 704zM944 320q0-20-14-34t-34-14q-125 0-214.5 89.5T592 576q0 20 14 34t34 14t34-14t14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69q-140 230-376.5 368.5T896 1280t-499.5-139T20 773Q0 738 0 704t20-69q140-229 376.5-368T896 128t499.5 139T1772 635q20 35 20 69z"}})])},Xbt={render:Gbt,name:"fa-eye"},Zbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1792 1376"}},[n("path",{attrs:{fill:"currentColor",d:"m555 1079l78-141q-87-63-136-159t-49-203q0-121 61-225q-229 117-381 353q167 258 427 375zm389-759q0-20-14-34t-34-14q-125 0-214.5 89.5T592 576q0 20 14 34t34 14t34-14t14-34q0-86 61-147t147-61q20 0 34-14t14-34zm363-191q0 7-1 9q-106 189-316 567t-315 566l-49 89q-10 16-28 16q-12 0-134-70q-16-10-16-28q0-12 44-87q-143-65-263.5-173T20 773Q0 742 0 704t20-69q153-235 380-371t496-136q89 0 180 17l54-97q10-16 28-16q5 0 18 6t31 15.5t33 18.5t31.5 18.5T1291 102q16 10 16 27zm37 447q0 139-79 253.5T1056 994l280-502q8 45 8 84zm448 128q0 35-20 69q-39 64-109 145q-150 172-347.5 267T896 1280l74-132q212-18 392.5-137T1664 704q-115-179-282-294l63-112q95 64 182.5 153T1772 635q20 34 20 69z"}})])},Kbt={render:Zbt,name:"fa-eye-slash"},Qbt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"1.2em",height:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1280"}},[n("path",{attrs:{fill:"currentColor",d:"M1536 1088v128q0 26-19 45t-45 19H64q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19H64q-26 0-45-19T0 704V576q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19H64q-26 0-45-19T0 192V64q0-26 19-45T64 0h1408q26 0 45 19t19 45z"}})])},Jbt={render:Qbt,name:"fa-bars"},t_t=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-right-item"},[t.toolbars.navigation?n("button",{directives:[{name:"show",rawName:"v-show",value:!t.s_navigation,expression:"!s_navigation"}],staticClass:"op-icon",attrs:{title:"开启标题导航 (F8)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("navigation")}}},[n(Jbt)],1):t._e(),t.toolbars.navigation?n("button",{directives:[{name:"show",rawName:"v-show",value:t.s_navigation,expression:"s_navigation"}],staticClass:"op-icon selected",attrs:{title:"关闭标题导航 (F8)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("navigation")}}},[n(Jbt)],1):t._e(),t.toolbars.preview?n("button",{directives:[{name:"show",rawName:"v-show",value:t.s_preview_switch,expression:"s_preview_switch"}],staticClass:"op-icon selected",attrs:{title:"关闭预览 (F9)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("preview")}}},[n(Kbt)],1):t._e(),t.toolbars.preview?n("button",{directives:[{name:"show",rawName:"v-show",value:!t.s_preview_switch,expression:"!s_preview_switch"}],staticClass:"op-icon",attrs:{title:"开启预览 (F9)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("preview")}}},[n(Xbt)],1):t._e(),t.toolbars.fullscreen?n("button",{directives:[{name:"show",rawName:"v-show",value:!t.s_fullScreen,expression:"!s_fullScreen"}],staticClass:"op-icon",attrs:{title:"全屏编辑 (F10)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("fullscreen")}}},[n(Vbt)],1):t._e(),t.toolbars.fullscreen?n("button",{directives:[{name:"show",rawName:"v-show",value:t.s_fullScreen,expression:"s_fullScreen"}],staticClass:"op-icon selected",attrs:{title:"退出全屏 (F10)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("fullscreen")}}},[n(Wbt)],1):t._e(),t.toolbars.readmodel?n("button",{staticClass:"op-icon",attrs:{title:"沉浸式阅读 (F11)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("read")}}},[n(Ubt)],1):t._e(),t.toolbars.subfield?n("button",{staticClass:"op-icon",class:{selected:t.s_subfield},attrs:{title:(t.s_subfield?"单栏":"双栏")+" (F12)","aria-hidden":"true",type:"button"},on:{click:function(e){return t.$clicks("subfield")}}},[n(jbt)],1):t._e(),t.toolbars.htmlcode&&t.toolbars.readmodel&&t.toolbars.fullscreen&&t.toolbars.subfield&&t.toolbars.navigation?n("span",{staticClass:"op-icon-divider"}):t._e(),t.toolbars.htmlcode?n("button",{directives:[{name:"show",rawName:"v-show",value:!t.s_html_code,expression:"!s_html_code"}],staticClass:"op-icon",attrs:{"aria-hidden":"true",title:"查看 HTML 文本",type:"button"},on:{click:function(e){return t.$clicks("html")}}},[n(sbt)],1):t._e(),t.toolbars.htmlcode?n("button",{directives:[{name:"show",rawName:"v-show",value:t.s_html_code,expression:"s_html_code"}],staticClass:"op-icon selected",attrs:{"aria-hidden":"true",title:"返回 Markdown 文本",type:"button"},on:{click:function(e){return t.$clicks("html")}}},[n(sbt)],1):t._e()])},e_t=[];const n_t={name:"s-md-toolbar-right",props:{s_subfield:{type:Boolean,required:!0},toolbars:{type:Object,required:!0},s_preview_switch:{type:Boolean,required:!0},s_fullScreen:{type:Boolean,required:!0},s_html_code:{type:Boolean,required:!0},s_navigation:{type:Boolean,required:!0}},methods:{$clicks(t){this.$emit("toolbar_right_click",t)}}},r_t={};var i_t=Bbt(n_t,t_t,e_t,!1,a_t,null,null,null);function a_t(t){for(let e in r_t)this[e]=r_t[e]}var o_t=function(){return i_t.exports}(),s_t=1/0,l_t=9007199254740991,c_t=17976931348623157e292,u_t=NaN,h_t=4294967295,f_t="[object Symbol]",d_t=/^\s+|\s+$/g,p_t=/^[-+]0x[0-9a-f]+$/i,g_t=/^0b[01]+$/i,m_t=/^0o[0-7]+$/i,y_t=parseInt;function v_t(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var b_t=Object.prototype,__t=b_t.toString,x_t=Math.min;function w_t(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function k_t(t){return!!t&&"object"==typeof t}function C_t(t){return"symbol"==typeof t||k_t(t)&&__t.call(t)==f_t}function E_t(t){if(!t)return 0===t?t:0;if(t=T_t(t),t===s_t||t===-s_t){var e=t<0?-1:1;return e*c_t}return t===t?t:0}function S_t(t){var e=E_t(t),n=e%1;return e===e?n?e-n:e:0}function T_t(t){if("number"==typeof t)return t;if(C_t(t))return u_t;if(w_t(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=w_t(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(d_t,"");var n=g_t.test(t);return n||m_t.test(t)?y_t(t.slice(2),n?2:8):p_t.test(t)?u_t:+t}function A_t(t){return t}function M_t(t,e){if(t=S_t(t),t<1||t>l_t)return[];var n=h_t,r=x_t(t,h_t);e="function"==typeof e?e:A_t,t-=h_t;var i=v_t(r,e);while(++n<t)e(n);return i}var N_t=M_t,D_t=9007199254740991,O_t="[object Arguments]",L_t="[object Function]",B_t="[object GeneratorFunction]",I_t="object"==typeof Fgt&&Fgt&&Fgt.Object===Object&&Fgt,R_t="object"==typeof self&&self&&self.Object===Object&&self,F_t=I_t||R_t||Function("return this")();function P_t(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var z_t=Object.prototype,q_t=z_t.hasOwnProperty,j_t=z_t.toString,H_t=F_t.Symbol,U_t=z_t.propertyIsEnumerable,$_t=H_t?H_t.isConcatSpreadable:void 0;function W_t(t,e,n,r,i){var a=-1,o=t.length;n||(n=Y_t),i||(i=[]);while(++a<o){var s=t[a];e>0&&n(s)?e>1?W_t(s,e-1,n,r,i):P_t(i,s):r||(i[i.length]=s)}return i}function Y_t(t){return X_t(t)||G_t(t)||!!($_t&&t&&t[$_t])}function V_t(t){var e=t?t.length:0;return e?W_t(t,1):[]}function G_t(t){return K_t(t)&&q_t.call(t,"callee")&&(!U_t.call(t,"callee")||j_t.call(t)==O_t)}var X_t=Array.isArray;function Z_t(t){return null!=t&&J_t(t.length)&&!Q_t(t)}function K_t(t){return ext(t)&&Z_t(t)}function Q_t(t){var e=txt(t)?j_t.call(t):"";return e==L_t||e==B_t}function J_t(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=D_t}function txt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ext(t){return!!t&&"object"==typeof t}var nxt=V_t;function rxt(t){var e=t?t.length:0;return e?t[e-1]:void 0}var ixt=rxt,axt="Expected a function",oxt=NaN,sxt="[object Symbol]",lxt=/^\s+|\s+$/g,cxt=/^[-+]0x[0-9a-f]+$/i,uxt=/^0b[01]+$/i,hxt=/^0o[0-7]+$/i,fxt=parseInt,dxt="object"==typeof Fgt&&Fgt&&Fgt.Object===Object&&Fgt,pxt="object"==typeof self&&self&&self.Object===Object&&self,gxt=dxt||pxt||Function("return this")(),mxt=Object.prototype,yxt=mxt.toString,vxt=Math.max,bxt=Math.min,_xt=function(){return gxt.Date.now()};function xxt(t,e,n){var r,i,a,o,s,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(axt);function d(e){var n=r,a=i;return r=i=void 0,c=e,o=t.apply(a,n),o}function p(t){return c=t,s=setTimeout(y,e),u?d(t):o}function g(t){var n=t-l,r=t-c,i=e-n;return h?bxt(i,a-r):i}function m(t){var n=t-l,r=t-c;return void 0===l||n>=e||n<0||h&&r>=a}function y(){var t=_xt();if(m(t))return v(t);s=setTimeout(y,g(t))}function v(t){return s=void 0,f&&r?d(t):(r=i=void 0,o)}function b(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0}function _(){return void 0===s?o:v(_xt())}function x(){var t=_xt(),n=m(t);if(r=arguments,i=this,l=t,n){if(void 0===s)return p(l);if(h)return s=setTimeout(y,e),d(l)}return void 0===s&&(s=setTimeout(y,e)),o}return e=Ext(e)||0,wxt(n)&&(u=!!n.leading,h="maxWait"in n,a=h?vxt(Ext(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),x.cancel=b,x.flush=_,x}function wxt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function kxt(t){return!!t&&"object"==typeof t}function Cxt(t){return"symbol"==typeof t||kxt(t)&&yxt.call(t)==sxt}function Ext(t){if("number"==typeof t)return t;if(Cxt(t))return oxt;if(wxt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=wxt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(lxt,"");var n=uxt.test(t);return n||hxt.test(t)?fxt(t.slice(2),n?2:8):cxt.test(t)?oxt:+t}var Sxt=xxt,Txt={exports:{}};(function(t,e){(function(e,n){t.exports=n()})(0,(function(){var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),l=!a&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!a&&/Chrome\/(\d+)/.exec(t),h=u&&+u[1],f=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),g=/PhantomJS/.test(t),m=d&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),y=/Android/.test(t),v=m||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),b=m||/Mac/.test(e),_=/\bCrOS\b/.test(t),x=/win/i.test(e),w=f&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var k=b&&(c||f&&(null==w||w<12.11)),C=n||o&&s>=9;function E(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var S,T=function(t,e){var n=t.className,r=E(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function A(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function M(t,e){return A(t).appendChild(e)}function N(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var a=0;a<e.length;++a)i.appendChild(e[a]);return i}function D(t,e,n,r){var i=N(t,e,n,r);return i.setAttribute("role","presentation"),i}function O(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function L(){var t;try{t=document.activeElement}catch(e){t=document.body||null}while(t&&t.shadowRoot&&t.shadowRoot.activeElement)t=t.shadowRoot.activeElement;return t}function B(t,e){var n=t.className;E(e).test(n)||(t.className+=(n?" ":"")+e)}function I(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!E(n[r]).test(e)&&(e+=" "+n[r]);return e}S=document.createRange?function(t,e,n,r){var i=document.createRange();return i.setEnd(r||t,n),i.setStart(t,e),i}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var R=function(t){t.select()};function F(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function P(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function z(t,e,n,r,i){null==e&&(e=t.search(/[^\s\u00a0]/),-1==e&&(e=t.length));for(var a=r||0,o=i||0;;){var s=t.indexOf("\t",a);if(s<0||s>=e)return o+(e-a);o+=s-a,o+=n-o%n,a=s+1}}m?R=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:o&&(R=function(t){try{t.select()}catch(e){}});var q=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};function j(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}q.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},q.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var H=50,U={toString:function(){return"CodeMirror.Pass"}},$={scroll:!1},W={origin:"*mouse"},Y={origin:"+move"};function V(t,e,n){for(var r=0,i=0;;){var a=t.indexOf("\t",r);-1==a&&(a=t.length);var o=a-r;if(a==t.length||i+o>=e)return r+Math.min(o,e-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=e)return r}}var G=[""];function X(t){while(G.length<=t)G.push(Z(G)+" ");return G[t]}function Z(t){return t[t.length-1]}function K(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function Q(t,e,n){var r=0,i=n(e);while(r<t.length&&n(t[r])<=i)r++;t.splice(r,0,e)}function J(){}function tt(t,e){var n;return Object.create?n=Object.create(t):(J.prototype=t,n=new J),e&&P(e,n),n}var et=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function nt(t){return/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||et.test(t))}function rt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&nt(t))||e.test(t):nt(t)}function it(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var at=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ot(t){return t.charCodeAt(0)>=768&&at.test(t)}function st(t,e,n){while((n<0?e>0:e<t.length)&&ot(t.charAt(e)))e+=n;return e}function lt(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var i=(e+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==e)return t(a)?e:n;t(a)?n=a:e=a+r}}function ct(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,a=0;a<t.length;++a){var o=t[a];(o.from<n&&o.to>e||e==n&&o.to==e)&&(r(Math.max(o.from,e),Math.min(o.to,n),1==o.level?"rtl":"ltr",a),i=!0)}i||r(e,n,"ltr")}var ut=null;function ht(t,e,n){var r;ut=null;for(var i=0;i<t.length;++i){var a=t[i];if(a.from<e&&a.to>e)return i;a.to==e&&(a.from!=a.to&&"before"==n?r=i:ut=i),a.from==e&&(a.from!=a.to&&"before"!=n?r=i:ut=i)}return null!=r?r:ut}var ft=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function l(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var c="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!r.test(t))return!1;for(var u=t.length,h=[],f=0;f<u;++f)h.push(n(t.charCodeAt(f)));for(var d=0,p=c;d<u;++d){var g=h[d];"m"==g?h[d]=p:p=g}for(var m=0,y=c;m<u;++m){var v=h[m];"1"==v&&"r"==y?h[m]="n":a.test(v)&&(y=v,"r"==v&&(h[m]="R"))}for(var b=1,_=h[0];b<u-1;++b){var x=h[b];"+"==x&&"1"==_&&"1"==h[b+1]?h[b]="1":","!=x||_!=h[b+1]||"1"!=_&&"n"!=_||(h[b]=_),_=x}for(var w=0;w<u;++w){var k=h[w];if(","==k)h[w]="N";else if("%"==k){var C=void 0;for(C=w+1;C<u&&"%"==h[C];++C);for(var E=w&&"!"==h[w-1]||C<u&&"1"==h[C]?"1":"N",S=w;S<C;++S)h[S]=E;w=C-1}}for(var T=0,A=c;T<u;++T){var M=h[T];"L"==A&&"1"==M?h[T]="L":a.test(M)&&(A=M)}for(var N=0;N<u;++N)if(i.test(h[N])){var D=void 0;for(D=N+1;D<u&&i.test(h[D]);++D);for(var O="L"==(N?h[N-1]:c),L="L"==(D<u?h[D]:c),B=O==L?O?"L":"R":c,I=N;I<D;++I)h[I]=B;N=D-1}for(var R,F=[],P=0;P<u;)if(o.test(h[P])){var z=P;for(++P;P<u&&o.test(h[P]);++P);F.push(new l(0,z,P))}else{var q=P,j=F.length,H="rtl"==e?1:0;for(++P;P<u&&"L"!=h[P];++P);for(var U=q;U<P;)if(s.test(h[U])){q<U&&(F.splice(j,0,new l(1,q,U)),j+=H);var $=U;for(++U;U<P&&s.test(h[U]);++U);F.splice(j,0,new l(2,$,U)),j+=H,q=U}else++U;q<P&&F.splice(j,0,new l(1,q,P))}return"ltr"==e&&(1==F[0].level&&(R=t.match(/^\s+/))&&(F[0].from=R[0].length,F.unshift(new l(0,0,R[0].length))),1==Z(F).level&&(R=t.match(/\s+$/))&&(Z(F).to-=R[0].length,F.push(new l(0,u-R[0].length,u)))),"rtl"==e?F.reverse():F}}();function dt(t,e){var n=t.order;return null==n&&(n=t.order=ft(t.text,e)),n}var pt=[],gt=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||pt).concat(n)}};function mt(t,e){return t._handlers&&t._handlers[e]||pt}function yt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,i=r&&r[e];if(i){var a=j(i,n);a>-1&&(r[e]=i.slice(0,a).concat(i.slice(a+1)))}}}function vt(t,e){var n=mt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function bt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),vt(t,n||e.type,t,e),Et(e)||e.codemirrorIgnore}function _t(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==j(n,e[r])&&n.push(e[r])}function xt(t,e){return mt(t,e).length>0}function wt(t){t.prototype.on=function(t,e){gt(this,t,e)},t.prototype.off=function(t,e){yt(this,t,e)}}function kt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ct(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Et(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function St(t){kt(t),Ct(t)}function Tt(t){return t.target||t.srcElement}function At(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),b&&t.ctrlKey&&1==e&&(e=3),e}var Mt,Nt,Dt=function(){if(o&&s<9)return!1;var t=N("div");return"draggable"in t||"dragDrop"in t}();function Ot(t){if(null==Mt){var e=N("span","");M(t,N("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Mt=e.offsetWidth<=1&&e.offsetHeight>2&&!(o&&s<8))}var n=Mt?N("span",""):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Lt(t){if(null!=Nt)return Nt;var e=M(t,document.createTextNode("AخA")),n=S(e,0,1).getBoundingClientRect(),r=S(e,1,2).getBoundingClientRect();return A(t),!(!n||n.left==n.right)&&(Nt=r.right-n.right<3)}var Bt=3!="\n\nb".split(/\n/).length?function(t){var e=0,n=[],r=t.length;while(e<=r){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var a=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),e+=o+1):(n.push(a),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},It=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(e){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(n){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Rt=function(){var t=N("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),Ft=null;function Pt(t){if(null!=Ft)return Ft;var e=M(t,N("span","x")),n=e.getBoundingClientRect(),r=S(e,0,1).getBoundingClientRect();return Ft=Math.abs(n.left-r.left)>1}var zt={},qt={};function jt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),zt[t]=e}function Ht(t,e){qt[t]=e}function Ut(t){if("string"==typeof t&&qt.hasOwnProperty(t))t=qt[t];else if(t&&"string"==typeof t.name&&qt.hasOwnProperty(t.name)){var e=qt[t.name];"string"==typeof e&&(e={name:e}),t=tt(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Ut("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Ut("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function $t(t,e){e=Ut(e);var n=zt[e.name];if(!n)return $t(t,"text/plain");var r=n(t,e);if(Wt.hasOwnProperty(e.name)){var i=Wt[e.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=i[a])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var o in e.modeProps)r[o]=e.modeProps[o];return r}var Wt={};function Yt(t,e){var n=Wt.hasOwnProperty(t)?Wt[t]:Wt[t]={};P(e,n)}function Vt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Gt(t,e){var n;while(t.innerMode){if(n=t.innerMode(e),!n||n.mode==t)break;e=n.state,t=n.mode}return n||{mode:t,state:e}}function Xt(t,e,n){return!t.startState||t.startState(e,n)}var Zt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Kt(t,e){if(e-=t.first,e<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");var n=t;while(!n.lines)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(e<a){n=i;break}e-=a}return n.lines[e]}function Qt(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,(function(t){var a=t.text;i==n.line&&(a=a.slice(0,n.ch)),i==e.line&&(a=a.slice(e.ch)),r.push(a),++i})),r}function Jt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function te(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function ee(t){if(null==t.parent)return null;for(var e=t.parent,n=j(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;;++i){if(r.children[i]==e)break;n+=r.children[i].chunkSize()}return n+e.first}function ne(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],a=i.height;if(e<a){t=i;continue t}e-=a,n+=i.chunkSize()}return n}while(!t.lines);for(var o=0;o<t.lines.length;++o){var s=t.lines[o],l=s.height;if(e<l)break;e-=l}return n+o}function re(t,e){return e>=t.first&&e<t.first+t.size}function ie(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function ae(t,e,n){if(void 0===n&&(n=null),!(this instanceof ae))return new ae(t,e,n);this.line=t,this.ch=e,this.sticky=n}function oe(t,e){return t.line-e.line||t.ch-e.ch}function se(t,e){return t.sticky==e.sticky&&0==oe(t,e)}function le(t){return ae(t.line,t.ch)}function ce(t,e){return oe(t,e)<0?e:t}function ue(t,e){return oe(t,e)<0?t:e}function he(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function fe(t,e){if(e.line<t.first)return ae(t.first,0);var n=t.first+t.size-1;return e.line>n?ae(n,Kt(t,n).text.length):de(e,Kt(t,e.line).text.length)}function de(t,e){var n=t.ch;return null==n||n>e?ae(t.line,e):n<0?ae(t.line,0):t}function pe(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=fe(t,e[r]);return n}Zt.prototype.eol=function(){return this.pos>=this.string.length},Zt.prototype.sol=function(){return this.pos==this.lineStart},Zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Zt.prototype.eat=function(t){var e,n=this.string.charAt(this.pos);if(e="string"==typeof t?n==t:n&&(t.test?t.test(n):t(n)),e)return++this.pos,n},Zt.prototype.eatWhile=function(t){var e=this.pos;while(this.eat(t));return this.pos>e},Zt.prototype.eatSpace=function(){var t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>t},Zt.prototype.skipToEnd=function(){this.pos=this.string.length},Zt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Zt.prototype.backUp=function(t){this.pos-=t},Zt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Zt.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Zt.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t},a=this.string.substr(this.pos,t.length);if(i(a)==i(t))return!1!==e&&(this.pos+=t.length),!0},Zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Zt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Zt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ge=function(t,e){this.state=t,this.lookAhead=e},me=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ye(t,e,n,r){var i=[t.state.modeGen],a={};Se(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],l=1,c=0;n.state=!0,Se(t,e.text,s.mode,n,(function(t,e){var n=l;while(c<t){var r=i[l];r>t&&i.splice(l,1,t,i[l+1],r),l+=2,c=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var a=i[n+1];i[n+1]=(a?a+" ":"")+"overlay "+e}}),a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)s(l);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function ve(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=be(t,ee(e)),i=e.text.length>t.options.maxHighlightLength&&Vt(t.doc.mode,r.state),a=ye(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=a.styles,a.classes?e.styleClasses=a.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function be(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new me(r,!0,e);var a=Te(t,e,n),o=a>r.first&&Kt(r,a-1).stateAfter,s=o?me.fromSaved(r,o,a):new me(r,Xt(r.mode),a);return r.iter(a,e,(function(n){_e(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function _e(t,e,n,r){var i=t.doc.mode,a=new Zt(e,t.options.tabSize,n);a.start=a.pos=r||0,""==e&&xe(i,n.state);while(!a.eol())we(i,a,n.state),a.start=a.pos}function xe(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Gt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function we(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=Gt(t,n).mode);var a=t.token(e,n);if(e.pos>e.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}me.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},me.prototype.baseToken=function(t){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=t)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},me.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},me.fromSaved=function(t,e,n){return e instanceof ge?new me(t,Vt(t.mode,e.state),n,e.lookAhead):new me(t,Vt(t.mode,e),n)},me.prototype.save=function(t){var e=!1!==t?Vt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ge(e,this.maxLookAhead):e};var ke=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function Ce(t,e,n,r){var i,a=t.doc,o=a.mode;e=fe(a,e);var s,l=Kt(a,e.line),c=be(t,e.line,n),u=new Zt(l.text,t.options.tabSize,c);r&&(s=[]);while((r||u.pos<e.ch)&&!u.eol())u.start=u.pos,i=we(o,u,c.state),r&&s.push(new ke(u,i,Vt(a.mode,c.state)));return r?s:new ke(u,i,c.state)}function Ee(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function Se(t,e,n,r,i,a,o){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var l,c=0,u=null,h=new Zt(e,t.options.tabSize,r),f=t.options.addModeClass&&[null];""==e&&Ee(xe(n,r.state),a);while(!h.eol()){if(h.pos>t.options.maxHighlightLength?(s=!1,o&&_e(t,e,r,h.pos),h.pos=e.length,l=null):l=Ee(we(n,h,r.state,f),a),f){var d=f[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||u!=l){while(c<h.start)c=Math.min(h.start,c+5e3),i(c,u);u=l}h.start=h.pos}while(c<h.pos){var p=Math.min(h.pos,c+5e3);i(p,u),c=p}}function Te(t,e,n){for(var r,i,a=t.doc,o=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>o;--s){if(s<=a.first)return a.first;var l=Kt(a,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof ge?c.lookAhead:0)<=a.modeFrontier))return s;var u=z(l.text,null,t.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function Ae(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var i=Kt(t,r).stateAfter;if(i&&(!(i instanceof ge)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}var Me=!1,Ne=!1;function De(){Me=!0}function Oe(){Ne=!0}function Le(t,e,n){this.marker=t,this.from=e,this.to=n}function Be(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function Ie(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function Re(t,e,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&t.markedSpans&&r.has(t.markedSpans)?t.markedSpans.push(e):(t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],r&&r.add(t.markedSpans)),e.marker.attachLine(t)}function Fe(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var a=t[i],o=a.marker,s=null==a.from||(o.inclusiveLeft?a.from<=e:a.from<e);if(s||a.from==e&&"bookmark"==o.type&&(!n||!a.marker.insertLeft)){var l=null==a.to||(o.inclusiveRight?a.to>=e:a.to>e);(r||(r=[])).push(new Le(o,a.from,l?null:a.to))}}return r}function Pe(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var a=t[i],o=a.marker,s=null==a.to||(o.inclusiveRight?a.to>=e:a.to>e);if(s||a.from==e&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var l=null==a.from||(o.inclusiveLeft?a.from<=e:a.from<e);(r||(r=[])).push(new Le(o,l?null:a.from-e,null==a.to?null:a.to-e))}}return r}function ze(t,e){if(e.full)return null;var n=re(t,e.from.line)&&Kt(t,e.from.line).markedSpans,r=re(t,e.to.line)&&Kt(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,a=e.to.ch,o=0==oe(e.from,e.to),s=Fe(n,i,o),l=Pe(r,a,o),c=1==e.text.length,u=Z(e.text).length+(c?i:0);if(s)for(var h=0;h<s.length;++h){var f=s[h];if(null==f.to){var d=Be(l,f.marker);d?c&&(f.to=null==d.to?null:d.to+u):f.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];if(null!=g.to&&(g.to+=u),null==g.from){var m=Be(s,g.marker);m||(g.from=u,c&&(s||(s=[])).push(g))}else g.from+=u,c&&(s||(s=[])).push(g)}s&&(s=qe(s)),l&&l!=s&&(l=qe(l));var y=[s];if(!c){var v,b=e.text.length-2;if(b>0&&s)for(var _=0;_<s.length;++_)null==s[_].to&&(v||(v=[])).push(new Le(s[_].marker,null,null));for(var x=0;x<b;++x)y.push(v);y.push(l)}return y}function qe(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function je(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=j(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:e,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),l=0;l<i.length;++l){var c=i[l];if(!(oe(c.to,s.from)<0||oe(c.from,s.to)>0)){var u=[l,1],h=oe(c.from,s.from),f=oe(c.to,s.to);(h<0||!o.inclusiveLeft&&!h)&&u.push({from:c.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function He(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function Ue(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function $e(t){return t.inclusiveLeft?-1:0}function We(t){return t.inclusiveRight?1:0}function Ye(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),a=oe(r.from,i.from)||$e(t)-$e(e);if(a)return-a;var o=oe(r.to,i.to)||We(t)-We(e);return o||e.id-t.id}function Ve(t,e){var n,r=Ne&&t.markedSpans;if(r)for(var i=void 0,a=0;a<r.length;++a)i=r[a],i.marker.collapsed&&null==(e?i.from:i.to)&&(!n||Ye(n,i.marker)<0)&&(n=i.marker);return n}function Ge(t){return Ve(t,!0)}function Xe(t){return Ve(t,!1)}function Ze(t,e){var n,r=Ne&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var a=r[i];a.marker.collapsed&&(null==a.from||a.from<e)&&(null==a.to||a.to>e)&&(!n||Ye(n,a.marker)<0)&&(n=a.marker)}return n}function Ke(t,e,n,r,i){var a=Kt(t,e),o=Ne&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var l=o[s];if(l.marker.collapsed){var c=l.marker.find(0),u=oe(c.from,n)||$e(l.marker)-$e(i),h=oe(c.to,r)||We(l.marker)-We(i);if(!(u>=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?oe(c.to,n)>=0:oe(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?oe(c.from,r)<=0:oe(c.from,r)<0)))return!0}}}function Qe(t){var e;while(e=Ge(t))t=e.find(-1,!0).line;return t}function Je(t){var e;while(e=Xe(t))t=e.find(1,!0).line;return t}function tn(t){var e,n;while(e=Xe(t))t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function en(t,e){var n=Kt(t,e),r=Qe(n);return n==r?e:ee(r)}function nn(t,e){if(e>t.lastLine())return e;var n,r=Kt(t,e);if(!rn(t,r))return e;while(n=Xe(r))r=n.find(1,!0).line;return ee(r)+1}function rn(t,e){var n=Ne&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&an(t,e,r))return!0}}function an(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return an(t,r.line,Be(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,a=0;a<e.markedSpans.length;++a)if(i=e.markedSpans[a],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&an(t,e,i))return!0}function on(t){t=Qe(t);for(var e=0,n=t.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var a=n.parent;a;n=a,a=n.parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;e+=s.height}return e}function sn(t){if(0==t.height)return 0;var e,n=t.text.length,r=t;while(e=Ge(r)){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}r=t;while(e=Xe(r)){var a=e.find(0,!0);n-=r.text.length-a.from.ch,r=a.to.line,n+=r.text.length-a.to.ch}return n}function ln(t){var e=t.display,n=t.doc;e.maxLine=Kt(n,n.first),e.maxLineLength=sn(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=sn(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var cn=function(t,e,n){this.text=t,Ue(this,e),this.height=n?n(this):1};function un(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),He(t),Ue(t,n);var i=r?r(t):1;i!=t.height&&te(t,i)}function hn(t){t.parent=null,He(t)}cn.prototype.lineNo=function(){return ee(this)},wt(cn);var fn={},dn={};function pn(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?dn:fn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function gn(t,e){var n=D("span",null,null,l?"padding-right: .1px":null),r={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var a=i?e.rest[i-1]:e.line,o=void 0;r.pos=0,r.addToken=yn,Lt(t.display.measure)&&(o=dt(a,t.doc.direction))&&(r.addToken=bn(r.addToken,o)),r.map=[];var s=e!=t.display.externalMeasured&&ee(a);xn(a,r,ve(t,a,s)),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=I(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=I(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ot(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return vt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=I(r.pre.className,r.textClass||"")),r}function mn(t){var e=N("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function yn(t,e,n,r,i,a,l){if(e){var c,u=t.splitSpaces?vn(e,t.trailingSpace):e,h=t.cm.state.specialChars,f=!1;if(h.test(e)){c=document.createDocumentFragment();var d=0;while(1){h.lastIndex=d;var p=h.exec(e),g=p?p.index-d:e.length-d;if(g){var m=document.createTextNode(u.slice(d,d+g));o&&s<9?c.appendChild(N("span",[m])):c.appendChild(m),t.map.push(t.pos,t.pos+g,m),t.col+=g,t.pos+=g}if(!p)break;d+=g+1;var y=void 0;if("\t"==p[0]){var v=t.cm.options.tabSize,b=v-t.col%v;y=c.appendChild(N("span",X(b),"cm-tab")),y.setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),t.col+=b}else"\r"==p[0]||"\n"==p[0]?(y=c.appendChild(N("span","\r"==p[0]?"␍":"","cm-invalidchar")),y.setAttribute("cm-text",p[0]),t.col+=1):(y=t.cm.options.specialCharPlaceholder(p[0]),y.setAttribute("cm-text",p[0]),o&&s<9?c.appendChild(N("span",[y])):c.appendChild(y),t.col+=1);t.map.push(t.pos,t.pos+1,y),t.pos++}}else t.col+=e.length,c=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,c),o&&s<9&&(f=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||i||f||a||l){var _=n||"";r&&(_+=r),i&&(_+=i);var x=N("span",[c],_,a);if(l)for(var w in l)l.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&x.setAttribute(w,l[w]);return t.content.appendChild(x)}t.content.appendChild(c)}}function vn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var a=t.charAt(i);" "!=a||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(a=" "),r+=a,n=" "==a}return r}function bn(t,e){return function(n,r,i,a,o,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var h=void 0,f=0;f<e.length;f++)if(h=e[f],h.to>c&&h.from<=c)break;if(h.to>=u)return t(n,r,i,a,o,s,l);t(n,r.slice(0,h.to-c),i,a,null,s,l),a=null,r=r.slice(h.to-c),c=h.to}}}function _n(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function xn(t,e,n){var r=t.markedSpans,i=t.text,a=0;if(r)for(var o,s,l,c,u,h,f,d=i.length,p=0,g=1,m="",y=0;;){if(y==p){l=c=u=s="",f=null,h=null,y=1/0;for(var v=[],b=void 0,_=0;_<r.length;++_){var x=r[_],w=x.marker;if("bookmark"==w.type&&x.from==p&&w.widgetNode)v.push(w);else if(x.from<=p&&(null==x.to||x.to>p||w.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&y>x.to&&(y=x.to,c=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&x.from==p&&(u+=" "+w.startStyle),w.endStyle&&x.to==y&&(b||(b=[])).push(w.endStyle,x.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var k in w.attributes)(f||(f={}))[k]=w.attributes[k];w.collapsed&&(!h||Ye(h.marker,w)<0)&&(h=x)}else x.from>p&&y>x.from&&(y=x.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==y&&(c+=" "+b[C]);if(!h||h.from==p)for(var E=0;E<v.length;++E)_n(e,0,v[E]);if(h&&(h.from||0)==p){if(_n(e,(null==h.to?d+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=d)break;var S=Math.min(d,y);while(1){if(m){var T=p+m.length;if(!h){var A=T>S?m.slice(0,S-p):m;e.addToken(e,A,o?o+l:l,u,p+A.length==y?c:"",s,f)}if(T>=S){m=m.slice(S-p),p=S;break}p=T,u=""}m=i.slice(a,a=n[g++]),o=pn(n[g++],e.cm.options)}}else for(var M=1;M<n.length;M+=2)e.addToken(e,i.slice(a,a=n[M]),pn(n[M+1],e.cm.options))}function wn(t,e,n){this.line=e,this.rest=tn(e),this.size=this.rest?ee(Z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(t,e)}function kn(t,e,n){for(var r,i=[],a=e;a<n;a=r){var o=new wn(t.doc,Kt(t.doc,a),a);r=a+o.size,i.push(o)}return i}var Cn=null;function En(t){Cn?Cn.ops.push(t):t.ownsGroup=Cn={ops:[t],delayedCallbacks:[]}}function Sn(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var i=t.ops[r];if(i.cursorActivityHandlers)while(i.cursorActivityCalled<i.cursorActivityHandlers.length)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}function Tn(t,e){var n=t.ownsGroup;if(n)try{Sn(n)}finally{Cn=null,e(n)}}var An=null;function Mn(t,e){var n=mt(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Cn?r=Cn.delayedCallbacks:An?r=An:(r=An=[],setTimeout(Nn,0));for(var a=function(t){r.push((function(){return n[t].apply(null,i)}))},o=0;o<n.length;++o)a(o)}}function Nn(){var t=An;An=null;for(var e=0;e<t.length;++e)t[e]()}function Dn(t,e,n,r){for(var i=0;i<e.changes.length;i++){var a=e.changes[i];"text"==a?In(t,e):"gutter"==a?Fn(t,e,n,r):"class"==a?Rn(t,e):"widget"==a&&Pn(t,e,r)}e.changes=null}function On(t){return t.node==t.text&&(t.node=N("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),o&&s<8&&(t.node.style.zIndex=2)),t.node}function Ln(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=On(e);e.background=r.insertBefore(N("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}function Bn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):gn(t,e)}function In(t,e){var n=e.text.className,r=Bn(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,Rn(t,e)):n&&(e.text.className=n)}function Rn(t,e){Ln(t,e),e.line.wrapClass?On(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function Fn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=On(e);e.gutterBackground=N("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var a=e.line.gutterMarkers;if(t.options.lineNumbers||a){var o=On(e),s=e.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),t.display.input.setUneditable(s),o.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(N("div",ie(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),a)for(var l=0;l<t.display.gutterSpecs.length;++l){var c=t.display.gutterSpecs[l].className,u=a.hasOwnProperty(c)&&a[c];u&&s.appendChild(N("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Pn(t,e,n){e.alignable&&(e.alignable=null);for(var r=E("CodeMirror-linewidget"),i=e.node.firstChild,a=void 0;i;i=a)a=i.nextSibling,r.test(i.className)&&e.node.removeChild(i);qn(t,e,n)}function zn(t,e,n,r){var i=Bn(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),Rn(t,e),Fn(t,e,n,r),qn(t,e,r),e.node}function qn(t,e,n){if(jn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)jn(t,e.rest[r],e,n,!1)}function jn(t,e,n,r,i){if(e.widgets)for(var a=On(n),o=0,s=e.widgets;o<s.length;++o){var l=s[o],c=N("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Hn(l,c,n,r),t.display.input.setUneditable(c),i&&l.above?a.insertBefore(c,n.gutter||n.text):a.appendChild(c),Mn(l,"redraw")}}function Hn(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var i=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(i-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function Un(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!O(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),M(e.display.measure,N("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function $n(t,e){for(var n=Tt(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function Wn(t){return t.lineSpace.offsetTop}function Yn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Vn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=M(t.measure,N("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function Gn(t){return H-t.display.nativeBarWidth}function Xn(t){return t.display.scroller.clientWidth-Gn(t)-t.display.barWidth}function Zn(t){return t.display.scroller.clientHeight-Gn(t)-t.display.barHeight}function Kn(t,e,n){var r=t.options.lineWrapping,i=r&&Xn(t);if(!e.measure.heights||r&&e.measure.width!=i){var a=e.measure.heights=[];if(r){e.measure.width=i;for(var o=e.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var l=o[s],c=o[s+1];Math.abs(l.bottom-c.bottom)>2&&a.push((l.bottom+c.top)/2-n.top)}}a.push(n.bottom-n.top)}}function Qn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var i=0;i<t.rest.length;i++)if(ee(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}}function Jn(t,e){e=Qe(e);var n=ee(e),r=t.display.externalMeasured=new wn(t.doc,e,n);r.lineN=n;var i=r.built=gn(t,r);return r.text=i.pre,M(t.display.lineMeasure,i.pre),r}function tr(t,e,n,r){return rr(t,nr(t,e),n,r)}function er(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[Rr(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function nr(t,e){var n=ee(e),r=er(t,n);r&&!r.text?r=null:r&&r.changes&&(Dn(t,r,n,Dr(t)),t.curOp.forceUpdate=!0),r||(r=Jn(t,e));var i=Qn(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function rr(t,e,n,r,i){e.before&&(n=-1);var a,o=n+(r||"");return e.cache.hasOwnProperty(o)?a=e.cache[o]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(Kn(t,e.view,e.rect),e.hasHeights=!0),a=lr(t,e,n,r),a.bogus||(e.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var ir,ar={left:0,right:0,top:0,bottom:0};function or(t,e,n){for(var r,i,a,o,s,l,c=0;c<t.length;c+=3)if(s=t[c],l=t[c+1],e<s?(i=0,a=1,o="left"):e<l?(i=e-s,a=i+1):(c==t.length-3||e==l&&t[c+3]>e)&&(a=l-s,i=a-1,e>=l&&(o="right")),null!=i){if(r=t[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==i)while(c&&t[c-2]==t[c-3]&&t[c-1].insertLeft)r=t[2+(c-=3)],o="left";if("right"==n&&i==l-s)while(c<t.length-3&&t[c+3]==t[c+4]&&!t[c+5].insertLeft)r=t[(c+=3)+2],o="right";break}return{node:r,start:i,end:a,collapse:o,coverStart:s,coverEnd:l}}function sr(t,e){var n=ar;if("left"==e){for(var r=0;r<t.length;r++)if((n=t[r]).left!=n.right)break}else for(var i=t.length-1;i>=0;i--)if((n=t[i]).left!=n.right)break;return n}function lr(t,e,n,r){var i,a=or(e.map,n,r),l=a.node,c=a.start,u=a.end,h=a.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){while(c&&ot(e.line.text.charAt(a.coverStart+c)))--c;while(a.coverStart+u<a.coverEnd&&ot(e.line.text.charAt(a.coverStart+u)))++u;if(i=o&&s<9&&0==c&&u==a.coverEnd-a.coverStart?l.parentNode.getBoundingClientRect():sr(S(l,c,u).getClientRects(),r),i.left||i.right||0==c)break;u=c,c-=1,h="right"}o&&s<11&&(i=cr(t.display.measure,i))}else{var d;c>0&&(h=r="right"),i=t.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==r?d.length-1:0]:l.getBoundingClientRect()}if(o&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Nr(t.display),top:p.top,bottom:p.bottom}:ar}for(var g=i.top-e.rect.top,m=i.bottom-e.rect.top,y=(g+m)/2,v=e.view.measure.heights,b=0;b<v.length-1;b++)if(y<v[b])break;var _=b?v[b-1]:0,x=v[b],w={left:("right"==h?i.right:i.left)-e.rect.left,right:("left"==h?i.left:i.right)-e.rect.left,top:_,bottom:x};return i.left||i.right||(w.bogus=!0),t.options.singleCursorHeightPerLine||(w.rtop=g,w.rbottom=m),w}function cr(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Pt(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}function ur(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function hr(t){t.display.externalMeasure=null,A(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)ur(t.display.view[e])}function fr(t){hr(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function dr(){return u&&y?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pr(){return u&&y?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function gr(t){var e=Qe(t),n=e.widgets,r=0;if(n)for(var i=0;i<n.length;++i)n[i].above&&(r+=Un(n[i]));return r}function mr(t,e,n,r,i){if(!i){var a=gr(e);n.top+=a,n.bottom+=a}if("line"==r)return n;r||(r="local");var o=on(e);if("local"==r?o+=Wn(t.display):o-=t.display.viewOffset,"page"==r||"window"==r){var s=t.display.lineSpace.getBoundingClientRect();o+=s.top+("window"==r?0:pr());var l=s.left+("window"==r?0:dr());n.left+=l,n.right+=l}return n.top+=o,n.bottom+=o,n}function yr(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=dr(),i-=pr();else if("local"==n||!n){var a=t.display.sizer.getBoundingClientRect();r+=a.left,i+=a.top}var o=t.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:i-o.top}}function vr(t,e,n,r,i){return r||(r=Kt(t.doc,e.line)),mr(t,r,tr(t,r,e.ch,i),n)}function br(t,e,n,r,i,a){function o(e,o){var s=rr(t,i,e,o?"right":"left",a);return o?s.left=s.right:s.right=s.left,mr(t,r,s,n)}r=r||Kt(t.doc,e.line),i||(i=nr(t,r));var s=dt(r,t.doc.direction),l=e.ch,c=e.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return o("before"==c?l-1:l,"before"==c);function u(t,e,n){var r=s[e],i=1==r.level;return o(n?t-1:t,i!=n)}var h=ht(s,l,c),f=ut,d=u(l,h,"before"==c);return null!=f&&(d.other=u(l,f,"before"!=c)),d}function _r(t,e){var n=0;e=fe(t.doc,e),t.options.lineWrapping||(n=Nr(t.display)*e.ch);var r=Kt(t.doc,e.line),i=on(r)+Wn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function xr(t,e,n,r,i){var a=ae(t,e,n);return a.xRel=i,r&&(a.outside=r),a}function wr(t,e,n){var r=t.doc;if(n+=t.display.viewOffset,n<0)return xr(r.first,0,null,-1,-1);var i=ne(r,n),a=r.first+r.size-1;if(i>a)return xr(r.first+r.size-1,Kt(r,a).text.length,null,1,1);e<0&&(e=0);for(var o=Kt(r,i);;){var s=Sr(t,o,i,e,n),l=Ze(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;o=Kt(r,i=c.line)}}function kr(t,e,n,r){r-=gr(e);var i=e.text.length,a=lt((function(e){return rr(t,n,e-1).bottom<=r}),i,0);return i=lt((function(e){return rr(t,n,e).top>r}),a,i),{begin:a,end:i}}function Cr(t,e,n,r){n||(n=nr(t,e));var i=mr(t,e,rr(t,n,r),"line").top;return kr(t,e,n,i)}function Er(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function Sr(t,e,n,r,i){i-=on(e);var a=nr(t,e),o=gr(e),s=0,l=e.text.length,c=!0,u=dt(e,t.doc.direction);if(u){var h=(t.options.lineWrapping?Ar:Tr)(t,e,n,a,u,r,i);c=1!=h.level,s=c?h.from:h.to-1,l=c?h.to:h.from-1}var f,d,p=null,g=null,m=lt((function(e){var n=rr(t,a,e);return n.top+=o,n.bottom+=o,!!Er(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=e,g=n),!0)}),s,l),y=!1;if(g){var v=r-g.left<g.right-r,b=v==c;m=p+(b?0:1),d=b?"after":"before",f=v?g.left:g.right}else{c||m!=l&&m!=s||m++,d=0==m?"after":m==e.text.length?"before":rr(t,a,m-(c?1:0)).bottom+o<=i==c?"after":"before";var _=br(t,ae(n,m,d),"line",e,a);f=_.left,y=i<_.top?-1:i>=_.bottom?1:0}return m=st(e.text,m,1),xr(n,m,d,y,r-f)}function Tr(t,e,n,r,i,a,o){var s=lt((function(s){var l=i[s],c=1!=l.level;return Er(br(t,ae(n,c?l.to:l.from,c?"before":"after"),"line",e,r),a,o,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=br(t,ae(n,c?l.from:l.to,c?"after":"before"),"line",e,r);Er(u,a,o,!0)&&u.top>o&&(l=i[s-1])}return l}function Ar(t,e,n,r,i,a,o){var s=kr(t,e,r,o),l=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,h=null,f=0;f<i.length;f++){var d=i[f];if(!(d.from>=c||d.to<=l)){var p=1!=d.level,g=rr(t,r,p?Math.min(c,d.to)-1:Math.max(l,d.from)).right,m=g<a?a-g+1e9:g-a;(!u||h>m)&&(u=d,h=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Mr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==ir){ir=N("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)ir.appendChild(document.createTextNode("x")),ir.appendChild(N("br"));ir.appendChild(document.createTextNode("x"))}M(t.measure,ir);var n=ir.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),A(t.measure),n||1}function Nr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=N("span","xxxxxxxxxx"),n=N("pre",[e],"CodeMirror-line-like");M(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function Dr(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,a=e.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=t.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:Or(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function Or(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Lr(t){var e=Mr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/Nr(t.display)-3);return function(i){if(rn(t.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o<i.widgets.length;o++)i.widgets[o].height&&(a+=i.widgets[o].height);return n?a+(Math.ceil(i.text.length/r)||1)*e:a+e}}function Br(t){var e=t.doc,n=Lr(t);e.iter((function(t){var e=n(t);e!=t.height&&te(t,e)}))}function Ir(t,e,n,r){var i=t.display;if(!n&&"true"==Tt(e).getAttribute("cm-not-content"))return null;var a,o,s=i.lineSpace.getBoundingClientRect();try{a=e.clientX-s.left,o=e.clientY-s.top}catch(h){return null}var l,c=wr(t,a,o);if(r&&c.xRel>0&&(l=Kt(t.doc,c.line).text).length==c.ch){var u=z(l,l.length,t.options.tabSize)-l.length;c=ae(c.line,Math.max(0,Math.round((a-Vn(t.display).left)/Nr(t.display))-u))}return c}function Rr(t,e){if(e>=t.display.viewTo)return null;if(e-=t.display.viewFrom,e<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if(e-=n[r].size,e<0)return r}function Fr(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var i=t.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Ne&&en(t.doc,e)<i.viewTo&&zr(t);else if(n<=i.viewFrom)Ne&&nn(t.doc,n+r)>i.viewFrom?zr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)zr(t);else if(e<=i.viewFrom){var a=qr(t,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):zr(t)}else if(n>=i.viewTo){var o=qr(t,e,e,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):zr(t)}else{var s=qr(t,e,e,-1),l=qr(t,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(kn(t,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):zr(t)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:e<c.lineN+c.size&&(i.externalMeasured=null))}function Pr(t,e,n){t.curOp.viewChanged=!0;var r=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var a=r.view[Rr(t,e)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==j(o,n)&&o.push(n)}}}function zr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function qr(t,e,n,r){var i,a=Rr(t,e),o=t.display.view;if(!Ne||n==t.doc.first+t.doc.size)return{index:a,lineN:n};for(var s=t.display.viewFrom,l=0;l<a;l++)s+=o[l].size;if(s!=e){if(r>0){if(a==o.length-1)return null;i=s+o[a].size-e,a++}else i=s-e;e+=i,n+=i}while(en(t.doc,n)!=n){if(a==(r<0?0:o.length-1))return null;n+=r*o[a-(r<0?1:0)].size,a+=r}return{index:a,lineN:n}}function jr(t,e,n){var r=t.display,i=r.view;0==i.length||e>=r.viewTo||n<=r.viewFrom?(r.view=kn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=kn(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(Rr(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(kn(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Rr(t,n)))),r.viewTo=n}function Hr(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var i=e[r];i.hidden||i.node&&!i.changes||++n}return n}function Ur(t){t.display.input.showSelection(t.display.input.prepareSelection())}function $r(t,e){void 0===e&&(e=!0);var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),a=r.selection=document.createDocumentFragment(),o=t.options.$customCursor;o&&(e=!0);for(var s=0;s<n.sel.ranges.length;s++)if(e||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=t.display.viewTo||l.to().line<t.display.viewFrom)){var c=l.empty();if(o){var u=o(t,l);u&&Wr(t,u,i)}else(c||t.options.showCursorWhenSelecting)&&Wr(t,l.head,i);c||Vr(t,l,a)}}return r}function Wr(t,e,n){var r=br(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(N("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var a=vr(t,e,"div",null,null),o=a.right-a.left;i.style.width=(o>0?o:t.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Yr(t,e){return t.top-e.top||t.left-e.left}function Vr(t,e,n){var r=t.display,i=t.doc,a=document.createDocumentFragment(),o=Vn(t.display),s=o.left,l=Math.max(r.sizerWidth,Xn(t)-r.sizer.offsetLeft)-o.right,c="ltr"==i.direction;function u(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),a.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?l-t:n)+"px;\n height: "+(r-e)+"px"))}function h(e,n,r){var a,o,h=Kt(i,e),f=h.text.length;function d(n,r){return vr(t,ae(e,n),"div",h,r)}function p(e,n,r){var i=Cr(t,h,null,e),a="ltr"==n==("after"==r)?"left":"right",o="after"==r?i.begin:i.end-(/\s/.test(h.text.charAt(i.end-1))?2:1);return d(o,a)[a]}var g=dt(h,i.direction);return ct(g,n||0,null==r?f:r,(function(t,e,i,h){var m="ltr"==i,y=d(t,m?"left":"right"),v=d(e-1,m?"right":"left"),b=null==n&&0==t,_=null==r&&e==f,x=0==h,w=!g||h==g.length-1;if(v.top-y.top<=3){var k=(c?b:_)&&x,C=(c?_:b)&&w,E=k?s:(m?y:v).left,S=C?l:(m?v:y).right;u(E,y.top,S-E,y.bottom)}else{var T,A,M,N;m?(T=c&&b&&x?s:y.left,A=c?l:p(t,i,"before"),M=c?s:p(e,i,"after"),N=c&&_&&w?l:v.right):(T=c?p(t,i,"before"):s,A=!c&&b&&x?l:y.right,M=!c&&_&&w?s:v.left,N=c?p(e,i,"after"):l),u(T,y.top,A-T,y.bottom),y.bottom<v.top&&u(s,y.bottom,null,v.top),u(M,v.top,N-M,v.bottom)}(!a||Yr(y,a)<0)&&(a=y),Yr(v,a)<0&&(a=v),(!o||Yr(y,o)<0)&&(o=y),Yr(v,o)<0&&(o=v)})),{start:a,end:o}}var f=e.from(),d=e.to();if(f.line==d.line)h(f.line,f.ch,d.ch);else{var p=Kt(i,f.line),g=Kt(i,d.line),m=Qe(p)==Qe(g),y=h(f.line,f.ch,m?p.text.length+1:null).end,v=h(d.line,m?0:null,d.ch).start;m&&(y.top<v.top-2?(u(y.right,y.top,null,y.bottom),u(s,v.top,v.left,v.bottom)):u(y.right,y.top,v.left-y.right,y.bottom)),y.bottom<v.top&&u(s,y.bottom,null,v.top)}n.appendChild(a)}function Gr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||Qr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Xr(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Kr(t))}function Zr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Qr(t))}),100)}function Kr(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(vt(t,"focus",t,e),t.state.focused=!0,B(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Gr(t))}function Qr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(vt(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Jr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=Math.max(0,e.scroller.getBoundingClientRect().top),i=e.lineDiv.getBoundingClientRect().top,a=0,l=0;l<e.view.length;l++){var c=e.view[l],u=t.options.lineWrapping,h=void 0,f=0;if(!c.hidden){if(i+=c.line.height,o&&s<8){var d=c.node.offsetTop+c.node.offsetHeight;h=d-n,n=d}else{var p=c.node.getBoundingClientRect();h=p.bottom-p.top,!u&&c.text.firstChild&&(f=c.text.firstChild.getBoundingClientRect().right-p.left-1)}var g=c.line.height-h;if((g>.005||g<-.005)&&(i<r&&(a-=g),te(c.line,h),ti(c.line),c.rest))for(var m=0;m<c.rest.length;m++)ti(c.rest[m]);if(f>t.display.sizerWidth){var y=Math.ceil(f/Nr(t.display));y>t.display.maxLineLength&&(t.display.maxLineLength=y,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}Math.abs(a)>2&&(e.scroller.scrollTop+=a)}function ti(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ei(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-Wn(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,a=ne(e,r),o=ne(e,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<a?(a=s,o=ne(e,on(Kt(e,s))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=o&&(a=ne(e,on(Kt(e,l))-t.wrapper.clientHeight),o=l)}return{from:a,to:Math.max(o,a+1)}}function ni(t,e){if(!bt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var a=N("div","",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Wn(t.display))+"px;\n height: "+(e.bottom-e.top+Gn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(i),t.display.lineSpace.removeChild(a)}}}function ri(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==e.sticky?ae(e.line,e.ch+1,"before"):e,e=e.ch?ae(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e);for(var a=0;a<5;a++){var o=!1,s=br(t,e),l=n&&n!=e?br(t,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var c=ai(t,i),u=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=c.scrollTop&&(fi(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(o=!0)),null!=c.scrollLeft&&(pi(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return i}function ii(t,e){var n=ai(t,e);null!=n.scrollTop&&fi(t,n.scrollTop),null!=n.scrollLeft&&pi(t,n.scrollLeft)}function ai(t,e){var n=t.display,r=Mr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,a=Zn(t),o={};e.bottom-e.top>a&&(e.bottom=e.top+a);var s=t.doc.height+Yn(n),l=e.top<r,c=e.bottom>s-r;if(e.top<i)o.scrollTop=l?0:e.top;else if(e.bottom>i+a){var u=Math.min(e.top,(c?s:e.bottom)-a);u!=i&&(o.scrollTop=u)}var h=t.options.fixedGutter?0:n.gutters.offsetWidth,f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-h,d=Xn(t)-n.gutters.offsetWidth,p=e.right-e.left>d;return p&&(e.right=e.left+d),e.left<10?o.scrollLeft=0:e.left<f?o.scrollLeft=Math.max(0,e.left+h-(p?0:10)):e.right>d+f-3&&(o.scrollLeft=e.right+(p?0:10)-d),o}function oi(t,e){null!=e&&(ui(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function si(t){ui(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function li(t,e,n){null==e&&null==n||ui(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function ci(t,e){ui(t),t.curOp.scrollToPos=e}function ui(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;var n=_r(t,e.from),r=_r(t,e.to);hi(t,n,r,e.margin)}}function hi(t,e,n,r){var i=ai(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});li(t,i.scrollLeft,i.scrollTop)}function fi(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||Ui(t,{top:e}),di(t,e,!0),n&&Ui(t),Ii(t,100))}function di(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function pi(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,Vi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function gi(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+Yn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Gn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var mi=function(t,e,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),gt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),gt(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mi.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var a=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},mi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mi.prototype.zeroWidthHack=function(){var t=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new q,this.disableVert=new q},mi.prototype.enableZeroWidthBar=function(t,e,n){function r(){var i=t.getBoundingClientRect(),a="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);a!=t?t.style.visibility="hidden":e.set(1e3,r)}t.style.visibility="",e.set(1e3,r)},mi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var yi=function(){};function vi(t,e){e||(e=gi(t));var n=t.display.barWidth,r=t.display.barHeight;bi(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Jr(t),bi(t,gi(t)),n=t.display.barWidth,r=t.display.barHeight}function bi(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}yi.prototype.update=function(){return{bottom:0,right:0}},yi.prototype.setScrollLeft=function(){},yi.prototype.setScrollTop=function(){},yi.prototype.clear=function(){};var _i={native:mi,null:yi};function xi(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new _i[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),gt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?pi(t,e):fi(t,e)}),t),t.display.scrollbars.addClass&&B(t.display.wrapper,t.display.scrollbars.addClass)}var wi=0;function ki(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++wi,markArrays:null},En(t.curOp)}function Ci(t){var e=t.curOp;e&&Tn(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;Ei(t)}))}function Ei(t){for(var e=t.ops,n=0;n<e.length;n++)Si(e[n]);for(var r=0;r<e.length;r++)Ti(e[r]);for(var i=0;i<e.length;i++)Ai(e[i]);for(var a=0;a<e.length;a++)Mi(e[a]);for(var o=0;o<e.length;o++)Ni(e[o])}function Si(t){var e=t.cm,n=e.display;Pi(e),t.updateMaxLine&&ln(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Fi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Ti(t){t.updatedDisplay=t.mustUpdate&&ji(t.cm,t.update)}function Ai(t){var e=t.cm,n=e.display;t.updatedDisplay&&Jr(e),t.barMeasure=gi(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=tr(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Gn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Xn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Mi(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&pi(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==L();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&vi(e,t.barMeasure),t.updatedDisplay&&Yi(e,t.barMeasure),t.selectionChanged&&Gr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Xr(t.cm)}function Ni(t){var e=t.cm,n=e.display,r=e.doc;if(t.updatedDisplay&&Hi(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&di(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&pi(e,t.scrollLeft,!0,!0),t.scrollToPos){var i=ri(e,fe(r,t.scrollToPos.from),fe(r,t.scrollToPos.to),t.scrollToPos.margin);ni(e,i)}var a=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(a)for(var s=0;s<a.length;++s)a[s].lines.length||vt(a[s],"hide");if(o)for(var l=0;l<o.length;++l)o[l].lines.length&&vt(o[l],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&vt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Di(t,e){if(t.curOp)return e();ki(t);try{return e()}finally{Ci(t)}}function Oi(t,e){return function(){if(t.curOp)return e.apply(t,arguments);ki(t);try{return e.apply(t,arguments)}finally{Ci(t)}}}function Li(t){return function(){if(this.curOp)return t.apply(this,arguments);ki(this);try{return t.apply(this,arguments)}finally{Ci(this)}}}function Bi(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);ki(e);try{return t.apply(this,arguments)}finally{Ci(e)}}}function Ii(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,F(Ri,t))}function Ri(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=be(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(a){if(r.line>=t.display.viewFrom){var o=a.styles,s=a.text.length>t.options.maxHighlightLength?Vt(e.mode,r.state):null,l=ye(t,a,r,!0);s&&(r.state=s),a.styles=l.styles;var c=a.styleClasses,u=l.classes;u?a.styleClasses=u:c&&(a.styleClasses=null);for(var h=!o||o.length!=a.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!h&&f<o.length;++f)h=o[f]!=a.styles[f];h&&i.push(r.line),a.stateAfter=r.save(),r.nextLine()}else a.text.length<=t.options.maxHighlightLength&&_e(t,a.text,r),a.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Ii(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Di(t,(function(){for(var e=0;e<i.length;e++)Pr(t,i[e],"text")}))}}var Fi=function(t,e,n){var r=t.display;this.viewport=e,this.visible=ei(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Xn(t),this.force=n,this.dims=Dr(t),this.events=[]};function Pi(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Gn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Gn(t)+"px",e.scrollbarsClipped=!0)}function zi(t){if(t.hasFocus())return null;var e=L();if(!e||!O(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&O(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function qi(t){if(t&&t.activeElt&&t.activeElt!=L()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&O(document.body,t.anchorNode)&&O(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}function ji(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return zr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(t))return!1;Gi(t)&&(zr(t),e.dims=Dr(t));var i=r.first+r.size,a=Math.max(e.visible.from-t.options.viewportMargin,r.first),o=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(r.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),Ne&&(a=en(t.doc,a),o=nn(t.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;jr(t,a,o),n.viewOffset=on(Kt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=Hr(t);if(!s&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=zi(t);return l>4&&(n.lineDiv.style.display="none"),$i(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,qi(c),A(n.cursorDiv),A(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Ii(t,400)),n.updateLineNumbers=null,!0}function Hi(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Xn(t))r&&(e.visible=ei(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Yn(t.display)-Zn(t),n.top)}),e.visible=ei(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!ji(t,e))break;Jr(t);var i=gi(t);Ur(t),vi(t,i),Yi(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Ui(t,e){var n=new Fi(t,e);if(ji(t,n)){Jr(t),Hi(t,n);var r=gi(t);Ur(t),vi(t,r),Yi(t,r),n.finish()}}function $i(t,e,n){var r=t.display,i=t.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(e){var n=e.nextSibling;return l&&b&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,u=r.viewFrom,h=0;h<c.length;h++){var f=c[h];if(f.hidden);else if(f.node&&f.node.parentNode==a){while(o!=f.node)o=s(o);var d=i&&null!=e&&e<=u&&f.lineNumber;f.changes&&(j(f.changes,"gutter")>-1&&(d=!1),Dn(t,f,u,n)),d&&(A(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(ie(t.options,u)))),o=f.node.nextSibling}else{var p=zn(t,f,u,n);a.insertBefore(p,o)}u+=f.size}while(o)o=s(o)}function Wi(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px",Mn(t,"gutterChanged",t)}function Yi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Gn(t)+"px"}function Vi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=Or(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,a=r+"px",o=0;o<n.length;o++)if(!n[o].hidden){t.options.fixedGutter&&(n[o].gutter&&(n[o].gutter.style.left=a),n[o].gutterBackground&&(n[o].gutterBackground.style.left=a));var s=n[o].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=a}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function Gi(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=ie(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(N("div",[N("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=i.firstChild.offsetWidth,o=i.offsetWidth-a;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(a,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Wi(t.display),!0}return!1}function Xi(t,e){for(var n=[],r=!1,i=0;i<t.length;i++){var a=t[i],o=null;if("string"!=typeof a&&(o=a.style,a=a.className),"CodeMirror-linenumbers"==a){if(!e)continue;r=!0}n.push({className:a,style:o})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Zi(t){var e=t.gutters,n=t.gutterSpecs;A(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],a=i.className,o=i.style,s=e.appendChild(N("div",null,"CodeMirror-gutter "+a));o&&(s.style.cssText=o),"CodeMirror-linenumbers"==a&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",Wi(t)}function Ki(t){Zi(t.display),Fr(t),Vi(t)}function Qi(t,e,r,i){var a=this;this.input=r,a.scrollbarFiller=N("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=N("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=D("div",null,"CodeMirror-code"),a.selectionDiv=N("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=N("div",null,"CodeMirror-cursors"),a.measure=N("div",null,"CodeMirror-measure"),a.lineMeasure=N("div",null,"CodeMirror-measure"),a.lineSpace=D("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var c=D("div",[a.lineSpace],"CodeMirror-lines");a.mover=N("div",[c],null,"position: relative"),a.sizer=N("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=N("div",null,null,"position: absolute; height: "+H+"px; width: 1px;"),a.gutters=N("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=N("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=N("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),a.wrapper.setAttribute("translate","no"),o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),l||n&&v||(a.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(a.wrapper):t(a.wrapper)),a.viewFrom=a.viewTo=e.first,a.reportedViewFrom=a.reportedViewTo=e.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=Xi(i.gutters,i.lineNumbers),Zi(a),r.init(a)}Fi.prototype.signal=function(t,e){xt(t,e)&&this.events.push(arguments)},Fi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)vt.apply(null,this.events[t])};var Ji=0,ta=null;function ea(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function na(t){var e=ea(t);return e.x*=ta,e.y*=ta,e}function ra(t,e){u&&h>=102&&(null==t.display.chromeScrollHack?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout((function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""}),100));var r=ea(e),i=r.x,a=r.y,o=ta;0===e.deltaMode&&(i=e.deltaX,a=e.deltaY,o=1);var s=t.display,c=s.scroller,d=c.scrollWidth>c.clientWidth,p=c.scrollHeight>c.clientHeight;if(i&&d||a&&p){if(a&&b&&l)t:for(var g=e.target,m=s.view;g!=c;g=g.parentNode)for(var y=0;y<m.length;y++)if(m[y].node==g){t.display.currentWheelTarget=g;break t}if(i&&!n&&!f&&null!=o)return a&&p&&fi(t,Math.max(0,c.scrollTop+a*o)),pi(t,Math.max(0,c.scrollLeft+i*o)),(!a||a&&p)&&kt(e),void(s.wheelStartX=null);if(a&&null!=o){var v=a*o,_=t.doc.scrollTop,x=_+s.wrapper.clientHeight;v<0?_=Math.max(0,_+v-50):x=Math.min(t.doc.height,x+v+50),Ui(t,{top:_,bottom:x})}Ji<20&&0!==e.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=a,setTimeout((function(){if(null!=s.wheelStartX){var t=c.scrollLeft-s.wheelStartX,e=c.scrollTop-s.wheelStartY,n=e&&s.wheelDY&&e/s.wheelDY||t&&s.wheelDX&&t/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ta=(ta*Ji+n)/(Ji+1),++Ji)}}),200)):(s.wheelDX+=i,s.wheelDY+=a))}}o?ta=-.53:n?ta=15:u?ta=-.7:d&&(ta=-1/3);var ia=function(t,e){this.ranges=t,this.primIndex=e};ia.prototype.primary=function(){return this.ranges[this.primIndex]},ia.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!se(n.anchor,r.anchor)||!se(n.head,r.head))return!1}return!0},ia.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new aa(le(this.ranges[e].anchor),le(this.ranges[e].head));return new ia(t,this.primIndex)},ia.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ia.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(oe(e,r.from())>=0&&oe(t,r.to())<=0)return n}return-1};var aa=function(t,e){this.anchor=t,this.head=e};function oa(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return oe(t.from(),e.from())})),n=j(e,i);for(var a=1;a<e.length;a++){var o=e[a],s=e[a-1],l=oe(s.to(),o.from());if(r&&!o.empty()?l>0:l>=0){var c=ue(s.from(),o.from()),u=ce(s.to(),o.to()),h=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,e.splice(--a,2,new aa(h?u:c,h?c:u))}}return new ia(e,n)}function sa(t,e){return new ia([new aa(t,e||t)],0)}function la(t){return t.text?ae(t.from.line+t.text.length-1,Z(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function ca(t,e){if(oe(t,e.from)<0)return t;if(oe(t,e.to)<=0)return la(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=la(e).ch-e.to.ch),ae(n,r)}function ua(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new aa(ca(i.anchor,e),ca(i.head,e)))}return oa(t.cm,n,t.sel.primIndex)}function ha(t,e,n){return t.line==e.line?ae(n.line,t.ch-e.ch+n.ch):ae(n.line+(t.line-e.line),t.ch)}function fa(t,e,n){for(var r=[],i=ae(t.first,0),a=i,o=0;o<e.length;o++){var s=e[o],l=ha(s.from,i,a),c=ha(la(s),i,a);if(i=s.to,a=c,"around"==n){var u=t.sel.ranges[o],h=oe(u.head,u.anchor)<0;r[o]=new aa(h?c:l,h?l:c)}else r[o]=new aa(l,l)}return new ia(r,t.sel.primIndex)}function da(t){t.doc.mode=$t(t.options,t.doc.modeOption),pa(t)}function pa(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Ii(t,100),t.state.modeGen++,t.curOp&&Fr(t)}function ga(t,e){return 0==e.from.ch&&0==e.to.ch&&""==Z(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function ma(t,e,n,r){function i(t){return n?n[t]:null}function a(t,n,i){un(t,n,i,r),Mn(t,"change",t,e)}function o(t,e){for(var n=[],a=t;a<e;++a)n.push(new cn(c[a],i(a),r));return n}var s=e.from,l=e.to,c=e.text,u=Kt(t,s.line),h=Kt(t,l.line),f=Z(c),d=i(c.length-1),p=l.line-s.line;if(e.full)t.insert(0,o(0,c.length)),t.remove(c.length,t.size-c.length);else if(ga(t,e)){var g=o(0,c.length-1);a(h,h.text,d),p&&t.remove(s.line,p),g.length&&t.insert(s.line,g)}else if(u==h)if(1==c.length)a(u,u.text.slice(0,s.ch)+f+u.text.slice(l.ch),d);else{var m=o(1,c.length-1);m.push(new cn(f+u.text.slice(l.ch),d,r)),a(u,u.text.slice(0,s.ch)+c[0],i(0)),t.insert(s.line+1,m)}else if(1==c.length)a(u,u.text.slice(0,s.ch)+c[0]+h.text.slice(l.ch),i(0)),t.remove(s.line+1,p);else{a(u,u.text.slice(0,s.ch)+c[0],i(0)),a(h,f+h.text.slice(l.ch),d);var y=o(1,c.length-1);p>1&&t.remove(s.line+1,p-1),t.insert(s.line+1,y)}Mn(t,"change",t,e)}function ya(t,e,n){function r(t,i,a){if(t.linked)for(var o=0;o<t.linked.length;++o){var s=t.linked[o];if(s.doc!=i){var l=a&&s.sharedHist;n&&!l||(e(s.doc,l),r(s.doc,t,l))}}}r(t,null,!0)}function va(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,Br(t),da(t),ba(t),t.options.direction=e.direction,t.options.lineWrapping||ln(t),t.options.mode=e.modeOption,Fr(t)}function ba(t){("rtl"==t.doc.direction?B:T)(t.display.lineDiv,"CodeMirror-rtl")}function _a(t){Di(t,(function(){ba(t),Fr(t)}))}function xa(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function wa(t,e){var n={from:le(e.from),to:la(e),text:Qt(t,e.from,e.to)};return Ma(t,n,e.from.line,e.to.line+1),ya(t,(function(t){return Ma(t,n,e.from.line,e.to.line+1)}),!0),n}function ka(t){while(t.length){var e=Z(t);if(!e.ranges)break;t.pop()}}function Ca(t,e){return e?(ka(t.done),Z(t.done)):t.done.length&&!Z(t.done).ranges?Z(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),Z(t.done)):void 0}function Ea(t,e,n,r){var i=t.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(a=Ca(i,i.lastOp==r)))o=Z(a.changes),0==oe(e.from,e.to)&&0==oe(e.from,o.to)?o.to=la(e):a.changes.push(wa(t,e));else{var l=Z(i.done);l&&l.ranges||Aa(t.sel,i.done),a={changes:[wa(t,e)],generation:i.generation},i.done.push(a);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,o||vt(t,"historyAdded")}function Sa(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function Ta(t,e,n,r){var i=t.history,a=r&&r.origin;n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Sa(t,a,Z(i.done),e))?i.done[i.done.length-1]=e:Aa(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&!1!==r.clearRedo&&ka(i.undone)}function Aa(t,e){var n=Z(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Ma(t,e,n,r){var i=e["spans_"+t.id],a=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[a]=n.markedSpans),++a}))}function Na(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Da(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(Na(n[i]));return r}function Oa(t,e){var n=Da(t,e),r=ze(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var a=n[i],o=r[i];if(a&&o)t:for(var s=0;s<o.length;++s){for(var l=o[s],c=0;c<a.length;++c)if(a[c].marker==l.marker)continue t;a.push(l)}else o&&(n[i]=o)}return n}function La(t,e,n){for(var r=[],i=0;i<t.length;++i){var a=t[i];if(a.ranges)r.push(n?ia.prototype.deepCopy.call(a):a);else{var o=a.changes,s=[];r.push({changes:s});for(var l=0;l<o.length;++l){var c=o[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),e)for(var h in c)(u=h.match(/^spans_(\d+)$/))&&j(e,Number(u[1]))>-1&&(Z(s)[h]=c[h],delete c[h])}}}return r}function Ba(t,e,n,r){if(r){var i=t.anchor;if(n){var a=oe(e,i)<0;a!=oe(n,i)<0?(i=e,e=n):a!=oe(e,n)<0&&(e=n)}return new aa(i,e)}return new aa(n||e,e)}function Ia(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),ja(t,new ia([Ba(t.sel.primary(),e,n,i)],0),r)}function Ra(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),a=0;a<t.sel.ranges.length;a++)r[a]=Ba(t.sel.ranges[a],e[a],null,i);var o=oa(t.cm,r,t.sel.primIndex);ja(t,o,n)}function Fa(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,ja(t,oa(t.cm,i,t.sel.primIndex),r)}function Pa(t,e,n,r){ja(t,sa(e,n),r)}function za(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new aa(fe(t,e[n].anchor),fe(t,e[n].head))},origin:n&&n.origin};return vt(t,"beforeSelectionChange",t,r),t.cm&&vt(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?oa(t.cm,r.ranges,r.ranges.length-1):e}function qa(t,e,n){var r=t.history.done,i=Z(r);i&&i.ranges?(r[r.length-1]=e,Ha(t,e,n)):ja(t,e,n)}function ja(t,e,n){Ha(t,e,n),Ta(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function Ha(t,e,n){(xt(t,"beforeSelectionChange")||t.cm&&xt(t.cm,"beforeSelectionChange"))&&(e=za(t,e,n));var r=n&&n.bias||(oe(e.primary().head,t.sel.primary().head)<0?-1:1);Ua(t,Wa(t,e,r,!0)),n&&!1===n.scroll||!t.cm||"nocursor"==t.cm.getOption("readOnly")||si(t.cm)}function Ua(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,_t(t.cm)),Mn(t,"cursorActivity",t))}function $a(t){Ua(t,Wa(t,t.sel,null,!1))}function Wa(t,e,n,r){for(var i,a=0;a<e.ranges.length;a++){var o=e.ranges[a],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[a],l=Va(t,o.anchor,s&&s.anchor,n,r),c=o.head==o.anchor?l:Va(t,o.head,s&&s.head,n,r);(i||l!=o.anchor||c!=o.head)&&(i||(i=e.ranges.slice(0,a)),i[a]=new aa(l,c))}return i?oa(t.cm,i,e.primIndex):e}function Ya(t,e,n,r,i){var a=Kt(t,e.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(u?s.to>=e.ch:s.to>e.ch))){if(i&&(vt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!l.atomic)continue;if(n){var h=l.find(r<0?1:-1),f=void 0;if((r<0?u:c)&&(h=Ga(t,h,-r,h&&h.line==e.line?a:null)),h&&h.line==e.line&&(f=oe(h,n))&&(r<0?f<0:f>0))return Ya(t,h,e,r,i)}var d=l.find(r<0?-1:1);return(r<0?c:u)&&(d=Ga(t,d,r,d.line==e.line?a:null)),d?Ya(t,d,e,r,i):null}}return e}function Va(t,e,n,r,i){var a=r||1,o=Ya(t,e,n,a,i)||!i&&Ya(t,e,n,a,!0)||Ya(t,e,n,-a,i)||!i&&Ya(t,e,n,-a,!0);return o||(t.cantEdit=!0,ae(t.first,0))}function Ga(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?fe(t,ae(e.line-1)):null:n>0&&e.ch==(r||Kt(t,e.line)).text.length?e.line<t.first+t.size-1?ae(e.line+1,0):null:new ae(e.line,e.ch+n)}function Xa(t){t.setSelection(ae(t.firstLine(),0),ae(t.lastLine()),$)}function Za(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,i,a){e&&(r.from=fe(t,e)),n&&(r.to=fe(t,n)),i&&(r.text=i),void 0!==a&&(r.origin=a)}),vt(t,"beforeChange",t,r),t.cm&&vt(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Ka(t,e,n){if(t.cm){if(!t.cm.curOp)return Oi(t.cm,Ka)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(xt(t,"beforeChange")||t.cm&&xt(t.cm,"beforeChange"))||(e=Za(t,e,!0),e)){var r=Me&&!n&&je(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)Qa(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else Qa(t,e)}}function Qa(t,e){if(1!=e.text.length||""!=e.text[0]||0!=oe(e.from,e.to)){var n=ua(t,e);Ea(t,e,n,t.cm?t.cm.curOp.id:NaN),eo(t,e,n,ze(t,e));var r=[];ya(t,(function(t,n){n||-1!=j(r,t.history)||(oo(t.history,e),r.push(t.history)),eo(t,e,null,ze(t,e))}))}}function Ja(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,a=t.history,o=t.sel,s="undo"==e?a.done:a.undone,l="undo"==e?a.undone:a.done,c=0;c<s.length;c++)if(i=s[c],n?i.ranges&&!i.equals(t.sel):!i.ranges)break;if(c!=s.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(i=s.pop(),!i.ranges){if(r)return void s.push(i);break}if(Aa(i,l),n&&!i.equals(t.sel))return void ja(t,i,{clearRedo:!1});o=i}var u=[];Aa(o,l),l.push({changes:u,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var h=xt(t,"beforeChange")||t.cm&&xt(t.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=e,h&&!Za(t,r,!1))return s.length=0,{};u.push(wa(t,r));var a=n?ua(t,r):Z(s);eo(t,r,a,Oa(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:la(r)});var o=[];ya(t,(function(t,e){e||-1!=j(o,t.history)||(oo(t.history,r),o.push(t.history)),eo(t,r,null,Oa(t,r))}))},d=i.changes.length-1;d>=0;--d){var p=f(d);if(p)return p.v}}}}function to(t,e){if(0!=e&&(t.first+=e,t.sel=new ia(K(t.sel.ranges,(function(t){return new aa(ae(t.anchor.line+e,t.anchor.ch),ae(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Fr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)Pr(t.cm,r,"gutter")}}function eo(t,e,n,r){if(t.cm&&!t.cm.curOp)return Oi(t.cm,eo)(t,e,n,r);if(e.to.line<t.first)to(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);to(t,i),e={from:ae(t.first,0),to:ae(e.to.line+i,e.to.ch),text:[Z(e.text)],origin:e.origin}}var a=t.lastLine();e.to.line>a&&(e={from:e.from,to:ae(a,Kt(t,a).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Qt(t,e.from,e.to),n||(n=ua(t,e)),t.cm?no(t.cm,e,r):ma(t,e,r),Ha(t,n,$),t.cantEdit&&Va(t,ae(t.firstLine(),0))&&(t.cantEdit=!1)}}function no(t,e,n){var r=t.doc,i=t.display,a=e.from,o=e.to,s=!1,l=a.line;t.options.lineWrapping||(l=ee(Qe(Kt(r,a.line))),r.iter(l,o.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&_t(t),ma(r,e,n,Lr(t)),t.options.lineWrapping||(r.iter(l,a.line+e.text.length,(function(t){var e=sn(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),Ae(r,a.line),Ii(t,400);var c=e.text.length-(o.line-a.line)-1;e.full?Fr(t):a.line!=o.line||1!=e.text.length||ga(t.doc,e)?Fr(t,a.line,o.line+1,c):Pr(t,a.line,"text");var u=xt(t,"changes"),h=xt(t,"change");if(h||u){var f={from:a,to:o,text:e.text,removed:e.removed,origin:e.origin};h&&Mn(t,"change",t,f),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(f)}t.display.selForContextMenu=null}function ro(t,e,n,r,i){var a;r||(r=n),oe(r,n)<0&&(a=[r,n],n=a[0],r=a[1]),"string"==typeof e&&(e=t.splitLines(e)),Ka(t,{from:n,to:r,text:e,origin:i})}function io(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function ao(t,e,n,r){for(var i=0;i<t.length;++i){var a=t[i],o=!0;if(a.ranges){a.copied||(a=t[i]=a.deepCopy(),a.copied=!0);for(var s=0;s<a.ranges.length;s++)io(a.ranges[s].anchor,e,n,r),io(a.ranges[s].head,e,n,r)}else{for(var l=0;l<a.changes.length;++l){var c=a.changes[l];if(n<c.from.line)c.from=ae(c.from.line+r,c.from.ch),c.to=ae(c.to.line+r,c.to.ch);else if(e<=c.to.line){o=!1;break}}o||(t.splice(0,i+1),i=0)}}}function oo(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;ao(t.done,n,r,i),ao(t.undone,n,r,i)}function so(t,e,n,r){var i=e,a=e;return"number"==typeof e?a=Kt(t,he(t,e)):i=ee(e),null==i?null:(r(a,i)&&t.cm&&Pr(t.cm,i,n),a)}function lo(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function co(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var i=t[r];e+=i.chunkSize(),n+=i.height,i.parent=this}this.size=e,this.height=n,this.parent=null}aa.prototype.from=function(){return ue(this.anchor,this.head)},aa.prototype.to=function(){return ce(this.anchor,this.head)},aa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},lo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var i=this.lines[n];this.height-=i.height,hn(i),Mn(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},co.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(t<i){var a=Math.min(e,i-t),o=r.height;if(r.removeInner(t,a),this.height-=o-r.height,i==a&&(this.children.splice(n--,1),r.parent=null),0==(e-=a))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof lo))){var s=[];this.collapse(s),this.children=[new lo(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(t<=a){if(i.insertInner(t,e,n),i.lines&&i.lines.length>50){for(var o=i.lines.length%25+25,s=o;s<i.lines.length;){var l=new lo(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,o),this.maybeSpill()}break}t-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=t.children.splice(t.children.length-5,5),n=new co(e);if(t.parent){t.size-=n.size,t.height-=n.height;var r=j(t.parent.children,t);t.parent.children.splice(r+1,0,n)}else{var i=new co(t.children);i.parent=t,t.children=[i,n],t=i}n.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(t<a){var o=Math.min(e,a-t);if(i.iterN(t,o,n))return!0;if(0==(e-=o))break;t=0}else t-=a}}};var uo=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function ho(t,e,n){on(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&oi(t,n)}function fo(t,e,n,r){var i=new uo(t,n,r),a=t.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),so(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=e,a&&!rn(t,e)){var r=on(e)<t.scrollTop;te(e,e.height+Un(i)),r&&oi(a,i.height),a.curOp.forceUpdate=!0}return!0})),a&&Mn(a,"lineWidgetAdded",a,i,"number"==typeof e?e:ee(e)),i}uo.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=ee(n);if(null!=r&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(n.widgets=null);var a=Un(this);te(n,Math.max(0,n.height-a)),t&&(Di(t,(function(){ho(t,n,-a),Pr(t,r,"widget")})),Mn(t,"lineWidgetCleared",t,this,r))}},uo.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Un(this)-e;i&&(rn(this.doc,r)||te(r,r.height+i),n&&Di(n,(function(){n.curOp.forceUpdate=!0,ho(n,r,i),Mn(n,"lineWidgetChanged",n,t,ee(r))})))},wt(uo);var po=0,go=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++po};function mo(t,e,n,r,i){if(r&&r.shared)return vo(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return Oi(t.cm,mo)(t,e,n,r,i);var a=new go(t,i),o=oe(e,n);if(r&&P(r,a,!1),o>0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=D("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Ke(t,e.line,e,n,a)||e.line!=n.line&&Ke(t,n.line,e,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Oe()}a.addToHistory&&Ea(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,l=e.line,c=t.cm;if(t.iter(l,n.line+1,(function(r){c&&a.collapsed&&!c.options.lineWrapping&&Qe(r)==c.display.maxLine&&(s=!0),a.collapsed&&l!=e.line&&te(r,0),Re(r,new Le(a,l==e.line?e.ch:null,l==n.line?n.ch:null),t.cm&&t.cm.curOp),++l})),a.collapsed&&t.iter(e.line,n.line+1,(function(e){rn(t,e)&&te(e,0)})),a.clearOnEnter&>(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(De(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),a.collapsed&&(a.id=++po,a.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),a.collapsed)Fr(c,e.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=e.line;u<=n.line;u++)Pr(c,u,"text");a.atomic&&$a(c.doc),Mn(c,"markerAdded",c,a)}return a}go.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&ki(t),xt(this,"clear")){var n=this.find();n&&Mn(this,"clear",n.from,n.to)}for(var r=null,i=null,a=0;a<this.lines.length;++a){var o=this.lines[a],s=Be(o.markedSpans,this);t&&!this.collapsed?Pr(t,ee(o),"text"):t&&(null!=s.to&&(i=ee(o)),null!=s.from&&(r=ee(o))),o.markedSpans=Ie(o.markedSpans,s),null==s.from&&this.collapsed&&!rn(this.doc,o)&&t&&te(o,Mr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Qe(this.lines[l]),u=sn(c);u>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Fr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&$a(t.doc)),t&&Mn(t,"markerCleared",t,this,r,i),e&&Ci(t),this.parent&&this.parent.clear()}},go.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var a=this.lines[i],o=Be(a.markedSpans,this);if(null!=o.from&&(n=ae(e?a:ee(a),o.from),-1==t))return n;if(null!=o.to&&(r=ae(e?a:ee(a),o.to),1==t))return r}return n&&{from:n,to:r}},go.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&Di(r,(function(){var i=e.line,a=ee(e.line),o=er(r,a);if(o&&(ur(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!rn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Un(n)-s;l&&te(i,i.height+l)}Mn(r,"markerChanged",r,t)}))},go.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=j(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},go.prototype.detachLine=function(t){if(this.lines.splice(j(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},wt(go);var yo=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function vo(t,e,n,r,i){r=P(r),r.shared=!1;var a=[mo(t,e,n,r,i)],o=a[0],s=r.widgetNode;return ya(t,(function(t){s&&(r.widgetNode=s.cloneNode(!0)),a.push(mo(t,fe(t,e),fe(t,n),r,i));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;o=Z(a)})),new yo(a,o)}function bo(t){return t.findMarks(ae(t.first,0),t.clipPos(ae(t.lastLine())),(function(t){return t.parent}))}function _o(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),a=t.clipPos(i.from),o=t.clipPos(i.to);if(oe(a,o)){var s=mo(t,a,o,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function xo(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];ya(n.primary.doc,(function(t){return r.push(t)}));for(var i=0;i<n.markers.length;i++){var a=n.markers[i];-1==j(r,a.doc)&&(a.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}yo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Mn(this,"clear")}},yo.prototype.find=function(t,e){return this.primary.find(t,e)},wt(yo);var wo=0,ko=function(t,e,n,r,i){if(!(this instanceof ko))return new ko(t,e,n,r,i);null==n&&(n=0),co.call(this,[new lo([new cn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var a=ae(n,0);this.sel=sa(a),this.history=new xa(null),this.id=++wo,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),ma(this,{from:a,to:a,text:t}),ja(this,sa(a),$)};ko.prototype=tt(co.prototype,{constructor:ko,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Jt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:Bi((function(t){var e=ae(this.first,0),n=this.first+this.size-1;Ka(this,{from:e,to:ae(n,Kt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&li(this.cm,0,0),ja(this,sa(e),$)})),replaceRange:function(t,e,n,r){e=fe(this,e),n=n?fe(this,n):e,ro(this,t,e,n,r)},getRange:function(t,e,n){var r=Qt(this,fe(this,t),fe(this,e));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(re(this,t))return Kt(this,t)},getLineNumber:function(t){return ee(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Kt(this,t)),Qe(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return fe(this,t)},getCursor:function(t){var e,n=this.sel.primary();return e=null==t||"head"==t?n.head:"anchor"==t?n.anchor:"end"==t||"to"==t||!1===t?n.to():n.from(),e},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Bi((function(t,e,n){Pa(this,fe(this,"number"==typeof t?ae(t,e||0):t),null,n)})),setSelection:Bi((function(t,e,n){Pa(this,fe(this,t),fe(this,e||t),n)})),extendSelection:Bi((function(t,e,n){Ia(this,fe(this,t),e&&fe(this,e),n)})),extendSelections:Bi((function(t,e){Ra(this,pe(this,t),e)})),extendSelectionsBy:Bi((function(t,e){var n=K(this.sel.ranges,t);Ra(this,pe(this,n),e)})),setSelections:Bi((function(t,e,n){if(t.length){for(var r=[],i=0;i<t.length;i++)r[i]=new aa(fe(this,t[i].anchor),fe(this,t[i].head||t[i].anchor));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),ja(this,oa(this.cm,r,e),n)}})),addSelection:Bi((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new aa(fe(this,t),fe(this,e||t))),ja(this,oa(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var i=Qt(this,n[r].from(),n[r].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Qt(this,n[r].from(),n[r].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[r]=i}return e},replaceSelection:function(t,e,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:Bi((function(t,e,n){for(var r=[],i=this.sel,a=0;a<i.ranges.length;a++){var o=i.ranges[a];r[a]={from:o.from(),to:o.to(),text:this.splitLines(t[a]),origin:n}}for(var s=e&&"end"!=e&&fa(this,r,e),l=r.length-1;l>=0;l--)Ka(this,r[l]);s?qa(this,s):this.cm&&si(this.cm)})),undo:Bi((function(){Ja(this,"undo")})),redo:Bi((function(){Ja(this,"redo")})),undoSelection:Bi((function(){Ja(this,"undo",!0)})),redoSelection:Bi((function(){Ja(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new xa(this.history),ya(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:La(this.history.done),undone:La(this.history.undone)}},setHistory:function(t){var e=this.history=new xa(this.history);e.done=La(t.done.slice(0),null,!0),e.undone=La(t.undone.slice(0),null,!0)},setGutterMarker:Bi((function(t,e,n){return so(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&it(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:Bi((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&so(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,it(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!re(this,t))return null;if(e=t,t=Kt(this,t),!t)return null}else if(e=ee(t),null==e)return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Bi((function(t,e,n){return so(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(E(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:Bi((function(t,e,n){return so(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[r];if(!i)return!1;if(null==n)t[r]=null;else{var a=i.match(E(n));if(!a)return!1;var o=a.index+a[0].length;t[r]=i.slice(0,a.index)+(a.index&&o!=i.length?" ":"")+i.slice(o)||null}return!0}))})),addLineWidget:Bi((function(t,e,n){return fo(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return mo(this,fe(this,t),fe(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return t=fe(this,t),mo(this,t,t,n,"bookmark")},findMarksAt:function(t){t=fe(this,t);var e=[],n=Kt(this,t.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=fe(this,t),e=fe(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var l=o[s];null!=l.to&&i==t.line&&t.ch>=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var a=i.text.length+r;if(a>t)return e=t,!0;t-=a,++n})),fe(this,ae(n,e))},indexFromPos:function(t){t=fe(this,t);var e=t.ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new ko(Jt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new ko(Jt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],_o(r,bo(this)),r},unlinkDoc:function(t){if(t instanceof Fs&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e){var n=this.linked[e];if(n.doc==t){this.linked.splice(e,1),t.unlinkDoc(this),xo(bo(this));break}}if(t.history==this.history){var r=[t.id];ya(t,(function(t){return r.push(t.id)}),!0),t.history=new xa(null),t.history.done=La(this.history.done,r),t.history.undone=La(this.history.undone,r)}},iterLinkedDocs:function(t){ya(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Bt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Bi((function(t){"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&_a(this.cm))}))}),ko.prototype.eachLine=ko.prototype.iter;var Co=0;function Eo(t){var e=this;if(Ao(e),!bt(e,t)&&!$n(e.display,t)){kt(t),o&&(Co=+new Date);var n=Ir(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,a=Array(i),s=0,l=function(){++s==i&&Oi(e,(function(){n=fe(e.doc,n);var t={from:n,to:n,text:e.doc.splitLines(a.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};Ka(e.doc,t),qa(e.doc,sa(fe(e.doc,n),fe(e.doc,la(t))))}))()},c=function(t,n){if(e.options.allowDropFileTypes&&-1==j(e.options.allowDropFileTypes,t.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(a[n]=t),l()},r.readAsText(t)}},u=0;u<r.length;u++)c(r[u],u);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var h=t.dataTransfer.getData("Text");if(h){var f;if(e.state.draggingText&&!e.state.draggingText.copy&&(f=e.listSelections()),Ha(e.doc,sa(n,n)),f)for(var d=0;d<f.length;++d)ro(e.doc,"",f[d].anchor,f[d].head,"drag");e.replaceSelection(h,"around","paste"),e.display.input.focus()}}catch(p){}}}}function So(t,e){if(o&&(!t.state.draggingText||+new Date-Co<100))St(e);else if(!bt(t,e)&&!$n(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}function To(t,e){var n=Ir(t,e);if(n){var r=document.createDocumentFragment();Wr(t,n,r),t.display.dragCursor||(t.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),M(t.display.dragCursor,r)}}function Ao(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Mo(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var No=!1;function Do(){No||(Oo(),No=!0)}function Oo(){var t;gt(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Mo(Lo)}),100))})),gt(window,"blur",(function(){return Mo(Qr)}))}function Lo(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Io=0;Io<10;Io++)Bo[Io+48]=Bo[Io+96]=String(Io);for(var Ro=65;Ro<=90;Ro++)Bo[Ro]=String.fromCharCode(Ro);for(var Fo=1;Fo<=12;Fo++)Bo[Fo+111]=Bo[Fo+63235]="F"+Fo;var Po={};function zo(t){var e,n,r,i,a=t.split(/-(?!$)/);t=a[a.length-1];for(var o=0;o<a.length-1;o++){var s=a[o];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function qo(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var i=K(n.split(" "),zo),a=0;a<i.length;a++){var o=void 0,s=void 0;a==i.length-1?(s=i.join(" "),o=r):(s=i.slice(0,a+1).join(" "),o="...");var l=e[s];if(l){if(l!=o)throw new Error("Inconsistent bindings for "+s)}else e[s]=o}delete t[n]}for(var c in e)t[c]=e[c];return t}function jo(t,e,n,r){e=Wo(e);var i=e.call?e.call(t,r):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return jo(t,e.fallthrough,n,r);for(var a=0;a<e.fallthrough.length;a++){var o=jo(t,e.fallthrough[a],n,r);if(o)return o}}}function Ho(t){var e="string"==typeof t?t:Bo[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Uo(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(k?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(k?e.ctrlKey:e.metaKey)&&"Mod"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function $o(t,e){if(f&&34==t.keyCode&&t["char"])return!1;var n=Bo[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),Uo(n,t,e))}function Wo(t){return"string"==typeof t?Po[t]:t}function Yo(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){var a=e(n[i]);while(r.length&&oe(a.from,Z(r).to)<=0){var o=r.pop();if(oe(o.from,a.from)<0){a.from=o.from;break}}r.push(a)}Di(t,(function(){for(var e=r.length-1;e>=0;e--)ro(t.doc,"",r[e].from,r[e].to,"+delete");si(t)}))}function Vo(t,e,n){var r=st(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Go(t,e,n){var r=Vo(t,e.ch,n);return null==r?null:new ae(e.line,r,n<0?"after":"before")}function Xo(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var a=dt(n,e.doc.direction);if(a){var o,s=i<0?Z(a):a[0],l=i<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var u=nr(e,n);o=i<0?n.text.length-1:0;var h=rr(e,u,o).top;o=lt((function(t){return rr(e,u,t).top==h}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==c&&(o=Vo(n,o,1))}else o=i<0?s.to:s.from;return new ae(r,o,c)}}return new ae(r,i<0?n.text.length:0,i<0?"before":"after")}function Zo(t,e,n,r){var i=dt(e,t.doc.direction);if(!i)return Go(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=ht(i,n.ch,n.sticky),o=i[a];if("ltr"==t.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from<n.ch))return Go(e,n,r);var s,l=function(t,n){return Vo(e,t instanceof ae?t.ch:t,n)},c=function(n){return t.options.lineWrapping?(s=s||nr(t,e),Cr(t,e,s,n)):{begin:0,end:e.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==o.level){var h=1==o.level==r<0,f=l(n,h?1:-1);if(null!=f&&(h?f<=o.to&&f<=u.end:f>=o.from&&f>=u.begin)){var d=h?"before":"after";return new ae(n.line,f,d)}}var p=function(t,e,r){for(var a=function(t,e){return e?new ae(n.line,l(t,1),"before"):new ae(n.line,t,"after")};t>=0&&t<i.length;t+=e){var o=i[t],s=e>0==(1!=o.level),c=s?r.begin:l(r.end,-1);if(o.from<=c&&c<o.to)return a(c,s);if(c=s?o.from:l(o.to,-1),r.begin<=c&&c<r.end)return a(c,s)}},g=p(a+r,r,u);if(g)return g;var m=r>0?u.end:l(u.begin,-1);return null==m||r>0&&m==e.text.length||(g=p(r>0?0:i.length-1,r,c(m)),!g)?null:g}Po.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Po.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Po.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Po.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Po["default"]=b?Po.macDefault:Po.pcDefault;var Ko={selectAll:Xa,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),$)},killLine:function(t){return Yo(t,(function(e){if(e.empty()){var n=Kt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:ae(e.head.line+1,0)}:{from:e.head,to:ae(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return Yo(t,(function(e){return{from:ae(e.from().line,0),to:fe(t.doc,ae(e.to().line+1,0))}}))},delLineLeft:function(t){return Yo(t,(function(t){return{from:ae(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Yo(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return{from:r,to:e.from()}}))},delWrappedLineRight:function(t){return Yo(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(ae(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(ae(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return Qo(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return ts(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return Jo(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),Y)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),Y)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?ts(t,e.head):r}),Y)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,i=0;i<n.length;i++){var a=n[i].from(),o=z(t.getLine(a.line),a.ch,r);e.push(X(r-o%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Di(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,a=Kt(t.doc,i.line).text;if(a)if(i.ch==a.length&&(i=new ae(i.line,i.ch-1)),i.ch>0)i=new ae(i.line,i.ch+1),t.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),ae(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var o=Kt(t.doc,i.line-1).text;o&&(i=new ae(i.line,1),t.replaceRange(a.charAt(0)+t.doc.lineSeparator()+o.charAt(o.length-1),ae(i.line-1,o.length-1),i,"+transpose"))}n.push(new aa(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Di(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);si(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Qo(t,e){var n=Kt(t.doc,e),r=Qe(n);return r!=n&&(e=ee(r)),Xo(!0,t,r,e,1)}function Jo(t,e){var n=Kt(t.doc,e),r=Je(n);return r!=n&&(e=ee(r)),Xo(!0,t,n,e,-1)}function ts(t,e){var n=Qo(t,e.line),r=Kt(t.doc,n.line),i=dt(r,t.doc.direction);if(!i||0==i[0].level){var a=Math.max(n.ch,r.text.search(/\S/)),o=e.line==n.line&&e.ch<=a&&e.ch;return ae(n.line,o?0:a,n.sticky)}return n}function es(t,e,n){if("string"==typeof e&&(e=Ko[e],!e))return!1;t.display.input.ensurePolled();var r=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=U}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}function ns(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=jo(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&jo(e,t.options.extraKeys,n,t)||jo(e,t.options.keyMap,n,t)}var rs=new q;function is(t,e,n,r){var i=t.state.keySeq;if(i){if(Ho(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:rs.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),as(t,i+" "+e,n,r))return!0}return as(t,e,n,r)}function as(t,e,n,r){var i=ns(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&Mn(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(kt(n),Gr(t)),!!i}function os(t,e){var n=$o(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?is(t,"Shift-"+n,e,(function(e){return es(t,e,!0)}))||is(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return es(t,e)})):is(t,n,e,(function(e){return es(t,e)})))}function ss(t,e,n){return is(t,"'"+n+"'",e,(function(e){return es(t,e,!0)}))}var ls=null;function cs(t){var e=this;if((!t.target||t.target==e.display.input.getField())&&(e.curOp.focus=L(),!bt(e,t))){o&&s<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var i=os(e,t);f&&(ls=i?r:null,i||88!=r||Rt||!(b?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||us(e)}}function us(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(T(e,"CodeMirror-crosshair"),yt(document,"keyup",n),yt(document,"mouseover",n))}B(e,"CodeMirror-crosshair"),gt(document,"keyup",n),gt(document,"mouseover",n)}function hs(t){16==t.keyCode&&(this.doc.sel.shift=!1),bt(this,t)}function fs(t){var e=this;if((!t.target||t.target==e.display.input.getField())&&!($n(e.display,t)||bt(e,t)||t.ctrlKey&&!t.altKey||b&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(f&&n==ls)return ls=null,void kt(t);if(!f||t.which&&!(t.which<10)||!os(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(ss(e,t,i)||e.display.input.onKeyPress(t))}}}var ds,ps,gs=400,ms=function(t,e,n){this.time=t,this.pos=e,this.button=n};function ys(t,e){var n=+new Date;return ps&&ps.compare(n,t,e)?(ds=ps=null,"triple"):ds&&ds.compare(n,t,e)?(ps=new ms(n,t,e),ds=null,"double"):(ds=new ms(n,t,e),ps=null,"single")}function vs(t){var e=this,n=e.display;if(!(bt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,$n(n,t))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ts(e,t)){var r=Ir(e,t),i=At(t),a=r?ys(r,i):"single";window.focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&bs(e,i,r,a,t)||(1==i?r?xs(e,r,a,t):Tt(t)==n.scroller&&kt(t):2==i?(r&&Ia(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?e.display.input.onContextMenu(t):Zr(e)))}}function bs(t,e,n,r,i){var a="Click";return"double"==r?a="Double"+a:"triple"==r&&(a="Triple"+a),a=(1==e?"Left":2==e?"Middle":"Right")+a,is(t,Uo(a,i),i,(function(e){if("string"==typeof e&&(e=Ko[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=U}finally{t.state.suppressEdits=!1}return r}))}function _s(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};if(null==i.unit){var a=_?n.shiftKey&&n.metaKey:n.altKey;i.unit=a?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function xs(t,e,n,r){o?setTimeout(F(Xr,t),0):t.curOp.focus=L();var i,a=_s(t,n,r),s=t.doc.sel;t.options.dragDrop&&Dt&&!t.isReadOnly()&&"single"==n&&(i=s.contains(e))>-1&&(oe((i=s.ranges[i]).from(),e)<0||e.xRel>0)&&(oe(i.to(),e)>0||e.xRel<0)?ws(t,r,e,a):Cs(t,r,e,a)}function ws(t,e,n,r){var i=t.display,a=!1,c=Oi(t,(function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Zr(t)),yt(i.wrapper.ownerDocument,"mouseup",c),yt(i.wrapper.ownerDocument,"mousemove",u),yt(i.scroller,"dragstart",h),yt(i.scroller,"drop",c),a||(kt(e),r.addNew||Ia(t.doc,n,null,null,r.extend),l&&!d||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(t){a=a||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return a=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,gt(i.wrapper.ownerDocument,"mouseup",c),gt(i.wrapper.ownerDocument,"mousemove",u),gt(i.scroller,"dragstart",h),gt(i.scroller,"drop",c),t.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function ks(t,e,n){if("char"==n)return new aa(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new aa(ae(e.line,0),fe(t.doc,ae(e.line+1,0)));var r=n(t,e);return new aa(r.from,r.to)}function Cs(t,e,n,r){o&&Zr(t);var i=t.display,a=t.doc;kt(e);var s,l,c=a.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=a.sel.contains(n),s=l>-1?u[l]:new aa(n,n)):(s=a.sel.primary(),l=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new aa(n,n)),n=Ir(t,e,!0,!0),l=-1;else{var h=ks(t,n,r.unit);s=r.extend?Ba(s,h.anchor,h.head,r.extend):h}r.addNew?-1==l?(l=u.length,ja(a,oa(t,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(ja(a,oa(t,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Fa(a,l,s,W):(l=0,ja(a,new ia([s],0),W),c=a.sel);var f=n;function d(e){if(0!=oe(f,e))if(f=e,"rectangle"==r.unit){for(var i=[],o=t.options.tabSize,u=z(Kt(a,n.line).text,n.ch,o),h=z(Kt(a,e.line).text,e.ch,o),d=Math.min(u,h),p=Math.max(u,h),g=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=m;g++){var y=Kt(a,g).text,v=V(y,d,o);d==p?i.push(new aa(ae(g,v),ae(g,v))):y.length>v&&i.push(new aa(ae(g,v),ae(g,V(y,p,o))))}i.length||i.push(new aa(n,n)),ja(a,oa(t,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,_=s,x=ks(t,e,r.unit),w=_.anchor;oe(x.anchor,w)>0?(b=x.head,w=ue(_.from(),x.anchor)):(b=x.anchor,w=ce(_.to(),x.head));var k=c.ranges.slice(0);k[l]=Es(t,new aa(fe(a,w),b)),ja(a,oa(t,k,l),W)}}var p=i.wrapper.getBoundingClientRect(),g=0;function m(e){var n=++g,o=Ir(t,e,!0,"rectangle"==r.unit);if(o)if(0!=oe(o,f)){t.curOp.focus=L(),d(o);var s=ei(i,a);(o.line>=s.to||o.line<s.from)&&setTimeout(Oi(t,(function(){g==n&&m(e)})),150)}else{var l=e.clientY<p.top?-20:e.clientY>p.bottom?20:0;l&&setTimeout(Oi(t,(function(){g==n&&(i.scroller.scrollTop+=l,m(e))})),50)}}function y(e){t.state.selectingText=!1,g=1/0,e&&(kt(e),i.input.focus()),yt(i.wrapper.ownerDocument,"mousemove",v),yt(i.wrapper.ownerDocument,"mouseup",b),a.history.lastSelOrigin=null}var v=Oi(t,(function(t){0!==t.buttons&&At(t)?m(t):y(t)})),b=Oi(t,y);t.state.selectingText=b,gt(i.wrapper.ownerDocument,"mousemove",v),gt(i.wrapper.ownerDocument,"mouseup",b)}function Es(t,e){var n=e.anchor,r=e.head,i=Kt(t.doc,n.line);if(0==oe(n,r)&&n.sticky==r.sticky)return e;var a=dt(i);if(!a)return e;var o=ht(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return e;var l,c=o+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==a.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=ht(a,r.ch,r.sticky),h=u-o||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?h<0:h>0}var f=a[c+(l?-1:0)],d=l==(1==f.level),p=d?f.from:f.to,g=d?"after":"before";return n.ch==p&&n.sticky==g?e:new aa(new ae(n.line,p,g),r)}function Ss(t,e,n,r){var i,a;if(e.touches)i=e.touches[0].clientX,a=e.touches[0].clientY;else try{i=e.clientX,a=e.clientY}catch(f){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&kt(e);var o=t.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!xt(t,n))return Et(e);a-=s.top-o.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var c=o.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i){var u=ne(t.doc,a),h=t.display.gutterSpecs[l];return vt(t,n,t,u,h.className,e),Et(e)}}}function Ts(t,e){return Ss(t,e,"gutterClick",!0)}function As(t,e){$n(t.display,e)||Ms(t,e)||bt(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function Ms(t,e){return!!xt(t,"gutterContextMenu")&&Ss(t,e,"gutterContextMenu",!1)}function Ns(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(t)}ms.prototype.compare=function(t,e,n){return this.time+gs>t&&0==oe(e,this.pos)&&n==this.button};var Ds={toString:function(){return"CodeMirror.Init"}},Os={},Ls={};function Bs(t){var e=t.optionHandlers;function n(n,r,i,a){t.defaults[n]=r,i&&(e[n]=a?function(t,e,n){n!=Ds&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Ds,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,da(t)}),!0),n("indentUnit",2,da,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){pa(t),fr(t),Fr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var a=t.text.indexOf(e,i);if(-1==a)break;i=a+e.length,n.push(ae(r,a))}r++}));for(var i=n.length-1;i>=0;i--)ro(t.doc,e,n[i],ae(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Ds&&t.refresh()})),n("specialCharPlaceholder",mn,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Ns(t),Ki(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Wo(e),i=n!=Ds&&Wo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Rs,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=Xi(e,t.options.lineNumbers),Ki(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?Or(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return vi(t)}),!0),n("scrollbarStyle","native",(function(t){xi(t),vi(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=Xi(t.options.gutters,e),Ki(t)}),!0),n("firstLineNumber",1,Ki,!0),n("lineNumberFormatter",(function(t){return t}),Ki,!0),n("showCursorWhenSelecting",!1,Ur,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Qr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Is),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ur,!0),n("singleCursorHeightPerLine",!0,Ur,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,pa,!0),n("addModeClass",!1,pa,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,pa,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}function Is(t,e,n){var r=n&&n!=Ds;if(!e!=!r){var i=t.display.dragFunctions,a=e?gt:yt;a(t.display.scroller,"dragstart",i.start),a(t.display.scroller,"dragenter",i.enter),a(t.display.scroller,"dragover",i.over),a(t.display.scroller,"dragleave",i.leave),a(t.display.scroller,"drop",i.drop)}}function Rs(t){t.options.lineWrapping?(B(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),ln(t)),Br(t),Fr(t),fr(t),setTimeout((function(){return vi(t)}),100)}function Fs(t,e){var n=this;if(!(this instanceof Fs))return new Fs(t,e);this.options=e=e?P(e):{},P(Os,e,!1);var r=e.value;"string"==typeof r?r=new ko(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Fs.inputStyles[e.inputStyle](this),a=this.display=new Qi(t,r,i,e);for(var c in a.wrapper.CodeMirror=this,Ns(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},e.autofocus&&!v&&a.input.focus(),o&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ps(this),Do(),ki(this),this.curOp.forceUpdate=!0,va(this,r),e.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Kr(n)}),20):Qr(this),Ls)Ls.hasOwnProperty(c)&&Ls[c](this,e[c],Ds);Gi(this),e.finishInit&&e.finishInit(this);for(var u=0;u<zs.length;++u)zs[u](this);Ci(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}function Ps(t){var e=t.display;gt(e.scroller,"mousedown",Oi(t,vs)),gt(e.scroller,"dblclick",o&&s<11?Oi(t,(function(e){if(!bt(t,e)){var n=Ir(t,e);if(n&&!Ts(t,e)&&!$n(t.display,e)){kt(e);var r=t.findWordAt(n);Ia(t.doc,r.anchor,r.head)}}})):function(e){return bt(t,e)||kt(e)}),gt(e.scroller,"contextmenu",(function(e){return As(t,e)})),gt(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||As(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),r=e.activeTouch,r.end=+new Date)}function a(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function l(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}gt(e.scroller,"touchstart",(function(i){if(!bt(t,i)&&!a(i)&&!Ts(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),gt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),gt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!$n(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,o=t.coordsChar(e.activeTouch,"page");a=!r.prev||l(r,r.prev)?new aa(o,o):!r.prev.prev||l(r,r.prev.prev)?t.findWordAt(o):new aa(ae(o.line,0),fe(t.doc,ae(o.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),kt(n)}i()})),gt(e.scroller,"touchcancel",i),gt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(fi(t,e.scroller.scrollTop),pi(t,e.scroller.scrollLeft,!0),vt(t,"scroll",t))})),gt(e.scroller,"mousewheel",(function(e){return ra(t,e)})),gt(e.scroller,"DOMMouseScroll",(function(e){return ra(t,e)})),gt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){bt(t,e)||St(e)},over:function(e){bt(t,e)||(To(t,e),St(e))},start:function(e){return So(t,e)},drop:Oi(t,Eo),leave:function(e){bt(t,e)||Ao(t)}};var c=e.input.getField();gt(c,"keyup",(function(e){return hs.call(t,e)})),gt(c,"keydown",Oi(t,cs)),gt(c,"keypress",Oi(t,fs)),gt(c,"focus",(function(e){return Kr(t,e)})),gt(c,"blur",(function(e){return Qr(t,e)}))}Fs.defaults=Os,Fs.optionHandlers=Ls;var zs=[];function qs(t,e,n,r){var i,a=t.doc;null==n&&(n="add"),"smart"==n&&(a.mode.indent?i=be(t,e).state:n="prev");var o=t.options.tabSize,s=Kt(a,e),l=z(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(c=a.mode.indent(i,s.text.slice(u.length),s.text),c==U||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>a.first?z(Kt(a,e-1).text,null,o):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var h="",f=0;if(t.options.indentWithTabs)for(var d=Math.floor(c/o);d;--d)f+=o,h+="\t";if(f<c&&(h+=X(c-f)),h!=u)return ro(a,h,ae(e,0),ae(e,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<a.sel.ranges.length;p++){var g=a.sel.ranges[p];if(g.head.line==e&&g.head.ch<u.length){var m=ae(e,u.length);Fa(a,p,new aa(m,m));break}}}Fs.defineInitHook=function(t){return zs.push(t)};var js=null;function Hs(t){js=t}function Us(t,e,n,r,i){var a=t.doc;t.display.shift=!1,r||(r=a.sel);var o=+new Date-200,s="paste"==i||t.state.pasteIncoming>o,l=Bt(e),c=null;if(s&&r.ranges.length>1)if(js&&js.text.join("\n")==e){if(r.ranges.length%js.text.length==0){c=[];for(var u=0;u<js.text.length;u++)c.push(a.splitLines(js.text[u]))}}else l.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(c=K(l,(function(t){return[t]})));for(var h=t.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],p=d.from(),g=d.to();d.empty()&&(n&&n>0?p=ae(p.line,p.ch-n):t.state.overwrite&&!s?g=ae(g.line,Math.min(Kt(a,g.line).text.length,g.ch+Z(l).length)):s&&js&&js.lineWise&&js.text.join("\n")==l.join("\n")&&(p=g=ae(p.line,0)));var m={from:p,to:g,text:c?c[f%c.length]:l,origin:i||(s?"paste":t.state.cutIncoming>o?"cut":"+input")};Ka(t.doc,m),Mn(t,"inputRead",t,m)}e&&!s&&Ws(t,e),si(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function $s(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||!e.hasFocus()||Di(e,(function(){return Us(e,n,0,null,"paste")})),!0}function Ws(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var a=t.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(e.indexOf(a.electricChars.charAt(s))>-1){o=qs(t,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Kt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(o=qs(t,i.head.line,"smart"));o&&Mn(t,"electricInput",t,i.head.line)}}}function Ys(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,a={anchor:ae(i,0),head:ae(i+1,0)};n.push(a),e.push(t.getRange(a.anchor,a.head))}return{text:e,ranges:n}}function Vs(t,e,n,r){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",r?"":"off"),t.setAttribute("spellcheck",!!e)}function Gs(){var t=N("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),e=N("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),m&&(t.style.border="1px solid black"),Vs(t),e}function Xs(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&Oi(this,e[t])(this,n,i),vt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Wo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:Li((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");Q(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,Fr(this)})),removeOverlay:Li((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void Fr(this)}})),indentLine:Li((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),re(this.doc,t)&&qs(this,t,e,n)})),indentSelection:Li((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var i=e[r];if(i.empty())i.head.line>n&&(qs(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&si(this));else{var a=i.from(),o=i.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var l=s;l<n;++l)qs(this,l,t);var c=this.doc.sel.ranges;0==a.ch&&e.length==c.length&&c[r].from().ch>0&&Fa(this.doc,r,new aa(a,c[r].to()),$)}}})),getTokenAt:function(t,e){return Ce(this,t,e)},getLineTokens:function(t,e){return Ce(this,ae(t),e,!0)},getTokenTypeAt:function(t){t=fe(this.doc,t);var e,n=ve(this,Kt(this.doc,t.line)),r=0,i=(n.length-1)/2,a=t.ch;if(0==a)e=n[2];else for(;;){var o=r+i>>1;if((o?n[2*o-1]:0)>=a)i=o;else{if(!(n[2*o+1]<a)){e=n[2*o+2];break}r=o+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var i=n[e],a=this.getModeAt(t);if("string"==typeof a[e])i[a[e]]&&r.push(i[a[e]]);else if(a[e])for(var o=0;o<a[e].length;o++){var s=i[a[e][o]];s&&r.push(s)}else a.helperType&&i[a.helperType]?r.push(i[a.helperType]):i[a.name]&&r.push(i[a.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(a,this)&&-1==j(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(t,e){var n=this.doc;return t=he(n,null==t?n.first+n.size-1:t),be(this,t+1,e).state},cursorCoords:function(t,e){var n,r=this.doc.sel.primary();return n=null==t?r.head:"object"==typeof t?fe(this.doc,t):t?r.from():r.to(),br(this,n,e||"page")},charCoords:function(t,e){return vr(this,fe(this.doc,t),e||"page")},coordsChar:function(t,e){return t=yr(this,t,e||"page"),wr(this,t.left,t.top)},lineAtHeight:function(t,e){return t=yr(this,{top:t,left:0},e||"page").top,ne(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var a=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>a&&(t=a,i=!0),r=Kt(this.doc,t)}else r=t;return mr(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Mr(this.display)},defaultCharWidth:function(){return Nr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var a=this.display;t=br(this,fe(this.doc,t));var o=t.bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),a.sizer.appendChild(e),"over"==r)o=t.top;else if("above"==r||"near"==r){var l=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?o=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(o=t.bottom),s+e.offsetWidth>c&&(s=c-e.offsetWidth)}e.style.top=o+"px",e.style.left=e.style.right="","right"==i?(s=a.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(a.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&ii(this,{left:s,top:o,right:s+e.offsetWidth,bottom:o+e.offsetHeight})},triggerOnKeyDown:Li(cs),triggerOnKeyPress:Li(fs),triggerOnKeyUp:hs,triggerOnMouseDown:Li(vs),execCommand:function(t){if(Ko.hasOwnProperty(t))return Ko[t].call(null,this)},triggerElectric:Li((function(t){Ws(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var a=fe(this.doc,t),o=0;o<e;++o)if(a=Zs(this.doc,a,i,n,r),a.hitSide)break;return a},moveH:Li((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Zs(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),Y)})),deleteH:Li((function(t,e){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Yo(this,(function(n){var i=Zs(r,n.head,t,e,!1);return t<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(t,e,n,r){var i=1,a=r;e<0&&(i=-1,e=-e);for(var o=fe(this.doc,t),s=0;s<e;++s){var l=br(this,o,"div");if(null==a?a=l.left:l.left=a,o=Ks(this,l,i,n),o.hitSide)break}return o},moveV:Li((function(t,e){var n=this,r=this.doc,i=[],a=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(o){if(a)return t<0?o.from():o.to();var s=br(n,o.head,"div");null!=o.goalColumn&&(s.left=o.goalColumn),i.push(s.left);var l=Ks(n,s,t,e);return"page"==e&&o==r.sel.primary()&&oi(n,vr(n,l,"div").top-s.top),l}),Y),i.length)for(var o=0;o<r.sel.ranges.length;o++)r.sel.ranges[o].goalColumn=i[o]})),findWordAt:function(t){var e=this.doc,n=Kt(e,t.line).text,r=t.ch,i=t.ch;if(n){var a=this.getHelper(t,"wordChars");"before"!=t.sticky&&i!=n.length||!r?++i:--r;var o=n.charAt(r),s=rt(o,a)?function(t){return rt(t,a)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!rt(t)};while(r>0&&s(n.charAt(r-1)))--r;while(i<n.length&&s(n.charAt(i)))++i}return new aa(ae(t.line,r),ae(t.line,i))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?B(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),vt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Li((function(t,e){li(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Gn(this)-this.display.barHeight,width:t.scrollWidth-Gn(this)-this.display.barWidth,clientHeight:Zn(this),clientWidth:Xn(this)}},scrollIntoView:Li((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:ae(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?ci(this,t):hi(this,t.from,t.to,t.margin)})),setSize:Li((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&hr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){Pr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,vt(this,"refresh",this)})),operation:function(t){return Di(this,t)},startOperation:function(){return ki(this)},endOperation:function(){return Ci(this)},refresh:Li((function(){var t=this.display.cachedTextHeight;Fr(this),this.curOp.forceUpdate=!0,fr(this),li(this,this.doc.scrollLeft,this.doc.scrollTop),Wi(this.display),(null==t||Math.abs(t-Mr(this.display))>.5||this.options.lineWrapping)&&Br(this),vt(this,"refresh",this)})),swapDoc:Li((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),va(this,t),fr(this),this.display.input.reset(),li(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,Mn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,a){t.registerHelper(e,r,a),n[e]._global.push({pred:i,val:a})}}function Zs(t,e,n,r,i){var a=e,o=n,s=Kt(t,e.line),l=i&&"rtl"==t.direction?-n:n;function c(){var n=e.line+l;return!(n<t.first||n>=t.first+t.size)&&(e=new ae(n,e.ch,e.sticky),s=Kt(t,n))}function u(a){var o;if("codepoint"==r){var u=s.text.charCodeAt(e.ch+(n>0?0:-1));if(isNaN(u))o=null;else{var h=n>0?u>=55296&&u<56320:u>=56320&&u<57343;o=new ae(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(h?2:1))),-n)}}else o=i?Zo(t.cm,s,e,n):Go(s,e,n);if(null==o){if(a||!c())return!1;e=Xo(i,t.cm,s,e.line,l)}else e=o;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var h=null,f="group"==r,d=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;;p=!1){if(n<0&&!u(!p))break;var g=s.text.charAt(e.ch)||"\n",m=rt(g,d)?"w":f&&"\n"==g?"n":!f||/\s/.test(g)?null:"p";if(!f||p||m||(m="s"),h&&h!=m){n<0&&(n=1,u(),e.sticky="after");break}if(m&&(h=m),n>0&&!u(!p))break}var y=Va(t,e,a,o,!0);return se(a,y)&&(y.hitSide=!0),y}function Ks(t,e,n,r){var i,a,o=t.doc,s=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Mr(t.display),3);i=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;;){if(a=wr(t,s,i),!a.outside)break;if(n<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*n}return a}var Qs=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Js(t,e){var n=er(t,e.line);if(!n||n.hidden)return null;var r=Kt(t.doc,e.line),i=Qn(n,r,e.line),a=dt(r,t.doc.direction),o="left";if(a){var s=ht(a,e.ch);o=s%2?"right":"left"}var l=or(i.map,e.ch,o);return l.offset="right"==l.collapse?l.end:l.start,l}function tl(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function el(t,e){return e&&(t.bad=!0),t}function nl(t,e,n,r,i){var a="",o=!1,s=t.doc.lineSeparator(),l=!1;function c(t){return function(e){return e.id==t}}function u(){o&&(a+=s,l&&(a+=s),o=l=!1)}function h(t){t&&(u(),a+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void h(n);var a,d=e.getAttribute("cm-marker");if(d){var p=t.findMarks(ae(r,0),ae(i+1,0),c(+d));return void(p.length&&(a=p[0].find(0))&&h(Qt(t.doc,a.from,a.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;g&&u();for(var m=0;m<e.childNodes.length;m++)f(e.childNodes[m]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),g&&(o=!0)}else 3==e.nodeType&&h(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;;){if(f(e),e==n)break;e=e.nextSibling,l=!1}return a}function rl(t,e,n){var r;if(e==t.display.lineDiv){if(r=t.display.lineDiv.childNodes[n],!r)return el(t.clipPos(ae(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var a=t.display.view[i];if(a.node==r)return il(a,e,n)}}function il(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!O(r,e))return el(ae(ee(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var a=t.rest?Z(t.rest):t.line;return el(ae(ee(a),a.text.length),i)}var o=3==e.nodeType?e:null,s=e;o||1!=e.childNodes.length||3!=e.firstChild.nodeType||(o=e.firstChild,n&&(n=o.nodeValue.length));while(s.parentNode!=r)s=s.parentNode;var l=t.measure,c=l.maps;function u(e,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var a=i<0?l.map:c[i],o=0;o<a.length;o+=3){var s=a[o+2];if(s==e||s==n){var u=ee(i<0?t.line:t.rest[i]),h=a[o]+r;return(r<0||s!=e)&&(h=a[o+(r?1:0)]),ae(u,h)}}}var h=u(o,s,n);if(h)return el(h,i);for(var f=s.nextSibling,d=o?o.nodeValue.length-n:0;f;f=f.nextSibling){if(h=u(f,f.firstChild,0),h)return el(ae(h.line,h.ch-d),i);d+=f.textContent.length}for(var p=s.previousSibling,g=n;p;p=p.previousSibling){if(h=u(p,p.firstChild,-1),h)return el(ae(h.line,h.ch+g),i);g+=p.textContent.length}}Qs.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function a(t){for(var e=t.target;e;e=e.parentNode){if(e==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function o(t){if(a(t)&&!bt(r,t)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Ys(r);Hs({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,$),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var o=js.text.join("\n");if(t.clipboardData.setData("Text",o),t.clipboardData.getData("Text")==o)return void t.preventDefault()}var s=Gs(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=js.text.join("\n");var c=L();R(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Vs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),gt(i,"paste",(function(t){!a(t)||bt(r,t)||$s(t,r)||s<=11&&setTimeout(Oi(r,(function(){return e.updateFromDOM()})),20)})),gt(i,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),gt(i,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),gt(i,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),gt(i,"touchstart",(function(){return n.forceCompositionEnd()})),gt(i,"input",(function(){e.composing||e.readFromDOMSoon()})),gt(i,"copy",o),gt(i,"cut",o)},Qs.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Qs.prototype.prepareSelection=function(){var t=$r(this.cm,!1);return t.focus=L()==this.div,t},Qs.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Qs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qs.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),a=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||a.line<e.display.viewFrom)t.removeAllRanges();else{var o=rl(e,t.anchorNode,t.anchorOffset),s=rl(e,t.focusNode,t.focusOffset);if(!o||o.bad||!s||s.bad||0!=oe(ue(o,s),i)||0!=oe(ce(o,s),a)){var l=e.display.view,c=i.line>=e.display.viewFrom&&Js(e,i)||{node:l[0].measure.map[2],offset:0},u=a.line<e.display.viewTo&&Js(e,a);if(!u){var h=l[l.length-1].measure,f=h.maps?h.maps[h.maps.length-1]:h.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&u){var d,p=t.rangeCount&&t.getRangeAt(0);try{d=S(c.node,c.offset,u.offset,u.node)}catch(g){}d&&(!n&&e.state.focused?(t.collapse(c.node,c.offset),d.collapsed||(t.removeAllRanges(),t.addRange(d))):(t.removeAllRanges(),t.addRange(d)),p&&null==t.anchorNode?t.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Qs.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Qs.prototype.showMultipleSelections=function(t){M(this.cm.display.cursorDiv,t.cursors),M(this.cm.display.selectionDiv,t.selection)},Qs.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Qs.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return O(this.div,e)},Qs.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&L()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Qs.prototype.blur=function(){this.div.blur()},Qs.prototype.getField=function(){return this.div},Qs.prototype.supportsTouch=function(){return!0},Qs.prototype.receivedFocus=function(){var t=this,e=this;function n(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return t.pollSelection()}),20):Di(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,n)},Qs.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Qs.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(y&&u&&this.cm.display.gutterSpecs.length&&tl(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=rl(e,t.anchorNode,t.anchorOffset),r=rl(e,t.focusNode,t.focusOffset);n&&r&&Di(e,(function(){ja(e.doc,sa(n,r),$),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},Qs.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,a=r.doc.sel.primary(),o=a.from(),s=a.to();if(0==o.ch&&o.line>r.firstLine()&&(o=ae(o.line-1,Kt(r.doc,o.line-1).length)),s.ch==Kt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ae(s.line+1,0)),o.line<i.viewFrom||s.line>i.viewTo-1)return!1;o.line==i.viewFrom||0==(t=Rr(r,o.line))?(e=ee(i.view[0].line),n=i.view[0].node):(e=ee(i.view[t].line),n=i.view[t-1].node.nextSibling);var l,c,u=Rr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=ee(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;var h=r.doc.splitLines(nl(r,n,c,e,l)),f=Qt(r.doc,ae(e,0),ae(l,Kt(r.doc,l).text.length));while(h.length>1&&f.length>1)if(Z(h)==Z(f))h.pop(),f.pop(),l--;else{if(h[0]!=f[0])break;h.shift(),f.shift(),e++}var d=0,p=0,g=h[0],m=f[0],y=Math.min(g.length,m.length);while(d<y&&g.charCodeAt(d)==m.charCodeAt(d))++d;var v=Z(h),b=Z(f),_=Math.min(v.length-(1==h.length?d:0),b.length-(1==f.length?d:0));while(p<_&&v.charCodeAt(v.length-p-1)==b.charCodeAt(b.length-p-1))++p;if(1==h.length&&1==f.length&&e==o.line)while(d&&d>o.ch&&v.charCodeAt(v.length-p-1)==b.charCodeAt(b.length-p-1))d--,p++;h[h.length-1]=v.slice(0,v.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var x=ae(e,d),w=ae(l,f.length?Z(f).length-p:0);return h.length>1||h[0]||oe(x,w)?(ro(r.doc,h,x,w,"+input"),!0):void 0},Qs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qs.prototype.reset=function(){this.forceCompositionEnd()},Qs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qs.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Qs.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Di(this.cm,(function(){return Fr(t.cm)}))},Qs.prototype.setUneditable=function(t){t.contentEditable="false"},Qs.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Oi(this.cm,Us)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Qs.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Qs.prototype.onContextMenu=function(){},Qs.prototype.resetPosition=function(){},Qs.prototype.needsContentAttribute=!0;var al=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null};function ol(t,e){if(e=e?P(e):{},e.value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=L();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(gt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var a=t.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch(l){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(yt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Fs((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s}function sl(t){t.off=yt,t.on=gt,t.wheelEventPixels=na,t.Doc=ko,t.splitLines=Bt,t.countColumn=z,t.findColumn=V,t.isWordChar=nt,t.Pass=U,t.signal=vt,t.Line=cn,t.changeEnd=la,t.scrollbarModel=_i,t.Pos=ae,t.cmpPos=oe,t.modes=zt,t.mimeModes=qt,t.resolveMode=Ut,t.getMode=$t,t.modeExtensions=Wt,t.extendMode=Yt,t.copyState=Vt,t.startState=Xt,t.innerMode=Gt,t.commands=Ko,t.keyMap=Po,t.keyName=$o,t.isModifierKey=Ho,t.lookupKey=jo,t.normalizeKeyMap=qo,t.StringStream=Zt,t.SharedTextMarker=yo,t.TextMarker=go,t.LineWidget=uo,t.e_preventDefault=kt,t.e_stopPropagation=Ct,t.e_stop=St,t.addClass=B,t.contains=O,t.rmClass=T,t.keyNames=Bo}al.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function a(t){if(!bt(r,t)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Ys(r);Hs({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,$):(n.prevInput="",i.value=e.text.join("\n"),R(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(i.style.width="0px"),gt(i,"input",(function(){o&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),gt(i,"paste",(function(t){bt(r,t)||$s(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),gt(i,"cut",a),gt(i,"copy",a),gt(t.scroller,"paste",(function(e){if(!$n(t,e)&&!bt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var a=new Event("paste");a.clipboardData=e.clipboardData,i.dispatchEvent(a)}})),gt(t.lineSpace,"selectstart",(function(e){$n(t,e)||kt(e)})),gt(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),gt(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},al.prototype.createField=function(t){this.wrapper=Gs(),this.textarea=this.wrapper.firstChild},al.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},al.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=$r(t);if(t.options.moveInputWithCursor){var i=br(t,n.sel.primary().head,"div"),a=e.wrapper.getBoundingClientRect(),o=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},al.prototype.showSelection=function(t){var e=this.cm,n=e.display;M(n.cursorDiv,t.cursors),M(n.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},al.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&R(this.textarea),o&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null))}},al.prototype.getField=function(){return this.textarea},al.prototype.supportsTouch=function(){return!1},al.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||L()!=this.textarea))try{this.textarea.focus()}catch(t){}},al.prototype.blur=function(){this.textarea.blur()},al.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},al.prototype.receivedFocus=function(){this.slowPoll()},al.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},al.prototype.fastPoll=function(){var t=!1,e=this;function n(){var r=e.poll();r||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},al.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||It(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||r||(r=""),8666==a)return this.reset(),this.cm.execCommand("undo")}var l=0,c=Math.min(r.length,i.length);while(l<c&&r.charCodeAt(l)==i.charCodeAt(l))++l;return Di(e,(function(){Us(e,i.slice(l),r.length-l,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},al.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},al.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},al.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var a=Ir(n,t),c=r.scroller.scrollTop;if(a&&!f){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(a)&&Oi(n,ja)(n.doc,sa(a),$);var h,d=i.style.cssText,p=e.wrapper.style.cssText,g=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-g.top-5)+"px; left: "+(t.clientX-g.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(h=window.scrollY),r.input.focus(),l&&window.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&s>=9&&y(),C){St(t);var m=function(){yt(window,"mouseup",m),setTimeout(v,20)};gt(window,"mouseup",m)}else setTimeout(v,50)}function y(){if(null!=i.selectionStart){var t=n.somethingSelected(),a=""+(t?i.value:"");i.value="⇚",i.value=a,e.prevInput=t?"":"",i.selectionStart=1,i.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,i.style.cssText=d,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!o||o&&s<9)&&y();var t=0,a=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==e.prevInput?Oi(n,Xa)(n):t++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}},al.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},al.prototype.setUneditable=function(){},al.prototype.needsContentAttribute=!1,Bs(Fs),Xs(Fs);var ll="iter insert remove copy getEditor constructor".split(" ");for(var cl in ko.prototype)ko.prototype.hasOwnProperty(cl)&&j(ll,cl)<0&&(Fs.prototype[cl]=function(t){return function(){return t.apply(this.doc,arguments)}}(ko.prototype[cl]));return wt(ko),Fs.inputStyles={textarea:al,contenteditable:Qs},Fs.defineMode=function(t){Fs.defaults.mode||"null"==t||(Fs.defaults.mode=t),jt.apply(this,arguments)},Fs.defineMIME=Ht,Fs.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Fs.defineMIME("text/plain","null"),Fs.defineExtension=function(t,e){Fs.prototype[t]=e},Fs.defineDocExtension=function(t,e){ko.prototype[t]=e},Fs.fromTextArea=ol,sl(Fs),Fs.version="5.65.6",Fs}))})(Txt);var Axt=Txt.exports,Mxt={exports:{}};(function(t,e){(function(t){t(Txt.exports)})((function(t){var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(r,i){var a,o,s=r.indentUnit,l={},c=i.htmlMode?e:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function h(t,e){function n(n){return e.tokenize=n,n(t,e)}var r,i=t.next();return"<"==i?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(p("atom","]]>")):null:t.match("--")?n(p("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(g(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=p("meta","?>"),"meta"):(a=t.eat("/")?"closeTag":"openTag",e.tokenize=f,"tag bracket"):"&"==i?(r=t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),r?"atom":"error"):(t.eatWhile(/[^&<]/),null)}function f(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=h,a=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return a="equals",null;if("<"==n){e.tokenize=h,e.state=_,e.tagName=e.tagStart=null;var r=e.tokenize(t,e);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=d(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(t){var e=function(e,n){while(!e.eol())if(e.next()==t){n.tokenize=f;break}return"string"};return e.isInAttribute=!0,e}function p(t,e){return function(n,r){while(!n.eol()){if(n.match(e)){r.tokenize=h;break}n.next()}return t}}function g(t){return function(e,n){var r;while(null!=(r=e.next())){if("<"==r)return n.tokenize=g(t+1),n.tokenize(e,n);if(">"==r){if(1==t){n.tokenize=h;break}return n.tokenize=g(t-1),n.tokenize(e,n)}}return"meta"}}function m(t){return t&&t.toLowerCase()}function y(t,e,n){this.prev=t.context,this.tagName=e||"",this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function v(t){t.context&&(t.context=t.context.prev)}function b(t,e){var n;while(1){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(m(n))||!l.contextGrabbers[m(n)].hasOwnProperty(m(e)))return;v(t)}}function _(t,e,n){return"openTag"==t?(n.tagStart=e.column(),x):"closeTag"==t?w:_}function x(t,e,n){return"word"==t?(n.tagName=e.current(),o="tag",E):l.allowMissingTagName&&"endTag"==t?(o="tag bracket",E(t,e,n)):(o="error",x)}function w(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(m(n.context.tagName))&&v(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(o="tag",k):(o="tag error",C)}return l.allowMissingTagName&&"endTag"==t?(o="tag bracket",k(t,e,n)):(o="error",C)}function k(t,e,n){return"endTag"!=t?(o="error",k):(v(n),_)}function C(t,e,n){return o="error",k(t,e,n)}function E(t,e,n){if("word"==t)return o="attribute",S;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(m(r))?b(n,r):(b(n,r),n.context=new y(n,r,i==n.indented)),_}return o="error",E}function S(t,e,n){return"equals"==t?T:(l.allowMissing||(o="error"),E(t,e,n))}function T(t,e,n){return"string"==t?A:"word"==t&&l.allowUnquoted?(o="string",E):(o="error",E(t,e,n))}function A(t,e,n){return"string"==t?A:E(t,e,n)}return h.isInText=!0,{startState:function(t){var e={tokenize:h,state:_,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;a=null;var n=e.tokenize(t,e);return(n||a)&&"comment"!=n&&(o=null,e.state=e.state(a||n,t,e),o&&(n="error"==o?n+" error":o)),n},indent:function(e,n,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return t.Pass;if(e.tokenize!=f&&e.tokenize!=h)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var a=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(a&&a[1])while(i){if(i.tagName==a[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(m(i.tagName)))break;i=i.prev}else if(a)while(i){var o=l.contextGrabbers[m(i.tagName)];if(!o||!o.hasOwnProperty(m(a[2])))break;i=i.prev}while(i&&i.prev&&!i.startOfLine)i=i.prev;return i?i.indent+s:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==T&&(t.state=E)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)e.push(n.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}))})();var Nxt={exports:{}};(function(t,e){(function(t){t(Txt.exports)})((function(t){t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.mime==e)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==e)return r}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==e)return r}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.file&&r.file.test(e))return r}var i=e.lastIndexOf("."),a=i>-1&&e.substring(i+1,e.length);if(a)return t.findModeByExtension(a)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.name.toLowerCase()==e)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==e)return r}}}))})(),function(t,e){(function(t){t(Txt.exports,Mxt.exports,Nxt.exports)})((function(t){t.defineMode("markdown",(function(e,n){var r=t.getMode(e,"text/html"),i="null"==r.name;function a(n){if(t.findModeByName){var r=t.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=t.getMode(e,n);return"null"==i.name?null:i}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in o)o.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(o[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,h=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,f=/^ {0,3}(?:\={1,}|-{2,})\s*$/,d=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,y=" ";function v(t,e,n){return e.f=e.inline=n,n(t,e)}function b(t,e,n){return e.f=e.block=n,n(t,e)}function _(t){return!t||!/\S/.test(t.string)}function x(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==k){var n=i;if(!n){var a=t.innerMode(r,e.htmlState);n="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}n&&(e.f=T,e.block=w,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function w(e,r){var i=e.column()===r.indentation,s=_(r.prevLine.stream),d=r.indentedCode,m=r.prevLine.hr,y=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var x=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,y)){r.list=null;while(x<r.listStack[r.listStack.length-1])r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=x-r.listStack[r.listStack.length-1])}var w=!s&&!m&&!r.prevLine.header&&(!y||!d)&&!r.prevLine.fencedCodeEnd,k=(!1===r.list||m||s)&&r.indentation<=b&&e.match(l),S=null;if(r.indentationDiff>=4&&(d||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return e.skipToEnd(),r.indentedCode=!0,o.code;if(e.eatSpace())return null;if(i&&r.indentation<=b&&(S=e.match(h))&&S[1].length<=6)return r.quote=0,r.header=S[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,E(r);if(r.indentation<=b&&e.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),e.eatSpace(),E(r);if(!k&&!r.setext&&i&&r.indentation<=b&&(S=e.match(c))){var T=S[1]?"ol":"ul";return r.indentation=x+e.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&e.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+T]),E(r)}return i&&r.indentation<=b&&(S=e.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(S[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&a(S[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=t.startState(r.localMode)),r.f=r.block=C,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,E(r)):r.setext||!(w&&y||r.quote||!1!==r.list||r.code||k||g.test(e.string))&&(S=e.lookAhead(1))&&(S=S.match(f))?(r.setext?(r.header=r.setext,r.setext=0,e.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==S[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,E(r)):k?(e.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr):"["===e.peek()?v(e,r,O):v(e,r,r.inline)}function k(e,n){var a=r.token(e,n.htmlState);if(!i){var o=t.innerMode(r,n.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||n.md_inside&&e.current().indexOf(">")>-1)&&(n.f=T,n.block=w,n.htmlState=null)}return a}function C(t,e){var r,i=e.listStack[e.listStack.length-1]||0,a=e.indentation<i,s=i+3;return e.fencedEndRE&&e.indentation<=s&&(a||t.match(e.fencedEndRE))?(n.highlightFormatting&&(e.formatting="code-block"),a||(r=E(e)),e.localMode=e.localState=null,e.block=w,e.f=T,e.fencedEndRE=null,e.code=0,e.thisLine.fencedCodeEnd=!0,a?b(t,e,e.block):r):e.localMode?e.localMode.token(t,e.localState):(t.skipToEnd(),o.code)}function E(t){var e=[];if(t.formatting){e.push(o.formatting),"string"===typeof t.formatting&&(t.formatting=[t.formatting]);for(var r=0;r<t.formatting.length;r++)e.push(o.formatting+"-"+t.formatting[r]),"header"===t.formatting[r]&&e.push(o.formatting+"-"+t.formatting[r]+"-"+t.header),"quote"===t.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(o.formatting+"-"+t.formatting[r]+"-"+t.quote):e.push("error"))}if(t.taskOpen)return e.push("meta"),e.length?e.join(" "):null;if(t.taskClosed)return e.push("property"),e.length?e.join(" "):null;if(t.linkHref?e.push(o.linkHref,"url"):(t.strong&&e.push(o.strong),t.em&&e.push(o.em),t.strikethrough&&e.push(o.strikethrough),t.emoji&&e.push(o.emoji),t.linkText&&e.push(o.linkText),t.code&&e.push(o.code),t.image&&e.push(o.image),t.imageAltText&&e.push(o.imageAltText,"link"),t.imageMarker&&e.push(o.imageMarker)),t.header&&e.push(o.header,o.header+"-"+t.header),t.quote&&(e.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(o.quote+"-"+t.quote):e.push(o.quote+"-"+n.maxBlockquoteDepth)),!1!==t.list){var i=(t.listStack.length-1)%3;i?1===i?e.push(o.list2):e.push(o.list3):e.push(o.list1)}return t.trailingSpaceNewLine?e.push("trailing-space-new-line"):t.trailingSpace&&e.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),e.length?e.join(" "):null}function S(t,e){if(t.match(d,!0))return E(e)}function T(e,i){var a=i.text(e,i);if("undefined"!==typeof a)return a;if(i.list)return i.list=null,E(i);if(i.taskList){var s=" "===e.match(u,!0)[1];return s?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,E(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),E(i);var l=e.next();if(i.linkTitle){i.linkTitle=!1;var c=l;"("===l&&(c=")"),c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var h="^\\s*(?:[^"+c+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(e.match(new RegExp(h),!0))return o.linkHref}if("`"===l){var f=i.formatting;n.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var d=e.current().length;if(0!=i.code||i.quote&&1!=d){if(d==i.code){var p=E(i);return i.code=0,p}return i.formatting=f,E(i)}return i.code=d,E(i)}if(i.code)return E(i);if("\\"===l&&(e.next(),n.highlightFormatting)){var g=E(i),y=o.formatting+"-escape";return g?g+" "+y:y}if("!"===l&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),E(i);if("["===l&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),E(i);if("]"===l&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");g=E(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=M,g}if("["===l&&!i.image)return i.linkText&&e.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),E(i);if("]"===l&&i.linkText){n.highlightFormatting&&(i.formatting="link");g=E(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?M:T,g}if("<"===l&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=A,n.highlightFormatting&&(i.formatting="link");g=E(i);return g?g+=" ":g="",g+o.linkInline}if("<"===l&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=A,n.highlightFormatting&&(i.formatting="link");g=E(i);return g?g+=" ":g="",g+o.linkEmail}if(n.xml&&"<"===l&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=e.string.indexOf(">",e.pos);if(-1!=v){var _=e.string.substring(e.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(_)&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=t.startState(r),b(e,i,k)}if(n.xml&&"<"===l&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===l||"_"===l){var x=1,w=1==e.pos?" ":e.string.charAt(e.pos-2);while(x<3&&e.eat(l))x++;var C=e.peek()||" ",S=!/\s/.test(C)&&(!m.test(C)||/\s/.test(w)||m.test(w)),N=!/\s/.test(w)&&(!m.test(w)||/\s/.test(C)||m.test(C)),D=null,O=null;if(x%2&&(i.em||!S||"*"!==l&&N&&!m.test(w)?i.em!=l||!N||"*"!==l&&S&&!m.test(C)||(D=!1):D=!0),x>1&&(i.strong||!S||"*"!==l&&N&&!m.test(w)?i.strong!=l||!N||"*"!==l&&S&&!m.test(C)||(O=!1):O=!0),null!=O||null!=D){n.highlightFormatting&&(i.formatting=null==D?"strong":null==O?"em":"strong em"),!0===D&&(i.em=l),!0===O&&(i.strong=l);p=E(i);return!1===D&&(i.em=!1),!1===O&&(i.strong=!1),p}}else if(" "===l&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return E(i);e.backUp(1)}if(n.strikethrough)if("~"===l&&e.eatWhile(l)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");p=E(i);return i.strikethrough=!1,p}if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),E(i)}else if(" "===l&&e.match("~~",!0)){if(" "===e.peek())return E(i);e.backUp(2)}if(n.emoji&&":"===l&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var L=E(i);return i.emoji=!1,L}return" "===l&&(e.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),E(i)}function A(t,e){var r=t.next();if(">"===r){e.f=e.inline=T,n.highlightFormatting&&(e.formatting="link");var i=E(e);return i?i+=" ":i="",i+o.linkInline}return t.match(/^[^>]+/,!0),o.linkInline}function M(t,e){if(t.eatSpace())return null;var r=t.next();return"("===r||"["===r?(e.f=e.inline=D("("===r?")":"]"),n.highlightFormatting&&(e.formatting="link-string"),e.linkHref=!0,E(e)):"error"}var N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function D(t){return function(e,r){var i=e.next();if(i===t){r.f=r.inline=T,n.highlightFormatting&&(r.formatting="link-string");var a=E(r);return r.linkHref=!1,a}return e.match(N[t]),r.linkHref=!0,E(r)}}function O(t,e){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(e.f=L,t.next(),n.highlightFormatting&&(e.formatting="link"),e.linkText=!0,E(e)):v(t,e,T)}function L(t,e){if(t.match("]:",!0)){e.f=e.inline=B,n.highlightFormatting&&(e.formatting="link");var r=E(e);return e.linkText=!1,r}return t.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function B(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),e.f=e.inline=T,o.linkHref+" url")}var I={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:T,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&t.copyState(r,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?t.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return x(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=k)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g,y).length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==k?{state:t.htmlState,mode:r}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:I}},indent:function(e,n,i){return e.block==k&&r.indent?r.indent(e.htmlState,n,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,n,i):t.Pass},blankLine:x,getType:E,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return I}),"xml"),t.defineMIME("text/markdown","markdown"),t.defineMIME("text/x-markdown","markdown")}))}(),function(t,e){(function(t){t(Txt.exports)})((function(t){var e="CodeMirror-activeline",n="CodeMirror-activeline-background",r="CodeMirror-activeline-gutter";function i(t){for(var i=0;i<t.state.activeLines.length;i++)t.removeLineClass(t.state.activeLines[i],"wrap",e),t.removeLineClass(t.state.activeLines[i],"background",n),t.removeLineClass(t.state.activeLines[i],"gutter",r)}function a(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function o(t,o){for(var s=[],l=0;l<o.length;l++){var c=o[l],u=t.getOption("styleActiveLine");if("object"==typeof u&&u.nonEmpty?c.anchor.line==c.head.line:c.empty()){var h=t.getLineHandleVisualStart(c.head.line);s[s.length-1]!=h&&s.push(h)}}a(t.state.activeLines,s)||t.operation((function(){i(t);for(var a=0;a<s.length;a++)t.addLineClass(s[a],"wrap",e),t.addLineClass(s[a],"background",n),t.addLineClass(s[a],"gutter",r);t.state.activeLines=s}))}function s(t,e){o(t,e.ranges)}t.defineOption("styleActiveLine",!1,(function(e,n,r){var a=r!=t.Init&&r;n!=a&&(a&&(e.off("beforeSelectionChange",s),i(e),delete e.state.activeLines),n&&(e.state.activeLines=[],o(e,e.listSelections()),e.on("beforeSelectionChange",s)))}))}))}(),function(t,e){(function(t){t(Txt.exports)})((function(t){function e(t){var e=t.getWrapperElement();t.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:e.style.width,height:e.style.height},e.style.width="",e.style.height="auto",e.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",t.refresh()}function n(t){var e=t.getWrapperElement();e.className=e.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var n=t.state.fullScreenRestore;e.style.width=n.width,e.style.height=n.height,window.scrollTo(n.scrollLeft,n.scrollTop),t.refresh()}t.defineOption("fullScreen",!1,(function(r,i,a){a==t.Init&&(a=!1),!a!=!i&&(i?e(r):n(r))}))}))}();(function(t,e){(function(t){t(Txt.exports)})((function(t){function e(t){t.state.markedSelection&&t.operation((function(){c(t)}))}function n(t){t.state.markedSelection&&t.state.markedSelection.length&&t.operation((function(){s(t)}))}t.defineOption("styleSelectedText",!1,(function(r,i,a){var o=a&&a!=t.Init;i&&!o?(r.state.markedSelection=[],r.state.markedSelectionStyle="string"==typeof i?i:"CodeMirror-selectedtext",l(r),r.on("cursorActivity",e),r.on("change",n)):!i&&o&&(r.off("cursorActivity",e),r.off("change",n),s(r),r.state.markedSelection=r.state.markedSelectionStyle=null)}));var r=8,i=t.Pos,a=t.cmpPos;function o(t,e,n,o){if(0!=a(e,n))for(var s=t.state.markedSelection,l=t.state.markedSelectionStyle,c=e.line;;){var u=c==e.line?e:i(c,0),h=c+r,f=h>=n.line,d=f?n:i(h,0),p=t.markText(u,d,{className:l});if(null==o?s.push(p):s.splice(o++,0,p),f)break;c=h}}function s(t){for(var e=t.state.markedSelection,n=0;n<e.length;++n)e[n].clear();e.length=0}function l(t){s(t);for(var e=t.listSelections(),n=0;n<e.length;n++)o(t,e[n].from(),e[n].to())}function c(t){if(!t.somethingSelected())return s(t);if(t.listSelections().length>1)return l(t);var e=t.getCursor("start"),n=t.getCursor("end"),i=t.state.markedSelection;if(!i.length)return o(t,e,n);var c=i[0].find(),u=i[i.length-1].find();if(!c||!u||n.line-e.line<=r||a(e,u.to)>=0||a(n,c.from)<=0)return l(t);while(a(e,c.from)>0)i.shift().clear(),c=i[0].find();a(e,c.from)<0&&(c.to.line-e.line<r?(i.shift().clear(),o(t,e,c.to,0)):o(t,e,c.from,0));while(a(n,u.to)<0)i.pop().clear(),u=i[i.length-1].find();a(n,u.to)>0&&(n.line-u.from.line<r?(i.pop().clear(),o(t,u.from,n)):o(t,u.to,n))}}))})(),function(t,e){(function(t){t(Txt.exports)})((function(t){var e="CodeMirror-hint",n="CodeMirror-hint-active";function r(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var r={hint:e};if(n)for(var i in n)r[i]=n[i];return t.showHint(r)},t.defineExtension("showHint",(function(e){e=o(this,this.getCursor("start"),e);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var i=0;i<n.length;i++)if(n[i].head.line!=n[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var a=this.state.completionActive=new r(this,e);a.options.hint&&(t.signal(this,"startCompletion",this),a.update(!0))}})),t.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var i=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},a=window.cancelAnimationFrame||clearTimeout;function o(t,e,n){var r=t.options.hintOptions,i={};for(var a in p)i[a]=p[a];if(r)for(var a in r)void 0!==r[a]&&(i[a]=r[a]);if(n)for(var a in n)void 0!==n[a]&&(i[a]=n[a]);return i.hint.resolve&&(i.hint=i.hint.resolve(t,e)),i}function s(t){return"string"==typeof t?t:t.text}function l(t,e){var n={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},r=/Mac/.test(navigator.platform);r&&(n["Ctrl-P"]=function(){e.moveFocus(-1)},n["Ctrl-N"]=function(){e.moveFocus(1)});var i=t.options.customKeys,a=i?{}:n;function o(t,r){var i;i="string"!=typeof r?function(t){return r(t,e)}:n.hasOwnProperty(r)?n[r]:r,a[t]=i}if(i)for(var s in i)i.hasOwnProperty(s)&&o(s,i[s]);var l=t.options.extraKeys;if(l)for(var s in l)l.hasOwnProperty(s)&&o(s,l[s]);return a}function c(t,e){while(e&&e!=t){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function u(r,i){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=r,this.data=i,this.picked=!1;var a=this,o=r.cm,u=o.getInputField().ownerDocument,h=u.defaultView||u.parentWindow,f=this.hints=u.createElement("ul");f.setAttribute("role","listbox"),f.setAttribute("aria-expanded","true"),f.id=this.id;var d=r.cm.options.theme;f.className="CodeMirror-hints "+d,this.selectedHint=i.selectedHint||0;for(var p=i.list,g=0;g<p.length;++g){var m=f.appendChild(u.createElement("li")),y=p[g],v=e+(g!=this.selectedHint?"":" "+n);null!=y.className&&(v=y.className+" "+v),m.className=v,g==this.selectedHint&&m.setAttribute("aria-selected","true"),m.id=this.id+"-"+g,m.setAttribute("role","option"),y.render?y.render(m,i,y):m.appendChild(u.createTextNode(y.displayText||s(y))),m.hintId=g}var b=r.options.container||u.body,_=o.cursorCoords(r.options.alignWithWord?i.from:null),x=_.left,w=_.bottom,k=!0,C=0,E=0;if(b!==u.body){var S=-1!==["absolute","relative","fixed"].indexOf(h.getComputedStyle(b).position),T=S?b:b.offsetParent,A=T.getBoundingClientRect(),M=u.body.getBoundingClientRect();C=A.left-M.left-T.scrollLeft,E=A.top-M.top-T.scrollTop}f.style.left=x-C+"px",f.style.top=w-E+"px";var N=h.innerWidth||Math.max(u.body.offsetWidth,u.documentElement.offsetWidth),D=h.innerHeight||Math.max(u.body.offsetHeight,u.documentElement.offsetHeight);b.appendChild(f),o.getInputField().setAttribute("aria-autocomplete","list"),o.getInputField().setAttribute("aria-owns",this.id),o.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var O,L=r.options.moveOnOverlap?f.getBoundingClientRect():new DOMRect,B=!!r.options.paddingForScrollbar&&f.scrollHeight>f.clientHeight+1;setTimeout((function(){O=o.getScrollInfo()}));var I=L.bottom-D;if(I>0){var R=L.bottom-L.top,F=_.top-(_.bottom-L.top);if(F-R>0)f.style.top=(w=_.top-R-E)+"px",k=!1;else if(R>D){f.style.height=D-5+"px",f.style.top=(w=_.bottom-L.top-E)+"px";var P=o.getCursor();i.from.ch!=P.ch&&(_=o.cursorCoords(P),f.style.left=(x=_.left-C)+"px",L=f.getBoundingClientRect())}}var z,q=L.right-N;if(B&&(q+=o.display.nativeBarWidth),q>0&&(L.right-L.left>N&&(f.style.width=N-5+"px",q-=L.right-L.left-N),f.style.left=(x=Math.max(_.left-q-C,0))+"px"),B)for(var j=f.firstChild;j;j=j.nextSibling)j.style.paddingRight=o.display.nativeBarWidth+"px";(o.addKeyMap(this.keyMap=l(r,{moveFocus:function(t,e){a.changeActive(a.selectedHint+t,e)},setFocus:function(t){a.changeActive(t)},menuSize:function(){return a.screenAmount()},length:p.length,close:function(){r.close()},pick:function(){a.pick()},data:i})),r.options.closeOnUnfocus)&&(o.on("blur",this.onBlur=function(){z=setTimeout((function(){r.close()}),100)}),o.on("focus",this.onFocus=function(){clearTimeout(z)}));o.on("scroll",this.onScroll=function(){var t=o.getScrollInfo(),e=o.getWrapperElement().getBoundingClientRect();O||(O=o.getScrollInfo());var n=w+O.top-t.top,i=n-(h.pageYOffset||(u.documentElement||u.body).scrollTop);if(k||(i+=f.offsetHeight),i<=e.top||i>=e.bottom)return r.close();f.style.top=n+"px",f.style.left=x+O.left-t.left+"px"}),t.on(f,"dblclick",(function(t){var e=c(f,t.target||t.srcElement);e&&null!=e.hintId&&(a.changeActive(e.hintId),a.pick())})),t.on(f,"click",(function(t){var e=c(f,t.target||t.srcElement);e&&null!=e.hintId&&(a.changeActive(e.hintId),r.options.completeOnSingleClick&&a.pick())})),t.on(f,"mousedown",(function(){setTimeout((function(){o.focus()}),20)}));var H=this.getSelectedHintRange();return 0===H.from&&0===H.to||this.scrollToActive(),t.signal(i,"select",p[this.selectedHint],f.childNodes[this.selectedHint]),!0}function h(t,e){if(!t.somethingSelected())return e;for(var n=[],r=0;r<e.length;r++)e[r].supportsSelection&&n.push(e[r]);return n}function f(t,e,n,r){if(t.async)t(e,r,n);else{var i=t(e,n);i&&i.then?i.then(r):r(i)}}function d(e,n){var r,i=e.getHelpers(n,"hint");if(i.length){var a=function(t,e,n){var r=h(t,i);function a(i){if(i==r.length)return e(null);f(r[i],t,n,(function(t){t&&t.list.length>0?e(t):a(i+1)}))}a(0)};return a.async=!0,a.supportsSelection=!0,a}return(r=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:r})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var r=e.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,e,r):i.cm.replaceRange(s(r),r.from||e.from,r.to||e.to,"complete"),t.signal(e,"pick",r),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(a(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),n=this.cm.getLine(e.line);if(e.line!=this.startPos.line||n.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(n.charAt(e.ch-1)))this.close();else{var r=this;this.debounce=i((function(){r.update()})),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,n=++this.tick;f(this.options.hint,this.cm,this.options,(function(r){e.tick==n&&e.finishUpdate(r,t)}))}},finishUpdate:function(e,n){this.data&&t.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(r&&1==e.list.length?this.pick(e,0):(this.widget=new u(this,e),t.signal(e,"shown")))}},u.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,r){if(e>=this.data.list.length?e=r?this.data.list.length-1:0:e<0&&(e=r?0:this.data.list.length-1),this.selectedHint!=e){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=e],i.className+=" "+n,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],n=this.hints.childNodes[t.to],r=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}},t.registerHelper("hint","auto",{resolve:d}),t.registerHelper("hint","fromList",(function(e,n){var r,i=e.getCursor(),a=e.getTokenAt(i),o=t.Pos(i.line,a.start),s=i;a.start<i.ch&&/\w/.test(a.string.charAt(i.ch-a.start-1))?r=a.string.substr(0,i.ch-a.start):(r="",o=i);for(var l=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,r.length)==r&&l.push(u)}if(l.length)return{list:l,from:o,to:s}})),t.commands.autocomplete=t.showHint;var p={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)}))}();var Dxt={exports:{}};(function(t,e){(function(t){t(Txt.exports)})((function(t){function e(e,r,a,o){if(a&&a.call){var s=a;a=null}else s=i(e,a,"rangeFinder");"number"==typeof r&&(r=t.Pos(r,0));var l=i(e,a,"minFoldSize");function c(t){var n=s(e,r);if(!n||n.to.line-n.from.line<l)return null;if("fold"===o)return n;for(var i=e.findMarksAt(n.from),a=0;a<i.length;++a)if(i[a].__isFold){if(!t)return null;n.cleared=!0,i[a].clear()}return n}var u=c(!0);if(i(e,a,"scanUp"))while(!u&&r.line>e.firstLine())r=t.Pos(r.line-1,0),u=c(!1);if(u&&!u.cleared&&"unfold"!==o){var h=n(e,a,u);t.on(h,"mousedown",(function(e){f.clear(),t.e_preventDefault(e)}));var f=e.markText(u.from,u.to,{replacedWith:h,clearOnEnter:i(e,a,"clearOnEnter"),__isFold:!0});f.on("clear",(function(n,r){t.signal(e,"unfold",e,n,r)})),t.signal(e,"fold",e,u.from,u.to)}}function n(t,e,n){var r=i(t,e,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var a=document.createTextNode(r);r=document.createElement("span"),r.appendChild(a),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}t.newFoldFunction=function(t,n){return function(r,i){e(r,i,{rangeFinder:t,widget:n})}},t.defineExtension("foldCode",(function(t,n,r){e(this,t,n,r)})),t.defineExtension("isFolded",(function(t){for(var e=this.findMarksAt(t),n=0;n<e.length;++n)if(e[n].__isFold)return!0})),t.commands.toggleFold=function(t){t.foldCode(t.getCursor())},t.commands.fold=function(t){t.foldCode(t.getCursor(),null,"fold")},t.commands.unfold=function(t){t.foldCode(t.getCursor(),{scanUp:!1},"unfold")},t.commands.foldAll=function(e){e.operation((function(){for(var n=e.firstLine(),r=e.lastLine();n<=r;n++)e.foldCode(t.Pos(n,0),{scanUp:!1},"fold")}))},t.commands.unfoldAll=function(e){e.operation((function(){for(var n=e.firstLine(),r=e.lastLine();n<=r;n++)e.foldCode(t.Pos(n,0),{scanUp:!1},"unfold")}))},t.registerHelper("fold","combine",(function(){var t=Array.prototype.slice.call(arguments,0);return function(e,n){for(var r=0;r<t.length;++r){var i=t[r](e,n);if(i)return i}}})),t.registerHelper("fold","auto",(function(t,e){for(var n=t.getHelpers(e,"fold"),r=0;r<n.length;r++){var i=n[r](t,e);if(i)return i}}));var r={rangeFinder:t.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function i(t,e,n){if(e&&void 0!==e[n])return e[n];var i=t.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}t.defineOption("foldOptions",null),t.defineExtension("foldOption",(function(t,e){return i(this,t,e)}))}))})(),function(t,e){(function(t){t(Txt.exports,Dxt.exports)})((function(t){t.defineOption("foldGutter",!1,(function(e,i,a){a&&a!=t.Init&&(e.clearGutter(e.state.foldGutter.options.gutter),e.state.foldGutter=null,e.off("gutterClick",c),e.off("changes",u),e.off("viewportChange",h),e.off("fold",f),e.off("unfold",f),e.off("swapDoc",u)),i&&(e.state.foldGutter=new n(r(i)),l(e),e.on("gutterClick",c),e.on("changes",u),e.on("viewportChange",h),e.on("fold",f),e.on("unfold",f),e.on("swapDoc",u))}));var e=t.Pos;function n(t){this.options=t,this.from=this.to=0}function r(t){return!0===t&&(t={}),null==t.gutter&&(t.gutter="CodeMirror-foldgutter"),null==t.indicatorOpen&&(t.indicatorOpen="CodeMirror-foldgutter-open"),null==t.indicatorFolded&&(t.indicatorFolded="CodeMirror-foldgutter-folded"),t}function i(t,n){for(var r=t.findMarks(e(n,0),e(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var a=r[i].find(-1);if(a&&a.line===n)return r[i]}}function a(t){if("string"==typeof t){var e=document.createElement("div");return e.className=t+" CodeMirror-guttermarker-subtle",e}return t.cloneNode(!0)}function o(t,n,r){var o=t.state.foldGutter.options,l=n-1,c=t.foldOption(o,"minFoldSize"),u=t.foldOption(o,"rangeFinder"),h="string"==typeof o.indicatorFolded&&s(o.indicatorFolded),f="string"==typeof o.indicatorOpen&&s(o.indicatorOpen);t.eachLine(n,r,(function(n){++l;var r=null,s=n.gutterMarkers;if(s&&(s=s[o.gutter]),i(t,l)){if(h&&s&&h.test(s.className))return;r=a(o.indicatorFolded)}else{var d=e(l,0),p=u&&u(t,d);if(p&&p.to.line-p.from.line>=c){if(f&&s&&f.test(s.className))return;r=a(o.indicatorOpen)}}(r||s)&&t.setGutterMarker(n,o.gutter,r)}))}function s(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function l(t){var e=t.getViewport(),n=t.state.foldGutter;n&&(t.operation((function(){o(t,e.from,e.to)})),n.from=e.from,n.to=e.to)}function c(t,n,r){var a=t.state.foldGutter;if(a){var o=a.options;if(r==o.gutter){var s=i(t,n);s?s.clear():t.foldCode(e(n,0),o)}}}function u(t){var e=t.state.foldGutter;if(e){var n=e.options;e.from=e.to=0,clearTimeout(e.changeUpdate),e.changeUpdate=setTimeout((function(){l(t)}),n.foldOnChangeTimeSpan||600)}}function h(t){var e=t.state.foldGutter;if(e){var n=e.options;clearTimeout(e.changeUpdate),e.changeUpdate=setTimeout((function(){var n=t.getViewport();e.from==e.to||n.from-e.to>20||e.from-n.to>20?l(t):t.operation((function(){n.from<e.from&&(o(t,n.from,e.from),e.from=n.from),n.to>e.to&&(o(t,e.to,n.to),e.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(t,e){var n=t.state.foldGutter;if(n){var r=e.line;r>=n.from&&r<n.to&&o(t,r,r+1)}}}))}();(function(t,e){(function(t){t(Txt.exports)})((function(t){t.registerHelper("fold","markdown",(function(e,n){var r=100;function i(n){var r=e.getTokenTypeAt(t.Pos(n,0));return r&&/\bheader\b/.test(r)}function a(t,e,n){var a=e&&e.match(/^#+/);return a&&i(t)?a[0].length:(a=n&&n.match(/^[=\-]+\s*$/),a&&i(t+1)?"="==n[0]?1:2:r)}var o=e.getLine(n.line),s=e.getLine(n.line+1),l=a(n.line,o,s);if(l!==r){var c=e.lastLine(),u=n.line,h=e.getLine(u+2);while(u<c){if(a(u+1,s,h)<=l)break;++u,s=h,h=e.getLine(u+2)}return{from:t.Pos(n.line,o.length),to:t.Pos(u,e.getLine(u).length)}}}))}))})();var Oxt={exports:{}};(function(t,e){(function(t){t(Txt.exports)})((function(t){var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",a=new RegExp("<(/?)(["+r+"]["+i+"]*)","g");function o(t,e,n,r){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=r?Math.max(r.from,t.firstLine()):t.firstLine(),this.max=r?Math.min(r.to-1,t.lastLine()):t.lastLine()}function s(t,n){var r=t.cm.getTokenTypeAt(e(t.line,n));return r&&/\btag\b/.test(r)}function l(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function c(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function u(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(l(t))continue;return}if(s(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e+1}}function h(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(s(t,e+1)){a.lastIndex=e,t.ch=e;var n=a.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function f(t){for(;;){a.lastIndex=t.ch;var e=a.exec(t.text);if(!e){if(l(t))continue;return}if(s(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function d(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(s(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e}}function p(t,n){for(var r=[];;){var i,a=f(t),o=t.line,s=t.ch-(a?a[0].length:0);if(!a||!(i=u(t)))return;if("selfClose"!=i)if(a[1]){for(var l=r.length-1;l>=0;--l)if(r[l]==a[2]){r.length=l;break}if(l<0&&(!n||n==a[2]))return{tag:a[2],from:e(o,s),to:e(t.line,t.ch)}}else r.push(a[2])}}function g(t,n){for(var r=[];;){var i=d(t);if(!i)return;if("selfClose"!=i){var a=t.line,o=t.ch,s=h(t);if(!s)return;if(s[1])r.push(s[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==s[2]){r.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(a,o)}}}else h(t)}}t.registerHelper("fold","xml",(function(t,r){for(var i=new o(t,r.line,0);;){var a=f(i);if(!a||i.line!=r.line)return;var s=u(i);if(!s)return;if(!a[1]&&"selfClose"!=s){var l=e(i.line,i.ch),c=p(i,a[2]);return c&&n(c.from,l)>0?{from:l,to:c.from}:null}}})),t.findMatchingTag=function(t,r,i){var a=new o(t,r.line,r.ch,i);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var s=u(a),l=s&&e(a.line,a.ch),c=s&&h(a);if(s&&c&&!(n(a,r)>0)){var f={from:e(a.line,a.ch),to:l,tag:c[2]};return"selfClose"==s?{open:f,close:null,at:"open"}:c[1]?{open:g(a,c[2]),close:f,at:"close"}:(a=new o(t,l.line,l.ch,i),{open:f,close:p(a,c[2]),at:"open"})}}},t.findEnclosingTag=function(t,e,n,r){for(var i=new o(t,e.line,e.ch,n);;){var a=g(i,r);if(!a)break;var s=new o(t,e.line,e.ch,n),l=p(s,a.tag);if(l)return{open:a,close:l}}},t.scanForClosingTag=function(t,e,n,r){var i=new o(t,e.line,e.ch,r?{from:0,to:r}:null);return p(i,n)}}))})(),function(t,e){(function(t){t(Txt.exports,Oxt.exports)})((function(t){function e(t){t.state.tagHit&&t.state.tagHit.clear(),t.state.tagOther&&t.state.tagOther.clear(),t.state.tagHit=t.state.tagOther=null}function n(n){n.state.failedTagMatch=!1,n.operation((function(){if(e(n),!n.somethingSelected()){var r=n.getCursor(),i=n.getViewport();i.from=Math.min(i.from,r.line),i.to=Math.max(r.line+1,i.to);var a=t.findMatchingTag(n,r,i);if(a){if(n.state.matchBothTags){var o="open"==a.at?a.open:a.close;o&&(n.state.tagHit=n.markText(o.from,o.to,{className:"CodeMirror-matchingtag"}))}var s="close"==a.at?a.open:a.close;s?n.state.tagOther=n.markText(s.from,s.to,{className:"CodeMirror-matchingtag"}):n.state.failedTagMatch=!0}}}))}function r(t){t.state.failedTagMatch&&n(t)}t.defineOption("matchTags",!1,(function(i,a,o){o&&o!=t.Init&&(i.off("cursorActivity",n),i.off("viewportChange",r),e(i)),a&&(i.state.matchBothTags="object"==typeof a&&a.bothTags,i.on("cursorActivity",n),i.on("viewportChange",r),n(i))})),t.commands.toMatchingTag=function(e){var n=t.findMatchingTag(e,e.getCursor());if(n){var r="close"==n.at?n.open:n.close;r&&e.extendSelection(r.to,r.from)}}}))}(),function(t,e){(function(t){t(Txt.exports,Oxt.exports)})((function(t){t.defineOption("autoCloseTags",!1,(function(e,n,i){if(i!=t.Init&&i&&e.removeKeyMap("autoCloseTags"),n){var o={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(o["'/'"]=function(t){return a(t)}),"object"==typeof n&&!1===n.whenOpening||(o["'>'"]=function(t){return r(t)}),e.addKeyMap(o)}}));var e=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return t.Pass;for(var i=r.listSelections(),a=[],l=r.getOption("autoCloseTags"),c=0;c<i.length;c++){if(!i[c].empty())return t.Pass;var u=i[c].head,h=r.getTokenAt(u),f=t.innerMode(r.getMode(),h.state),d=f.state,p=f.mode.xmlCurrentTag&&f.mode.xmlCurrentTag(d),g=p&&p.name;if(!g)return t.Pass;var m="html"==f.mode.configuration,y="object"==typeof l&&l.dontCloseTags||m&&e,v="object"==typeof l&&l.indentTags||m&&n;h.end>u.ch&&(g=g.slice(0,g.length-h.end+u.ch));var b=g.toLowerCase();if(!g||"string"==h.type&&(h.end!=u.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||1==h.string.length)||"tag"==h.type&&p.close||h.string.indexOf("/")==u.ch-h.start-1||y&&o(y,b)>-1||s(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(d)||[],g,u,!0))return t.Pass;var _="object"==typeof l&&l.emptyTags;if(_&&o(_,g)>-1)a[c]={text:"/>",newPos:t.Pos(u.line,u.ch+2)};else{var x=v&&o(v,b)>-1;a[c]={indent:x,text:">"+(x?"\n\n":"")+"</"+g+">",newPos:x?t.Pos(u.line+1,0):t.Pos(u.line,u.ch+1)}}}var w="object"==typeof l&&l.dontIndentOnAutoClose;for(c=i.length-1;c>=0;c--){var k=a[c];r.replaceRange(k.text,i[c].head,i[c].anchor,"+insert");var C=r.listSelections().slice(0);C[c]={head:k.newPos,anchor:k.newPos},r.setSelections(C),!w&&k.indent&&(r.indentLine(k.newPos.line,null,!0),r.indentLine(k.newPos.line+1,null,!0))}}function i(e,n){for(var r=e.listSelections(),i=[],a=n?"/":"</",o=e.getOption("autoCloseTags"),l="object"==typeof o&&o.dontIndentOnSlash,c=0;c<r.length;c++){if(!r[c].empty())return t.Pass;var u=r[c].head,h=e.getTokenAt(u),f=t.innerMode(e.getMode(),h.state),d=f.state;if(n&&("string"==h.type||"<"!=h.string.charAt(0)||h.start!=u.ch-1))return t.Pass;var p,g="xml"!=f.mode.name&&"htmlmixed"==e.getMode().name;if(g&&"javascript"==f.mode.name)p=a+"script";else if(g&&"css"==f.mode.name)p=a+"style";else{var m=f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(d),y=m.length?m[m.length-1]:"";if(!m||m.length&&s(e,m,y,u))return t.Pass;p=a+y}">"!=e.getLine(u.line).charAt(h.end)&&(p+=">"),i[c]=p}if(e.replaceSelections(i),r=e.listSelections(),!l)for(c=0;c<r.length;c++)(c==r.length-1||r[c].head.line<r[c+1].head.line)&&e.indentLine(r[c].head.line)}function a(e){return e.getOption("disableInput")?t.Pass:i(e,!0)}function o(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;++n)if(t[n]==e)return n;return-1}function s(e,n,r,i,a){if(!t.scanForClosingTag)return!1;var o=Math.min(e.lastLine()+1,i.line+500),s=t.scanForClosingTag(e,i,null,o);if(!s||s.tag!=r)return!1;for(var l=a?1:0,c=n.length-1;c>=0;c--){if(n[c]!=r)break;++l}i=s.to;for(c=1;c<l;c++){var u=t.scanForClosingTag(e,i,null,o);if(!u||u.tag!=r)return!1;i=u.to}return!0}t.commands.closeTag=function(t){return i(t)}}))}(),function(t,e){(function(t){t(Txt.exports)})((function(t){var e=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(t,n){var r=n.line,i=0,a=0,o=e.exec(t.getLine(r)),s=o[1];do{i+=1;var l=r+i,c=t.getLine(l),u=e.exec(c);if(u){var h=u[1],f=parseInt(o[3],10)+i-a,d=parseInt(u[3],10),p=d;if(s!==h||isNaN(d)){if(s.length>h.length)return;if(s.length<h.length&&1===i)return;a+=1}else f===d&&(p=d+1),f>d&&(p=f+1),t.replaceRange(c.replace(e,h+p+u[4]+u[5]),{line:l,ch:0},{line:l,ch:c.length})}}while(u)}t.commands.newlineAndIndentContinueMarkdownList=function(a){if(a.getOption("disableInput"))return t.Pass;for(var o=a.listSelections(),s=[],l=0;l<o.length;l++){var c=o[l].head,u=a.getStateAfter(c.line),h=t.innerMode(a.getMode(),u);if("markdown"!==h.mode.name&&"markdown"!==h.mode.helperType)return void a.execCommand("newlineAndIndent");u=h.state;var f=!1!==u.list,d=0!==u.quote,p=a.getLine(c.line),g=e.exec(p),m=/^\s*$/.test(p.slice(0,c.ch));if(!o[l].empty()||!f&&!d||!g||m)return void a.execCommand("newlineAndIndent");if(n.test(p)){var y=d&&/>\s*$/.test(p),v=!/>\s*$/.test(p);(y||v)&&a.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[l]="\n"}else{var b=g[1],_=g[5],x=!(r.test(g[2])||g[2].indexOf(">")>=0),w=x?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[l]="\n"+b+w+_,x&&i(a,c)}}a.replaceSelections(s)}}))}();var Lxt=[[0,31,"N"],[32,126,"Na"],[127,160,"N"],[161,161,"A"],[162,163,"Na"],[164,164,"A"],[165,166,"Na"],[167,168,"A"],[169,169,"N"],[170,170,"A"],[171,171,"N"],[172,172,"Na"],[173,174,"A"],[175,175,"Na"],[176,180,"A"],[181,181,"N"],[182,186,"A"],[187,187,"N"],[188,191,"A"],[192,197,"N"],[198,198,"A"],[199,207,"N"],[208,208,"A"],[209,214,"N"],[215,216,"A"],[217,221,"N"],[222,225,"A"],[226,229,"N"],[230,230,"A"],[231,231,"N"],[232,234,"A"],[235,235,"N"],[236,237,"A"],[238,239,"N"],[240,240,"A"],[241,241,"N"],[242,243,"A"],[244,246,"N"],[247,250,"A"],[251,251,"N"],[252,252,"A"],[253,253,"N"],[254,254,"A"],[255,256,"N"],[257,257,"A"],[258,272,"N"],[273,273,"A"],[274,274,"N"],[275,275,"A"],[276,282,"N"],[283,283,"A"],[284,293,"N"],[294,295,"A"],[296,298,"N"],[299,299,"A"],[300,304,"N"],[305,307,"A"],[308,311,"N"],[312,312,"A"],[313,318,"N"],[319,322,"A"],[323,323,"N"],[324,324,"A"],[325,327,"N"],[328,331,"A"],[332,332,"N"],[333,333,"A"],[334,337,"N"],[338,339,"A"],[340,357,"N"],[358,359,"A"],[360,362,"N"],[363,363,"A"],[364,461,"N"],[462,462,"A"],[463,463,"N"],[464,464,"A"],[465,465,"N"],[466,466,"A"],[467,467,"N"],[468,468,"A"],[469,469,"N"],[470,470,"A"],[471,471,"N"],[472,472,"A"],[473,473,"N"],[474,474,"A"],[475,475,"N"],[476,476,"A"],[477,592,"N"],[593,593,"A"],[594,608,"N"],[609,609,"A"],[610,707,"N"],[708,708,"A"],[709,710,"N"],[711,711,"A"],[712,712,"N"],[713,715,"A"],[716,716,"N"],[717,717,"A"],[718,719,"N"],[720,720,"A"],[721,727,"N"],[728,731,"A"],[732,732,"N"],[733,733,"A"],[734,734,"N"],[735,735,"A"],[736,767,"N"],[768,879,"A"],[880,912,"N"],[913,929,"A"],[930,930,"N"],[931,937,"A"],[938,944,"N"],[945,961,"A"],[962,962,"N"],[963,969,"A"],[970,1024,"N"],[1025,1025,"A"],[1026,1039,"N"],[1040,1103,"A"],[1104,1104,"N"],[1105,1105,"A"],[1106,4351,"N"],[4352,4447,"W"],[4448,8207,"N"],[8208,8208,"A"],[8209,8210,"N"],[8211,8214,"A"],[8215,8215,"N"],[8216,8217,"A"],[8218,8219,"N"],[8220,8221,"A"],[8222,8223,"N"],[8224,8226,"A"],[8227,8227,"N"],[8228,8231,"A"],[8232,8239,"N"],[8240,8240,"A"],[8241,8241,"N"],[8242,8243,"A"],[8244,8244,"N"],[8245,8245,"A"],[8246,8250,"N"],[8251,8251,"A"],[8252,8253,"N"],[8254,8254,"A"],[8255,8307,"N"],[8308,8308,"A"],[8309,8318,"N"],[8319,8319,"A"],[8320,8320,"N"],[8321,8324,"A"],[8325,8360,"N"],[8361,8361,"H"],[8362,8363,"N"],[8364,8364,"A"],[8365,8450,"N"],[8451,8451,"A"],[8452,8452,"N"],[8453,8453,"A"],[8454,8456,"N"],[8457,8457,"A"],[8458,8466,"N"],[8467,8467,"A"],[8468,8469,"N"],[8470,8470,"A"],[8471,8480,"N"],[8481,8482,"A"],[8483,8485,"N"],[8486,8486,"A"],[8487,8490,"N"],[8491,8491,"A"],[8492,8530,"N"],[8531,8532,"A"],[8533,8538,"N"],[8539,8542,"A"],[8543,8543,"N"],[8544,8555,"A"],[8556,8559,"N"],[8560,8569,"A"],[8570,8584,"N"],[8585,8585,"A"],[8586,8591,"N"],[8592,8601,"A"],[8602,8631,"N"],[8632,8633,"A"],[8634,8657,"N"],[8658,8658,"A"],[8659,8659,"N"],[8660,8660,"A"],[8661,8678,"N"],[8679,8679,"A"],[8680,8703,"N"],[8704,8704,"A"],[8705,8705,"N"],[8706,8707,"A"],[8708,8710,"N"],[8711,8712,"A"],[8713,8714,"N"],[8715,8715,"A"],[8716,8718,"N"],[8719,8719,"A"],[8720,8720,"N"],[8721,8721,"A"],[8722,8724,"N"],[8725,8725,"A"],[8726,8729,"N"],[8730,8730,"A"],[8731,8732,"N"],[8733,8736,"A"],[8737,8738,"N"],[8739,8739,"A"],[8740,8740,"N"],[8741,8741,"A"],[8742,8742,"N"],[8743,8748,"A"],[8749,8749,"N"],[8750,8750,"A"],[8751,8755,"N"],[8756,8759,"A"],[8760,8763,"N"],[8764,8765,"A"],[8766,8775,"N"],[8776,8776,"A"],[8777,8779,"N"],[8780,8780,"A"],[8781,8785,"N"],[8786,8786,"A"],[8787,8799,"N"],[8800,8801,"A"],[8802,8803,"N"],[8804,8807,"A"],[8808,8809,"N"],[8810,8811,"A"],[8812,8813,"N"],[8814,8815,"A"],[8816,8833,"N"],[8834,8835,"A"],[8836,8837,"N"],[8838,8839,"A"],[8840,8852,"N"],[8853,8853,"A"],[8854,8856,"N"],[8857,8857,"A"],[8858,8868,"N"],[8869,8869,"A"],[8870,8894,"N"],[8895,8895,"A"],[8896,8977,"N"],[8978,8978,"A"],[8979,8985,"N"],[8986,8987,"W"],[8988,9e3,"N"],[9001,9002,"W"],[9003,9192,"N"],[9193,9196,"W"],[9197,9199,"N"],[9200,9200,"W"],[9201,9202,"N"],[9203,9203,"W"],[9204,9311,"N"],[9312,9449,"A"],[9450,9450,"N"],[9451,9547,"A"],[9548,9551,"N"],[9552,9587,"A"],[9588,9599,"N"],[9600,9615,"A"],[9616,9617,"N"],[9618,9621,"A"],[9622,9631,"N"],[9632,9633,"A"],[9634,9634,"N"],[9635,9641,"A"],[9642,9649,"N"],[9650,9651,"A"],[9652,9653,"N"],[9654,9655,"A"],[9656,9659,"N"],[9660,9661,"A"],[9662,9663,"N"],[9664,9665,"A"],[9666,9669,"N"],[9670,9672,"A"],[9673,9674,"N"],[9675,9675,"A"],[9676,9677,"N"],[9678,9681,"A"],[9682,9697,"N"],[9698,9701,"A"],[9702,9710,"N"],[9711,9711,"A"],[9712,9724,"N"],[9725,9726,"W"],[9727,9732,"N"],[9733,9734,"A"],[9735,9736,"N"],[9737,9737,"A"],[9738,9741,"N"],[9742,9743,"A"],[9744,9747,"N"],[9748,9749,"W"],[9750,9755,"N"],[9756,9756,"A"],[9757,9757,"N"],[9758,9758,"A"],[9759,9791,"N"],[9792,9792,"A"],[9793,9793,"N"],[9794,9794,"A"],[9795,9799,"N"],[9800,9811,"W"],[9812,9823,"N"],[9824,9825,"A"],[9826,9826,"N"],[9827,9829,"A"],[9830,9830,"N"],[9831,9834,"A"],[9835,9835,"N"],[9836,9837,"A"],[9838,9838,"N"],[9839,9839,"A"],[9840,9854,"N"],[9855,9855,"W"],[9856,9874,"N"],[9875,9875,"W"],[9876,9885,"N"],[9886,9887,"A"],[9888,9888,"N"],[9889,9889,"W"],[9890,9897,"N"],[9898,9899,"W"],[9900,9916,"N"],[9917,9918,"W"],[9919,9919,"A"],[9920,9923,"N"],[9924,9925,"W"],[9926,9933,"A"],[9934,9934,"W"],[9935,9939,"A"],[9940,9940,"W"],[9941,9953,"A"],[9954,9954,"N"],[9955,9955,"A"],[9956,9959,"N"],[9960,9961,"A"],[9962,9962,"W"],[9963,9969,"A"],[9970,9971,"W"],[9972,9972,"A"],[9973,9973,"W"],[9974,9977,"A"],[9978,9978,"W"],[9979,9980,"A"],[9981,9981,"W"],[9982,9983,"A"],[9984,9988,"N"],[9989,9989,"W"],[9990,9993,"N"],[9994,9995,"W"],[9996,10023,"N"],[10024,10024,"W"],[10025,10044,"N"],[10045,10045,"A"],[10046,10059,"N"],[10060,10060,"W"],[10061,10061,"N"],[10062,10062,"W"],[10063,10066,"N"],[10067,10069,"W"],[10070,10070,"N"],[10071,10071,"W"],[10072,10101,"N"],[10102,10111,"A"],[10112,10132,"N"],[10133,10135,"W"],[10136,10159,"N"],[10160,10160,"W"],[10161,10174,"N"],[10175,10175,"W"],[10176,10213,"N"],[10214,10221,"Na"],[10222,10628,"N"],[10629,10630,"Na"],[10631,11034,"N"],[11035,11036,"W"],[11037,11087,"N"],[11088,11088,"W"],[11089,11092,"N"],[11093,11093,"W"],[11094,11097,"A"],[11098,11903,"N"],[11904,11929,"W"],[11930,11930,"N"],[11931,12019,"W"],[12020,12031,"N"],[12032,12245,"W"],[12246,12271,"N"],[12272,12283,"W"],[12284,12287,"N"],[12288,12288,"F"],[12289,12350,"W"],[12351,12352,"N"],[12353,12438,"W"],[12439,12440,"N"],[12441,12543,"W"],[12544,12548,"N"],[12549,12591,"W"],[12592,12592,"N"],[12593,12686,"W"],[12687,12687,"N"],[12688,12771,"W"],[12772,12783,"N"],[12784,12830,"W"],[12831,12831,"N"],[12832,12871,"W"],[12872,12879,"A"],[12880,19903,"W"],[19904,19967,"N"],[19968,42124,"W"],[42125,42127,"N"],[42128,42182,"W"],[42183,43359,"N"],[43360,43388,"W"],[43389,44031,"N"],[44032,55203,"W"],[55204,57343,"N"],[57344,63743,"A"],[63744,64255,"W"],[64256,65023,"N"],[65024,65039,"A"],[65040,65049,"W"],[65050,65071,"N"],[65072,65106,"W"],[65107,65107,"N"],[65108,65126,"W"],[65127,65127,"N"],[65128,65131,"W"],[65132,65280,"N"],[65281,65376,"F"],[65377,65470,"H"],[65471,65473,"N"],[65474,65479,"H"],[65480,65481,"N"],[65482,65487,"H"],[65488,65489,"N"],[65490,65495,"H"],[65496,65497,"N"],[65498,65500,"H"],[65501,65503,"N"],[65504,65510,"F"],[65511,65511,"N"],[65512,65518,"H"],[65519,65532,"N"],[65533,65533,"A"],[65534,94175,"N"],[94176,94180,"W"],[94181,94191,"N"],[94192,94193,"W"],[94194,94207,"N"],[94208,100343,"W"],[100344,100351,"N"],[100352,101589,"W"],[101590,101631,"N"],[101632,101640,"W"],[101641,110591,"N"],[110592,110878,"W"],[110879,110927,"N"],[110928,110930,"W"],[110931,110947,"N"],[110948,110951,"W"],[110952,110959,"N"],[110960,111355,"W"],[111356,126979,"N"],[126980,126980,"W"],[126981,127182,"N"],[127183,127183,"W"],[127184,127231,"N"],[127232,127242,"A"],[127243,127247,"N"],[127248,127277,"A"],[127278,127279,"N"],[127280,127337,"A"],[127338,127343,"N"],[127344,127373,"A"],[127374,127374,"W"],[127375,127376,"A"],[127377,127386,"W"],[127387,127404,"A"],[127405,127487,"N"],[127488,127490,"W"],[127491,127503,"N"],[127504,127547,"W"],[127548,127551,"N"],[127552,127560,"W"],[127561,127567,"N"],[127568,127569,"W"],[127570,127583,"N"],[127584,127589,"W"],[127590,127743,"N"],[127744,127776,"W"],[127777,127788,"N"],[127789,127797,"W"],[127798,127798,"N"],[127799,127868,"W"],[127869,127869,"N"],[127870,127891,"W"],[127892,127903,"N"],[127904,127946,"W"],[127947,127950,"N"],[127951,127955,"W"],[127956,127967,"N"],[127968,127984,"W"],[127985,127987,"N"],[127988,127988,"W"],[127989,127991,"N"],[127992,128062,"W"],[128063,128063,"N"],[128064,128064,"W"],[128065,128065,"N"],[128066,128252,"W"],[128253,128254,"N"],[128255,128317,"W"],[128318,128330,"N"],[128331,128334,"W"],[128335,128335,"N"],[128336,128359,"W"],[128360,128377,"N"],[128378,128378,"W"],[128379,128404,"N"],[128405,128406,"W"],[128407,128419,"N"],[128420,128420,"W"],[128421,128506,"N"],[128507,128591,"W"],[128592,128639,"N"],[128640,128709,"W"],[128710,128715,"N"],[128716,128716,"W"],[128717,128719,"N"],[128720,128722,"W"],[128723,128724,"N"],[128725,128727,"W"],[128728,128746,"N"],[128747,128748,"W"],[128749,128755,"N"],[128756,128764,"W"],[128765,128991,"N"],[128992,129003,"W"],[129004,129291,"N"],[129292,129338,"W"],[129339,129339,"N"],[129340,129349,"W"],[129350,129350,"N"],[129351,129400,"W"],[129401,129401,"N"],[129402,129483,"W"],[129484,129484,"N"],[129485,129535,"W"],[129536,129647,"N"],[129648,129652,"W"],[129653,129655,"N"],[129656,129658,"W"],[129659,129663,"N"],[129664,129670,"W"],[129671,129679,"N"],[129680,129704,"W"],[129705,129711,"N"],[129712,129718,"W"],[129719,129727,"N"],[129728,129730,"W"],[129731,129743,"N"],[129744,129750,"W"],[129751,131071,"N"],[131072,196605,"W"],[196606,196607,"N"],[196608,262141,"W"],[262142,917759,"N"],[917760,917999,"A"],[918e3,983039,"N"],[983040,1048573,"A"],[1048574,1048575,"N"],[1048576,1114109,"A"],[1114110,1114111,"N"]];function Bxt(t){var e=0,n=Lxt.length-1;while(e!==n){var r=e+(n-e>>1),i=Lxt[r],a=i[0],o=i[1],s=i[2];if(t<a)n=r-1;else{if(!(t>o))return s;e=r+1}}return Lxt[e][2]}function Ixt(t,e){void 0===e&&(e=0);var n=t.codePointAt(e);if(void 0!==n)return Bxt(n)}class Rxt{constructor(t,e){this._row=t,this._column=e}get row(){return this._row}get column(){return this._column}equals(t){return this.row===t.row&&this.column===t.column}}class Fxt{constructor(t,e){this._start=t,this._end=e}get start(){return this._start}get end(){return this._end}}class Pxt{constructor(t,e,n){this._row=t,this._column=e,this._offset=n}get row(){return this._row}get column(){return this._column}get offset(){return this._offset}posEquals(t){return this.row===t.row&&this.column===t.column}setRow(t){return new Pxt(t,this.column,this.offset)}setColumn(t){return new Pxt(this.row,t,this.offset)}setOffset(t){return new Pxt(this.row,this.column,t)}}const zxt=Object.freeze({NONE:"none",LEFT:"left",RIGHT:"right",CENTER:"center"}),qxt=Object.freeze({LEFT:zxt.LEFT,RIGHT:zxt.RIGHT,CENTER:zxt.CENTER}),jxt=Object.freeze({FOLLOW:"follow",LEFT:zxt.LEFT,RIGHT:zxt.RIGHT,CENTER:zxt.CENTER});class Hxt{constructor(t){this._rawContent=t,this._content=t.trim(),this._paddingLeft=""===this._content?""===this._rawContent?0:1:this._rawContent.length-this._rawContent.trimLeft().length,this._paddingRight=this._rawContent.length-this._content.length-this._paddingLeft}get rawContent(){return this._rawContent}get content(){return this._content}get paddingLeft(){return this._paddingLeft}get paddingRight(){return this._paddingRight}toText(){return this.rawContent}isDelimiter(){return/^\s*:?-+:?\s*$/.test(this.rawContent)}getAlignment(){if(this.isDelimiter())return":"===this.content[0]?":"===this.content[this.content.length-1]?zxt.CENTER:zxt.LEFT:":"===this.content[this.content.length-1]?zxt.RIGHT:zxt.NONE}computeContentOffset(t){return""===this.content||t<this.paddingLeft?0:t<this.paddingLeft+this.content.length?t-this.paddingLeft:this.content.length}computeRawOffset(t){return t+this.paddingLeft}}class Uxt{constructor(t,e,n){this._cells=t.slice(),this._marginLeft=e,this._marginRight=n}get marginLeft(){return this._marginLeft}get marginRight(){return this._marginRight}getWidth(){return this._cells.length}getCells(){return this._cells.slice()}getCellAt(t){return this._cells[t]}toText(){if(0===this._cells.length)return this.marginLeft;{const t=this._cells.map((t=>t.toText())).join("|");return`${this.marginLeft}|${t}|${this.marginRight}`}}isDelimiter(){return this._cells.every((t=>t.isDelimiter()))}}class $xt{constructor(t){this._rows=t.slice()}getHeight(){return this._rows.length}getWidth(){return this._rows.map((t=>t.getWidth())).reduce(((t,e)=>Math.max(t,e)),0)}getHeaderWidth(){if(0!==this._rows.length)return this._rows[0].getWidth()}getRows(){return this._rows.slice()}getRowAt(t){return this._rows[t]}getDelimiterRow(){const t=this._rows[1];if(void 0!==t)return t.isDelimiter()?t:void 0}getCellAt(t,e){const n=this._rows[t];if(void 0!==n)return n.getCellAt(e)}getFocusedCell(t){return this.getCellAt(t.row,t.column)}toLines(){return this._rows.map((t=>t.toText()))}focusOfPosition(t,e){const n=t.row-e,r=this._rows[n];if(void 0!==r){if(t.column<r.marginLeft.length+1)return new Pxt(n,-1,t.column);{const e=r.getCells().map((t=>t.rawContent.length));let i=r.marginLeft.length+1,a=0;for(;a<e.length;a++){if(i+e[a]+1>t.column)break;i+=e[a]+1}const o=t.column-i;return new Pxt(n,a,o)}}}positionOfFocus(t,e){const n=this._rows[t.row];if(void 0===n)return;const r=t.row+e;if(t.column<0)return new Rxt(r,t.offset);const i=n.getCells().map((t=>t.rawContent.length)),a=Math.min(t.column,i.length);let o=n.marginLeft.length+1;for(let s=0;s<a;s++)o+=i[s]+1;return new Rxt(r,o+t.offset)}selectionRangeOfFocus(t,e){const n=this._rows[t.row];if(void 0===n)return;const r=n.getCellAt(t.column);if(void 0===r)return;if(""===r.content)return;const i=t.row+e,a=n.getCells().map((t=>t.rawContent.length));let o=n.marginLeft.length+1;for(let s=0;s<t.column;s++)o+=a[s]+1;return o+=r.paddingLeft,new Fxt(new Rxt(i,o),new Rxt(i,o+r.content.length))}}function Wxt(t){const e=[];let n="",r=t;while(""!==r)switch(r[0]){case"`":{const t=r.match(/^`*/)[0];let e=t,i=r.substr(t.length),a=!1;while(""!==i)if("`"===i[0]){const n=i.match(/^`*/)[0];if(e+=n,i=i.substr(n.length),n.length===t.length){a=!0;break}}else e+=i[0],i=i.substr(1);a?(n+=e,r=i):(n+="`",r=r.substr(1))}break;case"\\":r.length>=2?(n+=r.substr(0,2),r=r.substr(2)):(n+="\\",r=r.substr(1));break;case"|":e.push(n),n="",r=r.substr(1);break;default:n+=r[0],r=r.substr(1)}return e.push(n),e}function Yxt(t,e=/^\s*$/){let n,r,i=Wxt(t);return i.length>0&&e.test(i[0])?(n=i[0],i=i.slice(1)):n="",i.length>1&&/^\s*$/.test(i[i.length-1])?(r=i[i.length-1],i=i.slice(0,i.length-1)):r="",new Uxt(i.map((t=>new Hxt(t))),n,r)}function Vxt(t){let e="";for(const n of t)"|"!==n&&"\\"!==n&&"`"!==n&&(e+=`\\u{${n.codePointAt(0).toString(16)}}`);return`[\\s${e}]*`}function Gxt(t){return new RegExp(`^${Vxt(t)}$`,"u")}function Xxt(t,e){const n=Gxt(e.leftMarginChars);return new $xt(t.map((t=>Yxt(t,n))))}function Zxt(t,e){const n="-".repeat(e);switch(t){case zxt.NONE:return` ${n} `;case zxt.LEFT:return`:${n} `;case zxt.RIGHT:return` ${n}:`;case zxt.CENTER:return`:${n}:`;default:throw new Error("Unknown alignment: "+t)}}function Kxt(t,e,n){const r=t.slice();for(let i=t.length;i<e;i++)r.push(n(i,t));return r}function Qxt(t,e){const n=t.getHeight(),r=t.getWidth();if(0===n)throw new Error("Empty table");const i=t.getRows(),a=[],o=i[0],s=o.getCells();a.push(new Uxt(Kxt(s,r,(t=>new Hxt(t===s.length?o.marginRight:""))),o.marginLeft,s.length<r?"":o.marginRight));const l=t.getDelimiterRow();if(void 0!==l){const t=l.getCells();a.push(new Uxt(Kxt(t,r,(n=>new Hxt(Zxt(zxt.NONE,n===t.length?Math.max(e.minDelimiterWidth,l.marginRight.length-2):e.minDelimiterWidth)))),l.marginLeft,t.length<r?"":l.marginRight))}else a.push(new Uxt(Kxt([],r,(()=>new Hxt(Zxt(zxt.NONE,e.minDelimiterWidth)))),"",""));for(let c=void 0!==l?2:1;c<n;c++){const t=i[c],e=t.getCells();a.push(new Uxt(Kxt(e,r,(n=>new Hxt(n===e.length?t.marginRight:""))),t.marginLeft,e.length<r?"":t.marginRight))}return{table:new $xt(a),delimiterInserted:void 0===l}}function Jxt(t,e){const n=e.normalize?t.normalize("NFC"):t;let r=0;for(const i of n)if(e.wideChars.has(i))r+=2;else if(e.narrowChars.has(i))r+=1;else switch(Ixt(i)){case"F":case"W":r+=2;break;case"A":r+=e.ambiguousAsWide?2:1;break;default:r+=1}return r}function twt(t,e,n,r){const i=e-Jxt(t,r);if(i<0)return t;switch(n){case zxt.NONE:throw new Error("Unexpected default alignment");case zxt.LEFT:return t+" ".repeat(i);case zxt.RIGHT:return" ".repeat(i)+t;case zxt.CENTER:return" ".repeat(Math.floor(i/2))+t+" ".repeat(Math.ceil(i/2));default:throw new Error("Unknown alignment: "+n)}}function ewt(t){return` ${t} `}function nwt(t,e){const n=t.getHeight(),r=t.getWidth();if(0===n)return{table:t,marginLeft:""};const i=t.getRowAt(0).marginLeft;if(0===r){const t=new Array(n).fill().map((()=>new Uxt([],i,"")));return{table:new $xt(t),marginLeft:i}}const a=t.getDelimiterRow(),o=new Array(r).fill(0);if(void 0!==a){const t=a.getWidth();for(let n=0;n<t;n++)o[n]=e.minDelimiterWidth}for(let u=0;u<n;u++){if(void 0!==a&&1===u)continue;const n=t.getRowAt(u),r=n.getWidth();for(let t=0;t<r;t++)o[t]=Math.max(o[t],Jxt(n.getCellAt(t).content,e.textWidthOptions))}const s=void 0!==a?Kxt(a.getCells().map((t=>t.getAlignment())),r,(()=>e.defaultAlignment)):new Array(r).fill(e.defaultAlignment),l=[],c=t.getRowAt(0);l.push(new Uxt(c.getCells().map(((t,n)=>new Hxt(ewt(twt(t.content,o[n],e.headerAlignment===jxt.FOLLOW?s[n]===zxt.NONE?e.defaultAlignment:s[n]:e.headerAlignment,e.textWidthOptions))))),i,"")),void 0!==a&&l.push(new Uxt(a.getCells().map(((t,e)=>new Hxt(Zxt(s[e],o[e])))),i,""));for(let u=void 0!==a?2:1;u<n;u++){const n=t.getRowAt(u);l.push(new Uxt(n.getCells().map(((t,n)=>new Hxt(ewt(twt(t.content,o[n],s[n]===zxt.NONE?e.defaultAlignment:s[n],e.textWidthOptions))))),i,""))}return{table:new $xt(l),marginLeft:i}}function rwt(t,e){const n=t.getHeight(),r=t.getWidth();if(0===n)return{table:t,marginLeft:""};const i=t.getRowAt(0).marginLeft;if(0===r){const t=new Array(n).fill().map((()=>new Uxt([],i,"")));return{table:new $xt(t),marginLeft:i}}const a=t.getDelimiterRow(),o=[],s=t.getRowAt(0);o.push(new Uxt(s.getCells().map((t=>new Hxt(ewt(t.content)))),i,"")),void 0!==a&&o.push(new Uxt(a.getCells().map((t=>new Hxt(Zxt(t.getAlignment(),e.minDelimiterWidth)))),i,""));for(let l=void 0!==a?2:1;l<n;l++){const e=t.getRowAt(l);o.push(new Uxt(e.getCells().map((t=>new Hxt(ewt(t.content)))),i,""))}return{table:new $xt(o),marginLeft:i}}const iwt=Object.freeze({NORMAL:"normal",WEAK:"weak"});function awt(t,e){switch(e.formatType){case iwt.NORMAL:return nwt(t,e);case iwt.WEAK:return rwt(t,e);default:throw new Error("Unknown format type: "+e.formatType)}}function owt(t,e,n,r){const i=t.getRowAt(1);if(e<0||i.getWidth()-1<e)return t;const a=i.getCells();a[e]=new Hxt(Zxt(n,r.minDelimiterWidth));const o=t.getRows();return o[1]=new Uxt(a,i.marginLeft,i.marginRight),new $xt(o)}function swt(t,e,n){const r=t.getRows();return r.splice(Math.max(e,2),0,n),new $xt(r)}function lwt(t,e){if(1===e)return t;const n=t.getRows();if(0===e){const t=n[0];n[0]=new Uxt(new Array(t.getWidth()).fill(new Hxt("")),t.marginLeft,t.marginRight)}else n.splice(e,1);return new $xt(n)}function cwt(t,e,n){if(e<=1||n<=1||e===n)return t;const r=t.getRows(),i=r[e];return r.splice(e,1),r.splice(n,0,i),new $xt(r)}function uwt(t,e,n,r){const i=t.getRows();for(let a=0;a<i.length;a++){const t=i[a],o=i[a].getCells(),s=1===a?new Hxt(Zxt(zxt.NONE,r.minDelimiterWidth)):n[a>1?a-1:a];o.splice(e,0,s),i[a]=new Uxt(o,t.marginLeft,t.marginRight)}return new $xt(i)}function hwt(t,e,n){const r=t.getRows();for(let i=0;i<r.length;i++){const t=r[i];let a=t.getCells();a.length<=1?a=[new Hxt(1===i?Zxt(zxt.NONE,n.minDelimiterWidth):"")]:a.splice(e,1),r[i]=new Uxt(a,t.marginLeft,t.marginRight)}return new $xt(r)}function fwt(t,e,n){if(e===n)return t;const r=t.getRows();for(let i=0;i<r.length;i++){const t=r[i],a=t.getCells(),o=a[e];a.splice(e,1),a.splice(n,0,o),r[i]=new Uxt(a,t.marginLeft,t.marginRight)}return new $xt(r)}class dwt{constructor(t,e){this._row=t,this._line=e}get row(){return this._row}get line(){return this._line}}class pwt{constructor(t){this._row=t}get row(){return this._row}}function gwt(t,e,n){if(e instanceof dwt)t.insertLine(n+e.row,e.line);else{if(!(e instanceof pwt))throw new Error("Unknown command");t.deleteLine(n+e.row)}}function mwt(t,e,n){for(const r of e)gwt(t,r,n)}class ywt{get car(){throw new Error("Not implemented")}get cdr(){throw new Error("Not implemented")}isEmpty(){throw new Error("Not implemented")}unshift(t){return new bwt(t,this)}toArray(){const t=[];let e=this;while(!e.isEmpty())t.push(e.car),e=e.cdr;return t}}class vwt extends ywt{constructor(){super()}get car(){throw new Error("Empty list")}get cdr(){throw new Error("Empty list")}isEmpty(){return!0}}class bwt extends ywt{constructor(t,e){super(),this._car=t,this._cdr=e}get car(){return this._car}get cdr(){return this._cdr}isEmpty(){return!1}}const _wt=new vwt;function xwt(t,e,n=-1){const r=t.length,i=e.length,a=n>=0?Math.min(n,r+i):r+i,o=new Array(Math.min(a,r)+Math.min(a,i)+1),s=Math.min(a,r);for(let l=0;l<=a;l++){const n=l<=r?-l:l-2*r,a=l<=i?l:2*i-l;for(let c=n;c<=a;c+=2){let n,a;if(0===l)n=0,a=_wt;else if(c===-l)n=o[s+c+1].i+1,a=o[s+c+1].script.unshift(new pwt(n+c));else if(c===l)n=o[s+c-1].i,a=o[s+c-1].script.unshift(new dwt(n+c-1,e[n+c-1]));else{const t=o[s+c+1].i+1,r=o[s+c-1].i;t>r?(n=t,a=o[s+c+1].script.unshift(new pwt(n+c))):(n=r,a=o[s+c-1].script.unshift(new dwt(n+c-1,e[n+c-1])))}while(n<r&&n+c<i&&t[n]===e[n+c])n+=1;if(c===i-r&&n===r)return a.toArray().reverse();o[s+c]={i:n,script:a}}}}class wwt{getCursorPosition(){throw new Error("Not implemented: getCursorPosition")}setCursorPosition(t){throw new Error("Not implemented: setCursorPosition")}setSelectionRange(t){throw new Error("Not implemented: setSelectionRange")}getLastRow(){throw new Error("Not implemented: getLastRow")}acceptsTableEdit(t){throw new Error("Not implemented: acceptsTableEdit")}getLine(t){throw new Error("Not implemented: getLine")}insertLine(t,e){throw new Error("Not implemented: insertLine")}deleteLine(t){throw new Error("Not implemented: deleteLine")}replaceLines(t,e,n){throw new Error("Not implemented: replaceLines")}transact(t){throw new Error("Not implemented: transact")}}function kwt(t,e,n){return"object"===typeof t&&null!==t&&void 0!==t[e]?t[e]:n}function Cwt(t,e){const n={};for(const[r,i]of Object.entries(e))n[r]=kwt(t,r,i);return n}function Ewt(t){const e=Cwt(t,{leftMarginChars:new Set,formatType:iwt.NORMAL,minDelimiterWidth:3,defaultAlignment:qxt.LEFT,headerAlignment:jxt.FOLLOW,smartCursor:!1});return e.textWidthOptions=Cwt(t.textWidthOptions,{normalize:!0,wideChars:new Set,narrowChars:new Set,ambiguousAsWide:!1}),e}function Swt(t){return new RegExp(`^${Vxt(t)}\\|`,"u")}function Twt(t,e,n,r){if(r){const e=n.table.getFocusedCell(t);return void 0!==e?e.computeRawOffset(0):t.column<0?n.marginLeft.length:0}{const r=e.getFocusedCell(t),i=n.table.getFocusedCell(t);if(void 0!==r&&void 0!==i){const e=Math.min(r.computeContentOffset(t.offset),i.content.length);return i.computeRawOffset(e)}return t.column<0?n.marginLeft.length:0}}class Awt{constructor(t){this._textEditor=t,this._scActive=!1,this._scTablePos=null,this._scStartFocus=null,this._scLastFocus=null}resetSmartCursor(){this._scActive=!1}cursorIsInTable(t){const e=Swt(t.leftMarginChars),n=this._textEditor.getCursorPosition();return this._textEditor.acceptsTableEdit(n.row)&&e.test(this._textEditor.getLine(n.row))}_findTable(t){const e=Swt(t.leftMarginChars),n=this._textEditor.getCursorPosition(),r=this._textEditor.getLastRow(),i=[];let a=n.row,o=n.row;{const t=this._textEditor.getLine(n.row);if(!this._textEditor.acceptsTableEdit(n.row)||!e.test(t))return;i.push(t)}for(let u=n.row-1;u>=0;u--){const t=this._textEditor.getLine(u);if(!this._textEditor.acceptsTableEdit(u)||!e.test(t))break;i.unshift(t),a=u}for(let u=n.row+1;u<=r;u++){const t=this._textEditor.getLine(u);if(!this._textEditor.acceptsTableEdit(u)||!e.test(t))break;i.push(t),o=u}const s=new Fxt(new Rxt(a,0),new Rxt(o,i[i.length-1].length)),l=Xxt(i,t),c=l.focusOfPosition(n,a);return{range:s,lines:i,table:l,focus:c}}_withTable(t,e){const n=this._findTable(t);void 0!==n&&e(n)}_updateLines(t,e,n,r){if(void 0!==r){const e=xwt(r,n,3);if(void 0!==e)return void mwt(this._textEditor,e,t)}this._textEditor.replaceLines(t,e,n)}_moveToFocus(t,e,n){const r=e.positionOfFocus(n,t);void 0!==r&&this._textEditor.setCursorPosition(r)}_selectFocus(t,e,n){const r=e.selectionRangeOfFocus(n,t);void 0!==r?this._textEditor.setSelectionRange(r):this._moveToFocus(t,e,n)}format(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{let a=i;const o=Qxt(r,t);o.delimiterInserted&&a.row>0&&(a=a.setRow(a.row+1));const s=awt(o.table,t);a=a.setOffset(Twt(a,o.table,s,!1)),this._textEditor.transact((()=>{this._updateLines(e.start.row,e.end.row+1,s.table.toLines(),n),this._moveToFocus(e.start.row,s.table,a)}))}))}escape(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{const a=Qxt(r,t),o=awt(a.table,t),s=e.end.row+(a.delimiterInserted?2:1);this._textEditor.transact((()=>{let r;if(this._updateLines(e.start.row,e.end.row+1,o.table.toLines(),n),s>this._textEditor.getLastRow())this._textEditor.insertLine(s,""),r=new Rxt(s,0);else{const e=new RegExp(`^${Vxt(t.leftMarginChars)}`,"u"),n=this._textEditor.getLine(s),i=e.exec(n)[0];r=new Rxt(s,i.length)}this._textEditor.setCursorPosition(r)})),this.resetSmartCursor()}))}alignColumn(t,e){this._withTable(e,(({range:n,lines:r,table:i,focus:a})=>{let o=a;const s=Qxt(i,e);s.delimiterInserted&&o.row>0&&(o=o.setRow(o.row+1));let l=s.table;0<=o.column&&o.column<=l.getHeaderWidth()-1&&(l=owt(s.table,o.column,t,e));const c=awt(l,e);o=o.setOffset(Twt(o,s.table,c,!1)),this._textEditor.transact((()=>{this._updateLines(n.start.row,n.end.row+1,c.table.toLines(),r),this._moveToFocus(n.start.row,c.table,o)}))}))}selectCell(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{let a=i;const o=Qxt(r,t);o.delimiterInserted&&a.row>0&&(a=a.setRow(a.row+1));const s=awt(o.table,t);a=a.setOffset(Twt(a,o.table,s,!1)),this._textEditor.transact((()=>{this._updateLines(e.start.row,e.end.row+1,s.table.toLines(),n),this._selectFocus(e.start.row,s.table,a)}))}))}moveFocus(t,e,n){this._withTable(n,(({range:r,lines:i,table:a,focus:o})=>{let s=o;const l=Qxt(a,n);l.delimiterInserted&&s.row>0&&(s=s.setRow(s.row+1));const c=s;if(0!==t){const e=l.table.getHeight(),n=s.row<1&&s.row+t>=1?1:s.row>1&&s.row+t<=1?-1:0;s=s.setRow(Math.min(Math.max(s.row+t+n,0),e<=2?0:e-1))}if(0!==e){const t=l.table.getHeaderWidth();s.column<0&&e<0||s.column>t-1&&e>0||(s=s.setColumn(Math.min(Math.max(s.column+e,0),t-1)))}const u=!s.posEquals(c),h=awt(l.table,n);s=s.setOffset(Twt(s,l.table,h,u)),this._textEditor.transact((()=>{this._updateLines(r.start.row,r.end.row+1,h.table.toLines(),i),u?this._selectFocus(r.start.row,h.table,s):this._moveToFocus(r.start.row,h.table,s)})),u&&this.resetSmartCursor()}))}nextCell(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{const a=null!==this._scTablePos&&!e.start.equals(this._scTablePos)||null!==this._scLastFocus&&!i.posEquals(this._scLastFocus);this._scActive&&a&&this.resetSmartCursor();let o=i;const s=Qxt(r,t);s.delimiterInserted&&o.row>0&&(o=o.setRow(o.row+1));const l=o;let c=s.table;if(1===o.row){if(o=o.setRow(2),t.smartCursor?(o.column<0||c.getHeaderWidth()-1<o.column)&&(o=o.setColumn(0)):o=o.setColumn(0),o.row>c.getHeight()-1){const t=new Array(c.getHeaderWidth()).fill(new Hxt(""));c=swt(c,c.getHeight(),new Uxt(t,"",""))}}else{if(o.column>c.getHeaderWidth()-1){const e=new Array(c.getHeight()-1).fill(new Hxt(""));c=uwt(c,c.getHeaderWidth(),e,t)}o=o.setColumn(o.column+1)}const u=awt(c,t);o=o.setOffset(Twt(o,c,u,!0));const h=u.table.toLines();o.column>u.table.getHeaderWidth()-1&&(h[o.row]+=" ",o=o.setOffset(1)),this._textEditor.transact((()=>{this._updateLines(e.start.row,e.end.row+1,h,n),this._selectFocus(e.start.row,u.table,o)})),t.smartCursor&&(this._scActive||(this._scActive=!0,this._scTablePos=e.start,l.column<0||u.table.getHeaderWidth()-1<l.column?this._scStartFocus=new Pxt(l.row,0,0):this._scStartFocus=l),this._scLastFocus=o)}))}previousCell(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{let a=i;const o=Qxt(r,t);o.delimiterInserted&&a.row>0&&(a=a.setRow(a.row+1));const s=a;0===a.row?a.column>0&&(a=a.setColumn(a.column-1)):a=1===a.row?new Pxt(0,o.table.getHeaderWidth()-1,a.offset):a.column>0?a.setColumn(a.column-1):new Pxt(2===a.row?0:a.row-1,o.table.getHeaderWidth()-1,a.offset);const l=!a.posEquals(s),c=awt(o.table,t);a=a.setOffset(Twt(a,o.table,c,l)),this._textEditor.transact((()=>{this._updateLines(e.start.row,e.end.row+1,c.table.toLines(),n),l?this._selectFocus(e.start.row,c.table,a):this._moveToFocus(e.start.row,c.table,a)})),l&&this.resetSmartCursor()}))}nextRow(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{const a=null!==this._scTablePos&&!e.start.equals(this._scTablePos)||null!==this._scLastFocus&&!i.posEquals(this._scLastFocus);this._scActive&&a&&this.resetSmartCursor();let o=i;const s=Qxt(r,t);s.delimiterInserted&&o.row>0&&(o=o.setRow(o.row+1));const l=o;let c=s.table;if(o=0===o.row?o.setRow(2):o.setRow(o.row+1),t.smartCursor?this._scActive?o=o.setColumn(this._scStartFocus.column):(o.column<0||c.getHeaderWidth()-1<o.column)&&(o=o.setColumn(0)):o=o.setColumn(0),o.row>c.getHeight()-1){const t=new Array(c.getHeaderWidth()).fill(new Hxt(""));c=swt(c,c.getHeight(),new Uxt(t,"",""))}const u=awt(c,t);o=o.setOffset(Twt(o,c,u,!0)),this._textEditor.transact((()=>{this._updateLines(e.start.row,e.end.row+1,u.table.toLines(),n),this._selectFocus(e.start.row,u.table,o)})),t.smartCursor&&(this._scActive||(this._scActive=!0,this._scTablePos=e.start,l.column<0||u.table.getHeaderWidth()-1<l.column?this._scStartFocus=new Pxt(l.row,0,0):this._scStartFocus=l),this._scLastFocus=o)}))}insertRow(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{let a=i;const o=Qxt(r,t);o.delimiterInserted&&a.row>0&&(a=a.setRow(a.row+1)),a.row<=1&&(a=a.setRow(2)),a=a.setColumn(0);const s=new Array(o.table.getHeaderWidth()).fill(new Hxt("")),l=swt(o.table,a.row,new Uxt(s,"","")),c=awt(l,t);a=a.setOffset(Twt(a,l,c,!0)),this._textEditor.transact((()=>{this._updateLines(e.start.row,e.end.row+1,c.table.toLines(),n),this._moveToFocus(e.start.row,c.table,a)})),this.resetSmartCursor()}))}deleteRow(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{let a=i;const o=Qxt(r,t);o.delimiterInserted&&a.row>0&&(a=a.setRow(a.row+1));let s=o.table,l=!1;1!==a.row&&(s=lwt(s,a.row),l=!0,a.row>s.getHeight()-1&&(a=a.setRow(2===a.row?0:a.row-1)));const c=awt(s,t);a=a.setOffset(Twt(a,s,c,l)),this._textEditor.transact((()=>{this._updateLines(e.start.row,e.end.row+1,c.table.toLines(),n),l?this._selectFocus(e.start.row,c.table,a):this._moveToFocus(e.start.row,c.table,a)})),this.resetSmartCursor()}))}moveRow(t,e){this._withTable(e,(({range:n,lines:r,table:i,focus:a})=>{let o=a;const s=Qxt(i,e);s.delimiterInserted&&o.row>0&&(o=o.setRow(o.row+1));let l=s.table;if(o.row>1){const e=Math.min(Math.max(o.row+t,2),l.getHeight()-1);l=cwt(l,o.row,e),o=o.setRow(e)}const c=awt(l,e);o=o.setOffset(Twt(o,l,c,!1)),this._textEditor.transact((()=>{this._updateLines(n.start.row,n.end.row+1,c.table.toLines(),r),this._moveToFocus(n.start.row,c.table,o)})),this.resetSmartCursor()}))}insertColumn(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{let a=i;const o=Qxt(r,t);o.delimiterInserted&&a.row>0&&(a=a.setRow(a.row+1)),1===a.row&&(a=a.setRow(0)),a.column<0&&(a=a.setColumn(0));const s=new Array(o.table.getHeight()-1).fill(new Hxt("")),l=uwt(o.table,a.column,s,t),c=awt(l,t);a=a.setOffset(Twt(a,l,c,!0)),this._textEditor.transact((()=>{this._updateLines(e.start.row,e.end.row+1,c.table.toLines(),n),this._moveToFocus(e.start.row,c.table,a)})),this.resetSmartCursor()}))}deleteColumn(t){this._withTable(t,(({range:e,lines:n,table:r,focus:i})=>{let a=i;const o=Qxt(r,t);o.delimiterInserted&&a.row>0&&(a=a.setRow(a.row+1)),1===a.row&&(a=a.setRow(0));let s=o.table,l=!1;0<=a.column&&a.column<=s.getHeaderWidth()-1&&(s=hwt(o.table,a.column,t),l=!0,a.column>s.getHeaderWidth()-1&&(a=a.setColumn(s.getHeaderWidth()-1)));const c=awt(s,t);a=a.setOffset(Twt(a,s,c,l)),this._textEditor.transact((()=>{this._updateLines(e.start.row,e.end.row+1,c.table.toLines(),n),l?this._selectFocus(e.start.row,c.table,a):this._moveToFocus(e.start.row,c.table,a)})),this.resetSmartCursor()}))}moveColumn(t,e){this._withTable(e,(({range:n,lines:r,table:i,focus:a})=>{let o=a;const s=Qxt(i,e);s.delimiterInserted&&o.row>0&&(o=o.setRow(o.row+1));let l=s.table;if(0<=o.column&&o.column<=l.getHeaderWidth()-1){const e=Math.min(Math.max(o.column+t,0),l.getHeaderWidth()-1);l=fwt(l,o.column,e),o=o.setColumn(e)}const c=awt(l,e);o=o.setOffset(Twt(o,l,c,!1)),this._textEditor.transact((()=>{this._updateLines(n.start.row,n.end.row+1,c.table.toLines(),r),this._moveToFocus(n.start.row,c.table,o)})),this.resetSmartCursor()}))}formatAll(t){this._textEditor.transact((()=>{const e=Swt(t.leftMarginChars);let n,r=this._textEditor.getCursorPosition(),i=[],a=this._textEditor.getLastRow();for(let o=0;o<=a;o++){const s=this._textEditor.getLine(o);if(this._textEditor.acceptsTableEdit(o)&&e.test(s))i.push(s),void 0===n&&(n=o);else if(void 0!==n){const e=o-1,s=new Fxt(new Rxt(n,0),new Rxt(e,i[i.length-1].length)),l=Xxt(i,t),c=l.focusOfPosition(r,n),u=void 0!==c;let h=c;const f=Qxt(l,t);u&&f.delimiterInserted&&h.row>0&&(h=h.setRow(h.row+1));const d=awt(f.table,t);u&&(h=h.setOffset(Twt(h,f.table,d,!1)));const p=d.table.toLines();this._updateLines(s.start.row,s.end.row+1,p,i);const g=p.length-i.length;u?r=d.table.positionOfFocus(h,n):r.row>e&&(r=new Rxt(r.row+g,r.column)),i=[],n=void 0,a+=g,o+=g}}if(void 0!==n){const e=a,o=new Fxt(new Rxt(n,0),new Rxt(e,i[i.length-1].length)),s=Xxt(i,t),l=s.focusOfPosition(r,n),c=void 0!==l;let u=l;const h=Qxt(s,t);c&&h.delimiterInserted&&u.row>0&&(u=u.setRow(u.row+1));const f=awt(h.table,t);c&&(u=u.setOffset(Twt(u,h.table,f,!1)));const d=f.table.toLines();this._updateLines(o.start.row,o.end.row+1,d,i);const p=d.length-i.length;c?r=f.table.positionOfFocus(u,n):r.row>e&&(r=new Rxt(r.row+p,r.column))}this._textEditor.setCursorPosition(r)}))}}class Mwt extends wwt{constructor(t){super(),this.editor=t,this.doc=t.getDoc(),this.transaction=!1,this.onDidFinishTransaction=null}getCursorPosition(){const{line:t,ch:e}=this.doc.getCursor();return new Rxt(t,e)}setCursorPosition(t){this.doc.setCursor({line:t.row,ch:t.column})}setSelectionRange(t){this.doc.setSelection({line:t.start.row,ch:t.start.column},{line:t.end.row,ch:t.end.column})}getLastRow(){return this.doc.lineCount()-1}acceptsTableEdit(){return!0}getLine(t){return this.doc.getLine(t)}insertLine(t,e){const n=this.getLastRow();if(t>n){const t=this.getLine(n);this.doc.replaceRange("\n"+e,{line:n,ch:t.length},{line:n,ch:t.length})}else this.doc.replaceRange(e+"\n",{line:t,ch:0},{line:t,ch:0})}deleteLine(t){const e=this.getLastRow();if(t>=e)if(e>0){const t=this.getLine(e-1),n=this.getLine(e);this.doc.replaceRange("",{line:e-1,ch:t.length},{line:e,ch:n.length})}else{const t=this.getLine(e);this.doc.replaceRange("",{line:e,ch:0},{line:e,ch:t.length})}else this.doc.replaceRange("",{line:t,ch:0},{line:t+1,ch:0})}replaceLines(t,e,n){const r=this.getLastRow();if(e>r){const e=this.getLine(r);this.doc.replaceRange(n.join("\n"),{line:t,ch:0},{line:r,ch:e.length})}else this.doc.replaceRange(n.join("\n")+"\n",{line:t,ch:0},{line:e,ch:0})}transact(t){this.transaction=!0,t(),this.transaction=!1,this.onDidFinishTransaction&&this.onDidFinishTransaction.call(void 0)}init(){const t=new Awt(this),e=Ewt({smartCursor:!0,cursorIsInTable:!0}),n=Axt.normalizeKeyMap({Tab:()=>{t.nextCell(e)},"Shift-Tab":()=>{t.previousCell(e)},Enter:()=>{t.nextRow(e)},"Ctrl-Enter":()=>{t.escape(e)},"Cmd-Enter":()=>{t.escape(e)},"Shift-Ctrl-Left":()=>{t.alignColumn(zxt.LEFT,e)},"Shift-Cmd-Left":()=>{t.alignColumn(zxt.LEFT,e)},"Shift-Ctrl-Right":()=>{t.alignColumn(zxt.RIGHT,e)},"Shift-Cmd-Right":()=>{t.alignColumn(zxt.RIGHT,e)},"Shift-Ctrl-Up":()=>{t.alignColumn(zxt.CENTER,e)},"Shift-Cmd-Up":()=>{t.alignColumn(zxt.CENTER,e)},"Shift-Ctrl-Down":()=>{t.alignColumn(zxt.NONE,e)},"Shift-Cmd-Down":()=>{t.alignColumn(zxt.NONE,e)},"Ctrl-Left":()=>{t.moveFocus(0,-1,e)},"Cmd-Left":()=>{t.moveFocus(0,-1,e)},"Ctrl-Right":()=>{t.moveFocus(0,1,e)},"Cmd-Right":()=>{t.moveFocus(0,1,e)},"Ctrl-Up":()=>{t.moveFocus(-1,0,e)},"Cmd-Up":()=>{t.moveFocus(-1,0,e)},"Ctrl-Down":()=>{t.moveFocus(1,0,e)},"Cmd-Down":()=>{t.moveFocus(1,0,e)},"Ctrl-K Ctrl-I":()=>{t.insertRow(e)},"Cmd-K Cmd-I":()=>{t.insertRow(e)},"Ctrl-L Ctrl-I":()=>{t.deleteRow(e)},"Cmd-L Cmd-I":()=>{t.deleteRow(e)},"Ctrl-K Ctrl-J":()=>{t.insertColumn(e)},"Cmd-K Cmd-J":()=>{t.insertColumn(e)},"Ctrl-L Ctrl-J":()=>{t.deleteColumn(e)},"Cmd-L Cmd-J":()=>{t.deleteColumn(e)},"Alt-Shift-Ctrl-Left":()=>{t.moveColumn(-1,e)},"Alt-Shift-Cmd-Left":()=>{t.moveColumn(-1,e)},"Alt-Shift-Ctrl-Right":()=>{t.moveColumn(1,e)},"Alt-Shift-Cmd-Right":()=>{t.moveColumn(1,e)},"Alt-Shift-Ctrl-Up":()=>{t.moveRow(-1,e)},"Alt-Shift-Cmd-Up":()=>{t.moveRow(-1,e)},"Alt-Shift-Ctrl-Down":()=>{t.moveRow(1,e)},"Alt-Shift-Cmd-Down":()=>{t.moveRow(1,e)}}),r=this;function i(){const i=t.cursorIsInTable(e);i?r.editor.setOption("extraKeys",n):(r.editor.setOption("extraKeys",{Enter:"newlineAndIndentContinueMarkdownList"}),t.resetSmartCursor())}this.editor.on("cursorActivity",(()=>{this.transaction||i()})),this.editor.on("changes",(()=>{this.transaction||i()})),this.onDidFinishTransaction=()=>{i()}}}var Nwt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-note-wrapper markdown-body",class:[{fullscreen:t.s_fullScreen,shadow:t.boxShadow}],style:{"box-shadow":t.boxShadow?t.boxShadowStyle:""}},[t.toolbarsFlag?n("div",{staticClass:"v-note-op",style:{background:t.toolbarsBackground}},[n("v-md-toolbar-left",{ref:"toolbar_left",class:{transition:t.transition},attrs:{toolbars:t.toolbars,transition:t.transition},on:{clickCommands:t.clickCommands,insertLink:t.insertLink,openImagePicker:t.openImagePicker}}),n("v-md-toolbar-right",{ref:"toolbar_right",class:{transition:t.transition},attrs:{s_fullScreen:t.s_fullScreen,s_html_code:t.s_html_code,s_navigation:t.s_navigation,s_preview_switch:t.s_preview_switch,s_subfield:t.s_subfield,toolbars:t.toolbars},on:{toolbar_right_click:t.toolbar_right_click}})],1):t._e(),n("div",{staticClass:"v-note-panel"},[n("div",{ref:"vNoteEdit",staticClass:"v-note-edit divarea-wrapper",class:{"scroll-style":t.scrollStyle,"scroll-style-border-radius":t.scrollStyle&&!t.s_preview_switch&&!t.s_html_code,"single-edit":!t.s_preview_switch&&!t.s_html_code,"single-show":!t.s_subfield&&t.s_preview_switch||!t.s_subfield&&t.s_html_code,transition:t.transition},on:{click:t.setFocus}},[n("div",{staticClass:"content-input-wrapper",style:{"background-color":t.editorBackground}},[n("textarea",{ref:"cmRef"})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.s_preview_switch||t.s_html_code,expression:"s_preview_switch || s_html_code"}],staticClass:"v-note-show",class:{"single-show":!t.s_subfield&&t.s_preview_switch||!t.s_subfield&&t.s_html_code}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.s_html_code,expression:"!s_html_code"}],ref:"vShowContent",staticClass:"v-show-content",class:{"scroll-style":t.scrollStyle,"scroll-style-border-radius":t.scrollStyle},style:{"background-color":t.previewBackground},domProps:{innerHTML:t._s(t.d_render)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.s_html_code,expression:"s_html_code"}],staticClass:"v-show-content-html",class:{"scroll-style":t.scrollStyle,"scroll-style-border-radius":t.scrollStyle},style:{"background-color":t.previewBackground}},[t._v(" "+t._s(t.d_render)+" ")])]),n("transition",{attrs:{name:"slideTop"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.s_navigation,expression:"s_navigation"}],staticClass:"v-note-navigation-wrapper",class:{transition:t.transition}},[n("div",{staticClass:"v-note-navigation-title"},[t._v(" 导航目录"),n("i",{staticClass:"v-note-navigation-close",on:{click:function(e){return t.toolbar_right_click("navigation")}}},[n(Kvt,{attrs:{height:"0.8rem",width:"0.8rem"}})],1)]),n("div",{ref:"navigationContent",staticClass:"v-note-navigation-content",class:{"scroll-style":t.scrollStyle}})])])],1),n("transition",{attrs:{name:"fade"}},[t.d_preview_imgsrc?n("div",{staticClass:"v-note-img-wrapper",on:{click:function(e){t.d_preview_imgsrc=null}}},[n("img",{attrs:{src:t.d_preview_imgsrc,alt:"none"}})]):t._e()]),n("div",{ref:"vReadModel",staticClass:"v-note-read-model scroll-style",class:{show:t.s_readmodel}},[n("div",{ref:"vNoteReadContent",staticClass:"v-note-read-content",domProps:{innerHTML:t._s(t.d_render)}})])],1)},Dwt=[];const Owt={bold:{start:"**"},italic:{start:"*"},underline:{start:"++"},strikethrough:{start:"~~"},superscript:{start:"^"},subscript:{start:"~"},code:{start:"```\n",end:"\n```"}},Lwt={quote:{before:"> "},ol:{before:"1. "},ul:{before:"- "}},Bwt={table:{content:"|column1|column2|column3|\n|-------|-------|-------|\n|content1|content2|content3|\n"}},Iwt={mixins:[Xvt],components:{"v-md-toolbar-left":zbt,"v-md-toolbar-right":o_t},props:{scrollStyle:{type:Boolean,default:!0},boxShadow:{type:Boolean,default:!0},transition:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!0},toolbarsBackground:{type:String,default:"#ffffff"},editorBackground:{type:String,default:"#ffffff"},previewBackground:{type:String,default:"#fbfbfb"},boxShadowStyle:{type:String,default:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"},value:{type:String,default:""},subfield:{type:Boolean,default:!0},navigation:{type:Boolean,default:!1},defaultOpen:{type:String,default:null},toolbarsFlag:{type:Boolean,default:!0},toolbars:{type:Object,default(){return y.toolbars}},imageClick:{type:Function,default:null},tabSize:{type:Number,default:4},shortCut:{type:Boolean,default:!0},uploadRequest:{type:Function,default:null}},data(){return{s_subfield:(()=>this.subfield)(),s_autofocus:!0,s_navigation:(()=>this.navigation)(),d_value:"",d_render:"",s_preview_switch:(()=>{let t=this.defaultOpen;return t||(t=this.subfield?"preview":"edit"),"preview"===t})(),s_fullScreen:!1,s_html_code:!1,s_readmodel:!1,d_preview_imgsrc:null,cm:void 0}},mounted(){this.d_value=this.value||"",o(this),c(this),l(this),this.$nextTick((()=>{this.handleInitEditor()}))},watch:{d_value(){this.iRender()},value(t){t!==this.d_value&&(this.d_value=t||"",this.handleInitEditor())},subfield(t){this.s_subfield=t},defaultOpen(t){let e=t;return e||(e=this.subfield?"preview":"edit"),this.s_preview_switch="preview"===e}},methods:{handleInitEditor(){this.cm&&this.cm.toTextArea(),this.cm=Axt.fromTextArea(this.$refs.cmRef,{tabSize:this.tabSize,mode:"text/markdown",theme:"eclipse",lineNumbers:!0,lineWrapping:!0,line:!0,styleActiveLine:!0,highlightSelectionMatches:{annotateScrollbar:!0},viewportMargin:50,allowDropFileTypes:["image/jpg","image/png","image/svg","image/jpeg","image/gif","image/webp"],foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],matchTags:{bothTags:!0},autoCloseTags:!0}),this.cm.setValue(this.d_value),this.$nextTick((()=>{this.cm.clearHistory()})),this.autofocus&&this.setFocus(),this.cm.on("change",(t=>{this.d_value=t.getValue()||""})),this.cm.on("paste",this.onCmPaste),this.cm.on("drop",this.onCmDrop),this.cm.on("scroll",this.onCmScroll);const t=new Mwt(this.cm);t.init()},setHeading(t){const e=this.cm.doc.getCursor("head").line;let n=this.cm.doc.getLine(e);const r=n.length;n.startsWith("#")&&(n=n.replace(/^(#+ )/,"")),n=N_t(t,(()=>"#")).join("")+" "+n,this.cm.doc.replaceRange(n,{line:e,ch:0},{line:e,ch:r})},setMarkup(t,e){e||(e=t),this.cm.doc.somethingSelected()?this.cm.doc.replaceSelections(this.cm.doc.getSelections().map((n=>t+n+e))):this.insetAtCursor(t+""+e)},setEachLine(t,e){let n=[];if(this.cm.doc.somethingSelected()?n=nxt(this.cm.doc.listSelections().map((t=>{const e=Math.abs(t.anchor.line-t.head.line)+1,n=t.anchor.line>t.head.line?t.head.line:t.anchor.line;return N_t(e,(t=>t+n))}))):n.push(this.cm.doc.getCursor("head").line),n.forEach((e=>{let n=this.cm.doc.getLine(e);const r=n.length;n.startsWith(t)&&(n=n.substring(t.length)),this.cm.doc.replaceRange(t+n,{line:e,ch:0},{line:e,ch:r})})),e){const t=ixt(n);this.cm.doc.replaceRange(`\n${e}\n`,{line:t,ch:this.cm.doc.getLine(t).length+1})}},insertAfter(t){const e=this.cm.doc.getCursor("to").line,n=this.cm.doc.getLine(e).length;this.cm.doc.replaceRange("\n"+t,{line:e,ch:n+1})},insetAtCursor(t){const e=this.cm.doc.getCursor("head");this.cm.doc.replaceRange(t,e)},setFocus(){this.cm.focus()},openImagePicker(){this.$emit("openImagePicker")},insertLink(t,e){this.insetAtCursor(`[${t}](${e})`)},clickCommands(t,e){"save"!==t?Owt[t]?this.setMarkup(Owt[t].start,Owt[t].end):Lwt[t]?this.setEachLine(Lwt[t].before,Lwt[t].after):Bwt[t]?this.insertAfter(Bwt[t].content):"header"!==t?"undo"!==t?"redo"===t&&this.cm.doc.redo():this.cm.doc.undo():this.setHeading(e.level):this.$emit("save")},async onCmPaste(t,e){let{clipboardData:n}=e;n||(n=window.clipboardData);const{items:r}=n;if(0===r.length)return;const i=n.types||[];for(let a=0;a<i.length;a++){const t=r[a];if(t&&"file"===t.kind&&t.type.startsWith("image/")){e.preventDefault(),e.stopPropagation();const n=t.getAsFile();if(0===n.size)return;const{path:r,name:i}=await this.uploadRequest(n);this.insetAtCursor(`![${i}](${r})`)}}},async onCmDrop(t,e){const n=e.dataTransfer.files;if(0!==n.length)for(let r of n){if(0===r.size)return;if(r.type.startsWith("image/")){e.preventDefault(),e.stopPropagation();const{path:t,name:n}=await this.uploadRequest(r);this.insetAtCursor(`![${n}](${t})`)}}},onCmScroll(t){const e=t.getScrollerElement(),{scrollTop:n,scrollHeight:r,clientHeight:i}=e,a=n/r,o=this.$refs.vShowContent;n<=0?this.setPreviewScrollTop(0):n+i>=r?o.scrollTop=o.scrollHeight:this.setPreviewScrollTop(o.scrollHeight*a)},setPreviewScrollTop(t){this.$refs.vShowContent.scrollTop=t},toolbar_right_click(t){m(t,this)},getNavigation(t,e){return s(t)},fullscreen(t,e){this.$emit("fullScreen",t,e)},readmodel(t,e){this.$emit("readModel",t,e)},previewtoggle(t,e){this.$emit("previewToggle",t,e)},subfieldtoggle(t,e){this.$emit("subfieldToggle",t,e)},htmlcode(t,e){this.$emit("htmlCode",t,e)},save(t,e){this.$emit("save",t,e)},navigationtoggle(t,e){this.$emit("navigationToggle",t,e)},$toolbar_right_read_change_status(){this.s_readmodel=!this.s_readmodel,this.readmodel&&this.readmodel(this.s_readmodel,this.d_value),this.s_readmodel&&this.toolbars.navigation&&this.getNavigation(this,!0)},iRender:Sxt((function(){const t=this;t.$render(t.d_value||"",(function(e){t.d_render=e,t.$emit("change",{originalContent:t.d_value,renderContent:e}),t.$nextTick((()=>{t.renderHighlight(),t.s_navigation&&s(t)})),t.$emit("input",t.d_value)}))}),300)}},Rwt={};var Fwt=Bbt(Iwt,Nwt,Dwt,!1,Pwt,null,null,null);function Pwt(t){for(let e in Rwt)this[e]=Rwt[e]}var zwt=function(){return Fwt.exports}();const qwt={markdownIt:zwt.mixins[0].data().markdownIt,editor:zwt,install:function(t){t.component("halo-editor",zwt)}};var jwt=n(88696),Hwt=n(35717),Uwt={name:"MarkdownEditor",components:{haloEditor:qwt.editor},props:{originalContent:{type:String,required:!1,default:""},toolbars:{type:Object,default:function(){return Hwt.og}},subfield:{type:Boolean,default:!0}},data:function(){return{attachmentSelectVisible:!1}},computed:{originalContentData:{get:function(){return this.originalContent},set:function(t){this.$emit("update:originalContent",t)}}},methods:{handleAttachmentUpload:function(t){var e=this;return new Promise((function(n,r){var i=e.$message.loading("上传中...",0);jwt.Z.attachment.upload(t).then((function(t){var e=t.data;n({name:e.name,path:e.path})})).catch((function(t){e.$log.error("upload image error: ",t),r(t)})).finally((function(){i()}))}))},handleSelectAttachment:function(t){var e=t.markdown;this.$refs.editor.insetAtCursor(e.join("\n"))},handleSave:function(){this.$emit("save")},handleChange:function(t){var e=t.originalContent,n=t.renderContent;this.$emit("change",{originalContent:e,renderContent:n})}}},$wt=Uwt,Wwt=n(19577),Ywt=(0,Wwt.Z)($wt,r,i,!1,null,null,null),Vwt=Ywt.exports}}]); |