!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ba4735e6-26c5-4d3a-a4af-c8cb0b807e02",e._sentryDebugIdIdentifier="sentry-dbid-ba4735e6-26c5-4d3a-a4af-c8cb0b807e02")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[248],{12846:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(63509),i=n(52322);t.default=function(e){let{html:t,height:n=null,width:o=null,children:s,dataNtpc:l=""}=e;return(0,i.useEffect)(()=>{l&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(l)}})},[l]),(0,r.jsxs)(r.Fragment,{children:[s,t?(0,r.jsx)("div",{style:{height:null!=n?"".concat(n,"px"):"auto",width:null!=o?"".concat(o,"px"):"auto"},"data-ntpc":l,dangerouslySetInnerHTML:{__html:t}}):null]})}},12059:function(e,t,n){"use strict";var r;let i;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let o=n(63509),s=n(52322),l=(r=n(90325))&&r.__esModule?r:{default:r};t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:n="dataLayer"}=e;return void 0===i&&(i=n),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n window['".concat(n,"'] = window['").concat(n,"'] || [];\n function gtag(){window['").concat(n,"'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '").concat(t,"');")}}),(0,o.jsx)(l.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t)})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ".concat(u?"w[l].push(".concat(JSON.stringify(u),")"):"","\n })(window,'").concat(n,"');")}}),(0,o.jsx)(l.default,{id:"_next-gtm","data-ntpc":"GTM",src:"https://www.googletagmanager.com/gtm.js?id=".concat(t).concat(c).concat(r?">m_auth=".concat(r):"").concat(a?">m_preview=".concat(a,">m_cookies_win=x"):"")})]})},t.sendGTMEvent=e=>{if(void 0===i){console.warn("@next/third-parties: GTM has not been initialized");return}window[i]?window[i].push(e):console.warn("@next/third-parties: GTM dataLayer ".concat(i," does not exist"))}},28178:function(e,t,n){"use strict";let r=n(46485),i=/^[\da-fA-F]+$/,o=/^\d+$/,s=new WeakMap;function l(e){e=e.Parser.acorn||e;let t=s.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r("...",!0,!0),u={jsxName:new i("jsxName"),jsxText:new i("jsxText",{beforeExpr:!0}),jsxTagStart:new i("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new i("jsxTagEnd")};u.jsxTagStart.updateContext=function(){this.context.push(a),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===l?(this.context.pop(),this.exprAllowed=this.curContext()===a):this.exprAllowed=!0},t={tokContexts:{tc_oTag:o,tc_cTag:l,tc_expr:a},tokTypes:u},s.set(e,t)}return t}function a(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?a(e.object)+"."+a(e.property):void 0:e}e.exports=function(e){return e=e||{},function(t){return function(e,t){let s=t.acorn||n(2086),u=l(s),c=s.tokTypes,p=u.tokTypes,f=s.tokContexts,h=u.tokContexts.tc_oTag,d=u.tokContexts.tc_cTag,m=u.tokContexts.tc_expr,g=s.isNewLine,y=s.isIdentifierStart,x=s.isIdentifierChar;return class extends t{static get acornJsx(){return u}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:if(this.pos===this.start){if(60===n&&this.exprAllowed)return++this.pos,this.finishToken(p.jsxTagStart);return this.getTokenFromCode(n)}return e+=this.input.slice(t,this.pos),this.finishToken(p.jsxText,e);case 38:e+=this.input.slice(t,this.pos)+this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===n?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:g(n)?(e+=this.input.slice(t,this.pos)+this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let r=this.input.charCodeAt(this.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.pos)+this.jsx_readEntity(),n=this.pos):g(r)?(t+=this.input.slice(n,this.pos)+this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(c.string,t)}jsx_readEntity(){let e="",t=0,n,s=this.input[this.pos];"&"!==s&&this.raise(this.pos,"Entity must start with an ampersand");let l=++this.pos;for(;this.pos")}let s=i.name?"Element":"Fragment";return n["opening"+s]=i,n["closing"+s]=o,n.children=r,this.type===c.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+s)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===p.jsxText?this.jsx_parseText():this.type===p.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===h||t===d){if(y(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(p.jsxTagEnd);if((34===e||39===e)&&t==h)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(p.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==c.braceL){var t=this.curContext();t==h?this.context.push(f.b_expr):t==m?this.context.push(f.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==c.slash||e!==p.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(d),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return l(n(2086)).tokTypes},configurable:!0,enumerable:!0})},46485:function(e){e.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},8305:function(e,t,n){"use strict";e=n.nmd(e);let r=n(75186),i=(e,t)=>function(){let n=e.apply(r,arguments);return`\u001B[${n+t}m`},o=(e,t)=>function(){let n=e.apply(r,arguments);return`\u001B[${38+t};5;${n}m`},s=(e,t)=>function(){let n=e.apply(r,arguments);return`\u001B[${38+t};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{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],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};for(let n of(t.color.grey=t.color.gray,Object.keys(t))){let r=t[n];for(let n of Object.keys(r)){let i=r[n];t[n]={open:`\u001B[${i[0]}m`,close:`\u001B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1])}Object.defineProperty(t,n,{value:r,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let n=e=>e,l=(e,t,n)=>[e,t,n];for(let e of(t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",t.color.ansi={ansi:i(n,0)},t.color.ansi256={ansi256:o(n,0)},t.color.ansi16m={rgb:s(l,0)},t.bgColor.ansi={ansi:i(n,10)},t.bgColor.ansi256={ansi256:o(n,10)},t.bgColor.ansi16m={rgb:s(l,10)},Object.keys(r))){if("object"!=typeof r[e])continue;let n=r[e];"ansi16"===e&&(e="ansi"),"ansi16"in n&&(t.color.ansi[e]=i(n.ansi16,0),t.bgColor.ansi[e]=i(n.ansi16,10)),"ansi256"in n&&(t.color.ansi256[e]=o(n.ansi256,0),t.bgColor.ansi256[e]=o(n.ansi256,10)),"rgb"in n&&(t.color.ansi16m[e]=s(n.rgb,0),t.bgColor.ansi16m[e]=s(n.rgb,10))}return t}})},14386:function(e,t,n){"use strict";var r=n(55293);let i=n(41018),o=n(8305),s=n(77569).stdout,l=n(26634),a="win32"===r.platform&&!(r.env.TERM||"").toLowerCase().startsWith("xterm"),u=["ansi","ansi","ansi256","ansi16m"],c=new Set(["gray"]),p=Object.create(null);function f(e,t){t=t||{};let n=s?s.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function h(e){if(!this||!(this instanceof h)||this.template){let t={};return f(t,e),t.template=function(){let e=[].slice.call(arguments);return y.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,h.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=h,t.template}f(this,e)}for(let e of(a&&(o.blue.open="\x1b[94m"),Object.keys(o)))o[e].closeRe=RegExp(i(o[e].close),"g"),p[e]={get(){let t=o[e];return m.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};for(let e of(p.visible={get(){return m.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=RegExp(i(o.color.close),"g"),Object.keys(o.color.ansi)))c.has(e)||(p[e]={get(){let t=this.level;return function(){let n=o.color[u[t]][e].apply(null,arguments),r={open:n,close:o.color.close,closeRe:o.color.closeRe};return m.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});for(let e of(o.bgColor.closeRe=RegExp(i(o.bgColor.close),"g"),Object.keys(o.bgColor.ansi)))c.has(e)||(p["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let t=this.level;return function(){let n=o.bgColor[u[t]][e].apply(null,arguments),r={open:n,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return m.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});let d=Object.defineProperties(()=>{},p);function m(e,t,n){let r=function(){return g.apply(r,arguments)};r._styles=e,r._empty=t;let i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=d,r}function g(){let e=arguments,t=e.length,n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r0?r[e].apply(r,n[e]):r[e]}return r}e.exports=(e,o)=>{let a=[],u=[],c=[];if(o.replace(t,(t,o,p,f,h,d)=>{if(o)c.push(s(o));else if(f){let t=c.join("");c=[],u.push(0===a.length?t:l(e,a)(t)),a.push({inverse:p,styles:function(e){let t;n.lastIndex=0;let o=[];for(;null!==(t=n.exec(e));){let e=t[1];if(t[2]){let n=function(e,t){let n;let o=[];for(let l of t.trim().split(/\s*,\s*/g))if(isNaN(l)){if(n=l.match(r))o.push(n[2].replace(i,(e,t,n)=>t?s(t):n));else throw Error(`Invalid Chalk template style argument: ${l} (in style '${e}')`)}else o.push(Number(l));return o}(e,t[2]);o.push([e].concat(n))}else o.push([e])}return o}(f)})}else if(h){if(0===a.length)throw Error("Found extraneous } in Chalk template literal");u.push(l(e,a)(c.join(""))),c=[],a.pop()}else c.push(d)}),u.push(c.join("")),a.length>0)throw Error(`Chalk template literal is missing ${a.length} closing bracket${1===a.length?"":"s"} (\`}\`)`);return u.join("")}},11639:function(e,t,n){var r=n(91915),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var l in s)if(s.hasOwnProperty(l)){if(!("channels"in s[l]))throw Error("missing channels property: "+l);if(!("labels"in s[l]))throw Error("missing channel labels property: "+l);if(s[l].labels.length!==s[l].channels)throw Error("channel and label counts mismatch: "+l);var a=s[l].channels,u=s[l].labels;delete s[l].channels,delete s[l].labels,Object.defineProperty(s[l],"channels",{value:a}),Object.defineProperty(s[l],"labels",{value:u})}s.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),l=Math.max(r,i,o),a=l-s;return l===s?t=0:r===l?t=(i-o)/a:i===l?t=2+(o-r)/a:o===l&&(t=4+(r-i)/a),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+l)/2,[t,100*(l===s?0:n<=.5?a/(l+s):a/(2-l-s)),100*n]},s.rgb.hsv=function(e){var t,n,r,i,o,s=e[0]/255,l=e[1]/255,a=e[2]/255,u=Math.max(s,l,a),c=u-Math.min(s,l,a),p=function(e){return(u-e)/6/c+.5};return 0===c?i=o=0:(o=c/u,t=p(s),n=p(l),r=p(a),s===u?i=r-n:l===u?i=1/3+t-r:a===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},s.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[s.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},s.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return t=Math.min(1-n,1-r,1-i),[100*((1-n-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t,n=i[e];if(n)return n;var o=1/0;for(var s in r)if(r.hasOwnProperty(s)){var l=r[s],a=Math.pow(e[0]-l[0],2)+Math.pow(e[1]-l[1],2)+Math.pow(e[2]-l[2],2);a.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},s.hsl.rgb=function(e){var t,n,r,i,o,s=e[0]/360,l=e[1]/100,a=e[2]/100;if(0===l)return[o=255*a,o,o];n=a<.5?a*(1+l):a+l-a*l,t=2*a-n,i=[0,0,0];for(var u=0;u<3;u++)(r=s+-(1/3*(u-1)))<0&&r++,r>1&&r--,o=6*r<1?t+(n-t)*6*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i},s.hsl.hsv=function(e){var t,n=e[0],r=e[1]/100,i=e[2]/100,o=r,s=Math.max(i,.01);return i*=2,r*=i<=1?i:2-i,o*=s<=1?s:2-s,t=(i+r)/2,[n,100*(0===i?2*o/(s+o):2*r/(i+r)),100*t]},s.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,Math.floor(t)%6){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},s.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,s=e[2]/100,l=Math.max(s,.01);return r=(2-o)*s,t=(2-o)*l,[i,100*(o*l/(t<=1?t:2-t)||0),100*(r/=2)]},s.hwb.rgb=function(e){var t,n,r,i,o,s,l,a=e[0]/360,u=e[1]/100,c=e[2]/100,p=u+c;switch(p>1&&(u/=p,c/=p),t=Math.floor(6*a),n=1-c,r=6*a-t,(1&t)!=0&&(r=1-r),i=u+r*(n-u),t){default:case 6:case 0:o=n,s=i,l=u;break;case 1:o=i,s=n,l=u;break;case 2:o=u,s=n,l=i;break;case 3:o=u,s=i,l=n;break;case 4:o=i,s=u,l=n;break;case 5:o=n,s=u,l=i}return[255*o,255*s,255*l]},s.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},s.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return t=3.2406*i+-1.5372*o+-.4986*s,n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(e){var t,n,r,i=e[0],o=e[1],s=e[2];t=o/500+(n=(i+16)/116),r=n-s/200;var l=Math.pow(n,3),a=Math.pow(t,3),u=Math.pow(r,3);return n=(l>.008856?l:(n-16/116)/7.787)*100,[t=(a>.008856?a:(t-16/116)/7.787)*95.047,n,r=(u>.008856?u:(r-16/116)/7.787)*108.883]},s.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},s.lch.lab=function(e){var t,n=e[0],r=e[1];return[n,r*Math.cos(t=e[2]/360*2*Math.PI),r*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=(~~(e>50)+1)*.5;return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},s.ansi256.rgb=function(e){if(e>=232){var t,n=(e-232)*10+8;return[n,n,n]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),l=o-s;return t=l<1?s/(1-l):0,[(l<=0?0:o===n?(r-i)/l%6:o===r?2+(i-n)/l:4+(n-r)/l+4)/6%1*360,100*l,100*t]},s.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},s.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},s.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i=[0,0,0],o=t%1*6,s=o%1,l=1-s,a=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return a=(1-n)*r,[(n*i[0]+a)*255,(n*i[1]+a)*255,(n*i[2]+a)*255]},s.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},s.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},s.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},s.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},75186:function(e,t,n){var r=n(11639),i=n(96232),o={};Object.keys(r).forEach(function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach(function(n){var r,i,s=t[n];o[e][n]=(r=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var t=s(e);if("object"==typeof t)for(var n=t.length,r=0;r1&&(e=Array.prototype.slice.call(arguments)),s(e))},"conversion"in s&&(i.conversion=s.conversion),i)})}),e.exports=o},96232:function(e,t,n){var r=n(11639);e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},43553:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(52322);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:u="",children:c,iconNode:p,...f}=e;return(0,r.createElement)("svg",{ref:t,...s,width:i,height:i,stroke:n,strokeWidth:a?24*Number(l)/Number(i):l,className:o("lucide",u),...f},[...p.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let n=(0,r.forwardRef)((n,s)=>{let{className:a,...u}=n;return(0,r.createElement)(l,{ref:s,iconNode:t,className:o("lucide-".concat(i(e)),a),...u})});return n.displayName="".concat(e),n}},68055:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(43553).Z)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},53371:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(43553).Z)("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]])},7973:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(64699),i=n.n(r)},43397:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(24759),i=n.n(r)},39618:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(60880),i=n.n(r)},28774:function(e,t,n){"use strict";var r=n(21279);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},90325:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.a}});var r=n(55372),i=n.n(r),o={};for(var s in r)"default"!==s&&(o[s]=(function(e){return r[e]}).bind(0,s));n.d(t,o)},23022:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=a(e),s=o[0],l=o[1],u=new i((s+l)*3/4-l),c=0,p=l>0?s-4:s;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,l=r-i;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,s,s+16383>l?l:s+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return I(e).length;default:if(i)return r?-1:T(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,n){var i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,s=1,l=e.length,a=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;s=2,l/=2,a/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;ol&&(n=l-a),o=n;o>=0;o--){for(var p=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+p<=n)switch(p){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(a=(31&u)<<6|63&o)>127&&(c=a);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(a=(15&u)<<12|(63&o)<<6|63&s)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:o=e[i+1],s=e[i+2],l=e[i+3],(192&o)==128&&(192&s)==128&&(192&l)==128&&(a=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&l)>65535&&a<1114112&&(c=a)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function v(e,t,n,r,i,o){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function w(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function k(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function E(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return a(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)},l.allocUnsafe=function(e){return c(e)},l.allocUnsafeSlow=function(e){return c(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(O(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);in&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(O(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,a=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),p=0;p>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,l,a,u,c,p,f,h,d,m,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var y=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var s=0;s>8,i.push(n%256),i.push(r);return i}(e,this.length-d),this,d,m);default:if(y)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),y=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;v(this,e,t,n,i,0)}var o=1,s=0;for(this[t]=255&e;++s>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;v(this,e,t,n,i,0)}var o=n-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);v(this,e,t,n,i-1,-i)}var o=0,s=1,l=0;for(this[t]=255&e;++o>0)-l&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);v(this,e,t,n,i-1,-i)}var o=n-1,s=1,l=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===l&&0!==this[t+o+1]&&(l=1),this[t+o]=(e/s>>0)-l&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function A(e){for(var t=[],n=0;n=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var N=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var o,s,l=8*i-r-1,a=(1<>1,c=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-c)-1,h>>=-c,c+=l;c>0;o=256*o+e[t+p],p+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+p],p+=f,c-=8);if(0===o)o=1-u;else{if(o===a)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=u}return(h?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,l,a,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+p>=1?t+=f/a:t+=f*Math.pow(2,1-p),t*a>=2&&(s++,a/=2),s+p>=c?(l=0,s=c):s+p>=1?(l=(t*a-1)*Math.pow(2,i),s+=p):(l=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&l,h+=d,l/=256,i-=8);for(s=s<0;e[n+h]=255&s,h+=d,s/=256,u-=8);e[n+h-d]|=128*m}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(72);e.exports=i}()},64699:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(88653);n(63509),n(52322);let i=r._(n(77817));function o(e,t){var n;let r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};"function"==typeof e&&(r.loader=e);let o={...r,...t};return(0,i.default)({...o,modules:null==(n=o.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24759:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return a},getImageProps:function(){return l}});let r=n(88653),i=n(83646),o=n(96850),s=r._(n(82235));function l(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let a=o.Image},79900:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=n(89330);function i(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},77817:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(63509),i=n(52322),o=n(79900),s=n(93312);function l(e){return{default:e&&"default"in e?e.default:e}}let a={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},u=function(e){let t={...a,...e},n=(0,i.lazy)(()=>t.loader().then(l)),u=t.loading;function c(e){let l=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,a=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(s.PreloadCss,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(i.Suspense,{fallback:l,children:a})}return c.displayName="LoadableComponent",c}},93312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return o}});let r=n(63509),i=n(90765);function o(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,i.getExpectedRequestStore)("next/dynamic css"),o=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));o.push(...t)}}return 0===o.length?null:(0,r.jsx)(r.Fragment,{children:o.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},70677:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n},37226:function(e,t,n){var r=n(53962);function i(e,t){var n,i,o,s=null;if(!e||"string"!=typeof e)return s;for(var l=r(e),a="function"==typeof t,u=0,c=l.length;ui?e(t):t,{start:h,end:d,markerLines:m}=function(e,t,n){let r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},l=r.line,a=r.column,u=i.line,c=i.column,p=Math.max(l-(o+1),0),f=Math.min(t.length,u+s);-1===l&&(p=0),-1===u&&(f=t.length);let h=u-l,d={};if(h)for(let e=0;e<=h;e++){let n=e+l;if(a){if(0===e){let e=t[n-1].length;d[n]=[a,e-a+1]}else if(e===h)d[n]=[0,c];else{let r=t[n-e].length;d[n]=[0,r]}}else d[n]=!0}else a===c?a?d[l]=[a,0]:d[l]=!0:d[l]=[a,c-a];return{start:p,end:f,markerLines:d}}(t,e.split(c),n),g=t.start&&"number"==typeof t.start.column,y=String(d).length,x=(i?(0,o.default)(e,n):e).split(c,d).slice(h,d).map((e,t)=>{let r=h+1+t,i=` ${r}`.slice(-y),o=` ${i} |`,s=m[r],l=!m[r+1];if(!s)return` ${f(p.gutter,o)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(s)){let r=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),i=s[1]||1;t=["\n ",f(p.gutter,o.replace(/\d/g," "))," ",r,f(p.marker,"^").repeat(i)].join(""),l&&n.message&&(t+=" "+f(p.message,n.message))}return[f(p.marker,">"),f(p.gutter,o),e.length>0?` ${e}`:"",t].join("")}}).join("\n");return(n.message&&!g&&(x=`${" ".repeat(y+1)}${n.message} ${x}`),i)?l.reset(x):x};var o=n(10527),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(70677),!0);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}let a="object"==typeof i&&("0"===i.env.FORCE_COLOR||"false"===i.env.FORCE_COLOR)?(0,s.createColors)(!1):s.default,u=(e,t)=>n=>e(t(n)),c=/\r\n|[\n\r\u2028\u2029]/},35177:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=u,t.isIdentifierName=function(e){let t=!0;for(let n=0;ne);r+=2)if((n+=t[r+1])>=e)return!0;return!1}function a(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):l(e,o)))}function u(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):l(e,o)||l(e,s))))}},83455:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(35177),i=n(20825)},20825:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return n.has(e)},t.isReservedWord=o,t.isStrictBindOnlyReservedWord=l,t.isStrictBindReservedWord=function(e,t){return s(e,t)||l(e)},t.isStrictReservedWord=s;let n=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),r=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),i=new Set(["eval","arguments"]);function o(e,t){return t&&"await"===e||"enum"===e}function s(e,t){return o(e,t)||r.has(e)}function l(e){return i.has(e)}},10527:function(e,t,n){"use strict";let r,i;var o=n(55293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){var n;return""!==e&&m(t)?function(e,t){let n="";for(let{type:i,value:o}of r(t)){let t=e[i];t?n+=o.split(h).map(e=>t(e)).join("\n"):n+=o}return n}({keyword:(n=t.forceColor?(null!=i||(i=(0,a.createColors)(!0)),i):c).cyan,capitalized:n.yellow,jsxIdentifier:n.yellow,punctuator:n.yellow,number:n.magenta,string:n.green,regex:n.magenta,comment:n.gray,invalid:p(p(n.white,n.bgRed),n.bold)},e):e},t.shouldHighlight=m;var s=n(96188),l=n(83455),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(70677),!0);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}let c="object"==typeof o&&("0"===o.env.FORCE_COLOR||"false"===o.env.FORCE_COLOR)?(0,a.createColors)(!1):a.default,p=(e,t)=>n=>e(t(n)),f=new Set(["as","async","from","get","of","set"]),h=/\r\n|[\n\r\u2028\u2029]/,d=/^[()[\]{}]$/;{let e=/^[a-z][\w-]*$/i,t=function(t,n,r){if("name"===t.type){if((0,l.isKeyword)(t.value)||(0,l.isStrictReservedWord)(t.value,!0)||f.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[n-1]||"(null!=e||(e=n(14386)),t)?(null!=r||(r=new e.constructor({enabled:!0,level:1})),r):e}},71022:function(e,t,n){"use strict";e.exports.jsxRuntime=n(63509)},67080:function(e,t,n){"use strict";let r,i,o,s,l,a,u;n.d(t,{v:function(){return lj}});var c={};n.r(c),n.d(c,{attentionMarkers:function(){return tG},contentInitial:function(){return tV},disable:function(){return tQ},document:function(){return tq},flow:function(){return tK},flowInitial:function(){return tX},insideSpan:function(){return tY},string:function(){return tW},text:function(){return tH}});var p={};n.r(p),n.d(p,{boolean:function(){return rT},booleanish:function(){return rA},commaOrSpaceSeparated:function(){return rj},commaSeparated:function(){return rN},number:function(){return rC},overloadedBoolean:function(){return rI},spaceSeparated:function(){return rO}});var f={};n.r(f),n.d(f,{BOM:function(){return s3},DOCUMENT:function(){return s6},FLOW_END:function(){return s4},SCALAR:function(){return s9},createScalarToken:function(){return sK},isCollection:function(){return s8},isScalar:function(){return s7},prettyToken:function(){return le},resolveAsScalar:function(){return sX},setScalarValue:function(){return sW},stringify:function(){return sG},tokenType:function(){return lt},visit:function(){return s5}});var h={};n.r(h),n.d(h,{Alias:function(){return ot},CST:function(){return f},Composer:function(){return sV},Document:function(){return sv},Lexer:function(){return la},LineCounter:function(){return lu},Pair:function(){return oj},Parser:function(){return lg},Scalar:function(){return or},Schema:function(){return sb},YAMLError:function(){return sk},YAMLMap:function(){return oP},YAMLParseError:function(){return sE},YAMLSeq:function(){return oF},YAMLWarning:function(){return sS},isAlias:function(){return iF},isCollection:function(){return iz},isDocument:function(){return iB},isMap:function(){return iR},isNode:function(){return iq},isPair:function(){return iJ},isScalar:function(){return i$},isSeq:function(){return iU},parse:function(){return lv},parseAllDocuments:function(){return lx},parseDocument:function(){return lb},stringify:function(){return lw},visit:function(){return iH},visitAsync:function(){return iG}});var d=n(52322),m=n(71022);function g(e){return e&&"object"==typeof e?"position"in e||"type"in e?x(e.position):"start"in e||"end"in e?x(e):"line"in e||"column"in e?y(e):"":""}function y(e){return b(e&&e.line)+":"+b(e&&e.column)}function x(e){return y(e&&e.start)+"-"+y(e&&e.end)}function b(e){return e&&"number"==typeof e?e:1}class v extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=g(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}v.prototype.file="",v.prototype.name="",v.prototype.reason="",v.prototype.message="",v.prototype.stack="",v.prototype.column=void 0,v.prototype.line=void 0,v.prototype.ancestors=void 0,v.prototype.cause=void 0,v.prototype.fatal=void 0,v.prototype.place=void 0,v.prototype.ruleId=void 0,v.prototype.source=void 0;let w={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');k(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,l=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(i=o):(l=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(k(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;k(e);let n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){let l=e.codePointAt(n);if(47===l){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===l?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1)}return o<0||r<0||0===s||1===s&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),s=a,l=0;continue}}else if(i.length>0){i="",o=0,s=a,l=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),o=a-s-1;s=a,l=0}else 46===n&&l>-1?l++:l=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function k(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let E={cwd:function(){return"/"}};function S(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let T=["history","path","basename","stem","extname","dirname"];class A{constructor(e){let t,n;t=e?S(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":E.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r=48&&t<=57}function J(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function $(e){return function(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||R(e)}let U=document.createElement("i");function z(e){let t="&"+e+";";U.innerHTML=t;let n=U.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let q=String.fromCharCode,V=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"],X=/["&'<>`]/g,K=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,H=/[|\\{}()[\]^$+*?.]/g,Y=new WeakMap;function G(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Q(e){let t=0,n=e.stack.length;for(;--n>-1;){let r=e.stack[n];if("blockquote"===r||"listItem"===r)break;"mdxJsxFlowElement"===r&&t++}return t}function Z(e){return" ".repeat(e)}function ee(){return"<"}function et(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function en(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);let r=e.estree;n.value=t,r&&(n.data={estree:r})}function er(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function ei(e){return e.value||""}var eo=n(35071),es=n(28178);let el=eb(/[A-Za-z]/),ea=eb(/[\dA-Za-z]/),eu=eb(/[#-'*+\--9=?A-Z^-~]/);function ec(e){return null!==e&&(e<32||127===e)}let ep=eb(/\d/),ef=eb(/[\dA-Fa-f]/),eh=eb(/[!-/:-@[-`{-~]/);function ed(e){return null!==e&&e<-2}function em(e){return null!==e&&(e<0||32===e)}function eg(e){return -2===e||-1===e||32===e}let ey=eb(/\p{P}|\p{S}/u),ex=eb(/\s/);function eb(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ev(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return function(r){return eg(r)?(e.enter(n),function r(s){return eg(s)&&o++0)}function eI(e,t){let n,r;let i=t.prefix||"",o=t.suffix||"",s=Object.assign({},t.acornOptions),l=[],a=[],u=s.onComment,c=s.onToken,p=!1,f=Object.assign({},s,{onComment:l,preserveParens:!0});c&&(f.onToken=a);let h=function(e,t){let n={value:"",stops:[]},r=-1;for(;++r0&&-1===e[0];)e.shift();let t=function(e){let t,n=-1,r=[];for(;++n=i.length+d.length||"Unterminated comment"===t.message}if(n&&t.expression&&!g){if(eC(m.slice(n.end,m.length-o.length)))n={type:"Program",start:0,end:i.length+d.length,body:[{type:"ExpressionStatement",expression:n,start:0,end:i.length+d.length}],sourceType:"module",comments:[]};else{let e=w(n.end),t=Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},r=t,n=void 0}}if(n){var y,x;let e,t;if(n.comments=l,y=n,"function"==typeof(x=function(e,t,n,r){let i=r[r.length-1],o=t;"ParenthesizedExpression"===e.type&&i&&o&&("number"==typeof n&&(i=i[o],o=n),i[o]=e.expression),b(e)})&&(e=x),(function n(r,i,o,s){return eA(r)&&(l.displayName="node ("+r.type+")"),l;function l(){let l=e?eT(e(r,i,o,s)):[];if(l[0]===eE)return l;if(l[0]!==eS){let e;for(e in r)if(ew.call(r,e)&&r[e]&&"object"==typeof r[e]&&"data"!==e&&"position"!==e){let t=s.concat(r),i=r[e];if(Array.isArray(i)){let r=0;for(;r>-1&&r=d.length||(b(e),Array.isArray(c)?c.push(e):c(e))}return{estree:n,error:r,swallow:p};function b(e){let t=w(e.start),n=w(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function w(e){let n=e-i.length;n<0?n=0:n>d.length&&(n=d.length);let r=function(e,t){let n=0;for(;n-1?e:void 0}let eL="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",eM="#unexpected-type-in-code-expected-an-object-spread-spread";function e_(e,t,n,r,i,o,s,l,a,u,c){let p,f;let h=this,d=this.events.length+3,m=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),p=h.now(),g};function g(c){if(null===c){if(f)throw f;let e=new v("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=eL+"#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",e}if(ed(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),x;if(125===c&&0===m){let m=o?eP.call(h,o,s,i,d,p,u||!1,a||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(r),e.consume(c),e.exit(r);let i=e.exit(n);return l&&m.estree&&Object.assign(i,{estree:m.estree}),t}return f=m.message,e.enter(i),e.consume(c),y}return e.enter(i),y(c)}function y(t){return 125===t&&0===m||null===t||ed(t)?(e.exit(i),g(t)):(123!==t||o?125===t&&(m-=1):m+=1,e.consume(t),y)}function x(t){let n=h.now();if(n.line!==p.line&&!c&&h.parser.lazy[n.line]){let e=new v("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:h.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=eL+"#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",e}return eg(t)?ev(e,g,"linePrefix",3)(t):g(t)}}function eP(e,t,n,r,i,o,s){let l=eI(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:o,prefix:s?"({":"",suffix:s?"})":""}),a=l.estree;if(s&&a){let e=a.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type){let t=eO(e),n=new v("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=eL+eM,n}if(e.expression.properties[1]){let t=new v("Unexpected extra content in spread: only a single spread is supported",{place:eO(e.expression.properties[1]).start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw t.url=eL+"#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",t}if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type){let t=eO(e.expression.properties[0]),n=new v("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=eL+eM,n}}if(l.error){let e=new v("Could not parse expression with acorn",{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return e.url=eL+"#could-not-parse-expression-with-acorn",{type:"nok",message:e}}return{type:"ok",estree:a}}let eD=/[$_\p{ID_Start}]/u,eF=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,eB=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,eR=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,e$={};function eU(e){return!!e&&eD.test(String.fromCodePoint(e))}function ez(e,t){let n=(t||e$).jsx?eB:eF;return!!e&&n.test(String.fromCodePoint(e))}function eq(e,t){return((t||e$).jsx?eJ:eR).test(e)}let eV="https://github.com/micromark/micromark-extension-mdx-jsx";function eX(e,t,n,r,i,o,s,l,a,u,c,p,f,h,d,m,g,y,x,b,w,k,E,S,T,A,I,C,O,N,j,L){let M,_;let P=this;return function(t){return e.enter(l),e.enter(a),e.consume(t),e.exit(a),D};function D(e){return em(e)?n(e):(M=F,ei(e))}function F(t){return 47===t?(e.enter(u),e.consume(t),e.exit(u),M=B,ei):62===t?er(t):null!==t&&t>=0&&eU(t)?(e.enter(p),e.enter(f),e.consume(t),R):void es(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function B(t){return 62===t?er(t):null!==t&&t>=0&&eU(t)?(e.enter(p),e.enter(f),e.consume(t),R):void es(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function R(t){return null!==t&&t>=0&&ez(t,{jsx:!0})?(e.consume(t),R):46===t||47===t||58===t||62===t||123===t||em(t)||ex(t)?(e.exit(f),M=J,ei(t)):void es(t,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function J(t){return 46===t?(e.enter(h),e.consume(t),e.exit(h),M=$,ei):58===t?(e.enter(m),e.consume(t),e.exit(m),M=q,ei):47===t||62===t||123===t||null!==t&&t>=0&&eU(t)?(e.exit(p),K(t)):void es(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function $(t){if(null!==t&&t>=0&&eU(t))return e.enter(d),e.consume(t),U;es(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(t){return null!==t&&t>=0&&ez(t,{jsx:!0})?(e.consume(t),U):46===t||47===t||62===t||123===t||em(t)||ex(t)?(e.exit(d),M=z,ei(t)):void es(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function z(t){return 46===t?(e.enter(h),e.consume(t),e.exit(h),M=$,ei):47===t||62===t||123===t||null!==t&&t>=0&&eU(t)?(e.exit(p),K(t)):void es(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function q(t){if(null!==t&&t>=0&&eU(t))return e.enter(g),e.consume(t),V;es(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function V(t){return null!==t&&t>=0&&ez(t,{jsx:!0})?(e.consume(t),V):47===t||62===t||123===t||em(t)||ex(t)?(e.exit(g),M=X,ei(t)):void es(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function X(t){if(47===t||62===t||123===t||null!==t&&t>=0&&eU(t))return e.exit(p),K(t);es(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function K(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),M=en,ei):62===t?er(t):123===t?e_.call(P,e,W,y,x,b,r,i,o,!0,!1,s)(t):null!==t&&t>=0&&eU(t)?(e.enter(w),e.enter(k),e.enter(E),e.consume(t),H):void es(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(e){return M=K,ei(e)}function H(t){return null!==t&&t>=0&&ez(t,{jsx:!0})?(e.consume(t),H):47===t||58===t||61===t||62===t||123===t||em(t)||ex(t)?(e.exit(E),M=Y,ei(t)):void es(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Y(t){return 58===t?(e.enter(S),e.consume(t),e.exit(S),M=G,ei):61===t?(e.exit(k),e.enter(A),e.consume(t),e.exit(A),M=ee,ei):47===t||62===t||123===t||em(t)||ex(t)||null!==t&&t>=0&&eU(t)?(e.exit(k),e.exit(w),M=K,ei(t)):void es(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function G(t){if(null!==t&&t>=0&&eU(t))return e.enter(T),e.consume(t),Q;es(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Q(t){return null!==t&&t>=0&&ez(t,{jsx:!0})?(e.consume(t),Q):47===t||61===t||62===t||123===t||em(t)||ex(t)?(e.exit(T),e.exit(k),M=Z,ei(t)):void es(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Z(t){return 61===t?(e.enter(A),e.consume(t),e.exit(A),M=ee,ei):47===t||62===t||123===t||null!==t&&t>=0&&eU(t)?(e.exit(w),K(t)):void es(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ee(t){return 34===t||39===t?(e.enter(I),e.enter(C),e.consume(t),e.exit(C),_=t,function t(n){return(null===n&&es(n,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(_)+"`"),n===_)?(e.enter(C),e.consume(n),e.exit(C),e.exit(I),e.exit(w),_=void 0,M=K,ei):ed(n)?(M=t,ei(n)):(e.enter(O),function n(r){return null===r||r===_||ed(r)?(e.exit(O),t(r)):(e.consume(r),n)}(n))}):123===t?e_.call(P,e,et,N,j,L,r,i,o,!1,!1,s)(t):void es(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{}`)":""))}function et(t){return e.exit(w),M=K,ei(t)}function en(e){if(62===e)return er(e);es(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function er(n){return e.enter(a),e.consume(n),e.exit(a),e.exit(l),t}function ei(t){return ed(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eo):eg(t)||ex(t)?(e.enter("esWhitespace"),function t(n){return ed(n)?(e.exit("esWhitespace"),ei(n)):eg(n)||ex(n)?(e.consume(n),t):(e.exit("esWhitespace"),M(n))}(t)):M(t)}function eo(e){if(!s&&P.parser.lazy[P.now().line]){let e=new v("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",P.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=eV+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return ei(e)}function es(e,t,n){let r=new v("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` (U+"+e.toString(16).toUpperCase().padStart(4,"0")+")")+" "+t+", expected "+n,P.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw r.url=eV+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),r}}let eK={tokenize:function(e,t,n){return function(t){return eg(t)?ev(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||ed(e)?t(e):n(e)}},partial:!0},eW={tokenize:function(e,t,n){return function(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(eK,t,n)}},partial:!0},eH="https://github.com/micromark/micromark-extension-mdxjs-esm",eY=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function eG(e,t,n,r){let i;let o=e.length,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s0?(eG(e,e.length,0,t),e):t}let eZ={}.hasOwnProperty;function e0(e){let t={},n=-1;for(;++n1?o(e):(t.enter("mdxjsEsm"),t.enter("mdxjsEsmData"),t.consume(e),u+=String.fromCharCode(e),c)};function c(e){return el(e)?(t.consume(e),u+=String.fromCharCode(e),c):("import"===u||"export"===u)&&32===e?(t.consume(e),p):o(e)}function p(e){return null===e||ed(e)?(t.exit("mdxjsEsmData"),f(e)):(t.consume(e),p)}function f(e){return null===e?d(e):ed(e)?t.check(eW,d,h)(e):(t.enter("mdxjsEsmData"),p(e))}function h(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),f}function d(o){let u=eI(s.events.slice(a),{acorn:n,acornOptions:r,tokenTypes:["mdxjsEsmData"],prefix:l.length>0?"var "+l.join(",")+"\n":""});if(u.error){if(null!==o&&u.swallow)return h(o);let e=new v("Could not parse import/exports with acorn",{cause:u.error,place:{line:u.error.loc.line,column:u.error.loc.column+1,offset:u.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw e.url=eH+"#could-not-parse-importexports-with-acorn",e}l.length>0&&u.estree.body.shift();let c=-1;for(;++c"mdxFlowExpression"===e.name);return 60===t?s(t):123===t&&l?e.attempt(l,a,i)(t):null===t||ed(t)?r(t):i(t)}},concrete:!0})},text:{60:(r=l||void 0,i={acornOptions:o,addResult:s.addResult||void 0},{name:"mdxJsxTextTag",tokenize:function(e,t,n){return eX.call(this,e,t,n,r,i.acornOptions,i.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}})}}}(t),{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}])}(t)),i.push([{enter:{mdxFlowExpression:j,mdxTextExpression:L},exit:{mdxFlowExpression:M,mdxFlowExpressionChunk:_,mdxTextExpression:M,mdxTextExpressionChunk:_}},function(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:p,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:s,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:p,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:s},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:a,mdxJsxFlowTagNameMember:u,mdxJsxFlowTagNameLocal:c,mdxJsxFlowTagExpressionAttribute:h,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:d,mdxJsxFlowTagAttributeNameLocal:m,mdxJsxFlowTagAttributeValueLiteral:y,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:x,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:b,mdxJsxFlowTag:w,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:a,mdxJsxTextTagNameMember:u,mdxJsxTextTagNameLocal:c,mdxJsxTextTagExpressionAttribute:h,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:d,mdxJsxTextTagAttributeNameLocal:m,mdxJsxTextTagAttributeValueLiteral:y,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:x,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:b,mdxJsxTextTag:w}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){let t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){if(0===this.data.mdxJsxTagStack.length)throw new v("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function o(e){if(this.data.mdxJsxTag.close)throw new v("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function s(e){if(this.data.mdxJsxTag.close)throw new v("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){this.data.mdxJsxTag.close=!0}function a(e){this.data.mdxJsxTag.name=this.sliceSerialize(e)}function u(e){let t=this.data.mdxJsxTag;t.name+="."+this.sliceSerialize(e)}function c(e){let t=this.data.mdxJsxTag;t.name+=":"+this.sliceSerialize(e)}function p(e){let n=this.data.mdxJsxTag;o.call(this,e),n.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(e.start),end:void 0}})}function f(e){let t=this.data.mdxJsxTag;o.call(this,e),t.attributes.push({type:"mdxJsxExpressionAttribute",value:""}),this.buffer()}function h(e){let t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type;let r=e.estree;n.value=this.resume(),r&&(n.data={estree:r})}function d(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name=this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function m(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name+=":"+this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function y(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.value=function(e,t={}){let n,r,i;let o="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,s=[],l=0,a=-1,u="";t.position&&("start"in t.position||"indent"in t.position?(r=t.position.indent,n=t.position.start):n=t.position);let c=(n?n.line:0)||1,p=(n?n.column:0)||1,f=m();for(l--;++l<=e.length;)if(10===i&&(p=(r?r[a]:0)||1),38===(i=e.charCodeAt(l))){let n;let r=e.charCodeAt(l+1);if(9===r||10===r||12===r||32===r||38===r||60===r||Number.isNaN(r)||o&&r===o){u+=q(i),p++;continue}let a=l+1,c=a,x=a;if(35===r){x=++c;let t=e.charCodeAt(x);88===t||120===t?(n="hexadecimal",x=++c):n="decimal"}else n="named";let b="",v="",w="",k="named"===n?$:"decimal"===n?R:J;for(x--;++x<=e.length;){let t=e.charCodeAt(x);if(!k(t))break;w+=q(t),"named"===n&&F.includes(w)&&(b=w,v=z(w))}let E=59===e.charCodeAt(x);if(E){x++;let e="named"===n&&z(w);e&&(b=w,v=e)}let S=1+x-a,T="";if(E||!1!==t.nonTerminated){if(w){if("named"===n){if(E&&!v)g(5,1);else if(b!==w&&(S=1+(x=c+b.length)-c,E=!1),!E){let n=b?1:3;if(t.attribute){let t=e.charCodeAt(x);61===t?(g(n,S),v=""):$(t)?v="":g(n,S)}else g(n,S)}T=v}else{var h,d;E||g(2,S);let e=Number.parseInt(w,"hexadecimal"===n?16:10);if((h=e)>=55296&&h<=57343||h>1114111)g(7,S),T=q(65533);else if(e in B)g(6,S),T=B[e];else{let t="";((d=e)>=1&&d<=8||11===d||d>=13&&d<=31||d>=127&&d<=159||d>=64976&&d<=65007||(65535&d)==65535||(65535&d)==65534)&&g(6,S),e>65535&&(e-=65536,t+=q(e>>>10|55296),e=56320|1023&e),T=t+q(e)}}}else"named"!==n&&g(4,S)}if(T){y(),f=m(),l=x-1,p+=x-a+1,s.push(T);let n=m();n.offset++,t.reference&&t.reference.call(t.referenceContext,T,{start:f,end:n},e.slice(a-1,x)),f=n}else w=e.slice(a-1,x),u+=w,p+=w.length,l=x-1}else 10===i&&(c++,a++,p=0),Number.isNaN(i)?y():(u+=q(i),p++);return s.join("");function m(){return{line:c,column:p,offset:l+((n?n.offset:0)||0)}}function g(e,n){let r;t.warning&&(r=m(),r.column+=n,r.offset+=n,t.warning.call(t.warningContext,V[e],r,e))}function y(){u&&(s.push(u),t.text&&t.text.call(t.textContext,u,{start:f,end:m()}),u="")}}(this.resume(),{nonTerminated:!1}),r.position,r.position.end=t(e.end)}function x(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;let i={type:"mdxJsxAttributeValueExpression",value:this.resume()},o=e.estree;o&&(i.data={estree:o}),r.value=i,r.position,r.position.end=t(e.end)}function b(){this.data.mdxJsxTag.selfClosing=!0}function w(e){let t=this.data.mdxJsxTag,n=this.data.mdxJsxTagStack,r=n[n.length-1];if(t.close&&r.name!==t.name)throw new v("Unexpected closing tag `"+S(t)+"`, expected corresponding closing tag for `"+S(r)+"` ("+g(r)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?n.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,k),t.selfClosing||t.close?this.exit(e,E):n.push(t)}function k(e,t){let n=this.data.mdxJsxTagStack,r=n[n.length-1],i=e?" before the end of `"+e.type+"`":"",o=e?{start:e.start,end:e.end}:void 0;throw new v("Expected a closing tag for `"+S(r)+"` ("+g({start:t.start,end:t.end})+")"+i,o,"mdast-util-mdx-jsx:end-tag-mismatch")}function E(e,t){throw new v("Expected the closing tag `"+S(this.data.mdxJsxTag)+"` either after the end of `"+t.type+"` ("+g(t.end)+") or another opening tag after the start of `"+t.type+"` ("+g(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function S(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}(),{enter:{mdxjsEsm:et},exit:{mdxjsEsm:en,mdxjsEsmData:er}}]),o.push({extensions:[{handlers:{mdxFlowExpression:P,mdxTextExpression:P},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]},function(e){let t=e||{},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,o=t.printWidth||Number.POSITIVE_INFINITY,s='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return l.peek=ee,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(e,t,l,a){let u="mdxJsxFlowElement"===e.type,c=!!e.name&&(!e.children||0===e.children.length),p=Z(Q(l)),f=l.createTracker(a),h=l.createTracker(a),d=[],m=(u?p:"")+"<"+(e.name||""),g=l.enter(e.type);if(f.move(m),h.move(m),e.attributes&&e.attributes.length>0){if(!e.name)throw Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++tD(e,s)?s:n;l=t+function(e,t){if(e=e.replace(t.subset?function(e){let t=Y.get(e);return t||(t=function(e){let t=[],n=-1;for(;++no)&&(y=!0);let b=f,v=m;if(y){b=h;let e=-1;for(;++e"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?v+=b.move(l.containerPhrasing(e,{...b.current(),before:">",after:"<"})):(b.shift(2),v+=b.move("\n")+b.move(function(e,t,n){let r=t.indexStack,i=e.children,o=t.createTracker(n),s=Z(Q(t)),l=[],a=-1;for(r.push(-1);++a")),g(),v}}(t),{handlers:{mdxjsEsm:ei}}]})}let e5={};function e3(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return e6(e.children,t,n)}return Array.isArray(e)?e6(e,t,n):""}function e6(e,t,n){let r=[],i=-1;for(;++i=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&e9(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),e9(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),e9(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(er))return;let l=i.events.length,a=l;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){if(e){n=i.events[a][1].end;break}e=!0}for(g(s),o=l;ot;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},tt={tokenize:function(e,t,n){return ev(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},tn={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):ed(t)?e.check(tr,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return e8(e),e}},tr={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ev(e,i,"linePrefix")};function i(i){if(null===i||ed(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},ti={tokenize:function(e){let t=this,n=e.attempt(eK,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,ev(e,e.attempt(this.parser.constructs.flow,r,e.attempt(tn,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},to={resolveAll:tu()},ts=ta("string"),tl=ta("text");function ta(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return a(e)?i(e):s(e)}function s(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),l}function l(e){return a(e)?(t.exit("data"),i(e)):(t.consume(e),l)}function a(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===s||ed(s))?(e.exit("thematicBreak"),t(s)):n(s)}(o)}}},th={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:ep(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tf,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return ep(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),l(i)):n(i)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eK,r.interrupt?n:a,e.attempt(td,c,u))}function a(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eg(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eK,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ev(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eg(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tm,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ev(e,e.attempt(th,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},td={tokenize:function(e,t,n){let r=this;return ev(e,function(e){let i=r.events[r.events.length-1];return!eg(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},tm={tokenize:function(e,t,n){let r=this;return ev(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},tg={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eg(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eg(t)?ev(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(tg,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function ty(e,t,n,r,i,o,s,l,a){let u=a||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),p):null===t||32===t||41===t||ec(t)?n(t):(e.enter(r),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),d(t))};function p(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),p(t)):null===t||60===t||ed(t)?n(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function d(i){return!c&&(null===i||41===i||em(i))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(r),t(i)):c999||null===p||91===p||93===p&&!s||94===p&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):93===p?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ed(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(t){return null===t||91===t||93===t||ed(t)||a++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!eg(t)),92===t?p:c)}function p(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function tb(e,t,n,r,i,o){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,l):n(t)};function l(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),a(n))}function a(t){return t===s?(e.exit(o),l(s)):null===t?n(t):ed(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ev(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||ed(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?c:u)}function c(t){return t===s||92===t?(e.consume(t),u):u(t)}}function tv(e,t){let n;return function r(i){return ed(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eg(i)?ev(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tw(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let tk={tokenize:function(e,t,n){return function(t){return em(t)?tv(e,r)(t):n(t)};function r(t){return tb(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eg(t)?ev(e,o,"whitespace")(t):o(t)}function o(e){return null===e||ed(e)?t(e):n(e)}},partial:!0},tE={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),ev(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):ed(n)?e.attempt(tS,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||ed(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},tS={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):ed(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ev(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):ed(e)?i(e):n(e)}},partial:!0},tT={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eg(n)?ev(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(r){return null===r||ed(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let s={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=s,e.push(["exit",s,t]),e}},tA=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tI=["pre","script","style","textarea"],tC={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eK,t,n)}},partial:!0},tO={tokenize:function(e,t,n){let r=this;return function(t){return ed(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},tN={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},tj={name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),eg(t)?ev(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=l?(e.exit("codeFencedFenceSequence"),eg(i)?ev(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||ed(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},s=0,l=0;return function(t){return function(t){let o=i.events[i.events.length-1];return s=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l<3?n(i):(e.exit("codeFencedFenceSequence"),eg(i)?ev(e,a,"whitespace")(i):a(i))}(t)}(t)};function a(o){return null===o||ed(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(tN,c,d)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||ed(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(i)):eg(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ev(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||ed(t)?a(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||ed(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,d,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return s>0&&eg(t)?ev(e,h,"linePrefix",s+1)(t):h(t)}function h(t){return null===t||ed(t)?e.check(tN,c,d)(t):(e.enter("codeFlowValue"),function t(n){return null===n||ed(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function d(n){return e.exit("codeFenced"),t(n)}},concrete:!0},tL={name:"characterReference",tokenize:function(e,t,n){let r,i;let o=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),r=31,i=ea,u(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=ef,u):(e.enter("characterReferenceValue"),r=7,i=ep,u(t))}function u(l){if(59===l&&s){let r=e.exit("characterReferenceValue");return i!==ea||z(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&s++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let p=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);tU(p,-l),tU(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},s.end),a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=eQ(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=eQ(a,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),a=eQ(a,tp(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=eQ(a,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,a=eQ(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,eG(e,n-1,c-n+3,a),c=n+a.length-u-2;break}}for(c=-1;++co&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},eG(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:tf,45:[tT,tf],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,o,s,l;let a=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),i=!0,h):63===s?(e.consume(s),r=3,a.interrupt?t:L):el(s)?(e.consume(s),o=String.fromCharCode(s),d):n(s)}function c(i){return 45===i?(e.consume(i),r=2,p):91===i?(e.consume(i),r=5,s=0,f):el(i)?(e.consume(i),r=4,a.interrupt?t:L):n(i)}function p(r){return 45===r?(e.consume(r),a.interrupt?t:L):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?a.interrupt?t:S:f:n(r)}function h(t){return el(t)?(e.consume(t),o=String.fromCharCode(t),d):n(t)}function d(s){if(null===s||47===s||62===s||em(s)){let l=47===s,u=o.toLowerCase();return!l&&!i&&tI.includes(u)?(r=1,a.interrupt?t(s):S(s)):tA.includes(o.toLowerCase())?(r=6,l)?(e.consume(s),m):a.interrupt?t(s):S(s):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(s):i?function t(n){return eg(n)?(e.consume(n),t):k(n)}(s):g(s))}return 45===s||ea(s)?(e.consume(s),o+=String.fromCharCode(s),d):n(s)}function m(r){return 62===r?(e.consume(r),a.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),k):58===t||95===t||el(t)?(e.consume(t),y):eg(t)?(e.consume(t),g):k(t)}function y(t){return 45===t||46===t||58===t||95===t||ea(t)?(e.consume(t),y):x(t)}function x(t){return 61===t?(e.consume(t),b):eg(t)?(e.consume(t),x):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,v):eg(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||em(n)?x(n):(e.consume(n),t)}(t)}function v(t){return t===l?(e.consume(t),l=null,w):null===t||ed(t)?n(t):(e.consume(t),v)}function w(e){return 47===e||62===e||eg(e)?g(e):n(e)}function k(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||ed(t)?S(t):eg(t)?(e.consume(t),E):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),O):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),j):ed(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tC,_,T)(t)):null===t||ed(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),S)}function T(t){return e.check(tO,A,_)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||ed(t)?T(t):(e.enter("htmlFlowData"),S(t))}function C(t){return 45===t?(e.consume(t),L):S(t)}function O(t){return 47===t?(e.consume(t),o="",N):S(t)}function N(t){if(62===t){let n=o.toLowerCase();return tI.includes(n)?(e.consume(t),M):S(t)}return el(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),N):S(t)}function j(t){return 93===t?(e.consume(t),L):S(t)}function L(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),L):S(t)}function M(t){return null===t||ed(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),M)}function _(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:tT,95:tf,96:tj,126:tj},tW={38:tL,92:tM},tH={[-5]:t_,[-4]:t_,[-3]:t_,33:tR,38:tL,42:t$,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return el(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(t){return 43===t||45===t||46===t||ea(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||ea(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||ec(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),a):eu(t)?(e.consume(t),l):n(t)}function a(i){return ea(i)?function i(o){return 46===o?(e.consume(o),r=0,a):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||ea(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o;let s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),v):63===t?(e.consume(t),x):el(t)?(e.consume(t),k):n(t)}function a(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,h):el(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),p):ed(t)?(o=c,N(t)):(e.consume(t),c)}function p(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?O(e):45===e?p(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?d:h):n(t)}function d(t){return null===t?n(t):93===t?(e.consume(t),m):ed(t)?(o=d,N(t)):(e.consume(t),d)}function m(t){return 93===t?(e.consume(t),g):d(t)}function g(t){return 62===t?O(t):93===t?(e.consume(t),g):d(t)}function y(t){return null===t||62===t?O(t):ed(t)?(o=y,N(t)):(e.consume(t),y)}function x(t){return null===t?n(t):63===t?(e.consume(t),b):ed(t)?(o=x,N(t)):(e.consume(t),x)}function b(e){return 62===e?O(e):x(e)}function v(t){return el(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||ea(t)?(e.consume(t),w):function t(n){return ed(n)?(o=t,N(n)):eg(n)?(e.consume(n),t):O(n)}(t)}function k(t){return 45===t||ea(t)?(e.consume(t),k):47===t||62===t||em(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),O):58===t||95===t||el(t)?(e.consume(t),S):ed(t)?(o=E,N(t)):eg(t)?(e.consume(t),E):O(t)}function S(t){return 45===t||46===t||58===t||95===t||ea(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),T):ed(n)?(o=t,N(n)):eg(n)?(e.consume(n),t):E(n)}(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,A):ed(t)?(o=T,N(t)):eg(t)?(e.consume(t),T):(e.consume(t),I)}function A(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):ed(t)?(o=A,N(t)):(e.consume(t),A)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||em(t)?E(t):(e.consume(t),I)}function C(e){return 47===e||62===e||em(e)?E(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j}function j(t){return eg(t)?ev(e,L,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),o(t)}}}],91:tz,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return ed(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tM],93:tP,95:t$,96:{name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(a){return null===a?n(a):32===a?(e.enter("space"),e.consume(a),e.exit("space"),s):96===a?(i=e.enter("codeTextSequence"),r=0,function n(s){return 96===s?(e.consume(s),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(i.type="codeTextData",l(s))}(a)):ed(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(a))}function l(t){return null===t||32===t||96===t||ed(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let t1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t2(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return t0(n.slice(t?2:1),t?16:10)}return z(n)||e}let t5={}.hasOwnProperty;function t3(e){return{line:e.line,column:e.column,offset:e.offset}}function t6(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+g({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+g({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+g({start:t.start,end:t.end})+") is still open")}function t4(e){let t=this;t.parser=function(n){var r,i;let o,s,l,a;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(d),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(h,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(y,i),htmlFlowData:u,htmlText:r(y,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(d),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=t0(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=z(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=t3(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tw(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(t1,t2),n.identifier=tw(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=t3(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tw(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};(function e(t,n){let r=-1;for(;++r0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||t6).call(s,void 0,e[0])}for(r.position={start:t3(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:t3(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[o].slice(0,s))}return n}(s,e)}function f(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function h(e,t){t.restore()}function d(e,t){return function(n,i,o){let s,c,p,h;return Array.isArray(n)?d(n):"tokenize"in n?d([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return d([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function d(e){return(s=e,c=0,0===e.length)?o:m(e[c])}function m(e){return function(n){return(h=function(){let e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(l);return{restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,l=o,g()},from:i}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,a,y,x)(n)}}function y(t){return e(p,h),i}function x(e){return(h.restore(),++c{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,s]=t[i];switch(o){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n(new t9[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new t9[o](s),i)};return r},t7=e=>t8(new Map,e)(0),{toString:ne}={},{keys:nt}=Object,nn=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=ne.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},nr=([e,t])=>0===e&&("function"===t||"symbol"===t),ni=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[s,l]=nn(r);switch(s){case 0:{let t=r;switch(l){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+l);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(l)return i([l,[...r]],r);let e=[],t=i([s,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(l)switch(l){case"BigInt":return i([l,r.toString()],r);case"Boolean":case"Number":case"String":return i([l,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],a=i([s,n],r);for(let t of nt(r))(e||!nr(nn(r[t])))&&n.push([o(t),o(r[t])]);return a}case 3:return i([s,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{let t=[],n=i([s,t],r);for(let[n,i]of r)(e||!(nr(nn(n))||nr(nn(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([s,t],r);for(let n of r)(e||!nr(nn(n)))&&t.push(o(n));return n}}let{message:a}=r;return i([s,{name:l,message:a}],r)};return o},no=(e,{json:t,lossy:n}={})=>{let r=[];return ni(!(t||n),!!t,new Map,r)(e),r};var ns="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?t7(no(e,t)):structuredClone(e):(e,t)=>t7(no(e,t));function nl(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function na(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function nu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let nc=function(e){if(null==e)return nf;if("function"==typeof e)return np(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return c;function c(){var u;let c,p,f,h=nh;if((!t||o(i,l,a[a.length-1]||void 0))&&!1===(h=Array.isArray(u=n(i,a))?u:"number"==typeof u?[!0,u]:null==u?nh:[u])[0])return h;if("children"in i&&i.children&&i.children&&"skip"!==h[0])for(p=(r?i.children.length:-1)+s,f=a.concat(i);p>-1&&p0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function nx(e){let t=ng(e),n=nm(e);if(t&&n)return{start:t,end:n}}function nb(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function nv(e){let t=e.spread;return null==t?e.children.length>1:t}function nw(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let nk={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=nl(i.toLowerCase()),s=e.footnoteOrder.indexOf(i),l=e.footnoteCounts.get(i);void 0===l?(l=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=s+1,l+=1,e.footnoteCounts.set(i,l);let a={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,a);let u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nb(e,t);let i={src:nl(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:nl(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nb(e,t);let i={href:nl(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:nl(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=ng(t.children[1]),s=nm(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length,l=-1,a=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(nw(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nE,yaml:nE,definition:nE,footnoteDefinition:nE};function nE(){}let nS={}.hasOwnProperty,nT={};function nA(e,t){e.position&&(t.position=nx(e))}function nI(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,ns(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nC(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function nO(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nN(e,t){let n=function(e,t){let n=t||nT,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&p.push({type:"text",value:" "});let e="string"==typeof n?n:n(a,c);"string"==typeof e&&(e={type:"text",value:e}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(a,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...p)}else o.push(...p);let d={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,d),l.push(d)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ns(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function nj(e,t){return e&&"run"in e?async function(n,r){let i=nN(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nN(n,{file:r,...t||e})}}function nL(e){if(e)throw e}var nM=n(33368);function n_(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nP=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nD={}.hasOwnProperty;class nF extends nP{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(o,...s){let l=e[++n],a=-1;if(o){r(o);return}for(;++at.length;s&&t.push(r);try{o=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(l,i)(...s):r(null,...s)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nF,t=-1;for(;++t0){let[r,...o]=t,s=n[i][1];n_(s)&&n_(r)&&(r=nM(!0,s,r)),n[i]=[e,r,...o]}}}}let nB=new nF().freeze();function nR(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nJ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function n$(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nU(e){if(!n_(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nz(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nq(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new A(e)}class nV{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,r){e&&t&&(null!=n?e[t][n]=r:e[t]=r)}remove(e,t,n){e&&t&&(null!=n?e[t].splice(n,1):delete e[t])}}class nX extends nV{constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,n,r){if(e){let i;if(this.enter){let i=this.should_skip,o=this.should_remove,s=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let l=this.should_skip,a=this.should_remove;if(this.should_skip=i,this.should_remove=o,this.replacement=s,l)return e;if(a)return null}for(i in e){let t=e[i];if(t&&"object"==typeof t){if(Array.isArray(t))for(let n=0;n{o.declarations.set(e.local.name,e)});break;case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":"FunctionDeclaration"===e.type?(e.id&&o.declarations.set(e.id.name,e),t.set(e,o=new nY(o,!1))):(t.set(e,o=new nY(o,!1)),"FunctionExpression"===e.type&&e.id&&o.declarations.set(e.id.name,e)),e.params.forEach(t=>{nG(t).forEach(t=>{o.declarations.set(t,e)})});break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"BlockStatement":t.set(e,o=new nY(o,!0));break;case"ClassDeclaration":case"VariableDeclaration":o.add_declaration(e);break;case"CatchClause":t.set(e,o=new nY(o,!0)),e.param&&nG(e.param).forEach(t=>{e.param&&o.declarations.set(t,e.param)})}},leave(e){t.has(e)&&null!==o&&o.parent&&(o=o.parent)}});for(let e=i.length-1;e>=0;--e){let[t,r]=i[e];t.references.has(r.name)||function e(t,n){t.references.add(n),t.parent&&e(t.parent,n)}(t,r.name),t.find_owner(r.name)||n.set(r.name,r)}return{map:t,scope:r,globals:n}}class nY{constructor(e,t){this.parent=e,this.block=t,this.declarations=new Map,this.initialised_declarations=new Set,this.references=new Set}add_declaration(e){"VariableDeclaration"===e.type?"var"===e.kind&&this.block&&this.parent?this.parent.add_declaration(e):e.declarations.forEach(t=>{nG(t.id).forEach(n=>{this.declarations.set(n,e),t.init&&this.initialised_declarations.add(n)})}):e.id&&this.declarations.set(e.id.name,e)}find_owner(e){return this.declarations.has(e)?this:this.parent&&this.parent.find_owner(e)}has(e){return this.declarations.has(e)||!!this.parent&&this.parent.has(e)}}function nG(e){return(function e(t,n=[]){switch(t.type){case"Identifier":n.push(t);break;case"MemberExpression":let r=t;for(;"MemberExpression"===r.type;)r=r.object;n.push(r);break;case"ObjectPattern":t.properties.forEach(t=>{"RestElement"===t.type?e(t.argument,n):e(t.value,n)});break;case"ArrayPattern":let i=t=>{t&&e(t,n)};t.elements.forEach(e=>{e&&i(e)});break;case"RestElement":e(t.argument,n);break;case"AssignmentPattern":e(t.left,n)}return n})(e).map(e=>e.name)}function nQ(e,t){let n=["start","end","loc","range","comments"],r=-1;for(;++r0&&k(m)}else"ExportNamedDeclaration"===m.type||"ExportAllDeclaration"===m.type?k(m):"ImportDeclaration"===m.type?E(m):"ExpressionStatement"===m.type&&("JSXElement"===m.expression.type||"JSXFragment"===m.expression.type)?(d=!0,x.push(...u(m.expression,r,!!h))):x.push(m);d||x.push(...u(void 0,r,!!h)),y.push(["MDXContent","default"]),"function-body"===r&&x.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:b}).map(function(e,t){return{type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(t+1)}}}),...y.map(function(e){return{type:"Property",kind:"init",method:!1,computed:!1,shorthand:"string"==typeof e,key:{type:"Identifier",name:"string"==typeof e?e:e[1]},value:{type:"Identifier",name:"string"==typeof e?e:e[0]}}})]}}),e.body=x;let v=!1,w=!1;function k(e){if("ExportNamedDeclaration"===e.type)for(m of(e.declaration&&y.push(...nH(e.declaration).scope.declarations.keys()),e.specifiers))y.push(m.exported.name);E(e)}function E(e){let t,n;if("function-body"===r){if("ImportDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.source){e.source;let r={type:"ImportExpression",source:e.source};nQ(e,r),n={type:"AwaitExpression",argument:r},t=("ImportDeclaration"===e.type||"ExportNamedDeclaration"===e.type)&&0===e.specifiers.length?{type:"ExpressionStatement",expression:n}:{type:"VariableDeclaration",kind:"const",declarations:"ExportAllDeclaration"===e.type?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++b},init:n}]:nZ(e.specifiers,n)}}else if(e.declaration)t=e.declaration;else{let n=e.specifiers.filter(function(e){return e.local.name!==e.exported.name}).map(function(e){return{type:"VariableDeclarator",id:e.exported,init:e.local}});n.length>0&&(t={type:"VariableDeclaration",kind:"const",declarations:n})}}else t=e;t&&x.push(t)}(n||"function-body"===r)&&nW(e,{enter(e){if(("ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ImportDeclaration"===e.type)&&e.source){let t=e.source.value;try{new URL(t)}catch{(t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))&&(t=new URL(t,n).href)}let r={type:"Literal",value:t};nQ(e.source,r),e.source=r;return}if("ImportExpression"===e.type){w=!0;let t={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[e.source],optional:!1};e.source=t;return}if("MemberExpression"===e.type&&"object"in e&&"MetaProperty"===e.object.type&&"Identifier"===e.property.type&&"import"===e.object.meta.name&&"meta"===e.object.property.name&&"url"===e.property.name){v=!0;let t={type:"Identifier",name:"_importMetaUrl"};nQ(e,t),this.replace(t)}}}),w&&(n||(v=!0),e.body.push((f=n?{type:"Literal",value:n}:{type:"Identifier",name:"_importMetaUrl"},{type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:n0(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:n0(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:n0(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},f]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}))),v&&e.body.unshift({type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:n0(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing `options.baseUrl` needed to support `export … from`, `import`, or `import.meta.url` when generating `function-body`"}]}},alternate:null})};function u(e,t,n){let r={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};n||(r={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:r,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let i=e||{type:"Identifier",name:"undefined"};"JSXFragment"===i.type&&1===i.children.length&&"JSXElement"===i.children[0].type&&(i=i.children[0]);let o=!1;nW(i,{enter(e){if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)return this.skip();("AwaitExpression"===e.type||"ForOfStatement"===e.type&&e.await)&&(o=!0)}});let s={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:r}]}};return[{type:"FunctionDeclaration",async:o,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:i}]}},"program"===t?{type:"ExportDefaultDeclaration",declaration:s}:s]}}function n5(e,t,n){e.comments?.unshift({type:"Block",value:t+" "+n,data:{_mdxIsPragmaComment:!0}})}let n3=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;function n6(e){let t;if("JSXMemberExpression"===e.type){let n=n6(e.property);t={type:"MemberExpression",object:n6(e.object),property:n,computed:"Literal"===n.type,optional:!1}}else t="JSXNamespacedName"===e.type?{type:"Literal",value:e.namespace.name+":"+e.name.name}:eq(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return n9(e,t),t}function n4(e){let t;let n=e.split("."),r=-1;for(;++r0){let r=0;for(;r0&&c.push({type:"Property",key:{type:"Identifier",name:"children"},value:a.length>1?{type:"ArrayExpression",elements:a}:a[0],kind:"init",method:!1,shorthand:!1,computed:!1}):p=a,r){p.push({type:"ObjectExpression",properties:c}),s?p.push(s):n.development&&p.push({type:"Identifier",name:"undefined"});let t=a.length>1;if(n.development){o.jsxDEV=!0,l={type:"Identifier",name:"_jsxDEV"},p.push({type:"Literal",value:t});let r={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:n.filePath||""}}]};e.loc&&r.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:e.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:e.loc.start.column+1}}),p.push(r,{type:"ThisExpression"})}else t?(o.jsxs=!0,l={type:"Identifier",name:"_jsxs"}):(o.jsx=!0,l={type:"Identifier",name:"_jsx"})}else c.length>0?p.unshift({type:"ObjectExpression",properties:c}):p.length>0&&p.unshift({type:"Literal",value:null}),l=n4(i.jsx||n.pragma||"React.createElement");p.unshift(t);let f={type:"CallExpression",callee:l,arguments:p,optional:!1};n9(e,f),this.replace(f)}})}(e,{development:t,filePath:r.history[0]}),e.comments&&(e.comments=e.comments.filter(function(e){var t;return!(null===(t=e.data)||void 0===t?void 0:t._mdxIsPragmaComment)})),"function-body"===n){let t=0;for(;t0||i.length>0||f.idToInvalidComponentName.size>0){let e;if(r&&(a=!0,s.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(rt(f.node,"MDXContent")||rt(f.node,"_createMdxContent"))&&s.push(n0(["props","components"])),n.length>0||s.length>1)for(let e of s)n.push({type:"SpreadElement",argument:e});let t=n.length>0?{type:"ObjectExpression",properties:n}:{type:"LogicalExpression",operator:"||",left:s[0],right:{type:"ObjectExpression",properties:[]}};if(i.length>0&&(e={type:"ObjectPattern",properties:i.map(function(e){return{type:"Property",kind:"init",key:{type:"Identifier",name:"MDXLayout"===e?"wrapper":e},value:{type:"Identifier",name:e},method:!1,shorthand:"MDXLayout"!==e,computed:!1}})}),f.tags.length>0&&(c.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:t}),t={type:"Identifier",name:"_components"}),rt(f.node,"_createMdxContent"))for(let[e,t]of[...f.idToInvalidComponentName].sort(function([e],[t]){return e.localeCompare(t)}))c.push({type:"VariableDeclarator",id:{type:"Identifier",name:t},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:e},computed:!0,optional:!1}});e&&c.push({type:"VariableDeclarator",id:e,init:t}),c.length>0&&h.push({type:"VariableDeclaration",kind:"const",declarations:c})}for(p in f.references)if(Object.hasOwn(f.references,p)){let e=p.split("."),t=0;for(;++t0&&("BlockStatement"!==e.body.type&&(e.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:e.body}]}),e.body.body.unshift(...h)),l.pop()}}}),a&&r&&e.body.unshift(function(e,t){let n=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return"function-body"===t?{type:"VariableDeclaration",kind:"const",declarations:nZ(n,n0(["arguments",0]))}:{type:"ImportDeclaration",specifiers:n,source:{type:"Literal",value:e}}}(r,n)),u){let n=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],r=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(n.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:n7([{type:"Literal",value:"\nIt’s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(i.path?"` in `"+i.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),r.push({type:"Identifier",name:"place"})),e.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:r,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[n7(n)]}}]}})}"function-body"===n&&e.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"})}}function rt(e,t){return!!(e&&"id"in e&&e.id&&e.id.name===t)}function rn(e,t){let n=e;for(;n;){if(n.declarations.has(t))return!0;n=n.parent||void 0}return!1}let{stringify:rr}=JSON;if(!String.prototype.repeat)throw Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");let ri={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},ro={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function rs(e,t){let{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);let{length:r}=t;for(let i=1;i0){e.write(r);for(let t=1;t0){n.VariableDeclarator(r[0],e);for(let t=1;t0){t.write(r),i&&null!=e.comments&&ru(t,e.comments,o,r);let{length:l}=s;for(let e=0;e0){for(;o0&&t.write(", ");let e=n[o],r=e.type[6];if("D"===r)t.write(e.local.name,e),o++;else if("N"===r)t.write("* as "+e.local.name,e),o++;else break}if(o0){t.write(" with { ");for(let e=0;e0)for(let e=0;;){let i=n[e],{name:o}=i.local;if(t.write(o,i),o!==i.exported.name&&t.write(" as "+i.exported.name),++e0){t.write(" with { ");for(let n=0;n0){t.write(" with { ");for(let n=0;n "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:o=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:o,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),ra(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:n,expressions:r}=e;t.write("`");let{length:i}=r;for(let e=0;e0){let{elements:n}=e,{length:r}=n;for(let e=0;;){let i=n[e];if(null!=i&&this[i.type](i,t),++e0){t.write(r),i&&null!=e.comments&&ru(t,e.comments,o,r);let s=","+r,{properties:l}=e,{length:a}=l;for(let e=0;;){let n=l[e];if(i&&null!=n.comments&&ru(t,n.comments,o,r),t.write(o),this[n.type](n,t),++e0){let{properties:n}=e,{length:r}=n;for(let e=0;;)if(this[n[e].type](n[e],t),++e1||"U"===i[0]&&("n"===i[1]||"p"===i[1])&&r.prefix&&r.operator[0]===n&&("+"===n||"-"===n))&&t.write(" "),o?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:s=function(e,t){let n="in"===e.operator;n&&t.write("("),ra(t,e.left,e,!1),t.write(" "+e.operator+" "),ra(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:s,ConditionalExpression(e,t){let{test:n}=e,r=t.expressionsPrecedence[n.type];17===r||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let n=t.expressionsPrecedence[e.callee.type];17===n||n0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}let rd={};function rm(e,t){let{SourceMapGenerator:n,filePath:r,handlers:i}=t||rd,o=n?new n({file:r||".js"}):void 0;return{value:function(e,t){let n=new rh(t);return n.generator[e.type](e,n),n.output}(e,{comments:!0,generator:{...rp,...i},sourceMap:o||void 0}),map:o?o.toJSON():void 0}}let rg={JSXAttribute:function(e,t){this[e.name.type](e.name,t),null!==e.value&&void 0!==e.value&&(t.write("="),"Literal"===e.value.type?t.write('"'+ry(String(e.value.value)).replace(/"/g,""")+'"',e):this[e.value.type](e.value,t))},JSXClosingElement:function(e,t){t.write("")},JSXClosingFragment:function(e,t){t.write("",e)},JSXElement:function(e,t){let n=-1;if(this[e.openingElement.type](e.openingElement,t),e.children)for(;++n":">")},JSXOpeningFragment:function(e,t){t.write("<>",e)},JSXSpreadAttribute:function(e,t){t.write("{"),this.SpreadElement(e,t),t.write("}")},JSXText:function(e,t){t.write(ry(e.value).replace(/[<>{}]/g,rx),e)}};function ry(e){return e.replace(/&(?=[#a-z])/gi,"&")}function rx(e){return"<"===e?"<":">"===e?">":"{"===e?"{":"}"}function rb(e){let{SourceMapGenerator:t}=e;this.compiler=function(e,n){let r=t?rm(e,{SourceMapGenerator:t,filePath:n.path||"unknown.mdx",handlers:rg}):rm(e,{handlers:rg});return n.map=r.map,r.value}}class rv{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function rw(e,t){let n={},r={},i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),rB=rD({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function rR(e,t){return t in e?e[t]:t}function rJ(e,t){return rR(e,t.toLowerCase())}let r$=rD({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:rJ,properties:{xmlns:null,xmlnsXLink:null}}),rU=rD({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:rA,ariaAutoComplete:null,ariaBusy:rA,ariaChecked:rA,ariaColCount:rC,ariaColIndex:rC,ariaColSpan:rC,ariaControls:rO,ariaCurrent:null,ariaDescribedBy:rO,ariaDetails:null,ariaDisabled:rA,ariaDropEffect:rO,ariaErrorMessage:null,ariaExpanded:rA,ariaFlowTo:rO,ariaGrabbed:rA,ariaHasPopup:null,ariaHidden:rA,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rO,ariaLevel:rC,ariaLive:null,ariaModal:rA,ariaMultiLine:rA,ariaMultiSelectable:rA,ariaOrientation:null,ariaOwns:rO,ariaPlaceholder:null,ariaPosInSet:rC,ariaPressed:rA,ariaReadOnly:rA,ariaRelevant:null,ariaRequired:rA,ariaRoleDescription:rO,ariaRowCount:rC,ariaRowIndex:rC,ariaRowSpan:rC,ariaSelected:rA,ariaSetSize:rC,ariaSort:null,ariaValueMax:rC,ariaValueMin:rC,ariaValueNow:rC,ariaValueText:null,role:null}}),rz=rD({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:rJ,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rN,acceptCharset:rO,accessKey:rO,action:null,allow:null,allowFullScreen:rT,allowPaymentRequest:rT,allowUserMedia:rT,alt:null,as:null,async:rT,autoCapitalize:null,autoComplete:rO,autoFocus:rT,autoPlay:rT,blocking:rO,capture:null,charSet:null,checked:rT,cite:null,className:rO,cols:rC,colSpan:null,content:null,contentEditable:rA,controls:rT,controlsList:rO,coords:rC|rN,crossOrigin:null,data:null,dateTime:null,decoding:null,default:rT,defer:rT,dir:null,dirName:null,disabled:rT,download:rI,draggable:rA,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:rT,formTarget:null,headers:rO,height:rC,hidden:rT,high:rC,href:null,hrefLang:null,htmlFor:rO,httpEquiv:rO,id:null,imageSizes:null,imageSrcSet:null,inert:rT,inputMode:null,integrity:null,is:null,isMap:rT,itemId:null,itemProp:rO,itemRef:rO,itemScope:rT,itemType:rO,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:rT,low:rC,manifest:null,max:null,maxLength:rC,media:null,method:null,min:null,minLength:rC,multiple:rT,muted:rT,name:null,nonce:null,noModule:rT,noValidate:rT,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:rT,optimum:rC,pattern:null,ping:rO,placeholder:null,playsInline:rT,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:rT,referrerPolicy:null,rel:rO,required:rT,reversed:rT,rows:rC,rowSpan:rC,sandbox:rO,scope:null,scoped:rT,seamless:rT,selected:rT,shadowRootClonable:rT,shadowRootDelegatesFocus:rT,shadowRootMode:null,shape:null,size:rC,sizes:null,slot:null,span:rC,spellCheck:rA,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rC,step:null,style:null,tabIndex:rC,target:null,title:null,translate:null,type:null,typeMustMatch:rT,useMap:null,value:rA,width:rC,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rO,axis:null,background:null,bgColor:null,border:rC,borderColor:null,bottomMargin:rC,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:rT,declare:rT,event:null,face:null,frame:null,frameBorder:null,hSpace:rC,leftMargin:rC,link:null,longDesc:null,lowSrc:null,marginHeight:rC,marginWidth:rC,noResize:rT,noHref:rT,noShade:rT,noWrap:rT,object:null,profile:null,prompt:null,rev:null,rightMargin:rC,rules:null,scheme:null,scrolling:rA,standby:null,summary:null,text:null,topMargin:rC,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rC,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:rT,disableRemotePlayback:rT,prefix:null,property:null,results:rC,security:null,unselectable:null}}),rq=rD({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:rR,properties:{about:rj,accentHeight:rC,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rC,amplitude:rC,arabicForm:null,ascent:rC,attributeName:null,attributeType:null,azimuth:rC,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rC,by:null,calcMode:null,capHeight:rC,className:rO,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:rC,diffuseConstant:rC,direction:null,display:null,dur:null,divisor:rC,dominantBaseline:null,download:rT,dx:null,dy:null,edgeMode:null,editable:null,elevation:rC,enableBackground:null,end:null,event:null,exponent:rC,externalResourcesRequired:null,fill:null,fillOpacity:rC,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rN,g2:rN,glyphName:rN,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rC,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rC,horizOriginX:rC,horizOriginY:rC,id:null,ideographic:rC,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rC,k:rC,k1:rC,k2:rC,k3:rC,k4:rC,kernelMatrix:rj,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rC,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:rC,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:rC,overlineThickness:rC,paintOrder:null,panose1:null,path:null,pathLength:rC,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rO,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rC,pointsAtY:rC,pointsAtZ:rC,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rj,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rj,rev:rj,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rj,requiredFeatures:rj,requiredFonts:rj,requiredFormats:rj,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:rC,specularExponent:rC,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rC,strikethroughThickness:rC,string:null,stroke:null,strokeDashArray:rj,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rC,strokeOpacity:rC,strokeWidth:null,style:null,surfaceScale:rC,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rj,tabIndex:rC,tableValues:null,target:null,targetX:rC,targetY:rC,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rj,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:rC,underlineThickness:rC,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rC,values:null,vAlphabetic:rC,vMathematical:rC,vectorEffect:null,vHanging:rC,vIdeographic:rC,version:null,vertAdvY:rC,vertOriginX:rC,vertOriginY:rC,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rC,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),rV=rw([rB,rF,r$,rU,rz],"html"),rX=rw([rB,rF,r$,rU,rq],"svg"),rK={}.hasOwnProperty,rW=/^data[-\w.:]+$/i,rH=/-[a-z]/g,rY=/[A-Z]/g;function rG(e){return"-"+e.toLowerCase()}function rQ(e){return e.charAt(1).toUpperCase()}let rZ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var r0=n(37226);let r1={}.hasOwnProperty,r2=/[A-Z]/g,r5=/-([a-z])/g,r3=new Set(["td","th"]);function r6(e){let t=e.replace(r2,r9);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function r4(e,t){return t.toUpperCase()}function r9(e){return"-"+e.toLowerCase()}let r8={}.hasOwnProperty,r7=[];function ie(e,t){let n=t?[...t].sort(ir):r7;n.length>0&&function e(t,n){let r;if(n.index===n.comments.length)return;let i=[],o=[];for(r in t)if(r8.call(t,r)){let e=t[r];if(e&&"object"==typeof e&&"comments"!==r){if(Array.isArray(e)){let t=-1;for(;++t0})),o.length>0&&(t.comments=o)}(e,{comments:n,index:0})}function it(e,t,n,r){let i=[];for(;e.comments[e.index]&&1>ir(e.comments[e.index],t,n);)i.push(Object.assign({},e.comments[e.index++],r));return i}function ir(e,t,n){let r=n?"end":"start";return e.range&&t.range?e.range[0]-t.range[n?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[r]?e.loc.start.line-t.loc[r].line||e.loc.start.column-t.loc[r].column:"start"in e&&r in t?e.start-t[r]:Number.NaN}function ii(e,t){let n;let r=e.data&&e.data.estree,i=r&&r.comments||[];r&&(t.comments.push(...i),ie(r,r.comments),n=r.body[0]&&"ExpressionStatement"===r.body[0].type&&r.body[0].expression||void 0),n||(n={type:"JSXEmptyExpression"},t.patch(e,n));let o={type:"JSXExpressionContainer",expression:n};return t.inherit(e,o),o}function io(e,t){let n=t.schema,r=n,i=e.attributes||[],o=-1;e.name&&"html"===n.space&&"svg"===e.name.toLowerCase()&&(r=rX,t.schema=r);let s=t.all(e),l=[];for(;++o0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:s}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:s};return t.inherit(e,a),a}let is=/[ \t\n\f\r]/g;function il(e){return""===e.replace(is,"")}let ia={comment:function(e,t){let n={type:"Block",value:e.value};t.inherit(e,n),t.comments.push(n);let r={type:"JSXEmptyExpression",comments:[Object.assign({},n,{leading:!1,trailing:!0})]};t.patch(e,r);let i={type:"JSXExpressionContainer",expression:r};return t.patch(e,i),i},doctype:function(){},element:function(e,t){let n,r,i;let o=t.schema,s=o,l=e.properties||{};"html"===o.space&&"svg"===e.tagName.toLowerCase()&&(s=rX,t.schema=s);let a=t.all(e),u=[];for(n in l)if(r1.call(l,n)){let o,a=l[n],c=function(e,t){let n=rk(t),r=t,i=rE;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&rW.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(rH,rQ);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!rH.test(e)){let n=e.replace(rY,rG);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=r_}return new i(r,t)}(s,n);if(null==a||!1===a||"number"==typeof a&&Number.isNaN(a)||!a&&c.boolean)continue;if(n="react"===t.elementAttributeNameCase&&c.space?rZ[c.property]||c.property:c.attribute,Array.isArray(a)&&(a=c.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===n){let n,r="object"==typeof a?a:function(e,t){let n={};try{r0(e,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(r5,r4)),n[r]=t})}catch(e){throw Error("Could not parse `style` attribute on `"+t+"`",{cause:e})}return n}(String(a),e.tagName);"css"===t.stylePropertyNameCase&&(r=function(e){let t;let n={};for(t in e)r1.call(e,t)&&(n[r6(t)]=e[t]);return n}(r));let s=[];for(n in r)r1.call(r,n)&&s.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:eq(n)?{type:"Identifier",name:n}:{type:"Literal",value:n},value:{type:"Literal",value:String(r[n])},kind:"init"});i=s,o={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:s}}}else if(!0===a)o=null;else if(t.tableCellAlignToStyle&&r3.has(e.tagName)&&"align"===n){r=String(a);continue}else o={type:"Literal",value:String(a)};eq(n,{jsx:!0})?u.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:n},value:o}):u.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(n)},value:o||{type:"Literal",value:!0},kind:"init"}]}})}if(void 0!==r){i||(i=[],u.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:i}}}));let e="css"===t.stylePropertyNameCase?r6("textAlign"):"textAlign";i.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:eq(e)?{type:"Identifier",name:e}:{type:"Literal",value:e},value:{type:"Literal",value:r},kind:"init"})}t.schema=o;let c={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:u,name:t.createJsxElementName(e.tagName),selfClosing:0===a.length},closingElement:a.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:a};return t.inherit(e,c),c},mdxFlowExpression:ii,mdxJsxFlowElement:io,mdxJsxTextElement:io,mdxTextExpression:ii,mdxjsEsm:function(e,t){let n=e.data&&e.data.estree,r=n&&n.comments||[];n&&(t.comments.push(...r),ie(n,r),t.esm.push(...n.body))},root:function(e,t){let n;let r=t.all(e),i=[],o=-1;for(;++o!!e&&"object"==typeof e&&e[iD]===iN,iB=e=>!!e&&"object"==typeof e&&e[iD]===ij,iR=e=>!!e&&"object"==typeof e&&e[iD]===iL,iJ=e=>!!e&&"object"==typeof e&&e[iD]===iM,i$=e=>!!e&&"object"==typeof e&&e[iD]===i_,iU=e=>!!e&&"object"==typeof e&&e[iD]===iP;function iz(e){if(e&&"object"==typeof e)switch(e[iD]){case iL:case iP:return!0}return!1}function iq(e){if(e&&"object"==typeof e)switch(e[iD]){case iN:case iL:case i_:case iP:return!0}return!1}let iV=e=>(i$(e)||iz(e))&&!!e.anchor,iX=Symbol("break visit"),iK=Symbol("skip children"),iW=Symbol("remove node");function iH(e,t){let n=iZ(t);iB(e)?iY(null,e.contents,n,Object.freeze([e]))===iW&&(e.contents=null):iY(null,e,n,Object.freeze([]))}function iY(e,t,n,r){let i=i0(e,t,n,r);if(iq(i)||iJ(i))return i1(e,r,i),iY(e,i,n,r);if("symbol"!=typeof i){if(iz(t)){r=Object.freeze(r.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,e=>i2[e]);class i3{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},i3.defaultYaml,e),this.tags=Object.assign({},i3.defaultTags,t)}clone(){let e=new i3(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new i3(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:i3.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},i3.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:i3.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},i3.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i5(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t;let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&iq(e.contents)){let n={};iH(e.contents,(e,t)=>{iq(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[i,o]of r)("!!"!==i||"tag:yaml.org,2002:"!==o)&&(!e||t.some(e=>e.startsWith(o)))&&n.push(`%TAG ${i} ${o}`);return n.join("\n")}}function i6(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function i4(e){let t=new Set;return iH(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function i9(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function i8(e,t,n,r){if(r&&"object"==typeof r){if(Array.isArray(r))for(let t=0,n=r.length;ti7(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!iV(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}i3.defaultYaml={explicit:!1,version:"1.2"},i3.defaultTags={"!!":"tag:yaml.org,2002:"};class oe{constructor(e){Object.defineProperty(this,iD,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!iB(e))throw TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},s=i7(this,"",o);if("function"==typeof r)for(let{count:e,res:t}of o.anchors.values())r(t,e);return"function"==typeof i?i8(i,{"":s},"",s):s}}class ot extends oe{constructor(e){super(iN),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e){let t;return iH(e,{Node:(e,n)=>{if(n===this)return iH.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r);if(!o)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let s=n.get(o);if(s||(i7(o,null,t),s=n.get(o)),!s||void 0===s.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=function e(t,n,r){if(iF(n)){let e=n.resolve(t),i=r&&e&&r.get(e);return i?i.count*i.aliasCount:0}if(iz(n)){let i=0;for(let o of n.items){let n=e(t,o,r);n>i&&(i=n)}return i}return iJ(n)?Math.max(e(t,n.key,r),e(t,n.value,r)):1}(r,o,n)),s.count*s.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return s.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(i6(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${r} `}return r}}let on=e=>!e||"function"!=typeof e&&"object"!=typeof e;class or extends oe{constructor(e){super(i_),this.value=e}toJSON(e,t){return t?.keep?this.value:i7(this.value,e,t)}toString(){return String(this.value)}}function oi(e,t,n){let r;if(iB(e)&&(e=e.contents),iq(e))return e;if(iJ(e)){let t=n.schema[iL].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:o,onTagObj:s,schema:l,sourceObjects:a}=n;if(i&&e&&"object"==typeof e){if(r=a.get(e))return r.anchor||(r.anchor=o(e)),new ot(r.anchor);r={anchor:null,node:null},a.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,l.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new or(e);return r&&(r.node=t),t}u=e instanceof Map?l[iL]:Symbol.iterator in Object(e)?l[iP]:l[iL]}s&&(s(u),delete n.onTagObj);let c=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new or(e);return t?c.tag=t:u.default||(c.tag=u.tag),r&&(r.node=c),c}function oo(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return oi(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}or.BLOCK_FOLDED="BLOCK_FOLDED",or.BLOCK_LITERAL="BLOCK_LITERAL",or.PLAIN="PLAIN",or.QUOTE_DOUBLE="QUOTE_DOUBLE",or.QUOTE_SINGLE="QUOTE_SINGLE";let os=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class ol extends oe{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>iq(t)||iJ(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(os(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(iz(i))i.addIn(r,t);else if(void 0===i&&this.schema)this.set(n,oo(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(iz(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&i$(i)?i.value:i:iz(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!iJ(t))return!1;let n=t.value;return null==n||e&&i$(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!iz(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(iz(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,oo(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let oa=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ou(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let oc=(e,t,n)=>e.endsWith("\n")?ou(n,t):n.includes("\n")?"\n"+ou(n,t):(e.endsWith(" ")?"":" ")+n,op="flow",of="block",oh="quoted";function od(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:s,onOverflow:l}={}){let a,u,c;if(!i||i<0)return e;ii-Math.max(2,o)?f.push(0):d=i-r);let m=!1,g=-1,y=-1,x=-1;for(n===of&&-1!==(g=om(e,g,t.length))&&(d=g+p);c=e[g+=1];){if(n===oh&&"\\"===c){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}x=g}if("\n"===c)n===of&&(g=om(e,g,t.length)),d=g+t.length+p,a=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[g+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(a=g)}if(g>=d){if(a)f.push(a),d=a+p,a=void 0;else if(n===oh){for(;" "===u||" "===u;)u=c,c=e[g+=1],m=!0;let t=g>x+1?g-2:y-1;if(h[t])return e;f.push(t),h[t]=!0,d=t+p,a=void 0}else m=!0}}u=c}if(m&&l&&l(),0===f.length)return e;s&&s();let b=e.slice(0,f[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),oy=e=>/^(%|---|\.\.\.)/m.test(e);function ox(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(oy(e)?" ":""),s="",l=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(s+=n.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{s+=n.slice(l,e);let t=n.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:"00"===t.substr(0,2)?s+="\\x"+t.substr(2):s+=n.substr(e,6)}e+=5,l=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(i-(n=t+1)<=r)return!1}return!0}(n,f,h.length));if(!n)return d?"|\n":">\n";for(l=n.length;l>0;--l){let e=n[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let m=n.substring(l),g=m.indexOf("\n");-1===g?s="-":n===m||g!==m.length-1?(s="+",o&&o()):s="",m&&(n=n.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(u,`$&${h}`));let y=!1,x=-1;for(a=0;a")+(y?v:"")+s;if(e&&(w+=" "+p(e.replace(/ ?[\r\n]+/g," ")),i&&i()),d)return n=n.replace(/\n+/g,`$&${h}`),`${w} ${h}${b}${n}${m}`;n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`);let k=od(`${b}${n}${m}`,h,of,og(r,!0));return`${w} ${h}${k}`}function ok(e,t,n,r){let{implicitKey:i,inFlow:o}=t,s="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:l}=e;l!==or.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(l=or.QUOTE_DOUBLE);let a=e=>{switch(e){case or.BLOCK_FOLDED:case or.BLOCK_LITERAL:return i||o?ov(s.value,t):ow(s,t,n,r);case or.QUOTE_DOUBLE:return ox(s.value,t);case or.QUOTE_SINGLE:return ob(s.value,t);case or.PLAIN:return function(e,t,n,r){let{type:i,value:o}=e,{actualString:s,implicitKey:l,indent:a,indentStep:u,inFlow:c}=t;if(l&&o.includes("\n")||c&&/[[\]{},]/.test(o))return ov(o,t);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return l||c||!o.includes("\n")?ov(o,t):ow(e,t,n,r);if(!l&&!c&&i!==or.PLAIN&&o.includes("\n"))return ow(e,t,n,r);if(oy(o)){if(""===a)return t.forceBlockIndent=!0,ow(e,t,n,r);if(l&&a===u)return ov(o,t)}let p=o.replace(/\n+/g,`$& ${a}`);if(s){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(p),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return ov(o,t)}return l?p:od(p,a,op,og(t,!1))}(s,t,n,r);default:return null}},u=a(l);if(null===u){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(null===(u=a(r)))throw Error(`Unsupported default string type ${r}`)}return u}function oE(e,t){let n;let r=Object.assign({blockQuote:!0,commentString:oa,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}}function oS(e,t,n,r){let i;if(iJ(e))return e.toString(t,n,r);if(iF(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o=iq(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){let n,r;if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}if(i$(t)){n=t.value;let i=e.filter(e=>e.identify?.(n));r=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else n=t,r=e.find(e=>e.nodeClass&&n instanceof e.nodeClass);if(!r){let e=n?.constructor?.name??typeof n;throw Error(`Tag not resolved for ${e} value`)}return r}(t.doc.schema.tags,o));let s=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";let i=[],o=(i$(e)||iz(e))&&e.anchor;o&&i6(o)&&(n.add(o),i.push(`&${o}`));let s=e.tag?e.tag:t.default?null:t.tag;return s&&i.push(r.directives.tagString(s)),i.join(" ")}(o,i,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);let l="function"==typeof i.stringify?i.stringify(o,t,n,r):i$(o)?ok(o,t,n,r):o.toString(t,n,r);return s?i$(o)||"{"===l[0]||"["===l[0]?`${s} ${l}`:`${s} ${t.indent}${l}`:l}var oT=n(55293);function oA(e,t){("debug"===e||"warn"===e)&&(void 0!==oT&&oT.emitWarning?oT.emitWarning(t):console.warn(t))}function oI(e,t,{key:n,value:r}){if(e?.doc.schema.merge&&oC(n)){if(iU(r=iF(r)?r.resolve(e.doc):r))for(let n of r.items)oO(e,t,n);else if(Array.isArray(r))for(let n of r)oO(e,t,n);else oO(e,t,r)}else{let i=i7(n,"",e);if(t instanceof Map)t.set(i,i7(r,i,e));else if(t instanceof Set)t.add(i);else{let o=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(iq(e)&&n?.doc){let t=oE(n.doc,{});for(let e of(t.anchors=new Set,n.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),oA(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,i,e),s=i7(r,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}}return t}let oC=e=>"<<"===e||i$(e)&&"<<"===e.value&&(!e.type||e.type===or.PLAIN);function oO(e,t,n){let r=e&&iF(n)?n.resolve(e.doc):n;if(!iR(r))throw Error("Merge sources must be maps or map aliases");for(let[n,i]of r.toJSON(null,e,Map))t instanceof Map?t.has(n)||t.set(n,i):t instanceof Set?t.add(n):Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function oN(e,t,n){return new oj(oi(e,void 0,n),oi(t,void 0,n))}class oj{constructor(e,t=null){Object.defineProperty(this,iD,{value:iM}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return iq(t)&&(t=t.clone(e)),iq(n)&&(n=n.clone(e)),new oj(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return oI(t,n,this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,i){let o,s,l;let{allNullValues:a,doc:u,indent:c,indentStep:p,options:{commentString:f,indentSeq:h,simpleKeys:d}}=n,m=iq(e)&&e.comment||null;if(d){if(m)throw Error("With simple keys, key nodes cannot have comments");if(iz(e)||!iq(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let g=!d&&(!e||m&&null==t&&!n.inFlow||iz(e)||(i$(e)?e.type===or.BLOCK_FOLDED||e.type===or.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!g&&(d||!a),indent:c+p});let y=!1,x=!1,b=oS(e,n,()=>y=!0,()=>x=!0);if(!g&&!n.inFlow&&b.length>1024){if(d)throw Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(n.inFlow){if(a||null==t)return y&&r&&r(),""===b?"?":g?`? ${b}`:b}else if(a&&!d||null==t&&g)return b=`? ${b}`,m&&!y?b+=oc(b,n.indent,f(m)):x&&i&&i(),b;y&&(m=null),g?(m&&(b+=oc(b,n.indent,f(m))),b=`? ${b} ${c}:`):(b=`${b}:`,m&&(b+=oc(b,n.indent,f(m)))),iq(t)?(o=!!t.spaceBefore,s=t.commentBefore,l=t.comment):(o=!1,s=null,l=null,t&&"object"==typeof t&&(t=u.createNode(t))),n.implicitKey=!1,!g&&!m&&i$(t)&&(n.indentAtStart=b.length+1),x=!1,!(!h&&p.length>=2&&!n.inFlow&&!g&&iU(t))||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let v=!1,w=oS(t,n,()=>v=!0,()=>x=!0),k=" ";if(m||o||s){if(k=o?"\n":"",s){let e=f(s);k+=` ${ou(e,n.indent)}`}""!==w||n.inFlow?k+=` ${n.indent}`:"\n"===k&&(k="\n\n")}else if(!g&&iz(t)){let e=w[0],r=w.indexOf("\n"),i=-1!==r,o=n.inFlow??t.flow??0===t.items.length;if(i||!o){let t=!1;if(i&&("&"===e||"!"===e)){let n=w.indexOf(" ");"&"===e&&-1!==n&&no=null);nc||s.includes("\n"))&&(u=!0),p.push(s),c=p.length}let{start:f,end:h}=n;if(0===p.length)return f+h;if(!u){let e=p.reduce((e,t)=>e+t.length+2,2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(!u)return`${f}${s}${p.join(" ")}${s}${h}`;{let e=f;for(let t of p)e+=t?` ${o}${i}${t}`:"\n";return`${e} ${i}${h}`}}:function({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:o,onChompKeep:s,onComment:l}){let a;let{indent:u,options:{commentString:c}}=n,p=Object.assign({},n,{indent:o,type:null}),f=!1,h=[];for(let e=0;es=null,()=>f=!0);s&&(l+=oc(l,o,c(s))),f&&s&&(f=!1),h.push(r+l)}if(0===h.length)a=i.start+i.end;else{a=h[0];for(let e=1;e{if("function"==typeof i)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==s||r)&&o.items.push(oN(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))s(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=iJ(e)?e:e&&"object"==typeof e&&"key"in e?new oj(e.key,e.value):new oj(e,e?.value);let r=o_(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i$(r.value)&&on(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>0>i(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=o_(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=o_(this.items,e),r=n?.value;return(!t&&i$(r)?r.value:r)??void 0}has(e){return!!o_(this.items,e)}set(e,t){this.add(new oj(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(r),this.items))oI(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!iJ(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),oL(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let oD={collection:"map",default:!0,nodeClass:oP,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(iR(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>oP.from(e,t,n)};class oF extends ol{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(iP,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=oB(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=oB(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&i$(r)?r.value:r}has(e){let t=oB(e);return"number"==typeof t&&t=0?t:null}let oR={collection:"seq",default:!0,nodeClass:oF,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(iU(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>oF.from(e,t,n)},oJ={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>ok(e,t=Object.assign({actualString:!0},t),n,r)},o$={identify:e=>null==e,createNode:()=>new or(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new or(null),stringify:({source:e},t)=>"string"==typeof e&&o$.test.test(e)?e:t.options.nullStr},oU={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new or("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&oU.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function oz({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);let i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o}let oq={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:oz},oV={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():oz(e)}},oX={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new or(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:oz},oK=e=>"bigint"==typeof e||Number.isInteger(e),oW=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function oH(e,t,n){let{value:r}=e;return oK(r)&&r>=0?n+r.toString(t):oz(e)}let oY={identify:e=>oK(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>oW(e,2,8,n),stringify:e=>oH(e,8,"0o")},oG={identify:oK,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>oW(e,0,10,n),stringify:oz},oQ={identify:e=>oK(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>oW(e,2,16,n),stringify:e=>oH(e,16,"0x")},oZ=[oD,oR,oJ,o$,oU,oY,oG,oQ,oq,oV,oX];function o0(e){return"bigint"==typeof e||Number.isInteger(e)}let o1=({value:e})=>JSON.stringify(e),o2=[oD,oR].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:o1},{identify:e=>null==e,createNode:()=>new or(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:o1},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:o1},{identify:o0,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>o0(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:o1}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)});var o5=n(23022).Buffer;let o3={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof o5)return o5.from(e,"base64");if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");let e=r.items[0]||new oj(new or(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore} ${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment} ${t.comment}`:r.comment}r=e}e.items[n]=iJ(r)?r:new oj(r)}}else t("Expected a sequence for this tag");return e}function o4(e,t,n){let{replacer:r}=n,i=new oF(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let s,l;if("function"==typeof r&&(e=r.call(t,String(o++),e)),Array.isArray(e)){if(2===e.length)s=e[0],l=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)l=e[s=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else s=e;i.items.push(oN(s,l,n))}return i}let o9={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:o6,createNode:o4};class o8 extends oF{constructor(){super(),this.add=oP.prototype.add.bind(this),this.delete=oP.prototype.delete.bind(this),this.get=oP.prototype.get.bind(this),this.has=oP.prototype.has.bind(this),this.set=oP.prototype.set.bind(this),this.tag=o8.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let r,i;if(iJ(e)?(r=i7(e.key,"",t),i=i7(e.value,r,t)):r=i7(e,"",t),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}static from(e,t,n){let r=o4(e,t,n),i=new this;return i.items=r.items,i}}o8.tag="tag:yaml.org,2002:omap";let o7={collection:"seq",identify:e=>e instanceof Map,nodeClass:o8,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=o6(e,t),r=[];for(let{key:e}of n.items)i$(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new o8,n)},createNode:(e,t,n)=>o8.from(e,t,n)};function se({value:e,source:t},n){return t&&(e?st:sn).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let st={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new or(!0),stringify:se},sn={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new or(!1),stringify:se},sr=e=>"bigint"==typeof e||Number.isInteger(e);function si(e,t,n,{intAsBigInt:r}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let o=parseInt(e,n);return"-"===i?-1*o:o}function so(e,t,n){let{value:r}=e;if(sr(r)){let e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return oz(e)}class ss extends oP{constructor(e){super(e),this.tag=ss.tag}add(e){let t;t=iJ(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new oj(e.key,null):new oj(e,null),o_(this.items,t.key)||this.items.push(t)}get(e,t){let n=o_(this.items,e);return!t&&iJ(n)?i$(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=o_(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new oj(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(oN(e,null,n));return i}}ss.tag="tag:yaml.org,2002:set";let sl={collection:"map",identify:e=>e instanceof Set,nodeClass:ss,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>ss.from(e,t,n),resolve(e,t){if(iR(e)){if(e.hasAllNullValues(!0))return Object.assign(new ss,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function sa(e,t){let n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),o=r.replace(/_/g,"").split(":").reduce((e,t)=>e*i(60)+i(t),i(0));return"-"===n?i(-1)*o:o}function su(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return oz(e);let r="";t<0&&(r="-",t*=n(-1));let i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),r+o.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let sc={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>sa(e,n),stringify:su},sp={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>sa(e,!1),stringify:su},sf={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(sf.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,i,o,s,l]=t.map(Number),a=Date.UTC(n,r-1,i,o||0,s||0,l||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=sa(u,!1);30>Math.abs(e)&&(e*=60),a-=6e4*e}return new Date(a)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},sh=[oD,oR,oJ,o$,st,sn,{identify:sr,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>si(e,2,2,n),stringify:e=>so(e,2,"0b")},{identify:sr,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>si(e,1,8,n),stringify:e=>so(e,8,"0")},{identify:sr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>si(e,0,10,n),stringify:oz},{identify:sr,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>si(e,2,16,n),stringify:e=>so(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:oz},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():oz(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new or(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:oz},o3,o7,o9,sl,sc,sp,sf],sd=new Map([["core",oZ],["failsafe",[oD,oR,oJ]],["json",o2],["yaml11",sh],["yaml-1.1",sh]]),sm={binary:o3,bool:oU,float:oX,floatExp:oV,floatNaN:oq,floatTime:sp,int:oG,intHex:oQ,intOct:oY,intTime:sc,map:oD,null:o$,omap:o7,pairs:o9,seq:oR,set:sl,timestamp:sf},sg={"tag:yaml.org,2002:binary":o3,"tag:yaml.org,2002:omap":o7,"tag:yaml.org,2002:pairs":o9,"tag:yaml.org,2002:set":sl,"tag:yaml.org,2002:timestamp":sf};function sy(e,t){let n=sd.get(t);if(!n){if(Array.isArray(e))n=[];else{let e=Array.from(sd.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map(e=>{if("string"!=typeof e)return e;let t=sm[e];if(t)return t;let n=Object.keys(sm).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag "${e}"; use one of ${n}`)})}let sx=(e,t)=>e.keyt.key?1:0;class sb{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:o,toStringDefaults:s}){this.compat=Array.isArray(e)?sy(e,"compat"):e?sy(null,e):null,this.merge=!!n,this.name="string"==typeof i&&i||"core",this.knownTags=r?sg:{},this.tags=sy(t,this.name),this.toStringOptions=s??null,Object.defineProperty(this,iL,{value:oD}),Object.defineProperty(this,i_,{value:oJ}),Object.defineProperty(this,iP,{value:oR}),this.sortMapEntries="function"==typeof o?o:!0===o?sx:null}clone(){let e=Object.create(sb.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class sv{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,iD,{value:ij});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new i3({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){let e=Object.create(sv.prototype,{[iD]:{value:ij}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=iq(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){sw(this.contents)&&this.contents.add(e)}addIn(e,t){sw(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=i4(this);e.anchor=!t||n.has(t)?i9(t||"a",n):t}return new ot(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:a,tag:u}=n??{},{onAnchor:c,setAnchors:p,sourceObjects:f}=function(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i||(i=i4(e));let o=i9(t,i);return i.add(o),o},setAnchors:()=>{for(let e of n){let t=r.get(e);if("object"==typeof t&&t.anchor&&(i$(t.node)||iz(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:r}}(this,o||"a"),h={aliasDuplicateObjects:i??!0,keepUndefined:l??!1,onAnchor:c,onTagObj:a,replacer:r,schema:this.schema,sourceObjects:f},d=oi(e,u,h);return s&&iz(d)&&(d.flow=!0),p(),d}createPair(e,t,n={}){return new oj(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!sw(this.contents)&&this.contents.delete(e)}deleteIn(e){return os(e)?null!=this.contents&&(this.contents=null,!0):!!sw(this.contents)&&this.contents.deleteIn(e)}get(e,t){return iz(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return os(e)?!t&&i$(this.contents)?this.contents.value:this.contents:iz(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!iz(this.contents)&&this.contents.has(e)}hasIn(e){return os(e)?void 0!==this.contents:!!iz(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=oo(this.schema,[e],t):sw(this.contents)&&this.contents.set(e,t)}setIn(e,t){os(e)?this.contents=t:null==this.contents?this.contents=oo(this.schema,Array.from(e),t):sw(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new i3({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new i3({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new sb(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},l=i7(this.contents,t??"",s);if("function"==typeof i)for(let{count:e,res:t}of s.anchors.values())i(t,e);return"function"==typeof o?i8(o,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],r=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");let i=oE(e,t),{commentString:o}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=o(e.commentBefore);n.unshift(ou(t,""))}let s=!1,l=null;if(e.contents){if(iq(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){let t=o(e.contents.commentBefore);n.push(ou(t,""))}i.forceBlockIndent=!!e.comment,l=e.contents.comment}let t=l?void 0:()=>s=!0,a=oS(e.contents,i,()=>l=null,t);l&&(a+=oc(a,"",o(l))),("|"===a[0]||">"===a[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${a}`:n.push(a)}else n.push(oS(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=o(e.comment);t.includes("\n")?(n.push("..."),n.push(ou(t,""))):n.push(`... ${t}`)}else n.push("...")}else{let t=e.comment;t&&s&&(t=t.replace(/^\n+/,"")),t&&((!s||l)&&""!==n[n.length-1]&&n.push(""),n.push(ou(o(t),"")))}return n.join("\n")+"\n"}(this,e)}}function sw(e){if(iz(e))return!0;throw Error("Expected a YAML collection as document contents")}class sk extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class sE extends sk{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class sS extends sk{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let sT=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let o=i-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(o>=60&&s.length>80){let e=Math.min(o-39,s.length-79);s="…"+s.substring(e),o-=e-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,o))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),s=n+s}if(/[^ ]/.test(s)){let e=1,t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-o)));let l=" ".repeat(o)+"^".repeat(e);n.message+=`: ${s} ${l} `}};function sA(e,{flow:t,indicator:n,next:r,offset:i,onError:o,parentIndent:s,startOnNewline:l}){let a=!1,u=l,c=l,p="",f="",h=!1,d=!1,m=null,g=null,y=null,x=null,b=null,v=null,w=null;for(let i of e)switch(d&&("space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&o(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),m&&(u&&"comment"!==i.type&&"newline"!==i.type&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),i.type){case"space":!t&&("doc-start"!==n||r?.type!=="flow-collection")&&i.source.includes(" ")&&(m=i),c=!0;break;case"comment":{c||o(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=i.source.substring(1)||" ";p?p+=f+e:p=e,f="",u=!1;break}case"newline":u?p?p+=i.source:a=!0:f+=i.source,u=!0,h=!0,(g||y)&&(x=i),c=!0;break;case"anchor":g&&o(i,"MULTIPLE_ANCHORS","A node can have at most one anchor"),i.source.endsWith(":")&&o(i.offset+i.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=i,null===w&&(w=i.offset),u=!1,c=!1,d=!0;break;case"tag":y&&o(i,"MULTIPLE_TAGS","A node can have at most one tag"),y=i,null===w&&(w=i.offset),u=!1,c=!1,d=!0;break;case n:(g||y)&&o(i,"BAD_PROP_ORDER",`Anchors and tags must be after the ${i.source} indicator`),v&&o(i,"UNEXPECTED_TOKEN",`Unexpected ${i.source} in ${t??"collection"}`),v=i,u="seq-item-ind"===n||"explicit-key-ind"===n,c=!1;break;case"comma":if(t){b&&o(i,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=i,u=!1,c=!1;break}default:o(i,"UNEXPECTED_TOKEN",`Unexpected ${i.type} token`),u=!1,c=!1}let k=e[e.length-1],E=k?k.offset+k.source.length:i;return d&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(u&&m.indent<=s||r?.type==="block-map"||r?.type==="block-seq")&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:b,found:v,spaceBefore:a,comment:p,hasNewline:h,anchor:g,tag:y,newlineAfterProp:x,end:E,start:w??E}}function sI(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(sI(t.key)||sI(t.value))return!0}return!1;default:return!0}}function sC(e,t,n){if(t?.type==="flow-collection"){let r=t.end[0];r.indent===e&&("]"===r.source||"}"===r.source)&&sI(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function sO(e,t,n){let{uniqueKeys:r}=e.options;if(!1===r)return!1;let i="function"==typeof r?r:(t,n)=>t===n||i$(t)&&i$(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some(e=>i(e.key,n))}let sN="All mapping items must start at the same column";function sj(e,t,n,r){let i="";if(e){let o=!1,s="";for(let l of e){let{source:e,type:a}=l;switch(a){case"space":o=!0;break;case"comment":{n&&!o&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";i?i+=s+t:i=t,s="";break}case"newline":i&&(s+=e),o=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:i,offset:t}}let sL="Block collections are not allowed within flow collections",sM=e=>e&&("block-map"===e.type||"block-seq"===e.type);function s_(e,t,n,r,i,o){let s="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,o){let s=new(o?.nodeClass??oP)(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,a=null;for(let o of r.items){let{start:u,key:c,sep:p,value:f}=o,h=sA(u,{indicator:"explicit-key-ind",next:c??p?.[0],offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0}),d=!h.found;if(d){if(c&&("block-seq"===c.type?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&i(l,"BAD_INDENT",sN)),!h.anchor&&!h.tag&&!p){a=h.end,h.comment&&(s.comment?s.comment+="\n"+h.comment:s.comment=h.comment);continue}(h.newlineAfterProp||sI(c))&&i(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==r.indent&&i(l,"BAD_INDENT",sN);let m=h.end,g=c?e(n,c,h,i):t(n,m,u,null,h,i);n.schema.compat&&sC(r.indent,c,i),sO(n,s.items,g)&&i(m,"DUPLICATE_KEY","Map keys must be unique");let y=sA(p??[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!c||"block-scalar"===c.type});if(l=y.end,y.found){d&&(f?.type!=="block-map"||y.hasNewline||i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&h.start0){let e=sj(h,d,n.options.strict,i);e.comment&&(a.comment?a.comment+="\n"+e.comment:a.comment=e.comment),a.range=[r.offset,d,e.offset]}else a.range=[r.offset,d,d];return a}(e,t,n,r,o),l=s.constructor;return"!"===i||i===l.tagName?s.tag=l.tagName:i&&(s.tag=i),s}function sP(e,t,n){let r=t.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],o=i[0],s=0,l="",a=-1;for(let t=1;t=0;--e){let t=s[e][1];if(""===t||"\r"===t)l=e;else break}if(0===l){let e="+"===i.chomp&&s.length>0?"\n".repeat(Math.max(1,s.length-1)):"",n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:o,comment:i.comment,range:[r,n,n]}}let a=t.indent+i.indent,u=t.offset+i.length,c=0;for(let t=0;ta&&(a=r.length);else{r.length=l;--e)s[e][0].length>a&&(l=e+1);let p="",f="",h=!1;for(let e=0;ea||" "===r[0]?(" "===f?f="\n":h||"\n"!==f||(f="\n\n"),p+=f+t.slice(a)+r,f="\n",h=!0):""===r?"\n"===f?p+="\n":f="\n":(p+=f+r,f=" ",h=!1)}switch(i.chomp){case"-":break;case"+":for(let e=l;en(o+e,t,r);switch(s){case"scalar":r=or.PLAIN,i=function(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),sF(e)}(l,u);break;case"single-quoted-scalar":r=or.QUOTE_SINGLE,("'"!==l[l.length-1]||1===l.length)&&u(l.length,"MISSING_CHAR","Missing closing 'quote"),i=sF(l.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":r=or.QUOTE_DOUBLE,i=function(e,t){let n="";for(let r=1;rt?e.slice(t,r+1):i)}else n+=i}}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(l,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[o,o+l.length,o+l.length]}}let c=o+l.length,p=sj(a,c,t,n);return{value:i,type:r,comment:p.comment,range:[o,c,p.offset]}}function sF(e){let t,n;try{t=RegExp("(.*?)(?r(n,"TAG_RESOLVE_FAILED",e)):null,c=n&&u?function(e,t,n,r,i){if("!"===n)return e[i_];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;o.push(t)}for(let e of o)if(e.test?.test(t))return e;let s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[i_])}(e.schema,o,u,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,i){let o=t.tags.find(e=>e.default&&e.test?.test(n))||t[i_];if(t.compat){let s=t.compat.find(e=>e.default&&e.test?.test(n))??t[i_];if(o.tag!==s.tag){let t=e.tagString(o.tag),n=e.tagString(s.tag);i(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${t} or ${n}`,!0)}}return o}(e,o,t,r):e.schema[i_];try{let s=c.resolve(o,e=>r(n??t,"TAG_RESOLVE_FAILED",e),e.options);i=i$(s)?s:new or(s)}catch(e){r(n??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),i=new or(o)}return i.range=a,i.source=o,s&&(i.type=s),u&&(i.tag=u),c.format&&(i.format=c.format),l&&(i.comment=l),i}let sJ={composeNode:s$,composeEmptyNode:sU};function s$(e,t,n,r){let i;let{spaceBefore:o,comment:s,anchor:l,tag:a}=n,u=!0;switch(t.type){case"alias":i=function({options:e},{offset:t,source:n,end:r},i){let o=new ot(n.substring(1));""===o.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let s=t+n.length,l=sj(r,s,e.strict,i);return o.range=[t,s,l.offset],l.comment&&(o.comment=l.comment),o}(e,t,r),(l||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":i=sR(e,t,a,r),l&&(i.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":i=function(e,t,n,r,i){let o=r.tag,s=o?t.directives.tagName(o.source,e=>i(o,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===n.type){let{anchor:e,newlineAfterProp:t}=r,n=e&&o?e.offset>o.offset?e:o:e??o;n&&(!t||t.offsete.tag===s&&e.collection===l);if(!a){let r=t.schema.knownTags[s];if(!r||r.collection!==l)return r?.collection?i(o,"BAD_COLLECTION_TYPE",`${r.tag} used for ${l} collection, but expects ${r.collection}`,!0):i(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),s_(e,t,n,i,s);t.schema.tags.push(Object.assign({},r,{default:!1})),a=r}let u=s_(e,t,n,i,s,a),c=a.resolve?.(u,e=>i(o,"TAG_RESOLVE_FAILED",e),t.options)??u,p=iq(c)?c:new or(c);return p.range=u.range,p.tag=s,a?.format&&(p.format=a.format),p}(sJ,e,t,n,r),l&&(i.anchor=l.source.substring(1));break;default:{let o="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",o),i=sU(e,t.offset,void 0,null,n,r),u=!1}}return l&&""===i.anchor&&r(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(i.spaceBefore=!0),s&&("scalar"===t.type&&""===t.source?i.comment=s:i.commentBefore=s),e.options.keepSourceTokens&&u&&(i.srcToken=t),i}function sU(e,t,n,r,{spaceBefore:i,comment:o,anchor:s,tag:l,end:a},u){let c=sR(e,{type:"scalar",offset:function(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];n?.type==="space";)e+=n.source.length,n=t[++r];break}}return e}(t,n,r),indent:-1,source:""},l,u);return s&&(c.anchor=s.source.substring(1),""===c.anchor&&u(s,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),o&&(c.comment=o,c.range[2]=a),c}function sz(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function sq(e){let t="",n=!1,r=!1;for(let i=0;i{let i=sz(e);r?this.warnings.push(new sS(i,t,n)):this.errors.push(new sE(i,t,n))},this.directives=new i3({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=sq(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment} ${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(iz(i)&&!i.flow&&i.items.length>0){let e=i.items[0];iJ(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n} ${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n} ${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:sq(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,r)=>{let i=sz(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:n,start:r,value:i,end:o},s){let l=new sv(void 0,Object.assign({_directives:t},e)),a={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=sA(r,{indicator:"doc-start",next:i??o?.[0],offset:n,onError:s,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!u.hasNewline&&s(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?s$(a,i,u,s):sU(a,u.end,r,null,u,s);let c=l.contents.range[2],p=sj(o,c,!1,s);return p.comment&&(l.comment=p.comment),l.range=[n,c,p.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new sE(sz(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new sE(sz(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=sj(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e} ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new sE(sz(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new sv(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}function sX(e,t=!0,n){if(e){let r=(e,t,r)=>{let i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(n)n(i,t,r);else throw new sE([i,i+1],t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return sD(e,t,r);case"block-scalar":return sP({options:{strict:t}},e,r)}}return null}function sK(e,t){let{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:o=-1,type:s="PLAIN"}=t,l=ok({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),a=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(l[0]){case"|":case">":{let e=l.indexOf("\n"),t=l.substring(0,e),n=l.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:o,indent:r,source:t}];return sH(i,a)||i.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:o,indent:r,props:i,source:n}}case'"':return{type:"double-quoted-scalar",offset:o,indent:r,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:o,indent:r,source:l,end:a};default:return{type:"scalar",offset:o,indent:r,source:l,end:a}}}function sW(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:o=!1,type:s}=n,l="indent"in e?e.indent:null;if(r&&"number"==typeof l&&(l+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");s=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}let a=ok({type:s,value:t},{implicitKey:i||null===l,indent:null!==l&&l>0?" ".repeat(l):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":(function(e,t){let n=t.indexOf("\n"),r=t.substring(0,n),i=t.substring(n+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=r,e.source=i}else{let{offset:t}=e,n="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:t,indent:n,source:r}];for(let t of(sH(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:n,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:o,source:i})}})(e,a);break;case'"':sY(e,a,"double-quoted-scalar");break;case"'":sY(e,a,"single-quoted-scalar");break;default:sY(e,a,"scalar")}}function sH(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function sY(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let r=e.props.slice(1),i=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length),r))t.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{let r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}let sG=e=>"type"in e?sQ(e):sZ(e);function sQ(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=sQ(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=sZ(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=sZ(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=sZ(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function sZ({start:e,key:t,sep:n,value:r}){let i="";for(let t of e)i+=t.source;if(t&&(i+=sQ(t)),n)for(let e of n)i+=e.source;return r&&(i+=sQ(r)),i}let s0=Symbol("break visit"),s1=Symbol("skip children"),s2=Symbol("remove item");function s5(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,r){let i=r(n,t);if("symbol"==typeof i)return i;for(let o of["key","value"]){let s=n[o];if(s&&"items"in s){for(let n=0;n{let n=e;for(let[e,r]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},s5.parentCollection=(e,t)=>{let n=s5.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw Error("Parent collection not found")};let s3="\uFEFF",s6="\x02",s4="\x18",s9="\x1f",s8=e=>!!e&&"items"in e,s7=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function le(e){switch(e){case s3:return"";case s6:return"";case s4:return"";case s9:return"";default:return JSON.stringify(e)}}function lt(e){switch(e){case s3:return"byte-order-mark";case s6:return"doc-mode";case s4:return"flow-error-end";case s9:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function ln(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let lr=new Set("0123456789ABCDEFabcdef"),li=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),lo=new Set(",[]{}"),ls=new Set(" ,[]{}\n\r "),ll=e=>!e||ls.has(e);class la{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&ln(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&ethis.indentValue&&!ln(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&ln(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(ll),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader())+(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>ln(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;t:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break t}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let r=t+1;for(e=this.buffer[r];" "===e;)e=this.buffer[++r];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++r];t=r-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);let i=e;for(;" "===r;)r=this.buffer[--e];if("\n"===r&&e>=this.pos&&e+1+n>i)t=e;else break}return yield s9,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e;let t=this.flowLevel>0,n=this.pos-1,r=this.pos-1;for(;e=this.buffer[++r];)if(":"===e){let e=this.buffer[r+1];if(ln(e)||t&&lo.has(e))break;n=r}else if(ln(e)){let i=this.buffer[r+1];if("\r"===e&&("\n"===i?(r+=1,e="\n",i=this.buffer[r+1]):n=r),"#"===i||t&&lo.has(i))break;if("\n"===e){let e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(t&&lo.has(e))break;n=r}return e||this.atEnd?(yield s9,yield*this.pushToIndex(n+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(ll))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(ln(t)||e&&lo.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!ln(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(li.has(t))t=this.buffer[++e];else if("%"===t&&lr.has(this.buffer[e+1])&&lr.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t);let r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class lu{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break t}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function lm(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||lc(t.start,"explicit-key-ind")||lc(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,lf(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class lg{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new la,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=lt(e);if(t){if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&(!e||"doc-end"!==e.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t){if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&lm(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===lp(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey){if(t.sep){if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(lc(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(lf(t.key)&&!lc(t.sep,"newline")){let e=ld(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else if(lc(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=ld(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):lc(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let t=this.startBlockValue(e);if(t){n&&"block-seq"!==t.type&&e.items.push({start:i}),this.stack.push(t);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||lc(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep)){if("map-value-ind"===this.type&&"flow-collection"!==t.type){let n=ld(lh(t));lm(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=ld(lh(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=ld(lh(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function ly(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new lu||null,prettyErrors:t}}function lx(e,t={}){let{lineCounter:n,prettyErrors:r}=ly(t),i=new lg(n?.addNewLine),o=new sV(t),s=Array.from(o.compose(i.parse(e)));if(r&&n)for(let t of s)t.errors.forEach(sT(e,n)),t.warnings.forEach(sT(e,n));return s.length>0?s:Object.assign([],{empty:!0},o.streamInfo())}function lb(e,t={}){let{lineCounter:n,prettyErrors:r}=ly(t),i=new lg(n?.addNewLine),o=new sV(t),s=null;for(let t of o.compose(i.parse(e),!0,e.length))if(s){if("silent"!==s.options.logLevel){s.errors.push(new sE(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else s=t;return r&&n&&(s.errors.forEach(sT(e,n)),s.warnings.forEach(sT(e,n))),s}function lv(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);let i=lb(e,n);if(!i)return null;if(i.warnings.forEach(e=>oA(i.options.logLevel,e)),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function lw(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return new sv(e,r,n).toString(n)}let lk=/^---(?:\r?\n|\r)(?:([\s\S]*?)(?:\r?\n|\r))?---(?:\r?\n|\r|$)/;var lE=n(85924);let lS=function(e){if(null==e)return lA;if("string"==typeof e)return lT(function(t){return t&&t.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n0){for(;++llC(e,"mdxjsEsm")}async function lN(e,{scope:t={},mdxOptions:n={},parseFrontmatter:r=!1}={},i=!1){let o;let s=new A(e);r&&function(e,t){let n=t||{},r=n.strip,i=n.yaml||{},o=String(e),s=lk.exec(o);s?(e.data.matter=h.parse(s[1],i),r&&(o=o.slice(s[0].length),e.value=e.value&&"object"==typeof e.value?new TextEncoder().encode(o):o)):e.data.matter={}}(s,{strip:!0});try{o=await function(e,t){let{file:n,options:r}=function(e,t){let n=e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new A(e),{format:r,...i}=t||{};return{file:n,options:{format:"md"===r||"mdx"===r?r:n.extname&&(i.mdExtensions||N).includes(n.extname)?"md":"mdx",...i}}}(e,t);return(function(e){let t=e||{},n=-1;for(;++n on how to migrate"));let r=nB().use(t4);"md"!==t.format&&r.use(e2);let i=t.remarkRehypeOptions||{};return r.use(iA).use(t.remarkPlugins||[]).use(nj,{...i,allowDangerousHtml:!0,passThrough:[...i.passThrough||[],...iI]}).use(t.rehypePlugins||[]),"md"===t.format&&r.use(iw),r.use(iv,t).use(n2,t).use(re,t),t.jsx||r.use(n8,t),r.use(rb,t).use(t.recmaPlugins||[]),r})(r).process(n)}(s,function(e={},t=!1){let n=e.useDynamicImport??!1,r=[...e.remarkPlugins||[],...n?[]:[lO]];return{...e,remarkPlugins:r,outputFormat:"function-body",providerImportSource:t?void 0:"@mdx-js/react",development:!1}}(n,i))}catch(e){throw function(e,t){let n=e?.position??function(e){let t=e.match(/\d+:\d+(-\d+:\d+)/g);if(t){let[e,n]=t.slice(-1)[0].split("-")[0].split(":");return{start:{line:Number.parseInt(e,10),column:Number.parseInt(n,10)}}}}(e?.message),r=n?(0,lE.rf)(t,{start:{line:n.start.line,column:n.start.column??0}},{linesAbove:2,linesBelow:2}):"",i=Error(`[next-mdx-remote] error compiling MDX: ${e?.message} ${r?"\n"+r+"\n":""} More information: https://mdxjs.com/docs/troubleshooting-mdx`);return i.stack="",i}(e,String(s))}return{compiledSource:String(o),frontmatter:s.data.matter??{},scope:t}}async function lj({source:e,options:t,components:n={}}){let{compiledSource:r,frontmatter:i,scope:o}=await lN(e,t,!0),s=Object.assign({opts:m.jsxRuntime},{frontmatter:i},o),l=Object.keys(s),a=Object.values(s),u=Reflect.construct(Function,l.concat(`${r}`)),c=u.apply(u,a).default;return{content:d.createElement(c,{components:n}),frontmatter:i}}}}]);