UNPKG

hljs-mermaid

Version:

Highlight.js / lowlight grammar for Mermaid diagrams. Enables syntax highlighting in editors like Tiptap with @tiptap/extension-code-block-lowlight.

5 lines 305 kB
import{a as Ta}from"./chunk-AYJRFOCA.mjs";import{a as Pt,b as Io,c as Z}from"./chunk-76CZ6Z7T.mjs";var Cu=Pt((hT,Iu)=>{"use strict";var vu,Jr,Vr,Xr,Kr,Gr,Nn,yi,Pn,Hr,_u,Yr,$n,Zr,Qr,eo,Jt,Ou,to,no,kg;Zr=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;$n=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;Jr=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;eo=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;Yr=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;Jt=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;no=/[\t\v\f\ufeff\p{Zs}]+/yu;Pn=/\r?\n|[\r\u2028\u2029]/y;Hr=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;Qr=/\/\/.*/y;vu=/^#!.*/;Xr=/[<>.:={}]|\/(?![\/*])/y;Vr=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;Kr=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;Gr=/[^<>{}]+/y;to=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;Ou=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;Nn=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;yi=/^(?:return|throw|yield)$/;_u=RegExp(Pn.source);Iu.exports=kg=function*(e,{jsx:t=!1}={}){var n,r,o,s,i,a,c,l,u,f,p,h,m,d;for({length:a}=e,s=0,i="",d=[{tag:"JS"}],n=[],p=0,h=!1,(c=vu.exec(e))&&(yield{type:"HashbangComment",value:c[0]},s=c[0].length);s<a;){switch(l=d[d.length-1],l.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(e[s]==="/"&&(to.test(i)||Nn.test(i))&&(Zr.lastIndex=s,c=Zr.exec(e))){s=Zr.lastIndex,i=c[0],h=!0,yield{type:"RegularExpressionLiteral",value:c[0],closed:c[1]!==void 0&&c[1]!=="\\"};continue}if($n.lastIndex=s,c=$n.exec(e)){switch(m=c[0],u=$n.lastIndex,f=m,m){case"(":i==="?NonExpressionParenKeyword"&&d.push({tag:"JSNonExpressionParen",nesting:p}),p++,h=!1;break;case")":p--,h=!0,l.tag==="JSNonExpressionParen"&&p===l.nesting&&(d.pop(),f="?NonExpressionParenEnd",h=!1);break;case"{":$n.lastIndex=0,o=!Ou.test(i)&&(to.test(i)||Nn.test(i)),n.push(o),h=!1;break;case"}":switch(l.tag){case"InterpolationInTemplate":if(n.length===l.nesting){Jt.lastIndex=s,c=Jt.exec(e),s=Jt.lastIndex,i=c[0],c[1]==="${"?(i="?InterpolationInTemplate",h=!1,yield{type:"TemplateMiddle",value:c[0]}):(d.pop(),h=!0,yield{type:"TemplateTail",value:c[0],closed:c[1]==="`"});continue}break;case"InterpolationInJSX":if(n.length===l.nesting){d.pop(),s+=1,i="}",yield{type:"JSXPunctuator",value:"}"};continue}}h=n.pop(),f=h?"?ExpressionBraceEnd":"}";break;case"]":h=!0;break;case"++":case"--":f=h?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(t&&(to.test(i)||Nn.test(i))){d.push({tag:"JSXTag"}),s+=1,i="<",yield{type:"JSXPunctuator",value:m};continue}h=!1;break;default:h=!1}s=u,i=f,yield{type:"Punctuator",value:m};continue}if(Jr.lastIndex=s,c=Jr.exec(e)){switch(s=Jr.lastIndex,f=c[0],c[0]){case"for":case"if":case"while":case"with":i!=="."&&i!=="?."&&(f="?NonExpressionParenKeyword")}i=f,h=!Nn.test(c[0]),yield{type:c[1]==="#"?"PrivateIdentifier":"IdentifierName",value:c[0]};continue}if(eo.lastIndex=s,c=eo.exec(e)){s=eo.lastIndex,i=c[0],h=!0,yield{type:"StringLiteral",value:c[0],closed:c[2]!==void 0};continue}if(Yr.lastIndex=s,c=Yr.exec(e)){s=Yr.lastIndex,i=c[0],h=!0,yield{type:"NumericLiteral",value:c[0]};continue}if(Jt.lastIndex=s,c=Jt.exec(e)){s=Jt.lastIndex,i=c[0],c[1]==="${"?(i="?InterpolationInTemplate",d.push({tag:"InterpolationInTemplate",nesting:n.length}),h=!1,yield{type:"TemplateHead",value:c[0]}):(h=!0,yield{type:"NoSubstitutionTemplate",value:c[0],closed:c[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(Xr.lastIndex=s,c=Xr.exec(e)){switch(s=Xr.lastIndex,f=c[0],c[0]){case"<":d.push({tag:"JSXTag"});break;case">":d.pop(),i==="/"||l.tag==="JSXTagEnd"?(f="?JSX",h=!0):d.push({tag:"JSXChildren"});break;case"{":d.push({tag:"InterpolationInJSX",nesting:n.length}),f="?InterpolationInJSX",h=!1;break;case"/":i==="<"&&(d.pop(),d[d.length-1].tag==="JSXChildren"&&d.pop(),d.push({tag:"JSXTagEnd"}))}i=f,yield{type:"JSXPunctuator",value:c[0]};continue}if(Vr.lastIndex=s,c=Vr.exec(e)){s=Vr.lastIndex,i=c[0],yield{type:"JSXIdentifier",value:c[0]};continue}if(Kr.lastIndex=s,c=Kr.exec(e)){s=Kr.lastIndex,i=c[0],yield{type:"JSXString",value:c[0],closed:c[2]!==void 0};continue}break;case"JSXChildren":if(Gr.lastIndex=s,c=Gr.exec(e)){s=Gr.lastIndex,i=c[0],yield{type:"JSXText",value:c[0]};continue}switch(e[s]){case"<":d.push({tag:"JSXTag"}),s++,i="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":d.push({tag:"InterpolationInJSX",nesting:n.length}),s++,i="?InterpolationInJSX",h=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(no.lastIndex=s,c=no.exec(e)){s=no.lastIndex,yield{type:"WhiteSpace",value:c[0]};continue}if(Pn.lastIndex=s,c=Pn.exec(e)){s=Pn.lastIndex,h=!1,yi.test(i)&&(i="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:c[0]};continue}if(Hr.lastIndex=s,c=Hr.exec(e)){s=Hr.lastIndex,_u.test(c[0])&&(h=!1,yi.test(i)&&(i="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:c[0],closed:c[1]!==void 0};continue}if(Qr.lastIndex=s,c=Qr.exec(e)){s=Qr.lastIndex,h=!1,yield{type:"SingleLineComment",value:c[0]};continue}r=String.fromCodePoint(e.codePointAt(s)),s+=r.length,i=r,h=!1,yield{type:l.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r}}}});var ah=Pt(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0})});var lh=Pt(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var jx=Symbol("inverted"),Dx=Symbol("expectNull"),Fx=Symbol("expectUndefined"),Lx=Symbol("expectNumber"),Bx=Symbol("expectString"),qx=Symbol("expectBoolean"),zx=Symbol("expectVoid"),Wx=Symbol("expectFunction"),Ux=Symbol("expectObject"),Jx=Symbol("expectArray"),Vx=Symbol("expectSymbol"),Xx=Symbol("expectAny"),Kx=Symbol("expectUnknown"),Gx=Symbol("expectNever"),Hx=Symbol("expectNullable"),Yx=Symbol("expectBigInt")});var fh=Pt(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0})});var dh=Pt(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var e0=Symbol("secret"),t0=Symbol("mismatch"),n0=Symbol("avalue")});var ph=Pt(_e=>{"use strict";var Aw=_e&&_e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),So=_e&&_e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Aw(t,e,n)};Object.defineProperty(_e,"__esModule",{value:!0});_e.expectTypeOf=void 0;So(ah(),_e);So(lh(),_e);So(fh(),_e);So(dh(),_e);var Ce=()=>!0,Mw=e=>{let t=["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"],n={toBeAny:Ce,toBeUnknown:Ce,toBeNever:Ce,toBeFunction:Ce,toBeObject:Ce,toBeArray:Ce,toBeString:Ce,toBeNumber:Ce,toBeBoolean:Ce,toBeVoid:Ce,toBeSymbol:Ce,toBeNull:Ce,toBeUndefined:Ce,toBeNullable:Ce,toBeBigInt:Ce,toMatchTypeOf:Ce,toEqualTypeOf:Ce,toBeConstructibleWith:Ce,toMatchObjectType:Ce,toExtend:Ce,map:_e.expectTypeOf,toBeCallableWith:_e.expectTypeOf,extract:_e.expectTypeOf,exclude:_e.expectTypeOf,pick:_e.expectTypeOf,omit:_e.expectTypeOf,toHaveProperty:_e.expectTypeOf,parameter:_e.expectTypeOf};return t.forEach(o=>Object.defineProperty(n,o,{get:()=>(0,_e.expectTypeOf)({})})),n};_e.expectTypeOf=Mw});var kh=Pt((f0,Ph)=>{"use strict";function Eh(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Eh(n)}),e}var To=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Th(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function $t(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let o in r)n[o]=r[o]}),n}var $w="</span>",mh=e=>!!e.scope,Pw=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`},da=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Th(t)}openNode(t){if(!mh(t))return;let n=Pw(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){mh(t)&&(this.buffer+=$w)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},gh=(e={})=>{let t={children:[]};return Object.assign(t,e),t},pa=class e{constructor(){this.rootNode=gh(),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){let n=gh({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{e._collapse(n)}))}},ma=class extends pa{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){let r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new da(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function Bn(e){return e?typeof e=="string"?e:e.source:null}function xh(e){return Gt("(?=",e,")")}function kw(e){return Gt("(?:",e,")*")}function Rw(e){return Gt("(?:",e,")?")}function Gt(...e){return e.map(n=>Bn(n)).join("")}function jw(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ya(...e){return"("+(jw(e).capture?"":"?:")+e.map(r=>Bn(r)).join("|")+")"}function vh(e){return new RegExp(e.toString()+"|").exec("").length-1}function Dw(e,t){let n=e&&e.exec(t);return n&&n.index===0}var Fw=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ba(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let o=n,s=Bn(r),i="";for(;s.length>0;){let a=Fw.exec(s);if(!a){i+=s;break}i+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?i+="\\"+String(Number(a[1])+o):(i+=a[0],a[0]==="("&&n++)}return i}).map(r=>`(${r})`).join(t)}var Lw=/\b\B/,_h="[a-zA-Z]\\w*",wa="[a-zA-Z_]\\w*",Oh="\\b\\d+(\\.\\d+)?",Ih="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ch="\\b(0b[01]+)",Bw="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",qw=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=Gt(t,/.*\b/,e.binary,/\b.*/)),$t({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},qn={begin:"\\\\[\\s\\S]",relevance:0},zw={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[qn]},Ww={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[qn]},Uw={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/},vo=function(e,t,n={}){let r=$t({scope:"comment",begin:e,end:t,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});let o=ya("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:Gt(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Jw=vo("//","$"),Vw=vo("/\\*","\\*/"),Xw=vo("#","$"),Kw={scope:"number",begin:Oh,relevance:0},Gw={scope:"number",begin:Ih,relevance:0},Hw={scope:"number",begin:Ch,relevance:0},Yw={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[qn,{begin:/\[/,end:/\]/,relevance:0,contains:[qn]}]},Zw={scope:"title",begin:_h,relevance:0},Qw={scope:"title",begin:wa,relevance:0},eS={begin:"\\.\\s*"+wa,relevance:0},tS=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},Eo=Object.freeze({__proto__:null,APOS_STRING_MODE:zw,BACKSLASH_ESCAPE:qn,BINARY_NUMBER_MODE:Hw,BINARY_NUMBER_RE:Ch,COMMENT:vo,C_BLOCK_COMMENT_MODE:Vw,C_LINE_COMMENT_MODE:Jw,C_NUMBER_MODE:Gw,C_NUMBER_RE:Ih,END_SAME_AS_BEGIN:tS,HASH_COMMENT_MODE:Xw,IDENT_RE:_h,MATCH_NOTHING_RE:Lw,METHOD_GUARD:eS,NUMBER_MODE:Kw,NUMBER_RE:Oh,PHRASAL_WORDS_MODE:Uw,QUOTE_STRING_MODE:Ww,REGEXP_MODE:Yw,RE_STARTERS_RE:Bw,SHEBANG:qw,TITLE_MODE:Zw,UNDERSCORE_IDENT_RE:wa,UNDERSCORE_TITLE_MODE:Qw});function nS(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function rS(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function oS(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=nS,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function sS(e,t){Array.isArray(e.illegal)&&(e.illegal=ya(...e.illegal))}function iS(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function aS(e,t){e.relevance===void 0&&(e.relevance=1)}var cS=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Gt(n.beforeMatch,xh(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},lS=["of","and","for","in","not","or","if","then","parent","list","value"],uS="keyword";function Ah(e,t,n=uS){let r=Object.create(null);return typeof e=="string"?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach(function(s){Object.assign(r,Ah(e[s],t,s))}),r;function o(s,i){t&&(i=i.map(a=>a.toLowerCase())),i.forEach(function(a){let c=a.split("|");r[c[0]]=[s,fS(c[0],c[1])]})}}function fS(e,t){return t?Number(t):hS(e)?0:1}function hS(e){return lS.includes(e.toLowerCase())}var yh={},Kt=e=>{console.error(e)},bh=(e,...t)=>{console.log(`WARN: ${e}`,...t)},un=(e,t)=>{yh[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),yh[`${e}/${t}`]=!0)},xo=new Error;function Mh(e,t,{key:n}){let r=0,o=e[n],s={},i={};for(let a=1;a<=t.length;a++)i[a+r]=o[a],s[a+r]=!0,r+=vh(t[a-1]);e[n]=i,e[n]._emit=s,e[n]._multi=!0}function dS(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Kt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),xo;if(typeof e.beginScope!="object"||e.beginScope===null)throw Kt("beginScope must be object"),xo;Mh(e,e.begin,{key:"beginScope"}),e.begin=ba(e.begin,{joinWith:""})}}function pS(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Kt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),xo;if(typeof e.endScope!="object"||e.endScope===null)throw Kt("endScope must be object"),xo;Mh(e,e.end,{key:"endScope"}),e.end=ba(e.end,{joinWith:""})}}function mS(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function gS(e){mS(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),dS(e),pS(e)}function yS(e){function t(i,a){return new RegExp(Bn(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,a]),this.matchAt+=vh(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let a=this.regexes.map(c=>c[1]);this.matcherRe=t(ba(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;let c=this.matcherRe.exec(a);if(!c)return null;let l=c.findIndex((f,p)=>p>0&&f!==void 0),u=this.matchIndexes[l];return c.splice(0,l),Object.assign(c,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];let c=new n;return this.rules.slice(a).forEach(([l,u])=>c.addRule(l,u)),c.compile(),this.multiRegexes[a]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,c){this.rules.push([a,c]),c.type==="begin"&&this.count++}exec(a){let c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let l=c.exec(a);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){let u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,l=u.exec(a)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function o(i){let a=new r;return i.contains.forEach(c=>a.addRule(c.begin,{rule:c,type:"begin"})),i.terminatorEnd&&a.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&a.addRule(i.illegal,{type:"illegal"}),a}function s(i,a){let c=i;if(i.isCompiled)return c;[rS,iS,gS,cS].forEach(u=>u(i,a)),e.compilerExtensions.forEach(u=>u(i,a)),i.__beforeBegin=null,[oS,sS,aS].forEach(u=>u(i,a)),i.isCompiled=!0;let l=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),l=i.keywords.$pattern,delete i.keywords.$pattern),l=l||/\w+/,i.keywords&&(i.keywords=Ah(i.keywords,e.case_insensitive)),c.keywordPatternRe=t(l,!0),a&&(i.begin||(i.begin=/\B|\b/),c.beginRe=t(c.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(c.endRe=t(c.end)),c.terminatorEnd=Bn(c.end)||"",i.endsWithParent&&a.terminatorEnd&&(c.terminatorEnd+=(i.end?"|":"")+a.terminatorEnd)),i.illegal&&(c.illegalRe=t(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(u){return bS(u==="self"?i:u)})),i.contains.forEach(function(u){s(u,c)}),i.starts&&s(i.starts,a),c.matcher=o(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=$t(e.classNameAliases||{}),s(e)}function Nh(e){return e?e.endsWithParent||Nh(e.starts):!1}function bS(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return $t(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Nh(e)?$t(e,{starts:e.starts?$t(e.starts):null}):Object.isFrozen(e)?$t(e):e}var wS="11.11.1",ga=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},ha=Th,wh=$t,Sh=Symbol("nomatch"),SS=7,$h=function(e){let t=Object.create(null),n=Object.create(null),r=[],o=!0,s="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]},a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ma};function c(x){return a.noHighlightRe.test(x)}function l(x){let L=x.className+" ";L+=x.parentNode?x.parentNode.className:"";let R=a.languageDetectRe.exec(L);if(R){let X=C(R[1]);return X||(bh(s.replace("{}",R[1])),bh("Falling back to no-highlight mode for this block.",x)),X?R[1]:"no-highlight"}return L.split(/\s+/).find(X=>c(X)||C(X))}function u(x,L,R){let X="",re="";typeof L=="object"?(X=x,R=L.ignoreIllegals,re=L.language):(un("10.7.0","highlight(lang, code, ...args) has been deprecated."),un("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),re=x,X=L),R===void 0&&(R=!0);let ge={code:X,language:re};Y("before:highlight",ge);let de=ge.result?ge.result:f(ge.language,ge.code,R);return de.code=ge.code,Y("after:highlight",de),de}function f(x,L,R,X){let re=Object.create(null);function ge(M,P){return M.keywords[P]}function de(){if(!k.keywords){W.addText(U);return}let M=0;k.keywordPatternRe.lastIndex=0;let P=k.keywordPatternRe.exec(U),z="";for(;P;){z+=U.substring(M,P.index);let K=E.case_insensitive?P[0].toLowerCase():P[0],pe=ge(k,K);if(pe){let[Te,Ie]=pe;if(W.addText(z),z="",re[K]=(re[K]||0)+1,re[K]<=SS&&(ee+=Ie),Te.startsWith("_"))z+=P[0];else{let je=E.classNameAliases[Te]||Te;be(P[0],je)}}else z+=P[0];M=k.keywordPatternRe.lastIndex,P=k.keywordPatternRe.exec(U)}z+=U.substring(M),W.addText(z)}function Ee(){if(U==="")return;let M=null;if(typeof k.subLanguage=="string"){if(!t[k.subLanguage]){W.addText(U);return}M=f(k.subLanguage,U,!0,w[k.subLanguage]),w[k.subLanguage]=M._top}else M=h(U,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(ee+=M.relevance),W.__addSublanguage(M._emitter,M.language)}function ye(){k.subLanguage!=null?Ee():de(),U=""}function be(M,P){M!==""&&(W.startScope(P),W.addText(M),W.endScope())}function Ae(M,P){let z=1,K=P.length-1;for(;z<=K;){if(!M._emit[z]){z++;continue}let pe=E.classNameAliases[M[z]]||M[z],Te=P[z];pe?be(Te,pe):(U=Te,de(),U=""),z++}}function Me(M,P){return M.scope&&typeof M.scope=="string"&&W.openNode(E.classNameAliases[M.scope]||M.scope),M.beginScope&&(M.beginScope._wrap?(be(U,E.classNameAliases[M.beginScope._wrap]||M.beginScope._wrap),U=""):M.beginScope._multi&&(Ae(M.beginScope,P),U="")),k=Object.create(M,{parent:{value:k}}),k}function Qe(M,P,z){let K=Dw(M.endRe,z);if(K){if(M["on:end"]){let pe=new To(M);M["on:end"](P,pe),pe.isMatchIgnored&&(K=!1)}if(K){for(;M.endsParent&&M.parent;)M=M.parent;return M}}if(M.endsWithParent)return Qe(M.parent,P,z)}function ze(M){return k.matcher.regexIndex===0?(U+=M[0],1):(q=!0,0)}function ft(M){let P=M[0],z=M.rule,K=new To(z),pe=[z.__beforeBegin,z["on:begin"]];for(let Te of pe)if(Te&&(Te(M,K),K.isMatchIgnored))return ze(P);return z.skip?U+=P:(z.excludeBegin&&(U+=P),ye(),!z.returnBegin&&!z.excludeBegin&&(U=P)),Me(z,M),z.returnBegin?0:P.length}function Oe(M){let P=M[0],z=L.substring(M.index),K=Qe(k,M,z);if(!K)return Sh;let pe=k;k.endScope&&k.endScope._wrap?(ye(),be(P,k.endScope._wrap)):k.endScope&&k.endScope._multi?(ye(),Ae(k.endScope,M)):pe.skip?U+=P:(pe.returnEnd||pe.excludeEnd||(U+=P),ye(),pe.excludeEnd&&(U=P));do k.scope&&W.closeNode(),!k.skip&&!k.subLanguage&&(ee+=k.relevance),k=k.parent;while(k!==K.parent);return K.starts&&Me(K.starts,M),pe.returnEnd?0:P.length}function Je(){let M=[];for(let P=k;P!==E;P=P.parent)P.scope&&M.unshift(P.scope);M.forEach(P=>W.openNode(P))}let ht={};function J(M,P){let z=P&&P[0];if(U+=M,z==null)return ye(),0;if(ht.type==="begin"&&P.type==="end"&&ht.index===P.index&&z===""){if(U+=L.slice(P.index,P.index+1),!o){let K=new Error(`0 width match regex (${x})`);throw K.languageName=x,K.badRule=ht.rule,K}return 1}if(ht=P,P.type==="begin")return ft(P);if(P.type==="illegal"&&!R){let K=new Error('Illegal lexeme "'+z+'" for mode "'+(k.scope||"<unnamed>")+'"');throw K.mode=k,K}else if(P.type==="end"){let K=Oe(P);if(K!==Sh)return K}if(P.type==="illegal"&&z==="")return U+=` `,1;if(V>1e5&&V>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return U+=z,z.length}let E=C(x);if(!E)throw Kt(s.replace("{}",x)),new Error('Unknown language: "'+x+'"');let I=yS(E),D="",k=X||I,w={},W=new a.__emitter(a);Je();let U="",ee=0,Q=0,V=0,q=!1;try{if(E.__emitTokens)E.__emitTokens(L,W);else{for(k.matcher.considerAll();;){V++,q?q=!1:k.matcher.considerAll(),k.matcher.lastIndex=Q;let M=k.matcher.exec(L);if(!M)break;let P=L.substring(Q,M.index),z=J(P,M);Q=M.index+z}J(L.substring(Q))}return W.finalize(),D=W.toHTML(),{language:x,value:D,relevance:ee,illegal:!1,_emitter:W,_top:k}}catch(M){if(M.message&&M.message.includes("Illegal"))return{language:x,value:ha(L),illegal:!0,relevance:0,_illegalBy:{message:M.message,index:Q,context:L.slice(Q-100,Q+100),mode:M.mode,resultSoFar:D},_emitter:W};if(o)return{language:x,value:ha(L),illegal:!1,relevance:0,errorRaised:M,_emitter:W,_top:k};throw M}}function p(x){let L={value:ha(x),illegal:!1,relevance:0,_top:i,_emitter:new a.__emitter(a)};return L._emitter.addText(x),L}function h(x,L){L=L||a.languages||Object.keys(t);let R=p(x),X=L.filter(C).filter(H).map(ye=>f(ye,x,!1));X.unshift(R);let re=X.sort((ye,be)=>{if(ye.relevance!==be.relevance)return be.relevance-ye.relevance;if(ye.language&&be.language){if(C(ye.language).supersetOf===be.language)return 1;if(C(be.language).supersetOf===ye.language)return-1}return 0}),[ge,de]=re,Ee=ge;return Ee.secondBest=de,Ee}function m(x,L,R){let X=L&&n[L]||R;x.classList.add("hljs"),x.classList.add(`language-${X}`)}function d(x){let L=null,R=l(x);if(c(R))return;if(Y("before:highlightElement",{el:x,language:R}),x.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",x);return}if(x.children.length>0&&(a.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(x)),a.throwUnescapedHTML))throw new ga("One of your code blocks includes unescaped HTML.",x.innerHTML);L=x;let X=L.textContent,re=R?u(X,{language:R,ignoreIllegals:!0}):h(X);x.innerHTML=re.value,x.dataset.highlighted="yes",m(x,R,re.language),x.result={language:re.language,re:re.relevance,relevance:re.relevance},re.secondBest&&(x.secondBest={language:re.secondBest.language,relevance:re.secondBest.relevance}),Y("after:highlightElement",{el:x,result:re,text:X})}function b(x){a=wh(a,x)}let S=()=>{N(),un("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function _(){N(),un("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let A=!1;function N(){function x(){N()}if(document.readyState==="loading"){A||window.addEventListener("DOMContentLoaded",x,!1),A=!0;return}document.querySelectorAll(a.cssSelector).forEach(d)}function $(x,L){let R=null;try{R=L(e)}catch(X){if(Kt("Language definition for '{}' could not be registered.".replace("{}",x)),o)Kt(X);else throw X;R=i}R.name||(R.name=x),t[x]=R,R.rawDefinition=L.bind(null,e),R.aliases&&F(R.aliases,{languageName:x})}function B(x){delete t[x];for(let L of Object.keys(n))n[L]===x&&delete n[L]}function j(){return Object.keys(t)}function C(x){return x=(x||"").toLowerCase(),t[x]||t[n[x]]}function F(x,{languageName:L}){typeof x=="string"&&(x=[x]),x.forEach(R=>{n[R.toLowerCase()]=L})}function H(x){let L=C(x);return L&&!L.disableAutodetect}function O(x){x["before:highlightBlock"]&&!x["before:highlightElement"]&&(x["before:highlightElement"]=L=>{x["before:highlightBlock"](Object.assign({block:L.el},L))}),x["after:highlightBlock"]&&!x["after:highlightElement"]&&(x["after:highlightElement"]=L=>{x["after:highlightBlock"](Object.assign({block:L.el},L))})}function G(x){O(x),r.push(x)}function ie(x){let L=r.indexOf(x);L!==-1&&r.splice(L,1)}function Y(x,L){let R=x;r.forEach(function(X){X[R]&&X[R](L)})}function te(x){return un("10.7.0","highlightBlock will be removed entirely in v12.0"),un("10.7.0","Please use highlightElement now."),d(x)}Object.assign(e,{highlight:u,highlightAuto:h,highlightAll:N,highlightElement:d,highlightBlock:te,configure:b,initHighlighting:S,initHighlightingOnLoad:_,registerLanguage:$,unregisterLanguage:B,listLanguages:j,getLanguage:C,registerAliases:F,autoDetection:H,inherit:wh,addPlugin:G,removePlugin:ie}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=wS,e.regex={concat:Gt,lookahead:xh,either:ya,optional:Rw,anyNumberOfTimes:kw};for(let x in Eo)typeof Eo[x]=="object"&&Eh(Eo[x]);return Object.assign(e,Eo),e},fn=$h({});fn.newInstance=()=>$h({});Ph.exports=fn;fn.HighlightJS=fn;fn.default=fn});var jh={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Dh=Object.entries(jh);function Co(e){return String(e)}Co.open="";Co.close="";function xa(e=!1){let t=typeof process!="undefined"?process:void 0,n=(t==null?void 0:t.env)||{},r=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window!="undefined"&&!!window.chrome}function va(e=!1){let t=xa(e),n=(i,a,c,l)=>{let u="",f=0;do u+=i.substring(f,l)+c,f=l+a.length,l=i.indexOf(a,f);while(~l);return u+i.substring(f)},r=(i,a,c=i)=>{let l=u=>{let f=String(u),p=f.indexOf(a,i.length);return~p?i+n(f,a,c,p)+a:i+f+a};return l.open=i,l.close=a,l},o={isColorSupported:t},s=i=>`\x1B[${i}m`;for(let[i,a]of Dh)o[i]=t?r(s(a[0]),s(a[1]),a[2]):Co;return o}import{isatty as Fh}from"tty";var Lh=process.env.FORCE_TTY!==void 0||Fh(1);var me=va(Lh);function La(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}function Bh(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}function pn(e,t,n,r,o,s,i=": "){let a="",c=0,l=e.next();if(!l.done){a+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(a+=u,c++===t.maxWidth){a+="\u2026";break}let f=s(l.value[0],t,u,r,o),p=s(l.value[1],t,u,r,o);a+=f+i+p,l=e.next(),l.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+n}return a}function No(e,t,n,r,o,s){let i="",a=0,c=e.next();if(!c.done){i+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(i+=l,a++===t.maxWidth){i+="\u2026";break}i+=s(c.value,t,l,r,o),c=e.next(),c.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+n}return i}function Vn(e,t,n,r,o,s){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=l=>l instanceof DataView,c=a(e)?e.byteLength:e.length;if(c>0){i+=t.spacingOuter;let l=n+t.indent;for(let u=0;u<c;u++){if(i+=l,u===t.maxWidth){i+="\u2026";break}(a(e)||u in e)&&(i+=s(a(e)?e.getInt8(u):e[u],t,l,r,o)),u<c-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+n}return i}function $o(e,t,n,r,o,s){let i="",a=Bh(e,t.compareKeys);if(a.length>0){i+=t.spacingOuter;let c=n+t.indent;for(let l=0;l<a.length;l++){let u=a[l],f=s(u,t,c,r,o),p=s(e[u],t,c,r,o);i+=`${c+f}: ${p}`,l<a.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+n}return i}var qh=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,zn=" ",zh=(e,t,n,r,o,s)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++r>t.maxDepth?`[${i}]`:`${i+zn}[${Vn(e.sample,t,n,r,o,s)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++r>t.maxDepth?`[${i}]`:`${i+zn}{${$o(e.sample,t,n,r,o,s)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+zn+s(e.sample,t,n,r,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},Wh=e=>e&&e.$$typeof===qh,Uh={serialize:zh,test:Wh},Jh=" ",Ba=new Set(["DOMStringMap","NamedNodeMap"]),Vh=/^(?:HTML\w*Collection|NodeList)$/;function Xh(e){return Ba.has(e)||Vh.test(e)}var Kh=e=>e&&e.constructor&&!!e.constructor.name&&Xh(e.constructor.name);function Gh(e){return e.constructor.name==="NamedNodeMap"}var Hh=(e,t,n,r,o,s)=>{let i=e.constructor.name;return++r>t.maxDepth?`[${i}]`:(t.min?"":i+Jh)+(Ba.has(i)?`{${$o(Gh(e)?[...e].reduce((a,c)=>(a[c.name]=c.value,a),{}):{...e},t,n,r,o,s)}}`:`[${Vn([...e],t,n,r,o,s)}]`)},Yh={serialize:Hh,test:Kh};function qa(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Po(e,t,n,r,o,s,i){let a=r+n.indent,c=n.colors;return e.map(l=>{let u=t[l],f=i(u,n,a,o,s);return typeof u!="string"&&(f.includes(` `)&&(f=n.spacingOuter+a+f+n.spacingOuter+r),f=`{${f}}`),`${n.spacingInner+r+c.prop.open+l+c.prop.close}=${c.value.open}${f}${c.value.close}`}).join("")}function ko(e,t,n,r,o,s){return e.map(i=>t.spacingOuter+n+(typeof i=="string"?za(i,t):s(i,t,n,r,o))).join("")}function za(e,t){let n=t.colors.content;return n.open+qa(e)+n.close}function Zh(e,t){let n=t.colors.comment;return`${n.open}<!--${qa(e)}-->${n.close}`}function Ro(e,t,n,r,o){let s=r.colors.tag;return`${s.open}<${e}${t&&s.close+t+r.spacingOuter+o+s.open}${n?`>${s.close}${n}${r.spacingOuter}${o}${s.open}</${e}`:`${t&&!r.min?"":" "}/`}>${s.close}`}function jo(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}var Qh=1,Wa=3,Ua=8,Ja=11,ed=/^(?:(?:HTML|SVG)\w*)?Element$/;function td(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function nd(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o=typeof r=="string"&&r.includes("-")||td(e);return n===Qh&&(ed.test(t)||o)||n===Wa&&t==="Text"||n===Ua&&t==="Comment"||n===Ja&&t==="DocumentFragment"}var rd=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&nd(e)};function od(e){return e.nodeType===Wa}function sd(e){return e.nodeType===Ua}function Ao(e){return e.nodeType===Ja}var id=(e,t,n,r,o,s)=>{if(od(e))return za(e.data,t);if(sd(e))return Zh(e.data,t);let i=Ao(e)?"DocumentFragment":e.tagName.toLowerCase();return++r>t.maxDepth?jo(i,t):Ro(i,Po(Ao(e)?[]:Array.from(e.attributes,a=>a.name).sort(),Ao(e)?{}:[...e.attributes].reduce((a,c)=>(a[c.name]=c.value,a),{}),t,n+t.indent,r,o,s),ko(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,o,s),t,n)},ad={serialize:id,test:rd},cd="@@__IMMUTABLE_ITERABLE__@@",ld="@@__IMMUTABLE_LIST__@@",ud="@@__IMMUTABLE_KEYED__@@",fd="@@__IMMUTABLE_MAP__@@",_a="@@__IMMUTABLE_ORDERED__@@",hd="@@__IMMUTABLE_RECORD__@@",dd="@@__IMMUTABLE_SEQ__@@",pd="@@__IMMUTABLE_SET__@@",md="@@__IMMUTABLE_STACK__@@",Ht=e=>`Immutable.${e}`,Kn=e=>`[${e}]`,dn=" ",Oa="\u2026";function gd(e,t,n,r,o,s,i){return++r>t.maxDepth?Kn(Ht(i)):`${Ht(i)+dn}{${pn(e.entries(),t,n,r,o,s)}}`}function yd(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function bd(e,t,n,r,o,s){let i=Ht(e._name||"Record");return++r>t.maxDepth?Kn(i):`${i+dn}{${pn(yd(e),t,n,r,o,s)}}`}function wd(e,t,n,r,o,s){let i=Ht("Seq");return++r>t.maxDepth?Kn(i):e[ud]?`${i+dn}{${e._iter||e._object?pn(e.entries(),t,n,r,o,s):Oa}}`:`${i+dn}[${e._iter||e._array||e._collection||e._iterable?No(e.values(),t,n,r,o,s):Oa}]`}function Mo(e,t,n,r,o,s,i){return++r>t.maxDepth?Kn(Ht(i)):`${Ht(i)+dn}[${No(e.values(),t,n,r,o,s)}]`}var Sd=(e,t,n,r,o,s)=>e[fd]?gd(e,t,n,r,o,s,e[_a]?"OrderedMap":"Map"):e[ld]?Mo(e,t,n,r,o,s,"List"):e[pd]?Mo(e,t,n,r,o,s,e[_a]?"OrderedSet":"Set"):e[md]?Mo(e,t,n,r,o,s,"Stack"):e[dd]?wd(e,t,n,r,o,s):bd(e,t,n,r,o,s),Ed=e=>e&&(e[cd]===!0||e[hd]===!0),Td={serialize:Sd,test:Ed};function Va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wn={exports:{}},ue={};var Ia;function xd(){if(Ia)return ue;Ia=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case e:switch(d=d.type,d){case n:case o:case r:case c:case l:case p:return d;default:switch(d=d&&d.$$typeof,d){case i:case a:case f:case u:return d;case s:return d;default:return b}}case t:return b}}}return ue.ContextConsumer=s,ue.ContextProvider=i,ue.Element=e,ue.ForwardRef=a,ue.Fragment=n,ue.Lazy=f,ue.Memo=u,ue.Portal=t,ue.Profiler=o,ue.StrictMode=r,ue.Suspense=c,ue.SuspenseList=l,ue.isContextConsumer=function(d){return m(d)===s},ue.isContextProvider=function(d){return m(d)===i},ue.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},ue.isForwardRef=function(d){return m(d)===a},ue.isFragment=function(d){return m(d)===n},ue.isLazy=function(d){return m(d)===f},ue.isMemo=function(d){return m(d)===u},ue.isPortal=function(d){return m(d)===t},ue.isProfiler=function(d){return m(d)===o},ue.isStrictMode=function(d){return m(d)===r},ue.isSuspense=function(d){return m(d)===c},ue.isSuspenseList=function(d){return m(d)===l},ue.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===o||d===r||d===c||d===l||typeof d=="object"&&d!==null&&(d.$$typeof===f||d.$$typeof===u||d.$$typeof===i||d.$$typeof===s||d.$$typeof===a||d.$$typeof===h||d.getModuleId!==void 0)},ue.typeOf=m,ue}var fe={};var Ca;function vd(){return Ca||(Ca=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case t:switch(d=d.type,d){case r:case s:case o:case l:case u:case h:return d;default:switch(d=d&&d.$$typeof,d){case a:case c:case p:case f:return d;case i:return d;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");fe.ContextConsumer=i,fe.ContextProvider=a,fe.Element=t,fe.ForwardRef=c,fe.Fragment=r,fe.Lazy=p,fe.Memo=f,fe.Portal=n,fe.Profiler=s,fe.StrictMode=o,fe.Suspense=l,fe.SuspenseList=u,fe.isContextConsumer=function(d){return e(d)===i},fe.isContextProvider=function(d){return e(d)===a},fe.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},fe.isForwardRef=function(d){return e(d)===c},fe.isFragment=function(d){return e(d)===r},fe.isLazy=function(d){return e(d)===p},fe.isMemo=function(d){return e(d)===f},fe.isPortal=function(d){return e(d)===n},fe.isProfiler=function(d){return e(d)===s},fe.isStrictMode=function(d){return e(d)===o},fe.isSuspense=function(d){return e(d)===l},fe.isSuspenseList=function(d){return e(d)===u},fe.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===s||d===o||d===l||d===u||typeof d=="object"&&d!==null&&(d.$$typeof===p||d.$$typeof===f||d.$$typeof===a||d.$$typeof===i||d.$$typeof===c||d.$$typeof===m||d.getModuleId!==void 0)},fe.typeOf=e})()),fe}var Aa;function _d(){return Aa||(Aa=1,process.env.NODE_ENV==="production"?Wn.exports=xd():Wn.exports=vd()),Wn.exports}var Xa=_d(),Od=Va(Xa),Id=La({__proto__:null,default:Od},[Xa]),Un={exports:{}},ce={};var Ma;function Cd(){if(Ma)return ce;Ma=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function d(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case e:switch(b=b.type,b){case n:case o:case r:case l:case u:return b;default:switch(b=b&&b.$$typeof,b){case a:case i:case c:case p:case f:case s:return b;default:return S}}case t:return S}}}return ce.ContextConsumer=i,ce.ContextProvider=s,ce.Element=e,ce.ForwardRef=c,ce.Fragment=n,ce.Lazy=p,ce.Memo=f,ce.Portal=t,ce.Profiler=o,ce.StrictMode=r,ce.Suspense=l,ce.SuspenseList=u,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(b){return d(b)===i},ce.isContextProvider=function(b){return d(b)===s},ce.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ce.isForwardRef=function(b){return d(b)===c},ce.isFragment=function(b){return d(b)===n},ce.isLazy=function(b){return d(b)===p},ce.isMemo=function(b){return d(b)===f},ce.isPortal=function(b){return d(b)===t},ce.isProfiler=function(b){return d(b)===o},ce.isStrictMode=function(b){return d(b)===r},ce.isSuspense=function(b){return d(b)===l},ce.isSuspenseList=function(b){return d(b)===u},ce.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===l||b===u||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===f||b.$$typeof===s||b.$$typeof===i||b.$$typeof===c||b.$$typeof===m||b.getModuleId!==void 0)},ce.typeOf=d,ce}var le={};var Na;function Ad(){return Na||(Na=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,d=!1,b=!1,S=!1,_=!1,A;A=Symbol.for("react.module.reference");function N(J){return!!(typeof J=="string"||typeof J=="function"||J===n||J===o||_||J===r||J===l||J===u||S||J===h||m||d||b||typeof J=="object"&&J!==null&&(J.$$typeof===p||J.$$typeof===f||J.$$typeof===s||J.$$typeof===i||J.$$typeof===c||J.$$typeof===A||J.getModuleId!==void 0))}function $(J){if(typeof J=="object"&&J!==null){var E=J.$$typeof;switch(E){case e:var I=J.type;switch(I){case n:case o:case r:case l:case u:return I;default:var D=I&&I.$$typeof;switch(D){case a:case i:case c:case p:case f:case s:return D;default:return E}}case t:return E}}}var B=i,j=s,C=e,F=c,H=n,O=p,G=f,ie=t,Y=o,te=r,x=l,L=u,R=!1,X=!1;function re(J){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ge(J){return X||(X=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function de(J){return $(J)===i}function Ee(J){return $(J)===s}function ye(J){return typeof J=="object"&&J!==null&&J.$$typeof===e}function be(J){return $(J)===c}function Ae(J){return $(J)===n}function Me(J){return $(J)===p}function Qe(J){return $(J)===f}function ze(J){return $(J)===t}function ft(J){return $(J)===o}function Oe(J){return $(J)===r}function Je(J){return $(J)===l}function ht(J){return $(J)===u}le.ContextConsumer=B,le.ContextProvider=j,le.Element=C,le.ForwardRef=F,le.Fragment=H,le.Lazy=O,le.Memo=G,le.Portal=ie,le.Profiler=Y,le.StrictMode=te,le.Suspense=x,le.SuspenseList=L,le.isAsyncMode=re,le.isConcurrentMode=ge,le.isContextConsumer=de,le.isContextProvider=Ee,le.isElement=ye,le.isForwardRef=be,le.isFragment=Ae,le.isLazy=Me,le.isMemo=Qe,le.isPortal=ze,le.isProfiler=ft,le.isStrictMode=Oe,le.isSuspense=Je,le.isSuspenseList=ht,le.isValidElementType=N,le.typeOf=$})()),le}var $a;function Md(){return $a||($a=1,process.env.NODE_ENV==="production"?Un.exports=Cd():Un.exports=Ad()),Un.exports}var Ka=Md(),Nd=Va(Ka),$d=La({__proto__:null,default:Nd},[Ka]),Pd=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],kt=Object.fromEntries(Pd.map(e=>[e,t=>$d[e](t)||Id[e](t)]));function Ga(e,t=[]){if(Array.isArray(e))for(let n of e)Ga(n,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Pa(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(kt.isFragment(e))return"React.Fragment";if(kt.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(kt.isContextProvider(e))return"Context.Provider";if(kt.isContextConsumer(e))return"Context.Consumer";if(kt.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(kt.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}function kd(e){let{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}var Rd=(e,t,n,r,o,s)=>++r>t.maxDepth?jo(Pa(e),t):Ro(Pa(e),Po(kd(e),e.props,t,n+t.indent,r,o,s),ko(Ga(e.props.children),t,n+t.indent,r,o,s),t,n),jd=e=>e!=null&&kt.isElement(e),Dd={serialize:Rd,test:jd},Fd=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Ld(e){let{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}var Bd=(e,t,n,r,o,s)=>++r>t.maxDepth?jo(e.type,t):Ro(e.type,e.props?Po(Ld(e),e.props,t,n+t.indent,r,o,s):"",e.children?ko(e.children,t,n+t.indent,r,o,s):"",t,n),qd=e=>e&&e.$$typeof===Fd,zd={serialize:Bd,test:qd},Ha=Object.prototype.toString,Wd=Date.prototype.toISOString,Ud=Error.prototype.toString,ka=RegExp.prototype.toString;function Jn(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function Jd(e){return typeof window!="undefined"&&e===window}var Vd=/^Symbol\((.*)\)(.*)$/,Xd=/\n/g,Xn=class extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}};function Kd(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function Gd(e){return Object.is(e,-0)?"-0":String(e)}function Hd(e){return`${e}n`}function Ra(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function ja(e){return String(e).replace(Vd,"Symbol($1)")}function Da(e){return`[${Ud.call(e)}]`}function Ya(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return Gd(e);if(o==="bigint")return Hd(e);if(o==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Ra(e,t);if(o==="symbol")return ja(e);let s=Ha.call(e);return s==="[object WeakMap]"?"WeakMap {}":s==="[object WeakSet]"?"WeakSet {}":s==="[object Function]"||s==="[object GeneratorFunction]"?Ra(e,t):s==="[object Symbol]"?ja(e):s==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Wd.call(e):s==="[object Error]"?Da(e):s==="[object RegExp]"?n?ka.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):ka.call(e):e instanceof Error?Da(e):null}function Za(e,t,n,r,o,s){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++r>t.maxDepth,a=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!s)return wt(e.toJSON(),t,n,r,o,!0);let c=Ha.call(e);return c==="[object Arguments]"?i?"[Arguments]":`${a?"":"Arguments "}[${Vn(e,t,n,r,o,wt)}]`:Kd(c)?i?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Vn(e,t,n,r,o,wt)}]`:c==="[object Map]"?i?"[Map]":`Map {${pn(e.entries(),t,n,r,o,wt," => ")}}`:c==="[object Set]"?i?"[Set]":`Set {${No(e.values(),t,n,r,o,wt)}}`:i||Jd(e)?`[${Jn(e)}]`:`${a||!t.printBasicPrototype&&Jn(e)==="Object"?"":`${Jn(e)} `}{${$o(e,t,n,r,o,wt)}}`}var Yd={test:e=>e&&e instanceof Error,serialize(e,t,n,r,o,s){if(o.includes(e))return"[Circular]";o=[...o,e];let i=++r>t.maxDepth,{message:a,cause:c,...l}=e,u={message:a,...typeof c!="undefined"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},f=e.name!=="Error"?e.name:Jn(e);return i?`[${f}]`:`${f} {${pn(Object.entries(u).values(),t,n,r,o,s)}}`}};function Zd(e){return e.serialize!=null}function Qa(e,t,n,r,o,s){let i;try{i=Zd(e)?e.serialize(t,n,r,o,s,wt):e.print(t,a=>wt(a,n,r,o,s),a=>{let c=r+n.indent;return c+a.replaceAll(Xd,` ${c}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(a){throw new Xn(a.message,a.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function ec(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Xn(r.message,r.stack)}return null}function wt(e,t,n,r,o,s){let i=ec(t.plugins,e);if(i!==null)return Qa(i,e,t,n,r,o);let a=Ya(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:Za(e,t,n,r,o,s)}var Do={com