1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a1031d-f0fb-7411-8d3c-3a0af544e9e9")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5044],{90048:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(n(30408));function s(t,e){let n=t.src[e-1],r=t.src[e],i=t.src[e+1];if("$"!==r)return{can_open:!1,can_close:!1};let s=!1,l=!1;return"$"!==n&&"\\"!==n&&(void 0===n||o(n)||!a(n))&&(s=!0),"$"!==i&&(void 0==i||o(i)||!a(i))&&(l=!0),{can_open:s,can_close:l}}function o(t){return/^\s$/u.test(t)}function a(t){return/^[\w\d]$/u.test(t)}function l(t,e){let n=t.src[e-1],r=t.src[e],i=t.src[e+1],s=t.src[e+2];return"$"===r&&"$"!==n&&"\\"!==n&&"$"===i&&"$"!==s?{can_open:!0,can_close:!0}:{can_open:!1,can_close:!1}}function c(t,e){let n;if("$"!==t.src[t.pos])return!1;let r=t.tokens.at(-1);if(r?.type==="html_inline"&&/^<\w+.+[^/]>$/.test(r.content))return!1;let i=s(t,t.pos);if(!i.can_open)return e||(t.pending+="$"),t.pos+=1,!0;let o=t.pos+1,a=o;for(;-1!==(a=t.src.indexOf("$",a));){for(n=a-1;"\\"===t.src[n];)n-=1;if((a-n)%2==1)break;a+=1}if(-1===a)return e||(t.pending+="$"),t.pos=o,!0;if(a-o==0)return e||(t.pending+="$$"),t.pos=o+1,!0;if(!(i=s(t,a)).can_close)return e||(t.pending+="$"),t.pos=o,!0;if(!e){let e=t.push("math_inline","math",0);e.markup="$",e.content=t.src.slice(o,a)}return t.pos=a+1,!0}function u(t,e){var n,r,i,s;if("$$"!==t.src.slice(t.pos,t.pos+2))return!1;if(!l(t,t.pos).can_open)return e||(t.pending+="$$"),t.pos+=2,!0;for(r=n=t.pos+2;-1!==(r=t.src.indexOf("$$",r));){for(s=r-1;"\\"===t.src[s];)s-=1;if((r-s)%2==1)break;r+=2}return -1===r?(e||(t.pending+="$$"),t.pos=n):r-n==0?(e||(t.pending+="$$$$"),t.pos=n+2):l(t,r).can_close?(e||((i=t.push("math_block","math",0)).block=!0,i.markup="$$",i.content=t.src.slice(n,r)),t.pos=r+2):(e||(t.pending+="$$"),t.pos=n),!0}function h(t,e){let n;let r=t.src.slice(t.pos);if(!/^\n\\begin/.test(r))return!1;if(t.pos+=1,e)return!0;let i=r.split(/\n/g).slice(1),s=[];t:for(var o=0;o<i.length;++o)for(let t of i[o].matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if("\\begin"===t[1])s.push(t[2].trim());else if("\\end"===t[1]&&(s.pop(),!s.length)){n=o;break t}if(void 0===n)return!1;let a=i.slice(0,n+1).reduce((t,e)=>t+e.length,0)+n+1,l=t.push("math_inline_bare_block","math",0);return l.block=!0,l.markup="$$",l.content=r.slice(1,a),t.pos=t.pos+a,!0}function f(t,e,n,r){let i=t.tokens;for(let t=i.length-1;t>=0;t--){let s=i[t],o=[];if("html_block"===s.type){for(let t of s.content.matchAll(r)){if(!t.groups)continue;let r=t.groups.html_before_math,i=t.groups.math,a=t.groups.html_after_math;r&&o.push({...s,type:"html_block",map:null,content:r}),i&&o.push({...s,type:e,map:null,content:i,markup:n,block:!0,tag:"math"}),a&&o.push({...s,type:"html_block",map:null,content:a})}o.length>0&&i.splice(t,1,...o)}}return!0}function p(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}e.default=function(t,e){let n=e?.katex??i.default,r=e?.enableBareBlocks,s=e?.enableMathBlockInHtml,o=e?.enableMathInlineInHtml,a=e?.enableFencedBlocks;t.inline.ruler.after("escape","math_inline",c),t.inline.ruler.after("escape","math_inline_block",u),r&&t.inline.ruler.before("text","math_inline_bare_block",h),t.block.ruler.after("blockquote","math_block",(t,e,n,i)=>!!(r&&function(t,e,n,r){let i;let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(!t.src.slice(s,o).match(/^\s*\\begin\s*\{([^{}]+)\}/))return!1;if(e>0){let n=t.bMarks[e-1]+t.tShift[e-1],r=t.eMarks[e-1],i=t.src.slice(n,r);if(!/^\s*$/.test(i))return!1}if(r)return!0;let a=[],l=e,c=!1;t:for(;!c&&!(l>=n);l++){let e=t.bMarks[l]+t.tShift[l],n=t.eMarks[l];if(e<n&&t.tShift[l]<t.blkIndent)break;for(let r of t.src.slice(e,n).matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if("\\begin"===r[1])a.push(r[2].trim());else if("\\end"===r[1]&&(a.pop(),!a.length)){i=t.src.slice(e,n),c=!0;break t}}t.line=l+1;let u=t.push("math_block","math",0);return u.block=!0,u.content=(t.getLines(e,l,t.tShift[e],!0)+(i??"")).trim(),u.map=[e,t.line],u.markup="$$",!0}(t,e,n,i))||function(t,e,n,r){let i,s,o,a=!1,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(l+2>c||"$$"!==t.src.slice(l,l+2))return!1;l+=2;let u=t.src.slice(l,c),h=[...u.matchAll(/\$\$/g)];if(1===h.length&&h[0].index===u.length-2)u=u.trim().slice(0,-2),a=!0;else if(h.length>1)return!1;if(r)return!0;for(s=e;!a&&!(++s>=n)&&(!((l=t.bMarks[s]+t.tShift[s])<(c=t.eMarks[s]))||!(t.tShift[s]<t.blkIndent));)"$$"===t.src.slice(l,c).trim().slice(-2)?(o=t.src.slice(0,c).lastIndexOf("$$"),i=t.src.slice(l,o),a=!0):t.src.slice(l,c).trim().includes("$$")&&(o=t.src.slice(0,c).trim().indexOf("$$"),i=t.src.slice(l,o),a=!0);t.line=s+1;let f=t.push("math_block","math",0);return f.block=!0,f.content=(u&&u.trim()?u+"\n":"")+t.getLines(e+1,s,t.tShift[e],!0)+(i&&i.trim()?i:""),f.map=[e,t.line],f.markup="$$",!0}(t,e,n,i),{alt:["paragraph","reference","blockquote","list"]});let l=/(?<html_before_math>[\s\S]*?)\$\$(?<math>[\s\S]+?)\$\$(?<html_after_math>
1(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,d=/(?<html_before_math>[\s\S]*?)\$(?<math>.*?)\$(?<html_after_math>(?:(?!\$.*?\$)[\s\S])*)/gm;s&&t.core.ruler.push("math_block_in_html_block",t=>f(t,"math_block","$$",l)),o&&t.core.ruler.push("math_inline_in_html_block",t=>f(t,"math_inline","$",d));let m=t=>{let r=/\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(t);try{return n.renderToString(t,{...e,displayMode:r})}catch(n){return e?.throwOnError&&console.log(n),`<span class="katex-error" title="${p(t)}">${p(n+"")}</span>`}},g=t=>{try{return`<p class="katex-block">${n.renderToString(t,{...e,displayMode:!0})}</p>`}catch(n){return e?.throwOnError&&console.log(n),`<p class="katex-block katex-error" title="${p(t)}">${p(n+"")}</p>`}},y=(t,e)=>g(t[e].content)+"\n";if(t.renderer.rules.math_inline=(t,e)=>{let n=t[e].content;return m(n.length>2&&"`"===n[0]&&"`"===n[n.length-1]?n.slice(1,-1):n)},t.renderer.rules.math_inline_block=y,t.renderer.rules.math_inline_bare_block=y,t.renderer.rules.math_block=y,a){let e=t.renderer.rules.fence;t.renderer.rules.fence=function(t,n,r,i,s){let o=t[n];return"math"===o.info.trim().toLowerCase()&&a?g(o.content)+"\n":e?.call(this,t,n,r,i,s)||""}}}},838:function(){},15496:function(t,e,n){"use strict";n.d(e,{$O:function(){return o},Ds:function(){return m},FU:function(){return I},ZT:function(){return h},cn:function(){return p},ew:function(){return a},fs:function(){return C},in:function(){return f},kl:function(){return d},my:function(){return M},zv:function(){return u}});let r="npm2url/dist/index.cjs",i={jsdelivr:t=>`https://cdn.jsdelivr.net/npm/${t}`,unpkg:t=>`https://unpkg.com/${t}`};async function s(t,e){let n=await fetch(t,{signal:e});if(!n.ok)throw n;await n.text()}class o{constructor(){this.providers={...i},this.provider="jsdelivr"}async getFastestProvider(t=5e3,e=r){let n=new AbortController,i=0;try{return await new Promise((r,o)=>{Promise.all(Object.entries(this.providers).map(async([t,i])=>{try{await s(i(e),n.signal),r(t)}catch{}})).then(()=>o(Error("All providers failed"))),i=setTimeout(o,t,Error("Timed out"))})}finally{n.abort(),clearTimeout(i)}}async findFastestProvider(t,e){return this.provider=await this.getFastestProvider(t,e),this.provider}setProvider(t,e){e?this.providers[t]=e:delete this.providers[t]}getFullUrl(t,e=this.provider){if(t.includes("://"))return t;let n=this.providers[e];if(!n)throw Error(`Provider ${e} not found`);return n(t)}}new o;class a{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){let e=this.listeners.indexOf(t);e>=0&&this.listeners.splice(e,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(let e of this.listeners)e(...t)}}let l=Math.random().toString(36).slice(2,8),c=0;function u(){return c+=1,`mm-${l}-${c}`}function h(){}function f(t,e){let n=(t,r)=>e(t,()=>{var e;return null==(e=t.children)?void 0:e.map(e=>n(e,t))},r);return n(t)}function p(t,...e){let n=(t||"").split(" ").filter(Boolean);return e.forEach(t=>{t&&0>n.indexOf(t)&&n.push(t)}),n.join(" ")}function d(t,e){return(...n)=>e(t,...n)}function m(t,e){let n={timer:0};function r(){n.timer&&(window.clearTimeout(n.timer),n.timer=0)}function i(){r(),n.args&&(n.result=t(...n.args))}return function(...t){return r(),n.args=t,n.timer=window.setTimeout(i,e),n.result}}let g="http://www.w3.org/1999/xlink",y={show:g,actuate:g,href:g},v=t=>"string"==typeof t||"number"==typeof t,b=t=>(null==t?void 0:t.vtype)===1,k=t=>(null==t?void 0:t.vtype)===2;function w(t){return t.children}let _={isSvg:!1};function A(t,e){Array.isArray(e)||(e=[e]),(e=e.filter(Boolean)).length&&t.append(...e)}let x={className:"class",labelFor:"for"};function S(t,e){return Array.isArray(t)?t.map(t=>S(t,e)).reduce((t,e)=>t.concat(e),[]):E(t,e)}function E(t,e=_){if(null==t||"boolean"==typeof t)return null;if(t instanceof Node)return t;if(k(t)){let{type:n,props:r}=t;if(n===w){let t=document.createDocumentFragment();return r.children&&A(t,S(r.children,e)),t}return E(n(r),e)}if(v(t))return document.createTextNode(`${t}`);if(b(t)){let n;let{type:r,props:i}=t;if(e.isSvg||"svg"!==r||(e=Object.assign({},e,{isSvg:!0})),!function(t,e,n){for(let r in e)if("key"!==r&&"children"!==r&&"ref"!==r){if("dangerouslySetInnerHTML"===r)t.innerHTML=e[r].__html;else if("innerHTML"===r||"textContent"===r||"innerText"===r||"value"===r&&["textarea","select"].includes(t.tagName)){let n=e[r];null!=n&&(t[r]=n)}else r.startsWith("on")?t[r.toLowerCase()]=e[r]:function(t,e,n,r){if(e=x[e]||e,!0===n)t.setAttribute(e,"");else if(!1===n)t.removeAttribute(e);else{let i=r?y[e]:void 0;void 0!==i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}}(t,r,e[r],n.isSvg)}}(n=e.isSvg?document.createElementNS("http://www.w3.org/2000/svg",r):document.createElement(r),i,e),i.children){let t=e;e.isSvg&&"foreignObject"===r&&(t=Object.assign({},t,{isSvg:!1}));
1let s=S(i.children,t);null!=s&&A(n,s)}let{ref:s}=i;return"function"==typeof s&&s(n),n}throw Error("mount: Invalid Vnode!")}function N(...t){return E(function(t,e,...n){return function(t,e){let n;if("string"==typeof t)n=1;else if("function"==typeof t)n=2;else throw Error("Invalid VNode type");return{vtype:n,type:t,props:e}}(t,e=Object.assign({},e,{children:1===n.length?n[0]:n}))}(...t))}let T=function(t){let e={};return function(...n){let r=`${n[0]}`,i=e[r];return i||(i={value:t(...n)},e[r]=i),i.value}}(t=>{document.head.append(N("link",{rel:"preload",as:"script",href:t}))}),O={};async function $(t,e){var n;let r="script"===t.type&&(null==(n=t.data)?void 0:n.src)||"";if(t.loaded||(t.loaded=O[r]),!t.loaded){let n=function(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}();if(t.loaded=n.promise,"script"===t.type&&(document.head.append(N("script",{...t.data,onLoad:()=>n.resolve(),onError:n.reject})),r?O[r]=t.loaded:n.resolve()),"iife"===t.type){let{fn:r,getParams:i}=t.data;r(...(null==i?void 0:i(e))||[]),n.resolve()}}await t.loaded}async function C(t,e){for(let n of(t.forEach(t=>{var e;"script"===t.type&&(null==(e=t.data)?void 0:e.src)&&T(t.data.src)}),e={getMarkmap:()=>window.markmap,...e},t))await $(n,e)}function I(t){return{type:"script",data:{src:t}}}function M(t){return{type:"stylesheet",data:{href:t}}}},84651:function(t,e,n){"use strict";let r;n.d(e,{$T:function(){return nl}});var i=n(15496),s=n(35983),o=n(19983);function a(t){function e(t,e){let n;let r=[],i=e.length;for(let s=0;s<i;s++){let i=e[s];if(43!==i.marker||-1===i.end)continue;let o=e[i.end];(n=t.tokens[i.token]).type="ins_open",n.tag="ins",n.nesting=1,n.markup="++",n.content="",(n=t.tokens[o.token]).type="ins_close",n.tag="ins",n.nesting=-1,n.markup="++",n.content="","text"===t.tokens[o.token-1].type&&"+"===t.tokens[o.token-1].content&&r.push(o.token-1)}for(;r.length;){let e=r.pop(),i=e+1;for(;i<t.tokens.length&&"ins_close"===t.tokens[i].type;)i++;e!==--i&&(n=t.tokens[i],t.tokens[i]=t.tokens[e],t.tokens[e]=n)}}t.inline.ruler.before("emphasis","ins",function(t,e){let n=t.pos,r=t.src.charCodeAt(n);if(e||43!==r)return!1;let i=t.scanDelims(t.pos,!0),s=i.length,o=String.fromCharCode(r);if(s<2)return!1;s%2&&(t.push("text","",0).content=o,s--);for(let e=0;e<s;e+=2)t.push("text","",0).content=o+o,(i.can_open||i.can_close)&&t.delimiters.push({marker:r,length:0,jump:e/2,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0}),t.inline.ruler2.before("emphasis","ins",function(t){let n=t.tokens_meta,r=(t.tokens_meta||[]).length;e(t,t.delimiters);for(let i=0;i<r;i++)n[i]&&n[i].delimiters&&e(t,n[i].delimiters)})}function l(t){function e(t,e){let n=[],r=e.length;for(let i=0;i<r;i++){let r=e[i];if(61!==r.marker||-1===r.end)continue;let s=e[r.end],o=t.tokens[r.token];o.type="mark_open",o.tag="mark",o.nesting=1,o.markup="==",o.content="";let a=t.tokens[s.token];a.type="mark_close",a.tag="mark",a.nesting=-1,a.markup="==",a.content="","text"===t.tokens[s.token-1].type&&"="===t.tokens[s.token-1].content&&n.push(s.token-1)}for(;n.length;){let e=n.pop(),r=e+1;for(;r<t.tokens.length&&"mark_close"===t.tokens[r].type;)r++;
1if(e!==--r){let n=t.tokens[r];t.tokens[r]=t.tokens[e],t.tokens[e]=n}}}t.inline.ruler.before("emphasis","mark",function(t,e){let n=t.pos,r=t.src.charCodeAt(n);if(e||61!==r)return!1;let i=t.scanDelims(t.pos,!0),s=i.length,o=String.fromCharCode(r);if(s<2)return!1;s%2&&(t.push("text","",0).content=o,s--);for(let e=0;e<s;e+=2)t.push("text","",0).content=o+o,(i.can_open||i.can_close)&&t.delimiters.push({marker:r,length:0,jump:e/2,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0}),t.inline.ruler2.before("emphasis","mark",function(t){let n;let r=t.tokens_meta,i=(t.tokens_meta||[]).length;for(e(t,t.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&e(t,r[n].delimiters)})}let c=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function u(t,e){let n=t.posMax,r=t.pos;if(126!==t.src.charCodeAt(r)||e||r+2>=n)return!1;t.pos=r+1;let i=!1;for(;t.pos<n;){if(126===t.src.charCodeAt(t.pos)){i=!0;break}t.md.inline.skipToken(t)}if(!i||r+1===t.pos)return t.pos=r,!1;let s=t.src.slice(r+1,t.pos);return s.match(/(^|[^\\])(\\\\)*\s/)?(t.pos=r,!1):(t.posMax=t.pos,t.pos=r+1,t.push("sub_open","sub",1).markup="~",t.push("text","",0).content=s.replace(c,"$1"),t.push("sub_close","sub",-1).markup="~",t.pos=t.posMax+1,t.posMax=n,!0)}function h(t){t.inline.ruler.after("emphasis","sub",u)}let f=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;
1function p(t,e){let n=t.posMax,r=t.pos;if(94!==t.src.charCodeAt(r)||e||r+2>=n)return!1;t.pos=r+1;let i=!1;for(;t.pos<n;){if(94===t.src.charCodeAt(t.pos)){i=!0;break}t.md.inline.skipToken(t)}if(!i||r+1===t.pos)return t.pos=r,!1;let s=t.src.slice(r+1,t.pos);return s.match(/(^|[^\\])(\\\\)*\s/)?(t.pos=r,!1):(t.posMax=t.pos,t.pos=r+1,t.push("sup_open","sup",1).markup="^",t.push("text","",0).content=s.replace(f,"$1"),t.push("sup_close","sup",-1).markup="^",t.pos=t.posMax+1,t.posMax=n,!0)}function d(t){t.inline.ruler.after("emphasis","sup",p)}let m=Symbol.for("yaml.alias"),g=Symbol.for("yaml.document"),y=Symbol.for("yaml.map"),v=Symbol.for("yaml.pair"),b=Symbol.for("yaml.scalar"),k=Symbol.for("yaml.seq"),w=Symbol.for("yaml.node.type"),_=t=>!!t&&"object"==typeof t&&t[w]===m,A=t=>!!t&&"object"==typeof t&&t[w]===g,x=t=>!!t&&"object"==typeof t&&t[w]===y,S=t=>!!t&&"object"==typeof t&&t[w]===v,E=t=>!!t&&"object"==typeof t&&t[w]===b,N=t=>!!t&&"object"==typeof t&&t[w]===k;function T(t){if(t&&"object"==typeof t)switch(t[w]){case y:case k:return!0}return!1}function O(t){if(t&&"object"==typeof t)switch(t[w]){case m:case y:case b:case k:return!0}return!1}let $=t=>(E(t)||T(t))&&!!t.anchor,C=Symbol("break visit"),I=Symbol("skip children"),M=Symbol("remove node");function L(t,e){let n=K(e);A(t)?B(null,t.contents,n,Object.freeze([t]))===M&&(t.contents=null):B(null,t,n,Object.freeze([]))}function B(t,e,n,r){let i=z(t,e,n,r);if(O(i)||S(i))return P(t,r,i),B(t,i,n,r);if("symbol"!=typeof i){if(T(e)){r=Object.freeze(r.concat(e));for(let t=0;t<e.items.length;++t){let i=B(t,e.items[t],n,r);if("number"==typeof i)t=i-1;else{if(i===C)return C;i===M&&(e.items.splice(t,1),t-=1)}}}else if(S(e)){r=Object.freeze(r.concat(e));let t=B("key",e.key,n,r);if(t===C)return C;t===M&&(e.key=null);let i=B("value",e.value,n,r);if(i===C)return C;i===M&&(e.value=null)}}return i}async function R(t,e){let n=K(e);A(t)?await j(null,t.contents,n,Object.freeze([t]))===M&&(t.contents=null):await j(null,t,n,Object.freeze([]))}async function j(t,e,n,r){let i=await z(t,e,n,r);if(O(i)||S(i))return P(t,r,i),j(t,i,n,r);if("symbol"!=typeof i){if(T(e)){r=Object.freeze(r.concat(e));for(let t=0;t<e.items.length;++t){let i=await j(t,e.items[t],n,r);if("number"==typeof i)t=i-1;else{if(i===C)return C;i===M&&(e.items.splice(t,1),t-=1)}}}else if(S(e)){r=Object.freeze(r.concat(e));let t=await j("key",e.key,n,r);if(t===C)return C;t===M&&(e.key=null);let i=await j("value",e.value,n,r);if(i===C)return C;i===M&&(e.value=null)}}return i}function K(t){return"object"==typeof t&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function z(t,e,n,r){return"function"==typeof n?n(t,e,r):x(e)?n.Map?.(t,e,r):N(e)?n.Seq?.(t,e,r):S(e)?n.Pair?.(t,e,r):E(e)?n.Scalar?.(t,e,r):_(e)?n.Alias?.(t,e,r):void 0}function P(t,e,n){let r=e[e.length-1];if(T(r))r.items[t]=n;else if(S(r))"key"===t?r.key=n:r.value=n;else if(A(r))r.contents=n;else{let t=_(r)?"alias":"scalar";throw Error(`Cannot replace node with ${t} parent`)}}L.BREAK=C,L.SKIP=I,L.REMOVE=M,R.BREAK=C,R.SKIP=I,R.REMOVE=M;let D={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},X=t=>t.replace(/[!,[\]{}]/g,t=>D[t]);class q{constructor(t,e){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},q.defaultYaml,t),this.tags=Object.assign({},q.defaultTags,e)}clone(){let t=new q(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new q(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:q.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},q.defaultTags)}return t}add(t,e){this.atNextDocument&&(this.yaml={explicit:q.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},q.defaultTags),this.atNextDocument=!1);let n=t.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(e(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[t,r]=n;return this.tags[t]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return e(0,"%YAML directive should contain exactly one part"),!1;let[t]=n;if("1.1"===t||"1.2"===t)return this.yaml.version=t,!0;{let n=/^\d+\.\d+$/.test(t);return e(6,`Unsupported YAML version ${t}`,n),!1}}default:return e(0,`Unknown directive ${r}`,!0),!1}}tagName(t,e){if("!"===t)return"!";
1if("!"!==t[0])return e(`Not a valid tag: ${t}`),null;if("<"===t[1]){let n=t.slice(2,-1);return"!"===n||"!!"===n?(e(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(">"!==t[t.length-1]&&e("Verbatim tags must end with a >"),n)}let[,n,r]=t.match(/^(.*!)([^!]*)$/s);r||e(`The ${t} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(t){return e(String(t)),null}return"!"===n?t:(e(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[e,n]of Object.entries(this.tags))if(t.startsWith(n))return e+X(t.substring(n.length));return"!"===t[0]?t:`!<${t}>`}toString(t){let e;let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(t&&r.length>0&&O(t.contents)){let n={};L(t.contents,(t,e)=>{O(e)&&e.tag&&(n[e.tag]=!0)}),e=Object.keys(n)}else e=[];for(let[i,s]of r)("!!"!==i||"tag:yaml.org,2002:"!==s)&&(!t||e.some(t=>t.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join("\n")}}function U(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){let e=JSON.stringify(t);throw Error(`Anchor must not contain whitespace or control characters: ${e}`)}return!0}function F(t){let e=new Set;return L(t,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function V(t,e){for(let n=1;;++n){let r=`${t}${n}`;if(!e.has(r))return r}}function Y(t,e,n,r){if(r&&"object"==typeof r){if(Array.isArray(r))for(let e=0,n=r.length;e<n;++e){let n=r[e],i=Y(t,r,String(e),n);void 0===i?delete r[e]:i!==n&&(r[e]=i)}else if(r instanceof Map)for(let e of Array.from(r.keys())){let n=r.get(e),i=Y(t,r,e,n);void 0===i?r.delete(e):i!==n&&r.set(e,i)}else if(r instanceof Set)for(let e of Array.from(r)){let n=Y(t,r,e,e);void 0===n?r.delete(e):n!==e&&(r.delete(e),r.add(n))}else for(let[e,n]of Object.entries(r)){let i=Y(t,r,e,n);void 0===i?delete r[e]:i!==n&&(r[e]=i)}}return t.call(e,n,r)}function Q(t,e,n){if(Array.isArray(t))return t.map((t,e)=>Q(t,String(e),n));if(t&&"function"==typeof t.toJSON){if(!n||!$(t))return t.toJSON(e,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(t,r),n.onCreate=t=>{r.res=t,delete n.onCreate};let i=t.toJSON(e,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof t||n?.keep?t:Number(t)}q.defaultYaml={explicit:!1,version:"1.2"},q.defaultTags={"!!":"tag:yaml.org,2002:"};class G{constructor(t){Object.defineProperty(this,w,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:e,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!A(t))throw TypeError("A document argument is required");let s={anchors:new Map,doc:t,keep:!0,mapAsMap:!0===e,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=Q(this,"",s);if("function"==typeof r)for(let{count:t,res:e}of s.anchors.values())r(e,t);return"function"==typeof i?Y(i,{"":o},"",o):o}}class H extends G{constructor(t){super(m),this.source=t,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(t,e){let n,r;if(e?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let i of(e?.aliasResolveCache?n=e.aliasResolveCache:(n=[],L(t,{Node:(t,e)=>{(_(e)||$(e))&&n.push(e)}}),e&&(e.aliasResolveCache=n)),n)){if(i===this)break;i.anchor===this.source&&(r=i)}return r}toJSON(t,e){if(!e)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=e,s=this.resolve(r,e);if(!s)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=n.get(s);if(o||(Q(s,null,e),o=n.get(s)),o?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function t(e,n,r){if(_(n)){let t=n.resolve(e),i=r&&t&&r.get(t);return i?i.count*i.aliasCount:0}if(T(n)){let i=0;for(let s of n.items){let n=t(e,s,r);n>i&&(i=n)}return i}return S(n)?Math.max(t(e,n.key,r),t(e,n.value,r)):1}(r,s,n)),o.count*o.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exh
1austion attack");return o.res}toString(t,e,n){let r=`*${this.source}`;if(t){if(U(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(t.implicitKey)return`${r} `}return r}}let W=t=>!t||"function"!=typeof t&&"object"!=typeof t;class J extends G{constructor(t){super(b),this.value=t}toJSON(t,e){return e?.keep?this.value:Q(this.value,t,e)}toString(){return String(this.value)}}function Z(t,e,n){let r;if(A(t)&&(t=t.contents),O(t))return t;if(S(t)){let e=n.schema[y].createNode?.(n.schema,null,n);return e.items.push(t),e}(t instanceof String||t instanceof Number||t instanceof Boolean||"undefined"!=typeof BigInt&&t instanceof BigInt)&&(t=t.valueOf());let{aliasDuplicateObjects:i,onAnchor:s,onTagObj:o,schema:a,sourceObjects:l}=n;if(i&&t&&"object"==typeof t){if(r=l.get(t))return r.anchor??(r.anchor=s(t)),new H(r.anchor);r={anchor:null,node:null},l.set(t,r)}e?.startsWith("!!")&&(e="tag:yaml.org,2002:"+e.slice(2));let c=function(t,e,n){if(e){let t=n.filter(t=>t.tag===e),r=t.find(t=>!t.format)??t[0];if(!r)throw Error(`Tag ${e} not found`);return r}return n.find(e=>e.identify?.(t)&&!e.format)}(t,e,a.tags);if(!c){if(t&&"function"==typeof t.toJSON&&(t=t.toJSON()),!t||"object"!=typeof t){let e=new J(t);return r&&(r.node=e),e}c=t instanceof Map?a[y]:Symbol.iterator in Object(t)?a[k]:a[y]}o&&(o(c),delete n.onTagObj);let u=c?.createNode?c.createNode(n.schema,t,n):"function"==typeof c?.nodeClass?.from?c.nodeClass.from(n.schema,t,n):new J(t);return e?u.tag=e:c.default||(u.tag=c.tag),r&&(r.node=u),u}function tt(t,e,n){let r=n;for(let t=e.length-1;t>=0;--t){let n=e[t];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let t=[];t[n]=r,r=t}else r=new Map([[n,r]])}return Z(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}J.BLOCK_FOLDED="BLOCK_FOLDED",J.BLOCK_LITERAL="BLOCK_LITERAL",J.PLAIN="PLAIN",J.QUOTE_DOUBLE="QUOTE_DOUBLE",J.QUOTE_SINGLE="QUOTE_SINGLE";let te=t=>null==t||"object"==typeof t&&!!t[Symbol.iterator]().next().done;class tn extends G{constructor(t,e){super(t),Object.defineProperty(this,"schema",{value:e,configurable:!0,enumerable:!1,writable:!0})}clone(t){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(e.schema=t),e.items=e.items.map(e=>O(e)||S(e)?e.clone(t):e),this.range&&(e.range=this.range.slice()),e}addIn(t,e){if(te(t))this.add(e);else{let[n,...r]=t,i=this.get(n,!0);if(T(i))i.addIn(r,e);else if(void 0===i&&this.schema)this.set(n,tt(this.schema,r,e));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(t){let[e,...n]=t;if(0===n.length)return this.delete(e);let r=this.get(e,!0);if(T(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn(t,e){let[n,...r]=t,i=this.get(n,!0);return 0===r.length?!e&&E(i)?i.value:i:T(i)?i.getIn(r,e):void 0}hasAllNullValues(t){return this.items.every(e=>{if(!S(e))return!1;let n=e.value;return null==n||t&&E(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){let[e,...n]=t;if(0===n.length)return this.has(e);let r=this.get(e,!0);return!!T(r)&&r.hasIn(n)}setIn(t,e){let[n,...r]=t;if(0===r.length)this.set(n,e);else{let t=this.get(n,!0);
1if(T(t))t.setIn(r,e);else if(void 0===t&&this.schema)this.set(n,tt(this.schema,r,e));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let tr=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function ti(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}let ts=(t,e,n)=>t.endsWith("\n")?ti(n,e):n.includes("\n")?"\n"+ti(n,e):(t.endsWith(" ")?"":" ")+n,to="flow",ta="block",tl="quoted";function tc(t,e,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){let l,c,u;if(!i||i<0)return t;i<s&&(s=0);let h=Math.max(1+s,1+i-e.length);if(t.length<=h)return t;let f=[],p={},d=i-e.length;"number"==typeof r&&(r>i-Math.max(2,s)?f.push(0):d=i-r);let m=!1,g=-1,y=-1,v=-1;for(n===ta&&-1!==(g=tu(t,g,e.length))&&(d=g+h);u=t[g+=1];){if(n===tl&&"\\"===u){switch(y=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}v=g}if("\n"===u)n===ta&&(g=tu(t,g,e.length)),d=g+e.length+h,l=void 0;else{if(" "===u&&c&&" "!==c&&"\n"!==c&&" "!==c){let e=t[g+1];e&&" "!==e&&"\n"!==e&&" "!==e&&(l=g)}if(g>=d){if(l)f.push(l),d=l+h,l=void 0;else if(n===tl){for(;" "===c||" "===c;)c=u,u=t[g+=1],m=!0;let e=g>v+1?g-2:y-1;if(p[e])return t;f.push(e),p[e]=!0,d=e+h,l=void 0}else m=!0}}c=u}if(m&&a&&a(),0===f.length)return t;o&&o();let b=t.slice(0,f[0]);for(let r=0;r<f.length;++r){let i=f[r],s=f[r+1]||t.length;0===i?b=` 2${e}${t.slice(0,s)}`:(n===tl&&p[i]&&(b+=`${t[i]}\\`),b+=` 3${e}${t.slice(i+1,s)}`)}return b}function tu(t,e,n){let r=e,i=e+1,s=t[i];for(;" "===s||" "===s;)if(e<i+n)s=t[++e];else{do s=t[++e];while(s&&"\n"!==s);r=e,s=t[i=e+1]}return r}let th=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),tf=t=>/^(%|---|\.\.\.)/m.test(t);function tp(t,e){let n=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=e,i=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(tf(t)?" ":""),o="",a=0;for(let t=0,e=n[t];e;e=n[++t])if(" "===e&&"\\"===n[t+1]&&"n"===n[t+2]&&(o+=n.slice(a,t)+"\\ ",t+=1,a=t,e="\\"),"\\"===e)switch(n[t+1]){case"u":{o+=n.slice(a,t);let e=n.substr(t+2,4);switch(e){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===e.substr(0,2)?o+="\\x"+e.substr(2):o+=n.substr(t,6)}t+=5,a=t+1}break;case"n":if(r||'"'===n[t+2]||n.length<i)t+=1;else{for(o+=n.slice(a,t)+"\n\n";"\\"===n[t+2]&&"n"===n[t+3]&&'"'!==n[t+4];)o+="\n",t+=2;o+=s," "===n[t+2]&&(o+="\\"),t+=1,a=t+1}break;default:t+=1}return o=a?o+n.slice(a):n,r?o:tc(o,s,tl,th(e,!1))}function td(t,e){if(!1===e.options.singleQuote||e.implicitKey&&t.includes("\n")||/[ \t]\n|\n[ \t]/.test(t))return tp(t,e);let n=e.indent||(tf(t)?" ":""),r="'"+t.replace(/'/g,"''").replace(/\n+/g,`$& 4${n}`)+"'";return e.implicitKey?r:tc(r,n,to,th(e,!1))}function tm(t,e){let n;let{singleQuote:r}=e.options;if(!1===r)n=tp;else{let e=t.includes('"'),i=t.includes("'");n=e&&!i?td:i&&!e?tp:r?td:tp}return n(t,e)}try{r=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{r=/\n+(?!\n|$)/g}function tg({comment:t,type:e,value:n},i,s,o){let a,l,c;let{blockQuote:u,commentString:h,lineWidth:f}=i.options;if(!u||/\n[\t ]+$/.test(n))return tm(n,i);let p=i.indent||(i.forceBlockIndent||tf(n)?" ":""),d="literal"===u||"folded"!==u&&e!==J.BLOCK_FOLDED&&(e===J.BLOCK_LITERAL||!function(t,e,n){if(!e||e<0)return!1;let r=e-n,i=t.length;if(i<=r)return!1;for(let e=0,n=0;e<i;++e)if("\n"===t[e]){if(e-n>r)return!0;if(i-(n=e+1)<=r)return!1}return!0}(n,f,p.length));if(!n)return d?"|\n":">\n";for(l=n.length;l>0;--l){let t=n[l-1];if("\n"!==t&&" "!==t&&" "!==t)break}let m=n.substring(l),g=m.indexOf("\n");-1===g?a="-":n===m||g!==m.length-1?(a="+",o&&o()):a="",m&&(n=n.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(r,`$&${p}`));let y=!1,v=-1;for(c=0;c<n.length;++c){let t=n[c];if(" "===t)y=!0;else if("\n"===t)v=c;else break}let b=n.substring(0,v<c?v+1:c);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${p}`));let k=p?"2":"1",w=(y?k:"")+a;if(t&&(w+=" "+h(t.replace(/ ?[\r\n]+/g," ")),s&&s()),!d){let t=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),r=!1,s=th(i,!0);"folded"!==u&&e!==J.BLOCK_FOLDED&&(s.onOverflow=()=>{r=!0});let o=tc(`${b}${t}${m}`,p,ta,s);if(!r)return`>${w} 5${p}${o}`}return n=n.replace(/\n+/g,`$&${p}`),`|${w} 6${p}${b}${n}${m}`}function ty(t,e,n,r){let{implicitKey:i,inFlow:s}
6=e,o="string"==typeof t.value?t:Object.assign({},t,{value:String(t.value)}),{type:a}=t;a!==J.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=J.QUOTE_DOUBLE);let l=t=>{switch(t){case J.BLOCK_FOLDED:case J.BLOCK_LITERAL:return i||s?tm(o.value,e):tg(o,e,n,r);case J.QUOTE_DOUBLE:return tp(o.value,e);case J.QUOTE_SINGLE:return td(o.value,e);case J.PLAIN:return function(t,e,n,r){let{type:i,value:s}=t,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=e;if(a&&s.includes("\n")||u&&/[[\]{},]/.test(s))return tm(s,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||u||!s.includes("\n")?tm(s,e):tg(t,e,n,r);if(!a&&!u&&i!==J.PLAIN&&s.includes("\n"))return tg(t,e,n,r);if(tf(s)){if(""===l)return e.forceBlockIndent=!0,tg(t,e,n,r);if(a&&l===c)return tm(s,e)}let h=s.replace(/\n+/g,`$& 7${l}`);if(o){let t=t=>t.default&&"tag:yaml.org,2002:str"!==t.tag&&t.test?.test(h),{compat:n,tags:r}=e.doc.schema;if(r.some(t)||n?.some(t))return tm(s,e)}return a?h:tc(h,l,to,th(e,!1))}(o,e,n,r);default:return null}},c=l(a);if(null===c){let{defaultKeyType:t,defaultStringType:n}=e.options,r=i&&t||n;if(null===(c=l(r)))throw Error(`Unsupported default string type ${r}`)}return c}function tv(t,e){let n;let r=Object.assign({blockQuote:!0,commentString:tr,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,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}}function tb(t,e,n,r){let i;if(S(t))return t.toString(e,n,r);if(_(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let s=O(t)?t:e.doc.createNode(t,{onTagObj:t=>i=t});i??(i=function(t,e){let n,r;if(e.tag){let n=t.filter(t=>t.tag===e.tag);if(n.length>0)return n.find(t=>t.format===e.format)??n[0]}if(E(e)){n=e.value;let i=t.filter(t=>t.identify?.(n));if(i.length>1){let t=i.filter(t=>t.test);t.length>0&&(i=t)}r=i.find(t=>t.format===e.format)??i.find(t=>!t.format)}else n=e,r=t.find(t=>t.nodeClass&&n instanceof t.nodeClass);if(!r){let t=n?.constructor?.name??(null===n?"null":typeof n);throw Error(`Tag not resolved for ${t} value`)}return r}(e.doc.schema.tags,s));let o=function(t,e,{anchors:n,doc:r}){if(!r.directives)return"";let i=[],s=(E(t)||T(t))&&t.anchor;s&&U(s)&&(n.add(s),i.push(`&${s}`));let o=t.tag??(e.default?null:e.tag);return o&&i.push(r.directives.tagString(o)),i.join(" ")}(s,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a="function"==typeof i.stringify?i.stringify(s,e,n,r):E(s)?ty(s,e,n,r):s.toString(e,n,r);
7return o?E(s)||"{"===a[0]||"["===a[0]?`${o} ${a}`:`${o} 8${e.indent}${a}`:a}function tk(t,e){("debug"===t||"warn"===t)&&console.warn(e)}let tw={identify:t=>"<<"===t||"symbol"==typeof t&&"<<"===t.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new J(Symbol("<<")),{addToJSMap:tA}),stringify:()=>"<<"},t_=(t,e)=>(tw.identify(e)||E(e)&&(!e.type||e.type===J.PLAIN)&&tw.identify(e.value))&&t?.doc.schema.tags.some(t=>t.tag===tw.tag&&t.default);function tA(t,e,n){let r=tS(t,n);if(N(r))for(let n of r.items)tx(t,e,n);else if(Array.isArray(r))for(let n of r)tx(t,e,n);else tx(t,e,r)}function tx(t,e,n){let r=tS(t,n);if(!x(r))throw Error("Merge sources must be maps or map aliases");for(let[n,i]of r.toJSON(null,t,Map))e instanceof Map?e.has(n)||e.set(n,i):e instanceof Set?e.add(n):Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return e}function tS(t,e){return t&&_(e)?e.resolve(t.doc,t):e}function tE(t,e,{key:n,value:r}){if(O(n)&&n.addToJSMap)n.addToJSMap(t,e,r);else if(t_(t,n))tA(t,e,r);else{let i=Q(n,"",t);if(e instanceof Map)e.set(i,Q(r,i,t));else if(e instanceof Set)e.add(i);else{let s=function(t,e,n){if(null===e)return"";if("object"!=typeof e)return String(e);if(O(t)&&n?.doc){let e=tv(n.doc,{});for(let t of(e.anchors=new Set,n.anchors.keys()))e.anchors.add(t.anchor);e.inFlow=!0,e.inStringifyKey=!0;let r=t.toString(e);if(!n.mapKeyWarned){let t=JSON.stringify(r);t.length>40&&(t=t.substring(0,36)+'..."'),tk(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${t}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(e)}(n,i,t),o=Q(r,s,t);s in e?Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[s]=o}}return e}function tN(t,e,n){return new tT(Z(t,void 0,n),Z(e,void 0,n))}class tT{constructor(t,e=null){Object.defineProperty(this,w,{value:v}),this.key=t,this.value=e}clone(t){let{key:e,value:n}=this;return O(e)&&(e=e.clone(t)),O(n)&&(n=n.clone(t)),new tT(e,n)}toJSON(t,e){let n=e?.mapAsMap?new Map:{};return tE(e,n,this)}toString(t,e,n){return t?.doc?function({key:t,value:e},n,r,i){let s,o,a;let{allNullValues:l,doc:c,indent:u,indentStep:h,options:{commentString:f,indentSeq:p,simpleKeys:d}}=n,m=O(t)&&t.comment||null;if(d){if(m)throw Error("With simple keys, key nodes cannot have comments");if(T(t)||!O(t)&&"object"==typeof t)throw Error("With simple keys, collection cannot be used as a key value")}let g=!d&&(!t||m&&null==e&&!n.inFlow||T(t)||(E(t)?t.type===J.BLOCK_FOLDED||t.type===J.BLOCK_LITERAL:"object"==typeof t));n=Object.assign({},n,{allNullValues:!1,implicitKey:!g&&(d||!l),indent:u+h});let y=!1,v=!1,b=tb(t,n,()=>y=!0,()=>v=!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(l||null==e)return y&&r&&r(),""===b?"?":g?`? ${b}`:b}else if(l&&!d||null==e&&g)return b=`? ${b}`,m&&!y?b+=ts(b,n.indent,f(m)):v&&i&&i(),b;y&&(m=null),g?(m&&(b+=ts(b,n.indent,f(m))),b=`? ${b} 9${u}:`):(b=`${b}:`,m&&(b+=ts(b,n.indent,f(m)))),O(e)?(s=!!e.spaceBefore,o=e.commentBefore,a=e.comment):(s=!1,o=null,a=null,e&&"object"==typeof e&&(e=c.createNode(e))),n.implicitKey=!1,!g&&!m&&E(e)&&(n.indentAtStart=b.length+1),v=!1,!(!p&&h.length>=2&&!n.inFlow&&!g&&N(e))||e.flow||e.tag||e.anchor||(n.indent=n.indent.substring(2));let k=!1,w=tb(e,n,()=>k=!0,()=>v=!0),_=" ";if(m||s||o){if(_=s?"\n":"",o){let t=f(o);_+=` 10${ti(t,n.indent)}`}""!==w||n.inFlow?_+=` 11${n.indent}`:"\n"===_&&a&&(_="\n\n")}else if(!g&&T(e)){let t=w[0],r=w.indexOf("\n"),i=-1!==r,s=n.inFlow??e.flow??0===e.items.length;if(i||!s){let e=!1;if(i&&("&"===t||"!"===t)){let n=w.indexOf(" ");"&"===t&&-1!==n&&n<r&&"!"===w[n+1]&&(n=w.indexOf(" ",n+1)),(-1===n||r<n)&&(e=!0)}e||(_=` 12${n.indent}`)}}else(""===w||"\n"===w[0])&&(_="");return b+=_+w,n.inFlow?k&&r&&r():a&&!k?b+=ts(b,n.indent,f(a)):v&&i&&i(),b}(this,t,e,n):JSON.stringify(this)}}function tO(t,e,n){return(e.inFlow??t.flow?function({items:t},e,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:a}}=e,l=Object.assign({},e,{indent:r+=s,inFlow:!0,type:null}),c=!1,u=0,h=[];for(let n=0;n<t.length;++n){let i=t[n],s=null;if(O(i))i.spaceBefore&&h.push(""),t$(e,h,i.commentBefore,!1),i.comment&&(s=i.comment);else if(S(i)){let t=O(i.key)?i.key:null;t&&(t.spaceBefore&&h.push(""),t$(e,h,t.commentBefore,!1),t.comment&&(c=!0));let n=O(i.value)?i.value:null;n?(n.comment&&(s=n.comment),n.commentBefore&&(c=!0)):null==i.value&&t?.comment&&(s=t.comment)}s&&(c=!0);let o=tb(i,l,()=>s=null);
12c||(c=h.length>u||o.includes("\n")),n<t.length-1?o+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(c||(c=h.reduce((t,e)=>t+e.length+2,2)+(o.length+2)>e.options.lineWidth)),c&&(o+=",")),s&&(o+=ts(o,r,a(s))),h.push(o),u=h.length}let{start:f,end:p}=n;if(0===h.length)return f+p;if(!c){let t=h.reduce((t,e)=>t+e.length+2,2);c=e.options.lineWidth>0&&t>e.options.lineWidth}if(!c)return`${f}${o}${h.join(" ")}${o}${p}`;{let t=f;for(let e of h)t+=e?` 13${s}${i}${e}`:"\n";return`${t} 14${i}${p}`}}:function({comment:t,items:e},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:a}){let l;let{indent:c,options:{commentString:u}}=n,h=Object.assign({},n,{indent:s,type:null}),f=!1,p=[];for(let t=0;t<e.length;++t){let i=e[t],o=null;if(O(i))!f&&i.spaceBefore&&p.push(""),t$(n,p,i.commentBefore,f),i.comment&&(o=i.comment);else if(S(i)){let t=O(i.key)?i.key:null;t&&(!f&&t.spaceBefore&&p.push(""),t$(n,p,t.commentBefore,f))}f=!1;let a=tb(i,h,()=>o=null,()=>f=!0);o&&(a+=ts(a,s,u(o))),f&&o&&(f=!1),p.push(r+a)}if(0===p.length)l=i.start+i.end;else{l=p[0];for(let t=1;t<p.length;++t){let e=p[t];l+=e?` 15${c}${e}`:"\n"}}return t?(l+="\n"+ti(u(t),c),a&&a()):f&&o&&o(),l})(t,e,n)}function t$({indent:t,options:{commentString:e}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){let i=ti(e(r),t);n.push(i.trimStart())}}function tC(t,e){let n=E(e)?e.value:e;for(let r of t)if(S(r)&&(r.key===e||r.key===n||E(r.key)&&r.key.value===n))return r}class tI extends tn{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(y,t),this.items=[]}static from(t,e,n){let{keepUndefined:r,replacer:i}=n,s=new this(t),o=(t,o)=>{if("function"==typeof i)o=i.call(e,t,o);else if(Array.isArray(i)&&!i.includes(t))return;(void 0!==o||r)&&s.items.push(tN(t,o,n))};if(e instanceof Map)for(let[t,n]of e)o(t,n);else if(e&&"object"==typeof e)for(let t of Object.keys(e))o(t,e[t]);return"function"==typeof t.sortMapEntries&&s.items.sort(t.sortMapEntries),s}add(t,e){let n;
15n=S(t)?t:t&&"object"==typeof t&&"key"in t?new tT(t.key,t.value):new tT(t,t?.value);let r=tC(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!e)throw Error(`Key ${n.key} already set`);E(r.value)&&W(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let t=this.items.findIndex(t=>0>i(n,t));-1===t?this.items.push(n):this.items.splice(t,0,n)}else this.items.push(n)}delete(t){let e=tC(this.items,t);return!!e&&this.items.splice(this.items.indexOf(e),1).length>0}get(t,e){let n=tC(this.items,t),r=n?.value;return(!e&&E(r)?r.value:r)??void 0}has(t){return!!tC(this.items,t)}set(t,e){this.add(new tT(t,e),!0)}toJSON(t,e,n){let r=n?new n:e?.mapAsMap?new Map:{};for(let t of(e?.onCreate&&e.onCreate(r),this.items))tE(e,r,t);return r}toString(t,e,n){if(!t)return JSON.stringify(this);for(let t of this.items)if(!S(t))throw Error(`Map items must all be pairs; found ${JSON.stringify(t)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),tO(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:e})}}let tM={collection:"map",default:!0,nodeClass:tI,tag:"tag:yaml.org,2002:map",resolve:(t,e)=>(x(t)||e("Expected a mapping for this tag"),t),createNode:(t,e,n)=>tI.from(t,e,n)};class tL extends tn{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(k,t),this.items=[]}add(t){this.items.push(t)}delete(t){let e=tB(t);return"number"==typeof e&&this.items.splice(e,1).length>0}get(t,e){let n=tB(t);if("number"!=typeof n)return;let r=this.items[n];return!e&&E(r)?r.value:r}has(t){let e=tB(t);return"number"==typeof e&&e<this.items.length}set(t,e){let n=tB(t);if("number"!=typeof n)throw Error(`Expected a valid index, not ${t}.`);let r=this.items[n];E(r)&&W(e)?r.value=e:this.items[n]=e}toJSON(t,e){let n=[];e?.onCreate&&e.onCreate(n);let r=0;for(let t of this.items)n.push(Q(t,String(r++),e));return n}toString(t,e,n){return t?tO(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:n,onComment:e}):JSON.stringify(this)}static from(t,e,n){let{replacer:r}=n,i=new this(t);if(e&&Symbol.iterator in Object(e)){let t=0;for(let s of e){if("function"==typeof r){let n=e instanceof Set?s:String(t++);s=r.call(e,n,s)}i.items.push(Z(s,void 0,n))}}return i}}function tB(t){let e=E(t)?t.value:t;return e&&"string"==typeof e&&(e=Number(e)),"number"==typeof e&&Number.isInteger(e)&&e>=0?e:null}let tR={collection:"seq",default:!0,nodeClass:tL,tag:"tag:yaml.org,2002:seq",resolve:(t,e)=>(N(t)||e("Expected a sequence for this tag"),t),createNode:(t,e,n)=>tL.from(t,e,n)},tj={identify:t=>"string"==typeof t,default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:(t,e,n,r)=>ty(t,e=Object.assign({actualString:!0},e),n,r)},tK={identify:t=>null==t,createNode:()=>new J(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new J(null),stringify:({source:t},e)=>"string"==typeof t&&tK.test.test(t)?t:e.options.nullStr},tz={identify:t=>"boolean"==typeof t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new J("t"===t[0]||"T"===t[0]),stringify:({source:t,value:e},n)=>t&&tz.test.test(t)&&e===("t"===t[0]||"T"===t[0])?t:e?n.options.trueStr:n.options.falseStr};function tP({format:t,minFractionDigits:e,tag:n,value:r}){if("bigint"==typeof r)return String(r);let i="number"==typeof r?r:Number(r);
15if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=Object.is(r,-0)?"-0":JSON.stringify(r);if(!t&&e&&(!n||"tag:yaml.org,2002:float"===n)&&/^-?\d/.test(s)&&!s.includes("e")){let t=s.indexOf(".");t<0&&(t=s.length,s+=".");let n=e-(s.length-t-1);for(;n-- >0;)s+="0"}return s}let tD={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>"nan"===t.slice(-3).toLowerCase()?NaN:"-"===t[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:tP},tX={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():tP(t)}},tq={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){let e=new J(parseFloat(t)),n=t.indexOf(".");return -1!==n&&"0"===t[t.length-1]&&(e.minFractionDigits=t.length-n-1),e},stringify:tP},tU=t=>"bigint"==typeof t||Number.isInteger(t),tF=(t,e,n,{intAsBigInt:r})=>r?BigInt(t):parseInt(t.substring(e),n);function tV(t,e,n){let{value:r}=t;return tU(r)&&r>=0?n+r.toString(e):tP(t)}let tY={identify:t=>tU(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>tF(t,2,8,n),stringify:t=>tV(t,8,"0o")},tQ={identify:tU,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>tF(t,0,10,n),stringify:tP},tG={identify:t=>tU(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>tF(t,2,16,n),stringify:t=>tV(t,16,"0x")},tH=[tM,tR,tj,tK,tz,tY,tQ,tG,tD,tX,tq];function tW(t){return"bigint"==typeof t||Number.isInteger(t)}let tJ=({value:t})=>JSON.stringify(t),tZ=[tM,tR].concat([{identify:t=>"string"==typeof t,default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:tJ},{identify:t=>null==t,createNode:()=>new J(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:tJ},{identify:t=>"boolean"==typeof t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>"true"===t,stringify:tJ},{identify:tW,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>tW(t)?t.toString():JSON.stringify(t)},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:tJ}],{default:!0,tag:"",test:/^/,resolve:(t,e)=>(e(`Unresolved plain scalar ${JSON.stringify(t)}`),t)}),t0={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if("function"!=typeof atob)return e("This environment does not support reading binary tags; either Buffer or atob is required"),t;{let e=atob(t.replace(/[\n\r]/g,"")),n=new Uint8Array(e.length);for(let t=0;t<e.length;++t)n[t]=e.charCodeAt(t);return n}},stringify({comment:t,type:e,value:n},r,i,s){let o;if(!n)return"";if("function"==typeof btoa){let t="";for(let e=0;e<n.length;++e)t+=String.fromCharCode(n[e]);o=btoa(t)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=J.BLOCK_LITERAL),e!==J.QUOTE_DOUBLE){let t=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(o.length/t),i=Array(n);for(let e=0,r=0;e<n;++e,r+=t)i[e]=o.substr(r,t);o=i.join(e===J.BLOCK_LITERAL?"\n":" ")}return ty({comment:t,type:e,value:o},r,i,s)}};function t1(t,e){if(N(t))for(let n=0;n<t.items.length;++n){let r=t.items[n];if(!S(r)){if(x(r)){r.items.length>1&&e("Each pair must have its own sequence indicator");let t=r.items[0]||new tT(new J(null));if(r.commentBefore&&(t.key.commentBefore=t.key.commentBefore?`${r.commentBefore} 16${t.key.commentBefore}`:r.commentBefore),r.comment){let e=t.value??t.key;e.comment=e.comment?`${r.comment} 17${e.comment}`:r.comment}r=t}t.items[n]=S(r)?r:new tT(r)}}else e("Expected a sequence for this tag");return t}function t2(t,e,n){let{replacer:r}=n,i=new tL(t);i.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let t of e){let o,a;if("function"==typeof r&&(t=r.call(e,String(s++),t)),Array.isArray(t)){if(2===t.length)o=t[0],a=t[1];else throw TypeError(`Expected [key, value] tuple: ${t}`)}else if(t&&t instanceof Object){let e=Object.keys(t);if(1===e.length)a=t[o=e[0]];else throw TypeError(`Expected tuple with one key, not ${e.length} keys`)}else o=t;i.items.push(tN(o,a,n))}return i}let t6={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:t1,createNode:t2};class t3 extends tL{constructor(){super(),this.add=tI.prototype.add.bind(this),this.delete=tI.prototype.delete.bind(this),this.get=tI.prototype.get.bind(this),this.has=tI.prototype.has.bind(this),this.set=tI.prototype.set.bind(this),this.tag=t3.tag}toJSON(t,e){if(!e)return super.toJSON(t);let n=new Map;for(let t of(e?.onCreate&&e.onCreate(n),this.items)){let r,i;if(S(t)?(r=Q(t.key,"",e),i=Q(t.value,r,e)):r=Q(t,"",e),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}static from(t,e,n){let r=t2(t,e,n),i=new this;return i.items=r.items,i}}t3.tag="tag:yaml.org,2002:omap";let t4={collection:"seq",identify:t=>t instanceof Map,nodeClass:t3,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){let n=t1(t,e),r=[];for(let{key:t}of n.items)E(t)&&(r.includes(t.value)?e(`Ordered maps must not include duplicate keys: ${t.value}`):r.push(t.value));return Object.assign(new t3,n)},createNode:(t,e,n)=>t3.from(t,e,n)};function t9({value:t,source:e},n){return e&&(t?t8:t5).test.test(e)?e:t?n.options.trueStr:n.options.falseStr}let t8={identify:t=>!0===t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new J(!0),stringify:t9},t5={identify:t=>!1===t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new J(!1),stringify:t9},t7=t=>"bigint"==typeof t||Number.isInteger(t);function et(t,e,n,{intAsBigInt:r}){let i=t[0];if(("-"===i||"+"===i)&&(e+=1),t=t.substring(e).replace(/_/g,""),r){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`}let e=BigInt(t);return"-"===i?BigInt(-1)*e:e}let s=parseInt(t,n);return"-"===i?-1*s:s}function ee(t,e,n){let{value:r}=t;if(t7(r)){let t=r.toString(e);return r<0?"-"+n+t.substr(1):n+t}return tP(t)}class en extends tI{constructor(t){super(t),this.tag=en.tag}add(t){let e;
17e=S(t)?t:t&&"object"==typeof t&&"key"in t&&"value"in t&&null===t.value?new tT(t.key,null):new tT(t,null),tC(this.items,e.key)||this.items.push(e)}get(t,e){let n=tC(this.items,t);return!e&&S(n)?E(n.key)?n.key.value:n.key:n}set(t,e){if("boolean"!=typeof e)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof e}`);let n=tC(this.items,t);n&&!e?this.items.splice(this.items.indexOf(n),1):!n&&e&&this.items.push(new tT(t))}toJSON(t,e){return super.toJSON(t,e,Set)}toString(t,e,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),e,n);throw Error("Set items must all have null values")}static from(t,e,n){let{replacer:r}=n,i=new this(t);if(e&&Symbol.iterator in Object(e))for(let t of e)"function"==typeof r&&(t=r.call(e,t,t)),i.items.push(tN(t,null,n));return i}}en.tag="tag:yaml.org,2002:set";let er={collection:"map",identify:t=>t instanceof Set,nodeClass:en,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,n)=>en.from(t,e,n),resolve(t,e){if(x(t)){if(t.hasAllNullValues(!0))return Object.assign(new en,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function ei(t,e){let n=t[0],r="-"===n||"+"===n?t.substring(1):t,i=t=>e?BigInt(t):Number(t),s=r.replace(/_/g,"").split(":").reduce((t,e)=>t*i(60)+i(e),i(0));return"-"===n?i(-1)*s:s}function es(t){let{value:e}=t,n=t=>t;if("bigint"==typeof e)n=t=>BigInt(t);else if(isNaN(e)||!isFinite(e))return tP(t);let r="";e<0&&(r="-",e*=n(-1));let i=n(60),s=[e%i];return e<60?s.unshift(0):(e=(e-s[0])/i,s.unshift(e%i),e>=60&&(e=(e-s[0])/i,s.unshift(e))),r+s.map(t=>String(t).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let eo={identify:t=>"bigint"==typeof t||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>ei(t,n),stringify:es},ea={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>ei(t,!1),stringify:es},el={identify:t=>t 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(t){let e=t.match(el.test);if(!e)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,i,s,o,a]=e.map(Number),l=Date.UTC(n,r-1,i,s||0,o||0,a||0,e[7]?Number((e[7]+"00").substr(1,3)):0),c=e[8];if(c&&"Z"!==c){let t=ei(c,!1);30>Math.abs(t)&&(t*=60),l-=6e4*t}return new Date(l)},stringify:({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},ec=[tM,tR,tj,tK,t8,t5,{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>et(t,2,2,n),stringify:t=>ee(t,2,"0b")},{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>et(t,1,8,n),stringify:t=>ee(t,8,"0")},{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>et(t,0,10,n),stringify:tP},{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>et(t,2,16,n),stringify:t=>ee(t,16,"0x")},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>"nan"===t.slice(-3).toLowerCase()?NaN:"-"===t[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:tP},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():tP(t)}},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){let e=new J(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(-1!==n){let r=t.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(e.minFractionDigits=r.length)}return e},stringify:tP},t0,tw,t4,t6,er,eo,ea,el],eu=new Map([["core",tH],["failsafe",[tM,tR,tj]],["json",tZ],["yaml11",ec],["yaml-1.1",ec]]),eh={binary:t0,bool:tz,float:tq,floatExp:tX,floatNaN:tD,floatTime:ea,int:tQ,intHex:tG,intOct:tY,intTime:eo,map:tM,merge:tw,null:tK,omap:t4,pairs:t6,seq:tR,set:er,timestamp:el},ef={"tag:yaml.org,2002:binary":t0,"tag:yaml.org,2002:merge":tw,"tag:yaml.org,2002:omap":t4,"tag:yaml.org,2002:pairs":t6,"tag:yaml.org,2002:set":er,"tag:yaml.org,2002:timestamp":el};function ep(t,e,n){let r=eu.get(e);if(r&&!t)return n&&!r.includes(tw)?r.concat(tw):r.slice();let i=r;if(!i){if(Array.isArray(t))i=[];else{let t=Array.from(eu.keys()).filter(t=>"yaml11"!==t).map(t=>JSON.stringify(t)).join(", ");throw Error(`Unknown schema "${e}"; use one of ${t} or define customTags array`)}}if(Array.isArray(t))for(let e of t)i=i.concat(e);else"function"==typeof t&&(i=t(i.slice()));return n&&(i=i.concat(tw)),i.reduce((t,e)=>{let n="string"==typeof e?eh[e]:e;if(!n){let t=JSON.stringify(e),n=Object.keys(eh).map(t=>JSON.stringify(t)).join(", ");throw Error(`Unknown custom tag ${t}; use one of ${n}`)}return t.includes(n)||t.push(n),t},[])}let ed=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;class em{constructor({compat:t,customTags:e,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:s,toStringDefaults:o}){this.compat=Array.isArray(t)?ep(t,"compat"):t?ep(null,t):null,this.name="string"==typeof i&&i||"core",this.knownTags=r?ef:{},this.tags=ep(e,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,y,{value:tM}),Object.defineProperty(this,b,{value:tj}),Object.defineProperty(this,k,{value:tR}),this.sortMapEntries="function"==typeof s?s:!0===s?ed:null}clone(){let t=Object.create(em.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}class eg{constructor(t,e,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,w,{value:g});let r=null;"function"==typeof e||Array.isArray(e)?r=e:void 0===n&&e&&(n=e,e=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:s}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new q({version:s}),this.setSchema(s,n),this.contents=void 0===t?null:this.createNode(t,r,n)}clone(){let t=Object.create(eg.prototype,{[w]:{value:g}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=O(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){ey(this.contents)&&this.contents.add(t)}addIn(t,e){ey(this.contents)&&this.contents.addIn(t,e)}createAlias(t,e){if(!t.anchor){let n=F(this);t.anchor=!e||n.has(e)?V(e||"a",n):e}return new H(t.anchor)}createNode(t,e,n){let r;if("function"==typeof e)t=e.call({"":t},"",t),r=e;else if(Array.isArray(e)){let t=e.filter(t=>"number"==typeof t||t instanceof String||t instanceof Number).map(String);t.length>0&&(e=e.concat(t)),r=e}else void 0===n&&e&&(n=e,e=void 0);let{aliasDuplicateObjects:i,anchorPrefix:s,flow:o,keepUndefined:a,onTagObj:l,tag:c}=n??{},{onAnchor:u,setAnchors:h,sourceObjects:f}=function(t,e){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??(i=F(t));let s=V(e,i);return i.add(s),s},setAnchors:()=>{for(let t of n){let e=r.get(t);if("object"==typeof e&&e.anchor&&(E(e.node)||T(e.node)))e.node.anchor=e.anchor;else{let e=Error("Failed to resolve repeated object (this should not happen)");throw e.source=t,e}}},sourceObjects:r}}(this,s||"a"),p={aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:u,onTagObj:l,replacer:r,
17schema:this.schema,sourceObjects:f},d=Z(t,c,p);return o&&T(d)&&(d.flow=!0),h(),d}createPair(t,e,n={}){return new tT(this.createNode(t,null,n),this.createNode(e,null,n))}delete(t){return!!ey(this.contents)&&this.contents.delete(t)}deleteIn(t){return te(t)?null!=this.contents&&(this.contents=null,!0):!!ey(this.contents)&&this.contents.deleteIn(t)}get(t,e){return T(this.contents)?this.contents.get(t,e):void 0}getIn(t,e){return te(t)?!e&&E(this.contents)?this.contents.value:this.contents:T(this.contents)?this.contents.getIn(t,e):void 0}has(t){return!!T(this.contents)&&this.contents.has(t)}hasIn(t){return te(t)?void 0!==this.contents:!!T(this.contents)&&this.contents.hasIn(t)}set(t,e){null==this.contents?this.contents=tt(this.schema,[t],e):ey(this.contents)&&this.contents.set(t,e)}setIn(t,e){te(t)?this.contents=e:null==this.contents?this.contents=tt(this.schema,Array.from(t),e):ey(this.contents)&&this.contents.setIn(t,e)}setSchema(t,e={}){let n;switch("number"==typeof t&&(t=String(t)),t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new q({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new q({version:t}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let e=JSON.stringify(t);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${e}`)}}if(e.schema instanceof Object)this.schema=e.schema;else if(n)this.schema=new em(Object.assign(n,e));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:e,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){let o={anchors:new Map,doc:this,keep:!t,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=Q(this.contents,e??"",o);if("function"==typeof i)for(let{count:t,res:e}of o.anchors.values())i(e,t);return"function"==typeof s?Y(s,{"":a},"",a):a}toJSON(t,e){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:e})}toString(t={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||0>=Number(t.indent))){let e=JSON.stringify(t.indent);throw Error(`"indent" option must be a positive integer, not ${e}`)}return function(t,e){let n=[],r=!0===e.directives;if(!1!==e.directives&&t.directives){let e=t.directives.toString(t);e?(n.push(e),r=!0):t.directives.docStart&&(r=!0)}r&&n.push("---");let i=tv(t,e),{commentString:s}=i.options;if(t.commentBefore){1!==n.length&&n.unshift("");let e=s(t.commentBefore);n.unshift(ti(e,""))}let o=!1,a=null;if(t.contents){if(O(t.contents)){if(t.contents.spaceBefore&&r&&n.push(""),t.contents.commentBefore){let e=s(t.contents.commentBefore);n.push(ti(e,""))}i.forceBlockIndent=!!t.comment,a=t.contents.comment}let e=a?void 0:()=>o=!0,l=tb(t.contents,i,()=>a=null,e);a&&(l+=ts(l,"",s(a))),("|"===l[0]||">"===l[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(tb(t.contents,i));if(t.directives?.docEnd){if(t.comment){let e=s(t.comment);e.includes("\n")?(n.push("..."),n.push(ti(e,""))):n.push(`... ${e}`)}else n.push("...")}else{let e=t.comment;e&&o&&(e=e.replace(/^\n+/,"")),e&&((!o||a)&&""!==n[n.length-1]&&n.push(""),n.push(ti(s(e),"")))}return n.join("\n")+"\n"}(this,t)}}function ey(t){if(T(t))return!0;throw Error("Expected a YAML collection as document contents")}class ev extends Error{constructor(t,e,n,r){super(),this.name=t,this.code=n,this.message=r,this.pos=e}}class eb extends ev{constructor(t,e,n){super("YAMLParseError",t,e,n)}}class ek extends ev{constructor(t,e,n){super("YAMLWarning",t,e,n)}}let ew=(t,e)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(t=>e.linePos(t));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=t.substring(e.lineStarts[r-1],e.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){let t=Math.min(s-39,o.length-79);o="…"+o.substring(t),s-=t-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,s))){let n=t.substring(e.lineStarts[r-2],e.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let t=1,e=n.linePos[1];e?.line===r&&e.col>
17i&&(t=Math.max(1,Math.min(e.col-i,80-s)));let a=" ".repeat(s)+"^".repeat(t);n.message+=`: 18 19${o} 20${a} 21`}};function e_(t,{flow:e,indicator:n,next:r,offset:i,onError:s,parentIndent:o,startOnNewline:a}){let l=!1,c=a,u=a,h="",f="",p=!1,d=!1,m=null,g=null,y=null,v=null,b=null,k=null,w=null;for(let i of t)switch(d&&("space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&s(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),m&&(c&&"comment"!==i.type&&"newline"!==i.type&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),i.type){case"space":!e&&("doc-start"!==n||r?.type!=="flow-collection")&&i.source.includes(" ")&&(m=i),u=!0;break;case"comment":{u||s(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=i.source.substring(1)||" ";h?h+=f+t:h=t,f="",c=!1;break}case"newline":c?h?h+=i.source:k&&"seq-item-ind"===n||(l=!0):f+=i.source,c=!0,p=!0,(g||y)&&(v=i),u=!0;break;case"anchor":g&&s(i,"MULTIPLE_ANCHORS","A node can have at most one anchor"),i.source.endsWith(":")&&s(i.offset+i.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=i,w??(w=i.offset),c=!1,u=!1,d=!0;break;case"tag":y&&s(i,"MULTIPLE_TAGS","A node can have at most one tag"),y=i,w??(w=i.offset),c=!1,u=!1,d=!0;break;case n:(g||y)&&s(i,"BAD_PROP_ORDER",`Anchors and tags must be after the ${i.source} indicator`),k&&s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.source} in ${e??"collection"}`),k=i,c="seq-item-ind"===n||"explicit-key-ind"===n,u=!1;break;case"comma":if(e){b&&s(i,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),b=i,c=!1,u=!1;break}default:s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.type} token`),c=!1,u=!1}let _=t[t.length-1],A=_?_.offset+_.source.length:i;return d&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(c&&m.indent<=o||r?.type==="block-map"||r?.type==="block-seq")&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:b,foun
21d:k,spaceBefore:l,comment:h,hasNewline:p,anchor:g,tag:y,newlineAfterProp:v,end:A,start:w??A}}function eA(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end){for(let e of t.end)if("newline"===e.type)return!0}return!1;case"flow-collection":for(let e of t.items){for(let t of e.start)if("newline"===t.type)return!0;if(e.sep){for(let t of e.sep)if("newline"===t.type)return!0}if(eA(e.key)||eA(e.value))return!0}return!1;default:return!0}}function ex(t,e,n){if(e?.type==="flow-collection"){let r=e.end[0];r.indent===t&&("]"===r.source||"}"===r.source)&&eA(e)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function eS(t,e,n){let{uniqueKeys:r}=t.options;if(!1===r)return!1;let i="function"==typeof r?r:(t,e)=>t===e||E(t)&&E(e)&&t.value===e.value;return e.some(t=>i(t.key,n))}let eE="All mapping items must start at the same column";function eN(t,e,n,r){let i="";if(t){let s=!1,o="";for(let a of t){let{source:t,type:l}=a;switch(l){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=t.substring(1)||" ";i?i+=o+e:i=e,o="";break}case"newline":i&&(o+=t),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}e+=t.length}}return{comment:i,offset:e}}let eT="Block collections are not allowed within flow collections",eO=t=>t&&("block-map"===t.type||"block-seq"===t.type);function e$(t,e,n,r,i,s){let o="block-map"===n.type?function({composeNode:t,composeEmptyNode:e},n,r,i,s){let o=new(s?.nodeClass??tI)(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,l=null;for(let s of r.items){let{start:c,key:u,sep:h,value:f}=s,p=e_(c,{indicator:"explicit-key-ind",next:u??h?.[0],offset:a,onError:i,parentIndent:r.indent,startOnNewline:!0}),d=!p.found;if(d){if(u&&("block-seq"===u.type?i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in u&&u.indent!==r.indent&&i(a,"BAD_INDENT",eE)),!p.anchor&&!p.tag&&!h){l=p.end,p.comment&&(o.comment?o.comment+="\n"+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||eA(u))&&i(u??c[c.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else p.found?.indent!==r.indent&&i(a,"BAD_INDENT",eE);n.atKey=!0;let m=p.end,g=u?t(n,u,p,i):e(n,m,c,null,p,i);n.schema.compat&&ex(r.indent,u,i),n.atKey=!1,eS(n,o.items,g)&&i(m,"DUPLICATE_KEY","Map keys must be unique");let y=e_(h??[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||"block-scalar"===u.type});if(a=y.end,y.found){d&&(f?.type!=="block-map"||y.hasNewline||i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&p.start<y.found.offset-1024&&i(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=f?t(n,f,y,i):e(n,a,h,null,y,i);n.schema.compat&&ex(r.indent,f,i),a=l.range[2];let c=new tT(g,l);n.options.keepSourceTokens&&(c.srcToken=s),o.items.push(c)}else{d&&i(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);let t=new tT(g);n.options.keepSourceTokens&&(t.srcToken=s),o.items.push(t)}}return l&&l<a&&i(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,a,l??a],o}(t,e,n,r,s):"block-seq"===n.type?function({composeNode:t,composeEmptyNode:e},n,r,i,s){let o=new(s?.nodeClass??tL)(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let a=r.offset,l=null;for(let{start:s,value:c}of r.items){let u=e_(s,{indicator:"seq-item-ind",next:c,offset:a,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||c)c?.type==="block-seq"?i(u.end,"BAD_INDENT","All sequence items must start at the same column"):i(a,"MISSING_CHAR","Sequence item without - indicator");else{l=u.end,u.comment&&(o.comment=u.comment);continue}}let h=c?t(n,c,u,i):e(n,u.end,s,null,u,i);n.schema.compat&&ex(r.indent,c,i),a=h.range[2],o.items.push(h)}return o.range=[r.offset,a,l??a],o}(t,e,n,r,s):function({composeNode:t,composeEmptyNode:e},n,r,i,s){let o="{"===r.start.source,a=o?"flow map":"flow sequence",l=new(s?.nodeClass??
21(o?tI:tL))(n.schema);l.flow=!0;let c=n.atRoot;c&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let u=r.offset+r.start.source.length;for(let s=0;s<r.items.length;++s){let c=r.items[s],{start:h,key:f,sep:p,value:d}=c,m=e_(h,{flow:a,indicator:"explicit-key-ind",next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!m.found){if(!m.anchor&&!m.tag&&!p&&!d){0===s&&m.comma?i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):s<r.items.length-1&&i(m.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),m.comment&&(l.comment?l.comment+="\n"+m.comment:l.comment=m.comment),u=m.end;continue}!o&&n.options.strict&&eA(f)&&i(f,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===s)m.comma&&i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(m.comma||i(m.start,"MISSING_CHAR",`Missing , between ${a} items`),m.comment){let t="";e:for(let e of h)switch(e.type){case"comma":case"space":break;case"comment":t=e.source.substring(1);break e;default:break e}if(t){let e=l.items[l.items.length-1];S(e)&&(e=e.value??e.key),e.comment?e.comment+="\n"+t:e.comment=t,m.comment=m.comment.substring(t.length+1)}}if(o||p||m.found){n.atKey=!0;let s=m.end,g=f?t(n,f,m,i):e(n,s,h,null,m,i);eO(f)&&i(g.range,"BLOCK_IN_FLOW",eT),n.atKey=!1;let y=e_(p??[],{flow:a,indicator:"map-value-ind",next:d,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(y.found){if(!o&&!m.found&&n.options.strict){if(p)for(let t of p){if(t===y.found)break;if("newline"===t.type){i(t,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}m.start<y.found.offset-1024&&i(y.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else d&&("source"in d&&d.source?.[0]===":"?i(d,"MISSING_CHAR",`Missing space after : in ${a}`):i(y.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let v=d?t(n,d,y,i):y.found?e(n,y.end,p,null,y,i):null;v?eO(d)&&i(v.range,"BLOCK_IN_FLOW",eT):y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);let b=new tT(g,v);if(n.options.keepSourceTokens&&(b.srcToken=c),o)eS(n,l.items,g)&&i(s,"DUPLICATE_KEY","Map keys must be unique"),l.items.push(b);else{let t=new tI(n.schema);t.flow=!0,t.items.push(b);let e=(v??g).range;t.range=[g.range[0],e[1],e[2]],l.items.push(t)}u=v?v.range[2]:y.end}else{let r=d?t(n,d,m,i):e(n,m.end,p,null,m,i);l.items.push(r),u=r.range[2],eO(d)&&i(r.range,"BLOCK_IN_FLOW",eT)}}let h=o?"}":"]",[f,...p]=r.end,d=u;if(f?.source===h)d=f.offset+f.source.length;else{let t=a[0].toUpperCase()+a.substring(1),e=c?`${t} must end with a ${h}`:`${t} in block collection must be sufficiently indented and end with a ${h}`;i(u,c?"MISSING_CHAR":"BAD_INDENT",e),f&&1!==f.source.length&&p.unshift(f)}if(p.length>0){let t=eN(p,d,n.options.strict,i);t.comment&&(l.comment?l.comment+="\n"+t.comment:l.comment=t.comment),l.range=[r.offset,d,t.offset]}else l.range=[r.offset,d,d];return l}(t,e,n,r,s),a=o.constructor;return"!"===i||i===a.tagName?o.tag=a.tagName:i&&(o.tag=i),o}function eC(t){let e,n;try{e=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),n=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=e.exec(t);if(!r)return t;let i=r[1],s=" ",o=e.lastIndex;for(n.lastIndex=o;r=n.exec(t);)""===r[1]?"\n"===s?i+=s:s="\n":(i+=s+r[1],s=" "),o=n.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(t),i+s+(r?.[1]??"")}let eI={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function eM(t,e,n,r){let i,s;let{value:o,type:a,comment:l,range:c}="block-scalar"===e.type?function(t,e,n){let r=e.offset,i=function({offset:t,props:e},n,r){if("block-scalar-header"!==e[0].type)return r(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=e[0],s=i[0],o=0,a="",l=-1;for(let e=1;e<i.length;++e){let n=i[e];if(a||"-"!==n&&"+"!==n){let r=Number(n);!o&&r?o=r:-1===l&&(l=t+e)}else a=n}-1!==l&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",h=i.length;for(let t=1;t<e.length;++t){let i=e[t];switch(i.type){case"space":c=!0;case"newline":h+=i.source.length;break;case"comment":n&&!c&&r(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=i.source.length,u=i.source.substring(1);break;case"error":r(i,"UNEXPECTED_TOKEN",i.message),h+=i.source.length;break;default:{let t=`Unexpected token in block scalar header: ${i.type}`;r(i,"UNEXPECTED_TOKEN",t);let e=i.source;e&&"string"==typeof e&&(h+=e.length)}}}return{mode:s,indent:o,chomp:a,comment:u,length:h}}(e,t.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};let s=">"===i.mode?J.BLOCK_FOLDED:J.BLOCK_LITERAL,o=e.source?function(t){let e=t.split(/\n( *)/),n=e[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let t=1;t<e.length;t+=2)i.push([e[t],e[t+1]]);return i}(e.source):[],a=o.length;for(let t=o.length-1;t>=0;--t){let e=o[t][1];if(""===e||"\r"===e)a=t;else break}if(0===a){let t="+"===i.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"",n=r+i.length;return e.source&&(n+=e.source.length),{value:t,type:s,comment:i.comment,range:[r,n,n]}}let l=e.indent+i.indent,c=e.offset+i.length,u=0;for(let e=0;e<a;++e){let[r,s]=o[e];if(""===s||"\r"===s)0===i.indent&&r.length>l&&(l=r.length);else{r.length<l&&n(c+r.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===i.indent&&(l=r.length),u=e,0!==l||t.atRoot||n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=r.length+s.length+1}for(let t=o.length-1;t>=a;--t)o[t][0].length>l&&(a=t+1);let h="",f="",p=!1;for(let t=0;t<u;++t)h+=o[t][0].slice(l)+"\n";for(let t=u;t<a;++t){let[e,r]=o[t];c+=e.length+r.length+1;let a="\r"===r[r.length-1];if(a&&(r=r.slice(0,-1)),r&&e.length<l){let t=i.indent?"explicit indentation indicator":"first line",s=`Block scalar lines must not be less indented than their ${t}`;n(c-r.length-(a?2:1),"BAD_INDENT",s),e=""}s===J.BLOCK_LITERAL?(h+=f+e.slice(l)+r,f="\n"):e.length>l||" "===r[0]?(" "===f?f="\n":p||"\n"!==f||(f="\n\n"),h+=f+e.slice(l)+r,f="\n",p=!0):""===r?"\n"===f?h+="\n":f="\n":(h+=f+r,f=" ",p=!1)}switch(i.chomp){case"-":break;case"+":for(let t=a;t<o.length;++t)h+="\n"+o[t][0].slice(l);"\n"!==h[h.length-1]&&(h+="\n");break;default:h+="\n"}let d=r+i.length+e.source.length;return{value:h,type:s,comment:i.comment,range:[r,d,d]}}(t,e,r):function(t,e,n){let r,i;let{offset:s,type:o,source:a,end:l}=t,c=(t,e,r)=>n(s+t,e,r);switch(o){case"scalar":r=J.PLAIN,i=function(t,e){let n="";switch(t[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 ${t[0]}`;break;case"@":case"`":n=`reserved character ${t[0]}`}return n&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),eC(t)}(a,c);break;case"single-quoted-scalar":r=J.QUOTE_SINGLE,("'"!==a[a.length-1]||1===a.length)&&c(a.length,"MISSING_CHAR","Missing closing 'quote"),i=eC(a.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":r=J.QUOTE_DOUBLE,i=function(t,e){let n="";for(let r=1;r<t.length-1;++r){let i=t[r];
21if("\r"!==i||"\n"!==t[r+1]){if("\n"===i){let{fold:e,offset:i}=function(t,e){let n="",r=t[e+1];for(;(" "===r||" "===r||"\n"===r||"\r"===r)&&("\r"!==r||"\n"===t[e+2]);)"\n"===r&&(n+="\n"),e+=1,r=t[e+1];return n||(n=" "),{fold:n,offset:e}}(t,r);n+=e,r=i}else if("\\"===i){let i=t[++r],s=eI[i];if(s)n+=s;else if("\n"===i)for(i=t[r+1];" "===i||" "===i;)i=t[++r+1];else if("\r"===i&&"\n"===t[r+1])for(i=t[++r+1];" "===i||" "===i;)i=t[++r+1];else if("x"===i||"u"===i||"U"===i){let s="x"===i?2:"u"===i?4:8;n+=function(t,e,n,r){let i=t.substr(e,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(s)}catch{let i=t.substr(e-2,n+2);return r(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}}(t,r+1,s,e),r+=s}else{let i=t.substr(r-1,2);e(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),n+=i}}else if(" "===i||" "===i){let e=r,s=t[r+1];for(;" "===s||" "===s;)s=t[++r+1];"\n"===s||"\r"===s&&"\n"===t[r+2]||(n+=r>e?t.slice(e,r+1):i)}else n+=i}}return('"'!==t[t.length-1]||1===t.length)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),n}(a,c);break;default:return n(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[s,s+a.length,s+a.length]}}let u=s+a.length,h=eN(l,u,e,n);return{value:i,type:r,comment:h.comment,range:[s,u,h.offset]}}(e,t.options.strict,r),u=n?t.directives.tagName(n.source,t=>r(n,"TAG_RESOLVE_FAILED",t)):null;i=t.options.stringKeys&&t.atKey?t.schema[b]:u?function(t,e,n,r,i){if("!"===n)return t[b];let s=[];for(let e of t.tags)if(!e.collection&&e.tag===n){if(!e.default||!e.test)return e;s.push(e)}for(let t of s)if(t.test?.test(e))return t;let o=t.knownTags[n];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),t[b])}(t.schema,o,u,n,r):"scalar"===e.type?function({atKey:t,directives:e,schema:n},r,i,s){let o=n.tags.find(e=>(!0===e.default||t&&"key"===e.default)&&e.test?.test(r))||n[b];if(n.compat){let t=n.compat.find(t=>t.default&&t.test?.test(r))??n[b];if(o.tag!==t.tag){let n=e.tagString(o.tag),r=e.tagString(t.tag);s(i,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${n} or ${r}`,!0)}}return o}(t,o,e,r):t.schema[b];try{let a=i.resolve(o,t=>r(n??e,"TAG_RESOLVE_FAILED",t),t.options);s=E(a)?a:new J(a)}catch(t){r(n??e,"TAG_RESOLVE_FAILED",t instanceof Error?t.message:String(t)),s=new J(o)}return s.range=c,s.source=o,a&&(s.type=a),u&&(s.tag=u),i.format&&(s.format=i.format),l&&(s.comment=l),s}let eL={composeNode:eB,composeEmptyNode:eR};function eB(t,e,n,r){let i;let s=t.atKey,{spaceBefore:o,comment:a,anchor:l,tag:c}=n,u=!0;switch(e.type){case"alias":i=function({options:t},{offset:e,source:n,end:r},i){let s=new H(n.substring(1));""===s.source&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(e+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+n.length,a=eN(r,o,t.strict,i);return s.range=[e,o,a.offset],a.comment&&(s.comment=a.comment),s}(t,e,r),(l||c)&&r(e,"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=eM(t,e,c,r),l&&(i.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{i=function(t,e,n,r,i){let s=r.tag,o=s?e.directives.tagName(s.source,t=>i(s,"TAG_RESOLVE_FAILED",t)):null;if("block-seq"===n.type){let{anchor:t,newlineAfterProp:e}=r,n=t&&s?t.offset>s.offset?t:s:t??s;n&&(!e||e.offset<n.offset)&&i(n,"MISSING_CHAR","Missing newline after block sequence props")}let a="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!s||!o||"!"===o||o===tI.tagName&&"map"===a||o===tL.tagName&&"seq"===a)return e$(t,e,n,i,o);let l=e.schema.tags.find(t=>t.tag===o&&t.collection===a);if(!l){let r=e.schema.knownTags[o];if(r?.collection!==a)return r?i(s,"BAD_COLLECTION_TYPE",`${r.tag} used for ${a} collection, but expects ${r.collection??"scalar"}`,!0):i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),e$(t,e,n,i,o);e.schema.tags.push(Object.assign({},r,{default:!1})),l=r}let c=e$(t,e,n,i,o,l),u=l.resolve?.(c,t=>i(s,"TAG_RESOLVE_FAILED",t),e.options)??c,h=O(u)?u:new J(u);return h.range=c.range,h.tag=o,l?.format&&(h.format=l.format),h}(eL,t,e,n,r),l&&(i.anchor=l.source.substring(1))}catch(t){r(e,"RESOURCE_EXHAUSTION",t instanceof Error?t.message:String(t))}break;default:{let t="error"===e.type?e.message:`Unsupported token (type: ${e.type})`;r(e,"UNEXPECTED_TOKEN",t),u=!1}}return i??(i=eR(t,e.offset,void 0,null,n,r)),l&&""===i.anchor&&r(l,"BAD_ALIAS","Anchor cannot be an empty string"),s&&t.options.stringKeys&&(!E(i)||"string"!=typeof i.value||i.tag&&"tag:yaml.org,2002:str"!==i.tag)&&r(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(i.spaceBefore=!0),a&&("scalar"===e.type&&""===e.source?i.comment=a:i.commentBefore=a),t.options.keepSourceTokens&&u&&(i.srcToken=e),i}function eR(t,e,n,r,{spaceBefore:i,comment:s,anchor:o,tag:a,end:l},c){let u=eM(t,{type:"scalar",offset:function(t,e,n){if(e){n??(n=e.length);for(let r=n-1;r>=0;--r){let n=e[r];switch(n.type){case"space":case"comment":case"newline":t-=n.source.length;continue}for(n=e[++r];n?.type==="space";)t+=n.source.length,n=e[++r];break}}return t}(e,n,r),indent:-1,source:""},a,c);return o&&(u.anchor=o.source.substring(1),""===u.anchor&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(u.spaceBefore=!0),s&&(u.comment=s,u.range[2]=l),u}function ej(t){if("number"==typeof t)return[t,t+1];if(Array.isArray(t))return 2===t.length?t:[t[0],t[1]];let{offset:e,source:n}=t;
21return[e,e+("string"==typeof n?n.length:1)]}function eK(t){let e="",n=!1,r=!1;for(let i=0;i<t.length;++i){let s=t[i];switch(s[0]){case"#":e+=(""===e?"":r?"\n\n":"\n")+(s.substring(1)||" "),n=!0,r=!1;break;case"%":t[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:e,afterEmptyLine:r}}class ez{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,e,n,r)=>{let i=ej(t);r?this.warnings.push(new ek(i,e,n)):this.errors.push(new eb(i,e,n))},this.directives=new q({version:t.version||"1.2"}),this.options=t}decorate(t,e){let{comment:n,afterEmptyLine:r}=eK(this.prelude);if(n){let i=t.contents;if(e)t.comment=t.comment?`${t.comment} 22${n}`:n;else if(r||t.directives.docStart||!i)t.commentBefore=n;else if(T(i)&&!i.flow&&i.items.length>0){let t=i.items[0];S(t)&&(t=t.key);let e=t.commentBefore;t.commentBefore=e?`${n} 23${e}`:n}else{let t=i.commentBefore;i.commentBefore=t?`${n} 24${t}`:n}}if(e){for(let e=0;e<this.errors.length;++e)t.errors.push(this.errors[e]);for(let e=0;e<this.warnings.length;++e)t.warnings.push(this.warnings[e])}else t.errors=this.errors,t.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:eK(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,e=!1,n=-1){for(let e of t)yield*this.next(e);yield*this.end(e,n)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(e,n,r)=>{let i=ej(t);i[0]+=e,this.onError(i,"BAD_DIRECTIVE",n,r)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let e=function(t,e,{offset:n,start:r,value:i,end:s},o){let a=new eg(void 0,Object.assign({_directives:e},t)),l={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},c=e_(r,{indicator:"doc-start",next:i??s?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});c.found&&(a.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!c.hasNewline&&o(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=i?eB(l,i,c,o):eR(l,c.end,r,null,c,o);let u=a.contents.range[2],h=eN(s,u,!1,o);return h.comment&&(a.comment=h.comment),a.range=[n,u,h.offset],a}(this.options,this.directives,t,this.onError);this.atDirectives&&!e.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(e,!1),this.doc&&(yield this.doc),this.doc=e,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let e=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new eb(ej(t),"UNEXPECTED_TOKEN",e);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new eb(ej(t),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let e=eN(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),e.comment){let t=this.doc.comment;this.doc.comment=t?`${t} 25${e.comment}`:e.comment}this.doc.range[2]=e.offset;break}default:this.errors.push(new eb(ej(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,e=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let t=new eg(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(e,"MISSING_CHAR","Missing directives-end indicator line"),t.range=[0,e,e],this.decorate(t,!1),yield t}}}let eP=Symbol("break visit"),eD=Symbol("skip children"),eX=Symbol("remove item");function eq(t,e){"type"in t&&"document"===t.type&&(t={start:t.start,value:t.value}),function t(e,n,r){let i=r(n,e);if("symbol"==typeof i)return i;for(let s of["key","value"]){let o=n[s];if(o&&"items"in o){for(let n=0;n<o.items.length;++n){let i=t(Object.freeze(e.concat([[s,n]])),o.items[n],r);if("number"==typeof i)n=i-1;else{if(i===eP)return eP;i===eX&&(o.items.splice(n,1),n-=1)}}"function"==typeof i&&"key"===s&&(i=i(n,e))}}return"function"==typeof i?i(n,e):i}(Object.freeze([]),t,e)}function eU(t){switch(t){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}eq.BREAK=eP,eq.SKIP=eD,eq.REMOVE=eX,eq.itemAtPath=(t,e)=>{let n=t;for(let[t,r]of e){let e=n?.[t];if(!e||!("items"in e))return;n=e.items[r]}return n},eq.parentCollection=(t,e)=>{let n=eq.itemAtPath(t,e.slice(0,-1)),r=e[e.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw Error("Parent collection not found")};let eF=new Set("0123456789ABCDEFabcdef"),eV=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),eY=new Set(",[]{}"),eQ=new Set(" ,[]{}\n\r "),eG=t=>!t||eQ.has(t);class eH{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,e=!1){if(t){if("string"!=typeof t)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!e;let n=this.next??"stream";for(;n&&(e||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,e=this.buffer[t];for(;" "===e||" "===e;)e=this.buffer[++t];return!e||"#"===e||"\n"===e||"\r"===e&&"\n"===this.buffer[t+1]}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let e=this.buffer[t];if(this.indentNext>0){let n=0;for(;" "===e;)e=this.buffer[++n+t];if("\r"===e){let e=this.buffer[n+t+1];if("\n"===e||!e&&!this.atEnd)return t+n+1}return"\n"!==e&&!(n>=this.indentNext)&&(e||this.atEnd)?-1:t+n}if("-"===e||"."===e){let e=this.buffer.substr(t,3);if(("---"===e||"..."===e)&&eU(this.buffer[t+3]))return -1}return t}getLine(){let t=this.lineEndPos;return(("number"!=typeof t||-1!==t&&t<this.pos)&&(t=this.buffer.indexOf("\n",this.pos),this.lineEndPos=t),-1===t)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[t-1]&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(null===t)return this.setNext("stream");if("\uFEFF"===t[0]&&(yield*this.pushCount(1),t=t.substring(1)),"%"===t[0]){let e=t.length,n=t.indexOf("#");for(;-1!==n;){let r=t[n-1];if(" "===r||" "===r){e=n-1;break}n=t.indexOf("#",n+1)}for(;;){let n=t[e-1];if(" "===n||" "===n)e-=1;else break}let r=(yield*this.pushCount(e))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){let e=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-e),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if("-"===t||"."===t){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if(("---"===t||"..."===t)&&eU(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===t?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!eU(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,e]=this.peek(2);if(!e&&!this.atEnd)return this.setNext("block-start");if(("-"===t||"?"===t||":"===t)&&eU(e)){let t=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=t,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(null===t)return this.setNext("doc");let e=yield*this.pushIndicators();switch(t[e]){case"#":yield*this.pushCount(t.length-e);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";
25case"*":return yield*this.pushUntil(eG),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return e+=(yield*this.parseBlockScalarHeader())+(yield*this.pushSpaces(!0)),yield*this.pushCount(t.length-e),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,e;let n=-1;do(t=yield*this.pushNewline())>0?(e=yield*this.pushSpaces(!1),this.indentValue=n=e):e=0,e+=yield*this.pushSpaces(!0);while(t+e>0);let r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&eU(r[3]))&&!(n===this.indentNext-1&&1===this.flowLevel&&("]"===r[0]||"}"===r[0])))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let i=0;for(;","===r[i];)i+=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(r[i+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(eG),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let t=this.charAt(1);if(this.flowKey||eU(t)||","===t)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),e=this.buffer.indexOf(t,this.pos+1);if("'"===t)for(;-1!==e&&"'"===this.buffer[e+1];)e=this.buffer.indexOf("'",e+2);else for(;-1!==e;){let t=0;for(;"\\"===this.buffer[e-1-t];)t+=1;if(t%2==0)break;e=this.buffer.indexOf('"',e+1)}let n=this.buffer.substring(0,e),r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){let t=this.continueScalar(r+1);if(-1===t)break;r=n.indexOf("\n",t)}-1!==r&&(e=r-("\r"===n[r-1]?2:1))}if(-1===e){if(!this.atEnd)return this.setNext("quoted-scalar");e=this.buffer.length}return yield*this.pushToIndex(e+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let e=this.buffer[++t];if("+"===e)this.blockScalarKeep=!0;else if(e>"0"&&e<="9")this.blockScalarIndent=Number(e)-1;else if("-"!==e)break}return yield*this.pushUntil(t=>eU(t)||"#"===t)}*parseBlockScalar(){let t,e=this.pos-1,n=0;e:for(let r=this.pos;t=this.buffer[r];++r)switch(t){case" ":n+=1;break;case"\n":e=r,n=0;break;case"\r":{let t=this.buffer[r+1];if(!t&&!this.atEnd)return this.setNext("block-scalar");if("\n"===t)break}default:break e}if(!t&&!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 t=this.continueScalar(e+1);if(-1===t)break;e=this.buffer.indexOf("\n",t)}while(-1!==e);if(-1===e){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let r=e+1;for(t=this.buffer[r];" "===t;)t=this.buffer[++r];if(" "===t){for(;" "===t||" "===t||"\r"===t||"\n"===t;)t=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)for(;;){let t=e-1,r=this.buffer[t];"\r"===r&&(r=this.buffer[--t]);let i=t;for(;" "===r;)r=this.buffer[--t];if("\n"===r&&t>=this.pos&&t+1+n>i)e=t;else break}return yield"\x1f",yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t;let e=this.flowLevel>0,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){let t=this.buffer[r+1];if(eU(t)||e&&eY.has(t))break;n=r}else if(eU(t)){let i=this.buffer[r+1];if("\r"===t&&("\n"===i?(r+=1,t="\n",i=this.buffer[r+1]):n=r),"#"===i||e&&eY.has(i))break;if("\n"===t){let t=this.continueScalar(r+1);if(-1===t)break;r=Math.max(r,t-2)}}else{if(e&&eY.has(t))break;n=r}return t||this.atEnd?(yield"\x1f",yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,e){let n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(e&&(yield""),0)}*pushIndicators(){let t=0;for(;;){switch(this.charAt(0)){case"!":t+=(yield*this.pushTag())+(yield*this.pushSpaces(!0));continue;case"&":t+=(yield*this.pushUntil(eG))+(yield*this.pushSpaces(!0));continue;case"-":case"?":case":":{let e=this.flowLevel>0,n=this.charAt(1);if(eU(n)||e&&eY.has(n)){e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,t+=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));continue}}}break}return t}*pushTag(){if("<"===this.charAt(1)){let t=this.pos+2,e=this.buffer[t];for(;!eU(e)&&">"!==e;)e=this.buffer[++t];return yield*this.pushToIndex(">"===e?t+1:t,!1)}{let t=this.pos+1,e=this.buffer[t];for(;e;)if(eV.has(e))e=this.buffer[++t];else if("%"===e&&eF.has(this.buffer[t+1])&&eF.has(this.buffer[t+2]))e=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return"\n"===t?yield*this.pushCount(1):"\r"===t&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(t){let e,n=this.pos-1;do e=this.buffer[++n];while(" "===e||t&&" "===e);let r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(t){let e=this.pos,n=this.buffer[e];for(;!t(n);)n=this.buffer[++e];return yield*this.pushToIndex(e,!1)}}function eW(t,e){for(let n=0;n<t.length;++n)if(t[n].type===e)return!0;return!1}function eJ(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return -1}function eZ(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function e0(t){switch(t.type){case"document":return t.start;case"block-map":{let e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function e1(t){if(0===t.length)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}function e2(t,e){if(e.length<1e5)Array.prototype.push.apply(t,e);else for(let n=0;n<e.length;++n)t.push(e[n])}function e6(t){if("flow-seq-start"===t.start.type)for(let e of t.items)!e.sep||e.value||eW(e.start,"explicit-key-ind")||eW(e.sep,"map-value-ind")||(e.key&&(e.value=e.key),delete e.key,eZ(e.value)?e.value.end?e2(e.value.end,e.sep):e.value.end=e.sep:e2(e.start,e.sep),delete e.sep)}class e3{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new eH,this.onNewLine=t}*parse(t,e=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(t,e)))yield*this.next(n);e||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let e=function(t){switch(t){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":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(t[0]){case" ":case" ":return"space";case"#":return"comment";
25case"%":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}(t);if(e){if("scalar"===e)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=e,yield*this.step(),e){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&" "===t[0]&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}}else{let e=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:e,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if("doc-end"===this.type&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let e=t??this.stack.pop();if(e){if(0===this.stack.length)yield e;else{let t=this.peek(1);switch("block-scalar"===e.type?e.indent="indent"in t?t.indent:0:"flow-collection"===e.type&&"document"===t.type&&(e.indent=0),"flow-collection"===e.type&&e6(e),t.type){case"document":t.value=e;break;case"block-scalar":t.props.push(e);break;case"block-map":{let n=t.items[t.items.length-1];if(n.value){t.items.push({start:[],key:e,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=e;else{Object.assign(n,{key:e,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=t.items[t.items.length-1];n.value?t.items.push({start:[],value:e}):n.value=e;break}case"flow-collection":{let n=t.items[t.items.length-1];!n||n.value?t.items.push({start:[],key:e,sep:[]}):n.sep?n.value=e:Object.assign(n,{key:e,sep:[]});return}default:yield*this.pop(),yield*this.pop(e)}if(("document"===t.type||"block-map"===t.type||"block-seq"===t.type)&&("block-map"===e.type||"block-seq"===e.type)){let n=e.items[e.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===eJ(n.start)&&(0===e.indent||n.start.every(t=>"comment"!==t.type||t.indent<e.indent))&&("document"===t.type?t.end=n.start:t.items.push({start:n.start}),e.items.splice(-1,1))}}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let t={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":-1!==eJ(t.start)?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let e=this.startBlockValue(t);e?this.stack.push(e):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if("map-value-ind"===this.type){let e;let n=e1(e0(this.peek(2)));t.end?((e=t.end).push(this.sourceToken),delete t.end):e=[this.sourceToken];let r={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:n,key:t,sep:e}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf("\n")+1;for(;0!==t;)this.onNewLine(this.offset+t),t=this.source.indexOf("\n",t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let e=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,e.value){let n="end"in e.value?e.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}
25else e.sep?e.sep.push(this.sourceToken):e.start.push(this.sourceToken);return;case"space":case"comment":if(e.value)t.items.push({start:[this.sourceToken]});else if(e.sep)e.sep.push(this.sourceToken);else{if(this.atIndentedComment(e.start,t.indent)){let n=t.items[t.items.length-2],r=n?.value?.end;if(Array.isArray(r)){e2(r,e.start),r.push(this.sourceToken),t.items.pop();return}}e.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let n=!this.onKeyLine&&this.indent===t.indent,r=n&&(e.sep||e.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(r&&e.sep&&!e.value){let n=[];for(let r=0;r<e.sep.length;++r){let i=e.sep[r];switch(i.type){case"newline":n.push(r);break;case"space":break;case"comment":i.indent>t.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=e.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":r||e.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):e.sep?e.sep.push(this.sourceToken):e.start.push(this.sourceToken);return;case"explicit-key-ind":e.sep||e.explicitKey?r||e.value?(i.push(this.sourceToken),t.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(e.start.push(this.sourceToken),e.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(e.explicitKey){if(e.sep){if(e.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(eW(e.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(eZ(e.key)&&!eW(e.sep,"newline")){let t=e1(e.start),n=e.key,r=e.sep;r.push(this.sourceToken),delete e.key,delete e.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:n,sep:r}]})}else i.length>0?e.sep=e.sep.concat(i,this.sourceToken):e.sep.push(this.sourceToken)}else if(eW(e.start,"newline"))Object.assign(e,{key:null,sep:[this.sourceToken]});else{let t=e1(e.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]})}}else e.sep?e.value||r?t.items.push({start:i,key:null,sep:[this.sourceToken]}):eW(e.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):e.sep.push(this.sourceToken):Object.assign(e,{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||e.value?(t.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):e.sep?this.stack.push(n):(Object.assign(e,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(t);if(r){if("block-seq"===r.type){if(!e.explicitKey&&e.sep&&!eW(e.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&t.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let e=t.items[t.items.length-1];switch(this.type){case"newline":if(e.value){let n="end"in e.value?e.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else e.start.push(this.sourceToken);return;case"space":case"comment":if(e.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(e.start,t.indent)){let n=t.items[t.items.length-2],r=n?.value?.end;if(Array.isArray(r)){e2(r,e.start),r.push(this.sourceToken),t.items.pop();return}}e.start.push(this.sourceToken)}return;case"anchor":case"tag":if(e.value||this.indent<=t.indent)break;e.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;e.value||eW(e.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):e.start.push(this.sourceToken);return}if(this.indent>t.indent){let e=this.startBlockValue(t);if(e){this.stack.push(e);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let e=t.items[t.items.length-1];if("flow-error-end"===this.type){let t;do yield*this.pop(),t=this.peek(1);while(t?.type==="flow-collection")}else if(0===t.end.length){switch(this.type){case"comma":case"explicit-key-ind":!e||e.sep?t.items.push({start:[this.sourceToken]}):e.start.push(this.sourceToken);return;case"map-value-ind":!e||e.value?t.items.push({start:[],key:null,
25sep:[this.sourceToken]}):e.sep?e.sep.push(this.sourceToken):Object.assign(e,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!e||e.value?t.items.push({start:[this.sourceToken]}):e.sep?e.sep.push(this.sourceToken):e.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!e||e.value?t.items.push({start:[],key:n,sep:[]}):e.sep?this.stack.push(n):Object.assign(e,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let e=this.peek(2);if("block-map"!==e.type||("map-value-ind"!==this.type||e.indent!==t.indent)&&("newline"!==this.type||e.items[e.items.length-1].sep)){if("map-value-ind"===this.type&&"flow-collection"!==e.type){let n=e1(e0(e));e6(t);let r=t.end.splice(1,t.end.length);r.push(this.sourceToken);let i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:n,key:t,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}else yield*this.pop(),yield*this.step()}}flowScalar(t){if(this.onNewLine){let t=this.source.indexOf("\n")+1;for(;0!==t;)this.onNewLine(this.offset+t),t=this.source.indexOf("\n",t)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let e=e1(e0(t));return e.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let e=e1(e0(t));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,e){return"comment"===this.type&&!(this.indent<=e)&&t.every(t=>"newline"===t.type||"space"===t.type)}*documentEnd(t){"doc-mode"!==this.type&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class e4{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let e=0,n=this.lineStarts.length;for(;e<n;){let r=e+n>>1;this.lineStarts[r]<t?e=r+1:n=r}if(this.lineStarts[e]===t)return{line:e+1,col:1};if(0===e)return{line:0,col:t};let r=this.lineStarts[e-1];return{line:e,col:t-r+1}}}}var e9=n(90048);let e8={" ":'<svg width="16" height="16" viewBox="0 -3 24 24">
25<path fill-rule="evenodd" d="M6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zM3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-5z" clip-rule="evenodd"/></svg>\n'.trim(),x:'<svg width="16" height="16" viewBox="0 -3 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"/></svg>\n'.trim()};function e5(t,e){return"script"===e.type&&e.data.src?{...e,data:{...e.data,src:t.getFullUrl(e.data.src)}}:e}let e7="hljs",nt={name:e7,config:{versions:{hljs:"11.11.1"},preloadScripts:["@highlightjs/[email protected]/highlight.min.js"].map(t=>(0,i.FU)(t)),styles:["@highlightjs/[email protected]/styles/default.min.css"].map(t=>(0,i.my)(t))},transform(t){var e,n,r;let s;let o=(null==(n=null==(e=nt.config)?void 0:e.preloadScripts)?void 0:n.map(e=>e5(t.transformer.urlBuilder,e)))||[],a=()=>(s||(s=(0,i.fs)(o)),s),l=i.ZT;return t.parser.tap(e=>{e.set({highlight:(e,n)=>{l();let{hljs:r}=window;return r?r.highlightAuto(e,n?[n]:void 0).value:(a().then(()=>{t.retransform.call()}),e)}})}),t.beforeParse.tap((t,e)=>{l=()=>{e.features[e7]=!0}}),{styles:null==(r=nt.config)?void 0:r.styles}}},ne="katex",nn=["[email protected]/dist/katex.min.js"].map(t=>(0,i.FU)(t)),nr=(0,i.FU)("[email protected]/webfontloader.js");nr.data.defer=!0;let ni=["[email protected]/dist/katex.min.css"].map(t=>(0,i.my)(t)),ns=e9.default||e9,no={name:ne,config:{versions:{katex:"0.16.18",webfontloader:"1.6.28"},preloadScripts:nn,scripts:[{type:"iife",data:{fn:t=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{t().refreshHook.call()}}},getParams:({getMarkmap:t})=>[t]}},nr],styles:ni,resources:["[email protected]/dist/fonts/KaTeX_AMS-Regular.woff2","[email protected]/dist/fonts/KaTeX_Caligraphic-Bold.woff2","[email protected]/dist/fonts/KaTeX_Caligraphic-Regular.woff2","[email protected]/dist/fonts/KaTeX_Fraktur-Bold.woff2","[email protected]/dist/fonts/KaTeX_Fraktur-Regular.woff2","[email protected]/dist/fonts/KaTeX_Main-Bold.woff2","[email protected]/dist/fonts/KaTeX_Main-BoldItalic.woff2","[email protected]/dist/fonts/KaTeX_Main-Italic.woff2","[email protected]/dist/fonts/KaTeX_Main-Regular.woff2","[email protected]/dist/fonts/KaTeX_Math-BoldItalic.woff2","[email protected]/dist/fonts/KaTeX_Math-Italic.woff2","[email protected]/dist/fonts/KaTeX_SansSerif-Bold.woff2","[email protected]/dist/fonts/KaTeX_SansSerif-Italic.woff2","[email protected]/dist/fonts/KaTeX_SansSerif-Regular.woff2","[email protected]/dist/fonts/KaTeX_Script-Regular.woff2","[email protected]/dist/fonts/KaTeX_Size1-Regular.woff2","[email protected]/dist/fonts/KaTeX_Size2-Regular.woff2","[email protected]/dist/fonts/KaTeX_Size3-Regular.woff2","[email protected]/dist/fonts/KaTeX_Size4-Regular.woff2","[email protected]/dist/fonts/KaTeX_Typewriter-Regular.woff2"]},transform(t){var e,n,r,s;let o;let a=(null==(n=null==(e=no.config)?void 0:e.preloadScripts)?void 0:n.map(e=>e5(t.transformer.urlBuilder,e)))||[],l=()=>(o||(o=(0,i.fs)(a)),o),c=(e,n)=>{let{katex:r}=window;return r?r.renderToString(e,{displayMode:n,throwOnError:!1}):(l().then(()=>{t.retransform.call()}),e)},u=i.ZT;return t.parser.tap(t=>{t.use(ns),["math_block","math_inline"].forEach(e=>{t.renderer.rules[e]=(t,e)=>(u(),c(t[e].content,!!t[e].block))})}),t.beforeParse.tap((t,e)=>{u=()=>{e.features[ne]=!0}}),t.afterParse.tap((t,e)=>{var n;let r=null==(n=e.frontmatter)?void 0:n.markmap;r&&["extraJs","extraCss"].forEach(t=>{var e,n,i;let s=r[t];s&&(r[t]=(i=(null==(n=null==(e=no.config)?void 0:e.versions)?void 0:n.katex)||"",s.map(t=>{if("string"==typeof t&&!t.includes("://")){t.startsWith("npm:")||(t=`npm:${t}`);let e=4+ne.length;t.startsWith(`npm:${ne}/`)&&(t=`${t.slice(0,e)}@${i}${t.slice(e)}`)}return t})))})}),{styles:null==(r=no.config)?void 0:r.styles,scripts:null==(s=no.config)?void 0:s.scripts}}},na=[{name:"frontmatter",transform:t=>(t.beforeParse.tap((t,e)=>{var n;let r;let{content:i}=e;if(!/^---\r?\n/.test(i))return;let s=/\n---\r?\n/.exec(i);if(!s)return;let o=i.slice(4,s.index).trimEnd();try{r=function(t,e,n){let r;let i=function(t,e={}){let{lineCounter:n,prettyErrors:r}=function(t){let e=!1!==t.prettyErrors;return{lineCounter:t.lineCounter||e&&new e4||null,prettyErrors:e}}(e),i=new e3(n?.addNewLine),s=new ez(e),o=null;for(let e of s.compose(i.parse(t),!0,t.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new eb(e.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=e;
25return r&&n&&(o.errors.forEach(ew(t,n)),o.warnings.forEach(ew(t,n))),o}(t,void 0);if(!i)return null;if(i.warnings.forEach(t=>tk(i.options.logLevel,t)),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}(o.replace(/\r?\n|\r/g,"\n")),(null==r?void 0:r.markmap)&&(r.markmap=function(t){if(t)return["color","extraJs","extraCss"].forEach(e=>{var n;let r;null!=t[e]&&(t[e]=(n=t[e],"string"==typeof n?r=[n]:Array.isArray(n)&&(r=n.filter(t=>t&&"string"==typeof t)),(null==r?void 0:r.length)?r:void 0))}),["duration","maxWidth","initialExpandLevel"].forEach(e=>{null!=t[e]&&(t[e]=function(t){if(!isNaN(+t))return+t}(t[e]))}),t}(r.markmap))}catch{return}e.frontmatter=r,e.parserOptions={...e.parserOptions,...null==(n=null==r?void 0:r.markmap)?void 0:n.htmlParser},e.frontmatterInfo={lines:i.slice(0,s.index).split("\n").length+1,offset:s.index+s[0].length}}),{})},no,nt,{name:"npmUrl",transform:t=>(t.afterParse.tap((e,n)=>{let{frontmatter:r}=n,i=null==r?void 0:r.markmap;i&&["extraJs","extraCss"].forEach(e=>{let n=i[e];n&&(i[e]=n.map(e=>e.startsWith("npm:")?t.transformer.urlBuilder.getFullUrl(e.slice(4)):e))})}),{})},{name:"checkbox",transform:t=>(t.parser.tap(t=>{t.core.ruler.before("inline","checkbox",t=>{for(let e=2;e<t.tokens.length;e+=1){let n=t.tokens[e];if("inline"===n.type&&n.content){let r=t.tokens[e-1].type,i=t.tokens[e-2].type;("heading_open"===r||"paragraph_open"===r&&"list_item_open"===i)&&(n.content=n.content.replace(/^\[(.)\] /,(t,e)=>e8[e]?`${e8[e]} `:t))}}return!1})}),{})},{name:"sourceLines",transform(t){let e=0;return t.beforeParse.tap((t,n)=>{var r;e=(null==(r=n.frontmatterInfo)?void 0:r.lines)||0}),t.parser.tap(t=>{t.renderer.renderAttrs=(0,i.kl)(t.renderer.renderAttrs,(t,n)=>{if(n.block&&n.map){let t=n.map.map(t=>t+e);n.attrSet("data-lines",t.join(","))}return t(n)}),t.renderer.rules.fence&&(t.renderer.rules.fence=(0,i.kl)(t.renderer.rules.fence,(t,n,r,...i)=>{let s=t(n,r,...i),o=n[r];if(s.startsWith("<pre>")&&o.map){let t=o.map.map(t=>t+e);s=s.slice(0,4)+` data-lines="${t.join(",")}"`+s.slice(4)}return s}))}),{}}}];class nl{constructor(t=na){this.assetsMap={},this.urlBuilder=new i.$O,this.hooks={transformer:this,parser:new i.ew,beforeParse:new i.ew,afterParse:new i.ew,retransform:new i.ew},this.plugins=t.map(t=>"function"==typeof t?t():t);let e={};for(let{name:t,transform:n}of this.plugins)e[t]=n(this.hooks);this.assetsMap=e;let n=function(){let t=(0,o.Z)({html:!0,breaks:!0});return t.use(a).use(l).use(h).use(d),t}();this.md=n,this.hooks.parser.call(n)}transform(t,e){var n;let r={content:t,features:{},parserOptions:e};this.hooks.beforeParse.call(this.md,r);let{content:i}=r;r.frontmatterInfo&&(i=i.slice(r.frontmatterInfo.offset));let o=this.md.render(i,{});this.hooks.afterParse.call(this.md,r);let a=function t(e){for(;!e.content&&1===e.children.length;)e=e.children[0];for(;1===e.children.length&&!e.children[0].content;)e={...e,children:e.children[0].children};return{...e,children:e.children.map(t)}}((0,s.fX)(o,r.parserOptions));return a.content||(a.content=`${(null==(n=r.frontmatter)?void 0:n.title)||""}`),{...r,root:a}}resolveJS(t){return e5(this.urlBuilder,t)}resolveCSS(t){var e;return e=this.urlBuilder,"stylesheet"===t.type&&t.data.href?{...t,data:{...t.data,href:e.getFullUrl(t.data.href)}}:t}getAssets(t){let e=[],n=[];for(let r of(t??(t=this.plugins.map(t=>t.name)),t.map(t=>this.assetsMap[t])))r&&(r.styles&&e.push(...r.styles),r.scripts&&n.push(...r.scripts));return{styles:e.map(t=>this.resolveCSS(t)),scripts:n.map(t=>this.resolveJS(t))}}getUsedAssets(t){let e=this.plugins.map(t=>t.name).filter(e=>t[e]);return this.getAssets(e)}}},3370:function(t,e,n){"use strict";let r;n.d(e,{o:function(){return b}});let i="http://www.w3.org/1999/xlink",s={show:i,actuate:i,href:i},o=t=>"string"==typeof t||"number"==typeof t,a=t=>(null==t?void 0:t.vtype)===1,l=t=>(null==t?void 0:t.vtype)===2;function c(t,e){let n;if("string"==typeof t)n=1;else if("function"==typeof t)n=2;else throw Error("Invalid VNode type");return{vtype:n,type:t,props:e}}function u(t){return t.children}let h={isSvg:!1};function f(t,e){Array.isArray(e)||(e=[e]),(e=e.filter(Boolean)).length&&t.append(...e)}let p={className:"class",labelFor:"for"};function d(t,e){return Array.isArray(t)?t.map(t=>d(t,e)).reduce((t,e)=>t.concat(e),[]):m(t,e)}function m(t,e=h){if(null==t||"boolean"==typeof t)return null;if(t instanceof Node)return t;if(l(t)){let{type:n,props:r}=t;if(n===u){let t=document.createDocumentFragment();return r.children&&f(t,d(r.children,e)),t}return m(n(r),e)}if(o(t))return document.createTextNode(`${t}`);if(a(t)){let n;let{type:r,props:i}=t;if(e.isSvg||"svg"!==r||(e=Object.assign({},e,{isSvg:!0})),!function(t,e,n){for(let r in e)if("key"!==r&&"children"!==r&&"ref"!==r){if("dangerouslySetInnerHTML"===r)t.innerHTML=e[r].__html;else if("innerHTML"===r||"textContent"===r||"innerText"===r||"value"===r&&["textarea","select"].includes(t.tagName)){let n=e[r];null!=n&&(t[r]=n)}else r.startsWith("on")?t[r.toLowerCase()]=e[r]:function(t,e,n,r){if(e=p[e]||e,!0===n)t.setAttribute(e,"");else if(!1===n)t.removeAttribute(e);else{let i=r?s[e]:void 0;void 0!==i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}}(t,r,e[r],n.isSvg)}}(n=e.isSvg?document.createElementNS("http://www.w3.org/2000/svg",r):document.createElement(r),i,e),i.children){let t=e;e.isSvg&&"foreignObject"===r&&(t=Object.assign({},t,{isSvg:!1}));let s=d(i.children,t);null!=s&&f(n,s)}let{ref:o}=i;return"function"==typeof o&&o(n),n}throw Error("mount: Invalid Vnode!")}let g="mm-toolbar-item";function y({title:t,content:e,onClick:n}){return c("div",{className:g,title:t,onClick:n,children:e})}let v=class t{constructor(){this.showBrand=!0,this.registry={},this.el=m(c("div",{className:"mm-toolbar"})),this.items=[...t.defaultItems],this.register({id:"zoomIn",title:"Zoom in",content:t.icon("M9 5v4h-4v2h4v4h2v-4h4v-2h-4v-4z"),onClick:this.getHandler(t=>t.rescale(1.25))}),this.register({id:"zoomOut",title:"Zoom out",content:t.icon("M5 9h10v2h-10z"),onClick:this.getHandler(t=>t.rescale(.8))}),this.register({id:"fit",title:"Fit window size",content:t.icon("M4 7h2v-2h2v4h-4zM4 13h2v2h2v-4h-4zM16 7h-2v-2h-2v4h4zM16 13h-2v2h-2v-4h4z"),onClick:this.getHandler(t=>t.fit())}),this.register({id:"recurse",title:"Toggle recursively",content:t.icon("M16 4h-12v12h12v-8h-8v4h2v-2h4v4h-8v-8h10z"),onClick:t=>{var e;let n=t.target.closest(`.${g}`),r=null==n?void 0:n.classList.toggle("active");null==(e=this.markmap)||e.setOptions({toggleRecursively:r})}}),this.register({id:"dark",title:"Toggle dark theme",content:t.icon("M10 4a6 6 0 0 0 0 12a6 6 0 0 0 0 -12v2a4 4 0 0 1 0 8z"),onClick:()=>{document.documentElement.classList.toggle("markmap-dark")}}),this.render()}static create(e){let n=new t;return n.attach(e),n}static icon(t,e={}){return c("svg",{width:"20",height:"20",viewBox:"0 0 20 20",children:c("path",{...e={stroke:"none",fill:"
25currentColor","fill-rule":"evenodd",...e},d:t})})}setBrand(t){return this.showBrand=t,this.render()}register(t){this.registry[t.id]=t}getHandler(t){var e;return e=t,t=async(...t)=>{if(!r){r=e(...t);try{await r}finally{r=void 0}}},()=>{this.markmap&&t(this.markmap)}}setItems(t){return this.items=[...t],this.render()}attach(t){this.markmap=t}render(){let t=this.items.map(t=>{if("string"==typeof t){let e=this.registry[t];return e||console.warn(`[markmap-toolbar] ${t} not found`),e}return t}).filter(Boolean);for(;this.el.firstChild;)this.el.firstChild.remove();return this.el.append(m(c(u,{children:[this.showBrand&&c("a",{className:"mm-toolbar-brand",href:"https://markmap.js.org/",children:[c("img",{alt:"markmap",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACoFBMVEUAAAAAAAD//wAAAACAgAD//wAAAABVVQCqqgBAQACAQACAgABmZgBtbQAAAABgQABgYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaFQAAAAAAAAAAAAAAAAAHAAARBQIdGAIYEwI/OgJYUQUfHQI+OgJDPgJJRARBPQRJQgRRSwRRTQRIQQRUTgRUUARZUgRSTQRPSQRjWgZORQRfWQZsZAhTTQRNRwRWUAZkXAZOSARUTgZPRwRRSQRoYwZWUQZWTgRbUwZmXQZoXghmXwdqYwdsYwdfVwVmXQdqYgdiWgVpYAl3bgl6cgl4cAqLggw8OAOWjA2Uig1OSAR2bQihlg55cAh5cAh6cQmMgwyOhAyUjA2QhQ2Uiw2Viw2soBCflA+voxGwpRGhlg+hlg+snxGroBGjmBCpnBC0pxKyphKxpRG2qhK0qBK5rBK5rBP/7h3/8B7/8R3/8h3/8R7/8h786x397B3+7R3EtxT66Rz66hz76hz86xz96xz97Bz+7Rz45xz56Bz76hz97Bz97B3MvRX15Rv25Rv45xz66Rz76hz97B3+7R3IuxX05Bv15Bv25Rz56Bz66Ry/sxPAsxPCtRTCthTNvxbZyxfczxfi0xjl1Rnn2Bnr2xrr3Brs3Rru3Rru3xrv3hrw3xrx4Bvx4Rvy4hvz4hvz4xv04xv05Bv14xv15Bv15Rv25Bv25Rv25Rz25hv35hv35xv45xv45xz55xz56Bv56Bz66Rv66Rz76Rv76Rz76hz86hv86xz+7h3/7R3/7h3/7x3/8B3/8B7/8R3/8R4Yqhj5AAAAq3RSTlMAAQECAgIDAwMEBAQFBwgICAwQERITFRYXGBkbHB0eHyQlJyguNTg8RUZISU5PV2FiY2RlZmdqa2xubnJzc3R2d3d3eXl5eXp7fH1+gIGCgoKDg4SEhIWGh4eHiYmJjIyMjZSUlJ+sra+zt7i4uru8ztHV1tbW2d7g4OHi4uPk5ufp7Ozv9fX29/f3+Pj6+vr7+/v7+/v7+/z8/Pz8/f39/f39/f3+/v7+/v7K6J1dAAACHklEQVQ4y2NgwAoYWdi5uLm5GXHIcrLCmMzYpDmAhKCKjoGtp40MFhVsDAwSxmmVEzZu2XvqSLkchjw3g0h445Ybd24vmTN1Usd5X3R5DgaNqgN35sycP2/GxMkTMRVwMOivvtO3YsWUm3duX790EcMKdgbNNXdnnJh1+9T6ipzU+FB0RzIyiFYB5WdfaElUF8TmTQ6GwH39J2bvypMHcpg4MAKKkUGo5s6KWRfyGRh4WJClGEGBCgS8DLobliy/3abMwM8NBYwQjXDgf3ryxOspyKYyg+RFTFwdnYDAzbrw+oLFm9Ot3J3AwNHFTBykQrhg++GDh48cOXzk4P6VZy8s230MyAGCwwcP7iyRBJpiur1n8hQIWHX27NkLi6bAwOSuow5ABeY7OydOhoCFIAULe6E8YFCf8QAqEC86evniZTA4tfLsuRXHr0E4ly9ePF0uC3KnpH1MZBQQxPoVgxyZ5RMdBQaRMc6yIEcihWbQGaA3k9G8CfQoN0pAtSoxCMACihk9qGtBQZ2LHtRIkRUMiqwd2TJADiswsrjQlAGju/o+MLrPNkWo8mFN1ewMWmvBCebQ0rKMJG87QzF0FRwMRuvugpLcrXu3rp7Zs61UCtMZ2nVHbk+fMX/+jMmTp3Sf9MLiULG45q237txaPG3yxPYrYQzYMo60RWbD3E27Ll68Uq+AK+uJqOlZBiSEKGLNnMA0iDfzwrI/NKgBOivk9piPdtUAAAAASUVORK5CYII="}),c("span",{children:"markmap"})]}),t.map(y)]}))),this.el}};v.defaultItems=["zoomIn","zoomOut","fit","recurse","dark"];let b=v},25800:function(t,e,n){"use strict";n.d(e,{v$:function(){return ez}});var r,i=n(15496),s=n(58758),o=n(99085);function a(){}function l(t){return null==t?a:function(){return this.querySelector(t)}}function c(){return[]}function u(t){return null==t?c:function(){return this.querySelectorAll(t)}}function h(t){return function(){return this.matches(t)}}function f(t){return function(e){return e.matches(t)}}var p=Array.prototype.find;function d(){return this.firstElementChild}var m=Array.prototype.filter;function g(){return Array.from(this.children)}function y(t){return Array(t.length)}function v(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function b(t,e,n,r,i,s){for(var o,a=0,l=e.length,c=s.length;a<c;++a)(o=e[a])?(o.__data__=s[a],r[a]=o):n[a]=new v(t,s[a]);for(;a<l;++a)(o=e[a])&&(i[a]=o)}function k(t,e,n,r,i,s,o){var a,l,c,u=new Map,h=e.length,f=s.length,p=Array(h);for(a=0;a<h;++a)(l=e[a])&&(p[a]=c=o.call(l,l.__data__,a,e)+"",u.has(c)?i[a]=l:u.set(c,l));for(a=0;a<f;++a)c=o.call(t,s[a],a,s)+"",(l=u.get(c))?(r[a]=l,l.__data__=s[a],u.delete(c)):n[a]=new v(t,s[a]);for(a=0;a<h;++a)(l=e[a])&&u.get(p[a])===l&&(i[a]=l)}function w(t){return t.__data__}function _(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}v.prototype={constructor:v,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var A="http://www.w3.org/1999/xhtml",x={svg:"http://www.w3.org/2000/svg",xhtml:A,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function S(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),x.hasOwnProperty(e)?{space:x[e],local:t}:t}function E(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function N(t,e){return t.style.getPropertyValue(e)||E(t).getComputedStyle(t,null).getPropertyValue(e)}function T(t){return t.trim().split(/^|\s+/)}function O(t){return t.classList||new $(t)}function $(t){this._node=t,this._names=T(t.getAttribute("class")||"")}function C(t,e){for(var n=O(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function I(t,e){for(var n=O(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function M(){this.textContent=""}function L(){this.innerHTML=""}function B(){this.nextSibling&&this.parentNode.appendChild(this)}function R(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function j(t){var e=S(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===A&&e.documentElement.namespaceURI===A?e.createElement(t):e.createElementNS(n,t)}})(e)}function K(){return null}function z(){var t=this.parentNode;t&&t.removeChild(this)}function P(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function D(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function X(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,s=e.length;r<s;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function q(t,e,n){return function(){var r,i=this.__on,s=function(t){e.call(this,t,this.__data__)};if(i){for(var o=0,a=i.length;o<a;++o)if((r=i[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=s,r.options=n),r.value=e;return}}this.addEventListener(t.type,s,n),r={type:t.type,name:t.name,value:e,listener:s,options:n},i?i.push(r):this.__on=[r]}}function U(t,e,n){var r=E(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dis
25patchEvent(i)}$.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var F=[null];function V(t,e){this._groups=t,this._parents=e}function Y(){return new V([[document.documentElement]],F)}V.prototype=Y.prototype={constructor:V,select:function(t){"function"!=typeof t&&(t=l(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var s,o,a=e[i],c=a.length,u=r[i]=Array(c),h=0;h<c;++h)(s=a[h])&&(o=t.call(s,s.__data__,h,a))&&("__data__"in s&&(o.__data__=s.__data__),u[h]=o);return new V(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=u(t);for(var n=this._groups,r=n.length,i=[],s=[],o=0;o<r;++o)for(var a,l=n[o],c=l.length,h=0;h<c;++h)(a=l[h])&&(i.push(t.call(a,a.__data__,h,l)),s.push(a));return new V(i,s)},selectChild:function(t){var e;return this.select(null==t?d:(e="function"==typeof t?t:f(t),function(){return p.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?g:(e="function"==typeof t?t:f(t),function(){return m.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=h(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var s,o=e[i],a=o.length,l=r[i]=[],c=0;c<a;++c)(s=o[c])&&t.call(s,s.__data__,c,o)&&l.push(s);return new V(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,w);var n=e?k:b,r=this._parents,i=this._groups;"function"!=typeof t&&(v=t,t=function(){return v});for(var s=i.length,o=Array(s),a=Array(s),l=Array(s),c=0;c<s;++c){var u=r[c],h=i[c],f=h.length,p="object"==typeof(y=t.call(u,u&&u.__data__,c,r))&&"length"in y?y:Array.from(y),d=p.length,m=a[c]=Array(d),g=o[c]=Array(d);n(u,h,m,g,l[c]=Array(f),p,e);for(var y,v,_,A,x=0,S=0;x<d;++x)if(_=m[x]){for(x>=S&&(S=x+1);!(A=g[S])&&++S<d;);_._next=A||null}}return(o=new V(o,r))._enter=a,o._exit=l,o},enter:function(){return new V(this._enter||this._groups.map(y),this._parents)},exit:function(){return new V(this._exit||this._groups.map(y),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,s=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?s.remove():n(s),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,s=r.length,o=Math.min(i,s),a=Array(i),l=0;l<o;++l)for(var c,u=n[l],h=r[l],f=u.length,p=a[l]=Array(f),d=0;d<f;++d)(c=u[d]||h[d])&&(p[d]=c);for(;l<i;++l)a[l]=n[l];return new V(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],s=i.length-1,o=i[s];--s>=0;)(r=i[s])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=_);for(var n=this._groups,r=n.length,i=Array(r),s=0;s<r;++s){for(var o,a=n[s],l=a.length,c=i[s]=Array(l),u=0;u<l;++u)(o=a[u])&&(c[u]=o);c.sort(e)}return new V(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var o=r[i];if(o)return o}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,s=e[n],o=0,a=s.length;o<a;++o)(i=s[o])&&t.call(i,i.__data__,o,s);return this},attr:function(t,e){var n=S(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):N(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=T(t+"");
25if(arguments.length<2){for(var r=O(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?C:I)(this,t)}}:e?function(t){return function(){C(this,t)}}:function(t){return function(){I(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?M:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?L:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(B)},lower:function(){return this.each(R)},append:function(t){var e="function"==typeof t?t:j(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:j(t),r=null==e?K:"function"==typeof e?e:l(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(z)},clone:function(t){return this.select(t?D:P)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,s=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),o=s.length;if(arguments.length<2){var a=this.node().__on;if(a){for(var l,c=0,u=a.length;c<u;++c)for(r=0,l=a[c];r<o;++r)if((i=s[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,a=e?q:X;r<o;++r)this.each(a(s[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return U(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return U(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],s=0,o=i.length;s<o;++s)(r=i[s])&&(yield r)}};var Q={value:()=>{}};function G(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new H(r)}function H(t){this._=t}function W(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Q,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}H.prototype=G.prototype={constructor:H,on:function(t,e){var n,r=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),s=-1,o=i.length;if(arguments.length<2){for(;++s<o;)if((n=(t=i[s]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++s<o;)if(n=(t=i[s]).type)r[n]=W(r[n],t.name,e);else if(null==e)for(n in r)r[n]=W(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new H(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),s=0;s<n;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],s=0,n=r.length;s<n;++s)r[s].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};var J,Z,tt=0,te=0,tn=0,tr=0,ti=0,ts=0,to="object"==typeof performance&&performance.now?performance:Date,ta="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tl(){return ti||(ta(tc),ti=to.now()+ts)}function tc(){ti=0}function tu(){this._call=this._time=this._next=null}function th(t,e,n){var r=new tu;return r.restart(t,e,n),r}function tf(){ti=(tr=to.now())+ts,tt=te=0;try{!function(){tl(),++tt;for(var t,e=J;e;)(t=ti-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tt}()}finally{tt=0,function(){for(var t,e,n=J,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:J=e);Z=t,td(r)}(),ti=0}}function tp(){var t=to.now(),e=t-tr;e>1e3&&(ts-=e,tr=t)}function td(t){!tt&&(te&&(te=clearTimeout(te)),t-ti>24?(t<1/0&&(te=setTimeout(tf,t-to.now()-ts)),tn&&(tn=clearInterval(tn))):(tn||(tr=to.now(),tn=setInterval(tp,1e3)),tt=1,ta(tf)))}function tm(t,e,n){var r=new tu;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}tu.prototype=th.prototype={constructor:tu,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?tl():+n)+(null==e?0:+e),this._next||Z===this||(Z?Z._next=this:J=this,Z=this),this._call=t,this._time=n,td()},stop:function(){this._call&&(this._call=null,this._time=1/0,td())}};var tg=G("start","end","cancel","interrupt"),ty=[];function tv(t,e,n,r,i,s){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(l){var c,u,h,f;if(1!==n.state)return a();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return tm(s);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(tm(function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(c=0,n.state=3,r=Array(h=n.tween.length),u=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1
25),s=-1,o=r.length;++s<o;)r[s].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=th(function(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:tg,tween:ty,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function tb(t,e){var n=tw(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tk(t,e){var n=tw(t,e);if(n.state>3)throw Error("too late; already running");return n}function tw(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function t_(t,e){var n,r,i,s=t.__transition,o=!0;if(s){for(i in e=null==e?null:e+"",s){if((n=s[i]).name!==e){o=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[i]}o&&delete t.__transition}}var tA=n(44193),tx=180/Math.PI,tS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tE(t,e,n,r,i,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*tx,skewX:Math.atan(l)*tx,scaleX:o,scaleY:a}}function tN(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(s,o){var a,l,c,u,h=[],f=[];return s=t(s),o=t(o),!function(t,r,i,s,o,a){if(t!==i||r!==s){var l=o.push("translate(",null,e,null,n);a.push({i:l-4,x:(0,tA.Z)(t,i)},{i:l-2,x:(0,tA.Z)(r,s)})}else(i||s)&&o.push("translate("+i+e+s+n)}(s.translateX,s.translateY,o.translateX,o.translateY,h,f),(a=s.rotate)!==(l=o.rotate)?(a-l>180?l+=360:l-a>180&&(a+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:(0,tA.Z)(a,l)})):l&&h.push(i(h)+"rotate("+l+r),(c=s.skewX)!==(u=o.skewX)?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:(0,tA.Z)(c,u)}):u&&h.push(i(h)+"skewX("+u+r),!function(t,e,n,r,s,o){if(t!==n||e!==r){var a=s.push(i(s)+"scale(",null,",",null,")");o.push({i:a-4,x:(0,tA.Z)(t,n)},{i:a-2,x:(0,tA.Z)(e,r)})}else(1!==n||1!==r)&&s.push(i(s)+"scale("+n+","+r+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,h,f),s=o=null,function(t){for(var e,n=-1,r=f.length;++n<r;)h[(e=f[n]).i]=e.x(t);return h.join("")}}}var tT=tN(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tS:tE(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tO=tN(function(t){return null==t?tS:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",t),t=r.transform.baseVal.consolidate())?tE((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tS},", ",")",")");function t$(t,e,n){var r=t._id;return t.each(function(){var t=tk(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tw(t,r).value[e]}}var tC=n(26910),tI=n(16064),tM=n(19729);function tL(t,e){var n;return("number"==typeof e?tA.Z:e instanceof tC.ZP?tI.ZP:(n=(0,tC.ZP)(e))?(e=n,tI.ZP):tM.Z)(t,e)}var tB=Y.prototype.constructor;function tR(t){return function(){this.style.removeProperty(t)}}var tj=0;function tK(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var tz=Y.prototype;tK.prototype=(function(t){return Y().transition(t)}).prototype={constructor:tK,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=l(t));for(var r=this._groups,i=r.length,s=Array(i),o=0;o<i;++o)for(var a,c,u=r[o],h=u.length,f=s[o]=Array(h),p=0;p<h;++p)(a=u[p])&&(c=t.call(a,a.__data__,p,u))&&("__data__"in a&&(c.__data__=a.__data__),f[p]=c,tv(f[p],e,n,p,f,tw(a,n)));return new tK(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=u(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var l,c=r[a],h=c.length,f=0;f<h;++f)if(l=c[f]){for(var p,d=t.call(l,l.__data__,f,c),m=tw(l,n),g=0,y=d.length;g<y;++g)(p=d[g])&&tv(p,e,n,g,d,m);s.push(d),o.push(l)}return new tK(s,o,e,n)},selectChild:tz.selectChild,selectChildren:tz.selectChildren,filter:function(t){"function"!=typeof t&&(t=h(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var s,o=e[i],a=o.length,l=r[i]=[],c=0;c<a;++c)(s=o[c])&&t.call(s,s.__data__,c,o)&&l.push(s);return new tK(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),o=Array(r),a=0;a<s;++a)for(var l,c=e[a],u=n[a],h=c.length,f=o[a]=Array(h),p=0;p<h;
25++p)(l=c[p]||u[p])&&(f[p]=l);for(;a<r;++a)o[a]=e[a];return new tK(o,this._parents,this._name,this._id)},selection:function(){return new tB(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++tj,r=this._groups,i=r.length,s=0;s<i;++s)for(var o,a=r[s],l=a.length,c=0;c<l;++c)if(o=a[c]){var u=tw(o,e);tv(o,t,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new tK(r,this._parents,t,n)},call:tz.call,nodes:tz.nodes,node:tz.node,size:tz.size,empty:tz.empty,each:tz.each,on:function(t,e){var n,r,i,s=this._id;return arguments.length<2?tw(this.node(),s).on.on(t):this.each((i=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tb:tk,function(){var o=i(this,s),a=o.on;a!==n&&(r=(n=a).copy()).on(t,e),o.on=r}))},attr:function(t,e){var n=S(t),r="transform"===n?tO:tL;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,s;return function(){var o,a,l=n(this);return null==l?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:o===r&&a===i?s:(i=a,s=e(r=o,l))}}:function(t,e,n){var r,i,s;return function(){var o,a,l=n(this);return null==l?void this.removeAttribute(t):(o=this.getAttribute(t))===(a=l+"")?null:o===r&&a===i?s:(i=a,s=e(r=o,l))}})(n,r,t$(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i,s=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===r?i:i=e(r=o,n)}}:function(t,e,n){var r,i,s=n+"";return function(){var o=this.getAttribute(t);return o===s?null:o===r?i:i=e(r=o,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=S(t);return this.tween(n,(r.local?function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),n}return i._value=e,i}:function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttribute(t,i.call(this,e))}),n}return i._value=e,i})(r,e))},style:function(t,e,n){var r,i,s,o,a,l,c,u,h,f,p,d,m,g,y,v,b,k,w,_,A,x="transform"==(t+="")?tT:tL;return null==e?this.styleTween(t,(r=t,function(){var t=N(this,r),e=(this.style.removeProperty(r),N(this,r));return t===e?null:t===i&&e===s?o:o=x(i=t,s=e)})).on("end.style."+t,tR(t)):"function"==typeof e?this.styleTween(t,(a=t,l=t$(this,"style."+t,e),function(){var t=N(this,a),e=l(this),n=e+"";return null==e&&(this.style.removeProperty(a),n=e=N(this,a)),t===n?null:t===c&&n===u?h:(u=n,h=x(c=t,e))})).each((f=this._id,b="end."+(v="style."+(p=t)),function(){var t=tk(this,f),e=t.on,n=null==t.value[v]?y||(y=tR(p)):void 0;(e!==d||g!==n)&&(m=(d=e).copy()).on(b,g=n),t.on=m})):this.styleTween(t,(k=t,A=e+"",function(){var t=N(this,k);return t===A?null:t===w?_:_=x(w=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,i;function s(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&function(e){this.style.setProperty(t,s.call(this,e),n)}),r}return s._value=e,s}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=t$(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=tw(this.node(),n).tween,s=0,o=i.length;s<o;++s)if((r=i[s]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var i=tk(this,t),s=i.tween;if(s!==n){r=n=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}}i.tween=r}}:function(t,e,n){var r,i;if("function"!=typeof n)throw Error();return function(){var s=tk(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}s.tween=i}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tb(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tb(this,t).delay=e}})(e,t)):tw(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tk(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tk(this,t).duration=e}})(e,t)):tw(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tk(this,t).ease=e}}(e,t)):tw(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tk(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},l={value:function(){0==--i&&s()}};n.each(function(){var n=tk(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===i&&s()})},[Symbol.iterator]:tz[Symbol.iterator]};var tP={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};Y.prototype.interrupt=function(t){return this.each(function(){t_(this,t)})},Y.prototype.transition=function(t){var e,n;t instanceof tK?(e=t._id,t=t._name):(e=++tj,(n=tP).time=tl(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o,a=r[s],l=a.length,c=0;c<l;++c)(o=a[c])&&tv(o,t,e,c,a,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(o,e));return new tK(r,this._parents,t,e)};let{abs:tD,max:tX,min:tq}=Math;function tU(t){return{type:t}}["w","e"].map(tU),["n","s"].map(tU),["n","w","e","s","nw","ne","sw","se"].map(tU);var tF=n(48470),tV=function(t){for(var e=t.length/6|0,n=Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function tY(t){return"string"==typeof t?new V([[document.querySelector(t)]],[document.documentElement]):new V([[t]],F)}var tQ=n(22516),tG=n(76115),tH=n(17206),tW=n(67790),tJ=n(45820);function tZ(t){return t.source}function t0(t){return t.target}let t1={capture:!0,passive:!1};function t2(t){t.preventDefault(),t.stopImmediatePropagation()}function t6(t){return((t=Math.exp(t))+1/t)/2}var t3=function t(e,n,r){function i(t,i){var s,o,a=t[0],l=t[1],c=t[2],u=i[0],h=i[1],f=i[2],p=u-a,d=h-l,m=p*p+d*d;if(m<1e-12)o=Math.log(f/c)/e,s=function(t){return[a+t*p,l+t*d,c*Math.exp(e*t*o)]};else{var g=Math.sqrt(m),y=(f*f-c*c+r*m)/(2*c*n*g),v=(f*f-c*c-r*m)/(2*f*n*g),b=Math.log(Math.sqrt(y*y+1)-y);o=(Math.log(Math.sqrt(v*v+1)-v)-b)/e,s=function(t){var r,i,s=t*o,u=t6(b),h=c/(n*g)*(((r=Math.exp(2*(r=e*s+b)))-1)/(r+1)*u-((i=Math.exp(i=b))-1/i)/2);return[a+h*p,l+h*d,c*u/t6(e*s+b)]}}return s.duration=1e3*o*e/Math.SQRT2,s}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4);function t4(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var t9=t=>()=>t;function t8(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function t5(t,e,n){this.k=t,this.x=e,this.y=n}t5.prototype={constructor:t5,scale:function(t){return 1===t?this:new t5(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new t5(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var t7=new t5(1,0,0);function et(t){for(;!t.__zoom;)if(!(t=t.parentNode))return t7;return t.__zoom}function ee(t){t.stopImmediatePropagation()}function en(t){t.preventDefault(),t.stopImmediatePropagation()}function er(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function ei(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function es(){return this.__zoom||t7}function eo(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?
251:.002)*(t.ctrlKey?10:1)}function ea(){return navigator.maxTouchPoints||"ontouchstart"in this}function el(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}et.prototype=t5.prototype;let ec="u">typeof navigator&&navigator.userAgent.includes("Macintosh"),eu=(0,tF.PK)(tV),eh={autoFit:!1,duration:500,embedGlobalCSS:!0,fitRatio:.95,maxInitialScale:2,scrollForPan:ec,initialExpandLevel:-1,zoom:!0,pan:!0,toggleRecursively:!1,color:t=>{var e;return eu(`${(null==(e=t.state)?void 0:e.path)||""}`)},lineWidth:((t=1,e=3,n=2)=>r=>t+e/n**r.state.depth)(),maxWidth:0,nodeMinHeight:16,paddingX:8,spacingHorizontal:80,spacingVertical:5};function ef(t){if("string"==typeof t){let e=t;t=t=>t.matches(e)}let e=t;return function(){let t=Array.from(this.childNodes);return e&&(t=t.filter(t=>e(t))),t}}function ep(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function ed(t,e){var n,r,i,s,o,a=new ev(t),l=+t.value&&(a.value=t.value),c=[a];for(null==e&&(e=em);n=c.pop();)if(l&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=Array(o),s=o-1;s>=0;--s)c.push(r=n.children[s]=new ev(i[s])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(ey)}function em(t){return t.children}function eg(t){t.data=t.data.data}function ey(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ev(t){this.data=t,this.depth=this.height=0,this.parent=null}ev.prototype=ed.prototype={constructor:ev,count:function(){return this.eachAfter(ep)},each:function(t){var e,n,r,i,s=this,o=[s];do for(e=o.reverse(),o=[];s=e.pop();)if(t(s),n=s.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);while(o.length);return this},eachAfter:function(t){for(var e,n,r,i=this,s=[i],o=[];i=s.pop();)if(o.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)s.push(e[n]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return ed(this).eachBefore(eg)}};let{version:eb}={version:"2.1.2"},ek=Object.freeze({children:t=>t.children,nodeSize:t=>t.data.size,spacing:0});function ew(t){let e=Object.assign({},ek,t);function n(t){let n=e[t];return"function"==typeof n?n:()=>n}function r(t){let e=s(function(){let t=i(),e=n("nodeSize"),r=n("spacing");return class extends t{constructor(t){super(t),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return e(this.data)}spacing(t){return r(this.data,t.data)}get x(){return this.data.x}set x(t){this.data.x=t}get y(){return this.data.y}set y(t){this.data.y=t}update(){return e_(this),eA(this),this}}}(),t,t=>t.children);return e.update(),e.data}function i(){let t=n("nodeSize"),e=n("spacing");return class n extends ed.prototype.constructor{constructor(t){super(t)}copy(){let t=s(this.constructor,this,t=>t.children);return t.each(t=>t.data=t.data.data),t}get size(){return t(this)}spacing(t){return e(this,t)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){let t=this.ancestors();return t[t.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return null===this.children}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((t,e)=>n.maxExtents(t,e.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(t,e){return{top:Math.min(t.top,e.top),bottom:Math.max(t.bottom,e.bottom),left:Math.min(t.left,e.left),right:Math.max(t.right,e.right)}}}}function s(t,e,n){let r=(e,i)=>{let s=new t(e);Object.assign(s,{parent:i,depth:null===i?0:i.depth+1,height:0,length:1});let o=n(e)||[];return s.children=0===o.length?null:o.map(t=>r(t,s)),s.children&&Object.assign(s,s.children.reduce((t,e)=>({height:Math.max(t.height,e.height+1),length:t.length+e.length}),s)),s};return r(e,null)}return Object.assign(r,{nodeSize(t){return arguments.length?(e.nodeSize=t,r):e.nodeSize},spacing(t){return arguments.length?(e.spacing=t,r):e.spacing},children(t){return arguments.length?(e.children=t,r):e.children},hierarchy(t,n){let r=typeof n>"u"?e.children:n;return s(i(),t,r)},dump(t){let e=n("nodeSize"),r=t=>n=>{let i=t+" ",s=t+" ",{x:o,y:a}=n,l=e(n),c=n.children||[],u=0===c.length?" ":`,${i}children: [${s}${c.map(r(s)).join(s)}${i}],${t}`;return`{ size: [${l.join(", ")}],${i}x: ${o}, y: ${a}${u}},`};return r(` 26`)(t)}}),r}ew.version=eb;let e_=(t,e=0)=>(t.y=e,(t.children||[]).reduce((e,n)=>{let[r,i]=e;e_(n,t.y+t.ySize);let s=(0===r?n.lExt:n.rExt).bottom;0!==r&&eS(t,r,i);let o=eM(s,r,i);return[r+1,o]},[0,null]),ex(t),eI(t),t),eA=(t,e,n)=>{typeof e>"u"&&(e=-t.relX-t.prelim,n=0);let r=e+t.relX;return t.relX=r+t.prelim-n,t.prelim=0,t.x=n+t.relX,(t.children||[]).forEac
26h(e=>eA(e,r,t.x)),t},ex=t=>{(t.children||[]).reduce((t,e)=>{let[n,r]=t,i=n+e.shift,s=r+i+e.change;return e.relX+=s,[i,s]},[0,0])},eS=(t,e,n)=>{let r=t.children[e-1],i=t.children[e],s=r,o=r.relX,a=i,l=i.relX,c=!0;for(;s&&a;){s.bottom>n.lowY&&(n=n.next);let r=o+s.prelim-(l+a.prelim)+s.xSize/2+a.xSize/2+s.spacing(a);(r>0||r<0&&c)&&(l+=r,eE(i,r),eN(t,e,n.index,r)),c=!1;let u=s.bottom,h=a.bottom;u<=h&&(s=eO(s))&&(o+=s.relX),u>=h&&(a=eT(a))&&(l+=a.relX)}!s&&a?e$(t,e,a,l):s&&!a&&eC(t,e,s,o)},eE=(t,e)=>{t.relX+=e,t.lExtRelX+=e,t.rExtRelX+=e},eN=(t,e,n,r)=>{let i=t.children[e],s=e-n;if(s>1){let e=r/s;t.children[n+1].shift+=e,i.shift-=e,i.change-=r-e}},eT=t=>t.hasChildren?t.firstChild:t.lThr,eO=t=>t.hasChildren?t.lastChild:t.rThr,e$=(t,e,n,r)=>{let i=t.firstChild,s=i.lExt,o=t.children[e];s.lThr=n;let a=r-n.relX-i.lExtRelX;s.relX+=a,s.prelim-=a,i.lExt=o.lExt,i.lExtRelX=o.lExtRelX},eC=(t,e,n,r)=>{let i=t.children[e],s=i.rExt,o=t.children[e-1];s.rThr=n;let a=r-n.relX-i.rExtRelX;s.relX+=a,s.prelim-=a,i.rExt=o.rExt,i.rExtRelX=o.rExtRelX},eI=t=>{if(t.hasChildren){let e=t.firstChild,n=t.lastChild;Object.assign(t,{prelim:(e.prelim+e.relX-e.xSize/2+n.relX+n.prelim+n.xSize/2)/2,lExt:e.lExt,lExtRelX:e.lExtRelX,rExt:n.rExt,rExtRelX:n.rExtRelX})}},eM=(t,e,n)=>{for(;null!==n&&t>=n.lowY;)n=n.next;return{lowY:t,index:e,next:n}},eL="g.markmap-node",eB=function(t){let e=tZ,n=t0,r=tJ.x,i=tJ.y,s=null,o=null,a=(0,tW.d)(l);function l(){let l;let c=tQ.t.call(arguments),u=e.apply(this,c),h=n.apply(this,c);if(null==s&&(o=t(l=a())),o.lineStart(),c[0]=u,o.point(+r.apply(this,c),+i.apply(this,c)),c[0]=h,o.point(+r.apply(this,c),+i.apply(this,c)),o.lineEnd(),l)return o=null,l+""||null}return l.source=function(t){return arguments.length?(e=t,l):e},l.target=function(t){return arguments.length?(n=t,l):n},l.x=function(t){return arguments.length?(r="function"==typeof t?t:(0,tG.Z)(+t),l):r},l.y=function(t){return arguments.length?(i="function"==typeof t?t:(0,tG.Z)(+t),l):i},l.context=function(e){return arguments.length?(null==e?s=o=null:o=t(s=e),l):s},l}(tH.sj);function eR(t,e){let n=function(t,e){let n;let r=-1,i=-1;if(void 0===e)for(let e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let s of t)null!=(s=e(s,++i,t))&&(n>s||void 0===n&&s>=s)&&(n=s,r=i);return r}(t,e);return t[n]}function ej(t){t.stopPropagation()}let eK=new i.ew;class ez{constructor(t,e){this.options={...eh},this._disposeList=[],this.handleZoom=t=>{let{transform:e}=t;this.g.attr("transform",e)},this.handlePan=t=>{t.preventDefault();let e=et(this.svg.node()),n=e.translate(-t.deltaX/e.k,-t.deltaY/e.k);this.svg.call(this.zoom.transform,n)},this.handleClick=(t,e)=>{let n=this.options.toggleRecursively;(ec?t.metaKey:t.ctrlKey)&&(n=!n),this.toggleNode(e,n)},this.ensureView=this.ensureVisible,this.svg=t.datum?t:tY(t),this.styleNode=this.svg.append("style"),this.zoom=(function(){var t,e,n,r=er,i=ei,s=el,o=eo,a=ea,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,h=t3,f=G("start","zoom","end"),p=0,d=10;function m(t){t.property("__zoom",es).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",x).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",N).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new t5(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new t5(t.k,r,i)}function v(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,r){t.on("start.zoom",function(){k(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,s=k(this,t).event(r),o=i.apply(this,t),a=null==n?v(o):"function"==typeof n?n.apply(this,t):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=this.__zoom,u="function"==typeof e?e.apply(this,t):e,f=h(c.invert(a).concat(l/c.k),u.invert(a).concat(l/u.k));return function(t){if(1===t)t=u;else{var e=f(t),n=l/e[2];t=new t5(n,a[0]-e[0]*n,a[1]-e[1]*n)}s.zoom(null,t)}})}function k(t,e,n){return!n&&t.__zooming||new w(t,e)}function w(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}
vendor: 4,593 bytes, line 26
26function _(t,...e){if(r.apply(this,arguments)){var n=k(this,e).event(t),i=this.__zoom,a=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,o.apply(this,arguments)))),u=t4(t);if(n.wheel)(n.mouse[0][0]!==u[0]||n.mouse[0][1]!==u[1])&&(n.mouse[1]=i.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(i.k===a)return;n.mouse=[u,i.invert(u)],t_(this),n.start()}en(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",s(y(g(i,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function A(t,...e){if(!n&&r.apply(this,arguments)){var i,o,a,l=t.currentTarget,u=k(this,e,!0).event(t),h=tY(t.view).on("mousemove.zoom",function(t){if(en(t),!u.moved){var e=t.clientX-d,n=t.clientY-m;u.moved=e*e+n*n>p}u.event(t).zoom("mouse",s(y(u.that.__zoom,u.mouse[0]=t4(t,l),u.mouse[1]),u.extent,c))},!0).on("mouseup.zoom",function(t){var e,n,r,i;h.on("mousemove.zoom mouseup.zoom",null),e=t.view,n=u.moved,r=e.document.documentElement,i=tY(e).on("dragstart.drag",null),n&&(i.on("click.drag",t2,t1),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect),en(t),u.event(t).end()},!0),f=t4(t,l),d=t.clientX,m=t.clientY;o=(i=t.view).document.documentElement,a=tY(i).on("dragstart.drag",t2,t1),"onselectstart"in o?a.on("selectstart.drag",t2,t1):(o.__noselect=o.style.MozUserSelect,o.style.MozUserSelect="none"),ee(t),u.mouse=[f,this.__zoom.invert(f)],t_(this),u.start()}}function x(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,o=t4(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(o),l=n.k*(t.shiftKey?.5:2),h=s(y(g(n,l),o,a),i.apply(this,e),c);en(t),u>0?tY(this).transition().duration(u).call(b,h,o,t):tY(this).call(m.transform,h,o,t)}}function S(n,...i){if(r.apply(this,arguments)){var s,o,a,l,c=n.touches,u=c.length,h=k(this,i,n.changedTouches.length===u).event(n);for(ee(n),o=0;o<u;++o)l=[l=t4(a=c[o],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),s&&(h.taps<2&&(e=l[0],t=setTimeout(function(){t=null},500)),t_(this),h.start())}}function E(t,...e){if(this.__zooming){var n,r,i,o,a=k(this,e).event(t),l=t.changedTouches,u=l.length;for(en(t),n=0;n<u;++n)i=t4(r=l[n],this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var h=a.touch0[0],f=a.touch0[1],p=a.touch1[0],d=a.touch1[1],m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m,v=(v=d[0]-f[0])*v+(v=d[1]-f[1])*v;r=g(r,Math.sqrt(m/v)),i=[(h[0]+p[0])/2,(h[1]+p[1])/2],o=[(f[0]+d[0])/2,(f[1]+d[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",s(y(r,i,o),a.extent,c))}}function N(t,...r){if(this.__zooming){var i,s,o=k(this,r).event(t),a=t.changedTouches,l=a.length;for(ee(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)s=a[i],o.touch0&&o.touch0[2]===s.identifier?delete o.touch0:o.touch1&&o.touch1[2]===s.identifier&&delete o.touch1;if(o.touch1&&!o.touch0&&(o.touch0=o.touch1,delete o.touch1),o.touch0)o.touch0[1]=this.__zoom.invert(o.touch0[0]);else if(o.end(),2===o.taps&&(s=t4(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<d)){var c=tY(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return m.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",es),t!==i?b(t,e,n,r):i.interrupt().each(function(){k(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},m.scaleBy=function(t,e,n,r){m.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,r)},m.scaleTo=function(t,e,n,r){m.transform(t,function(){var t=i.apply(this,arguments),r=this.__zoom,o=null==n?v(t):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(o),l="function"==typeof e?e.apply(this,arguments):e;return s(y(g(r,l),o,a),t,c)},n,r)},m.translateBy=function(t,e,n,r){m.transform(t,function(){return s(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)},null,r)},m.translateTo=function(t,e,n,r,o){m.transform(t,function(){var t=i.apply(this,arguments),o=this.__zoom,a=null==r?v(t):"function"==typeof r?r.apply(this,arguments):r;return s(t7.translate(a[0],a[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)},r,o)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit
26("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=tY(this.that).datum();f.call(t,this.that,new t8(t,{sourceEvent:this.sourceEvent,target:m,type:t,transform:this.that.__zoom,dispatch:f}),e)}},m.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:t9(+t),m):o},m.filter=function(t){return arguments.length?(r="function"==typeof t?t:t9(!!t),m):r},m.touchable=function(t){return arguments.length?(a="function"==typeof t?t:t9(!!t),m):a},m.extent=function(t){return arguments.length?(i="function"==typeof t?t:t9([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),m):i},m.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],m):[l[0],l[1]]},m.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(t){return arguments.length?(s=t,m):s},m.duration=function(t){return arguments.length?(u=+t,m):u},m.interpolate=function(t){return arguments.length?(h=t,m):h},m.on=function(){var t=f.on.apply(f,arguments);return t===f?m:t},m.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,m):Math.sqrt(p)},m.tapDistance=function(t){return arguments.length?(d=+t,m):d},m})().filter(t=>this.options.scrollForPan&&"wheel"===t.type?t.ctrlKey&&!t.button:(!t.ctrlKey||"wheel"===t.type)&&!t.button).on("zoom",this.handleZoom),this.setOptions(e),this.state={id:this.options.id||this.svg.attr("id")||(0,i.zv)(),rect:{x1:0,y1:0,x2:0,y2:0}},this.g=this.svg.append("g"),this.g.append("g").attr("class","markmap-highlight"),this._observer=new ResizeObserver((0,i.Ds)(()=>{this.renderData()},100)),this._disposeList.push(eK.tap(()=>{this.setData()}),()=>this._observer.disconnect())}getStyleContent(){let{style:t}=this.options,{id:e}=this.state,n="function"==typeof t?t(e):"";return[this.options.embedGlobalCSS&&".markmap{--markmap-max-width: 9999px;--markmap-a-color: #0097e6;--markmap-a-hover-color: #00a8ff;--markmap-code-bg: #f0f0f0;--markmap-code-color: #555;--markmap-highlight-bg: #ffeaa7;--markmap-table-border: 1px solid currentColor;--markmap-font: 300 16px/20px sans-serif;--markmap-circle-open-bg: #fff;--markmap-text-color: #333;--markmap-highlight-node-bg: #ff02;font:var(--markmap-font);color:var(--markmap-text-color)}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign p{margin:0}.markmap-foreign a{color:var(--markmap-a-color)}.markmap-foreign a:hover{color:var(--markmap-a-hover-color)}.markmap-foreign code{padding:.25em;font-size:calc(1em - 2px);color:var(--markmap-code-color);background-color:var(--markmap-code-bg);border-radius:2px}.markmap-foreign pre{margin:0}.markmap-foreign pre>code{display:block}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:700}.markmap-foreign mark{background:var(--markmap-highlight-bg)}.markmap-foreign table,.markmap-foreign th,.markmap-foreign td{border-collapse:collapse;border:var(--markmap-table-border)}.markmap-foreign img{display:inline-block}.markmap-foreign svg{fill:currentColor}.markmap-foreign>div{width:var(--markmap-max-width);text-align:left}.markmap-foreign>div>div{display:inline-block}.markmap-highlight rect{fill:var(--markmap-highlight-node-bg)}.markmap-dark .markmap{--markmap-code-bg: #1a1b26;--markmap-code-color: #ddd;--markmap-circle-open-bg: #444;--markmap-text-color: #eee}",n].filter(Boolean).join(` 27`)}updateStyle(){this.svg.attr("class",(0,i.cn)(this.svg.attr("class"),"markmap",this.state.id));let t=this.getStyleContent();this.styleNode.text(t)}async toggleNode(t,e=!1){var n,r;let s=null!=(n=t.payload)&&n.fold?0:1;e?(0,i.in)(t,(t,e)=>{t.payload={...t.payload,fold:s},e()}):t.payload={...t.payload,fold:null!=(r=t.payload)&&r.fold?0:1},await this.renderData(t)}_initializeData(t){let e=0,{color:n,initialExpandLevel:r}=this.options,s=0,o=0;return(0,i.in)(t,(t,i,a)=>{var l,c,u,h;o+=1,t.children=null==(l=t.children)?void 0:l.map(t=>({...t})),e+=1,t.state={...t.state,depth:o,id:e,rect:{x:0,y:0,width:0,height:0},size:[0,0]},t.state.key=[null==(c=null==a?void 0:a.state)?void 0:c.id,t.state.id].filter(
27Boolean).join(".")+function(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return(e>>>0).toString(36)}(t.content),t.state.path=[null==(u=null==a?void 0:a.state)?void 0:u.path,t.state.id].filter(Boolean).join("."),n(t);let f=(null==(h=t.payload)?void 0:h.fold)===2;f?s+=1:(s||r>=0&&t.state.depth>=r)&&(t.payload={...t.payload,fold:1}),i(),f&&(s-=1),o-=1}),t}_relayout(){if(!this.state.data)return;this.g.selectAll(ef(eL)).selectAll(ef("foreignObject")).each(function(t){var e;let n=null==(e=this.firstChild)?void 0:e.firstChild,r=[n.scrollWidth,n.scrollHeight];t.state.size=r});let{lineWidth:t,paddingX:e,spacingHorizontal:n,spacingVertical:r}=this.options,i=ew({}).children(t=>{var e;if(!(null!=(e=t.payload)&&e.fold))return t.children}).nodeSize(t=>{let[r,i]=t.data.state.size;return[i,r+(r?2*e:0)+n]}).spacing((e,n)=>(e.parent===n.parent?r:2*r)+t(e.data)),a=i.hierarchy(this.state.data);i(a);let l=a.descendants();l.forEach(t=>{t.data.state.rect={x:t.y,y:t.x-t.xSize/2,width:t.ySize-n,height:t.xSize}}),this.state.rect={x1:(0,o.Z)(l,t=>t.data.state.rect.x)||0,y1:(0,o.Z)(l,t=>t.data.state.rect.y)||0,x2:(0,s.Z)(l,t=>t.data.state.rect.x+t.data.state.rect.width)||0,y2:(0,s.Z)(l,t=>t.data.state.rect.y+t.data.state.rect.height)||0}}setOptions(t){this.options={...this.options,...t},this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.options.pan?this.svg.on("wheel",this.handlePan):this.svg.on("wheel",null)}async setData(t,e){e&&this.setOptions(e),t&&(this.state.data=this._initializeData(t)),this.state.data&&(this.updateStyle(),await this.renderData())}async setHighlight(t){this.state.highlight=t||void 0,await this.renderData()}_getHighlightRect(t){let e=4/et(this.svg.node()).k,n={...t.state.rect};return n.x-=e,n.y-=e,n.width+=2*e,n.height+=2*e,n}async renderData(t){let{paddingX:e,autoFit:n,color:r,maxWidth:s,lineWidth:o}=this.options,a=this.state.data;if(!a)return;let l={},c={},u=[];(0,i.in)(a,(t,e,n)=>{var r;null!=(r=t.payload)&&r.fold||e(),l[t.state.id]=t,n&&(c[t.state.id]=n.state.id),u.push(t)});let h={},f={},p=t=>{!t||h[t.state.id]||(0,i.in)(t,(e,n)=>{h[e.state.id]=t.state.id,n()})},d=t=>f[h[t.state.id]]||a.state.rect,m=t=>(l[h[t.state.id]]||a).state.rect;f[a.state.id]=a.state.rect,t&&p(t);let{highlight:g}=this.state;g&&!l[g.state.id]&&(g=void 0);let y=this.g.selectAll(ef("g.markmap-highlight")).selectAll(ef("rect")).data(g?[this._getHighlightRect(g)]:[]).join("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height),v=this.g.selectAll(ef(eL)).each(t=>{f[t.state.id]=t.state.rect}).data(u,t=>t.state.key),b=v.enter().append("g").attr("data-depth",t=>t.state.depth).attr("data-path",t=>t.state.path).each(t=>{p(l[c[t.state.id]])}),k=v.exit().each(t=>{p(l[c[t.state.id]])}),w=v.merge(b).attr("class",t=>{var e;return["markmap-node",(null==(e=t.payload)?void 0:e.fold)&&"markmap-fold"].filter(Boolean).join(" ")}),_=w.selectAll(ef("line")).data(t=>[t],t=>t.state.key),A=_.enter().append("line").attr("stroke",t=>r(t)).attr("stroke-width",0),x=_.merge(A),S=w.selectAll(ef("circle")).data(t=>{var e;return null!=(e=t.children)&&e.length?[t]:[]},t=>t.state.key),E=S.enter().append("circle").attr("stroke-width",0).attr("r",0).on("click",(t,e)=>this.handleClick(t,e)).on("mousedown",ej).merge(S).attr("stroke",t=>r(t)).attr("fill",t=>{var e;return null!=(e=t.payload)&&e.fold&&t.children?r(t):"var(--markmap-circle-open-bg)"}),N=this._observer,T=w.selectAll(ef("foreignObject")).data(t=>[t],t=>t.state.key),O=T.enter().append("foreignObject").attr("class","markmap-foreign").attr("x",e).attr("y",0).style("opacity",0).on("mousedown",ej).on("dblclick",ej);O.append("xhtml:div").append("xhtml:div").html(t=>t.content).attr("xmlns","http://www.w3.org/1999/xhtml"),O.each(function(){var t;let e=null==(t=this.firstChild)?void 0:t.firstChild;N.observe(e)});let $=k.selectAll(ef("foreignObject"));$.each(function(){var t;let e=null==(t=this.firstChild)?void 0:t.firstChild;N.unobserve(e)});let C=O.merge(T),I=u.flatMap(t=>{var e;return null!=(e=t.payload)&&e.fold?[]:t.children.map(e=>({source:t,target:e}))}),M=this.g.selectAll(ef("path.markmap-link")).data(I,t=>t.target.state.key),L=M.exit(),B=M.enter().insert("path","g").attr("class","markmap-link").attr("data-depth",t=>t.target.state.depth).attr("data-path",t=>t.target.state.path).attr("d",t=>{let e=d(t.target),n=[e.x+e.width,e.y+e.height];return eB({source:n,target:n})}).attr("stroke-width",0).merge(M);this.svg.style("--markmap-max-width",s?`${s}px`:null),await new Promise(requestAnimationFrame),this._relayout(),y=y.data(g?[this._getHighlightRect(g)]:[]).join("rect"),this.transition(y).attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height),b.attr("transform",t=>{let e=d(t);return`translate(${e.x+e.width-t.state.rect.width},${e.y+e.height-t.state.rect.height})`}),this.transition(k).attr("transform",t=>{let e=m(t),n=e.x+e.width-t.state.rect.width,r=e.y+e.height-t.state.rect.height;return`translate(${n},${r})`}).remove(),this.transition(w).attr("transform",t=>`translate(${t.state.rect.x},${t.state.rect.y})`);let R=k.selectAll(ef("line"));this.transition(R).attr("x1",t=>t.state.rect.width).attr("stroke-width",0),A.attr("x1",t=>t.state.rect.width).attr("x2",t=>t.state.rect.width),x.attr("y1",t=>t.state.rect.height+o(t)/2).attr("y2",t=>t.state.rect.height+o(t)/2),this.transition(x).attr("x1",-1).attr("x2",t=>t.state.rect.width+2).attr("stroke",t=>r(t)).attr("stroke-width",o);let j=k.selectAll(ef("circle"));this.transition(j).attr("r",0).attr("stroke-width",0),E.attr("cx",t=>t.state.rect.width).attr("cy",t=>t.state.rect.height+o(t)/2),this.transition(E).attr("r",6).attr("stroke-width","1.5"),this.transition($).style("opacity",0),C.attr("width",t=>Math.max(0,t.state.rect.width-2*e)).attr("height",t=>t.state.rect.height),this.transition(C).style("opacity",1),this.transition(L).attr("d",t=>{let e=m(t.target),n=[e.x+e.width,e.y+e.height+o(t.target)/2];return eB({source:n,target:n})}).attr("stroke-width",0).remove(),this.transition(B).attr("stroke",t=>r(t.target)).attr("stroke-width",t=>o(t.target)).attr("d",t=>{let e=t.source,n=t.target;return eB({source:[e.state.rect.x+e.state.rect.width,e.state.rect.y+e.state.rect.height+o(e)/2],target:[n.state.rect.x,n.state.rect.y+n.state.rect.height+o(n)/2]})}),n&&this.fit()}transition(t){let{duration:e}=this.options;return t.transition().duration(e)}async fit(t=this.options.maxInitialScale){let{width:e,height:n}=this.svg.node().getBoundingClientRect(),{fitRatio:r}=this.options,{x1:s,y1:o,x2:a,y2:l}=this.state.rect,c=a-s,u=l-o,h=Math.min(e/c*r,n/u*r,t),f=t7.translate((e-c*h)/2-s*h,(n-u*h)/2-o*h).scale(h);return this.transition(this.svg).call(this.zoom.transform,f).end().catch(i.ZT)}findElement(t){let e;return this.g.selectAll(ef(eL)).each(function(n){n===t&&(e={data:n,g:this})}),e}async ensureVisible(t,e){var n;let r=null==(n=this.findElement(t))?void 0:n.data;if(!r)return;let s=this.svg.node(),o=s.getBoundingClientRect(),a=et(s),[l,c]=[r.state.rect.x,r.state.rect.x+r.state.rect.width+2].map(t=>t*a.k+a.x),[u,h]=[r.state.rect.y,r.state.rect.y+r.state.rect.height].map(t=>t*a.k+a.y),f={left:0,right:0,top:0,bottom:0,...e}
27,p=[f.left-l,o.width-f.right-c],d=[f.top-u,o.height-f.bottom-h],m=p[0]*p[1]>0?eR(p,Math.abs)/a.k:0,g=d[0]*d[1]>0?eR(d,Math.abs)/a.k:0;if(m||g){let t=a.translate(m,g);return this.transition(this.svg).call(this.zoom.transform,t).end().catch(i.ZT)}}async centerNode(t,e){var n;let r=null==(n=this.findElement(t))?void 0:n.data;if(!r)return;let s=this.svg.node(),o=s.getBoundingClientRect(),a=et(s),l=(r.state.rect.x+r.state.rect.width/2)*a.k+a.x,c=(r.state.rect.y+r.state.rect.height/2)*a.k+a.y,u={left:0,right:0,top:0,bottom:0,...e},h=(u.left+o.width-u.right)/2,f=(u.top+o.height-u.bottom)/2,p=(h-l)/a.k,d=(f-c)/a.k;if(p||d){let t=a.translate(p,d);return this.transition(this.svg).call(this.zoom.transform,t).end().catch(i.ZT)}}async rescale(t){let e=this.svg.node(),{width:n,height:r}=e.getBoundingClientRect(),s=et(e),o=s.translate((n/2-s.x)*(1-t)/s.k,(r/2-s.y)*(1-t)/s.k).scale(t);return this.transition(this.svg).call(this.zoom.transform,o).end().catch(i.ZT)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this._disposeList.forEach(t=>{t()})}static create(t,e,n=null){let r=new ez(t,e);return n&&r.setData(n).then(()=>{r.fit()}),r}}}}]); 28//# chunkId=01a1031d-f0fb-7411-8d3c-3a0af544e9e9
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.