dorkos 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +5 -5
- package/dist/client/assets/{TopologyGraph-D40rtjiX.js → TopologyGraph-BvCWa6bR.js} +1 -1
- package/dist/client/assets/{highlighted-body-OFNGDK62-CBGtM5Ui.js → highlighted-body-OFNGDK62-DCY9VaVL.js} +1 -1
- package/dist/client/assets/{index-CDiTLqeC.js → index-BDIKcnHS.js} +1 -1
- package/dist/client/assets/{index-Dvb_t9KD.js → index-C7JPFoZp.js} +289 -289
- package/dist/client/assets/{index-ChWLyxbP.js → index-GX0kJI82.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +40 -1
- package/dist/server/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/client/assets/TopologyGraph-YjSpORAp.js +0 -40
- package/dist/client/assets/highlighted-body-OFNGDK62-FmdGSHPA.js +0 -1
- package/dist/client/assets/index-DLrymlpV.js +0 -1
- package/dist/client/assets/index-DZWy2W_p.js +0 -69
- package/dist/client/assets/index-KOXD1Zj-.js +0 -1098
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,R as x,L as d,j as f,A as p}from"./index-Dvb_t9KD.js";var N=({code:i,language:e,raw:a,className:u,startLine:n,lineNumbers:g,...m})=>{let{shikiTheme:l}=r.useContext(x),s=d(),[h,t]=r.useState(a);return r.useEffect(()=>{if(!s){t(a);return}let o=s.highlight({code:i,language:e,themes:l},c=>{t(c)});o&&t(o)},[i,e,l,s,a]),f.jsx(p,{className:u,language:e,lineNumbers:g,result:h,startLine:n,...m})};export{N as HighlightedCodeBlockBody};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as b,j as e,T as f,C as v,P as N,a as E,c as g,B as k,S,u as w,b as y,d as C,e as T,f as R,g as z,t as m}from"./index-KOXD1Zj-.js";import{E as M,h as _,i as B,k as H}from"./index-KOXD1Zj-.js";const P=new Set(["disabled","discovered","incompatible","invalid"]);function I({extension:o,onToggle:u,isToggling:c}){const{manifest:s,status:t,scope:h,error:n}=o,[r,a]=b.useState(!1),x=!P.has(t),d=t==="incompatible",l=t==="invalid",i=t==="compile_error"||t==="activate_error",j=!d&&!l;return e.jsx("div",{"data-slot":"extension-card","data-testid":`extension-card-${o.id}`,className:g("bg-card rounded-xl border p-4",i&&"border-amber-500/50",(d||l)&&"opacity-70"),children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[i&&e.jsx(f,{className:"size-4 shrink-0 text-amber-500","aria-hidden":"true"}),(d||l)&&!i&&e.jsx(v,{className:"text-muted-foreground size-4 shrink-0","aria-hidden":"true"}),!i&&!d&&!l&&e.jsx(N,{className:"text-muted-foreground size-4 shrink-0","aria-hidden":"true"}),e.jsx("span",{className:"font-medium",children:s.name}),e.jsxs("span",{className:"text-muted-foreground text-sm",children:["v",s.version]})]}),s.description&&e.jsx("p",{className:"text-muted-foreground text-sm",children:s.description}),d&&s.minHostVersion&&e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Requires DorkOS >= ",s.minHostVersion]}),i&&n&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-sm text-amber-600 dark:text-amber-400",children:[t==="compile_error"?"Compilation error: ":"Activation failed: ",n.message]}),n.details&&e.jsxs("button",{type:"button",onClick:()=>a(p=>!p),className:"text-muted-foreground hover:text-foreground flex items-center gap-1 text-xs transition-colors","aria-expanded":r,children:[e.jsx(E,{className:g("size-3 transition-transform",r&&"rotate-180")}),r?"Hide details":"Show details"]}),r&&n.details&&e.jsx("pre",{className:"bg-muted mt-1 max-h-32 overflow-auto rounded-md p-2 text-xs",children:n.details})]}),e.jsxs("div",{className:"text-muted-foreground flex flex-wrap items-center gap-2 text-xs",children:[e.jsx(k,{variant:"outline",className:"text-xs",children:h}),s.author&&e.jsx("span",{children:s.author})]})]}),e.jsx("div",{className:"pt-0.5",children:e.jsx(S,{checked:x,onCheckedChange:p=>u(o.id,p),disabled:!j||c,"aria-label":`${x?"Disable":"Enable"} ${s.name}`})})]})})}function A(){const{data:o=[],isLoading:u}=w(),c=y(),s=C(),t=T(),h=new Set([...c.variables?[c.variables]:[],...s.variables?[s.variables]:[]]);async function n(a,x){(x?c:s).mutate(a,{onSuccess:()=>{m.info("Extension changed — reload the page to apply",{action:{label:"Reload now",onClick:()=>location.reload()}})},onError:l=>{const i=x?"enable":"disable";m.error(`Failed to ${i} extension: ${l.message}`)}})}function r(){t.mutate(void 0,{onSuccess:a=>{m.success(`Reloaded ${a.length} extension(s)`)},onError:()=>{m.error("Failed to reload extensions")}})}return u?e.jsx("div",{className:"text-muted-foreground py-8 text-center text-sm",children:"Loading extensions…"}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Extensions add new UI and capabilities to DorkOS. Place them in"," ",e.jsx("code",{className:"bg-muted rounded px-1",children:"~/.dork/extensions/"})," or"," ",e.jsx("code",{className:"bg-muted rounded px-1",children:".dork/extensions/"})," in your project."]}),o.length===0?e.jsx("div",{className:"text-muted-foreground py-8 text-center text-sm","data-testid":"no-extensions",children:e.jsx("p",{children:"No extensions installed."})}):e.jsx("div",{className:"space-y-3",children:o.map(a=>e.jsx(I,{extension:a,onToggle:n,isToggling:h.has(a.id)},a.id))}),e.jsx("div",{className:"flex justify-end",children:e.jsxs(R,{variant:"outline",size:"sm",onClick:r,disabled:t.isPending,"data-testid":"reload-extensions-button",children:[e.jsx(z,{className:g("mr-2 size-4",t.isPending&&"animate-spin")}),"Reload Extensions"]})})]})}export{M as ExtensionLoader,_ as ExtensionProvider,A as ExtensionsSettingsTab,B as createExtensionAPI,H as useExtensions};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var xt=Object.defineProperty;var wt=(e,n,i)=>n in e?xt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var N=(e,n,i)=>wt(e,typeof n!="symbol"?n+"":n,i);import{l as bt,j as v,r as ee}from"./index-Dvb_t9KD.js";var on={exports:{}};/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var _n;function At(){return _n||(_n=1,(function(e){(function(){var n={}.hasOwnProperty;function i(){for(var o="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(o=r(o,t(s)))}return o}function t(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return i.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var s in o)n.call(o,s)&&o[s]&&(l=r(l,s));return l}function r(o,l){return l?o?o+" "+l:o+l:o}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(on)),on.exports}var Ct=At();const X=bt(Ct);var Mn=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function kt(e,n){return!!(e===n||Mn(e)&&Mn(n))}function St(e,n){if(e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(!kt(e[i],n[i]))return!1;return!0}function Et(e,n){n===void 0&&(n=St);var i=null;function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(i&&i.lastThis===this&&n(r,i.lastArgs))return i.lastResult;var l=e.apply(this,r);return i={lastResult:l,lastArgs:r,lastThis:this},l}return t.clear=function(){i=null},t}function Ot(e,n,i){let t=0,r;const o={},l=[];return e.forEach((s,a)=>{const c=n.some(f=>f>=a-i&&f<=a+i);!c&&r===void 0?(r={index:t,startLine:a,endLine:a,lines:1},l.push(r),o[a]=r.index,t++):!c&&r?(r.endLine=a,r.lines++,o[a]=r.index):r=void 0}),{lineBlocks:o,blocks:l}}class ae{diff(n,i,t={}){let r;typeof t=="function"?(r=t,t={}):"callback"in t&&(r=t.callback);const o=this.castInput(n,t),l=this.castInput(i,t),s=this.removeEmpty(this.tokenize(o,t)),a=this.removeEmpty(this.tokenize(l,t));return this.diffWithOptionsObj(s,a,t,r)}diffWithOptionsObj(n,i,t,r){var o;const l=m=>{if(m=this.postProcess(m,t),r){setTimeout(function(){r(m)},0);return}else return m},s=i.length,a=n.length;let c=1,f=s+a;t.maxEditLength!=null&&(f=Math.min(f,t.maxEditLength));const u=(o=t.timeout)!==null&&o!==void 0?o:1/0,d=Date.now()+u,g=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(g[0],i,n,0,t);if(g[0].oldPos+1>=a&&h+1>=s)return l(this.buildValues(g[0].lastComponent,i,n));let p=-1/0,y=1/0;const x=()=>{for(let m=Math.max(p,-c);m<=Math.min(y,c);m+=2){let w;const C=g[m-1],b=g[m+1];C&&(g[m-1]=void 0);let E=!1;if(b){const O=b.oldPos-m;E=b&&0<=O&&O<s}const A=C&&C.oldPos+1<a;if(!E&&!A){g[m]=void 0;continue}if(!A||E&&C.oldPos<b.oldPos?w=this.addToPath(b,!0,!1,0,t):w=this.addToPath(C,!1,!0,1,t),h=this.extractCommon(w,i,n,m,t),w.oldPos+1>=a&&h+1>=s)return l(this.buildValues(w.lastComponent,i,n))||!0;g[m]=w,w.oldPos+1>=a&&(y=Math.min(y,m-1)),h+1>=s&&(p=Math.max(p,m+1))}c++};if(r)(function m(){setTimeout(function(){if(c>f||Date.now()>d)return r(void 0);x()||m()},0)})();else for(;c<=f&&Date.now()<=d;){const m=x();if(m)return m}}addToPath(n,i,t,r,o){const l=n.lastComponent;return l&&!o.oneChangePerToken&&l.added===i&&l.removed===t?{oldPos:n.oldPos+r,lastComponent:{count:l.count+1,added:i,removed:t,previousComponent:l.previousComponent}}:{oldPos:n.oldPos+r,lastComponent:{count:1,added:i,removed:t,previousComponent:l}}}extractCommon(n,i,t,r,o){const l=i.length,s=t.length;let a=n.oldPos,c=a-r,f=0;for(;c+1<l&&a+1<s&&this.equals(t[a+1],i[c+1],o);)c++,a++,f++,o.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return f&&!o.oneChangePerToken&&(n.lastComponent={count:f,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=a,c}equals(n,i,t){return t.comparator?t.comparator(n,i):n===i||!!t.ignoreCase&&n.toLowerCase()===i.toLowerCase()}removeEmpty(n){const i=[];for(let t=0;t<n.length;t++)n[t]&&i.push(n[t]);return i}castInput(n,i){return n}tokenize(n,i){return Array.from(n)}join(n){return n.join("")}postProcess(n,i){return n}get useLongestToken(){return!1}buildValues(n,i,t){const r=[];let o;for(;n;)r.push(n),o=n.previousComponent,delete n.previousComponent,n=o;r.reverse();const l=r.length;let s=0,a=0,c=0;for(;s<l;s++){const f=r[s];if(f.removed)f.value=this.join(t.slice(c,c+f.count)),c+=f.count;else{if(!f.added&&this.useLongestToken){let u=i.slice(a,a+f.count);u=u.map(function(d,g){const h=t[c+g];return h.length>d.length?h:d}),f.value=this.join(u)}else f.value=this.join(i.slice(a,a+f.count));a+=f.count,f.added||(c+=f.count)}}return r}}class Tt extends ae{}const gi=new Tt;function Lt(e,n,i){return gi.diff(e,n,i)}function Wn(e,n){let i;for(i=0;i<e.length&&i<n.length;i++)if(e[i]!=n[i])return e.slice(0,i);return e.slice(0,i)}function Hn(e,n){let i;if(!e||!n||e[e.length-1]!=n[n.length-1])return"";for(i=0;i<e.length&&i<n.length;i++)if(e[e.length-(i+1)]!=n[n.length-(i+1)])return e.slice(-i);return e.slice(-i)}function dn(e,n,i){if(e.slice(0,n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(n)}; this is a bug`);return i+e.slice(n.length)}function hn(e,n,i){if(!n)return e+i;if(e.slice(-n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(n)}; this is a bug`);return e.slice(0,-n.length)+i}function Se(e,n){return dn(e,n,"")}function We(e,n){return hn(e,n,"")}function Bn(e,n){return n.slice(0,Nt(e,n))}function Nt(e,n){let i=0;e.length>n.length&&(i=e.length-n.length);let t=n.length;e.length<n.length&&(t=e.length);const r=Array(t);let o=0;r[0]=0;for(let l=1;l<t;l++){for(n[l]==n[o]?r[l]=r[o]:r[l]=o;o>0&&n[l]!=n[o];)o=r[o];n[l]==n[o]&&o++}o=0;for(let l=i;l<e.length;l++){for(;o>0&&e[l]!=n[o];)o=r[o];e[l]==n[o]&&o++}return o}function It(e){return e.includes(`\r
|
|
6
|
-
`)&&!e.startsWith(`
|
|
7
|
-
`)&&!e.match(/[^\r]\n/)}function Ft(e){return!e.includes(`\r
|
|
8
|
-
`)&&e.includes(`
|
|
9
|
-
`)}function mi(e,n){const i=[];for(const t of Array.from(n.segment(e))){const r=t.segment;i.length&&/\s/.test(i[i.length-1])&&/\s/.test(r)?i[i.length-1]+=r:i.push(r)}return i}function pn(e,n){if(n)return Le(e,n)[1];let i;for(i=e.length-1;i>=0&&e[i].match(/\s/);i--);return e.substring(i+1)}function ve(e,n){if(n)return Le(e,n)[0];const i=e.match(/^\s*/);return i?i[0]:""}function Le(e,n){if(!n)return[ve(e),pn(e)];if(n.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');const i=mi(e,n),t=i[0],r=i[i.length-1],o=/\s/.test(t)?t:"",l=/\s/.test(r)?r:"";return[o,l]}const Ve="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",jt=new RegExp(`[${Ve}]+|\\s+|[^${Ve}]`,"ug");class Rt extends ae{equals(n,i,t){return t.ignoreCase&&(n=n.toLowerCase(),i=i.toLowerCase()),n.trim()===i.trim()}tokenize(n,i={}){let t;if(i.intlSegmenter){const l=i.intlSegmenter;if(l.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');t=mi(n,l)}else t=n.match(jt)||[];const r=[];let o=null;return t.forEach(l=>{/\s/.test(l)?o==null?r.push(l):r.push(r.pop()+l):o!=null&&/\s/.test(o)?r[r.length-1]==o?r.push(r.pop()+l):r.push(o+l):r.push(l),o=l}),r}join(n){return n.map((i,t)=>t==0?i:i.replace(/^\s+/,"")).join("")}postProcess(n,i){if(!n||i.oneChangePerToken)return n;let t=null,r=null,o=null;return n.forEach(l=>{l.added?r=l:l.removed?o=l:((r||o)&&Pn(t,o,r,l,i.intlSegmenter),t=l,r=null,o=null)}),(r||o)&&Pn(t,o,r,null,i.intlSegmenter),n}}const vi=new Rt;function Dt(e,n,i){return(i==null?void 0:i.ignoreWhitespace)!=null&&!i.ignoreWhitespace?xi(e,n,i):vi.diff(e,n,i)}function Pn(e,n,i,t,r){if(n&&i){const[o,l]=Le(n.value,r),[s,a]=Le(i.value,r);if(e){const c=Wn(o,s);e.value=hn(e.value,s,c),n.value=Se(n.value,c),i.value=Se(i.value,c)}if(t){const c=Hn(l,a);t.value=dn(t.value,a,c),n.value=We(n.value,c),i.value=We(i.value,c)}}else if(i){if(e){const o=ve(i.value,r);i.value=i.value.substring(o.length)}if(t){const o=ve(t.value,r);t.value=t.value.substring(o.length)}}else if(e&&t){const o=ve(t.value,r),[l,s]=Le(n.value,r),a=Wn(o,l);n.value=Se(n.value,a);const c=Hn(Se(o,a),s);n.value=We(n.value,c),t.value=dn(t.value,o,c),e.value=hn(e.value,o,o.slice(0,o.length-c.length))}else if(t){const o=ve(t.value,r),l=pn(n.value,r),s=Bn(l,o);n.value=We(n.value,s)}else if(e){const o=pn(e.value,r),l=ve(n.value,r),s=Bn(o,l);n.value=Se(n.value,s)}}class _t extends ae{tokenize(n){const i=new RegExp(`(\\r?\\n)|[${Ve}]+|[^\\S\\n\\r]+|[^${Ve}]`,"ug");return n.match(i)||[]}}const yi=new _t;function xi(e,n,i){return yi.diff(e,n,i)}function Mt(e,n){if(typeof e=="function")n.callback=e;else if(e)for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}class Wt extends ae{constructor(){super(...arguments),this.tokenize=wi}equals(n,i,t){return t.ignoreWhitespace?((!t.newlineIsToken||!n.includes(`
|
|
10
|
-
`))&&(n=n.trim()),(!t.newlineIsToken||!i.includes(`
|
|
11
|
-
`))&&(i=i.trim())):t.ignoreNewlineAtEof&&!t.newlineIsToken&&(n.endsWith(`
|
|
12
|
-
`)&&(n=n.slice(0,-1)),i.endsWith(`
|
|
13
|
-
`)&&(i=i.slice(0,-1))),super.equals(n,i,t)}}const kn=new Wt;function oe(e,n,i){return kn.diff(e,n,i)}function Ht(e,n,i){return i=Mt(i,{ignoreWhitespace:!0}),kn.diff(e,n,i)}function wi(e,n){n.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
14
|
-
`));const i=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(let r=0;r<t.length;r++){const o=t[r];r%2&&!n.newlineIsToken?i[i.length-1]+=o:i.push(o)}return i}function Bt(e){return e=="."||e=="!"||e=="?"}class Pt extends ae{tokenize(n){var i;const t=[];let r=0;for(let o=0;o<n.length;o++){if(o==n.length-1){t.push(n.slice(r));break}if(Bt(n[o])&&n[o+1].match(/\s/)){for(t.push(n.slice(r,o+1)),o=r=o+1;!((i=n[o+1])===null||i===void 0)&&i.match(/\s/);)o++;t.push(n.slice(r,o+1)),r=o+1}}return t}}const bi=new Pt;function $t(e,n,i){return bi.diff(e,n,i)}class Vt extends ae{tokenize(n){return n.split(/([{}:;,]|\s+)/)}}const Ai=new Vt;function Gt(e,n,i){return Ai.diff(e,n,i)}class Ut extends ae{constructor(){super(...arguments),this.tokenize=wi}get useLongestToken(){return!0}castInput(n,i){const{undefinedReplacement:t,stringifyReplacer:r=(o,l)=>typeof l>"u"?t:l}=i;return typeof n=="string"?n:JSON.stringify(Ge(n,null,null,r),null," ")}equals(n,i,t){return super.equals(n.replace(/,([\r\n])/g,"$1"),i.replace(/,([\r\n])/g,"$1"),t)}}const Ci=new Ut;function Yt(e,n,i){return Ci.diff(e,n,i)}function Ge(e,n,i,t,r){n=n||[],i=i||[],t&&(e=t(r===void 0?"":r,e));let o;for(o=0;o<n.length;o+=1)if(n[o]===e)return i[o];let l;if(Object.prototype.toString.call(e)==="[object Array]"){for(n.push(e),l=new Array(e.length),i.push(l),o=0;o<e.length;o+=1)l[o]=Ge(e[o],n,i,t,String(o));return n.pop(),i.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),typeof e=="object"&&e!==null){n.push(e),l={},i.push(l);const s=[];let a;for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&s.push(a);for(s.sort(),o=0;o<s.length;o+=1)a=s[o],l[a]=Ge(e[a],n,i,t,a);n.pop(),i.pop()}else l=e;return l}class zt extends ae{tokenize(n){return n.slice()}join(n){return n}removeEmpty(n){return n}}const ki=new zt;function qt(e,n,i){return ki.diff(e,n,i)}function Si(e){return Array.isArray(e)?e.map(n=>Si(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map((i,t)=>{var r;return i.startsWith("\\")||i.endsWith("\r")||!((r=n.lines[t+1])===null||r===void 0)&&r.startsWith("\\")?i:i+"\r"})}))})}function Ei(e){return Array.isArray(e)?e.map(n=>Ei(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map(i=>i.endsWith("\r")?i.substring(0,i.length-1):i)}))})}function Jt(e){return Array.isArray(e)||(e=[e]),!e.some(n=>n.hunks.some(i=>i.lines.some(t=>!t.startsWith("\\")&&t.endsWith("\r"))))}function Kt(e){return Array.isArray(e)||(e=[e]),e.some(n=>n.hunks.some(i=>i.lines.some(t=>t.endsWith("\r"))))&&e.every(n=>n.hunks.every(i=>i.lines.every((t,r)=>{var o;return t.startsWith("\\")||t.endsWith("\r")||((o=i.lines[r+1])===null||o===void 0?void 0:o.startsWith("\\"))})))}function Sn(e){const n=e.split(/\n/),i=[];let t=0;function r(){const s={};for(i.push(s);t<n.length;){const a=n[t];if(/^(---|\+\+\+|@@)\s/.test(a))break;const c=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(a);c&&(s.index=a.substring(c[0].length).trim()),t++}for(o(s),o(s),s.hunks=[];t<n.length;){const a=n[t];if(/^(Index:\s|diff\s|---\s|\+\+\+\s|===================================================================)/.test(a))break;if(/^@@/.test(a))s.hunks.push(l());else{if(a)throw new Error("Unknown line "+(t+1)+" "+JSON.stringify(a));t++}}}function o(s){const a=/^(---|\+\+\+)\s+/.exec(n[t]);if(a){const c=a[1],f=n[t].substring(3).trim().split(" ",2),u=(f[1]||"").trim();let d=f[0].replace(/\\\\/g,"\\");d.startsWith('"')&&d.endsWith('"')&&(d=d.substr(1,d.length-2)),c==="---"?(s.oldFileName=d,s.oldHeader=u):(s.newFileName=d,s.newHeader=u),t++}}function l(){var s;const a=t,c=n[t++],f=c.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),u={oldStart:+f[1],oldLines:typeof f[2]>"u"?1:+f[2],newStart:+f[3],newLines:typeof f[4]>"u"?1:+f[4],lines:[]};u.oldLines===0&&(u.oldStart+=1),u.newLines===0&&(u.newStart+=1);let d=0,g=0;for(;t<n.length&&(g<u.oldLines||d<u.newLines||!((s=n[t])===null||s===void 0)&&s.startsWith("\\"));t++){const h=n[t].length==0&&t!=n.length-1?" ":n[t][0];if(h==="+"||h==="-"||h===" "||h==="\\")u.lines.push(n[t]),h==="+"?d++:h==="-"?g++:h===" "&&(d++,g++);else throw new Error(`Hunk at line ${a+1} contained invalid line ${n[t]}`)}if(!d&&u.newLines===1&&(u.newLines=0),!g&&u.oldLines===1&&(u.oldLines=0),d!==u.newLines)throw new Error("Added line count did not match for hunk at line "+(a+1));if(g!==u.oldLines)throw new Error("Removed line count did not match for hunk at line "+(a+1));return u}for(;t<n.length;)r();return i}function Zt(e,n,i){let t=!0,r=!1,o=!1,l=1;return function s(){if(t&&!o){if(r?l++:t=!1,e+l<=i)return e+l;o=!0}if(!r)return o||(t=!0),n<=e-l?e-l++:(r=!0,s())}}function Oi(e,n,i={}){let t;if(typeof n=="string"?t=Sn(n):Array.isArray(n)?t=n:t=[n],t.length>1)throw new Error("applyPatch only works with a single input.");return Qt(e,t[0],i)}function Qt(e,n,i={}){(i.autoConvertLineEndings||i.autoConvertLineEndings==null)&&(It(e)&&Jt(n)?n=Si(n):Ft(e)&&Kt(n)&&(n=Ei(n)));const t=e.split(`
|
|
15
|
-
`),r=n.hunks,o=i.compareLine||((h,p,y,x)=>p===x),l=i.fuzzFactor||0;let s=0;if(l<0||!Number.isInteger(l))throw new Error("fuzzFactor must be a non-negative integer");if(!r.length)return e;let a="",c=!1,f=!1;for(let h=0;h<r[r.length-1].lines.length;h++){const p=r[r.length-1].lines[h];p[0]=="\\"&&(a[0]=="+"?c=!0:a[0]=="-"&&(f=!0)),a=p}if(c){if(f){if(!l&&t[t.length-1]=="")return!1}else if(t[t.length-1]=="")t.pop();else if(!l)return!1}else if(f){if(t[t.length-1]!="")t.push("");else if(!l)return!1}function u(h,p,y,x=0,m=!0,w=[],C=0){let b=0,E=!1;for(;x<h.length;x++){const A=h[x],O=A.length>0?A[0]:" ",F=A.length>0?A.substr(1):A;if(O==="-")if(o(p+1,t[p],O,F))p++,b=0;else return!y||t[p]==null?null:(w[C]=t[p],u(h,p+1,y-1,x,!1,w,C+1));if(O==="+"){if(!m)return null;w[C]=F,C++,b=0,E=!0}if(O===" ")if(b++,w[C]=t[p],o(p+1,t[p],O,F))C++,m=!0,E=!1,p++;else return E||!y?null:t[p]&&(u(h,p+1,y-1,x+1,!1,w,C+1)||u(h,p+1,y-1,x,!1,w,C+1))||u(h,p,y-1,x+1,!1,w,C)}return C-=b,p-=b,w.length=C,{patchedLines:w,oldLineLastI:p-1}}const d=[];let g=0;for(let h=0;h<r.length;h++){const p=r[h];let y;const x=t.length-p.oldLines+l;let m;for(let w=0;w<=l;w++){m=p.oldStart+g-1;const C=Zt(m,s,x);for(;m!==void 0&&(y=u(p.lines,m,w),!y);m=C());if(y)break}if(!y)return!1;for(let w=s;w<m;w++)d.push(t[w]);for(let w=0;w<y.patchedLines.length;w++){const C=y.patchedLines[w];d.push(C)}s=y.oldLineLastI+1,g=m+1-p.oldStart}for(let h=s;h<t.length;h++)d.push(t[h]);return d.join(`
|
|
16
|
-
`)}function Xt(e,n){const i=typeof e=="string"?Sn(e):e;let t=0;function r(){const o=i[t++];if(!o)return n.complete();n.loadFile(o,function(l,s){if(l)return n.complete(l);const a=Oi(s,o,n);n.patched(o,a,function(c){if(c)return n.complete(c);r()})})}r()}function Ti(e){return Array.isArray(e)?e.map(n=>Ti(n)).reverse():Object.assign(Object.assign({},e),{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(n=>({oldLines:n.newLines,oldStart:n.newStart,newLines:n.oldLines,newStart:n.oldStart,lines:n.lines.map(i=>i.startsWith("-")?`+${i.slice(1)}`:i.startsWith("+")?`-${i.slice(1)}`:i)}))})}const Li={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},er={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},nr={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function gn(e,n,i,t,r,o,l){let s;l?typeof l=="function"?s={callback:l}:s=l:s={},typeof s.context>"u"&&(s.context=4);const a=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){const{callback:f}=s;oe(i,t,Object.assign(Object.assign({},s),{callback:u=>{const d=c(u);f(d)}}))}else return c(oe(i,t,s));function c(f){if(!f)return;f.push({value:"",lines:[]});function u(m){return m.map(function(w){return" "+w})}const d=[];let g=0,h=0,p=[],y=1,x=1;for(let m=0;m<f.length;m++){const w=f[m],C=w.lines||tr(w.value);if(w.lines=C,w.added||w.removed){if(!g){const b=f[m-1];g=y,h=x,b&&(p=a>0?u(b.lines.slice(-a)):[],g-=p.length,h-=p.length)}for(const b of C)p.push((w.added?"+":"-")+b);w.added?x+=C.length:y+=C.length}else{if(g)if(C.length<=a*2&&m<f.length-2)for(const b of u(C))p.push(b);else{const b=Math.min(C.length,a);for(const A of u(C.slice(0,b)))p.push(A);const E={oldStart:g,oldLines:y-g+b,newStart:h,newLines:x-h+b,lines:p};d.push(E),g=0,h=0,p=[]}y+=C.length,x+=C.length}}for(const m of d)for(let w=0;w<m.lines.length;w++)m.lines[w].endsWith(`
|
|
17
|
-
`)?m.lines[w]=m.lines[w].slice(0,-1):(m.lines.splice(w+1,0,"\"),w++);return{oldFileName:e,newFileName:n,oldHeader:r,newHeader:o,hunks:d}}}function Ue(e,n){if(n||(n=Li),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(t=>Ue(t,n)).join(`
|
|
18
|
-
`)}const i=[];n.includeIndex&&e.oldFileName==e.newFileName&&i.push("Index: "+e.oldFileName),n.includeUnderline&&i.push("==================================================================="),n.includeFileHeaders&&(i.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),i.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader)));for(let t=0;t<e.hunks.length;t++){const r=e.hunks[t];r.oldLines===0&&(r.oldStart-=1),r.newLines===0&&(r.newStart-=1),i.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@");for(const o of r.lines)i.push(o)}return i.join(`
|
|
19
|
-
`)+`
|
|
20
|
-
`}function Ni(e,n,i,t,r,o,l){if(typeof l=="function"&&(l={callback:l}),l!=null&&l.callback){const{callback:s}=l;gn(e,n,i,t,r,o,Object.assign(Object.assign({},l),{callback:a=>{s(a?Ue(a,l.headerOptions):void 0)}}))}else{const s=gn(e,n,i,t,r,o,l);return s?Ue(s,l==null?void 0:l.headerOptions):void 0}}function ir(e,n,i,t,r,o){return Ni(e,e,n,i,t,r,o)}function tr(e){const n=e.endsWith(`
|
|
21
|
-
`),i=e.split(`
|
|
22
|
-
`).map(t=>t+`
|
|
23
|
-
`);return n?i.pop():i.push(i.pop().slice(0,-1)),i}function rr(e){const n=[];let i,t;for(let r=0;r<e.length;r++)i=e[r],i.added?t=1:i.removed?t=-1:t=0,n.push([t,i.value]);return n}function lr(e){const n=[];for(let i=0;i<e.length;i++){const t=e[i];t.added?n.push("<ins>"):t.removed&&n.push("<del>"),n.push(or(t.value)),t.added?n.push("</ins>"):t.removed&&n.push("</del>")}return n.join("")}function or(e){let n=e;return n=n.replace(/&/g,"&"),n=n.replace(/</g,"<"),n=n.replace(/>/g,">"),n=n.replace(/"/g,"""),n}const sr=Object.freeze(Object.defineProperty({__proto__:null,Diff:ae,FILE_HEADERS_ONLY:er,INCLUDE_HEADERS:Li,OMIT_HEADERS:nr,applyPatch:Oi,applyPatches:Xt,arrayDiff:ki,canonicalize:Ge,characterDiff:gi,convertChangesToDMP:rr,convertChangesToXML:lr,createPatch:ir,createTwoFilesPatch:Ni,cssDiff:Ai,diffArrays:qt,diffChars:Lt,diffCss:Gt,diffJson:Yt,diffLines:oe,diffSentences:$t,diffTrimmedLines:Ht,diffWords:Dt,diffWordsWithSpace:xi,formatPatch:Ue,jsonDiff:Ci,lineDiff:kn,parsePatch:Sn,reversePatch:Ti,sentenceDiff:bi,structuredPatch:gn,wordDiff:vi,wordsWithSpaceDiff:yi},Symbol.toStringTag,{value:"Module"}));/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function Ii(e){return typeof e>"u"||e===null}function ar(e){return typeof e=="object"&&e!==null}function ur(e){return Array.isArray(e)?e:Ii(e)?[]:[e]}function cr(e,n){var i,t,r,o;if(n)for(o=Object.keys(n),i=0,t=o.length;i<t;i+=1)r=o[i],e[r]=n[r];return e}function fr(e,n){var i="",t;for(t=0;t<n;t+=1)i+=e;return i}function dr(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var hr=Ii,pr=ar,gr=ur,mr=fr,vr=dr,yr=cr,M={isNothing:hr,isObject:pr,toArray:gr,repeat:mr,isNegativeZero:vr,extend:yr};function Fi(e,n){var i="",t=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(i+=`
|
|
24
|
-
|
|
25
|
-
`+e.mark.snippet),t+" "+i):t}function Ie(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Fi(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ie.prototype=Object.create(Error.prototype);Ie.prototype.constructor=Ie;Ie.prototype.toString=function(n){return this.name+": "+Fi(this,n)};var U=Ie;function sn(e,n,i,t,r){var o="",l="",s=Math.floor(r/2)-1;return t-n>s&&(o=" ... ",n=t-s+o.length),i-t>s&&(l=" ...",i=t+s-l.length),{str:o+e.slice(n,i).replace(/\t/g,"→")+l,pos:t-n+o.length}}function an(e,n){return M.repeat(" ",n-e.length)+e}function xr(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,t=[0],r=[],o,l=-1;o=i.exec(e.buffer);)r.push(o.index),t.push(o.index+o[0].length),e.position<=o.index&&l<0&&(l=t.length-2);l<0&&(l=t.length-1);var s="",a,c,f=Math.min(e.line+n.linesAfter,r.length).toString().length,u=n.maxLength-(n.indent+f+3);for(a=1;a<=n.linesBefore&&!(l-a<0);a++)c=sn(e.buffer,t[l-a],r[l-a],e.position-(t[l]-t[l-a]),u),s=M.repeat(" ",n.indent)+an((e.line-a+1).toString(),f)+" | "+c.str+`
|
|
26
|
-
`+s;for(c=sn(e.buffer,t[l],r[l],e.position,u),s+=M.repeat(" ",n.indent)+an((e.line+1).toString(),f)+" | "+c.str+`
|
|
27
|
-
`,s+=M.repeat("-",n.indent+f+3+c.pos)+`^
|
|
28
|
-
`,a=1;a<=n.linesAfter&&!(l+a>=r.length);a++)c=sn(e.buffer,t[l+a],r[l+a],e.position-(t[l]-t[l+a]),u),s+=M.repeat(" ",n.indent)+an((e.line+a+1).toString(),f)+" | "+c.str+`
|
|
29
|
-
`;return s.replace(/\n$/,"")}var wr=xr,br=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ar=["scalar","sequence","mapping"];function Cr(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(t){n[String(t)]=i})}),n}function kr(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(br.indexOf(i)===-1)throw new U('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Cr(n.styleAliases||null),Ar.indexOf(this.kind)===-1)throw new U('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var $=kr;function $n(e,n){var i=[];return e[n].forEach(function(t){var r=i.length;i.forEach(function(o,l){o.tag===t.tag&&o.kind===t.kind&&o.multi===t.multi&&(r=l)}),i[r]=t}),i}function Sr(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function t(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(t);return e}function mn(e){return this.extend(e)}mn.prototype.extend=function(n){var i=[],t=[];if(n instanceof $)t.push(n);else if(Array.isArray(n))t=t.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(t=t.concat(n.explicit));else throw new U("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof $))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new U("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new U("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(o){if(!(o instanceof $))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(mn.prototype);return r.implicit=(this.implicit||[]).concat(i),r.explicit=(this.explicit||[]).concat(t),r.compiledImplicit=$n(r,"implicit"),r.compiledExplicit=$n(r,"explicit"),r.compiledTypeMap=Sr(r.compiledImplicit,r.compiledExplicit),r};var Er=mn,Or=new $("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Tr=new $("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Lr=new $("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Nr=new Er({explicit:[Or,Tr,Lr]});function Ir(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function Fr(){return null}function jr(e){return e===null}var Rr=new $("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ir,construct:Fr,predicate:jr,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Dr(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function _r(e){return e==="true"||e==="True"||e==="TRUE"}function Mr(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Wr=new $("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Dr,construct:_r,predicate:Mr,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Hr(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Br(e){return 48<=e&&e<=55}function Pr(e){return 48<=e&&e<=57}function $r(e){if(e===null)return!1;var n=e.length,i=0,t=!1,r;if(!n)return!1;if(r=e[i],(r==="-"||r==="+")&&(r=e[++i]),r==="0"){if(i+1===n)return!0;if(r=e[++i],r==="b"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(r!=="0"&&r!=="1")return!1;t=!0}return t&&r!=="_"}if(r==="x"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(!Hr(e.charCodeAt(i)))return!1;t=!0}return t&&r!=="_"}if(r==="o"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(!Br(e.charCodeAt(i)))return!1;t=!0}return t&&r!=="_"}}if(r==="_")return!1;for(;i<n;i++)if(r=e[i],r!=="_"){if(!Pr(e.charCodeAt(i)))return!1;t=!0}return!(!t||r==="_")}function Vr(e){var n=e,i=1,t;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),t=n[0],(t==="-"||t==="+")&&(t==="-"&&(i=-1),n=n.slice(1),t=n[0]),n==="0")return 0;if(t==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function Gr(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!M.isNegativeZero(e)}var Ur=new $("tag:yaml.org,2002:int",{kind:"scalar",resolve:$r,construct:Vr,predicate:Gr,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Yr=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zr(e){return!(e===null||!Yr.test(e)||e[e.length-1]==="_")}function qr(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var Jr=/^[-+]?[0-9]+e/;function Kr(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(M.isNegativeZero(e))return"-0.0";return i=e.toString(10),Jr.test(i)?i.replace("e",".e"):i}function Zr(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||M.isNegativeZero(e))}var Qr=new $("tag:yaml.org,2002:float",{kind:"scalar",resolve:zr,construct:qr,predicate:Zr,represent:Kr,defaultStyle:"lowercase"}),Xr=Nr.extend({implicit:[Rr,Wr,Ur,Qr]}),el=Xr,ji=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ri=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function nl(e){return e===null?!1:ji.exec(e)!==null||Ri.exec(e)!==null}function il(e){var n,i,t,r,o,l,s,a=0,c=null,f,u,d;if(n=ji.exec(e),n===null&&(n=Ri.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],t=+n[2]-1,r=+n[3],!n[4])return new Date(Date.UTC(i,t,r));if(o=+n[4],l=+n[5],s=+n[6],n[7]){for(a=n[7].slice(0,3);a.length<3;)a+="0";a=+a}return n[9]&&(f=+n[10],u=+(n[11]||0),c=(f*60+u)*6e4,n[9]==="-"&&(c=-c)),d=new Date(Date.UTC(i,t,r,o,l,s,a)),c&&d.setTime(d.getTime()-c),d}function tl(e){return e.toISOString()}var rl=new $("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nl,construct:il,instanceOf:Date,represent:tl});function ll(e){return e==="<<"||e===null}var ol=new $("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ll}),En=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
30
|
-
\r`;function sl(e){if(e===null)return!1;var n,i,t=0,r=e.length,o=En;for(i=0;i<r;i++)if(n=o.indexOf(e.charAt(i)),!(n>64)){if(n<0)return!1;t+=6}return t%8===0}function al(e){var n,i,t=e.replace(/[\r\n=]/g,""),r=t.length,o=En,l=0,s=[];for(n=0;n<r;n++)n%4===0&&n&&(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)),l=l<<6|o.indexOf(t.charAt(n));return i=r%4*6,i===0?(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)):i===18?(s.push(l>>10&255),s.push(l>>2&255)):i===12&&s.push(l>>4&255),new Uint8Array(s)}function ul(e){var n="",i=0,t,r,o=e.length,l=En;for(t=0;t<o;t++)t%3===0&&t&&(n+=l[i>>18&63],n+=l[i>>12&63],n+=l[i>>6&63],n+=l[i&63]),i=(i<<8)+e[t];return r=o%3,r===0?(n+=l[i>>18&63],n+=l[i>>12&63],n+=l[i>>6&63],n+=l[i&63]):r===2?(n+=l[i>>10&63],n+=l[i>>4&63],n+=l[i<<2&63],n+=l[64]):r===1&&(n+=l[i>>2&63],n+=l[i<<4&63],n+=l[64],n+=l[64]),n}function cl(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var fl=new $("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sl,construct:al,predicate:cl,represent:ul}),dl=Object.prototype.hasOwnProperty,hl=Object.prototype.toString;function pl(e){if(e===null)return!0;var n=[],i,t,r,o,l,s=e;for(i=0,t=s.length;i<t;i+=1){if(r=s[i],l=!1,hl.call(r)!=="[object Object]")return!1;for(o in r)if(dl.call(r,o))if(!l)l=!0;else return!1;if(!l)return!1;if(n.indexOf(o)===-1)n.push(o);else return!1}return!0}function gl(e){return e!==null?e:[]}var ml=new $("tag:yaml.org,2002:omap",{kind:"sequence",resolve:pl,construct:gl}),vl=Object.prototype.toString;function yl(e){if(e===null)return!0;var n,i,t,r,o,l=e;for(o=new Array(l.length),n=0,i=l.length;n<i;n+=1){if(t=l[n],vl.call(t)!=="[object Object]"||(r=Object.keys(t),r.length!==1))return!1;o[n]=[r[0],t[r[0]]]}return!0}function xl(e){if(e===null)return[];var n,i,t,r,o,l=e;for(o=new Array(l.length),n=0,i=l.length;n<i;n+=1)t=l[n],r=Object.keys(t),o[n]=[r[0],t[r[0]]];return o}var wl=new $("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yl,construct:xl}),bl=Object.prototype.hasOwnProperty;function Al(e){if(e===null)return!0;var n,i=e;for(n in i)if(bl.call(i,n)&&i[n]!==null)return!1;return!0}function Cl(e){return e!==null?e:{}}var kl=new $("tag:yaml.org,2002:set",{kind:"mapping",resolve:Al,construct:Cl}),Di=el.extend({implicit:[rl,ol],explicit:[fl,ml,wl,kl]}),de=Object.prototype.hasOwnProperty,Ye=1,_i=2,Mi=3,ze=4,un=1,Sl=2,Vn=3,El=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ol=/[\x85\u2028\u2029]/,Tl=/[,\[\]\{\}]/,Wi=/^(?:!|!!|![a-z\-]+!)$/i,Hi=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Gn(e){return Object.prototype.toString.call(e)}function ie(e){return e===10||e===13}function pe(e){return e===9||e===32}function Y(e){return e===9||e===32||e===10||e===13}function xe(e){return e===44||e===91||e===93||e===123||e===125}function Ll(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function Nl(e){return e===120?2:e===117?4:e===85?8:0}function Il(e){return 48<=e&&e<=57?e-48:-1}function Un(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
31
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function Fl(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Bi(e,n,i){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[n]=i}var Pi=new Array(256),$i=new Array(256);for(var me=0;me<256;me++)Pi[me]=Un(me)?1:0,$i[me]=Un(me);function jl(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Di,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Vi(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=wr(i),new U(n,i)}function k(e,n){throw Vi(e,n)}function qe(e,n){e.onWarning&&e.onWarning.call(null,Vi(e,n))}var Yn={YAML:function(n,i,t){var r,o,l;n.version!==null&&k(n,"duplication of %YAML directive"),t.length!==1&&k(n,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),r===null&&k(n,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),l=parseInt(r[2],10),o!==1&&k(n,"unacceptable YAML version of the document"),n.version=t[0],n.checkLineBreaks=l<2,l!==1&&l!==2&&qe(n,"unsupported YAML version of the document")},TAG:function(n,i,t){var r,o;t.length!==2&&k(n,"TAG directive accepts exactly two arguments"),r=t[0],o=t[1],Wi.test(r)||k(n,"ill-formed tag handle (first argument) of the TAG directive"),de.call(n.tagMap,r)&&k(n,'there is a previously declared suffix for "'+r+'" tag handle'),Hi.test(o)||k(n,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{k(n,"tag prefix is malformed: "+o)}n.tagMap[r]=o}};function fe(e,n,i,t){var r,o,l,s;if(n<i){if(s=e.input.slice(n,i),t)for(r=0,o=s.length;r<o;r+=1)l=s.charCodeAt(r),l===9||32<=l&&l<=1114111||k(e,"expected valid JSON character");else El.test(s)&&k(e,"the stream contains non-printable characters");e.result+=s}}function zn(e,n,i,t){var r,o,l,s;for(M.isObject(i)||k(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(i),l=0,s=r.length;l<s;l+=1)o=r[l],de.call(n,o)||(Bi(n,o,i[o]),t[o]=!0)}function we(e,n,i,t,r,o,l,s,a){var c,f;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),c=0,f=r.length;c<f;c+=1)Array.isArray(r[c])&&k(e,"nested arrays are not supported inside keys"),typeof r=="object"&&Gn(r[c])==="[object Object]"&&(r[c]="[object Object]");if(typeof r=="object"&&Gn(r)==="[object Object]"&&(r="[object Object]"),r=String(r),n===null&&(n={}),t==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,f=o.length;c<f;c+=1)zn(e,n,o[c],i);else zn(e,n,o,i);else!e.json&&!de.call(i,r)&&de.call(n,r)&&(e.line=l||e.line,e.lineStart=s||e.lineStart,e.position=a||e.position,k(e,"duplicated mapping key")),Bi(n,r,o),delete i[r];return n}function On(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):k(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function D(e,n,i){for(var t=0,r=e.input.charCodeAt(e.position);r!==0;){for(;pe(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(n&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(ie(r))for(On(e),r=e.input.charCodeAt(e.position),t++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return i!==-1&&t!==0&&e.lineIndent<i&&qe(e,"deficient indentation"),t}function Xe(e){var n=e.position,i;return i=e.input.charCodeAt(n),!!((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)&&(n+=3,i=e.input.charCodeAt(n),i===0||Y(i)))}function Tn(e,n){n===1?e.result+=" ":n>1&&(e.result+=M.repeat(`
|
|
32
|
-
`,n-1))}function Rl(e,n,i){var t,r,o,l,s,a,c,f,u=e.kind,d=e.result,g;if(g=e.input.charCodeAt(e.position),Y(g)||xe(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(r=e.input.charCodeAt(e.position+1),Y(r)||i&&xe(r)))return!1;for(e.kind="scalar",e.result="",o=l=e.position,s=!1;g!==0;){if(g===58){if(r=e.input.charCodeAt(e.position+1),Y(r)||i&&xe(r))break}else if(g===35){if(t=e.input.charCodeAt(e.position-1),Y(t))break}else{if(e.position===e.lineStart&&Xe(e)||i&&xe(g))break;if(ie(g))if(a=e.line,c=e.lineStart,f=e.lineIndent,D(e,!1,-1),e.lineIndent>=n){s=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=l,e.line=a,e.lineStart=c,e.lineIndent=f;break}}s&&(fe(e,o,l,!1),Tn(e,e.line-a),o=l=e.position,s=!1),pe(g)||(l=e.position+1),g=e.input.charCodeAt(++e.position)}return fe(e,o,l,!1),e.result?!0:(e.kind=u,e.result=d,!1)}function Dl(e,n){var i,t,r;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,t=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(fe(e,t,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)t=e.position,e.position++,r=e.position;else return!0;else ie(i)?(fe(e,t,r,!0),Tn(e,D(e,!1,n)),t=r=e.position):e.position===e.lineStart&&Xe(e)?k(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);k(e,"unexpected end of the stream within a single quoted scalar")}function _l(e,n){var i,t,r,o,l,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=t=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return fe(e,i,e.position,!0),e.position++,!0;if(s===92){if(fe(e,i,e.position,!0),s=e.input.charCodeAt(++e.position),ie(s))D(e,!1,n);else if(s<256&&Pi[s])e.result+=$i[s],e.position++;else if((l=Nl(s))>0){for(r=l,o=0;r>0;r--)s=e.input.charCodeAt(++e.position),(l=Ll(s))>=0?o=(o<<4)+l:k(e,"expected hexadecimal character");e.result+=Fl(o),e.position++}else k(e,"unknown escape sequence");i=t=e.position}else ie(s)?(fe(e,i,t,!0),Tn(e,D(e,!1,n)),i=t=e.position):e.position===e.lineStart&&Xe(e)?k(e,"unexpected end of the document within a double quoted scalar"):(e.position++,t=e.position)}k(e,"unexpected end of the stream within a double quoted scalar")}function Ml(e,n){var i=!0,t,r,o,l=e.tag,s,a=e.anchor,c,f,u,d,g,h=Object.create(null),p,y,x,m;if(m=e.input.charCodeAt(e.position),m===91)f=93,g=!1,s=[];else if(m===123)f=125,g=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),m=e.input.charCodeAt(++e.position);m!==0;){if(D(e,!0,n),m=e.input.charCodeAt(e.position),m===f)return e.position++,e.tag=l,e.anchor=a,e.kind=g?"mapping":"sequence",e.result=s,!0;i?m===44&&k(e,"expected the node content, but found ','"):k(e,"missed comma between flow collection entries"),y=p=x=null,u=d=!1,m===63&&(c=e.input.charCodeAt(e.position+1),Y(c)&&(u=d=!0,e.position++,D(e,!0,n))),t=e.line,r=e.lineStart,o=e.position,Ae(e,n,Ye,!1,!0),y=e.tag,p=e.result,D(e,!0,n),m=e.input.charCodeAt(e.position),(d||e.line===t)&&m===58&&(u=!0,m=e.input.charCodeAt(++e.position),D(e,!0,n),Ae(e,n,Ye,!1,!0),x=e.result),g?we(e,s,h,y,p,x,t,r,o):u?s.push(we(e,null,h,y,p,x,t,r,o)):s.push(p),D(e,!0,n),m=e.input.charCodeAt(e.position),m===44?(i=!0,m=e.input.charCodeAt(++e.position)):i=!1}k(e,"unexpected end of the stream within a flow collection")}function Wl(e,n){var i,t,r=un,o=!1,l=!1,s=n,a=0,c=!1,f,u;if(u=e.input.charCodeAt(e.position),u===124)t=!1;else if(u===62)t=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)un===r?r=u===43?Vn:Sl:k(e,"repeat of a chomping mode identifier");else if((f=Il(u))>=0)f===0?k(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?k(e,"repeat of an indentation width identifier"):(s=n+f-1,l=!0);else break;if(pe(u)){do u=e.input.charCodeAt(++e.position);while(pe(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!ie(u)&&u!==0)}for(;u!==0;){for(On(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!l||e.lineIndent<s)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>s&&(s=e.lineIndent),ie(u)){a++;continue}if(e.lineIndent<s){r===Vn?e.result+=M.repeat(`
|
|
33
|
-
`,o?1+a:a):r===un&&o&&(e.result+=`
|
|
34
|
-
`);break}for(t?pe(u)?(c=!0,e.result+=M.repeat(`
|
|
35
|
-
`,o?1+a:a)):c?(c=!1,e.result+=M.repeat(`
|
|
36
|
-
`,a+1)):a===0?o&&(e.result+=" "):e.result+=M.repeat(`
|
|
37
|
-
`,a):e.result+=M.repeat(`
|
|
38
|
-
`,o?1+a:a),o=!0,l=!0,a=0,i=e.position;!ie(u)&&u!==0;)u=e.input.charCodeAt(++e.position);fe(e,i,e.position,!1)}return!0}function qn(e,n){var i,t=e.tag,r=e.anchor,o=[],l,s=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,k(e,"tab characters must not be used in indentation")),!(a!==45||(l=e.input.charCodeAt(e.position+1),!Y(l))));){if(s=!0,e.position++,D(e,!0,-1)&&e.lineIndent<=n){o.push(null),a=e.input.charCodeAt(e.position);continue}if(i=e.line,Ae(e,n,Mi,!1,!0),o.push(e.result),D(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>n)&&a!==0)k(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return s?(e.tag=t,e.anchor=r,e.kind="sequence",e.result=o,!0):!1}function Hl(e,n,i){var t,r,o,l,s,a,c=e.tag,f=e.anchor,u={},d=Object.create(null),g=null,h=null,p=null,y=!1,x=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),m=e.input.charCodeAt(e.position);m!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,k(e,"tab characters must not be used in indentation")),t=e.input.charCodeAt(e.position+1),o=e.line,(m===63||m===58)&&Y(t))m===63?(y&&(we(e,u,d,g,h,null,l,s,a),g=h=p=null),x=!0,y=!0,r=!0):y?(y=!1,r=!0):k(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=t;else{if(l=e.line,s=e.lineStart,a=e.position,!Ae(e,i,_i,!1,!0))break;if(e.line===o){for(m=e.input.charCodeAt(e.position);pe(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),Y(m)||k(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(we(e,u,d,g,h,null,l,s,a),g=h=p=null),x=!0,y=!1,r=!1,g=e.tag,h=e.result;else if(x)k(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(x)k(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===o||e.lineIndent>n)&&(y&&(l=e.line,s=e.lineStart,a=e.position),Ae(e,n,ze,!0,r)&&(y?h=e.result:p=e.result),y||(we(e,u,d,g,h,p,l,s,a),g=h=p=null),D(e,!0,-1),m=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>n)&&m!==0)k(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return y&&we(e,u,d,g,h,null,l,s,a),x&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=u),x}function Bl(e){var n,i=!1,t=!1,r,o,l;if(l=e.input.charCodeAt(e.position),l!==33)return!1;if(e.tag!==null&&k(e,"duplication of a tag property"),l=e.input.charCodeAt(++e.position),l===60?(i=!0,l=e.input.charCodeAt(++e.position)):l===33?(t=!0,r="!!",l=e.input.charCodeAt(++e.position)):r="!",n=e.position,i){do l=e.input.charCodeAt(++e.position);while(l!==0&&l!==62);e.position<e.length?(o=e.input.slice(n,e.position),l=e.input.charCodeAt(++e.position)):k(e,"unexpected end of the stream within a verbatim tag")}else{for(;l!==0&&!Y(l);)l===33&&(t?k(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(n-1,e.position+1),Wi.test(r)||k(e,"named tag handle cannot contain such characters"),t=!0,n=e.position+1)),l=e.input.charCodeAt(++e.position);o=e.input.slice(n,e.position),Tl.test(o)&&k(e,"tag suffix cannot contain flow indicator characters")}o&&!Hi.test(o)&&k(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{k(e,"tag name is malformed: "+o)}return i?e.tag=o:de.call(e.tagMap,r)?e.tag=e.tagMap[r]+o:r==="!"?e.tag="!"+o:r==="!!"?e.tag="tag:yaml.org,2002:"+o:k(e,'undeclared tag handle "'+r+'"'),!0}function Pl(e){var n,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&k(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!Y(i)&&!xe(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&k(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function $l(e){var n,i,t;if(t=e.input.charCodeAt(e.position),t!==42)return!1;for(t=e.input.charCodeAt(++e.position),n=e.position;t!==0&&!Y(t)&&!xe(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&k(e,"name of an alias node must contain at least one character"),i=e.input.slice(n,e.position),de.call(e.anchorMap,i)||k(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],D(e,!0,-1),!0}function Ae(e,n,i,t,r){var o,l,s,a=1,c=!1,f=!1,u,d,g,h,p,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=l=s=ze===i||Mi===i,t&&D(e,!0,-1)&&(c=!0,e.lineIndent>n?a=1:e.lineIndent===n?a=0:e.lineIndent<n&&(a=-1)),a===1)for(;Bl(e)||Pl(e);)D(e,!0,-1)?(c=!0,s=o,e.lineIndent>n?a=1:e.lineIndent===n?a=0:e.lineIndent<n&&(a=-1)):s=!1;if(s&&(s=c||r),(a===1||ze===i)&&(Ye===i||_i===i?p=n:p=n+1,y=e.position-e.lineStart,a===1?s&&(qn(e,y)||Hl(e,y,p))||Ml(e,p)?f=!0:(l&&Wl(e,p)||Dl(e,p)||_l(e,p)?f=!0:$l(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&k(e,"alias node should not have any properties")):Rl(e,p,Ye===i)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(f=s&&qn(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&k(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,d=e.implicitTypes.length;u<d;u+=1)if(h=e.implicitTypes[u],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(de.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,g=e.typeMap.multi[e.kind||"fallback"],u=0,d=g.length;u<d;u+=1)if(e.tag.slice(0,g[u].tag.length)===g[u].tag){h=g[u];break}h||k(e,"unknown tag !<"+e.tag+">"),e.result!==null&&h.kind!==e.kind&&k(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):k(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function Vl(e){var n=e.position,i,t,r,o=!1,l;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(l=e.input.charCodeAt(e.position))!==0&&(D(e,!0,-1),l=e.input.charCodeAt(e.position),!(e.lineIndent>0||l!==37));){for(o=!0,l=e.input.charCodeAt(++e.position),i=e.position;l!==0&&!Y(l);)l=e.input.charCodeAt(++e.position);for(t=e.input.slice(i,e.position),r=[],t.length<1&&k(e,"directive name must not be less than one character in length");l!==0;){for(;pe(l);)l=e.input.charCodeAt(++e.position);if(l===35){do l=e.input.charCodeAt(++e.position);while(l!==0&&!ie(l));break}if(ie(l))break;for(i=e.position;l!==0&&!Y(l);)l=e.input.charCodeAt(++e.position);r.push(e.input.slice(i,e.position))}l!==0&&On(e),de.call(Yn,t)?Yn[t](e,t,r):qe(e,'unknown document directive "'+t+'"')}if(D(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,D(e,!0,-1)):o&&k(e,"directives end mark is expected"),Ae(e,e.lineIndent-1,ze,!1,!0),D(e,!0,-1),e.checkLineBreaks&&Ol.test(e.input.slice(n,e.position))&&qe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Xe(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,D(e,!0,-1));return}if(e.position<e.length-1)k(e,"end of the stream or a document separator is expected");else return}function Gl(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
39
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new jl(e,n),t=e.indexOf("\0");for(t!==-1&&(i.position=t,k(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Vl(i);return i.documents}function Ul(e,n){var i=Gl(e,n);if(i.length!==0){if(i.length===1)return i[0];throw new U("expected a single document in the stream, but found more")}}var Yl=Ul,zl={load:Yl},Gi=Object.prototype.toString,Ui=Object.prototype.hasOwnProperty,Ln=65279,ql=9,Fe=10,Jl=13,Kl=32,Zl=33,Ql=34,vn=35,Xl=37,eo=38,no=39,io=42,Yi=44,to=45,Je=58,ro=61,lo=62,oo=63,so=64,zi=91,qi=93,ao=96,Ji=123,uo=124,Ki=125,V={};V[0]="\\0";V[7]="\\a";V[8]="\\b";V[9]="\\t";V[10]="\\n";V[11]="\\v";V[12]="\\f";V[13]="\\r";V[27]="\\e";V[34]='\\"';V[92]="\\\\";V[133]="\\N";V[160]="\\_";V[8232]="\\L";V[8233]="\\P";var co=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],fo=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ho(e,n){var i,t,r,o,l,s,a;if(n===null)return{};for(i={},t=Object.keys(n),r=0,o=t.length;r<o;r+=1)l=t[r],s=String(n[l]),l.slice(0,2)==="!!"&&(l="tag:yaml.org,2002:"+l.slice(2)),a=e.compiledTypeMap.fallback[l],a&&Ui.call(a.styleAliases,s)&&(s=a.styleAliases[s]),i[l]=s;return i}function po(e){var n,i,t;if(n=e.toString(16).toUpperCase(),e<=255)i="x",t=2;else if(e<=65535)i="u",t=4;else if(e<=4294967295)i="U",t=8;else throw new U("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+M.repeat("0",t-n.length)+n}var go=1,je=2;function mo(e){this.schema=e.schema||Di,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=M.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=ho(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?je:go,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Jn(e,n){for(var i=M.repeat(" ",n),t=0,r=-1,o="",l,s=e.length;t<s;)r=e.indexOf(`
|
|
40
|
-
`,t),r===-1?(l=e.slice(t),t=s):(l=e.slice(t,r+1),t=r+1),l.length&&l!==`
|
|
41
|
-
`&&(o+=i),o+=l;return o}function yn(e,n){return`
|
|
42
|
-
`+M.repeat(" ",e.indent*n)}function vo(e,n){var i,t,r;for(i=0,t=e.implicitTypes.length;i<t;i+=1)if(r=e.implicitTypes[i],r.resolve(n))return!0;return!1}function Ke(e){return e===Kl||e===ql}function Re(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ln||65536<=e&&e<=1114111}function Kn(e){return Re(e)&&e!==Ln&&e!==Jl&&e!==Fe}function Zn(e,n,i){var t=Kn(e),r=t&&!Ke(e);return(i?t:t&&e!==Yi&&e!==zi&&e!==qi&&e!==Ji&&e!==Ki)&&e!==vn&&!(n===Je&&!r)||Kn(n)&&!Ke(n)&&e===vn||n===Je&&r}function yo(e){return Re(e)&&e!==Ln&&!Ke(e)&&e!==to&&e!==oo&&e!==Je&&e!==Yi&&e!==zi&&e!==qi&&e!==Ji&&e!==Ki&&e!==vn&&e!==eo&&e!==io&&e!==Zl&&e!==uo&&e!==ro&&e!==lo&&e!==no&&e!==Ql&&e!==Xl&&e!==so&&e!==ao}function xo(e){return!Ke(e)&&e!==Je}function Te(e,n){var i=e.charCodeAt(n),t;return i>=55296&&i<=56319&&n+1<e.length&&(t=e.charCodeAt(n+1),t>=56320&&t<=57343)?(i-55296)*1024+t-56320+65536:i}function Zi(e){var n=/^\n* /;return n.test(e)}var Qi=1,xn=2,Xi=3,et=4,ye=5;function wo(e,n,i,t,r,o,l,s){var a,c=0,f=null,u=!1,d=!1,g=t!==-1,h=-1,p=yo(Te(e,0))&&xo(Te(e,e.length-1));if(n||l)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Te(e,a),!Re(c))return ye;p=p&&Zn(c,f,s),f=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Te(e,a),c===Fe)u=!0,g&&(d=d||a-h-1>t&&e[h+1]!==" ",h=a);else if(!Re(c))return ye;p=p&&Zn(c,f,s),f=c}d=d||g&&a-h-1>t&&e[h+1]!==" "}return!u&&!d?p&&!l&&!r(e)?Qi:o===je?ye:xn:i>9&&Zi(e)?ye:l?o===je?ye:xn:d?et:Xi}function bo(e,n,i,t,r){e.dump=(function(){if(n.length===0)return e.quotingType===je?'""':"''";if(!e.noCompatMode&&(co.indexOf(n)!==-1||fo.test(n)))return e.quotingType===je?'"'+n+'"':"'"+n+"'";var o=e.indent*Math.max(1,i),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=t||e.flowLevel>-1&&i>=e.flowLevel;function a(c){return vo(e,c)}switch(wo(n,s,e.indent,l,a,e.quotingType,e.forceQuotes&&!t,r)){case Qi:return n;case xn:return"'"+n.replace(/'/g,"''")+"'";case Xi:return"|"+Qn(n,e.indent)+Xn(Jn(n,o));case et:return">"+Qn(n,e.indent)+Xn(Jn(Ao(n,l),o));case ye:return'"'+Co(n)+'"';default:throw new U("impossible error: invalid scalar style")}})()}function Qn(e,n){var i=Zi(e)?String(n):"",t=e[e.length-1]===`
|
|
43
|
-
`,r=t&&(e[e.length-2]===`
|
|
44
|
-
`||e===`
|
|
45
|
-
`),o=r?"+":t?"":"-";return i+o+`
|
|
46
|
-
`}function Xn(e){return e[e.length-1]===`
|
|
47
|
-
`?e.slice(0,-1):e}function Ao(e,n){for(var i=/(\n+)([^\n]*)/g,t=(function(){var c=e.indexOf(`
|
|
48
|
-
`);return c=c!==-1?c:e.length,i.lastIndex=c,ei(e.slice(0,c),n)})(),r=e[0]===`
|
|
49
|
-
`||e[0]===" ",o,l;l=i.exec(e);){var s=l[1],a=l[2];o=a[0]===" ",t+=s+(!r&&!o&&a!==""?`
|
|
50
|
-
`:"")+ei(a,n),r=o}return t}function ei(e,n){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,t,r=0,o,l=0,s=0,a="";t=i.exec(e);)s=t.index,s-r>n&&(o=l>r?l:s,a+=`
|
|
51
|
-
`+e.slice(r,o),r=o+1),l=s;return a+=`
|
|
52
|
-
`,e.length-r>n&&l>r?a+=e.slice(r,l)+`
|
|
53
|
-
`+e.slice(l+1):a+=e.slice(r),a.slice(1)}function Co(e){for(var n="",i=0,t,r=0;r<e.length;i>=65536?r+=2:r++)i=Te(e,r),t=V[i],!t&&Re(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||po(i);return n}function ko(e,n,i){var t="",r=e.tag,o,l,s;for(o=0,l=i.length;o<l;o+=1)s=i[o],e.replacer&&(s=e.replacer.call(i,String(o),s)),(se(e,n,s,!1,!1)||typeof s>"u"&&se(e,n,null,!1,!1))&&(t!==""&&(t+=","+(e.condenseFlow?"":" ")),t+=e.dump);e.tag=r,e.dump="["+t+"]"}function ni(e,n,i,t){var r="",o=e.tag,l,s,a;for(l=0,s=i.length;l<s;l+=1)a=i[l],e.replacer&&(a=e.replacer.call(i,String(l),a)),(se(e,n+1,a,!0,!0,!1,!0)||typeof a>"u"&&se(e,n+1,null,!0,!0,!1,!0))&&((!t||r!=="")&&(r+=yn(e,n)),e.dump&&Fe===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump);e.tag=o,e.dump=r||"[]"}function So(e,n,i){var t="",r=e.tag,o=Object.keys(i),l,s,a,c,f;for(l=0,s=o.length;l<s;l+=1)f="",t!==""&&(f+=", "),e.condenseFlow&&(f+='"'),a=o[l],c=i[a],e.replacer&&(c=e.replacer.call(i,a,c)),se(e,n,a,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),se(e,n,c,!1,!1)&&(f+=e.dump,t+=f));e.tag=r,e.dump="{"+t+"}"}function Eo(e,n,i,t){var r="",o=e.tag,l=Object.keys(i),s,a,c,f,u,d;if(e.sortKeys===!0)l.sort();else if(typeof e.sortKeys=="function")l.sort(e.sortKeys);else if(e.sortKeys)throw new U("sortKeys must be a boolean or a function");for(s=0,a=l.length;s<a;s+=1)d="",(!t||r!=="")&&(d+=yn(e,n)),c=l[s],f=i[c],e.replacer&&(f=e.replacer.call(i,c,f)),se(e,n+1,c,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Fe===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,u&&(d+=yn(e,n)),se(e,n+1,f,!0,u)&&(e.dump&&Fe===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,r+=d));e.tag=o,e.dump=r||"{}"}function ii(e,n,i){var t,r,o,l,s,a;for(r=i?e.explicitTypes:e.implicitTypes,o=0,l=r.length;o<l;o+=1)if(s=r[o],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof n=="object"&&n instanceof s.instanceOf)&&(!s.predicate||s.predicate(n))){if(i?s.multi&&s.representName?e.tag=s.representName(n):e.tag=s.tag:e.tag="?",s.represent){if(a=e.styleMap[s.tag]||s.defaultStyle,Gi.call(s.represent)==="[object Function]")t=s.represent(n,a);else if(Ui.call(s.represent,a))t=s.represent[a](n,a);else throw new U("!<"+s.tag+'> tag resolver accepts not "'+a+'" style');e.dump=t}return!0}return!1}function se(e,n,i,t,r,o,l){e.tag=null,e.dump=i,ii(e,i,!1)||ii(e,i,!0);var s=Gi.call(e.dump),a=t,c;t&&(t=e.flowLevel<0||e.flowLevel>n);var f=s==="[object Object]"||s==="[object Array]",u,d;if(f&&(u=e.duplicates.indexOf(i),d=u!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&n>0)&&(r=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(f&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),s==="[object Object]")t&&Object.keys(e.dump).length!==0?(Eo(e,n,e.dump,r),d&&(e.dump="&ref_"+u+e.dump)):(So(e,n,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object Array]")t&&e.dump.length!==0?(e.noArrayIndent&&!l&&n>0?ni(e,n-1,e.dump,r):ni(e,n,e.dump,r),d&&(e.dump="&ref_"+u+e.dump)):(ko(e,n,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&bo(e,e.dump,n,o,a);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new U("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Oo(e,n){var i=[],t=[],r,o;for(wn(e,i,t),r=0,o=t.length;r<o;r+=1)n.duplicates.push(i[t[r]]);n.usedDuplicates=new Array(o)}function wn(e,n,i){var t,r,o;if(e!==null&&typeof e=="object")if(r=n.indexOf(e),r!==-1)i.indexOf(r)===-1&&i.push(r);else if(n.push(e),Array.isArray(e))for(r=0,o=e.length;r<o;r+=1)wn(e[r],n,i);else for(t=Object.keys(e),r=0,o=t.length;r<o;r+=1)wn(e[t[r]],n,i)}function To(e,n){n=n||{};var i=new mo(n);i.noRefs||Oo(e,i);var t=e;return i.replacer&&(t=i.replacer.call({"":t},"",t)),se(i,0,t,!0,!0)?i.dump+`
|
|
54
|
-
`:""}var Lo=To,No={dump:Lo},ti=zl.load,bn=No.dump;const Io='(()=>{var Si=Object.defineProperty;var bi=(e,n)=>{for(var i in n)Si(e,i,{get:n[i],enumerable:!0})};var $e={};bi($e,{Diff:()=>b,FILE_HEADERS_ONLY:()=>_n,INCLUDE_HEADERS:()=>Ue,OMIT_HEADERS:()=>Ln,applyPatch:()=>je,applyPatches:()=>bn,arrayDiff:()=>Pe,canonicalize:()=>V,characterDiff:()=>ye,convertChangesToDMP:()=>On,convertChangesToXML:()=>In,createPatch:()=>Fn,createTwoFilesPatch:()=>Ye,cssDiff:()=>Ne,diffArrays:()=>wn,diffChars:()=>sn,diffCss:()=>yn,diffJson:()=>An,diffLines:()=>N,diffSentences:()=>vn,diffTrimmedLines:()=>xn,diffWords:()=>mn,diffWordsWithSpace:()=>Le,formatPatch:()=>ee,jsonDiff:()=>Re,lineDiff:()=>ce,parsePatch:()=>Z,reversePatch:()=>Be,sentenceDiff:()=>ke,structuredPatch:()=>ae,wordDiff:()=>be,wordsWithSpaceDiff:()=>_e});var b=class{diff(n,i,r={}){let l;typeof r=="function"?(l=r,r={}):"callback"in r&&(l=r.callback);let t=this.castInput(n,r),o=this.castInput(i,r),u=this.removeEmpty(this.tokenize(t,r)),f=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(u,f,r,l)}diffWithOptionsObj(n,i,r,l){var t;let o=m=>{if(m=this.postProcess(m,r),l){setTimeout(function(){l(m)},0);return}else return m},u=i.length,f=n.length,c=1,s=u+f;r.maxEditLength!=null&&(s=Math.min(s,r.maxEditLength));let a=(t=r.timeout)!==null&&t!==void 0?t:1/0,p=Date.now()+a,d=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(d[0],i,n,0,r);if(d[0].oldPos+1>=f&&h+1>=u)return o(this.buildValues(d[0].lastComponent,i,n));let g=-1/0,y=1/0,w=()=>{for(let m=Math.max(g,-c);m<=Math.min(y,c);m+=2){let x,A=d[m-1],C=d[m+1];A&&(d[m-1]=void 0);let F=!1;if(C){let S=C.oldPos-m;F=C&&0<=S&&S<u}let E=A&&A.oldPos+1<f;if(!F&&!E){d[m]=void 0;continue}if(!E||F&&A.oldPos<C.oldPos?x=this.addToPath(C,!0,!1,0,r):x=this.addToPath(A,!1,!0,1,r),h=this.extractCommon(x,i,n,m,r),x.oldPos+1>=f&&h+1>=u)return o(this.buildValues(x.lastComponent,i,n))||!0;d[m]=x,x.oldPos+1>=f&&(y=Math.min(y,m-1)),h+1>=u&&(g=Math.max(g,m+1))}c++};if(l)(function m(){setTimeout(function(){if(c>s||Date.now()>p)return l(void 0);w()||m()},0)})();else for(;c<=s&&Date.now()<=p;){let m=w();if(m)return m}}addToPath(n,i,r,l,t){let o=n.lastComponent;return o&&!t.oneChangePerToken&&o.added===i&&o.removed===r?{oldPos:n.oldPos+l,lastComponent:{count:o.count+1,added:i,removed:r,previousComponent:o.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:i,removed:r,previousComponent:o}}}extractCommon(n,i,r,l,t){let o=i.length,u=r.length,f=n.oldPos,c=f-l,s=0;for(;c+1<o&&f+1<u&&this.equals(r[f+1],i[c+1],t);)c++,f++,s++,t.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return s&&!t.oneChangePerToken&&(n.lastComponent={count:s,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=f,c}equals(n,i,r){return r.comparator?r.comparator(n,i):n===i||!!r.ignoreCase&&n.toLowerCase()===i.toLowerCase()}removeEmpty(n){let i=[];for(let r=0;r<n.length;r++)n[r]&&i.push(n[r]);return i}castInput(n,i){return n}tokenize(n,i){return Array.from(n)}join(n){return n.join("")}postProcess(n,i){return n}get useLongestToken(){return!1}buildValues(n,i,r){let l=[],t;for(;n;)l.push(n),t=n.previousComponent,delete n.previousComponent,n=t;l.reverse();let o=l.length,u=0,f=0,c=0;for(;u<o;u++){let s=l[u];if(s.removed)s.value=this.join(r.slice(c,c+s.count)),c+=s.count;else{if(!s.added&&this.useLongestToken){let a=i.slice(f,f+s.count);a=a.map(function(p,d){let h=r[c+d];return h.length>p.length?h:p}),s.value=this.join(a)}else s.value=this.join(i.slice(f,f+s.count));f+=s.count,s.added||(c+=s.count)}}return l}};var ve=class extends b{},ye=new ve;function sn(e,n,i){return ye.diff(e,n,i)}function Ae(e,n){let i;for(i=0;i<e.length&&i<n.length;i++)if(e[i]!=n[i])return e.slice(0,i);return e.slice(0,i)}function we(e,n){let i;if(!e||!n||e[e.length-1]!=n[n.length-1])return"";for(i=0;i<e.length&&i<n.length;i++)if(e[e.length-(i+1)]!=n[n.length-(i+1)])return e.slice(-i);return e.slice(-i)}function te(e,n,i){if(e.slice(0,n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn\'t start with prefix ${JSON.stringify(n)}; this is a bug`);return i+e.slice(n.length)}function ue(e,n,i){if(!n)return e+i;if(e.slice(-n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn\'t end with suffix ${JSON.stringify(n)}; this is a bug`);return e.slice(0,-n.length)+i}function q(e,n){return te(e,n,"")}function X(e,n){return ue(e,n,"")}function Ce(e,n){return n.slice(0,_i(e,n))}function _i(e,n){let i=0;e.length>n.length&&(i=e.length-n.length);let r=n.length;e.length<n.length&&(r=e.length);let l=Array(r),t=0;l[0]=0;for(let o=1;o<r;o++){for(n[o]==n[t]?l[o]=l[t]:l[o]=t;t>0&&n[o]!=n[t];)t=l[t];n[o]==n[t]&&t++}t=0;for(let o=i;o<e.length;o++){for(;t>0&&e[o]!=n[t];)t=l[t];e[o]==n[t]&&t++}return t}function pn(e){return e.includes(`\\r\n`)&&!e.startsWith(`\n`)&&!e.match(/[^\\r]\\n/)}function dn(e){return!e.includes(`\\r\n`)&&e.includes(`\n`)}function z(e){let n;for(n=e.length-1;n>=0&&e[n].match(/\\s/);n--);return e.substring(n+1)}function M(e){let n=e.match(/^\\s*/);return n?n[0]:""}var fe="a-zA-Z0-9_\\\\u{AD}\\\\u{C0}-\\\\u{D6}\\\\u{D8}-\\\\u{F6}\\\\u{F8}-\\\\u{2C6}\\\\u{2C8}-\\\\u{2D7}\\\\u{2DE}-\\\\u{2FF}\\\\u{1E00}-\\\\u{1EFF}",Li=new RegExp(`[${fe}]+|\\\\s+|[^${fe}]`,"ug"),Ee=class extends b{equals(n,i,r){return r.ignoreCase&&(n=n.toLowerCase(),i=i.toLowerCase()),n.trim()===i.trim()}tokenize(n,i={}){let r;if(i.intlSegmenter){let o=i.intlSegmenter;if(o.resolvedOptions().granularity!="word")throw new Error(\'The segmenter passed must have a granularity of "word"\');r=[];for(let u of Array.from(o.segment(n))){let f=u.segment;r.length&&/\\s/.test(r[r.length-1])&&/\\s/.test(f)?r[r.length-1]+=f:r.push(f)}}else r=n.match(Li)||[];let l=[],t=null;return r.forEach(o=>{/\\s/.test(o)?t==null?l.push(o):l.push(l.pop()+o):t!=null&&/\\s/.test(t)?l[l.length-1]==t?l.push(l.pop()+o):l.push(t+o):l.push(o),t=o}),l}join(n){return n.map((i,r)=>r==0?i:i.replace(/^\\s+/,"")).join("")}postProcess(n,i){if(!n||i.oneChangePerToken)return n;let r=null,l=null,t=null;return n.forEach(o=>{o.added?l=o:o.removed?t=o:((l||t)&&hn(r,t,l,o),r=o,l=null,t=null)}),(l||t)&&hn(r,t,l,null),n}},be=new Ee;function mn(e,n,i){return i?.ignoreWhitespace!=null&&!i.ignoreWhitespace?Le(e,n,i):be.diff(e,n,i)}function hn(e,n,i,r){if(n&&i){let l=M(n.value),t=z(n.value),o=M(i.value),u=z(i.value);if(e){let f=Ae(l,o);e.value=ue(e.value,o,f),n.value=q(n.value,f),i.value=q(i.value,f)}if(r){let f=we(t,u);r.value=te(r.value,u,f),n.value=X(n.value,f),i.value=X(i.value,f)}}else if(i){if(e){let l=M(i.value);i.value=i.value.substring(l.length)}if(r){let l=M(r.value);r.value=r.value.substring(l.length)}}else if(e&&r){let l=M(r.value),t=M(n.value),o=z(n.value),u=Ae(l,t);n.value=q(n.value,u);let f=we(q(l,u),o);n.value=X(n.value,f),r.value=te(r.value,l,f),e.value=ue(e.value,l,l.slice(0,l.length-f.length))}else if(r){let l=M(r.value),t=z(n.value),o=Ce(t,l);n.value=X(n.value,o)}else if(e){let l=z(e.value),t=M(n.value),o=Ce(l,t);n.value=q(n.value,o)}}var Se=class extends b{tokenize(n){let i=new RegExp(`(\\\\r?\\\\n)|[${fe}]+|[^\\\\S\\\\n\\\\r]+|[^${fe}]`,"ug");return n.match(i)||[]}},_e=new Se;function Le(e,n,i){return _e.diff(e,n,i)}function gn(e,n){if(typeof e=="function")n.callback=e;else if(e)for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}var Fe=class extends b{constructor(){super(...arguments),this.tokenize=Oe}equals(n,i,r){return r.ignoreWhitespace?((!r.newlineIsToken||!n.includes(`\n`))&&(n=n.trim()),(!r.newlineIsToken||!i.includes(`\n`))&&(i=i.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`\n`)&&(n=n.slice(0,-1)),i.endsWith(`\n`)&&(i=i.slice(0,-1))),super.equals(n,i,r)}},ce=new Fe;function N(e,n,i){return ce.diff(e,n,i)}function xn(e,n,i){return i=gn(i,{ignoreWhitespace:!0}),ce.diff(e,n,i)}function Oe(e,n){n.stripTrailingCr&&(e=e.replace(/\\r\\n/g,`\n`));let i=[],r=e.split(/(\\n|\\r\\n)/);r[r.length-1]||r.pop();for(let l=0;l<r.length;l++){let t=r[l];l%2&&!n.newlineIsToken?i[i.length-1]+=t:i.push(t)}return i}function Fi(e){return e=="."||e=="!"||e=="?"}var Ie=class extends b{tokenize(n){var i;let r=[],l=0;for(let t=0;t<n.length;t++){if(t==n.length-1){r.push(n.slice(l));break}if(Fi(n[t])&&n[t+1].match(/\\s/)){for(r.push(n.slice(l,t+1)),t=l=t+1;!((i=n[t+1])===null||i===void 0)&&i.match(/\\s/);)t++;r.push(n.slice(l,t+1)),l=t+1}}return r}},ke=new Ie;function vn(e,n,i){return ke.diff(e,n,i)}var Te=class extends b{tokenize(n){return n.split(/([{}:;,]|\\s+)/)}},Ne=new Te;function yn(e,n,i){return Ne.diff(e,n,i)}var De=class extends b{constructor(){super(...arguments),this.tokenize=Oe}get useLongestToken(){return!0}castInput(n,i){let{undefinedReplacement:r,stringifyReplacer:l=(t,o)=>typeof o>"u"?r:o}=i;return typeof n=="string"?n:JSON.stringify(V(n,null,null,l),null," ")}equals(n,i,r){return super.equals(n.replace(/,([\\r\\n])/g,"$1"),i.replace(/,([\\r\\n])/g,"$1"),r)}},Re=new De;function An(e,n,i){return Re.diff(e,n,i)}function V(e,n,i,r,l){n=n||[],i=i||[],r&&(e=r(l===void 0?"":l,e));let t;for(t=0;t<n.length;t+=1)if(n[t]===e)return i[t];let o;if(Object.prototype.toString.call(e)==="[object Array]"){for(n.push(e),o=new Array(e.length),i.push(o),t=0;t<e.length;t+=1)o[t]=V(e[t],n,i,r,String(t));return n.pop(),i.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e=="object"&&e!==null){n.push(e),o={},i.push(o);let u=[],f;for(f in e)Object.prototype.hasOwnProperty.call(e,f)&&u.push(f);for(u.sort(),t=0;t<u.length;t+=1)f=u[t],o[f]=V(e[f],n,i,r,f);n.pop(),i.pop()}else o=e;return o}var Me=class extends b{tokenize(n){return n.slice()}join(n){return n}removeEmpty(n){return n}},Pe=new Me;function wn(e,n,i){return Pe.diff(e,n,i)}function We(e){return Array.isArray(e)?e.map(n=>We(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map((i,r)=>{var l;return i.startsWith("\\\\")||i.endsWith("\\r")||!((l=n.lines[r+1])===null||l===void 0)&&l.startsWith("\\\\")?i:i+"\\r"})}))})}function He(e){return Array.isArray(e)?e.map(n=>He(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map(i=>i.endsWith("\\r")?i.substring(0,i.length-1):i)}))})}function Cn(e){return Array.isArray(e)||(e=[e]),!e.some(n=>n.hunks.some(i=>i.lines.some(r=>!r.startsWith("\\\\")&&r.endsWith("\\r"))))}function En(e){return Array.isArray(e)||(e=[e]),e.some(n=>n.hunks.some(i=>i.lines.some(r=>r.endsWith("\\r"))))&&e.every(n=>n.hunks.every(i=>i.lines.every((r,l)=>{var t;return r.startsWith("\\\\")||r.endsWith("\\r")||((t=i.lines[l+1])===null||t===void 0?void 0:t.startsWith("\\\\"))})))}function Z(e){let n=e.split(/\\n/),i=[],r=0;function l(){let u={};for(i.push(u);r<n.length;){let f=n[r];if(/^(---|\\+\\+\\+|@@)\\s/.test(f))break;let c=/^(?:Index:|diff(?: -r \\w+)+)\\s+/.exec(f);c&&(u.index=f.substring(c[0].length).trim()),r++}for(t(u),t(u),u.hunks=[];r<n.length;){let f=n[r];if(/^(Index:\\s|diff\\s|---\\s|\\+\\+\\+\\s|===================================================================)/.test(f))break;if(/^@@/.test(f))u.hunks.push(o());else{if(f)throw new Error("Unknown line "+(r+1)+" "+JSON.stringify(f));r++}}}function t(u){let f=/^(---|\\+\\+\\+)\\s+/.exec(n[r]);if(f){let c=f[1],s=n[r].substring(3).trim().split(" ",2),a=(s[1]||"").trim(),p=s[0].replace(/\\\\\\\\/g,"\\\\");p.startsWith(\'"\')&&p.endsWith(\'"\')&&(p=p.substr(1,p.length-2)),c==="---"?(u.oldFileName=p,u.oldHeader=a):(u.newFileName=p,u.newHeader=a),r++}}function o(){var u;let f=r,c=n[r++],s=c.split(/@@ -(\\d+)(?:,(\\d+))? \\+(\\d+)(?:,(\\d+))? @@/),a={oldStart:+s[1],oldLines:typeof s[2]>"u"?1:+s[2],newStart:+s[3],newLines:typeof s[4]>"u"?1:+s[4],lines:[]};a.oldLines===0&&(a.oldStart+=1),a.newLines===0&&(a.newStart+=1);let p=0,d=0;for(;r<n.length&&(d<a.oldLines||p<a.newLines||!((u=n[r])===null||u===void 0)&&u.startsWith("\\\\"));r++){let h=n[r].length==0&&r!=n.length-1?" ":n[r][0];if(h==="+"||h==="-"||h===" "||h==="\\\\")a.lines.push(n[r]),h==="+"?p++:h==="-"?d++:h===" "&&(p++,d++);else throw new Error(`Hunk at line ${f+1} contained invalid line ${n[r]}`)}if(!p&&a.newLines===1&&(a.newLines=0),!d&&a.oldLines===1&&(a.oldLines=0),p!==a.newLines)throw new Error("Added line count did not match for hunk at line "+(f+1));if(d!==a.oldLines)throw new Error("Removed line count did not match for hunk at line "+(f+1));return a}for(;r<n.length;)l();return i}function Sn(e,n,i){let r=!0,l=!1,t=!1,o=1;return function u(){if(r&&!t){if(l?o++:r=!1,e+o<=i)return e+o;t=!0}if(!l)return t||(r=!0),n<=e-o?e-o++:(l=!0,u())}}function je(e,n,i={}){let r;if(typeof n=="string"?r=Z(n):Array.isArray(n)?r=n:r=[n],r.length>1)throw new Error("applyPatch only works with a single input.");return Oi(e,r[0],i)}function Oi(e,n,i={}){(i.autoConvertLineEndings||i.autoConvertLineEndings==null)&&(pn(e)&&Cn(n)?n=We(n):dn(e)&&En(n)&&(n=He(n)));let r=e.split(`\n`),l=n.hunks,t=i.compareLine||((h,g,y,w)=>g===w),o=i.fuzzFactor||0,u=0;if(o<0||!Number.isInteger(o))throw new Error("fuzzFactor must be a non-negative integer");if(!l.length)return e;let f="",c=!1,s=!1;for(let h=0;h<l[l.length-1].lines.length;h++){let g=l[l.length-1].lines[h];g[0]=="\\\\"&&(f[0]=="+"?c=!0:f[0]=="-"&&(s=!0)),f=g}if(c){if(s){if(!o&&r[r.length-1]=="")return!1}else if(r[r.length-1]=="")r.pop();else if(!o)return!1}else if(s){if(r[r.length-1]!="")r.push("");else if(!o)return!1}function a(h,g,y,w=0,m=!0,x=[],A=0){let C=0,F=!1;for(;w<h.length;w++){let E=h[w],S=E.length>0?E[0]:" ",$=E.length>0?E.substr(1):E;if(S==="-")if(t(g+1,r[g],S,$))g++,C=0;else return!y||r[g]==null?null:(x[A]=r[g],a(h,g+1,y-1,w,!1,x,A+1));if(S==="+"){if(!m)return null;x[A]=$,A++,C=0,F=!0}if(S===" ")if(C++,x[A]=r[g],t(g+1,r[g],S,$))A++,m=!0,F=!1,g++;else return F||!y?null:r[g]&&(a(h,g+1,y-1,w+1,!1,x,A+1)||a(h,g+1,y-1,w,!1,x,A+1))||a(h,g,y-1,w+1,!1,x,A)}return A-=C,g-=C,x.length=A,{patchedLines:x,oldLineLastI:g-1}}let p=[],d=0;for(let h=0;h<l.length;h++){let g=l[h],y,w=r.length-g.oldLines+o,m;for(let x=0;x<=o;x++){m=g.oldStart+d-1;let A=Sn(m,u,w);for(;m!==void 0&&(y=a(g.lines,m,x),!y);m=A());if(y)break}if(!y)return!1;for(let x=u;x<m;x++)p.push(r[x]);for(let x=0;x<y.patchedLines.length;x++){let A=y.patchedLines[x];p.push(A)}u=y.oldLineLastI+1,d=m+1-g.oldStart}for(let h=u;h<r.length;h++)p.push(r[h]);return p.join(`\n`)}function bn(e,n){let i=typeof e=="string"?Z(e):e,r=0;function l(){let t=i[r++];if(!t)return n.complete();n.loadFile(t,function(o,u){if(o)return n.complete(o);let f=je(u,t,n);n.patched(t,f,function(c){if(c)return n.complete(c);l()})})}l()}function Be(e){return Array.isArray(e)?e.map(n=>Be(n)).reverse():Object.assign(Object.assign({},e),{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(n=>({oldLines:n.newLines,oldStart:n.newStart,newLines:n.oldLines,newStart:n.oldStart,lines:n.lines.map(i=>i.startsWith("-")?`+${i.slice(1)}`:i.startsWith("+")?`-${i.slice(1)}`:i)}))})}var Ue={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},_n={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},Ln={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function ae(e,n,i,r,l,t,o){let u;o?typeof o=="function"?u={callback:o}:u=o:u={},typeof u.context>"u"&&(u.context=4);let f=u.context;if(u.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(u.callback){let{callback:s}=u;N(i,r,Object.assign(Object.assign({},u),{callback:a=>{let p=c(a);s(p)}}))}else return c(N(i,r,u));function c(s){if(!s)return;s.push({value:"",lines:[]});function a(m){return m.map(function(x){return" "+x})}let p=[],d=0,h=0,g=[],y=1,w=1;for(let m=0;m<s.length;m++){let x=s[m],A=x.lines||Ii(x.value);if(x.lines=A,x.added||x.removed){if(!d){let C=s[m-1];d=y,h=w,C&&(g=f>0?a(C.lines.slice(-f)):[],d-=g.length,h-=g.length)}for(let C of A)g.push((x.added?"+":"-")+C);x.added?w+=A.length:y+=A.length}else{if(d)if(A.length<=f*2&&m<s.length-2)for(let C of a(A))g.push(C);else{let C=Math.min(A.length,f);for(let E of a(A.slice(0,C)))g.push(E);let F={oldStart:d,oldLines:y-d+C,newStart:h,newLines:w-h+C,lines:g};p.push(F),d=0,h=0,g=[]}y+=A.length,w+=A.length}}for(let m of p)for(let x=0;x<m.lines.length;x++)m.lines[x].endsWith(`\n`)?m.lines[x]=m.lines[x].slice(0,-1):(m.lines.splice(x+1,0,"\\\"),x++);return{oldFileName:e,newFileName:n,oldHeader:l,newHeader:t,hunks:p}}}function ee(e,n){if(n||(n=Ue),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(r=>ee(r,n)).join(`\n`)}let i=[];n.includeIndex&&e.oldFileName==e.newFileName&&i.push("Index: "+e.oldFileName),n.includeUnderline&&i.push("==================================================================="),n.includeFileHeaders&&(i.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),i.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader)));for(let r=0;r<e.hunks.length;r++){let l=e.hunks[r];l.oldLines===0&&(l.oldStart-=1),l.newLines===0&&(l.newStart-=1),i.push("@@ -"+l.oldStart+","+l.oldLines+" +"+l.newStart+","+l.newLines+" @@");for(let t of l.lines)i.push(t)}return i.join(`\n`)+`\n`}function Ye(e,n,i,r,l,t,o){if(typeof o=="function"&&(o={callback:o}),o?.callback){let{callback:u}=o;ae(e,n,i,r,l,t,Object.assign(Object.assign({},o),{callback:f=>{u(f?ee(f,o.headerOptions):void 0)}}))}else{let u=ae(e,n,i,r,l,t,o);return u?ee(u,o?.headerOptions):void 0}}function Fn(e,n,i,r,l,t){return Ye(e,e,n,i,r,l,t)}function Ii(e){let n=e.endsWith(`\n`),i=e.split(`\n`).map(r=>r+`\n`);return n?i.pop():i.push(i.pop().slice(0,-1)),i}function On(e){let n=[],i,r;for(let l=0;l<e.length;l++)i=e[l],i.added?r=1:i.removed?r=-1:r=0,n.push([r,i.value]);return n}function In(e){let n=[];for(let i=0;i<e.length;i++){let r=e[i];r.added?n.push("<ins>"):r.removed&&n.push("<del>"),n.push(ki(r.value)),r.added?n.push("</ins>"):r.removed&&n.push("</del>")}return n.join("")}function ki(e){let n=e;return n=n.replace(/&/g,"&"),n=n.replace(/</g,"<"),n=n.replace(/>/g,">"),n=n.replace(/"/g,"""),n}function zn(e){return typeof e>"u"||e===null}function Ti(e){return typeof e=="object"&&e!==null}function Ni(e){return Array.isArray(e)?e:zn(e)?[]:[e]}function Di(e,n){var i,r,l,t;if(n)for(t=Object.keys(n),i=0,r=t.length;i<r;i+=1)l=t[i],e[l]=n[l];return e}function Ri(e,n){var i="",r;for(r=0;r<n;r+=1)i+=e;return i}function Mi(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Pi=zn,Wi=Ti,Hi=Ni,ji=Ri,Bi=Mi,Ui=Di,L={isNothing:Pi,isObject:Wi,toArray:Hi,repeat:ji,isNegativeZero:Bi,extend:Ui};function Gn(e,n){var i="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+=\'in "\'+e.mark.name+\'" \'),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(i+=`\n\n`+e.mark.snippet),r+" "+i):r}function ie(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Gn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ie.prototype=Object.create(Error.prototype);ie.prototype.constructor=ie;ie.prototype.toString=function(n){return this.name+": "+Gn(this,n)};var k=ie;function qe(e,n,i,r,l){var t="",o="",u=Math.floor(l/2)-1;return r-n>u&&(t=" ... ",n=r-u+t.length),i-r>u&&(o=" ...",i=r+u-o.length),{str:t+e.slice(n,i).replace(/\\t/g,"\\u2192")+o,pos:r-n+t.length}}function ze(e,n){return L.repeat(" ",n-e.length)+e}function Yi(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\\r?\\n|\\r|\\0/g,r=[0],l=[],t,o=-1;t=i.exec(e.buffer);)l.push(t.index),r.push(t.index+t[0].length),e.position<=t.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var u="",f,c,s=Math.min(e.line+n.linesAfter,l.length).toString().length,a=n.maxLength-(n.indent+s+3);for(f=1;f<=n.linesBefore&&!(o-f<0);f++)c=qe(e.buffer,r[o-f],l[o-f],e.position-(r[o]-r[o-f]),a),u=L.repeat(" ",n.indent)+ze((e.line-f+1).toString(),s)+" | "+c.str+`\n`+u;for(c=qe(e.buffer,r[o],l[o],e.position,a),u+=L.repeat(" ",n.indent)+ze((e.line+1).toString(),s)+" | "+c.str+`\n`,u+=L.repeat("-",n.indent+s+3+c.pos)+`^\n`,f=1;f<=n.linesAfter&&!(o+f>=l.length);f++)c=qe(e.buffer,r[o+f],l[o+f],e.position-(r[o]-r[o+f]),a),u+=L.repeat(" ",n.indent)+ze((e.line+f+1).toString(),s)+" | "+c.str+`\n`;return u.replace(/\\n$/,"")}var $i=Yi,qi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],zi=["scalar","sequence","mapping"];function Gi(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(r){n[String(r)]=i})}),n}function Ji(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(qi.indexOf(i)===-1)throw new k(\'Unknown option "\'+i+\'" is met in definition of "\'+e+\'" YAML type.\')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Gi(n.styleAliases||null),zi.indexOf(this.kind)===-1)throw new k(\'Unknown kind "\'+this.kind+\'" is specified for "\'+e+\'" YAML type.\')}var O=Ji;function kn(e,n){var i=[];return e[n].forEach(function(r){var l=i.length;i.forEach(function(t,o){t.tag===r.tag&&t.kind===r.kind&&t.multi===r.multi&&(l=o)}),i[l]=r}),i}function Ki(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function r(l){l.multi?(e.multi[l.kind].push(l),e.multi.fallback.push(l)):e[l.kind][l.tag]=e.fallback[l.tag]=l}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(r);return e}function Je(e){return this.extend(e)}Je.prototype.extend=function(n){var i=[],r=[];if(n instanceof O)r.push(n);else if(Array.isArray(n))r=r.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(r=r.concat(n.explicit));else throw new k("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(t){if(!(t instanceof O))throw new k("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&t.loadKind!=="scalar")throw new k("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new k("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof O))throw new k("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var l=Object.create(Je.prototype);return l.implicit=(this.implicit||[]).concat(i),l.explicit=(this.explicit||[]).concat(r),l.compiledImplicit=kn(l,"implicit"),l.compiledExplicit=kn(l,"explicit"),l.compiledTypeMap=Ki(l.compiledImplicit,l.compiledExplicit),l};var Qi=Je,Xi=new O("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Vi=new O("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Zi=new O("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),er=new Qi({explicit:[Xi,Vi,Zi]});function nr(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function ir(){return null}function rr(e){return e===null}var lr=new O("tag:yaml.org,2002:null",{kind:"scalar",resolve:nr,construct:ir,predicate:rr,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function or(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function tr(e){return e==="true"||e==="True"||e==="TRUE"}function ur(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var fr=new O("tag:yaml.org,2002:bool",{kind:"scalar",resolve:or,construct:tr,predicate:ur,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function cr(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ar(e){return 48<=e&&e<=55}function sr(e){return 48<=e&&e<=57}function pr(e){if(e===null)return!1;var n=e.length,i=0,r=!1,l;if(!n)return!1;if(l=e[i],(l==="-"||l==="+")&&(l=e[++i]),l==="0"){if(i+1===n)return!0;if(l=e[++i],l==="b"){for(i++;i<n;i++)if(l=e[i],l!=="_"){if(l!=="0"&&l!=="1")return!1;r=!0}return r&&l!=="_"}if(l==="x"){for(i++;i<n;i++)if(l=e[i],l!=="_"){if(!cr(e.charCodeAt(i)))return!1;r=!0}return r&&l!=="_"}if(l==="o"){for(i++;i<n;i++)if(l=e[i],l!=="_"){if(!ar(e.charCodeAt(i)))return!1;r=!0}return r&&l!=="_"}}if(l==="_")return!1;for(;i<n;i++)if(l=e[i],l!=="_"){if(!sr(e.charCodeAt(i)))return!1;r=!0}return!(!r||l==="_")}function dr(e){var n=e,i=1,r;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),r=n[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),n=n.slice(1),r=n[0]),n==="0")return 0;if(r==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function hr(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!L.isNegativeZero(e)}var mr=new O("tag:yaml.org,2002:int",{kind:"scalar",resolve:pr,construct:dr,predicate:hr,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),gr=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))$");function xr(e){return!(e===null||!gr.test(e)||e[e.length-1]==="_")}function vr(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var yr=/^[-+]?[0-9]+e/;function Ar(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(L.isNegativeZero(e))return"-0.0";return i=e.toString(10),yr.test(i)?i.replace("e",".e"):i}function wr(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||L.isNegativeZero(e))}var Cr=new O("tag:yaml.org,2002:float",{kind:"scalar",resolve:xr,construct:vr,predicate:wr,represent:Ar,defaultStyle:"lowercase"}),Er=er.extend({implicit:[lr,fr,mr,Cr]}),Sr=Er,Jn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Kn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\\\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\\\.([0-9]*))?(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function br(e){return e===null?!1:Jn.exec(e)!==null||Kn.exec(e)!==null}function _r(e){var n,i,r,l,t,o,u,f=0,c=null,s,a,p;if(n=Jn.exec(e),n===null&&(n=Kn.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],r=+n[2]-1,l=+n[3],!n[4])return new Date(Date.UTC(i,r,l));if(t=+n[4],o=+n[5],u=+n[6],n[7]){for(f=n[7].slice(0,3);f.length<3;)f+="0";f=+f}return n[9]&&(s=+n[10],a=+(n[11]||0),c=(s*60+a)*6e4,n[9]==="-"&&(c=-c)),p=new Date(Date.UTC(i,r,l,t,o,u,f)),c&&p.setTime(p.getTime()-c),p}function Lr(e){return e.toISOString()}var Fr=new O("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:br,construct:_r,instanceOf:Date,represent:Lr});function Or(e){return e==="<<"||e===null}var Ir=new O("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Or}),Ze=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\\r`;function kr(e){if(e===null)return!1;var n,i,r=0,l=e.length,t=Ze;for(i=0;i<l;i++)if(n=t.indexOf(e.charAt(i)),!(n>64)){if(n<0)return!1;r+=6}return r%8===0}function Tr(e){var n,i,r=e.replace(/[\\r\\n=]/g,""),l=r.length,t=Ze,o=0,u=[];for(n=0;n<l;n++)n%4===0&&n&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|t.indexOf(r.charAt(n));return i=l%4*6,i===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):i===18?(u.push(o>>10&255),u.push(o>>2&255)):i===12&&u.push(o>>4&255),new Uint8Array(u)}function Nr(e){var n="",i=0,r,l,t=e.length,o=Ze;for(r=0;r<t;r++)r%3===0&&r&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]),i=(i<<8)+e[r];return l=t%3,l===0?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]):l===2?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):l===1&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}function Dr(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Rr=new O("tag:yaml.org,2002:binary",{kind:"scalar",resolve:kr,construct:Tr,predicate:Dr,represent:Nr}),Mr=Object.prototype.hasOwnProperty,Pr=Object.prototype.toString;function Wr(e){if(e===null)return!0;var n=[],i,r,l,t,o,u=e;for(i=0,r=u.length;i<r;i+=1){if(l=u[i],o=!1,Pr.call(l)!=="[object Object]")return!1;for(t in l)if(Mr.call(l,t))if(!o)o=!0;else return!1;if(!o)return!1;if(n.indexOf(t)===-1)n.push(t);else return!1}return!0}function Hr(e){return e!==null?e:[]}var jr=new O("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Wr,construct:Hr}),Br=Object.prototype.toString;function Ur(e){if(e===null)return!0;var n,i,r,l,t,o=e;for(t=new Array(o.length),n=0,i=o.length;n<i;n+=1){if(r=o[n],Br.call(r)!=="[object Object]"||(l=Object.keys(r),l.length!==1))return!1;t[n]=[l[0],r[l[0]]]}return!0}function Yr(e){if(e===null)return[];var n,i,r,l,t,o=e;for(t=new Array(o.length),n=0,i=o.length;n<i;n+=1)r=o[n],l=Object.keys(r),t[n]=[l[0],r[l[0]]];return t}var $r=new O("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ur,construct:Yr}),qr=Object.prototype.hasOwnProperty;function zr(e){if(e===null)return!0;var n,i=e;for(n in i)if(qr.call(i,n)&&i[n]!==null)return!1;return!0}function Gr(e){return e!==null?e:{}}var Jr=new O("tag:yaml.org,2002:set",{kind:"mapping",resolve:zr,construct:Gr}),Qn=Sr.extend({implicit:[Fr,Ir],explicit:[Rr,jr,$r,Jr]}),j=Object.prototype.hasOwnProperty,se=1,Xn=2,Vn=3,pe=4,Ge=1,Kr=2,Tn=3,Qr=/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/,Xr=/[\\x85\\u2028\\u2029]/,Vr=/[,\\[\\]\\{\\}]/,Zn=/^(?:!|!!|![a-z\\-]+!)$/i,ei=/^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*\'\\(\\)\\[\\]])*$/i;function Nn(e){return Object.prototype.toString.call(e)}function R(e){return e===10||e===13}function Y(e){return e===9||e===32}function T(e){return e===9||e===32||e===10||e===13}function J(e){return e===44||e===91||e===93||e===123||e===125}function Zr(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function el(e){return e===120?2:e===117?4:e===85?8:0}function nl(e){return 48<=e&&e<=57?e-48:-1}function Dn(e){return e===48?"\\0":e===97?"\\x07":e===98?"\\b":e===116||e===9?" ":e===110?`\n`:e===118?"\\v":e===102?"\\f":e===114?"\\r":e===101?"\\x1B":e===32?" ":e===34?\'"\':e===47?"/":e===92?"\\\\":e===78?"\\x85":e===95?"\\xA0":e===76?"\\u2028":e===80?"\\u2029":""}function il(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function ni(e,n,i){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[n]=i}var ii=new Array(256),ri=new Array(256);for(U=0;U<256;U++)ii[U]=Dn(U)?1:0,ri[U]=Dn(U);var U;function rl(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Qn,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function li(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=$i(i),new k(n,i)}function v(e,n){throw li(e,n)}function de(e,n){e.onWarning&&e.onWarning.call(null,li(e,n))}var Rn={YAML:function(n,i,r){var l,t,o;n.version!==null&&v(n,"duplication of %YAML directive"),r.length!==1&&v(n,"YAML directive accepts exactly one argument"),l=/^([0-9]+)\\.([0-9]+)$/.exec(r[0]),l===null&&v(n,"ill-formed argument of the YAML directive"),t=parseInt(l[1],10),o=parseInt(l[2],10),t!==1&&v(n,"unacceptable YAML version of the document"),n.version=r[0],n.checkLineBreaks=o<2,o!==1&&o!==2&&de(n,"unsupported YAML version of the document")},TAG:function(n,i,r){var l,t;r.length!==2&&v(n,"TAG directive accepts exactly two arguments"),l=r[0],t=r[1],Zn.test(l)||v(n,"ill-formed tag handle (first argument) of the TAG directive"),j.call(n.tagMap,l)&&v(n,\'there is a previously declared suffix for "\'+l+\'" tag handle\'),ei.test(t)||v(n,"ill-formed tag prefix (second argument) of the TAG directive");try{t=decodeURIComponent(t)}catch{v(n,"tag prefix is malformed: "+t)}n.tagMap[l]=t}};function H(e,n,i,r){var l,t,o,u;if(n<i){if(u=e.input.slice(n,i),r)for(l=0,t=u.length;l<t;l+=1)o=u.charCodeAt(l),o===9||32<=o&&o<=1114111||v(e,"expected valid JSON character");else Qr.test(u)&&v(e,"the stream contains non-printable characters");e.result+=u}}function Mn(e,n,i,r){var l,t,o,u;for(L.isObject(i)||v(e,"cannot merge mappings; the provided source object is unacceptable"),l=Object.keys(i),o=0,u=l.length;o<u;o+=1)t=l[o],j.call(n,t)||(ni(n,t,i[t]),r[t]=!0)}function K(e,n,i,r,l,t,o,u,f){var c,s;if(Array.isArray(l))for(l=Array.prototype.slice.call(l),c=0,s=l.length;c<s;c+=1)Array.isArray(l[c])&&v(e,"nested arrays are not supported inside keys"),typeof l=="object"&&Nn(l[c])==="[object Object]"&&(l[c]="[object Object]");if(typeof l=="object"&&Nn(l)==="[object Object]"&&(l="[object Object]"),l=String(l),n===null&&(n={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(t))for(c=0,s=t.length;c<s;c+=1)Mn(e,n,t[c],i);else Mn(e,n,t,i);else!e.json&&!j.call(i,l)&&j.call(n,l)&&(e.line=o||e.line,e.lineStart=u||e.lineStart,e.position=f||e.position,v(e,"duplicated mapping key")),ni(n,l,t),delete i[l];return n}function en(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):v(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function _(e,n,i){for(var r=0,l=e.input.charCodeAt(e.position);l!==0;){for(;Y(l);)l===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),l=e.input.charCodeAt(++e.position);if(n&&l===35)do l=e.input.charCodeAt(++e.position);while(l!==10&&l!==13&&l!==0);if(R(l))for(en(e),l=e.input.charCodeAt(e.position),r++,e.lineIndent=0;l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);else break}return i!==-1&&r!==0&&e.lineIndent<i&&de(e,"deficient indentation"),r}function ge(e){var n=e.position,i;return i=e.input.charCodeAt(n),!!((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)&&(n+=3,i=e.input.charCodeAt(n),i===0||T(i)))}function nn(e,n){n===1?e.result+=" ":n>1&&(e.result+=L.repeat(`\n`,n-1))}function ll(e,n,i){var r,l,t,o,u,f,c,s,a=e.kind,p=e.result,d;if(d=e.input.charCodeAt(e.position),T(d)||J(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(l=e.input.charCodeAt(e.position+1),T(l)||i&&J(l)))return!1;for(e.kind="scalar",e.result="",t=o=e.position,u=!1;d!==0;){if(d===58){if(l=e.input.charCodeAt(e.position+1),T(l)||i&&J(l))break}else if(d===35){if(r=e.input.charCodeAt(e.position-1),T(r))break}else{if(e.position===e.lineStart&&ge(e)||i&&J(d))break;if(R(d))if(f=e.line,c=e.lineStart,s=e.lineIndent,_(e,!1,-1),e.lineIndent>=n){u=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=f,e.lineStart=c,e.lineIndent=s;break}}u&&(H(e,t,o,!1),nn(e,e.line-f),t=o=e.position,u=!1),Y(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return H(e,t,o,!1),e.result?!0:(e.kind=a,e.result=p,!1)}function ol(e,n){var i,r,l;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=l=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(H(e,r,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)r=e.position,e.position++,l=e.position;else return!0;else R(i)?(H(e,r,l,!0),nn(e,_(e,!1,n)),r=l=e.position):e.position===e.lineStart&&ge(e)?v(e,"unexpected end of the document within a single quoted scalar"):(e.position++,l=e.position);v(e,"unexpected end of the stream within a single quoted scalar")}function tl(e,n){var i,r,l,t,o,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return H(e,i,e.position,!0),e.position++,!0;if(u===92){if(H(e,i,e.position,!0),u=e.input.charCodeAt(++e.position),R(u))_(e,!1,n);else if(u<256&&ii[u])e.result+=ri[u],e.position++;else if((o=el(u))>0){for(l=o,t=0;l>0;l--)u=e.input.charCodeAt(++e.position),(o=Zr(u))>=0?t=(t<<4)+o:v(e,"expected hexadecimal character");e.result+=il(t),e.position++}else v(e,"unknown escape sequence");i=r=e.position}else R(u)?(H(e,i,r,!0),nn(e,_(e,!1,n)),i=r=e.position):e.position===e.lineStart&&ge(e)?v(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}v(e,"unexpected end of the stream within a double quoted scalar")}function ul(e,n){var i=!0,r,l,t,o=e.tag,u,f=e.anchor,c,s,a,p,d,h=Object.create(null),g,y,w,m;if(m=e.input.charCodeAt(e.position),m===91)s=93,d=!1,u=[];else if(m===123)s=125,d=!0,u={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),m=e.input.charCodeAt(++e.position);m!==0;){if(_(e,!0,n),m=e.input.charCodeAt(e.position),m===s)return e.position++,e.tag=o,e.anchor=f,e.kind=d?"mapping":"sequence",e.result=u,!0;i?m===44&&v(e,"expected the node content, but found \',\'"):v(e,"missed comma between flow collection entries"),y=g=w=null,a=p=!1,m===63&&(c=e.input.charCodeAt(e.position+1),T(c)&&(a=p=!0,e.position++,_(e,!0,n))),r=e.line,l=e.lineStart,t=e.position,Q(e,n,se,!1,!0),y=e.tag,g=e.result,_(e,!0,n),m=e.input.charCodeAt(e.position),(p||e.line===r)&&m===58&&(a=!0,m=e.input.charCodeAt(++e.position),_(e,!0,n),Q(e,n,se,!1,!0),w=e.result),d?K(e,u,h,y,g,w,r,l,t):a?u.push(K(e,null,h,y,g,w,r,l,t)):u.push(g),_(e,!0,n),m=e.input.charCodeAt(e.position),m===44?(i=!0,m=e.input.charCodeAt(++e.position)):i=!1}v(e,"unexpected end of the stream within a flow collection")}function fl(e,n){var i,r,l=Ge,t=!1,o=!1,u=n,f=0,c=!1,s,a;if(a=e.input.charCodeAt(e.position),a===124)r=!1;else if(a===62)r=!0;else return!1;for(e.kind="scalar",e.result="";a!==0;)if(a=e.input.charCodeAt(++e.position),a===43||a===45)Ge===l?l=a===43?Tn:Kr:v(e,"repeat of a chomping mode identifier");else if((s=nl(a))>=0)s===0?v(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?v(e,"repeat of an indentation width identifier"):(u=n+s-1,o=!0);else break;if(Y(a)){do a=e.input.charCodeAt(++e.position);while(Y(a));if(a===35)do a=e.input.charCodeAt(++e.position);while(!R(a)&&a!==0)}for(;a!==0;){for(en(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!o||e.lineIndent<u)&&a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>u&&(u=e.lineIndent),R(a)){f++;continue}if(e.lineIndent<u){l===Tn?e.result+=L.repeat(`\n`,t?1+f:f):l===Ge&&t&&(e.result+=`\n`);break}for(r?Y(a)?(c=!0,e.result+=L.repeat(`\n`,t?1+f:f)):c?(c=!1,e.result+=L.repeat(`\n`,f+1)):f===0?t&&(e.result+=" "):e.result+=L.repeat(`\n`,f):e.result+=L.repeat(`\n`,t?1+f:f),t=!0,o=!0,f=0,i=e.position;!R(a)&&a!==0;)a=e.input.charCodeAt(++e.position);H(e,i,e.position,!1)}return!0}function Pn(e,n){var i,r=e.tag,l=e.anchor,t=[],o,u=!1,f;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=t),f=e.input.charCodeAt(e.position);f!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,v(e,"tab characters must not be used in indentation")),!(f!==45||(o=e.input.charCodeAt(e.position+1),!T(o))));){if(u=!0,e.position++,_(e,!0,-1)&&e.lineIndent<=n){t.push(null),f=e.input.charCodeAt(e.position);continue}if(i=e.line,Q(e,n,Vn,!1,!0),t.push(e.result),_(e,!0,-1),f=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>n)&&f!==0)v(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return u?(e.tag=r,e.anchor=l,e.kind="sequence",e.result=t,!0):!1}function cl(e,n,i){var r,l,t,o,u,f,c=e.tag,s=e.anchor,a={},p=Object.create(null),d=null,h=null,g=null,y=!1,w=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),m=e.input.charCodeAt(e.position);m!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,v(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),t=e.line,(m===63||m===58)&&T(r))m===63?(y&&(K(e,a,p,d,h,null,o,u,f),d=h=g=null),w=!0,y=!0,l=!0):y?(y=!1,l=!0):v(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=r;else{if(o=e.line,u=e.lineStart,f=e.position,!Q(e,i,Xn,!1,!0))break;if(e.line===t){for(m=e.input.charCodeAt(e.position);Y(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),T(m)||v(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(K(e,a,p,d,h,null,o,u,f),d=h=g=null),w=!0,y=!1,l=!1,d=e.tag,h=e.result;else if(w)v(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=s,!0}else if(w)v(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=s,!0}if((e.line===t||e.lineIndent>n)&&(y&&(o=e.line,u=e.lineStart,f=e.position),Q(e,n,pe,!0,l)&&(y?h=e.result:g=e.result),y||(K(e,a,p,d,h,g,o,u,f),d=h=g=null),_(e,!0,-1),m=e.input.charCodeAt(e.position)),(e.line===t||e.lineIndent>n)&&m!==0)v(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return y&&K(e,a,p,d,h,null,o,u,f),w&&(e.tag=c,e.anchor=s,e.kind="mapping",e.result=a),w}function al(e){var n,i=!1,r=!1,l,t,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&v(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(i=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,l="!!",o=e.input.charCodeAt(++e.position)):l="!",n=e.position,i){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(t=e.input.slice(n,e.position),o=e.input.charCodeAt(++e.position)):v(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!T(o);)o===33&&(r?v(e,"tag suffix cannot contain exclamation marks"):(l=e.input.slice(n-1,e.position+1),Zn.test(l)||v(e,"named tag handle cannot contain such characters"),r=!0,n=e.position+1)),o=e.input.charCodeAt(++e.position);t=e.input.slice(n,e.position),Vr.test(t)&&v(e,"tag suffix cannot contain flow indicator characters")}t&&!ei.test(t)&&v(e,"tag name cannot contain such characters: "+t);try{t=decodeURIComponent(t)}catch{v(e,"tag name is malformed: "+t)}return i?e.tag=t:j.call(e.tagMap,l)?e.tag=e.tagMap[l]+t:l==="!"?e.tag="!"+t:l==="!!"?e.tag="tag:yaml.org,2002:"+t:v(e,\'undeclared tag handle "\'+l+\'"\'),!0}function sl(e){var n,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&v(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!T(i)&&!J(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&v(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function pl(e){var n,i,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!T(r)&&!J(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&v(e,"name of an alias node must contain at least one character"),i=e.input.slice(n,e.position),j.call(e.anchorMap,i)||v(e,\'unidentified alias "\'+i+\'"\'),e.result=e.anchorMap[i],_(e,!0,-1),!0}function Q(e,n,i,r,l){var t,o,u,f=1,c=!1,s=!1,a,p,d,h,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,t=o=u=pe===i||Vn===i,r&&_(e,!0,-1)&&(c=!0,e.lineIndent>n?f=1:e.lineIndent===n?f=0:e.lineIndent<n&&(f=-1)),f===1)for(;al(e)||sl(e);)_(e,!0,-1)?(c=!0,u=t,e.lineIndent>n?f=1:e.lineIndent===n?f=0:e.lineIndent<n&&(f=-1)):u=!1;if(u&&(u=c||l),(f===1||pe===i)&&(se===i||Xn===i?g=n:g=n+1,y=e.position-e.lineStart,f===1?u&&(Pn(e,y)||cl(e,y,g))||ul(e,g)?s=!0:(o&&fl(e,g)||ol(e,g)||tl(e,g)?s=!0:pl(e)?(s=!0,(e.tag!==null||e.anchor!==null)&&v(e,"alias node should not have any properties")):ll(e,g,se===i)&&(s=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):f===0&&(s=u&&Pn(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&v(e,\'unacceptable node kind for !<?> tag; it should be "scalar", not "\'+e.kind+\'"\'),a=0,p=e.implicitTypes.length;a<p;a+=1)if(h=e.implicitTypes[a],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(j.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,d=e.typeMap.multi[e.kind||"fallback"],a=0,p=d.length;a<p;a+=1)if(e.tag.slice(0,d[a].tag.length)===d[a].tag){h=d[a];break}h||v(e,"unknown tag !<"+e.tag+">"),e.result!==null&&h.kind!==e.kind&&v(e,"unacceptable node kind for !<"+e.tag+\'> tag; it should be "\'+h.kind+\'", not "\'+e.kind+\'"\'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):v(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||s}function dl(e){var n=e.position,i,r,l,t=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(_(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(t=!0,o=e.input.charCodeAt(++e.position),i=e.position;o!==0&&!T(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(i,e.position),l=[],r.length<1&&v(e,"directive name must not be less than one character in length");o!==0;){for(;Y(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!R(o));break}if(R(o))break;for(i=e.position;o!==0&&!T(o);)o=e.input.charCodeAt(++e.position);l.push(e.input.slice(i,e.position))}o!==0&&en(e),j.call(Rn,r)?Rn[r](e,r,l):de(e,\'unknown document directive "\'+r+\'"\')}if(_(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,_(e,!0,-1)):t&&v(e,"directives end mark is expected"),Q(e,e.lineIndent-1,pe,!1,!0),_(e,!0,-1),e.checkLineBreaks&&Xr.test(e.input.slice(n,e.position))&&de(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ge(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,_(e,!0,-1));return}if(e.position<e.length-1)v(e,"end of the stream or a document separator is expected");else return}function oi(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`\n`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new rl(e,n),r=e.indexOf("\\0");for(r!==-1&&(i.position=r,v(i,"null byte is not allowed in input")),i.input+="\\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)dl(i);return i.documents}function hl(e,n,i){n!==null&&typeof n=="object"&&typeof i>"u"&&(i=n,n=null);var r=oi(e,i);if(typeof n!="function")return r;for(var l=0,t=r.length;l<t;l+=1)n(r[l])}function ml(e,n){var i=oi(e,n);if(i.length!==0){if(i.length===1)return i[0];throw new k("expected a single document in the stream, but found more")}}var gl=hl,xl=ml,ti={loadAll:gl,load:xl},ui=Object.prototype.toString,fi=Object.prototype.hasOwnProperty,rn=65279,vl=9,re=10,yl=13,Al=32,wl=33,Cl=34,Ke=35,El=37,Sl=38,bl=39,_l=42,ci=44,Ll=45,he=58,Fl=61,Ol=62,Il=63,kl=64,ai=91,si=93,Tl=96,pi=123,Nl=124,di=125,I={};I[0]="\\\\0";I[7]="\\\\a";I[8]="\\\\b";I[9]="\\\\t";I[10]="\\\\n";I[11]="\\\\v";I[12]="\\\\f";I[13]="\\\\r";I[27]="\\\\e";I[34]=\'\\\\"\';I[92]="\\\\\\\\";I[133]="\\\\N";I[160]="\\\\_";I[8232]="\\\\L";I[8233]="\\\\P";var Dl=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Rl=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\\.[0-9_]*)?$/;function Ml(e,n){var i,r,l,t,o,u,f;if(n===null)return{};for(i={},r=Object.keys(n),l=0,t=r.length;l<t;l+=1)o=r[l],u=String(n[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),f=e.compiledTypeMap.fallback[o],f&&fi.call(f.styleAliases,u)&&(u=f.styleAliases[u]),i[o]=u;return i}function Pl(e){var n,i,r;if(n=e.toString(16).toUpperCase(),e<=255)i="x",r=2;else if(e<=65535)i="u",r=4;else if(e<=4294967295)i="U",r=8;else throw new k("code point within a string may not be greater than 0xFFFFFFFF");return"\\\\"+i+L.repeat("0",r-n.length)+n}var Wl=1,le=2;function Hl(e){this.schema=e.schema||Qn,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=L.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Ml(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===\'"\'?le:Wl,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Wn(e,n){for(var i=L.repeat(" ",n),r=0,l=-1,t="",o,u=e.length;r<u;)l=e.indexOf(`\n`,r),l===-1?(o=e.slice(r),r=u):(o=e.slice(r,l+1),r=l+1),o.length&&o!==`\n`&&(t+=i),t+=o;return t}function Qe(e,n){return`\n`+L.repeat(" ",e.indent*n)}function jl(e,n){var i,r,l;for(i=0,r=e.implicitTypes.length;i<r;i+=1)if(l=e.implicitTypes[i],l.resolve(n))return!0;return!1}function me(e){return e===Al||e===vl}function oe(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==rn||65536<=e&&e<=1114111}function Hn(e){return oe(e)&&e!==rn&&e!==yl&&e!==re}function jn(e,n,i){var r=Hn(e),l=r&&!me(e);return(i?r:r&&e!==ci&&e!==ai&&e!==si&&e!==pi&&e!==di)&&e!==Ke&&!(n===he&&!l)||Hn(n)&&!me(n)&&e===Ke||n===he&&l}function Bl(e){return oe(e)&&e!==rn&&!me(e)&&e!==Ll&&e!==Il&&e!==he&&e!==ci&&e!==ai&&e!==si&&e!==pi&&e!==di&&e!==Ke&&e!==Sl&&e!==_l&&e!==wl&&e!==Nl&&e!==Fl&&e!==Ol&&e!==bl&&e!==Cl&&e!==El&&e!==kl&&e!==Tl}function Ul(e){return!me(e)&&e!==he}function ne(e,n){var i=e.charCodeAt(n),r;return i>=55296&&i<=56319&&n+1<e.length&&(r=e.charCodeAt(n+1),r>=56320&&r<=57343)?(i-55296)*1024+r-56320+65536:i}function hi(e){var n=/^\\n* /;return n.test(e)}var mi=1,Xe=2,gi=3,xi=4,G=5;function Yl(e,n,i,r,l,t,o,u){var f,c=0,s=null,a=!1,p=!1,d=r!==-1,h=-1,g=Bl(ne(e,0))&&Ul(ne(e,e.length-1));if(n||o)for(f=0;f<e.length;c>=65536?f+=2:f++){if(c=ne(e,f),!oe(c))return G;g=g&&jn(c,s,u),s=c}else{for(f=0;f<e.length;c>=65536?f+=2:f++){if(c=ne(e,f),c===re)a=!0,d&&(p=p||f-h-1>r&&e[h+1]!==" ",h=f);else if(!oe(c))return G;g=g&&jn(c,s,u),s=c}p=p||d&&f-h-1>r&&e[h+1]!==" "}return!a&&!p?g&&!o&&!l(e)?mi:t===le?G:Xe:i>9&&hi(e)?G:o?t===le?G:Xe:p?xi:gi}function $l(e,n,i,r,l){e.dump=(function(){if(n.length===0)return e.quotingType===le?\'""\':"\'\'";if(!e.noCompatMode&&(Dl.indexOf(n)!==-1||Rl.test(n)))return e.quotingType===le?\'"\'+n+\'"\':"\'"+n+"\'";var t=e.indent*Math.max(1,i),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-t),u=r||e.flowLevel>-1&&i>=e.flowLevel;function f(c){return jl(e,c)}switch(Yl(n,u,e.indent,o,f,e.quotingType,e.forceQuotes&&!r,l)){case mi:return n;case Xe:return"\'"+n.replace(/\'/g,"\'\'")+"\'";case gi:return"|"+Bn(n,e.indent)+Un(Wn(n,t));case xi:return">"+Bn(n,e.indent)+Un(Wn(ql(n,o),t));case G:return\'"\'+zl(n)+\'"\';default:throw new k("impossible error: invalid scalar style")}})()}function Bn(e,n){var i=hi(e)?String(n):"",r=e[e.length-1]===`\n`,l=r&&(e[e.length-2]===`\n`||e===`\n`),t=l?"+":r?"":"-";return i+t+`\n`}function Un(e){return e[e.length-1]===`\n`?e.slice(0,-1):e}function ql(e,n){for(var i=/(\\n+)([^\\n]*)/g,r=(function(){var c=e.indexOf(`\n`);return c=c!==-1?c:e.length,i.lastIndex=c,Yn(e.slice(0,c),n)})(),l=e[0]===`\n`||e[0]===" ",t,o;o=i.exec(e);){var u=o[1],f=o[2];t=f[0]===" ",r+=u+(!l&&!t&&f!==""?`\n`:"")+Yn(f,n),l=t}return r}function Yn(e,n){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,r,l=0,t,o=0,u=0,f="";r=i.exec(e);)u=r.index,u-l>n&&(t=o>l?o:u,f+=`\n`+e.slice(l,t),l=t+1),o=u;return f+=`\n`,e.length-l>n&&o>l?f+=e.slice(l,o)+`\n`+e.slice(o+1):f+=e.slice(l),f.slice(1)}function zl(e){for(var n="",i=0,r,l=0;l<e.length;i>=65536?l+=2:l++)i=ne(e,l),r=I[i],!r&&oe(i)?(n+=e[l],i>=65536&&(n+=e[l+1])):n+=r||Pl(i);return n}function Gl(e,n,i){var r="",l=e.tag,t,o,u;for(t=0,o=i.length;t<o;t+=1)u=i[t],e.replacer&&(u=e.replacer.call(i,String(t),u)),(P(e,n,u,!1,!1)||typeof u>"u"&&P(e,n,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=l,e.dump="["+r+"]"}function $n(e,n,i,r){var l="",t=e.tag,o,u,f;for(o=0,u=i.length;o<u;o+=1)f=i[o],e.replacer&&(f=e.replacer.call(i,String(o),f)),(P(e,n+1,f,!0,!0,!1,!0)||typeof f>"u"&&P(e,n+1,null,!0,!0,!1,!0))&&((!r||l!=="")&&(l+=Qe(e,n)),e.dump&&re===e.dump.charCodeAt(0)?l+="-":l+="- ",l+=e.dump);e.tag=t,e.dump=l||"[]"}function Jl(e,n,i){var r="",l=e.tag,t=Object.keys(i),o,u,f,c,s;for(o=0,u=t.length;o<u;o+=1)s="",r!==""&&(s+=", "),e.condenseFlow&&(s+=\'"\'),f=t[o],c=i[f],e.replacer&&(c=e.replacer.call(i,f,c)),P(e,n,f,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?\'"\':"")+":"+(e.condenseFlow?"":" "),P(e,n,c,!1,!1)&&(s+=e.dump,r+=s));e.tag=l,e.dump="{"+r+"}"}function Kl(e,n,i,r){var l="",t=e.tag,o=Object.keys(i),u,f,c,s,a,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new k("sortKeys must be a boolean or a function");for(u=0,f=o.length;u<f;u+=1)p="",(!r||l!=="")&&(p+=Qe(e,n)),c=o[u],s=i[c],e.replacer&&(s=e.replacer.call(i,c,s)),P(e,n+1,c,!0,!0,!0)&&(a=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,a&&(e.dump&&re===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,a&&(p+=Qe(e,n)),P(e,n+1,s,!0,a)&&(e.dump&&re===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,l+=p));e.tag=t,e.dump=l||"{}"}function qn(e,n,i){var r,l,t,o,u,f;for(l=i?e.explicitTypes:e.implicitTypes,t=0,o=l.length;t<o;t+=1)if(u=l[t],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof n=="object"&&n instanceof u.instanceOf)&&(!u.predicate||u.predicate(n))){if(i?u.multi&&u.representName?e.tag=u.representName(n):e.tag=u.tag:e.tag="?",u.represent){if(f=e.styleMap[u.tag]||u.defaultStyle,ui.call(u.represent)==="[object Function]")r=u.represent(n,f);else if(fi.call(u.represent,f))r=u.represent[f](n,f);else throw new k("!<"+u.tag+\'> tag resolver accepts not "\'+f+\'" style\');e.dump=r}return!0}return!1}function P(e,n,i,r,l,t,o){e.tag=null,e.dump=i,qn(e,i,!1)||qn(e,i,!0);var u=ui.call(e.dump),f=r,c;r&&(r=e.flowLevel<0||e.flowLevel>n);var s=u==="[object Object]"||u==="[object Array]",a,p;if(s&&(a=e.duplicates.indexOf(i),p=a!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&n>0)&&(l=!1),p&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&p&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),u==="[object Object]")r&&Object.keys(e.dump).length!==0?(Kl(e,n,e.dump,l),p&&(e.dump="&ref_"+a+e.dump)):(Jl(e,n,e.dump),p&&(e.dump="&ref_"+a+" "+e.dump));else if(u==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&n>0?$n(e,n-1,e.dump,l):$n(e,n,e.dump,l),p&&(e.dump="&ref_"+a+e.dump)):(Gl(e,n,e.dump),p&&(e.dump="&ref_"+a+" "+e.dump));else if(u==="[object String]")e.tag!=="?"&&$l(e,e.dump,n,t,f);else{if(u==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new k("unacceptable kind of an object to dump "+u)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Ql(e,n){var i=[],r=[],l,t;for(Ve(e,i,r),l=0,t=r.length;l<t;l+=1)n.duplicates.push(i[r[l]]);n.usedDuplicates=new Array(t)}function Ve(e,n,i){var r,l,t;if(e!==null&&typeof e=="object")if(l=n.indexOf(e),l!==-1)i.indexOf(l)===-1&&i.push(l);else if(n.push(e),Array.isArray(e))for(l=0,t=e.length;l<t;l+=1)Ve(e[l],n,i);else for(r=Object.keys(e),l=0,t=r.length;l<t;l+=1)Ve(e[r[l]],n,i)}function Xl(e,n){n=n||{};var i=new Hl(n);i.noRefs||Ql(e,i);var r=e;return i.replacer&&(r=i.replacer.call({"":r},"",r)),P(i,0,r,!0,!0)?i.dump+`\n`:""}var Vl=Xl,Zl={dump:Vl};function ln(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var on=ti.load,ot=ti.loadAll,xe=Zl.dump;var tt=ln("safeLoad","load"),ut=ln("safeLoadAll","loadAll"),ft=ln("safeDump","dump");var no=$e;function D(e,n){return n==="yaml"?xe(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function io(e,n,i="json"){let r=D(e,i),l=D(n,i);return r===l?[{value:r}]:tn(e,n,0,i)}function ro(e,n){return io(e,n,"json")}function lo(e,n){try{let i=JSON.parse(e),r=JSON.parse(n),l=JSON.stringify(i),t=JSON.stringify(r);return l===t?[{value:e}]:N(e,n,{newlineIsToken:!1})}catch{return N(e,n,{newlineIsToken:!1})}}function oo(e,n){let i=on(e),r=on(n),l=xe(i,{indent:2,lineWidth:-1,noRefs:!0}),t=xe(r,{indent:2,lineWidth:-1,noRefs:!0});return l===t?[{value:e}]:N(e,n,{newlineIsToken:!1})}function tn(e,n,i,r="json"){let l=D(e,r),t=D(n,r);return l===t?[{value:W(l,i,r)}]:typeof e=="object"&&e!==null&&typeof n=="object"&&n!==null&&!Array.isArray(e)&&!Array.isArray(n)?to(e,n,i,r):Array.isArray(e)&&Array.isArray(n)?uo(e,n,i,r):fo(l,t,i,r)}function to(e,n,i,r="json"){let l=[],t=" ".repeat(i),o=" ".repeat(i+1),u=new Set(Object.keys(e)),f=Object.keys(n),c=[...u].filter(a=>!(a in n)),s=[...f,...c];l.push({value:`{\n`});for(let a=0;a<s.length;a++){let p=s[a],h=a===s.length-1?"":",",g=p in e,y=p in n;if(g&&y){let w=D(e[p],r),m=D(n[p],r);if(w===m){let x=W(w,i+1);l.push({value:o+JSON.stringify(p)+": "+x+h+`\n`})}else{let x=o+JSON.stringify(p)+": ",A=tn(e[p],n[p],i+1,r);if(A.length>0)if(!A[0].removed&&!A[0].added)A[0].value=x+A[0].value;else{let C=A.find(E=>E.removed),F=A.find(E=>E.added);C&&(C.value=x+C.value),F&&(F.value=x+F.value)}if(h&&A.length>0){let C=A[A.length-1];C.value=C.value.replace(/\\n$/,h+`\n`)}l.push(...A)}}else if(g){let w=W(D(e[p],r),i+1);l.push({removed:!0,value:o+JSON.stringify(p)+": "+w+h+`\n`})}else{let w=W(D(n[p],r),i+1);l.push({added:!0,value:o+JSON.stringify(p)+": "+w+h+`\n`})}}return l.push({value:t+`}\n`}),l}function uo(e,n,i,r="json"){let l=[],t=" ".repeat(i),o=" ".repeat(i+1);l.push({value:`[\n`});let u=Math.max(e.length,n.length);for(let f=0;f<u;f++){let s=f===u-1?"":",";if(f>=e.length){let a=W(D(n[f],r),i+1);l.push({added:!0,value:o+a+s+`\n`})}else if(f>=n.length){let a=W(D(e[f],r),i+1);l.push({removed:!0,value:o+a+s+`\n`})}else{let a=D(e[f],r),p=D(n[f],r);if(a===p){let d=W(a,i+1);l.push({value:o+d+s+`\n`})}else{let d=tn(e[f],n[f],i+1,r);if(d.length>0&&(d[0].value=o+d[0].value),s&&d.length>0){let h=d[d.length-1];h.value=h.value.replace(/\\n$/,s+`\n`)}l.push(...d)}}}return l.push({value:t+`]\n`}),l}function fo(e,n,i,r="json"){let l=W(e,i),t=W(n,i);return N(l,t).map(u=>({value:u.value,added:u.added,removed:u.removed}))}function W(e,n,i="json"){if(n===0)return e;let r=" ".repeat(n);return e.split(`\n`).map((l,t)=>t===0?l:r+l).join(`\n`)}var vi=e=>e===""?[]:e.replace(/\\n$/,"").split(`\n`),co=(e,n,i="diffChars")=>{let l=(typeof i=="string"?no[i]:i)(e,n),t={left:[],right:[]};return l.forEach(({added:o,removed:u,value:f})=>{let c={};return o&&(c.type=1,c.value=f,t.right.push(c)),u&&(c.type=2,c.value=f,t.left.push(c)),!u&&!o&&(c.type=0,c.value=f,t.right.push(c),t.left.push(c)),c}),t},yi=(e,n,i=!1,r="diffChars",l=0,t=[],o=!1)=>{let u=[];if(typeof e=="string"&&typeof n=="string")if(r==="diffJson")u=lo(e,n);else if(r==="diffYaml")try{u=oo(e,n)}catch{u=N(e,n,{newlineIsToken:!1})}else u=N(e,n,{newlineIsToken:!1});else u=ro(e,n);let f=l,c=l,s=[],a=0,p=[],d=[],h=(g,y,w,m,x)=>vi(g).map((C,F)=>{let E={},S={};if(!(d.includes(`${y}-${F}`)||x&&F!==0)){if(w||m){let $=!0;if(m){c+=1,E.lineNumber=c,E.type=2,E.value=C||" ";let un=u[y+1];if(un?.added){let fn=vi(un.value)[F];if(fn){let Ai=h(fn,y,!0,!1,!0),{value:B,lineNumber:wi,type:Ci}=Ai[0].right;if(d.push(`${y+1}-${F}`),S.lineNumber=wi,E.value===B)$=!1,S.type=0,E.type=0,S.value=B;else{S.type=Ci;let cn=500,Ei=C.length>cn||B.length>cn;if(i||Ei)S.value=B;else if(o)E.rawValue=C,E.value=C,S.rawValue=B,S.value=B;else{let an=co(C,B,r);S.value=an.right,E.value=an.left}}}}}else f+=1,S.lineNumber=f,S.type=1,S.value=C;$&&!x&&(p.includes(a)||p.push(a))}else c+=1,f+=1,E.lineNumber=c,E.type=0,E.value=C,S.lineNumber=f,S.type=0,S.value=C;return(t?.includes(`L-${E.lineNumber}`)||t?.includes(`R-${S.lineNumber}`)&&!p.includes(a))&&p.push(a),x||(a+=1),{right:S,left:E}}}).filter(Boolean);return u.forEach(({added:g,removed:y,value:w},m)=>{s=[...s,...h(w,m,g,y)]}),{lineInformation:s,diffLines:p}};self.onmessage=e=>{let{oldString:n,newString:i,disableWordDiff:r,lineCompareMethod:l,linesOffset:t,showLines:o,deferWordDiff:u}=e.data,f=yi(n,i,r,l,t,o,u);self.postMessage(f)};})();\n/*! Bundled license information:\n\njs-yaml/dist/js-yaml.mjs:\n (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)\n*/\n',Fo=sr;var I;(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ADDED=1]="ADDED",e[e.REMOVED=2]="REMOVED",e[e.CHANGED=3]="CHANGED"})(I||(I={}));function Z(e,n){return n==="yaml"?bn(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function jo(e,n,i="json"){const t=Z(e,i),r=Z(n,i);return t===r?[{value:t}]:Nn(e,n,0,i)}function Ro(e,n){return jo(e,n,"json")}function Do(e,n){try{const i=JSON.parse(e),t=JSON.parse(n),r=JSON.stringify(i),o=JSON.stringify(t);return r===o?[{value:e}]:oe(e,n,{newlineIsToken:!1})}catch{return oe(e,n,{newlineIsToken:!1})}}function _o(e,n){const i=ti(e),t=ti(n),r=bn(i,{indent:2,lineWidth:-1,noRefs:!0}),o=bn(t,{indent:2,lineWidth:-1,noRefs:!0});return r===o?[{value:e}]:oe(e,n,{newlineIsToken:!1})}function Nn(e,n,i,t="json"){const r=Z(e,t),o=Z(n,t);return r===o?[{value:le(r,i,t)}]:typeof e=="object"&&e!==null&&typeof n=="object"&&n!==null&&!Array.isArray(e)&&!Array.isArray(n)?Mo(e,n,i,t):Array.isArray(e)&&Array.isArray(n)?Wo(e,n,i,t):Ho(r,o,i,t)}function Mo(e,n,i,t="json"){const r=[],o=" ".repeat(i),l=" ".repeat(i+1),s=new Set(Object.keys(e)),a=Object.keys(n),c=[...s].filter(u=>!(u in n)),f=[...a,...c];r.push({value:`{
|
|
55
|
-
`});for(let u=0;u<f.length;u++){const d=f[u],h=u===f.length-1?"":",",p=d in e,y=d in n;if(p&&y){const x=Z(e[d],t),m=Z(n[d],t);if(x===m){const w=le(x,i+1);r.push({value:l+JSON.stringify(d)+": "+w+h+`
|
|
56
|
-
`})}else{const w=l+JSON.stringify(d)+": ",C=Nn(e[d],n[d],i+1,t);if(C.length>0)if(!C[0].removed&&!C[0].added)C[0].value=w+C[0].value;else{const b=C.find(A=>A.removed),E=C.find(A=>A.added);b&&(b.value=w+b.value),E&&(E.value=w+E.value)}if(h&&C.length>0){const b=C[C.length-1];b.value=b.value.replace(/\n$/,h+`
|
|
57
|
-
`)}r.push(...C)}}else if(p){const x=le(Z(e[d],t),i+1);r.push({removed:!0,value:l+JSON.stringify(d)+": "+x+h+`
|
|
58
|
-
`})}else{const x=le(Z(n[d],t),i+1);r.push({added:!0,value:l+JSON.stringify(d)+": "+x+h+`
|
|
59
|
-
`})}}return r.push({value:o+`}
|
|
60
|
-
`}),r}function Wo(e,n,i,t="json"){const r=[],o=" ".repeat(i),l=" ".repeat(i+1);r.push({value:`[
|
|
61
|
-
`});const s=Math.max(e.length,n.length);for(let a=0;a<s;a++){const f=a===s-1?"":",";if(a>=e.length){const u=le(Z(n[a],t),i+1);r.push({added:!0,value:l+u+f+`
|
|
62
|
-
`})}else if(a>=n.length){const u=le(Z(e[a],t),i+1);r.push({removed:!0,value:l+u+f+`
|
|
63
|
-
`})}else{const u=Z(e[a],t),d=Z(n[a],t);if(u===d){const g=le(u,i+1);r.push({value:l+g+f+`
|
|
64
|
-
`})}else{const g=Nn(e[a],n[a],i+1,t);if(g.length>0&&(g[0].value=l+g[0].value),f&&g.length>0){const h=g[g.length-1];h.value=h.value.replace(/\n$/,f+`
|
|
65
|
-
`)}r.push(...g)}}}return r.push({value:o+`]
|
|
66
|
-
`}),r}function Ho(e,n,i,t="json"){const r=le(e,i),o=le(n,i);return oe(r,o).map(s=>({value:s.value,added:s.added,removed:s.removed}))}function le(e,n,i="json"){if(n===0)return e;const t=" ".repeat(n);return e.split(`
|
|
67
|
-
`).map((r,o)=>o===0?r:t+r).join(`
|
|
68
|
-
`)}var H;(function(e){e.CHARS="diffChars",e.WORDS="diffWords",e.WORDS_WITH_SPACE="diffWordsWithSpace",e.LINES="diffLines",e.TRIMMED_LINES="diffTrimmedLines",e.SENTENCES="diffSentences",e.CSS="diffCss",e.JSON="diffJson",e.YAML="diffYaml"})(H||(H={}));const ri=e=>e===""?[]:e.replace(/\n$/,"").split(`
|
|
69
|
-
`),nt=(e,n,i=H.CHARS)=>{const r=(typeof i=="string"?Fo[i]:i)(e,n),o={left:[],right:[]};return r.forEach(({added:l,removed:s,value:a})=>{const c={};return l&&(c.type=I.ADDED,c.value=a,o.right.push(c)),s&&(c.type=I.REMOVED,c.value=a,o.left.push(c)),!s&&!l&&(c.type=I.DEFAULT,c.value=a,o.right.push(c),o.left.push(c)),c}),o},Bo=(e,n,i=!1,t=H.CHARS,r=0,o=[],l=!1)=>{let s=[];if(typeof e=="string"&&typeof n=="string")if(t===H.JSON)s=Do(e,n);else if(t===H.YAML)try{s=_o(e,n)}catch{s=oe(e,n,{newlineIsToken:!1})}else s=oe(e,n,{newlineIsToken:!1});else s=Ro(e,n);let a=r,c=r,f=[],u=0;const d=[],g=[],h=(p,y,x,m,w)=>ri(p).map((b,E)=>{const A={},O={};if(!(g.includes(`${y}-${E}`)||w&&E!==0)){if(x||m){let F=!0;if(m){c+=1,A.lineNumber=c,A.type=I.REMOVED,A.value=b||" ";const J=s[y+1];if(J!=null&&J.added){const Q=ri(J.value)[E];if(Q){const re=h(Q,y,!0,!1,!0),{value:S,lineNumber:_,type:j}=re[0].right;if(g.push(`${y+1}-${E}`),O.lineNumber=_,A.value===S)F=!1,O.type=0,A.type=0,O.value=S;else{O.type=j;const W=500,he=b.length>W||S.length>W;if(i||he)O.value=S;else if(l)A.rawValue=b,A.value=b,O.rawValue=S,O.value=S;else{const ge=nt(b,S,t);O.value=ge.right,A.value=ge.left}}}}}else a+=1,O.lineNumber=a,O.type=I.ADDED,O.value=b;F&&!w&&(d.includes(u)||d.push(u))}else c+=1,a+=1,A.lineNumber=c,A.type=I.DEFAULT,A.value=b,O.lineNumber=a,O.type=I.DEFAULT,O.value=b;return(o!=null&&o.includes(`L-${A.lineNumber}`)||o!=null&&o.includes(`R-${O.lineNumber}`)&&!d.includes(u))&&d.push(u),w||(u+=1),{right:O,left:A}}}).filter(Boolean);return s.forEach(({added:p,removed:y,value:x},m)=>{f=[...f,...h(x,m,p,y)]}),{lineInformation:f,diffLines:d}};let Ee=null,Ne=null;const Po=()=>{if(Ee!==null)return Ee;if(typeof Worker>"u"||typeof Blob>"u"||typeof URL>"u")return Ne=!1,null;try{const e=new Blob([Io],{type:"application/javascript"});Ee=URL.createObjectURL(e),Ne=!0}catch{Ne=!1,Ee=null}return Ee},$o=(e,n,i=!1,t=H.CHARS,r=0,o=[],l=!1)=>{const s=()=>Bo(e,n,i,t,r,o,l),a=Po();return a?new Promise(c=>{let f;try{f=new Worker(a)}catch{Ne=!1,c(s());return}f.onmessage=u=>{c(u.data),f.terminate()},f.onerror=()=>{Ne=!1,f.terminate(),c(s())},f.postMessage({oldString:e,newString:n,disableWordDiff:i,lineCompareMethod:t,linesOffset:r,showLines:o,deferWordDiff:l})}):Promise.resolve(s())};function li(){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[v.jsx("title",{children:"expand"}),v.jsx("path",{d:"m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}function Vo(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}function Go(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),e.nonce!==void 0&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var Uo=(function(){function e(i){var t=this;this._insertTag=function(r){var o;t.tags.length===0?t.insertionPoint?o=t.insertionPoint.nextSibling:t.prepend?o=t.container.firstChild:o=t.before:o=t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(r,o),t.tags.push(r)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(t){t.forEach(this._insertTag)},n.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Go(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Vo(r);try{o.insertRule(t,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(t));this.ctr++},n.flush=function(){this.tags.forEach(function(t){var r;return(r=t.parentNode)==null?void 0:r.removeChild(t)}),this.tags=[],this.ctr=0},e})(),P="-ms-",Ze="-moz-",T="-webkit-",it="comm",In="rule",Fn="decl",Yo="@import",tt="@keyframes",zo="@layer",qo=Math.abs,en=String.fromCharCode,Jo=Object.assign;function Ko(e,n){return B(e,0)^45?(((n<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function rt(e){return e.trim()}function Zo(e,n){return(e=n.exec(e))?e[0]:e}function L(e,n,i){return e.replace(n,i)}function An(e,n){return e.indexOf(n)}function B(e,n){return e.charCodeAt(n)|0}function De(e,n,i){return e.slice(n,i)}function ne(e){return e.length}function jn(e){return e.length}function He(e,n){return n.push(e),e}function Qo(e,n){return e.map(n).join("")}var nn=1,Ce=1,lt=0,z=0,R=0,ke="";function tn(e,n,i,t,r,o,l){return{value:e,root:n,parent:i,type:t,props:r,children:o,line:nn,column:Ce,length:l,return:""}}function Oe(e,n){return Jo(tn("",null,null,"",null,null,0),e,{length:-e.length},n)}function Xo(){return R}function es(){return R=z>0?B(ke,--z):0,Ce--,R===10&&(Ce=1,nn--),R}function q(){return R=z<lt?B(ke,z++):0,Ce++,R===10&&(Ce=1,nn++),R}function te(){return B(ke,z)}function Be(){return z}function Me(e,n){return De(ke,e,n)}function _e(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ot(e){return nn=Ce=1,lt=ne(ke=e),z=0,[]}function st(e){return ke="",e}function Pe(e){return rt(Me(z-1,Cn(e===91?e+2:e===40?e+1:e)))}function ns(e){for(;(R=te())&&R<33;)q();return _e(e)>2||_e(R)>3?"":" "}function is(e,n){for(;--n&&q()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return Me(e,Be()+(n<6&&te()==32&&q()==32))}function Cn(e){for(;q();)switch(R){case e:return z;case 34:case 39:e!==34&&e!==39&&Cn(R);break;case 40:e===41&&Cn(e);break;case 92:q();break}return z}function ts(e,n){for(;q()&&e+R!==57;)if(e+R===84&&te()===47)break;return"/*"+Me(n,z-1)+"*"+en(e===47?e:q())}function rs(e){for(;!_e(te());)q();return Me(e,z)}function ls(e){return st($e("",null,null,null,[""],e=ot(e),0,[0],e))}function $e(e,n,i,t,r,o,l,s,a){for(var c=0,f=0,u=l,d=0,g=0,h=0,p=1,y=1,x=1,m=0,w="",C=r,b=o,E=t,A=w;y;)switch(h=m,m=q()){case 40:if(h!=108&&B(A,u-1)==58){An(A+=L(Pe(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=Pe(m);break;case 9:case 10:case 13:case 32:A+=ns(h);break;case 92:A+=is(Be()-1,7);continue;case 47:switch(te()){case 42:case 47:He(os(ts(q(),Be()),n,i),a);break;default:A+="/"}break;case 123*p:s[c++]=ne(A)*x;case 125*p:case 59:case 0:switch(m){case 0:case 125:y=0;case 59+f:x==-1&&(A=L(A,/\f/g,"")),g>0&&ne(A)-u&&He(g>32?si(A+";",t,i,u-1):si(L(A," ","")+";",t,i,u-2),a);break;case 59:A+=";";default:if(He(E=oi(A,n,i,c,f,r,s,w,C=[],b=[],u),o),m===123)if(f===0)$e(A,n,E,E,C,o,u,s,b);else switch(d===99&&B(A,3)===110?100:d){case 100:case 108:case 109:case 115:$e(e,E,E,t&&He(oi(e,E,E,0,0,r,s,w,r,C=[],u),b),r,b,u,s,t?C:b);break;default:$e(A,E,E,E,[""],b,0,s,b)}}c=f=g=0,p=x=1,w=A="",u=l;break;case 58:u=1+ne(A),g=h;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&es()==125)continue}switch(A+=en(m),m*p){case 38:x=f>0?1:(A+="\f",-1);break;case 44:s[c++]=(ne(A)-1)*x,x=1;break;case 64:te()===45&&(A+=Pe(q())),d=te(),f=u=ne(w=A+=rs(Be())),m++;break;case 45:h===45&&ne(A)==2&&(p=0)}}return o}function oi(e,n,i,t,r,o,l,s,a,c,f){for(var u=r-1,d=r===0?o:[""],g=jn(d),h=0,p=0,y=0;h<t;++h)for(var x=0,m=De(e,u+1,u=qo(p=l[h])),w=e;x<g;++x)(w=rt(p>0?d[x]+" "+m:L(m,/&\f/g,d[x])))&&(a[y++]=w);return tn(e,n,i,r===0?In:s,a,c,f)}function os(e,n,i){return tn(e,n,i,it,en(Xo()),De(e,2,-2),0)}function si(e,n,i,t){return tn(e,n,i,Fn,De(e,0,t),De(e,t+1,-1),t)}function be(e,n){for(var i="",t=jn(e),r=0;r<t;r++)i+=n(e[r],r,e,n)||"";return i}function ss(e,n,i,t){switch(e.type){case zo:if(e.children.length)break;case Yo:case Fn:return e.return=e.return||e.value;case it:return"";case tt:return e.return=e.value+"{"+be(e.children,t)+"}";case In:e.value=e.props.join(",")}return ne(i=be(e.children,t))?e.return=e.value+"{"+i+"}":""}function as(e){var n=jn(e);return function(i,t,r,o){for(var l="",s=0;s<n;s++)l+=e[s](i,t,r,o)||"";return l}}function us(e){return function(n){n.root||(n=n.return)&&e(n)}}function cs(e){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=e(i)),n[i]}}var fs=function(n,i,t){for(var r=0,o=0;r=o,o=te(),r===38&&o===12&&(i[t]=1),!_e(o);)q();return Me(n,z)},ds=function(n,i){var t=-1,r=44;do switch(_e(r)){case 0:r===38&&te()===12&&(i[t]=1),n[t]+=fs(z-1,i,t);break;case 2:n[t]+=Pe(r);break;case 4:if(r===44){n[++t]=te()===58?"&\f":"",i[t]=n[t].length;break}default:n[t]+=en(r)}while(r=q());return n},hs=function(n,i){return st(ds(ot(n),i))},ai=new WeakMap,ps=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var i=n.value,t=n.parent,r=n.column===t.column&&n.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(n.props.length===1&&i.charCodeAt(0)!==58&&!ai.get(t))&&!r){ai.set(n,!0);for(var o=[],l=hs(i,o),s=t.props,a=0,c=0;a<l.length;a++)for(var f=0;f<s.length;f++,c++)n.props[c]=o[a]?l[a].replace(/&\f/g,s[f]):s[f]+" "+l[a]}}},gs=function(n){if(n.type==="decl"){var i=n.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(n.return="",n.value="")}};function at(e,n){switch(Ko(e,n)){case 5103:return T+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return T+e+Ze+e+P+e+e;case 6828:case 4268:return T+e+P+e+e;case 6165:return T+e+P+"flex-"+e+e;case 5187:return T+e+L(e,/(\w+).+(:[^]+)/,T+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return T+e+P+"flex-item-"+L(e,/flex-|-self/,"")+e;case 4675:return T+e+P+"flex-line-pack"+L(e,/align-content|flex-|-self/,"")+e;case 5548:return T+e+P+L(e,"shrink","negative")+e;case 5292:return T+e+P+L(e,"basis","preferred-size")+e;case 6060:return T+"box-"+L(e,"-grow","")+T+e+P+L(e,"grow","positive")+e;case 4554:return T+L(e,/([^-])(transform)/g,"$1"+T+"$2")+e;case 6187:return L(L(L(e,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),e,"")+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+e+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,T+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ne(e)-1-n>6)switch(B(e,n+1)){case 109:if(B(e,n+4)!==45)break;case 102:return L(e,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+Ze+(B(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~An(e,"stretch")?at(L(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(B(e,n+1)!==115)break;case 6444:switch(B(e,ne(e)-3-(~An(e,"!important")&&10))){case 107:return L(e,":",":"+T)+e;case 101:return L(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(B(e,14)===45?"inline-":"")+"box$3$1"+T+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(B(e,n+11)){case 114:return T+e+P+L(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T+e+P+L(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T+e+P+L(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return T+e+P+e+e}return e}var ms=function(n,i,t,r){if(n.length>-1&&!n.return)switch(n.type){case Fn:n.return=at(n.value,n.length);break;case tt:return be([Oe(n,{value:L(n.value,"@","@"+T)})],r);case In:if(n.length)return Qo(n.props,function(o){switch(Zo(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return be([Oe(n,{props:[L(o,/:(read-\w+)/,":"+Ze+"$1")]})],r);case"::placeholder":return be([Oe(n,{props:[L(o,/:(plac\w+)/,":"+T+"input-$1")]}),Oe(n,{props:[L(o,/:(plac\w+)/,":"+Ze+"$1")]}),Oe(n,{props:[L(o,/:(plac\w+)/,P+"input-$1")]})],r)}return""})}},vs=[ms],ys=function(n){var i=n.key;if(i==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=n.stylisPlugins||vs,o={},l,s=[];l=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),x=1;x<y.length;x++)o[y[x]]=!0;s.push(p)});var a,c=[ps,gs];{var f,u=[ss,us(function(p){f.insert(p)})],d=as(c.concat(r,u)),g=function(y){return be(ls(y),d)};a=function(y,x,m,w){f=m,g(y?y+"{"+x.styles+"}":x.styles),w&&(h.inserted[x.name]=!0)}}var h={key:i,sheet:new Uo({key:i,container:l,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:o,registered:{},insert:a};return h.sheet.hydrate(s),h};function xs(e){for(var n=0,i,t=0,r=e.length;r>=4;++t,r-=4)i=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(r){case 3:n^=(e.charCodeAt(t+2)&255)<<16;case 2:n^=(e.charCodeAt(t+1)&255)<<8;case 1:n^=e.charCodeAt(t)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var ws={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bs=/[A-Z]|^ms/g,As=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ut=function(n){return n.charCodeAt(1)===45},ui=function(n){return n!=null&&typeof n!="boolean"},cn=cs(function(e){return ut(e)?e:e.replace(bs,"-$&").toLowerCase()}),ci=function(n,i){switch(n){case"animation":case"animationName":if(typeof i=="string")return i.replace(As,function(t,r,o){return ce={name:r,styles:o,next:ce},r})}return ws[n]!==1&&!ut(n)&&typeof i=="number"&&i!==0?i+"px":i};function Qe(e,n,i){if(i==null)return"";var t=i;if(t.__emotion_styles!==void 0)return t;switch(typeof i){case"boolean":return"";case"object":{var r=i;if(r.anim===1)return ce={name:r.name,styles:r.styles,next:ce},r.name;var o=i;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)ce={name:l.name,styles:l.styles,next:ce},l=l.next;var s=o.styles+";";return s}return Cs(e,n,i)}}var a=i;if(n==null)return a;var c=n[a];return c!==void 0?c:a}function Cs(e,n,i){var t="";if(Array.isArray(i))for(var r=0;r<i.length;r++)t+=Qe(e,n,i[r])+";";else for(var o in i){var l=i[o];if(typeof l!="object"){var s=l;n!=null&&n[s]!==void 0?t+=o+"{"+n[s]+"}":ui(s)&&(t+=cn(o)+":"+ci(o,s)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(n==null||n[l[0]]===void 0))for(var a=0;a<l.length;a++)ui(l[a])&&(t+=cn(o)+":"+ci(o,l[a])+";");else{var c=Qe(e,n,l);switch(o){case"animation":case"animationName":{t+=cn(o)+":"+c+";";break}default:t+=o+"{"+c+"}"}}}return t}var fi=/label:\s*([^\s;{]+)\s*(;|$)/g,ce;function fn(e,n,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var t=!0,r="";ce=void 0;var o=e[0];if(o==null||o.raw===void 0)t=!1,r+=Qe(i,n,o);else{var l=o;r+=l[0]}for(var s=1;s<e.length;s++)if(r+=Qe(i,n,e[s]),t){var a=o;r+=a[s]}fi.lastIndex=0;for(var c="",f;(f=fi.exec(r))!==null;)c+="-"+f[1];var u=xs(r)+c;return{name:u,styles:r,next:ce}}function ct(e,n,i){var t="";return i.split(" ").forEach(function(r){e[r]!==void 0?n.push(e[r]+";"):r&&(t+=r+" ")}),t}var ks=function(n,i,t){var r=n.key+"-"+i.name;n.registered[r]===void 0&&(n.registered[r]=i.styles)},Ss=function(n,i,t){ks(n,i);var r=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var o=i;do n.insert(i===o?"."+r:"",o,n.sheet,!0),o=o.next;while(o!==void 0)}};function di(e,n){if(e.inserted[n.name]===void 0)return e.insert("",n,e.sheet,!0)}function hi(e,n,i){var t=[],r=ct(e,t,i);return t.length<2?i:r+n(t)}var Es=function(n){var i=ys(n);i.sheet.speedy=function(s){this.isSpeedy=s},i.compat=!0;var t=function(){for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];var u=fn(c,i.registered,void 0);return Ss(i,u),i.key+"-"+u.name},r=function(){for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];var u=fn(c,i.registered),d="animation-"+u.name;return di(i,{name:u.name,styles:"@keyframes "+d+"{"+u.styles+"}"}),d},o=function(){for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];var u=fn(c,i.registered);di(i,u)},l=function(){for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];return hi(i.registered,t,Os(c))};return{css:t,cx:l,injectGlobal:o,keyframes:r,hydrate:function(a){a.forEach(function(c){i.inserted[c]=!0})},flush:function(){i.registered={},i.inserted={},i.sheet.flush()},sheet:i.sheet,cache:i,getRegisteredStyles:ct.bind(null,i.registered),merge:hi.bind(null,i.registered,t)}},Os=function e(n){for(var i="",t=0;t<n.length;t++){var r=n[t];if(r!=null){var o=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))o=e(r);else{o="";for(var l in r)r[l]&&l&&(o&&(o+=" "),o+=l)}break}default:o=r}o&&(i&&(i+=" "),i+=o)}}return i};const Ts=(e,n=!1,i="")=>{const{variables:t={},...r}=e,o={light:{diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee",...t.light||{}},dark:{diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#2ea04326",addedColor:"white",removedBackground:"#f851491a",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#2ea04366",wordRemovedBackground:"#f8514966",addedGutterBackground:"#3fb9504d",removedGutterBackground:"#f851494d",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#262831",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#f0f6fc",addedGutterColor:"#f0f6fc",removedGutterColor:"#f0f6fc",codeFoldContentColor:"#9198a1",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#f0f6fc",diffViewerTitleBorderColor:"#353846",...t.dark||{}}},l=n?o.dark:o.light,{css:s,cx:a}=Es({key:"react-diff",nonce:i}),c=s({width:"auto",overflow:"hidden",label:"content"}),f=s({label:"split-view"}),u=s({position:"sticky",top:0,zIndex:2,label:"sticky-header"}),d=s({background:l.diffViewerTitleBackground,color:l.diffViewerTitleColor,padding:"0.5em 1em",display:"flex",alignItems:"center",gap:"0.5em",fontFamily:"monospace",fontSize:12,fill:l.diffViewerTitleColor}),g=s({display:"flex",label:"column-headers"}),h=s({width:"100%",minWidth:"1000px",overflowX:"auto",tableLayout:"fixed",fontSize:12,background:l.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"1.6em",width:"fit-content"},label:"diff-container",borderCollapse:"collapse","@media (max-width: 768px)":{minWidth:"unset"}}),p=s({overflow:"hidden",width:"100%"}),y=s({color:l.diffViewerColor,whiteSpace:"pre-wrap",fontFamily:"monospace",lineBreak:"anywhere",textDecoration:"none",label:"content-text"}),x=s({userSelect:"none",label:"unselectable"}),m=s({label:"no-wrap",pre:{whiteSpace:"pre"},[`.${y}`]:{whiteSpace:"pre",lineBreak:"auto"}}),w=s({background:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",margin:0,label:"all-expand-button",":hover":{fill:l.addedGutterColor},":focus":{outline:`1px ${l.addedGutterColor} solid`}}),C=s({background:l.diffViewerTitleBackground,padding:"0.5em",lineHeight:"1.4em",height:"2.4em",overflow:"hidden",width:"50%",borderBottom:`1px solid ${l.diffViewerTitleBorderColor}`,boxSizing:"border-box",fontSize:12,label:"title-block",":only-child":{width:"100%"},":last-child:not(:only-child)":{borderLeft:`1px solid ${l.diffViewerTitleBorderColor}`},[`.${y}`]:{color:l.diffViewerTitleColor}}),b=s({color:l.gutterColor,label:"line-number"}),E=s({background:l.removedBackground,color:l.removedColor,pre:{color:l.removedColor},[`.${b}`]:{color:l.removedGutterColor},label:"diff-removed"}),A=s({background:l.addedBackground,color:l.addedColor,pre:{color:l.addedColor},[`.${b}`]:{color:l.addedGutterColor},label:"diff-added"}),O=s({background:l.changedBackground,[`.${b}`]:{color:l.gutterColor},label:"diff-changed"}),F=s({display:"inline",textDecoration:"none",label:"word-diff"}),J=s({background:l.wordAddedBackground,label:"word-added"}),Q=s({background:l.wordRemovedBackground,label:"word-removed"}),re=s({backgroundColor:l.codeFoldGutterBackground,label:"code-fold-gutter",minWidth:"50px",width:"50px",textAlign:"center",fill:l.codeFoldContentColor}),S=s({padding:""}),_=s({background:l.codeFoldBackground,cursor:"pointer",display:"inline",margin:0,border:"none",fill:l.codeFoldContentColor,label:"code-fold-expand-button"}),j=s({color:l.codeFoldContentColor,fontFamily:"monospace",label:"code-fold-content"}),W=s({display:"block",width:"10px",height:"10px",backgroundColor:"#ddd",borderWidth:"1px",borderStyle:"solid",borderColor:l.diffViewerTitleBorderColor}),he=s({backgroundColor:l.wordAddedBackground}),ge=s({backgroundColor:l.wordRemovedBackground}),ft=s({backgroundColor:l.codeFoldBackground,fontSize:12,alignItems:"center",userSelect:"none",fontWeight:700,cursor:"pointer",label:"code-fold","&:hover":{color:l.diffViewerColor,fill:l.diffViewerColor,"& *":{color:l.diffViewerColor,fill:l.diffViewerColor}},a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),dt=s({backgroundColor:l.emptyLineBackground,label:"empty-line"}),ht=s({width:28,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${A}`]:{pre:{color:l.addedColor}},[`&.${E}`]:{pre:{color:l.removedColor}}}),pt=s({background:l.highlightBackground,label:"highlighted-line",[`.${J}, .${Q}`]:{backgroundColor:"initial"}}),Rn=s({label:"highlighted-gutter"}),gt=s({userSelect:"none",minWidth:50,width:"50px",padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"center",color:l.gutterColor,background:l.gutterBackground,"&:hover":{cursor:"pointer",background:l.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5,textAlign:"center",width:"100%"},[`&.${A}`]:{background:l.addedGutterBackground},[`&.${E}`]:{background:l.removedGutterBackground},[`&.${Rn}`]:{background:l.highlightGutterBackground,"&:hover":{background:l.highlightGutterBackground}}}),mt=s({"&:hover":{background:l.gutterBackground,cursor:"initial"},label:"empty-gutter"}),vt=s({verticalAlign:"baseline",label:"line",textDecoration:"none"}),yt=s({}),rn={diffContainer:h,diffRemoved:E,diffAdded:A,diffChanged:O,splitView:f,marker:ht,highlightedGutter:Rn,highlightedLine:pt,gutter:gt,line:vt,lineContent:p,wordDiff:F,wordAdded:J,summary:d,block:W,blockAddition:he,blockDeletion:ge,wordRemoved:Q,noSelect:x,noWrap:m,codeFoldGutter:re,codeFoldExpandButton:_,codeFoldContentContainer:S,codeFold:ft,emptyGutter:mt,emptyLine:dt,lineNumber:b,contentText:y,content:c,column:yt,codeFoldContent:j,stickyHeader:u,columnHeaders:g,titleBlock:C,allExpandButton:w},Dn=Object.keys(r).reduce((ln,ue)=>({...ln,[ue]:s(r[ue])}),{});return Object.keys(rn).reduce((ln,ue)=>({...ln,[ue]:Dn[ue]?a(rn[ue],Dn[ue]):rn[ue]}),{})};function Ls(){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[v.jsx("title",{children:"fold"}),v.jsx("path",{d:"M10.896 2H8.75V.75a.75.75 0 0 0-1.5 0V2H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 2ZM8.75 15.25a.75.75 0 0 1-1.5 0V14H5.104a.25.25 0 0 1-.177-.427l2.896-2.896a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25Zm-6.5-6.5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}function Ns(e,n,i){const t=[];let r=0;for(const u of n){const d=typeof u.value=="string"?u.value:"";d.length>0&&(t.push({start:r,end:r+d.length,type:u.type}),r+=d.length)}const o=[];let l=0;for(;l<e.length;)if(e[l]==="<"){const u=e.indexOf(">",l);if(u===-1){o.push({type:"text",content:e.slice(l)});break}o.push({type:"tag",content:e.slice(l,u+1)}),l=u+1}else{let u=e.indexOf("<",l);u===-1&&(u=e.length),o.push({type:"text",content:e.slice(l,u)}),l=u}function s(u){return u.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/ /g," ")}function a(u){return u===I.ADDED?{open:`<ins class="${i.wordDiff} ${i.wordAdded}">`,close:"</ins>"}:u===I.REMOVED?{open:`<del class="${i.wordDiff} ${i.wordRemoved}">`,close:"</del>"}:{open:`<span class="${i.wordDiff}">`,close:"</span>"}}let c=0,f="";for(const u of o)if(u.type==="tag")f+=u.content;else{const d=u.content,g=s(d);let h=0,p=0;for(;h<g.length;){const y=c+h,x=t.find(F=>y>=F.start&&y<F.end);if(!x){const F=d[p];f+=F,p++,h++;continue}const m=x.end-y,w=g.length-h,C=Math.min(m,w);let b=p,E=0;for(;E<C&&b<d.length;){if(d[b]==="&"){const F=d.indexOf(";",b);F!==-1&&F-b<10?b=F+1:b++}else b++;E++}const A=d.slice(p,b),O=a(x.type);O?f+=O.open+A+O.close:f+=A,p=b,h+=C}c+=g.length}return f}var G;(function(e){e.LEFT="L",e.RIGHT="R"})(G||(G={}));const K=class K extends ee.Component{constructor(i){super(i);N(this,"styles");N(this,"wordDiffCache",new Map);N(this,"contentColumnRef",ee.createRef());N(this,"charMeasureRef",ee.createRef());N(this,"stickyHeaderRef",ee.createRef());N(this,"resizeObserver",null);N(this,"getWordDiffValues",(i,t,r)=>{if(!i||!t)return{leftValue:i==null?void 0:i.value,rightValue:t==null?void 0:t.value};if(i.rawValue===void 0||t.rawValue===void 0)return{leftValue:i.value,rightValue:t.value};const o=`${r}-${i.rawValue}-${t.rawValue}`;let l=this.wordDiffCache.get(o);if(!l){const s=this.props.compareMethod===H.JSON||this.props.compareMethod===H.YAML?H.CHARS:this.props.compareMethod,a=nt(i.rawValue,t.rawValue,s);l={left:a.left,right:a.right},this.wordDiffCache.set(o,l)}return{leftValue:l.left,rightValue:l.right}});N(this,"resetCodeBlocks",()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1);N(this,"onBlockExpand",i=>{const t=this.state.expandedBlocks.slice();t.push(i),this.setState({expandedBlocks:t},()=>this.recalculateOffsets())});N(this,"recalculateOffsets",()=>{if(!this.props.infiniteLoading)return;const i=this.measureContentColumnWidth(),t=this.measureCharWidth();if(!i)return;const r=this.getMemoisedKey(),{lineInformation:o,lineBlocks:l,blocks:s}=this.state.computedDiffResult[r]??{};if(!o)return;const a=this.buildCumulativeOffsets(o,l,s,this.state.expandedBlocks,this.props.showDiffOnly,t,i,this.props.splitView);this.setState({cumulativeOffsets:a,contentColumnWidth:i,charWidth:t},()=>{this.onScroll()})});N(this,"computeStyles",Et(Ts));N(this,"onLineNumberClickProxy",i=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(i,t):()=>{});N(this,"shouldHighlightWordDiff",()=>{const{compareMethod:i}=this.props;return i===H.CHARS||i===H.WORDS||i===H.WORDS_WITH_SPACE||i===H.JSON||i===H.YAML});N(this,"renderWordDiff",(i,t)=>{var s,a;const r=this.shouldHighlightWordDiff(),o=i.map(c=>typeof c.value=="string"?c.value:"").join("");if(o.length>500)return[v.jsx("span",{children:o},"long-line")];if(t){const c=t(o),f=(a=(s=c==null?void 0:c.props)==null?void 0:s.dangerouslySetInnerHTML)==null?void 0:a.__html;if(typeof f=="string"){const u=Ns(f,i,{wordDiff:this.styles.wordDiff,wordAdded:r?this.styles.wordAdded:"",wordRemoved:r?this.styles.wordRemoved:""});return[ee.cloneElement(c,{key:"highlighted-diff",dangerouslySetInnerHTML:{__html:u}})]}}return i.map((c,f)=>{let u;return typeof c.value=="string"?u=c.value:u=void 0,c.type===I.ADDED?v.jsx("ins",{className:X(this.styles.wordDiff,{[this.styles.wordAdded]:r}),children:u},f):c.type===I.REMOVED?v.jsx("del",{className:X(this.styles.wordDiff,{[this.styles.wordRemoved]:r}),children:u},f):v.jsx("span",{className:X(this.styles.wordDiff),children:u},f)})});N(this,"renderLine",(i,t,r,o,l,s)=>{const a=`${r}-${i}`,c=`${s}-${l}`,f=this.props.highlightLines.includes(a)||this.props.highlightLines.includes(c),u=t===I.ADDED,d=t===I.REMOVED,g=t===I.CHANGED;let h;const p=Array.isArray(o);p?h=this.renderWordDiff(o,this.props.renderContent):this.props.renderContent?h=this.props.renderContent(o):h=o;let y="div";return u&&!p?y="ins":d&&!p&&(y="del"),v.jsxs(v.Fragment,{children:[!this.props.hideLineNumbers&&v.jsx("td",{onClick:i&&this.onLineNumberClickProxy(a),className:X(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:u,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:g,[this.styles.highlightedGutter]:f}),children:v.jsx("pre",{className:this.styles.lineNumber,children:i})}),!this.props.splitView&&!this.props.hideLineNumbers&&v.jsx("td",{onClick:l&&this.onLineNumberClickProxy(c),className:X(this.styles.gutter,{[this.styles.emptyGutter]:!l,[this.styles.diffAdded]:u,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:g,[this.styles.highlightedGutter]:f}),children:v.jsx("pre",{className:this.styles.lineNumber,children:l})}),this.props.renderGutter?this.props.renderGutter({lineNumber:i,type:t,prefix:r,value:o,additionalLineNumber:l,additionalPrefix:s,styles:this.styles}):null,v.jsx("td",{className:X(this.styles.marker,{[this.styles.emptyLine]:!h,[this.styles.diffAdded]:u,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:g,[this.styles.highlightedLine]:f}),children:v.jsxs("pre",{children:[u&&"+",d&&"-"]})}),v.jsx("td",{ref:r===G.LEFT&&!this.state.cumulativeOffsets?this.contentColumnRef:void 0,className:X(this.styles.content,{[this.styles.emptyLine]:!h,[this.styles.diffAdded]:u,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:g,[this.styles.highlightedLine]:f,left:r===G.LEFT,right:r===G.RIGHT}),onMouseDown:()=>{const x=document.getElementsByClassName(r===G.LEFT?"right":"left");for(let m=0;m<x.length;m++)x.item(m).classList.add(this.styles.noSelect)},title:u&&!p?"Added line":d&&!p?"Removed line":void 0,children:v.jsx(y,{className:this.styles.contentText,children:h})})]})});N(this,"renderSplitView",({left:i,right:t},r)=>{const{leftValue:o,rightValue:l}=this.getWordDiffValues(i,t,r);return v.jsxs("tr",{className:this.styles.line,children:[this.renderLine(i.lineNumber,i.type,G.LEFT,o),this.renderLine(t.lineNumber,t.type,G.RIGHT,l)]},r)});N(this,"renderInlineView",({left:i,right:t},r)=>{const{leftValue:o,rightValue:l}=this.getWordDiffValues(i,t,r);let s;return i.type===I.REMOVED&&t.type===I.ADDED?v.jsxs(ee.Fragment,{children:[v.jsx("tr",{className:this.styles.line,children:this.renderLine(i.lineNumber,i.type,G.LEFT,o,null)}),v.jsx("tr",{className:this.styles.line,children:this.renderLine(null,t.type,G.RIGHT,l,t.lineNumber,G.RIGHT)})]},r):(i.type===I.REMOVED&&(s=this.renderLine(i.lineNumber,i.type,G.LEFT,o,null)),i.type===I.DEFAULT&&(s=this.renderLine(i.lineNumber,i.type,G.LEFT,o,t.lineNumber,G.RIGHT)),t.type===I.ADDED&&(s=this.renderLine(null,t.type,G.RIGHT,l,t.lineNumber)),v.jsx("tr",{className:this.styles.line,children:s},r))});N(this,"onBlockClickProxy",i=>()=>this.onBlockExpand(i));N(this,"renderSkippedLineIndicator",(i,t,r,o)=>{const{hideLineNumbers:l,splitView:s}=this.props,a=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(i,r,o):v.jsxs("span",{className:this.styles.codeFoldContent,children:["@@ -",r-i,",",i," +",o-i,",",i," @@"]}),c=v.jsx("td",{className:this.styles.codeFoldContentContainer,children:v.jsx("button",{type:"button",className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(t),tabIndex:0,children:a})}),f=!s&&!l,u=v.jsx("td",{className:this.styles.codeFoldGutter,children:v.jsx(li,{})});return v.jsxs("tr",{className:this.styles.codeFold,onClick:this.onBlockClickProxy(t),role:"button",tabIndex:0,children:[!l&&u,this.props.renderGutter?v.jsx("td",{className:this.styles.codeFoldGutter}):null,v.jsx("td",{className:X({[this.styles.codeFoldGutter]:f})}),f?v.jsxs(ee.Fragment,{children:[v.jsx("td",{}),c]}):v.jsxs(ee.Fragment,{children:[c,this.props.renderGutter?v.jsx("td",{}):null,v.jsx("td",{}),v.jsx("td",{}),l?null:v.jsx("td",{})]})]},`${r}-${o}`)});N(this,"getMemoisedKey",()=>{const{oldValue:i,newValue:t,disableWordDiff:r,compareMethod:o,linesOffset:l,alwaysShowLines:s,extraLinesSurroundingDiff:a}=this.props;return JSON.stringify({oldValue:i,newValue:t,disableWordDiff:r,compareMethod:o,linesOffset:l,alwaysShowLines:s,extraLinesSurroundingDiff:a})});N(this,"memoisedCompute",async()=>{var y;const{oldValue:i,newValue:t,disableWordDiff:r,compareMethod:o,linesOffset:l}=this.props,s=this.getMemoisedKey();if(this.state.computedDiffResult[s]){this.setState(x=>({...x,isLoading:!1}));return}const a=(y=this.props.infiniteLoading)==null?void 0:y.containerHeight,c=a?typeof a=="number"?a:parseInt(a,10)||0:0,f=!r&&!!this.props.infiniteLoading&&c>0&&c<2e3,{lineInformation:u,diffLines:d}=await $o(i,t,r,o,l,this.props.alwaysShowLines,f),g=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:h,blocks:p}=Ot(u,d,g);this.state.computedDiffResult[s]={lineInformation:u,lineBlocks:h,blocks:p},this.setState(x=>({...x,computedDiffResult:this.state.computedDiffResult,isLoading:!1}),()=>{this.props.infiniteLoading&&requestAnimationFrame(()=>this.recalculateOffsets())})});N(this,"onScroll",()=>{const i=this.state.scrollableContainerRef.current;if(!i||!this.props.infiniteLoading)return;const t=this.getStickyHeaderHeight(),r=Math.max(0,i.scrollTop-t),{cumulativeOffsets:o}=this.state,l=o?this.findLineAtOffset(r,o):Math.floor(r/K.ESTIMATED_ROW_HEIGHT);l!==this.state.visibleStartRow&&this.setState({visibleStartRow:l})});N(this,"renderDiff",()=>{var Q,re;const{splitView:i,infiniteLoading:t,showDiffOnly:r}=this.props,{computedDiffResult:o,expandedBlocks:l,visibleStartRow:s,scrollableContainerRef:a,cumulativeOffsets:c}=this.state,f=this.getMemoisedKey(),{lineInformation:u=[],lineBlocks:d=[],blocks:g=[]}=o[f]??{};let h=0,p=1/0;const y=5;if(t&&a.current){const S=a.current,_=this.getStickyHeaderHeight(),j=Math.max(0,S.scrollTop-_);if(c){const W=c[c.length-1]||0,he=c.length-2;h=Math.max(0,this.findLineAtOffset(j,c)-y),p=this.findLineAtOffset(j+S.clientHeight,c)+y;const ge=Math.ceil(S.clientHeight/K.ESTIMATED_ROW_HEIGHT);p=Math.max(p,h+ge+y),j+S.clientHeight>=W-y*K.ESTIMATED_ROW_HEIGHT&&(p=he+y)}else{const W=Math.ceil(S.clientHeight/K.ESTIMATED_ROW_HEIGHT);h=Math.max(0,s-y),p=s+W+y}}const x=new Map,m=new Set;let w=0;for(let S=0;S<u.length;S++){const _=d[S];if(r&&_!==void 0)if(l.includes(_))x.set(S,w),w++;else{const j=g[_].endLine===S;!m.has(_)&&j&&(m.add(_),x.set(S,w),w++)}else x.set(S,w),w++}const C=w,b=[];let E=0,A=!1,O=-1;m.clear();for(let S=0;S<u.length;S++){const _=u[S],j=x.get(S);if(j!==void 0&&!(j<h)){if(j>p)break;if(A||(E=c?c[j]||0:j*K.ESTIMATED_ROW_HEIGHT,A=!0),O=j,r){const W=d[S];if(W!==void 0){const he=g[W].endLine===S;if(!l.includes(W)&&he){b.push(v.jsx(ee.Fragment,{children:this.renderSkippedLineIndicator(g[W].lines,W,_.left.lineNumber,_.right.lineNumber)},S));continue}if(!l.includes(W))continue}}b.push(i?this.renderSplitView(_,S):this.renderInlineView(_,S))}}const F=c?c[c.length-1]||0:C*K.ESTIMATED_ROW_HEIGHT,J=c&&O>=0?F-(c[O+1]||F):0;return{diffNodes:b,blocks:g,lineInformation:u,totalRenderedRows:C,topPadding:E,bottomPadding:J,totalContentHeight:F,renderedCount:b.length,debug:{visibleRowStart:h,visibleRowEnd:p,totalRows:C,offsetsLength:(c==null?void 0:c.length)??0,renderedCount:b.length,scrollTop:((Q=a.current)==null?void 0:Q.scrollTop)??0,headerHeight:this.getStickyHeaderHeight(),contentScrollTop:a.current?Math.max(0,a.current.scrollTop-this.getStickyHeaderHeight()):0,clientHeight:((re=a.current)==null?void 0:re.clientHeight)??0}}});N(this,"render",()=>{var E,A,O,F,J,Q,re;const{oldValue:i,newValue:t,useDarkTheme:r,leftTitle:o,rightTitle:l,splitView:s,compareMethod:a,hideLineNumbers:c,nonce:f}=this.props;if(typeof a=="string"&&a!==H.JSON&&(typeof i!="string"||typeof t!="string"))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,r,f);const u=this.renderDiff();this.props.renderGutter;let d=0,g=0;for(const S of u.lineInformation)S.left.type===I.ADDED&&g++,S.right.type===I.ADDED&&g++,S.left.type===I.REMOVED&&d++,S.right.type===I.REMOVED&&d++;const h=d+g,p=Math.round(g/h*100),y=[];for(let S=0;S<5;S++)p>S*20?y.push(v.jsx("span",{className:X(this.styles.block,this.styles.blockAddition)},S)):y.push(v.jsx("span",{className:X(this.styles.block,this.styles.blockDeletion)},S));const x=this.state.expandedBlocks.length===u.blocks.length,m=this.props.loadingElement,w=this.props.infiniteLoading?{overflowY:"scroll",overflowX:"hidden",height:this.props.infiniteLoading.containerHeight}:{},C=!!this.props.infiniteLoading&&!this.state.cumulativeOffsets,b=v.jsxs("table",{className:X(this.styles.diffContainer,{[this.styles.splitView]:s,[this.styles.noWrap]:C}),onMouseUp:()=>{const S=document.getElementsByClassName("right");for(let j=0;j<S.length;j++)S.item(j).classList.remove(this.styles.noSelect);const _=document.getElementsByClassName("left");for(let j=0;j<_.length;j++)_.item(j).classList.remove(this.styles.noSelect)},children:[v.jsxs("colgroup",{children:[!this.props.hideLineNumbers&&v.jsx("col",{width:"50px"}),!s&&!this.props.hideLineNumbers&&v.jsx("col",{width:"50px"}),this.props.renderGutter&&v.jsx("col",{width:"50px"}),v.jsx("col",{width:"28px"}),v.jsx("col",{width:"auto"}),s&&v.jsxs(v.Fragment,{children:[!this.props.hideLineNumbers&&v.jsx("col",{width:"50px"}),this.props.renderGutter&&v.jsx("col",{width:"50px"}),v.jsx("col",{width:"28px"}),v.jsx("col",{width:"auto"})]})]}),v.jsx("tbody",{children:u.diffNodes})]});return v.jsxs("div",{style:{...w,position:"relative"},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||o||l)&&v.jsxs("div",{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&v.jsxs("div",{className:this.styles.summary,role:"banner",children:[v.jsx("button",{type:"button",className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:x?[]:u.blocks.map(S=>S.index)},()=>this.recalculateOffsets())},children:x?v.jsx(Ls,{}):v.jsx(li,{})})," ",h,v.jsx("div",{style:{display:"flex",gap:"1px"},children:y}),this.props.summary?v.jsx("span",{children:this.props.summary}):null]}),(o||l)&&v.jsxs("div",{className:this.styles.columnHeaders,children:[v.jsx("div",{className:this.styles.titleBlock,children:o?v.jsx("pre",{className:this.styles.contentText,children:o}):null}),s&&v.jsx("div",{className:this.styles.titleBlock,children:l?v.jsx("pre",{className:this.styles.contentText,children:l}):null})]})]}),this.state.isLoading&&m&&v.jsx(m,{}),this.props.infiniteLoading?v.jsx("div",{style:{height:u.totalContentHeight,position:"relative"},children:v.jsx("div",{style:{position:"absolute",top:u.topPadding,left:0,right:0},children:b})}):b,v.jsx("span",{ref:this.charMeasureRef,style:{position:"absolute",top:0,left:"-9999px",visibility:"hidden",whiteSpace:"pre",fontFamily:"monospace",fontSize:12},"aria-hidden":"true",children:"M"}),this.props.infiniteLoading&&this.props.showDebugInfo&&v.jsxs("div",{style:{position:"fixed",top:10,right:10,background:"rgba(0,0,0,0.85)",color:"#0f0",padding:"10px",fontFamily:"monospace",fontSize:"11px",zIndex:9999,borderRadius:"4px",maxWidth:"300px",lineHeight:1.4},children:[v.jsx("div",{style:{fontWeight:"bold",marginBottom:"5px",color:"#fff"},children:"Debug Info"}),v.jsxs("div",{children:["scrollTop: ",u.debug.scrollTop]}),v.jsxs("div",{children:["headerHeight: ",u.debug.headerHeight]}),v.jsxs("div",{children:["contentScrollTop: ",u.debug.contentScrollTop]}),v.jsxs("div",{children:["clientHeight: ",u.debug.clientHeight]}),v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[v.jsxs("div",{children:["visibleRowStart: ",u.debug.visibleRowStart]}),v.jsxs("div",{children:["visibleRowEnd: ",u.debug.visibleRowEnd]})]}),v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[v.jsxs("div",{children:["totalRows: ",u.debug.totalRows]}),v.jsxs("div",{children:["offsetsLength: ",u.debug.offsetsLength]}),v.jsxs("div",{children:["renderedCount: ",u.debug.renderedCount]})]}),v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[v.jsxs("div",{children:["topPadding: ",u.topPadding.toFixed(0)]}),v.jsxs("div",{children:["bottomPadding: ",u.bottomPadding.toFixed(0)]}),v.jsxs("div",{children:["totalContentHeight: ",u.totalContentHeight.toFixed(0)]})]}),v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#ff0"},children:[v.jsxs("div",{children:["cumulativeOffsets: ",this.state.cumulativeOffsets?"SET":"NULL"]}),v.jsxs("div",{children:["columnWidth: ",((E=this.state.contentColumnWidth)==null?void 0:E.toFixed(0))??"N/A","px"]}),v.jsxs("div",{children:["charWidth: ",((A=this.state.charWidth)==null?void 0:A.toFixed(2))??"N/A","px"]}),v.jsxs("div",{children:["charsPerRow: ",this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):"N/A"]})]}),this.state.cumulativeOffsets&&v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#0ff",fontSize:"10px"},children:[v.jsxs("div",{children:["offsets[",u.debug.visibleRowEnd,"]: ",((O=this.state.cumulativeOffsets[u.debug.visibleRowEnd])==null?void 0:O.toFixed(0))??"N/A"]}),v.jsxs("div",{children:["offsets[",u.debug.totalRows-1,"]: ",((F=this.state.cumulativeOffsets[u.debug.totalRows-1])==null?void 0:F.toFixed(0))??"N/A"]}),v.jsxs("div",{children:["offsets[",u.debug.totalRows,"]: ",((J=this.state.cumulativeOffsets[u.debug.totalRows])==null?void 0:J.toFixed(0))??"N/A"]}),v.jsxs("div",{style:{marginTop:"3px"},children:["viewportEnd: ",(u.debug.contentScrollTop+u.debug.clientHeight).toFixed(0)]}),v.jsxs("div",{style:{marginTop:"3px",color:"#f0f"},children:["scrollHeight: ",((Q=this.state.scrollableContainerRef.current)==null?void 0:Q.scrollHeight)??"N/A"]}),v.jsxs("div",{children:["maxScrollTop: ",(((re=this.state.scrollableContainerRef.current)==null?void 0:re.scrollHeight)??0)-u.debug.clientHeight]})]})]})]})});this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:ee.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null}}getStickyHeaderHeight(){var i;return((i=this.stickyHeaderRef.current)==null?void 0:i.offsetHeight)||0}measureCharWidth(){const i=this.charMeasureRef.current;return i&&i.getBoundingClientRect().width||7.2}measureContentColumnWidth(){const i=this.contentColumnRef.current;if(i&&i.clientWidth>0){const d=window.getComputedStyle(i),g=parseFloat(d.paddingLeft)+parseFloat(d.paddingRight),h=i.clientWidth-g;if(h>0)return h}const t=this.state.scrollableContainerRef.current;if(!t||t.clientWidth<=0)return null;const r=t.clientWidth,o=this.props.hideLineNumbers?0:50,l=28,s=(this.props.splitView,2),a=this.props.splitView?2:1,c=this.props.splitView?2:1,f=s*o+a*l,u=r-f;return Math.max(100,u/c)}getTextLength(i){return i?typeof i=="string"?i.length:i.reduce((t,r)=>t+(typeof r.value=="string"?r.value.length:0),0):0}buildCumulativeOffsets(i,t,r,o,l,s,a,c){var d,g;const f=[0],u=new Set;for(let h=0;h<i.length;h++){const p=i[h];if(l){const b=t[h];if(b!==void 0&&!o.includes(b)){const E=r[b].endLine===h;!u.has(b)&&E&&(u.add(b),f.push(f[f.length-1]+K.ESTIMATED_ROW_HEIGHT));continue}}const y=(d=p.left)!=null&&d.value?this.getTextLength(p.left.value):0,x=(g=p.right)!=null&&g.value?this.getTextLength(p.right.value):0,m=c?Math.max(y,x):y||x,w=Math.floor(a/s),C=w>0?Math.max(1,Math.ceil(m/w)):1;f.push(f[f.length-1]+C*K.ESTIMATED_ROW_HEIGHT)}return f}findLineAtOffset(i,t){let r=0,o=t.length-2;for(;r<o;){const l=Math.floor((r+o+1)/2);t[l]<=i?r=l:o=l-1}return r}componentDidUpdate(i){if(i.oldValue!==this.props.oldValue||i.newValue!==this.props.newValue||i.compareMethod!==this.props.compareMethod||i.disableWordDiff!==this.props.disableWordDiff||i.linesOffset!==this.props.linesOffset){this.wordDiffCache.clear();const t=this.state.scrollableContainerRef.current;t&&(t.scrollTop=0),this.setState(r=>({...r,isLoading:!0,visibleStartRow:0,cumulativeOffsets:null})),this.memoisedCompute()}}componentDidMount(){if(this.setState(i=>({...i,isLoading:!0})),this.memoisedCompute(),typeof ResizeObserver<"u"&&this.props.infiniteLoading){this.resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>this.recalculateOffsets())});const i=this.state.scrollableContainerRef.current;i&&this.resizeObserver.observe(i)}}componentWillUnmount(){var i;(i=this.resizeObserver)==null||i.disconnect()}};N(K,"defaultProps",{oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:H.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""}),N(K,"ESTIMATED_ROW_HEIGHT",19);let pi=K;export{H as DiffMethod,G as LineNumberPrefix,Ts as computeStyles,pi as default};
|