@misha_misha/agentwatch 0.0.3 → 0.0.4

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.
@@ -0,0 +1 @@
1
+ import{F as e,M as t,N as n,t as r}from"./clsx-DsHpp3Uj.js";import{$ as i,At as a,Bt as o,Ct as s,D as c,E as l,F as u,Gt as d,It as f,Mt as p,Pt as m,Q as h,R as g,Rt as _,S as v,Tt as y,W as b,Wt as x,Xt as S,Yt as C,Z as w,_ as T,a as E,b as D,et as O,f as k,g as A,h as ee,ht as j,i as M,it as N,m as te,nt as ne,o as re,p as ie,qt as P,rt as ae,st as F,t as oe,tt as I,ut as se,v as ce,vt as L,wt as R,x as le,xt as z,z as ue}from"./CartesianChart-CZSKepVZ.js";var de=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}e.isPlainObject=t})),fe=n(((e,t)=>{t.exports=de().isPlainObject})),B=e(t()),pe,me,he,ge,_e;function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?V(Object(n),!0).forEach(function(t){ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ve(e,t,n){return(t=ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){var t=be(e,`string`);return typeof t==`symbol`?t:t+``}function be(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(null,arguments)}function W(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var G=(e,t,n,r,i)=>{var a=n-r,o=d(pe||=W([`M `,`,`,``]),e,t);return o+=d(me||=W([`L `,`,`,``]),e+n,t),o+=d(he||=W([`L `,`,`,``]),e+n-a/2,t+i),o+=d(ge||=W([`L `,`,`,``]),e+n-a/2-r,t+i),o+=d(_e||=W([`L `,`,`,` Z`]),e,t),o},xe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},Se=e=>{var t=m(e,xe),{x:n,y:i,upperWidth:a,lowerWidth:o,height:s,className:c}=t,{animationEasing:l,animationDuration:u,animationBegin:d,isUpdateAnimationActive:f}=t,p=(0,B.useRef)(null),[h,g]=(0,B.useState)(-1),v=(0,B.useRef)(a),y=(0,B.useRef)(o),b=(0,B.useRef)(s),x=(0,B.useRef)(n),S=(0,B.useRef)(i),w=O(e,`trapezoid-`);if((0,B.useEffect)(()=>{if(p.current&&p.current.getTotalLength)try{var e=p.current.getTotalLength();e&&g(e)}catch{}},[]),n!==+n||i!==+i||a!==+a||o!==+o||s!==+s||a===0&&o===0||s===0)return null;var T=r(`recharts-trapezoid`,c);if(!f)return B.createElement(`g`,null,B.createElement(`path`,U({},C(t),{className:T,d:G(n,i,a,o,s)})));var E=v.current,D=y.current,k=b.current,A=x.current,ee=S.current,j=`0px ${h===-1?1:h}px`,M=`${h}px ${h}px`,N=ne([`strokeDasharray`],u,l);return B.createElement(I,{animationId:w,key:w,canBegin:h>0,duration:u,easing:l,isActive:f,begin:d},e=>{var r=_(E,a,e),c=_(D,o,e),l=_(k,s,e),u=_(A,n,e),d=_(ee,i,e);p.current&&(v.current=r,y.current=c,b.current=l,x.current=u,S.current=d);var f=e>0?{transition:N,strokeDasharray:M}:{strokeDasharray:j};return B.createElement(`path`,U({},C(t),{className:T,d:G(u,d,r,c,l),ref:p,style:H(H({},f),t.style)}))})},Ce=e(fe()),we=[`option`,`shapeType`,`activeClassName`,`inActiveClassName`];function Te(e,t){if(e==null)return{};var n,r,i=Ee(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?K(Object(n),!0).forEach(function(t){De(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function De(e,t,n){return(t=Oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e){var t=ke(e,`string`);return typeof t==`symbol`?t:t+``}function ke(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ae(e,t){return q(q({},t),e)}function je(e,t){return e===`symbols`}function J(e){var{shapeType:t,elementProps:n}=e;switch(t){case`rectangle`:return B.createElement(i,n);case`trapezoid`:return B.createElement(Se,n);case`sector`:return B.createElement(h,n);case`symbols`:if(je(t,n))return B.createElement(f,n);break;case`curve`:return B.createElement(ae,n);default:return null}}function Me(e){return(0,B.isValidElement)(e)?e.props:e}function Y(e){var{option:t,shapeType:n,activeClassName:r=`recharts-active-shape`,inActiveClassName:i=`recharts-shape`}=e,a=Te(e,we),o;if((0,B.isValidElement)(t))o=(0,B.cloneElement)(t,q(q({},a),Me(t)));else if(typeof t==`function`)o=t(a,a.index);else if((0,Ce.default)(t)&&typeof t!=`boolean`){var s=Ae(t,a);o=B.createElement(J,{shapeType:n,elementProps:s})}else{var c=a;o=B.createElement(J,{shapeType:n,elementProps:c})}return a.isActive?B.createElement(P,{className:r},o):B.createElement(P,{className:i},o)}var Ne=[`children`];function Pe(e,t){if(e==null)return{};var n,r,i=Fe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Fe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ie=(0,B.createContext)({data:[],xAxisId:`xAxis-0`,yAxisId:`yAxis-0`,dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function Le(e){var{children:t}=e,n=Pe(e,Ne);return B.createElement(Ie.Provider,{value:n},t)}var Re=(e,t,n,r)=>u(e,`xAxis`,t,r),ze=(e,t,n,r)=>g(e,`xAxis`,t,r),Be=(e,t,n,r)=>u(e,`yAxis`,n,r),Ve=(e,t,n,r)=>g(e,`yAxis`,n,r),He=a([F,Re,Be,ze,Ve],(e,t,n,r,i)=>y(e,`xAxis`)?L(t,r,!1):L(n,i,!1)),Ue=(e,t,n,r,i)=>i;function We(e){return e.type===`line`}var Ge=a([F,Re,Be,ze,Ve,a([ue,Ue],(e,t)=>e.filter(We).find(e=>e.id===t)),He,w],(e,t,n,r,i,a,o,s)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:u}=s;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||o==null||e!==`horizontal`&&e!==`vertical`)){var{dataKey:d,data:f}=a,p=f!=null&&f.length>0?f:c?.slice(l,u+1);if(p!=null)return mt({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:p})}}),Ke=[`id`],qe=[`type`,`layout`,`connectNulls`,`needClip`,`shape`],Je=[`activeDot`,`animateNewValues`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`hide`,`isAnimationActive`,`label`,`legendType`,`xAxisId`,`yAxisId`,`id`];function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(null,arguments)}function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ye(Object(n),!0).forEach(function(t){Xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xe(e,t,n){return(t=Ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e){var t=Qe(e,`string`);return typeof t==`symbol`?t:t+``}function Qe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Q(e,t){if(e==null)return{};var n,r,i=$e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var et=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:s(n,t),payload:e}]},tt=B.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:c,unit:l,tooltipType:u,id:d}=e,f={dataDefinedOnItem:n,getPosition:x,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:s(o,t),hide:c,type:u,color:r,unit:l,graphicalItemId:d}};return B.createElement(ce,{tooltipEntrySettings:f})}),$=(e,t)=>`${t}px ${e}px`;function nt(e,t){for(var n=e.length%2==0?e:[...e,0],r=[],i=0;i<t;++i)r.push(...n);return r}var rt=(e,t,n)=>{var r=n.reduce((e,t)=>e+t,0);if(!r)return $(t,e);for(var i=Math.floor(e/r),a=e%r,o=[],s=0,c=0;s<n.length;c+=(l=n[s])??0,++s){var l,u=n[s];if(u!=null&&c+u>a){o=[...n.slice(0,s),a-c];break}}var d=o.length%2==0?[0,t]:[t];return[...nt(n,i),...o,...d].map(e=>`${e}px`).join(`, `)};function it(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:o}=r,{id:s}=r,c=S(Q(r,Ke));return B.createElement(te,{points:n,dot:i,className:`recharts-line-dots`,dotClassName:`recharts-line-dot`,dataKey:a,baseProps:c,needClip:o,clipPathId:t})}function at(e){var{showLabels:t,children:n,points:r}=e,i=(0,B.useMemo)(()=>r?.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return Z(Z({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[r]);return B.createElement(le,{value:t?i:void 0},n)}function ot(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:o,layout:s,connectNulls:c,needClip:l,shape:u}=a,d=Z(Z({},C(Q(a,qe))),{},{fill:`none`,className:`recharts-line-curve`,clipPath:l?`url(#clipPath-${t})`:void 0,points:r,type:o,layout:s,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return B.createElement(B.Fragment,null,r?.length>1&&B.createElement(Y,X({shapeType:`curve`,option:u},d,{pathRef:n})),B.createElement(it,{points:r,clipPathId:t,props:a}))}function st(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function ct(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,animateNewValues:f,width:p,height:m,onAnimationEnd:h,onAnimationStart:g}=n,y=i.current,b=O(o,`recharts-line-`),x=(0,B.useRef)(b),[S,C]=(0,B.useState)(!1),w=!S,T=(0,B.useCallback)(()=>{typeof h==`function`&&h(),C(!1)},[h]),E=(0,B.useCallback)(()=>{typeof g==`function`&&g(),C(!0)},[g]),D=st(r.current),k=(0,B.useRef)(0);x.current!==b&&(k.current=a.current,x.current=b);var A=k.current;return B.createElement(at,{points:o,showLabels:w},n.children,B.createElement(I,{animationId:b,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:T,onAnimationStart:E,key:b},e=>{var l=_(A,D+A,e),u=Math.min(l,D),d=c?s?rt(u,D,`${s}`.split(/[,\s]+/gim).map(e=>parseFloat(e))):$(D,u):s==null?void 0:String(s);if(e>0&&D>0&&(i.current=o,a.current=Math.max(a.current,u)),y){var h=y.length/o.length,g=e===1?o:o.map((t,n)=>{var r=Math.floor(n*h);if(y[r]){var i=y[r];return Z(Z({},t),{},{x:_(i.x,t.x,e),y:_(i.y,t.y,e)})}return f?Z(Z({},t),{},{x:_(p*2,t.x,e),y:_(m/2,t.y,e)}):Z(Z({},t),{},{x:t.x,y:t.y})});return i.current=g,B.createElement(ot,{props:n,points:g,clipPathId:t,pathRef:r,strokeDasharray:d})}return B.createElement(ot,{props:n,points:o,clipPathId:t,pathRef:r,strokeDasharray:d})}),B.createElement(v,{label:n.label}))}function lt(e){var{clipPathId:t,props:n}=e,r=(0,B.useRef)(null),i=(0,B.useRef)(0),a=(0,B.useRef)(null);return B.createElement(ct,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}var ut=(e,t)=>({x:e.x??void 0,y:e.y??void 0,value:e.value,errorVal:R(e.payload,t)}),dt=class extends B.Component{render(){var{hide:e,dot:t,points:n,className:i,xAxisId:a,yAxisId:o,top:s,left:l,width:u,height:d,id:f,needClip:p,zIndex:m}=this.props;if(e)return null;var h=r(`recharts-line`,i),g=f,{r:_,strokeWidth:v}=M(t),y=D(t),b=_*2+v,x=p?`url(#clipPath-${y?``:`dots-`}${g})`:void 0;return B.createElement(c,{zIndex:m},B.createElement(P,{className:h},p&&B.createElement(`defs`,null,B.createElement(E,{clipPathId:g,xAxisId:a,yAxisId:o}),!y&&B.createElement(`clipPath`,{id:`clipPath-dots-${g}`},B.createElement(`rect`,{x:l-b/2,y:s-b/2,width:u+b,height:d+b}))),B.createElement(Le,{xAxisId:a,yAxisId:o,data:n,dataPointFormatter:ut,errorBarOffset:0},B.createElement(lt,{props:this.props,clipPathId:g}))),B.createElement(k,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:x}))}},ft={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!0,fill:`#fff`,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:b.line,type:`linear`};function pt(e){var t=m(e,ft),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:c,hide:l,isAnimationActive:u,label:d,legendType:f,xAxisId:h,yAxisId:g,id:_}=t,v=Q(t,Je),{needClip:y}=re(h,g),b=ie(),x=se(),S=j(),C=p(e=>Ge(e,h,g,S,_));if(x!==`horizontal`&&x!==`vertical`||C==null||b==null)return null;var{height:w,width:T,x:E,y:D}=b;return B.createElement(dt,X({},v,{id:_,connectNulls:s,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:l,label:d,legendType:f,xAxisId:h,yAxisId:g,points:C,layout:x,height:w,width:T,left:E,top:D,needClip:y}))}function mt(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:s,bandSize:c,displayedData:l}=e;return l.map((e,l)=>{var u=R(e,s);if(t===`horizontal`)return{x:z({axis:n,ticks:i,bandSize:c,entry:e,index:l}),y:(o(u)?null:r.scale.map(u))??null,value:u,payload:e};var d=o(u)?null:n.scale.map(u),f=z({axis:r,ticks:a,bandSize:c,entry:e,index:l});return d==null||f==null?null:{x:d,y:f,value:u,payload:e}}).filter(Boolean)}function ht(e){var t=m(e,ft),n=j();return B.createElement(A,{id:t.id,type:`line`},e=>B.createElement(B.Fragment,null,B.createElement(T,{legendPayload:et(t)}),B.createElement(tt,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),B.createElement(ee,{type:`line`,id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),B.createElement(pt,X({},t,{id:e}))))}var gt=B.memo(ht,N);gt.displayName=`Line`;var _t=[`axis`],vt=(0,B.forwardRef)((e,t)=>B.createElement(oe,{chartName:`LineChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:_t,tooltipPayloadSearcher:l,categoricalChartProps:e,ref:t}));export{Y as i,gt as n,Le as r,vt as t};
@@ -0,0 +1 @@
1
+ import{F as e,M as t,a as n,c as r,r as i,t as a}from"./clsx-DsHpp3Uj.js";import{l as o,n as s}from"./dist-w_zu0rIf.js";import{t as c}from"./arrow-left-Bg6VjX8-.js";import{i as l}from"./format-zw6IoTwZ.js";import{B as u,C as d,D as ee,Dt as f,Mt as p,P as m,Pt as h,T as g,V as _,Vt as v,W as y,Yt as b,c as x,d as S,ht as C,jt as w,l as T,mt as E,n as D,pt as O,qt as te,r as k,s as A,u as j,w as M}from"./CartesianChart-CZSKepVZ.js";import{n as N,t as P}from"./LineChart-BYjz-1bE.js";var F=class{constructor(e){var{x:t,y:n}=e;this.xAxisScale=t,this.yAxisScale=n}map(e,t){var{position:n}=t;return{x:this.xAxisScale.map(e.x,{position:n})??0,y:this.yAxisScale.map(e.y,{position:n})??0}}mapWithFallback(e,t){var{position:n,fallback:r}=t,i=r===`rangeMin`?this.yAxisScale.rangeMin():r===`rangeMax`?this.yAxisScale.rangeMax():0,a=r===`rangeMin`?this.xAxisScale.rangeMin():r===`rangeMax`?this.xAxisScale.rangeMax():0;return{x:this.xAxisScale.map(e.x,{position:n})??a,y:this.yAxisScale.map(e.y,{position:n})??i}}isInRange(e){var{x:t,y:n}=e,r=t==null||this.xAxisScale.isInRange(t),i=n==null||this.yAxisScale.isInRange(n);return r&&i}},I=e(t());function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?L(Object(n),!0).forEach(function(t){z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function z(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e){var t=V(e,`string`);return typeof t==`symbol`?t:t+``}function V(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(null,arguments)}var U=(e,t)=>{var n;if(I.isValidElement(e))n=I.cloneElement(e,t);else if(typeof e==`function`)n=e(t);else{if(!f(t.x1)||!f(t.y1)||!f(t.x2)||!f(t.y2))return null;n=I.createElement(`line`,H({},t,{className:`recharts-reference-line-line`}))}return n},W=(e,t,n,r,i,a)=>{var{x:o,width:s}=a,c=i.map(e,{position:n});if(!f(c)||t===`discard`&&!i.isInRange(c))return null;var l=[{x:o+s,y:c},{x:o,y:c}];return r===`left`?l.reverse():l},G=(e,t,n,r,i,a)=>{var{y:o,height:s}=a,c=i.map(e,{position:n});if(!f(c)||t===`discard`&&!i.isInRange(c))return null;var l=[{x:c,y:o+s},{x:c,y:o}];return r===`top`?l.reverse():l},K=(e,t,n,r)=>{var i=[r.mapWithFallback(e[0],{position:n,fallback:`rangeMin`}),r.mapWithFallback(e[1],{position:n,fallback:`rangeMax`})];return t===`discard`&&i.some(e=>!r.isInRange(e))?null:i},q=(e,t,n,r,i,a,o)=>{var{x:s,y:c,segment:l,ifOverflow:u}=o,d=v(s);return v(c)?W(c,u,r,a,t,n):d?G(s,u,r,i,e,n):l!=null&&l.length===2?K(l,u,r,new F({x:e,y:t})):null};function J(e){var t=w();return(0,I.useEffect)(()=>(t(T(e)),()=>{t(j(e))})),null}function Y(e){var{xAxisId:t,yAxisId:n,shape:r,className:i,ifOverflow:o}=e,s=C(),c=x(),l=p(e=>u(e,t)),f=p(e=>_(e,n)),h=p(e=>m(e,`xAxis`,t,s)),g=p(e=>m(e,`yAxis`,n,s)),v=O();if(!c||!v||l==null||f==null||h==null||g==null)return null;var y=q(h,g,v,e.position,l.orientation,f.orientation,e);if(!y)return null;var w=y[0],T=y[1];if(w==null||T==null)return null;var{x:E,y:D}=w,{x:k,y:A}=T,j=R(R({clipPath:o===`hidden`?`url(#${c})`:void 0},b(e)),{},{x1:E,y1:D,x2:k,y2:A}),N=S({x1:E,y1:D,x2:k,y2:A});return I.createElement(ee,{zIndex:e.zIndex},I.createElement(te,{className:a(`recharts-reference-line`,i)},U(r,j),I.createElement(d,H({},N,{lowerWidth:N.width,upperWidth:N.width}),I.createElement(M,{label:e.label}),e.children)))}var X={ifOverflow:`discard`,xAxisId:0,yAxisId:0,fill:`none`,label:!1,stroke:`#ccc`,fillOpacity:1,strokeWidth:1,position:`middle`,zIndex:y.line};function Z(e){var t=h(e,X);return I.createElement(I.Fragment,null,I.createElement(J,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),I.createElement(Y,t))}Z.displayName=`ReferenceLine`;var Q=r();function ne(){let{id:e=``}=o(),t=n({queryKey:[`session-compaction`,e],queryFn:()=>i.sessionCompaction(e),refetchInterval:3e3});if(t.isLoading)return(0,Q.jsx)(`div`,{className:`p-6 text-fg-dim`,children:`loading…`});let r=t.data?.series;if(!r)return(0,Q.jsx)(`div`,{className:`p-6 text-fg-dim`,children:`no series data`});let a=r.points.map((e,t)=>({i:t,time:l(e.ts),kind:e.kind,fill:Math.round(e.fillBefore*100),fillAfter:e.fillAfter==null?null:Math.round(e.fillAfter*100),label:e.label})),u=a.filter(e=>e.kind===`compaction`);return(0,Q.jsxs)(`div`,{className:`h-full overflow-auto`,children:[(0,Q.jsxs)(`div`,{className:`px-5 py-4 border-b border-bg-border flex items-baseline gap-3`,children:[(0,Q.jsx)(s,{to:`/sessions/${encodeURIComponent(e)}`,className:`text-fg-dim hover:text-accent`,children:(0,Q.jsx)(c,{className:`w-4 h-4 inline`})}),(0,Q.jsx)(`h1`,{className:`text-lg font-bold`,children:`context / compaction`}),(0,Q.jsx)(`span`,{className:`text-sm text-fg-dim mono`,children:e.slice(0,16)})]}),(0,Q.jsxs)(`div`,{className:`px-5 py-4 grid grid-cols-4 gap-3 border-b border-bg-border`,children:[(0,Q.jsx)($,{label:`context window`,value:r.contextWindow.toLocaleString()}),(0,Q.jsx)($,{label:`max fill`,value:`${Math.round(r.maxFill*100)}%`}),(0,Q.jsx)($,{label:`compactions`,value:String(r.compactionCount)}),(0,Q.jsx)($,{label:`turns`,value:String(r.points.filter(e=>e.kind===`turn`).length)})]}),(0,Q.jsxs)(`div`,{className:`p-5`,children:[(0,Q.jsx)(`div`,{className:`text-xs uppercase text-fg-muted mb-2`,children:`context fill % over time`}),(0,Q.jsx)(`div`,{className:`bg-bg-surface border border-bg-border rounded-lg p-3`,style:{height:340},children:(0,Q.jsx)(E,{children:(0,Q.jsxs)(P,{data:a,children:[(0,Q.jsx)(A,{strokeDasharray:`3 3`,stroke:`#2b3139`}),(0,Q.jsx)(k,{dataKey:`i`,stroke:`#7d8590`,tick:{fontSize:10}}),(0,Q.jsx)(D,{domain:[0,100],stroke:`#7d8590`,tick:{fontSize:10},unit:`%`}),(0,Q.jsx)(g,{contentStyle:{background:`#0b0d10`,border:`1px solid #2b3139`,fontSize:11}}),(0,Q.jsx)(N,{type:`monotone`,dataKey:`fill`,stroke:`#58a6ff`,strokeWidth:2,dot:!1}),u.map(e=>(0,Q.jsx)(Z,{x:e.i,stroke:`#f85149`,strokeDasharray:`3 3`},e.i)),(0,Q.jsx)(Z,{y:80,stroke:`#d29922`,strokeDasharray:`4 4`,label:{value:`80%`,position:`right`,fill:`#d29922`,fontSize:10}})]})})}),r.compactionCount>0&&(0,Q.jsxs)(`div`,{className:`mt-3 text-xs text-fg-dim`,children:[(0,Q.jsx)(`span`,{className:`text-danger`,children:`■`}),` dashed red lines = compaction points (context reset by the agent).`]})]})]})}function $({label:e,value:t}){return(0,Q.jsxs)(`div`,{className:`bg-bg-surface border border-bg-border rounded-md px-3 py-2`,children:[(0,Q.jsx)(`div`,{className:`text-[10px] uppercase text-fg-muted`,children:e}),(0,Q.jsx)(`div`,{className:`mono`,children:t})]})}export{ne as SessionCompactionPage};
@@ -0,0 +1,65 @@
1
+ import{F as e,M as t,N as n,P as r,a as i,c as a,n as o,r as s,t as c}from"./clsx-DsHpp3Uj.js";import{l,n as u}from"./dist-w_zu0rIf.js";import{t as d}from"./arrow-left-Bg6VjX8-.js";import{t as f}from"./file-pen-DWwu4Q-r.js";import{i as p,t as m}from"./format-zw6IoTwZ.js";var h=o(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),g=n(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),_=e(t(),1),v=a(),y=e(g(),1),b=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function x(e,t){return!!(e===t||b(e)&&b(t))}function S(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!x(e[n],t[n]))return!1;return!0}function C(e,t){t===void 0&&(t=S);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}function ee(e,t,n){let r=0,i,a={},o=[];return e.forEach((e,s)=>{let c=t.some(e=>e>=s-n&&e<=s+n);!c&&i===void 0?(i={index:r,startLine:s,endLine:s,lines:1},o.push(i),a[s]=i.index,r++):!c&&i?(i.endLine=s,i.lines++,a[s]=i.index):i=void 0}),{lineBlocks:a,blocks:o}}var w=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},te=new class extends w{};function ne(e,t,n){return te.diff(e,t,n)}function re(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function ie(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function ae(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function oe(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function se(e,t){return ae(e,t,``)}function ce(e,t){return oe(e,t,``)}function le(e,t){return t.slice(0,ue(e,t))}function ue(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function de(e){return e.includes(`\r
2
+ `)&&!e.startsWith(`
3
+ `)&&!e.match(/[^\r]\n/)}function fe(e){return!e.includes(`\r
4
+ `)&&e.includes(`
5
+ `)}function pe(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function me(e,t){if(t)return he(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function T(e,t){if(t)return he(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function he(e,t){if(!t)return[T(e),me(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=pe(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var ge=`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}`,_e=RegExp(`[${ge}]+|\\s+|[^${ge}]`,`ug`),ve=new class extends w{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=pe(e,r)}else n=e.match(_e)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&be(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&be(n,i,r,null,t.intlSegmenter),e}};function ye(e,t,n){return n?.ignoreWhitespace!=null&&!n.ignoreWhitespace?Se(e,t,n):ve.diff(e,t,n)}function be(e,t,n,r,i){if(t&&n){let[a,o]=he(t.value,i),[s,c]=he(n.value,i);if(e){let r=re(a,s);e.value=oe(e.value,s,r),t.value=se(t.value,r),n.value=se(n.value,r)}if(r){let e=ie(o,c);r.value=ae(r.value,c,e),t.value=ce(t.value,e),n.value=ce(n.value,e)}}else if(n){if(e){let e=T(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=T(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=T(r.value,i),[a,o]=he(t.value,i),s=re(n,a);t.value=se(t.value,s);let c=ie(se(n,s),o);t.value=ce(t.value,c),r.value=ae(r.value,n,c),e.value=oe(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=T(r.value,i),n=le(me(t.value,i),e);t.value=ce(t.value,n)}else if(e){let n=le(me(e.value,i),T(t.value,i));t.value=se(t.value,n)}}var xe=new class extends w{tokenize(e){let t=RegExp(`(\\r?\\n)|[${ge}]+|[^\\S\\n\\r]+|[^${ge}]`,`ug`);return e.match(t)||[]}};function Se(e,t,n){return xe.diff(e,t,n)}function Ce(e,t){if(typeof e==`function`)t.callback=e;else if(e)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var we=new class extends w{constructor(){super(...arguments),this.tokenize=Ee}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
6
+ `))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
7
+ `))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
8
+ `)&&(e=e.slice(0,-1)),t.endsWith(`
9
+ `)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function E(e,t,n){return we.diff(e,t,n)}function Te(e,t,n){return n=Ce(n,{ignoreWhitespace:!0}),we.diff(e,t,n)}function Ee(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
10
+ `));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function De(e){return e==`.`||e==`!`||e==`?`}var Oe=new class extends w{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(De(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}};function ke(e,t,n){return Oe.diff(e,t,n)}var Ae=new class extends w{tokenize(e){return e.split(/([{}:;,]|\s+)/)}};function je(e,t,n){return Ae.diff(e,t,n)}var Me=new class extends w{constructor(){super(...arguments),this.tokenize=Ee}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(Pe(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function Ne(e,t,n){return Me.diff(e,t,n)}function Pe(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=Pe(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=Pe(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}var Fe=new class extends w{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function Ie(e,t,n){return Fe.diff(e,t,n)}function Le(e){return Array.isArray(e)?e.map(e=>Le(e)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(e=>Object.assign(Object.assign({},e),{lines:e.lines.map((t,n)=>t.startsWith(`\\`)||t.endsWith(`\r`)||e.lines[n+1]?.startsWith(`\\`)?t:t+`\r`)}))})}function Re(e){return Array.isArray(e)?e.map(e=>Re(e)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(e=>Object.assign(Object.assign({},e),{lines:e.lines.map(e=>e.endsWith(`\r`)?e.substring(0,e.length-1):e)}))})}function ze(e){return Array.isArray(e)||(e=[e]),!e.some(e=>e.hunks.some(e=>e.lines.some(e=>!e.startsWith(`\\`)&&e.endsWith(`\r`))))}function Be(e){return Array.isArray(e)||(e=[e]),e.some(e=>e.hunks.some(e=>e.lines.some(e=>e.endsWith(`\r`))))&&e.every(e=>e.hunks.every(e=>e.lines.every((t,n)=>t.startsWith(`\\`)||t.endsWith(`\r`)||e.lines[n+1]?.startsWith(`\\`))))}function Ve(e){let t=e.split(/\n/),n=[],r=0;function i(){let e={};for(n.push(e);r<t.length;){let n=t[r];if(/^(---|\+\+\+|@@)\s/.test(n))break;let i=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(n);i&&(e.index=n.substring(i[0].length).trim()),r++}for(a(e),a(e),e.hunks=[];r<t.length;){let n=t[r];if(/^(Index:\s|diff\s|---\s|\+\+\+\s|===================================================================)/.test(n))break;if(/^@@/.test(n))e.hunks.push(o());else if(n)throw Error(`Unknown line `+(r+1)+` `+JSON.stringify(n));else r++}}function a(e){let n=/^(---|\+\+\+)\s+/.exec(t[r]);if(n){let i=n[1],a=t[r].substring(3).trim().split(` `,2),o=(a[1]||``).trim(),s=a[0].replace(/\\\\/g,`\\`);s.startsWith(`"`)&&s.endsWith(`"`)&&(s=s.substr(1,s.length-2)),i===`---`?(e.oldFileName=s,e.oldHeader=o):(e.newFileName=s,e.newHeader=o),r++}}function o(){let e=r,n=t[r++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),i={oldStart:+n[1],oldLines:n[2]===void 0?1:+n[2],newStart:+n[3],newLines:n[4]===void 0?1:+n[4],lines:[]};i.oldLines===0&&(i.oldStart+=1),i.newLines===0&&(i.newStart+=1);let a=0,o=0;for(;r<t.length&&(o<i.oldLines||a<i.newLines||t[r]?.startsWith(`\\`));r++){let n=t[r].length==0&&r!=t.length-1?` `:t[r][0];if(n===`+`||n===`-`||n===` `||n===`\\`)i.lines.push(t[r]),n===`+`?a++:n===`-`?o++:n===` `&&(a++,o++);else throw Error(`Hunk at line ${e+1} contained invalid line ${t[r]}`)}if(!a&&i.newLines===1&&(i.newLines=0),!o&&i.oldLines===1&&(i.oldLines=0),a!==i.newLines)throw Error(`Added line count did not match for hunk at line `+(e+1));if(o!==i.oldLines)throw Error(`Removed line count did not match for hunk at line `+(e+1));return i}for(;r<t.length;)i();return n}function He(e,t,n){let r=!0,i=!1,a=!1,o=1;return function s(){if(r&&!a){if(i?o++:r=!1,e+o<=n)return e+o;a=!0}if(!i)return a||(r=!0),t<=e-o?e-o++:(i=!0,s())}}function Ue(e,t,n={}){let r;if(r=typeof t==`string`?Ve(t):Array.isArray(t)?t:[t],r.length>1)throw Error(`applyPatch only works with a single input.`);return We(e,r[0],n)}function We(e,t,n={}){(n.autoConvertLineEndings||n.autoConvertLineEndings==null)&&(de(e)&&ze(t)?t=Le(t):fe(e)&&Be(t)&&(t=Re(t)));let r=e.split(`
11
+ `),i=t.hunks,a=n.compareLine||((e,t,n,r)=>t===r),o=n.fuzzFactor||0,s=0;if(o<0||!Number.isInteger(o))throw Error(`fuzzFactor must be a non-negative integer`);if(!i.length)return e;let c=``,l=!1,u=!1;for(let e=0;e<i[i.length-1].lines.length;e++){let t=i[i.length-1].lines[e];t[0]==`\\`&&(c[0]==`+`?l=!0:c[0]==`-`&&(u=!0)),c=t}if(l){if(u){if(!o&&r[r.length-1]==``)return!1}else if(r[r.length-1]==``)r.pop();else if(!o)return!1}else if(u){if(r[r.length-1]!=``)r.push(``);else if(!o)return!1}function d(e,t,n,i=0,o=!0,s=[],c=0){let l=0,u=!1;for(;i<e.length;i++){let f=e[i],p=f.length>0?f[0]:` `,m=f.length>0?f.substr(1):f;if(p===`-`)if(a(t+1,r[t],p,m))t++,l=0;else return!n||r[t]==null?null:(s[c]=r[t],d(e,t+1,n-1,i,!1,s,c+1));if(p===`+`){if(!o)return null;s[c]=m,c++,l=0,u=!0}if(p===` `)if(l++,s[c]=r[t],a(t+1,r[t],p,m))c++,o=!0,u=!1,t++;else return u||!n?null:r[t]&&(d(e,t+1,n-1,i+1,!1,s,c+1)||d(e,t+1,n-1,i,!1,s,c+1))||d(e,t,n-1,i+1,!1,s,c)}return c-=l,t-=l,s.length=c,{patchedLines:s,oldLineLastI:t-1}}let f=[],p=0;for(let e=0;e<i.length;e++){let t=i[e],n,a=r.length-t.oldLines+o,c;for(let e=0;e<=o;e++){c=t.oldStart+p-1;let r=He(c,s,a);for(;c!==void 0&&(n=d(t.lines,c,e),!n);c=r());if(n)break}if(!n)return!1;for(let e=s;e<c;e++)f.push(r[e]);for(let e=0;e<n.patchedLines.length;e++){let t=n.patchedLines[e];f.push(t)}s=n.oldLineLastI+1,p=c+1-t.oldStart}for(let e=s;e<r.length;e++)f.push(r[e]);return f.join(`
12
+ `)}function Ge(e,t){let n=typeof e==`string`?Ve(e):e,r=0;function i(){let e=n[r++];if(!e)return t.complete();t.loadFile(e,function(n,r){if(n)return t.complete(n);let a=Ue(r,e,t);t.patched(e,a,function(e){if(e)return t.complete(e);i()})})}i()}function Ke(e){return Array.isArray(e)?e.map(e=>Ke(e)).reverse():Object.assign(Object.assign({},e),{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(e=>({oldLines:e.newLines,oldStart:e.newStart,newLines:e.oldLines,newStart:e.oldStart,lines:e.lines.map(e=>e.startsWith(`-`)?`+${e.slice(1)}`:e.startsWith(`+`)?`-${e.slice(1)}`:e)}))})}var qe={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},Je={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},Ye={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function Xe(e,t,n,r,i,a,o){let s;s=o?typeof o==`function`?{callback:o}:o:{},s.context===void 0&&(s.context=4);let c=s.context;if(s.newlineIsToken)throw Error(`newlineIsToken may not be used with patch-generation functions, only with diffing functions`);if(s.callback){let{callback:e}=s;E(n,r,Object.assign(Object.assign({},s),{callback:t=>{e(l(t))}}))}else return l(E(n,r,s));function l(n){if(!n)return;n.push({value:``,lines:[]});function r(e){return e.map(function(e){return` `+e})}let o=[],s=0,l=0,u=[],d=1,f=1;for(let e=0;e<n.length;e++){let t=n[e],i=t.lines||et(t.value);if(t.lines=i,t.added||t.removed){if(!s){let t=n[e-1];s=d,l=f,t&&(u=c>0?r(t.lines.slice(-c)):[],s-=u.length,l-=u.length)}for(let e of i)u.push((t.added?`+`:`-`)+e);t.added?f+=i.length:d+=i.length}else{if(s)if(i.length<=c*2&&e<n.length-2)for(let e of r(i))u.push(e);else{let e=Math.min(i.length,c);for(let t of r(i.slice(0,e)))u.push(t);let t={oldStart:s,oldLines:d-s+e,newStart:l,newLines:f-l+e,lines:u};o.push(t),s=0,l=0,u=[]}d+=i.length,f+=i.length}}for(let e of o)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith(`
13
+ `)?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,`\`),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:o}}}function Ze(e,t){if(t||=qe,Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders)throw 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(e=>Ze(e,t)).join(`
14
+ `)}let n=[];t.includeIndex&&e.oldFileName==e.newFileName&&n.push(`Index: `+e.oldFileName),t.includeUnderline&&n.push(`===================================================================`),t.includeFileHeaders&&(n.push(`--- `+e.oldFileName+(e.oldHeader===void 0?``:` `+e.oldHeader)),n.push(`+++ `+e.newFileName+(e.newHeader===void 0?``:` `+e.newHeader)));for(let t=0;t<e.hunks.length;t++){let r=e.hunks[t];r.oldLines===0&&--r.oldStart,r.newLines===0&&--r.newStart,n.push(`@@ -`+r.oldStart+`,`+r.oldLines+` +`+r.newStart+`,`+r.newLines+` @@`);for(let e of r.lines)n.push(e)}return n.join(`
15
+ `)+`
16
+ `}function Qe(e,t,n,r,i,a,o){if(typeof o==`function`&&(o={callback:o}),o?.callback){let{callback:s}=o;Xe(e,t,n,r,i,a,Object.assign(Object.assign({},o),{callback:e=>{s(e?Ze(e,o.headerOptions):void 0)}}))}else{let s=Xe(e,t,n,r,i,a,o);return s?Ze(s,o?.headerOptions):void 0}}function $e(e,t,n,r,i,a){return Qe(e,e,t,n,r,i,a)}function et(e){let t=e.endsWith(`
17
+ `),n=e.split(`
18
+ `).map(e=>e+`
19
+ `);return t?n.pop():n.push(n.pop().slice(0,-1)),n}function tt(e){let t=[],n,r;for(let i=0;i<e.length;i++)n=e[i],r=n.added?1:n.removed?-1:0,t.push([r,n.value]);return t}function nt(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];r.added?t.push(`<ins>`):r.removed&&t.push(`<del>`),t.push(rt(r.value)),r.added?t.push(`</ins>`):r.removed&&t.push(`</del>`)}return t.join(``)}function rt(e){let t=e;return t=t.replace(/&/g,`&amp;`),t=t.replace(/</g,`&lt;`),t=t.replace(/>/g,`&gt;`),t=t.replace(/"/g,`&quot;`),t}var it=r({Diff:()=>w,FILE_HEADERS_ONLY:()=>Je,INCLUDE_HEADERS:()=>qe,OMIT_HEADERS:()=>Ye,applyPatch:()=>Ue,applyPatches:()=>Ge,arrayDiff:()=>Fe,canonicalize:()=>Pe,characterDiff:()=>te,convertChangesToDMP:()=>tt,convertChangesToXML:()=>nt,createPatch:()=>$e,createTwoFilesPatch:()=>Qe,cssDiff:()=>Ae,diffArrays:()=>Ie,diffChars:()=>ne,diffCss:()=>je,diffJson:()=>Ne,diffLines:()=>E,diffSentences:()=>ke,diffTrimmedLines:()=>Te,diffWords:()=>ye,diffWordsWithSpace:()=>Se,formatPatch:()=>Ze,jsonDiff:()=>Me,lineDiff:()=>we,parsePatch:()=>Ve,reversePatch:()=>Ke,sentenceDiff:()=>Oe,structuredPatch:()=>Xe,wordDiff:()=>ve,wordsWithSpaceDiff:()=>xe});function at(e){return e==null}function ot(e){return typeof e==`object`&&!!e}function st(e){return Array.isArray(e)?e:at(e)?[]:[e]}function ct(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function lt(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function ut(e){return e===0&&1/e==-1/0}var D={isNothing:at,isObject:ot,toArray:st,repeat:lt,isNegativeZero:ut,extend:ct};function dt(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
20
+
21
+ `+e.mark.snippet),r+` `+n):r}function ft(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=dt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}ft.prototype=Object.create(Error.prototype),ft.prototype.constructor=ft,ft.prototype.toString=function(e){return this.name+`: `+dt(this,e)};var O=ft;function pt(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function mt(e,t){return D.repeat(` `,t-e.length)+e}function ht(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=pt(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=D.repeat(` `,t.indent)+mt((e.line-c+1).toString(),u)+` | `+l.str+`
22
+ `+s;for(l=pt(e.buffer,r[o],i[o],e.position,d),s+=D.repeat(` `,t.indent)+mt((e.line+1).toString(),u)+` | `+l.str+`
23
+ `,s+=D.repeat(`-`,t.indent+u+3+l.pos)+`^
24
+ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=pt(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=D.repeat(` `,t.indent)+mt((e.line+c+1).toString(),u)+` | `+l.str+`
25
+ `;return s.replace(/\n$/,``)}var gt=ht,_t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],vt=[`scalar`,`sequence`,`mapping`];function yt(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function bt(e,t){if(t||={},Object.keys(t).forEach(function(t){if(_t.indexOf(t)===-1)throw new O(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=yt(t.styleAliases||null),vt.indexOf(this.kind)===-1)throw new O(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var k=bt;function xt(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function St(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function Ct(e){return this.extend(e)}Ct.prototype.extend=function(e){var t=[],n=[];if(e instanceof k)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new O(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof k))throw new O(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new O(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new O(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof k))throw new O(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(Ct.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=xt(r,`implicit`),r.compiledExplicit=xt(r,`explicit`),r.compiledTypeMap=St(r.compiledImplicit,r.compiledExplicit),r};var wt=new Ct({explicit:[new k(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),new k(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),new k(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})]});function Tt(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function Et(){return null}function Dt(e){return e===null}var Ot=new k(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:Tt,construct:Et,predicate:Dt,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function kt(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function At(e){return e===`true`||e===`True`||e===`TRUE`}function jt(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var Mt=new k(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:kt,construct:At,predicate:jt,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 Nt(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Pt(e){return 48<=e&&e<=55}function Ft(e){return 48<=e&&e<=57}function It(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!Nt(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!Pt(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!Ft(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function Lt(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function Rt(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!D.isNegativeZero(e)}var zt=new k(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:It,construct:Lt,predicate:Rt,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`]}}),Bt=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Vt(e){return!(e===null||!Bt.test(e)||e[e.length-1]===`_`)}function Ht(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var Ut=/^[-+]?[0-9]+e/;function Wt(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(D.isNegativeZero(e))return`-0.0`;return n=e.toString(10),Ut.test(n)?n.replace(`e`,`.e`):n}function Gt(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||D.isNegativeZero(e))}var Kt=new k(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:Vt,construct:Ht,predicate:Gt,represent:Wt,defaultStyle:`lowercase`}),qt=wt.extend({implicit:[Ot,Mt,zt,Kt]}),Jt=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Yt=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 Xt(e){return e===null?!1:Jt.exec(e)!==null||Yt.exec(e)!==null}function Zt(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=Jt.exec(e),t===null&&(t=Yt.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function Qt(e){return e.toISOString()}var $t=new k(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:Xt,construct:Zt,instanceOf:Date,represent:Qt});function en(e){return e===`<<`||e===null}var tn=new k(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:en}),nn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
26
+ \r`;function rn(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=nn;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function an(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=nn,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function on(e){var t=``,n=0,r,i,a=e.length,o=nn;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function sn(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var cn=new k(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:rn,construct:an,predicate:sn,represent:on}),ln=Object.prototype.hasOwnProperty,un=Object.prototype.toString;function dn(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,un.call(i)!==`[object Object]`)return!1;for(a in i)if(ln.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function fn(e){return e===null?[]:e}var pn=new k(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:dn,construct:fn}),mn=Object.prototype.toString;function hn(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],mn.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function gn(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var _n=new k(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:hn,construct:gn}),vn=Object.prototype.hasOwnProperty;function yn(e){if(e===null)return!0;var t,n=e;for(t in n)if(vn.call(n,t)&&n[t]!==null)return!1;return!0}function bn(e){return e===null?{}:e}var xn=new k(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:yn,construct:bn}),Sn=qt.extend({implicit:[$t,tn],explicit:[cn,pn,_n,xn]}),A=Object.prototype.hasOwnProperty,Cn=1,wn=2,Tn=3,En=4,Dn=1,On=2,kn=3,An=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jn=/[\x85\u2028\u2029]/,Mn=/[,\[\]\{\}]/,Nn=/^(?:!|!!|![a-z\-]+!)$/i,Pn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Fn(e){return Object.prototype.toString.call(e)}function j(e){return e===10||e===13}function M(e){return e===9||e===32}function N(e){return e===9||e===32||e===10||e===13}function In(e){return e===44||e===91||e===93||e===123||e===125}function Ln(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Rn(e){return e===120?2:e===117?4:e===85?8:0}function zn(e){return 48<=e&&e<=57?e-48:-1}function Bn(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
27
+ `:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`…`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function Vn(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Hn(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var Un=Array(256),Wn=Array(256),Gn=0;Gn<256;Gn++)Un[Gn]=+!!Bn(Gn),Wn[Gn]=Bn(Gn);function Kn(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Sn,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.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 qn(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=gt(n),new O(t,n)}function P(e,t){throw qn(e,t)}function Jn(e,t){e.onWarning&&e.onWarning.call(null,qn(e,t))}var Yn={YAML:function(e,t,n){var r,i,a;e.version!==null&&P(e,`duplication of %YAML directive`),n.length!==1&&P(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&P(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&P(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Jn(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&P(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],Nn.test(r)||P(e,`ill-formed tag handle (first argument) of the TAG directive`),A.call(e.tagMap,r)&&P(e,`there is a previously declared suffix for "`+r+`" tag handle`),Pn.test(i)||P(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{P(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function F(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||P(e,`expected valid JSON character`);else An.test(s)&&P(e,`the stream contains non-printable characters`);e.result+=s}}function Xn(e,t,n,r){var i,a,o,s;for(D.isObject(n)||P(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],A.call(t,a)||(Hn(t,a,n[a]),r[a]=!0)}function Zn(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&P(e,`nested arrays are not supported inside keys`),typeof i==`object`&&Fn(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&Fn(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)Xn(e,t,a[l],n);else Xn(e,t,a,n);else !e.json&&!A.call(n,i)&&A.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,P(e,`duplicated mapping key`)),Hn(t,i,a),delete n[i];return t}function Qn(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):P(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function I(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;M(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(j(i))for(Qn(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Jn(e,`deficient indentation`),r}function $n(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||N(n)))}function er(e,t){t===1?e.result+=` `:t>1&&(e.result+=D.repeat(`
28
+ `,t-1))}function tr(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(N(p)||In(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),N(i)||n&&In(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),N(i)||n&&In(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),N(r))break}else if(e.position===e.lineStart&&$n(e)||n&&In(p))break;else if(j(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,I(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(F(e,a,o,!1),er(e,e.line-c),a=o=e.position,!1),M(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return F(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function nr(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(F(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else j(n)?(F(e,r,i,!0),er(e,I(e,!1,t)),r=i=e.position):e.position===e.lineStart&&$n(e)?P(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);P(e,`unexpected end of the stream within a single quoted scalar`)}function rr(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return F(e,n,e.position,!0),e.position++,!0;else if(s===92){if(F(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),j(s))I(e,!1,t);else if(s<256&&Un[s])e.result+=Wn[s],e.position++;else if((o=Rn(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=Ln(s))>=0?a=(a<<4)+o:P(e,`expected hexadecimal character`);e.result+=Vn(a),e.position++}else P(e,`unknown escape sequence`);n=r=e.position}else j(s)?(F(e,n,r,!0),er(e,I(e,!1,t)),n=r=e.position):e.position===e.lineStart&&$n(e)?P(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);P(e,`unexpected end of the stream within a double quoted scalar`)}function ir(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(I(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&P(e,`expected the node content, but found ','`):P(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),N(l)&&(d=f=!0,e.position++,I(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,dr(e,t,Cn,!1,!0),g=e.tag,h=e.result,I(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),I(e,!0,t),dr(e,t,Cn,!1,!0),_=e.result),p?Zn(e,s,m,g,h,_,r,i,a):d?s.push(Zn(e,null,m,g,h,_,r,i,a)):s.push(h),I(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}P(e,`unexpected end of the stream within a flow collection`)}function ar(e,t){var n,r,i=Dn,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Dn===i?i=d===43?kn:On:P(e,`repeat of a chomping mode identifier`);else if((u=zn(d))>=0)u===0?P(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?P(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(M(d)){do d=e.input.charCodeAt(++e.position);while(M(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!j(d)&&d!==0)}for(;d!==0;){for(Qn(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),j(d)){c++;continue}if(e.lineIndent<s){i===kn?e.result+=D.repeat(`
29
+ `,a?1+c:c):i===Dn&&a&&(e.result+=`
30
+ `);break}for(r?M(d)?(l=!0,e.result+=D.repeat(`
31
+ `,a?1+c:c)):l?(l=!1,e.result+=D.repeat(`
32
+ `,c+1)):c===0?a&&(e.result+=` `):e.result+=D.repeat(`
33
+ `,c):e.result+=D.repeat(`
34
+ `,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!j(d)&&d!==0;)d=e.input.charCodeAt(++e.position);F(e,n,e.position,!1)}return!0}function or(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,P(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!N(o))));){if(s=!0,e.position++,I(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,dr(e,t,Tn,!1,!0),a.push(e.result),I(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)P(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}function sr(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,P(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&N(r))v===63?(g&&(Zn(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):P(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!dr(e,n,wn,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);M(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),N(v)||P(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(Zn(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)P(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)P(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),dr(e,t,En,!0,i)&&(g?m=e.result:h=e.result),g||(Zn(e,d,f,p,m,h,o,s,c),p=m=h=null),I(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)P(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&Zn(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}function cr(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&P(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):P(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!N(o);)o===33&&(r?P(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),Nn.test(i)||P(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),Mn.test(a)&&P(e,`tag suffix cannot contain flow indicator characters`)}a&&!Pn.test(a)&&P(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{P(e,`tag name is malformed: `+a)}return n?e.tag=a:A.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:P(e,`undeclared tag handle "`+i+`"`),!0}function lr(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&P(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!N(n)&&!In(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&P(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function ur(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!N(r)&&!In(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&P(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),A.call(e.anchorMap,n)||P(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],I(e,!0,-1),!0}function dr(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=En===n||Tn===n,r&&I(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;cr(e)||lr(e);)I(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||En===n)&&(h=Cn===n||wn===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(or(e,g)||sr(e,g,h))||ir(e,h)?u=!0:(o&&ar(e,h)||nr(e,h)||rr(e,h)?u=!0:ur(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&P(e,`alias node should not have any properties`)):tr(e,h,Cn===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&or(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&P(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(A.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||P(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&P(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):P(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}function fr(e){var t=e.position,n,r,i,a=!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&&(I(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!N(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&P(e,`directive name must not be less than one character in length`);o!==0;){for(;M(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!j(o));break}if(j(o))break;for(n=e.position;o!==0&&!N(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&Qn(e),A.call(Yn,r)?Yn[r](e,r,i):Jn(e,`unknown document directive "`+r+`"`)}if(I(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,I(e,!0,-1)):a&&P(e,`directives end mark is expected`),dr(e,e.lineIndent-1,En,!1,!0),I(e,!0,-1),e.checkLineBreaks&&jn.test(e.input.slice(t,e.position))&&Jn(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&$n(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,I(e,!0,-1));return}if(e.position<e.length-1)P(e,`end of the stream or a document separator is expected`);else return}function pr(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
35
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Kn(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,P(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)fr(n);return n.documents}function mr(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=pr(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function hr(e,t){var n=pr(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new O(`expected a single document in the stream, but found more`)}}var gr={loadAll:mr,load:hr},_r=Object.prototype.toString,vr=Object.prototype.hasOwnProperty,yr=65279,br=9,xr=10,Sr=13,Cr=32,wr=33,Tr=34,Er=35,Dr=37,Or=38,kr=39,Ar=42,jr=44,Mr=45,Nr=58,Pr=61,Fr=62,Ir=63,Lr=64,Rr=91,zr=93,Br=96,Vr=123,Hr=124,Ur=125,L={};L[0]=`\\0`,L[7]=`\\a`,L[8]=`\\b`,L[9]=`\\t`,L[10]=`\\n`,L[11]=`\\v`,L[12]=`\\f`,L[13]=`\\r`,L[27]=`\\e`,L[34]=`\\"`,L[92]=`\\\\`,L[133]=`\\N`,L[160]=`\\_`,L[8232]=`\\L`,L[8233]=`\\P`;var Wr=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],Gr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Kr(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&vr.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}function qr(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new O(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+D.repeat(`0`,r-t.length)+t}var Jr=1,Yr=2;function Xr(e){this.schema=e.schema||Sn,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=D.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Kr(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===`"`?Yr:Jr,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 Zr(e,t){for(var n=D.repeat(` `,t),r=0,i=-1,a=``,o,s=e.length;r<s;)i=e.indexOf(`
36
+ `,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
37
+ `&&(a+=n),a+=o;return a}function Qr(e,t){return`
38
+ `+D.repeat(` `,e.indent*t)}function $r(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function ei(e){return e===Cr||e===br}function ti(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==yr||65536<=e&&e<=1114111}function ni(e){return ti(e)&&e!==yr&&e!==Sr&&e!==xr}function ri(e,t,n){var r=ni(e),i=r&&!ei(e);return(n?r:r&&e!==jr&&e!==Rr&&e!==zr&&e!==Vr&&e!==Ur)&&e!==Er&&!(t===Nr&&!i)||ni(t)&&!ei(t)&&e===Er||t===Nr&&i}function ii(e){return ti(e)&&e!==yr&&!ei(e)&&e!==Mr&&e!==Ir&&e!==Nr&&e!==jr&&e!==Rr&&e!==zr&&e!==Vr&&e!==Ur&&e!==Er&&e!==Or&&e!==Ar&&e!==wr&&e!==Hr&&e!==Pr&&e!==Fr&&e!==kr&&e!==Tr&&e!==Dr&&e!==Lr&&e!==Br}function ai(e){return!ei(e)&&e!==Nr}function oi(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function si(e){return/^\n* /.test(e)}var ci=1,li=2,ui=3,di=4,fi=5;function pi(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=ii(oi(e,0))&&ai(oi(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=oi(e,c),!ti(l))return fi;h&&=ri(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=oi(e,c),l===xr)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!ti(l))return fi;h&&=ri(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?ci:a===Yr?fi:li:n>9&&si(e)?fi:o?a===Yr?fi:li:f?di:ui}function mi(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===Yr?`""`:`''`;if(!e.noCompatMode&&(Wr.indexOf(t)!==-1||Gr.test(t)))return e.quotingType===Yr?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return $r(e,t)}switch(pi(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case ci:return t;case li:return`'`+t.replace(/'/g,`''`)+`'`;case ui:return`|`+hi(t,e.indent)+gi(Zr(t,a));case di:return`>`+hi(t,e.indent)+gi(Zr(_i(t,o),a));case fi:return`"`+yi(t)+`"`;default:throw new O(`impossible error: invalid scalar style`)}}()}function hi(e,t){var n=si(e)?String(t):``,r=e[e.length-1]===`
39
+ `;return n+(r&&(e[e.length-2]===`
40
+ `||e===`
41
+ `)?`+`:r?``:`-`)+`
42
+ `}function gi(e){return e[e.length-1]===`
43
+ `?e.slice(0,-1):e}function _i(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
44
+ `);return r=r===-1?e.length:r,n.lastIndex=r,vi(e.slice(0,r),t)}(),i=e[0]===`
45
+ `||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
46
+ `:``)+vi(c,t),i=a}return r}function vi(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
47
+ `+e.slice(i,a),i=a+1),o=s;return c+=`
48
+ `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
49
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function yi(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=oi(e,i),r=L[n],!r&&ti(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||qr(n);return t}function bi(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(R(e,t,s,!1,!1)||s===void 0&&R(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function xi(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(R(e,t+1,c,!0,!0,!1,!0)||c===void 0&&R(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=Qr(e,t)),e.dump&&xr===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function Si(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),R(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),R(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function Ci(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new O(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=Qr(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),R(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&xr===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=Qr(e,t)),R(e,t+1,u,!0,d)&&(e.dump&&xr===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}function wi(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,_r.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(vr.call(s.represent,c))r=s.represent[c](t,c);else throw new O(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function R(e,t,n,r,i,a,o){e.tag=null,e.dump=n,wi(e,n,!1)||wi(e,n,!0);var s=_r.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(Ci(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(Si(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?xi(e,t-1,e.dump,i):xi(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(bi(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&mi(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new O(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}function Ti(e,t){var n=[],r=[],i,a;for(Ei(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function Ei(e,t,n){var r,i,a;if(typeof e==`object`&&e)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)Ei(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)Ei(e[r[i]],t,n)}function Di(e,t){t||={};var n=new Xr(t);n.noRefs||Ti(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),R(n,0,r,!0,!0)?n.dump+`
50
+ `:``}var Oi={dump:Di},ki=gr.load;gr.loadAll;var Ai=Oi.dump,ji='(()=>{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,"&amp;"),n=n.replace(/</g,"&lt;"),n=n.replace(/>/g,"&gt;"),n=n.replace(/"/g,"&quot;"),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',Mi=it,z;(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.ADDED=1]=`ADDED`,e[e.REMOVED=2]=`REMOVED`,e[e.CHANGED=3]=`CHANGED`})(z||={});function B(e,t){return t===`yaml`?Ai(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function Ni(e,t,n=`json`){let r=B(e,n);return r===B(t,n)?[{value:r}]:Li(e,t,0,n)}function Pi(e,t){return Ni(e,t,`json`)}function Fi(e,t){try{let n=JSON.parse(e),r=JSON.parse(t);return JSON.stringify(n)===JSON.stringify(r)?[{value:e}]:E(e,t,{newlineIsToken:!1})}catch{return E(e,t,{newlineIsToken:!1})}}function Ii(e,t){let n=ki(e),r=ki(t);return Ai(n,{indent:2,lineWidth:-1,noRefs:!0})===Ai(r,{indent:2,lineWidth:-1,noRefs:!0})?[{value:e}]:E(e,t,{newlineIsToken:!1})}function Li(e,t,n,r=`json`){let i=B(e,r),a=B(t,r);return i===a?[{value:V(i,n,r)}]:typeof e==`object`&&e&&typeof t==`object`&&t&&!Array.isArray(e)&&!Array.isArray(t)?Ri(e,t,n,r):Array.isArray(e)&&Array.isArray(t)?zi(e,t,n,r):Bi(i,a,n,r)}function Ri(e,t,n,r=`json`){let i=[],a=` `.repeat(n),o=` `.repeat(n+1),s=new Set(Object.keys(e)),c=Object.keys(t),l=[...s].filter(e=>!(e in t)),u=[...c,...l];i.push({value:`{
51
+ `});for(let a=0;a<u.length;a++){let s=u[a],c=a===u.length-1?``:`,`,l=s in e,d=s in t;if(l&&d){let a=B(e[s],r);if(a===B(t[s],r)){let e=V(a,n+1);i.push({value:o+JSON.stringify(s)+`: `+e+c+`
52
+ `})}else{let a=o+JSON.stringify(s)+`: `,l=Li(e[s],t[s],n+1,r);if(l.length>0)if(!l[0].removed&&!l[0].added)l[0].value=a+l[0].value;else{let e=l.find(e=>e.removed),t=l.find(e=>e.added);e&&(e.value=a+e.value),t&&(t.value=a+t.value)}if(c&&l.length>0){let e=l[l.length-1];e.value=e.value.replace(/\n$/,c+`
53
+ `)}i.push(...l)}}else if(l){let t=V(B(e[s],r),n+1);i.push({removed:!0,value:o+JSON.stringify(s)+`: `+t+c+`
54
+ `})}else{let e=V(B(t[s],r),n+1);i.push({added:!0,value:o+JSON.stringify(s)+`: `+e+c+`
55
+ `})}}return i.push({value:a+`}
56
+ `}),i}function zi(e,t,n,r=`json`){let i=[],a=` `.repeat(n),o=` `.repeat(n+1);i.push({value:`[
57
+ `});let s=Math.max(e.length,t.length);for(let a=0;a<s;a++){let c=a===s-1?``:`,`;if(a>=e.length){let e=V(B(t[a],r),n+1);i.push({added:!0,value:o+e+c+`
58
+ `})}else if(a>=t.length){let t=V(B(e[a],r),n+1);i.push({removed:!0,value:o+t+c+`
59
+ `})}else{let s=B(e[a],r);if(s===B(t[a],r)){let e=V(s,n+1);i.push({value:o+e+c+`
60
+ `})}else{let s=Li(e[a],t[a],n+1,r);if(s.length>0&&(s[0].value=o+s[0].value),c&&s.length>0){let e=s[s.length-1];e.value=e.value.replace(/\n$/,c+`
61
+ `)}i.push(...s)}}}return i.push({value:a+`]
62
+ `}),i}function Bi(e,t,n,r=`json`){return E(V(e,n),V(t,n)).map(e=>({value:e.value,added:e.added,removed:e.removed}))}function V(e,t,n=`json`){if(t===0)return e;let r=` `.repeat(t);return e.split(`
63
+ `).map((e,t)=>t===0?e:r+e).join(`
64
+ `)}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||={});var Vi=e=>e===``?[]:e.replace(/\n$/,``).split(`
65
+ `),Hi=(e,t,n=H.CHARS)=>{let r=(typeof n==`string`?Mi[n]:n)(e,t),i={left:[],right:[]};return r.forEach(({added:e,removed:t,value:n})=>{let r={};return e&&(r.type=z.ADDED,r.value=n,i.right.push(r)),t&&(r.type=z.REMOVED,r.value=n,i.left.push(r)),!t&&!e&&(r.type=z.DEFAULT,r.value=n,i.right.push(r),i.left.push(r)),r}),i},Ui=(e,t,n=!1,r=H.CHARS,i=0,a=[],o=!1)=>{let s=[];if(typeof e==`string`&&typeof t==`string`)if(r===H.JSON)s=Fi(e,t);else if(r===H.YAML)try{s=Ii(e,t)}catch{s=E(e,t,{newlineIsToken:!1})}else s=E(e,t,{newlineIsToken:!1});else s=Pi(e,t);let c=i,l=i,u=[],d=0,f=[],p=[],m=(e,t,i,u,h)=>Vi(e).map((e,g)=>{let _={},v={};if(!(p.includes(`${t}-${g}`)||h&&g!==0)){if(i||u){let i=!0;if(u){l+=1,_.lineNumber=l,_.type=z.REMOVED,_.value=e||` `;let a=s[t+1];if(a?.added){let s=Vi(a.value)[g];if(s){let{value:a,lineNumber:c,type:l}=m(s,t,!0,!1,!0)[0].right;if(p.push(`${t+1}-${g}`),v.lineNumber=c,_.value===a)i=!1,v.type=0,_.type=0,v.value=a;else{v.type=l;let t=e.length>500||a.length>500;if(n||t)v.value=a;else if(o)_.rawValue=e,_.value=e,v.rawValue=a,v.value=a;else{let t=Hi(e,a,r);v.value=t.right,_.value=t.left}}}}}else c+=1,v.lineNumber=c,v.type=z.ADDED,v.value=e;i&&!h&&(f.includes(d)||f.push(d))}else l+=1,c+=1,_.lineNumber=l,_.type=z.DEFAULT,_.value=e,v.lineNumber=c,v.type=z.DEFAULT,v.value=e;return(a?.includes(`L-${_.lineNumber}`)||a?.includes(`R-${v.lineNumber}`)&&!f.includes(d))&&f.push(d),h||(d+=1),{right:v,left:_}}}).filter(Boolean);return s.forEach(({added:e,removed:t,value:n},r)=>{u=[...u,...m(n,r,e,t)]}),{lineInformation:u,diffLines:f}},Wi=null,Gi=()=>{if(Wi!==null)return Wi;if(typeof Worker>`u`||typeof Blob>`u`||typeof URL>`u`)return null;try{let e=new Blob([ji],{type:`application/javascript`});Wi=URL.createObjectURL(e)}catch{Wi=null}return Wi},Ki=(e,t,n=!1,r=H.CHARS,i=0,a=[],o=!1)=>{let s=()=>Ui(e,t,n,r,i,a,o),c=Gi();return c?new Promise(l=>{let u;try{u=new Worker(c)}catch{l(s());return}u.onmessage=e=>{l(e.data),u.terminate()},u.onerror=()=>{u.terminate(),l(s())},u.postMessage({oldString:e,newString:t,disableWordDiff:n,lineCompareMethod:r,linesOffset:i,showLines:a,deferWordDiff:o})}):Promise.resolve(s())};function qi(){return(0,v.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:[(0,v.jsx)(`title`,{children:`expand`}),(0,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`})]})}var Ji=!1;function Yi(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Xi(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var Zi=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!Ji:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Xi(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Yi(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),U=`-ms-`,Qi=`-moz-`,W=`-webkit-`,$i=`comm`,ea=`rule`,ta=`decl`,na=`@import`,ra=`@keyframes`,ia=`@layer`,aa=Math.abs,oa=String.fromCharCode,sa=Object.assign;function ca(e,t){return K(e,0)^45?(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3):0}function la(e){return e.trim()}function ua(e,t){return(e=t.exec(e))?e[0]:e}function G(e,t,n){return e.replace(t,n)}function da(e,t){return e.indexOf(t)}function K(e,t){return e.charCodeAt(t)|0}function fa(e,t,n){return e.slice(t,n)}function q(e){return e.length}function pa(e){return e.length}function ma(e,t){return t.push(e),e}function ha(e,t){return e.map(t).join(``)}var ga=1,_a=1,va=0,J=0,Y=0,ya=``;function ba(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ga,column:_a,length:o,return:``}}function xa(e,t){return sa(ba(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Sa(){return Y}function Ca(){return Y=J>0?K(ya,--J):0,_a--,Y===10&&(_a=1,ga--),Y}function X(){return Y=J<va?K(ya,J++):0,_a++,Y===10&&(_a=1,ga++),Y}function Z(){return K(ya,J)}function wa(){return J}function Ta(e,t){return fa(ya,e,t)}function Ea(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 Da(e){return ga=_a=1,va=q(ya=e),J=0,[]}function Oa(e){return ya=``,e}function ka(e){return la(Ta(J-1,Ma(e===91?e+2:e===40?e+1:e)))}function Aa(e){for(;(Y=Z())&&Y<33;)X();return Ea(e)>2||Ea(Y)>3?``:` `}function ja(e,t){for(;--t&&X()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Ta(e,wa()+(t<6&&Z()==32&&X()==32))}function Ma(e){for(;X();)switch(Y){case e:return J;case 34:case 39:e!==34&&e!==39&&Ma(Y);break;case 40:e===41&&Ma(e);break;case 92:X();break}return J}function Na(e,t){for(;X()&&e+Y!==57&&!(e+Y===84&&Z()===47););return`/*`+Ta(t,J-1)+`*`+oa(e===47?e:X())}function Pa(e){for(;!Ea(Z());)X();return Ta(e,J)}function Fa(e){return Oa(Ia(``,null,null,null,[``],e=Da(e),0,[0],e))}function Ia(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=X()){case 40:if(m!=108&&K(C,d-1)==58){da(C+=G(ka(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ka(v);break;case 9:case 10:case 13:case 32:C+=Aa(m);break;case 92:C+=ja(wa()-1,7);continue;case 47:switch(Z()){case 42:case 47:ma(Ra(Na(X(),wa()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=q(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=G(C,/\f/g,``)),p>0&&q(C)-d&&ma(p>32?za(C+`;`,r,n,d-1):za(G(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(ma(S=La(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Ia(C,t,S,S,b,a,d,s,x);else switch(f===99&&K(C,3)===110?100:f){case 100:case 108:case 109:case 115:Ia(e,S,S,r&&ma(La(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Ia(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+q(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Ca()==125)continue}switch(C+=oa(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(q(C)-1)*_,_=1;break;case 64:Z()===45&&(C+=ka(X())),f=Z(),u=d=q(y=C+=Pa(wa())),v++;break;case 45:m===45&&q(C)==2&&(h=0)}}return a}function La(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=pa(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=fa(e,d+1,d=aa(h=o[m])),y=e;_<p;++_)(y=la(h>0?f[_]+` `+v:G(v,/&\f/g,f[_])))&&(c[g++]=y);return ba(e,t,n,i===0?ea:s,c,l,u)}function Ra(e,t,n){return ba(e,t,n,$i,oa(Sa()),fa(e,2,-2),0)}function za(e,t,n,r){return ba(e,t,n,ta,fa(e,0,r),fa(e,r+1,-1),r)}function Ba(e,t){for(var n=``,r=pa(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Va(e,t,n,r){switch(e.type){case ia:if(e.children.length)break;case na:case ta:return e.return=e.return||e.value;case $i:return``;case ra:return e.return=e.value+`{`+Ba(e.children,r)+`}`;case ea:e.value=e.props.join(`,`)}return q(n=Ba(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Ha(e){var t=pa(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Ua(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wa(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ga=function(e,t,n){for(var r=0,i=0;r=i,i=Z(),r===38&&i===12&&(t[n]=1),!Ea(i);)X();return Ta(e,J)},Ka=function(e,t){var n=-1,r=44;do switch(Ea(r)){case 0:r===38&&Z()===12&&(t[n]=1),e[n]+=Ga(J-1,t,n);break;case 2:e[n]+=ka(r);break;case 4:if(r===44){e[++n]=Z()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=oa(r)}while(r=X());return e},qa=function(e,t){return Oa(Ka(Da(e),t))},Ja=new WeakMap,Ya=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ja.get(n))&&!r){Ja.set(e,!0);for(var i=[],a=qa(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Xa=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function Za(e,t){switch(ca(e,t)){case 5103:return W+`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 W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+Qi+e+U+e+e;case 6828:case 4268:return W+e+U+e+e;case 6165:return W+e+U+`flex-`+e+e;case 5187:return W+e+G(e,/(\w+).+(:[^]+)/,W+`box-$1$2`+U+`flex-$1$2`)+e;case 5443:return W+e+U+`flex-item-`+G(e,/flex-|-self/,``)+e;case 4675:return W+e+U+`flex-line-pack`+G(e,/align-content|flex-|-self/,``)+e;case 5548:return W+e+U+G(e,`shrink`,`negative`)+e;case 5292:return W+e+U+G(e,`basis`,`preferred-size`)+e;case 6060:return W+`box-`+G(e,`-grow`,``)+W+e+U+G(e,`grow`,`positive`)+e;case 4554:return W+G(e,/([^-])(transform)/g,`$1`+W+`$2`)+e;case 6187:return G(G(G(e,/(zoom-|grab)/,W+`$1`),/(image-set)/,W+`$1`),e,``)+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,W+`box-pack:$3`+U+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+W+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,W+`$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(q(e)-1-t>6)switch(K(e,t+1)){case 109:if(K(e,t+4)!==45)break;case 102:return G(e,/(.+:)(.+)-([^]+)/,`$1`+W+`$2-$3$1`+Qi+(K(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~da(e,`stretch`)?Za(G(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(K(e,t+1)!==115)break;case 6444:switch(K(e,q(e)-3-(~da(e,`!important`)&&10))){case 107:return G(e,`:`,`:`+W)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+W+(K(e,14)===45?`inline-`:``)+`box$3$1`+W+`$2$3$1`+U+`$2box$3`)+e}break;case 5936:switch(K(e,t+11)){case 114:return W+e+U+G(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return W+e+U+G(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return W+e+U+G(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return W+e+U+e+e}return e}var Qa=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ta:e.return=Za(e.value,e.length);break;case ra:return Ba([xa(e,{value:G(e.value,`@`,`@`+W)})],r);case ea:if(e.length)return ha(e.props,function(t){switch(ua(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Ba([xa(e,{props:[G(t,/:(read-\w+)/,`:`+Qi+`$1`)]})],r);case`::placeholder`:return Ba([xa(e,{props:[G(t,/:(plac\w+)/,`:`+W+`input-$1`)]}),xa(e,{props:[G(t,/:(plac\w+)/,`:`+Qi+`$1`)]}),xa(e,{props:[G(t,/:(plac\w+)/,U+`input-$1`)]})],r)}return``})}}],$a=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Qa,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Ya,Xa],l,u=[Va,Ua(function(e){l.insert(e)})],d=Ha(c.concat(r,u)),f=function(e){return Ba(Fa(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Zi({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p};function eo(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var to={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},no=!1,ro=/[A-Z]|^ms/g,io=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ao=function(e){return e.charCodeAt(1)===45},oo=function(e){return e!=null&&typeof e!=`boolean`},so=Wa(function(e){return ao(e)?e:e.replace(ro,`-$&`).toLowerCase()}),co=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(io,function(e,t,n){return Q={name:t,styles:n,next:Q},t})}return to[e]!==1&&!ao(e)&&typeof t==`number`&&t!==0?t+`px`:t},lo=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function uo(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Q={name:i.name,styles:i.styles,next:Q},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Q={name:o.name,styles:o.styles,next:Q},o=o.next;return a.styles+`;`}return fo(e,t,n);case`function`:if(e!==void 0){var s=Q,c=n(e);return Q=s,uo(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function fo(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=uo(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:oo(s)&&(r+=so(a)+`:`+co(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&no)throw Error(lo);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)oo(o[c])&&(r+=so(a)+`:`+co(a,o[c])+`;`);else{var l=uo(e,t,o);switch(a){case`animation`:case`animationName`:r+=so(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var po=/label:\s*([^\s;{]+)\s*(;|$)/g,Q;function mo(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Q=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=uo(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=uo(n,t,e[o]),r&&(i+=a[o]);po.lastIndex=0;for(var s=``,c;(c=po.exec(i))!==null;)s+=`-`+c[1];return{name:eo(i)+s,styles:i,next:Q}}var ho=!0;function go(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var _o=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||ho===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},vo=function(e,t,n){_o(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function yo(e,t){if(e.inserted[t.name]===void 0)return e.insert(``,t,e.sheet,!0)}function bo(e,t,n){var r=[],i=go(e,r,n);return r.length<2?n:i+t(r)}var xo=function(e){var t=$a(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){var e=mo([...arguments],t.registered,void 0);return vo(t,e,!1),t.key+`-`+e.name};return{css:n,cx:function(){var e=[...arguments];return bo(t.registered,n,So(e))},injectGlobal:function(){yo(t,mo([...arguments],t.registered))},keyframes:function(){var e=mo([...arguments],t.registered),n=`animation-`+e.name;return yo(t,{name:e.name,styles:`@keyframes `+n+`{`+e.styles+`}`}),n},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:go.bind(null,t.registered),merge:bo.bind(null,t.registered,n)}},So=function e(t){for(var n=``,r=0;r<t.length;r++){var i=t[r];if(i!=null){var a=void 0;switch(typeof i){case`boolean`:break;case`object`:if(Array.isArray(i))a=e(i);else for(var o in a=``,i)i[o]&&o&&(a&&(a+=` `),a+=o);break;default:a=i}a&&(n&&(n+=` `),n+=a)}}return n},Co=(e,t=!1,n=``)=>{let{variables:r={},...i}=e,a={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`,...r.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`,...r.dark||{}}},o=t?a.dark:a.light,{css:s,cx:c}=xo({key:`react-diff`,nonce:n}),l=s({width:`auto`,overflow:`hidden`,label:`content`}),u=s({label:`split-view`}),d=s({position:`sticky`,top:0,zIndex:2,label:`sticky-header`}),f=s({background:o.diffViewerTitleBackground,color:o.diffViewerTitleColor,padding:`0.5em 1em`,display:`flex`,alignItems:`center`,gap:`0.5em`,fontFamily:`monospace`,fontSize:12,fill:o.diffViewerTitleColor}),p=s({display:`flex`,label:`column-headers`}),m=s({width:`100%`,minWidth:`1000px`,overflowX:`auto`,tableLayout:`fixed`,fontSize:12,background:o.diffViewerBackground,pre:{margin:0,whiteSpace:`pre-wrap`,lineHeight:`1.6em`,width:`fit-content`},label:`diff-container`,borderCollapse:`collapse`,"@media (max-width: 768px)":{minWidth:`unset`}}),h=s({overflow:`hidden`,width:`100%`}),g=s({color:o.diffViewerColor,whiteSpace:`pre-wrap`,fontFamily:`monospace`,lineBreak:`anywhere`,textDecoration:`none`,label:`content-text`}),_=s({userSelect:`none`,label:`unselectable`}),v=s({label:`no-wrap`,pre:{whiteSpace:`pre`},[`.${g}`]:{whiteSpace:`pre`,lineBreak:`auto`}}),y=s({background:`transparent`,border:`none`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:0,label:`all-expand-button`,":hover":{fill:o.addedGutterColor},":focus":{outline:`1px ${o.addedGutterColor} solid`}}),b=s({background:o.diffViewerTitleBackground,padding:`0.5em`,lineHeight:`1.4em`,height:`2.4em`,overflow:`hidden`,width:`50%`,borderBottom:`1px solid ${o.diffViewerTitleBorderColor}`,boxSizing:`border-box`,fontSize:12,label:`title-block`,":only-child":{width:`100%`},":last-child:not(:only-child)":{borderLeft:`1px solid ${o.diffViewerTitleBorderColor}`},[`.${g}`]:{color:o.diffViewerTitleColor}}),x=s({color:o.gutterColor,label:`line-number`}),S=s({background:o.removedBackground,color:o.removedColor,pre:{color:o.removedColor},[`.${x}`]:{color:o.removedGutterColor},label:`diff-removed`}),C=s({background:o.addedBackground,color:o.addedColor,pre:{color:o.addedColor},[`.${x}`]:{color:o.addedGutterColor},label:`diff-added`}),ee=s({background:o.changedBackground,[`.${x}`]:{color:o.gutterColor},label:`diff-changed`}),w=s({display:`inline`,textDecoration:`none`,label:`word-diff`}),te=s({background:o.wordAddedBackground,label:`word-added`}),ne=s({background:o.wordRemovedBackground,label:`word-removed`}),re=s({backgroundColor:o.codeFoldGutterBackground,label:`code-fold-gutter`,minWidth:`50px`,width:`50px`,textAlign:`center`,fill:o.codeFoldContentColor}),ie=s({padding:``}),ae=s({background:o.codeFoldBackground,cursor:`pointer`,display:`inline`,margin:0,border:`none`,fill:o.codeFoldContentColor,label:`code-fold-expand-button`}),oe=s({color:o.codeFoldContentColor,fontFamily:`monospace`,label:`code-fold-content`}),se=s({display:`block`,width:`10px`,height:`10px`,backgroundColor:`#ddd`,borderWidth:`1px`,borderStyle:`solid`,borderColor:o.diffViewerTitleBorderColor}),ce=s({backgroundColor:o.wordAddedBackground}),le=s({backgroundColor:o.wordRemovedBackground}),ue=s({backgroundColor:o.codeFoldBackground,fontSize:12,alignItems:`center`,userSelect:`none`,fontWeight:700,cursor:`pointer`,label:`code-fold`,"&:hover":{color:o.diffViewerColor,fill:o.diffViewerColor,"& *":{color:o.diffViewerColor,fill:o.diffViewerColor}},a:{textDecoration:`underline !important`,cursor:`pointer`,pre:{display:`inline`}}}),de=s({backgroundColor:o.emptyLineBackground,label:`empty-line`}),fe=s({width:28,paddingLeft:10,paddingRight:10,userSelect:`none`,label:`marker`,[`&.${C}`]:{pre:{color:o.addedColor}},[`&.${S}`]:{pre:{color:o.removedColor}}}),pe=s({background:o.highlightBackground,label:`highlighted-line`,[`.${te}, .${ne}`]:{backgroundColor:`initial`}}),me=s({label:`highlighted-gutter`}),T=s({userSelect:`none`,minWidth:50,width:`50px`,padding:`0 10px`,whiteSpace:`nowrap`,label:`gutter`,textAlign:`center`,color:o.gutterColor,background:o.gutterBackground,"&:hover":{cursor:`pointer`,background:o.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5,textAlign:`center`,width:`100%`},[`&.${C}`]:{background:o.addedGutterBackground},[`&.${S}`]:{background:o.removedGutterBackground},[`&.${me}`]:{background:o.highlightGutterBackground,"&:hover":{background:o.highlightGutterBackground}}}),he=s({"&:hover":{background:o.gutterBackground,cursor:`initial`},label:`empty-gutter`}),ge={diffContainer:m,diffRemoved:S,diffAdded:C,diffChanged:ee,splitView:u,marker:fe,highlightedGutter:me,highlightedLine:pe,gutter:T,line:s({verticalAlign:`baseline`,label:`line`,textDecoration:`none`}),lineContent:h,wordDiff:w,wordAdded:te,summary:f,block:se,blockAddition:ce,blockDeletion:le,wordRemoved:ne,noSelect:_,noWrap:v,codeFoldGutter:re,codeFoldExpandButton:ae,codeFoldContentContainer:ie,codeFold:ue,emptyGutter:he,emptyLine:de,lineNumber:x,contentText:g,content:l,column:s({}),codeFoldContent:oe,stickyHeader:d,columnHeaders:p,titleBlock:b,allExpandButton:y},_e=Object.keys(i).reduce((e,t)=>({...e,[t]:s(i[t])}),{});return Object.keys(ge).reduce((e,t)=>({...e,[t]:_e[t]?c(ge[t],_e[t]):ge[t]}),{})};function wo(){return(0,v.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:[(0,v.jsx)(`title`,{children:`fold`}),(0,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 To(e,t,n){let r=[],i=0;for(let e of t){let t=typeof e.value==`string`?e.value:``;t.length>0&&(r.push({start:i,end:i+t.length,type:e.type}),i+=t.length)}let a=[],o=0;for(;o<e.length;)if(e[o]===`<`){let t=e.indexOf(`>`,o);if(t===-1){a.push({type:`text`,content:e.slice(o)});break}a.push({type:`tag`,content:e.slice(o,t+1)}),o=t+1}else{let t=e.indexOf(`<`,o);t===-1&&(t=e.length),a.push({type:`text`,content:e.slice(o,t)}),o=t}function s(e){return e.replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&amp;/g,`&`).replace(/&quot;/g,`"`).replace(/&#39;/g,`'`).replace(/&nbsp;/g,`\xA0`)}function c(e){return e===z.ADDED?{open:`<ins class="${n.wordDiff} ${n.wordAdded}">`,close:`</ins>`}:e===z.REMOVED?{open:`<del class="${n.wordDiff} ${n.wordRemoved}">`,close:`</del>`}:{open:`<span class="${n.wordDiff}">`,close:`</span>`}}let l=0,u=``;for(let e of a)if(e.type===`tag`)u+=e.content;else{let t=e.content,n=s(t),i=0,a=0;for(;i<n.length;){let e=l+i,o=r.find(t=>e>=t.start&&e<t.end);if(!o){let e=t[a];u+=e,a++,i++;continue}let s=o.end-e,d=n.length-i,f=Math.min(s,d),p=a,m=0;for(;m<f&&p<t.length;){if(t[p]===`&`){let e=t.indexOf(`;`,p);e!==-1&&e-p<10?p=e+1:p++}else p++;m++}let h=t.slice(a,p),g=c(o.type);g?u+=g.open+h+g.close:u+=h,a=p,i+=f}l+=n.length}return u}var $;(function(e){e.LEFT=`L`,e.RIGHT=`R`})($||={});var Eo=class e extends _.Component{styles;wordDiffCache=new Map;contentColumnRef=_.createRef();charMeasureRef=_.createRef();stickyHeaderRef=_.createRef();resizeObserver=null;static defaultProps={oldValue:``,newValue:``,splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:H.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:``};constructor(e){super(e),this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:_.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null}}getWordDiffValues=(e,t,n)=>{if(!e||!t)return{leftValue:e?.value,rightValue:t?.value};if(e.rawValue===void 0||t.rawValue===void 0)return{leftValue:e.value,rightValue:t.value};let r=`${n}-${e.rawValue}-${t.rawValue}`,i=this.wordDiffCache.get(r);if(!i){let n=this.props.compareMethod===H.JSON||this.props.compareMethod===H.YAML?H.CHARS:this.props.compareMethod,a=Hi(e.rawValue,t.rawValue,n);i={left:a.left,right:a.right},this.wordDiffCache.set(r,i)}return{leftValue:i.left,rightValue:i.right}};resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1;onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t},()=>this.recalculateOffsets())};getStickyHeaderHeight(){return this.stickyHeaderRef.current?.offsetHeight||0}measureCharWidth(){let e=this.charMeasureRef.current;return e&&e.getBoundingClientRect().width||7.2}measureContentColumnWidth(){let e=this.contentColumnRef.current;if(e&&e.clientWidth>0){let t=window.getComputedStyle(e),n=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),r=e.clientWidth-n;if(r>0)return r}let t=this.state.scrollableContainerRef.current;if(!t||t.clientWidth<=0)return null;let n=t.clientWidth,r=this.props.hideLineNumbers?0:50;this.props.splitView;let i=this.props.splitView?2:1,a=this.props.splitView?2:1,o=n-(2*r+i*28);return Math.max(100,o/a)}getTextLength(e){return e?typeof e==`string`?e.length:e.reduce((e,t)=>e+(typeof t.value==`string`?t.value.length:0),0):0}buildCumulativeOffsets(t,n,r,i,a,o,s,c){let l=[0],u=new Set;for(let d=0;d<t.length;d++){let f=t[d];if(a){let t=n[d];if(t!==void 0&&!i.includes(t)){let n=r[t].endLine===d;!u.has(t)&&n&&(u.add(t),l.push(l[l.length-1]+e.ESTIMATED_ROW_HEIGHT));continue}}let p=f.left?.value?this.getTextLength(f.left.value):0,m=f.right?.value?this.getTextLength(f.right.value):0,h=c?Math.max(p,m):p||m,g=Math.floor(s/o),_=g>0?Math.max(1,Math.ceil(h/g)):1;l.push(l[l.length-1]+_*e.ESTIMATED_ROW_HEIGHT)}return l}findLineAtOffset(e,t){let n=0,r=t.length-2;for(;n<r;){let i=Math.floor((n+r+1)/2);t[i]<=e?n=i:r=i-1}return n}recalculateOffsets=()=>{if(!this.props.infiniteLoading)return;let e=this.measureContentColumnWidth(),t=this.measureCharWidth();if(!e)return;let n=this.getMemoisedKey(),{lineInformation:r,lineBlocks:i,blocks:a}=this.state.computedDiffResult[n]??{};if(!r)return;let o=this.buildCumulativeOffsets(r,i,a,this.state.expandedBlocks,this.props.showDiffOnly,t,e,this.props.splitView);this.setState({cumulativeOffsets:o,contentColumnWidth:e,charWidth:t},()=>{this.onScroll()})};computeStyles=C(Co);onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{};shouldHighlightWordDiff=()=>{let{compareMethod:e}=this.props;return e===H.CHARS||e===H.WORDS||e===H.WORDS_WITH_SPACE||e===H.JSON||e===H.YAML};renderWordDiff=(e,t)=>{let n=this.shouldHighlightWordDiff(),r=e.map(e=>typeof e.value==`string`?e.value:``).join(``);if(r.length>500)return[(0,v.jsx)(`span`,{children:r},`long-line`)];if(t){let i=t(r),a=i?.props?.dangerouslySetInnerHTML?.__html;if(typeof a==`string`){let t=To(a,e,{wordDiff:this.styles.wordDiff,wordAdded:n?this.styles.wordAdded:``,wordRemoved:n?this.styles.wordRemoved:``});return[_.cloneElement(i,{key:`highlighted-diff`,dangerouslySetInnerHTML:{__html:t}})]}}return e.map((e,t)=>{let r;return r=typeof e.value==`string`?e.value:void 0,e.type===z.ADDED?(0,v.jsx)(`ins`,{className:(0,y.default)(this.styles.wordDiff,{[this.styles.wordAdded]:n}),children:r},t):e.type===z.REMOVED?(0,v.jsx)(`del`,{className:(0,y.default)(this.styles.wordDiff,{[this.styles.wordRemoved]:n}),children:r},t):(0,v.jsx)(`span`,{className:(0,y.default)(this.styles.wordDiff),children:r},t)})};renderLine=(e,t,n,r,i,a)=>{let o=`${n}-${e}`,s=`${a}-${i}`,c=this.props.highlightLines.includes(o)||this.props.highlightLines.includes(s),l=t===z.ADDED,u=t===z.REMOVED,d=t===z.CHANGED,f,p=Array.isArray(r);f=p?this.renderWordDiff(r,this.props.renderContent):this.props.renderContent?this.props.renderContent(r):r;let m=`div`;return l&&!p?m=`ins`:u&&!p&&(m=`del`),(0,v.jsxs)(v.Fragment,{children:[!this.props.hideLineNumbers&&(0,v.jsx)(`td`,{onClick:e&&this.onLineNumberClickProxy(o),className:(0,y.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:l,[this.styles.diffRemoved]:u,[this.styles.diffChanged]:d,[this.styles.highlightedGutter]:c}),children:(0,v.jsx)(`pre`,{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,v.jsx)(`td`,{onClick:i&&this.onLineNumberClickProxy(s),className:(0,y.default)(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:l,[this.styles.diffRemoved]:u,[this.styles.diffChanged]:d,[this.styles.highlightedGutter]:c}),children:(0,v.jsx)(`pre`,{className:this.styles.lineNumber,children:i})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e,type:t,prefix:n,value:r,additionalLineNumber:i,additionalPrefix:a,styles:this.styles}):null,(0,v.jsx)(`td`,{className:(0,y.default)(this.styles.marker,{[this.styles.emptyLine]:!f,[this.styles.diffAdded]:l,[this.styles.diffRemoved]:u,[this.styles.diffChanged]:d,[this.styles.highlightedLine]:c}),children:(0,v.jsxs)(`pre`,{children:[l&&`+`,u&&`-`]})}),(0,v.jsx)(`td`,{ref:n===$.LEFT&&!this.state.cumulativeOffsets?this.contentColumnRef:void 0,className:(0,y.default)(this.styles.content,{[this.styles.emptyLine]:!f,[this.styles.diffAdded]:l,[this.styles.diffRemoved]:u,[this.styles.diffChanged]:d,[this.styles.highlightedLine]:c,left:n===$.LEFT,right:n===$.RIGHT}),onMouseDown:()=>{let e=document.getElementsByClassName(n===$.LEFT?`right`:`left`);for(let t=0;t<e.length;t++)e.item(t).classList.add(this.styles.noSelect)},title:l&&!p?`Added line`:u&&!p?`Removed line`:void 0,children:(0,v.jsx)(m,{className:this.styles.contentText,children:f})})]})};renderSplitView=({left:e,right:t},n)=>{let{leftValue:r,rightValue:i}=this.getWordDiffValues(e,t,n);return(0,v.jsxs)(`tr`,{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,$.LEFT,r),this.renderLine(t.lineNumber,t.type,$.RIGHT,i)]},n)};renderInlineView=({left:e,right:t},n)=>{let{leftValue:r,rightValue:i}=this.getWordDiffValues(e,t,n),a;return e.type===z.REMOVED&&t.type===z.ADDED?(0,v.jsxs)(_.Fragment,{children:[(0,v.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,$.LEFT,r,null)}),(0,v.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(null,t.type,$.RIGHT,i,t.lineNumber,$.RIGHT)})]},n):(e.type===z.REMOVED&&(a=this.renderLine(e.lineNumber,e.type,$.LEFT,r,null)),e.type===z.DEFAULT&&(a=this.renderLine(e.lineNumber,e.type,$.LEFT,r,t.lineNumber,$.RIGHT)),t.type===z.ADDED&&(a=this.renderLine(null,t.type,$.RIGHT,i,t.lineNumber)),(0,v.jsx)(`tr`,{className:this.styles.line,children:a},n))};onBlockClickProxy=e=>()=>this.onBlockExpand(e);renderSkippedLineIndicator=(e,t,n,r)=>{let{hideLineNumbers:i,splitView:a}=this.props,o=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):(0,v.jsxs)(`span`,{className:this.styles.codeFoldContent,children:[`@@ -`,n-e,`,`,e,` +`,r-e,`,`,e,` @@`]}),s=(0,v.jsx)(`td`,{className:this.styles.codeFoldContentContainer,children:(0,v.jsx)(`button`,{type:`button`,className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(t),tabIndex:0,children:o})}),c=!a&&!i,l=(0,v.jsx)(`td`,{className:this.styles.codeFoldGutter,children:(0,v.jsx)(qi,{})});return(0,v.jsxs)(`tr`,{className:this.styles.codeFold,onClick:this.onBlockClickProxy(t),role:`button`,tabIndex:0,children:[!i&&l,this.props.renderGutter?(0,v.jsx)(`td`,{className:this.styles.codeFoldGutter}):null,(0,v.jsx)(`td`,{className:(0,y.default)({[this.styles.codeFoldGutter]:c})}),c?(0,v.jsxs)(_.Fragment,{children:[(0,v.jsx)(`td`,{}),s]}):(0,v.jsxs)(_.Fragment,{children:[s,this.props.renderGutter?(0,v.jsx)(`td`,{}):null,(0,v.jsx)(`td`,{}),(0,v.jsx)(`td`,{}),i?null:(0,v.jsx)(`td`,{})]})]},`${n}-${r}`)};getMemoisedKey=()=>{let{oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i,alwaysShowLines:a,extraLinesSurroundingDiff:o}=this.props;return JSON.stringify({oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i,alwaysShowLines:a,extraLinesSurroundingDiff:o})};memoisedCompute=async()=>{let{oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i}=this.props,a=this.getMemoisedKey();if(this.state.computedDiffResult[a]){this.setState(e=>({...e,isLoading:!1}));return}let o=this.props.infiniteLoading?.containerHeight,s=o?typeof o==`number`?o:parseInt(o,10)||0:0,c=!n&&!!this.props.infiniteLoading&&s>0&&s<2e3,{lineInformation:l,diffLines:u}=await Ki(e,t,n,r,i,this.props.alwaysShowLines,c),{lineBlocks:d,blocks:f}=ee(l,u,this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff));this.state.computedDiffResult[a]={lineInformation:l,lineBlocks:d,blocks:f},this.setState(e=>({...e,computedDiffResult:this.state.computedDiffResult,isLoading:!1}),()=>{this.props.infiniteLoading&&requestAnimationFrame(()=>this.recalculateOffsets())})};static ESTIMATED_ROW_HEIGHT=19;onScroll=()=>{let t=this.state.scrollableContainerRef.current;if(!t||!this.props.infiniteLoading)return;let n=this.getStickyHeaderHeight(),r=Math.max(0,t.scrollTop-n),{cumulativeOffsets:i}=this.state,a=i?this.findLineAtOffset(r,i):Math.floor(r/e.ESTIMATED_ROW_HEIGHT);a!==this.state.visibleStartRow&&this.setState({visibleStartRow:a})};renderDiff=()=>{let{splitView:t,infiniteLoading:n,showDiffOnly:r}=this.props,{computedDiffResult:i,expandedBlocks:a,visibleStartRow:o,scrollableContainerRef:s,cumulativeOffsets:c}=this.state,{lineInformation:l=[],lineBlocks:u=[],blocks:d=[]}=i[this.getMemoisedKey()]??{},f=0,p=1/0;if(n&&s.current){let t=s.current,n=this.getStickyHeaderHeight(),r=Math.max(0,t.scrollTop-n);if(c){let n=c[c.length-1]||0,i=c.length-2;f=Math.max(0,this.findLineAtOffset(r,c)-5),p=this.findLineAtOffset(r+t.clientHeight,c)+5;let a=Math.ceil(t.clientHeight/e.ESTIMATED_ROW_HEIGHT);p=Math.max(p,f+a+5),r+t.clientHeight>=n-5*e.ESTIMATED_ROW_HEIGHT&&(p=i+5)}else{let n=Math.ceil(t.clientHeight/e.ESTIMATED_ROW_HEIGHT);f=Math.max(0,o-5),p=o+n+5}}let m=new Map,h=new Set,g=0;for(let e=0;e<l.length;e++){let t=u[e];if(r&&t!==void 0)if(a.includes(t))m.set(e,g),g++;else{let n=d[t].endLine===e;!h.has(t)&&n&&(h.add(t),m.set(e,g),g++)}else m.set(e,g),g++}let y=g,b=[],x=0,S=!1,C=-1;h.clear();for(let n=0;n<l.length;n++){let i=l[n],o=m.get(n);if(o!==void 0&&!(o<f)){if(o>p)break;if(S||=(x=c?c[o]||0:o*e.ESTIMATED_ROW_HEIGHT,!0),C=o,r){let e=u[n];if(e!==void 0){let t=d[e].endLine===n;if(!a.includes(e)&&t){b.push((0,v.jsx)(_.Fragment,{children:this.renderSkippedLineIndicator(d[e].lines,e,i.left.lineNumber,i.right.lineNumber)},n));continue}if(!a.includes(e))continue}}b.push(t?this.renderSplitView(i,n):this.renderInlineView(i,n))}}let ee=c?c[c.length-1]||0:y*e.ESTIMATED_ROW_HEIGHT,w=c&&C>=0?ee-(c[C+1]||ee):0;return{diffNodes:b,blocks:d,lineInformation:l,totalRenderedRows:y,topPadding:x,bottomPadding:w,totalContentHeight:ee,renderedCount:b.length,debug:{visibleRowStart:f,visibleRowEnd:p,totalRows:y,offsetsLength:c?.length??0,renderedCount:b.length,scrollTop:s.current?.scrollTop??0,headerHeight:this.getStickyHeaderHeight(),contentScrollTop:s.current?Math.max(0,s.current.scrollTop-this.getStickyHeaderHeight()):0,clientHeight:s.current?.clientHeight??0}}};componentDidUpdate(e){if(e.oldValue!==this.props.oldValue||e.newValue!==this.props.newValue||e.compareMethod!==this.props.compareMethod||e.disableWordDiff!==this.props.disableWordDiff||e.linesOffset!==this.props.linesOffset){this.wordDiffCache.clear();let e=this.state.scrollableContainerRef.current;e&&(e.scrollTop=0),this.setState(e=>({...e,isLoading:!0,visibleStartRow:0,cumulativeOffsets:null})),this.memoisedCompute()}}componentDidMount(){if(this.setState(e=>({...e,isLoading:!0})),this.memoisedCompute(),typeof ResizeObserver<`u`&&this.props.infiniteLoading){this.resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>this.recalculateOffsets())});let e=this.state.scrollableContainerRef.current;e&&this.resizeObserver.observe(e)}}componentWillUnmount(){this.resizeObserver?.disconnect()}render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:i,splitView:a,compareMethod:o,hideLineNumbers:s,nonce:c}=this.props;if(typeof o==`string`&&o!==H.JSON&&(typeof e!=`string`||typeof t!=`string`))throw Error(`"oldValue" and "newValue" should be strings`);this.styles=this.computeStyles(this.props.styles,n,c);let l=this.renderDiff(),u=3,d=4;s&&(--u,--d),this.props.renderGutter&&(u+=1,d+=1);let f=0,p=0;for(let e of l.lineInformation)e.left.type===z.ADDED&&p++,e.right.type===z.ADDED&&p++,e.left.type===z.REMOVED&&f++,e.right.type===z.REMOVED&&f++;let m=f+p,h=Math.round(p/m*100),g=[];for(let e=0;e<5;e++)h>e*20?g.push((0,v.jsx)(`span`,{className:(0,y.default)(this.styles.block,this.styles.blockAddition)},e)):g.push((0,v.jsx)(`span`,{className:(0,y.default)(this.styles.block,this.styles.blockDeletion)},e));let _=this.state.expandedBlocks.length===l.blocks.length,b=this.props.loadingElement,x=this.props.infiniteLoading?{overflowY:`scroll`,overflowX:`hidden`,height:this.props.infiniteLoading.containerHeight}:{},S=!!this.props.infiniteLoading&&!this.state.cumulativeOffsets,C=(0,v.jsxs)(`table`,{className:(0,y.default)(this.styles.diffContainer,{[this.styles.splitView]:a,[this.styles.noWrap]:S}),onMouseUp:()=>{let e=document.getElementsByClassName(`right`);for(let t=0;t<e.length;t++)e.item(t).classList.remove(this.styles.noSelect);let t=document.getElementsByClassName(`left`);for(let e=0;e<t.length;e++)t.item(e).classList.remove(this.styles.noSelect)},children:[(0,v.jsxs)(`colgroup`,{children:[!this.props.hideLineNumbers&&(0,v.jsx)(`col`,{width:`50px`}),!a&&!this.props.hideLineNumbers&&(0,v.jsx)(`col`,{width:`50px`}),this.props.renderGutter&&(0,v.jsx)(`col`,{width:`50px`}),(0,v.jsx)(`col`,{width:`28px`}),(0,v.jsx)(`col`,{width:`auto`}),a&&(0,v.jsxs)(v.Fragment,{children:[!this.props.hideLineNumbers&&(0,v.jsx)(`col`,{width:`50px`}),this.props.renderGutter&&(0,v.jsx)(`col`,{width:`50px`}),(0,v.jsx)(`col`,{width:`28px`}),(0,v.jsx)(`col`,{width:`auto`})]})]}),(0,v.jsx)(`tbody`,{children:l.diffNodes})]});return(0,v.jsxs)(`div`,{style:{...x,position:`relative`},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||r||i)&&(0,v.jsxs)(`div`,{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&(0,v.jsxs)(`div`,{className:this.styles.summary,role:`banner`,children:[(0,v.jsx)(`button`,{type:`button`,className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:_?[]:l.blocks.map(e=>e.index)},()=>this.recalculateOffsets())},children:_?(0,v.jsx)(wo,{}):(0,v.jsx)(qi,{})}),` `,m,(0,v.jsx)(`div`,{style:{display:`flex`,gap:`1px`},children:g}),this.props.summary?(0,v.jsx)(`span`,{children:this.props.summary}):null]}),(r||i)&&(0,v.jsxs)(`div`,{className:this.styles.columnHeaders,children:[(0,v.jsx)(`div`,{className:this.styles.titleBlock,children:r?(0,v.jsx)(`pre`,{className:this.styles.contentText,children:r}):null}),a&&(0,v.jsx)(`div`,{className:this.styles.titleBlock,children:i?(0,v.jsx)(`pre`,{className:this.styles.contentText,children:i}):null})]})]}),this.state.isLoading&&b&&(0,v.jsx)(b,{}),this.props.infiniteLoading?(0,v.jsx)(`div`,{style:{height:l.totalContentHeight,position:`relative`},children:(0,v.jsx)(`div`,{style:{position:`absolute`,top:l.topPadding,left:0,right:0},children:C})}):C,(0,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&&(0,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:[(0,v.jsx)(`div`,{style:{fontWeight:`bold`,marginBottom:`5px`,color:`#fff`},children:`Debug Info`}),(0,v.jsxs)(`div`,{children:[`scrollTop: `,l.debug.scrollTop]}),(0,v.jsxs)(`div`,{children:[`headerHeight: `,l.debug.headerHeight]}),(0,v.jsxs)(`div`,{children:[`contentScrollTop: `,l.debug.contentScrollTop]}),(0,v.jsxs)(`div`,{children:[`clientHeight: `,l.debug.clientHeight]}),(0,v.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`},children:[(0,v.jsxs)(`div`,{children:[`visibleRowStart: `,l.debug.visibleRowStart]}),(0,v.jsxs)(`div`,{children:[`visibleRowEnd: `,l.debug.visibleRowEnd]})]}),(0,v.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`},children:[(0,v.jsxs)(`div`,{children:[`totalRows: `,l.debug.totalRows]}),(0,v.jsxs)(`div`,{children:[`offsetsLength: `,l.debug.offsetsLength]}),(0,v.jsxs)(`div`,{children:[`renderedCount: `,l.debug.renderedCount]})]}),(0,v.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`},children:[(0,v.jsxs)(`div`,{children:[`topPadding: `,l.topPadding.toFixed(0)]}),(0,v.jsxs)(`div`,{children:[`bottomPadding: `,l.bottomPadding.toFixed(0)]}),(0,v.jsxs)(`div`,{children:[`totalContentHeight: `,l.totalContentHeight.toFixed(0)]})]}),(0,v.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`,color:`#ff0`},children:[(0,v.jsxs)(`div`,{children:[`cumulativeOffsets: `,this.state.cumulativeOffsets?`SET`:`NULL`]}),(0,v.jsxs)(`div`,{children:[`columnWidth: `,this.state.contentColumnWidth?.toFixed(0)??`N/A`,`px`]}),(0,v.jsxs)(`div`,{children:[`charWidth: `,this.state.charWidth?.toFixed(2)??`N/A`,`px`]}),(0,v.jsxs)(`div`,{children:[`charsPerRow: `,this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):`N/A`]})]}),this.state.cumulativeOffsets&&(0,v.jsxs)(`div`,{style:{marginTop:`5px`,borderTop:`1px solid #444`,paddingTop:`5px`,color:`#0ff`,fontSize:`10px`},children:[(0,v.jsxs)(`div`,{children:[`offsets[`,l.debug.visibleRowEnd,`]: `,this.state.cumulativeOffsets[l.debug.visibleRowEnd]?.toFixed(0)??`N/A`]}),(0,v.jsxs)(`div`,{children:[`offsets[`,l.debug.totalRows-1,`]: `,this.state.cumulativeOffsets[l.debug.totalRows-1]?.toFixed(0)??`N/A`]}),(0,v.jsxs)(`div`,{children:[`offsets[`,l.debug.totalRows,`]: `,this.state.cumulativeOffsets[l.debug.totalRows]?.toFixed(0)??`N/A`]}),(0,v.jsxs)(`div`,{style:{marginTop:`3px`},children:[`viewportEnd: `,(l.debug.contentScrollTop+l.debug.clientHeight).toFixed(0)]}),(0,v.jsxs)(`div`,{style:{marginTop:`3px`,color:`#f0f`},children:[`scrollHeight: `,this.state.scrollableContainerRef.current?.scrollHeight??`N/A`]}),(0,v.jsxs)(`div`,{children:[`maxScrollTop: `,(this.state.scrollableContainerRef.current?.scrollHeight??0)-l.debug.clientHeight]})]})]})]})}};function Do(){let{id:e=``}=l(),t=i({queryKey:[`session-diffs`,e],queryFn:()=>s.sessionDiffs(e),refetchInterval:5e3}),n=t.data?.diffs??[];return(0,v.jsxs)(`div`,{className:`h-full overflow-auto`,children:[(0,v.jsxs)(`div`,{className:`px-5 py-4 border-b border-bg-border flex items-baseline gap-3`,children:[(0,v.jsx)(u,{to:`/sessions/${encodeURIComponent(e)}`,className:`text-fg-dim hover:text-accent`,children:(0,v.jsx)(d,{className:`w-4 h-4 inline`})}),(0,v.jsx)(`h1`,{className:`text-lg font-bold`,children:`diff attribution`}),(0,v.jsx)(`span`,{className:`text-sm text-fg-dim mono`,children:e.slice(0,16)}),(0,v.jsxs)(`span`,{className:`text-sm text-fg-dim`,children:[n.length,` writes`]})]}),t.isLoading&&(0,v.jsx)(`div`,{className:`p-6 text-fg-dim`,children:`loading…`}),!t.isLoading&&n.length===0&&(0,v.jsx)(`div`,{className:`p-10 text-center text-fg-dim`,children:`No file writes or edits in this session.`}),(0,v.jsx)(`div`,{className:`p-5 space-y-6`,children:n.map((e,t)=>(0,v.jsx)(Oo,{entry:e},t))})]})}function Oo({entry:e}){let t=e.event,n=e.triggeringPrompt,r=e.oldString!=null&&e.newString!=null,i=!r&&e.content!=null;return(0,v.jsxs)(`div`,{className:`bg-bg-surface border border-bg-border rounded-lg`,children:[(0,v.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-2 border-b border-bg-border text-xs`,children:[(0,v.jsx)(f,{className:`w-3.5 h-3.5 text-accent`}),(0,v.jsx)(`span`,{className:c(`mono`,m(t.agent)),children:t.agent}),(0,v.jsx)(`span`,{className:`mono text-fg-dim`,children:p(t.ts)}),(0,v.jsx)(`span`,{className:`mono text-fg-dim`,children:t.type}),t.path&&(0,v.jsx)(`span`,{className:`ml-auto mono text-fg-dim truncate max-w-lg`,children:t.path})]}),n&&(0,v.jsxs)(`div`,{className:`px-4 py-2 border-b border-bg-border/50 bg-bg/30`,children:[(0,v.jsxs)(`div`,{className:`flex items-center gap-1.5 text-[10px] uppercase text-fg-muted mb-1`,children:[(0,v.jsx)(h,{className:`w-3 h-3`}),` triggering prompt`]}),(0,v.jsx)(`div`,{className:`text-sm mono whitespace-pre-wrap line-clamp-4`,children:n.details?.fullText??n.summary??`—`}),(0,v.jsx)(u,{to:`/events/${encodeURIComponent(n.id)}`,className:`text-[10px] text-fg-muted hover:text-accent mono mt-1 inline-block`,children:`→ event detail`})]}),(0,v.jsxs)(`div`,{className:`overflow-x-auto`,children:[r&&(0,v.jsx)(`div`,{className:`bg-bg`,children:(0,v.jsx)(Eo,{oldValue:e.oldString??``,newValue:e.newString??``,splitView:!0,compareMethod:H.WORDS,useDarkTheme:!0,styles:{variables:{dark:{diffViewerBackground:`#0b0d10`,diffViewerColor:`#e6edf3`,addedBackground:`#0f2e1b`,addedColor:`#3fb950`,removedBackground:`#3a0f12`,removedColor:`#f85149`,gutterBackground:`#12151a`,gutterColor:`#7d8590`}},line:{fontSize:11,fontFamily:`JetBrains Mono, ui-monospace, monospace`}}})}),i&&(0,v.jsx)(`pre`,{className:`mono text-xs p-4 whitespace-pre-wrap max-h-96 overflow-y-auto`,children:e.content}),!r&&!i&&(0,v.jsx)(`div`,{className:`px-4 py-3 text-xs text-fg-dim`,children:`No inline content (tool input didn't include old_string/new_string or content).`})]})]})}export{Do as SessionDiffsPage};
@@ -0,0 +1 @@
1
+ import{F as e,M as t,a as n,c as r,r as i,t as a}from"./clsx-DsHpp3Uj.js";import{l as o,n as s}from"./dist-w_zu0rIf.js";import{t as c}from"./arrow-left-Bg6VjX8-.js";import{o as l,t as u}from"./format-zw6IoTwZ.js";function d(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function f(){return this.eachAfter(d)}function p(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function m(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function h(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function g(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function _(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function v(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function y(e){for(var t=this,n=b(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function b(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function x(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function S(){return Array.from(this)}function C(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function w(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*T(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function E(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=k)):t===void 0&&(t=O);for(var n=new M(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new M(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(j)}function D(){return E(this).eachBefore(A)}function O(e){return e.children}function k(e){return Array.isArray(e)?e[1]:null}function A(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function j(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function M(e){this.data=e,this.depth=this.height=0,this.parent=null}M.prototype=E.prototype={constructor:M,count:f,each:p,eachAfter:h,eachBefore:m,find:g,sum:_,sort:v,path:y,ancestors:x,descendants:S,leaves:C,links:w,copy:D,[Symbol.iterator]:T};function N(e,t){return e.parent===t.parent?1:2}function P(e){var t=e.children;return t?t[0]:e.t}function F(e){var t=e.children;return t?t[t.length-1]:e.t}function I(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function L(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function R(e,t,n){return e.a.parent===t.parent?e.a:n}function z(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}z.prototype=Object.create(M.prototype);function B(e){for(var t=new z(e,0),n,r=[t],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new z(a[o],o)),i.parent=n;return(t.parent=new z(null,0)).children=[t],t}function V(){var e=N,t=1,n=1,r=null;function i(i){var s=B(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(c);else{var l=i,u=i,d=i;i.eachBefore(function(e){e.x<l.x&&(l=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)});var f=l===u?1:e(l,u)/2,p=f-l.x,m=t/(u.x+f+p),h=n/(d.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*m,e.y=e.depth*h})}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){L(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=s(t,i,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(t,n,r){if(n){for(var i=t,a=t,o=n,s=i.parent.children[0],c=i.m,l=a.m,u=o.m,d=s.m,f;o=F(o),i=P(i),o&&i;)s=P(s),a=F(a),a.a=t,f=o.z+u-i.z-c+e(o._,i._),f>0&&(I(R(o,t,r),t,f),c+=f,l+=f),u+=o.m,c+=i.m,d+=s.m,l+=a.m;o&&!F(a)&&(a.t=o,a.m+=u-l),i&&!P(s)&&(s.t=i,s.m+=c-d,r=t)}return r}function c(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}var H=e(t(),1),U=r();function W(){let{id:e=``}=o(),t=n({queryKey:[`session-graph`,e],queryFn:()=>i.sessionGraph(e),refetchInterval:5e3}),r=t.data?.graph,a=(0,H.useMemo)(()=>{if(!r)return null;let e=E(r,e=>e.children),t=e.descendants().length,n=Math.max(900,t*30),i=Math.max(400,e.height*120+120);return{positioned:V().size([n,i-80])(e),width:n,height:i}},[r]);return(0,U.jsxs)(`div`,{className:`h-full flex flex-col`,children:[(0,U.jsxs)(`div`,{className:`px-5 py-4 border-b border-bg-border flex items-baseline gap-3`,children:[(0,U.jsx)(s,{to:`/sessions/${encodeURIComponent(e)}`,className:`text-fg-dim hover:text-accent`,children:(0,U.jsx)(c,{className:`w-4 h-4 inline`})}),(0,U.jsx)(`h1`,{className:`text-lg font-bold`,children:`call graph`}),(0,U.jsx)(`span`,{className:`text-sm text-fg-dim mono`,children:e.slice(0,16)})]}),(0,U.jsxs)(`div`,{className:`flex-1 overflow-auto p-5`,children:[t.isLoading&&(0,U.jsx)(`div`,{className:`text-fg-dim`,children:`loading…`}),!t.isLoading&&!r&&(0,U.jsx)(`div`,{className:`text-fg-dim`,children:`No call graph — this session didn't spawn any sub-agents or shell-out to other CLIs.`}),r&&a&&(0,U.jsx)(`div`,{className:`bg-bg-surface border border-bg-border rounded-lg p-4 overflow-auto`,children:(0,U.jsxs)(`svg`,{width:a.width,height:a.height,className:`mono`,children:[a.positioned.links().map((e,t)=>(0,U.jsx)(`path`,{d:G(e.source,e.target),fill:`none`,stroke:`#2b3139`,strokeWidth:1.5},t)),a.positioned.descendants().map(e=>(0,U.jsx)(K,{node:e},e.data.eventId))]})})]})]})}function G(e,t){let n=(e.y+t.y)/2;return`M${e.x},${e.y} C${e.x},${n} ${t.x},${n} ${t.x},${t.y}`}function K({node:e}){let t=e.data,n=t.kind===`session`?t.agent??`session`:`→ ${t.callee??`call`}`,r=t.sessionId?`/sessions/${encodeURIComponent(t.sessionId)}`:null;return(0,U.jsxs)(`g`,{transform:`translate(${e.x},${e.y})`,children:[(0,U.jsx)(`rect`,{x:-80,y:-22,width:160,height:44,rx:6,fill:`#12151a`,stroke:t.kind===`call`?`#d29922`:`#2b3139`,strokeWidth:1}),(0,U.jsx)(`text`,{textAnchor:`middle`,y:-5,fontSize:`11`,className:a(u(t.agent??t.callee??`unknown`)),children:n}),(0,U.jsxs)(`text`,{textAnchor:`middle`,y:10,fontSize:`9`,fill:`#7d8590`,children:[t.events,` ev · `,l(t.cost)]}),r&&(0,U.jsx)(`a`,{href:r,children:(0,U.jsx)(`rect`,{x:-80,y:-22,width:160,height:44,fill:`transparent`})})]})}export{W as SessionGraphPage};
@@ -0,0 +1 @@
1
+ import{F as e,M as t,a as n,c as r,n as i,r as a,t as o}from"./clsx-DsHpp3Uj.js";import{l as s,n as c}from"./dist-w_zu0rIf.js";import{t as l}from"./useMutation-BvFLVjYz.js";import{t as u}from"./arrow-left-Bg6VjX8-.js";import{t as d}from"./play-B0mJPrwl.js";import{t as f}from"./format-zw6IoTwZ.js";var p=i(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),m=e(t(),1),h=r(),g=new Set([`claude-code`,`codex`,`gemini`,`hermes`]);function _(){let{id:e=``}=s(),t=n({queryKey:[`session`,e],queryFn:()=>a.session(e)}),[r,i]=(0,m.useState)(``),[_,y]=(0,m.useState)(60),b=t.data?.agent??`unknown`,x=g.has(b);(0,m.useEffect)(()=>{if(!t.data)return;let e=t.data.events.find(e=>e.type===`prompt`),n=e?.details?.fullText??e?.summary??``;n&&!r&&i(n)},[t.data]);let S=l({mutationFn:()=>a.replay(e,{prompt:r,timeoutSec:_})}),C=S.data;return(0,h.jsxs)(`div`,{className:`h-full overflow-auto`,children:[(0,h.jsxs)(`div`,{className:`px-5 py-4 border-b border-bg-border flex items-baseline gap-3`,children:[(0,h.jsx)(c,{to:`/sessions/${encodeURIComponent(e)}`,className:`text-fg-dim hover:text-accent`,children:(0,h.jsx)(u,{className:`w-4 h-4 inline`})}),(0,h.jsx)(`h1`,{className:`text-lg font-bold`,children:`replay`}),(0,h.jsx)(`span`,{className:o(`text-sm`,f(b)),children:b}),(0,h.jsx)(`span`,{className:`text-sm text-fg-dim mono`,children:e.slice(0,16)})]}),!x&&(0,h.jsxs)(`div`,{className:`m-5 p-4 border border-warn/40 bg-warn/10 rounded-lg flex items-start gap-3 text-sm`,children:[(0,h.jsx)(p,{className:`w-5 h-5 text-warn shrink-0`}),(0,h.jsxs)(`div`,{children:[(0,h.jsxs)(`div`,{className:`font-bold`,children:[`Replay not supported for `,(0,h.jsx)(`span`,{className:f(b),children:b}),`.`]}),(0,h.jsx)(`div`,{className:`text-fg-dim mt-1`,children:`Currently wired: claude-code, codex, gemini, hermes (single-turn exec mode). You can still edit the prompt and copy the command below.`})]})]}),(0,h.jsxs)(`div`,{className:`p-5 space-y-4 max-w-4xl`,children:[(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`label`,{className:`text-xs uppercase text-fg-muted`,children:`edited prompt`}),(0,h.jsx)(`textarea`,{value:r,onChange:e=>i(e.target.value),spellCheck:!1,className:`mt-1 w-full bg-bg-surface border border-bg-border rounded-lg p-3 mono text-sm outline-none focus:border-accent min-h-[180px]`})]}),(0,h.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,h.jsxs)(`label`,{className:`text-xs text-fg-dim flex items-center gap-2`,children:[`timeout (s)`,(0,h.jsx)(`input`,{type:`number`,min:5,max:300,value:_,onChange:e=>y(Number(e.target.value)||60),className:`bg-bg-surface border border-bg-border rounded-md px-2 py-1 w-20 mono`})]}),(0,h.jsxs)(`button`,{onClick:()=>S.mutate(),disabled:!x||!r.trim()||S.isPending,className:`px-4 py-2 rounded-md bg-accent/20 text-accent hover:bg-accent/30 text-sm flex items-center gap-2 disabled:opacity-40`,children:[(0,h.jsx)(d,{className:`w-4 h-4`}),S.isPending?`running…`:`run replay`]}),(0,h.jsx)(`div`,{className:`text-xs text-fg-muted`,children:`Fresh single-turn exec — doesn't resume the original session.`})]}),S.isError&&(0,h.jsx)(`div`,{className:`border border-danger/40 bg-danger/10 rounded-lg p-3 text-sm text-danger`,children:String(S.error.message)}),C&&(0,h.jsxs)(`div`,{className:`space-y-3`,children:[(0,h.jsxs)(`div`,{className:`flex items-center gap-3 text-xs`,children:[(0,h.jsx)(`span`,{className:o(`mono px-2 py-1 rounded`,C.ok?`bg-ok/10 text-ok`:`bg-danger/10 text-danger`),children:C.ok?`ok`:`failed${C.exitCode==null?``:` (code ${C.exitCode})`}`}),(0,h.jsxs)(`span`,{className:`text-fg-dim mono`,children:[C.durationMs,` ms`]}),C.error&&(0,h.jsx)(`span`,{className:`text-danger mono`,children:C.error})]}),(0,h.jsx)(v,{label:`command`,children:(0,h.jsx)(`pre`,{className:`mono text-xs whitespace-pre-wrap`,children:C.command})}),C.stdout&&(0,h.jsx)(v,{label:`stdout`,children:(0,h.jsx)(`pre`,{className:`mono text-xs whitespace-pre-wrap`,children:C.stdout})}),C.stderr&&(0,h.jsx)(v,{label:(0,h.jsx)(`span`,{className:`text-warn`,children:`stderr`}),children:(0,h.jsx)(`pre`,{className:`mono text-xs whitespace-pre-wrap`,children:C.stderr})})]})]})]})}function v({label:e,children:t}){return(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`div`,{className:`text-[10px] uppercase text-fg-muted mb-1`,children:e}),(0,h.jsx)(`div`,{className:`bg-bg-surface border border-bg-border rounded-md p-3 overflow-x-auto max-h-96 overflow-y-auto`,children:t})]})}export{_ as SessionReplayPage};